11package api
22
3- import "time"
4-
53// GetQ returns the Q field value.
64func (g GetFileParams ) GetQ () * int {
75 return g .Q
@@ -27,6 +25,10 @@ func (g GetFileParams) GetF() *OutputImageFormat {
2725 return g .F
2826}
2927
28+ func (g GetFileParams ) HasImageManipulationOptions () bool {
29+ return g .Q != nil || g .H != nil || g .W != nil || g .B != nil || g .F != nil
30+ }
31+
3032// GetIfMatch returns the IfMatch field value.
3133func (g GetFileParams ) GetIfMatch () * string {
3234 return g .IfMatch
@@ -38,12 +40,12 @@ func (g GetFileParams) GetIfNoneMatch() *string {
3840}
3941
4042// GetIfModifiedSince returns the IfModifiedSince field value.
41- func (g GetFileParams ) GetIfModifiedSince () * time. Time {
43+ func (g GetFileParams ) GetIfModifiedSince () * Time {
4244 return g .IfModifiedSince
4345}
4446
4547// GetIfUnmodifiedSince returns the IfUnmodifiedSince field value.
46- func (g GetFileParams ) GetIfUnmodifiedSince () * time. Time {
48+ func (g GetFileParams ) GetIfUnmodifiedSince () * Time {
4749 return g .IfUnmodifiedSince
4850}
4951
@@ -72,6 +74,10 @@ func (g GetFileMetadataHeadersParams) GetF() *OutputImageFormat {
7274 return g .F
7375}
7476
77+ func (g GetFileMetadataHeadersParams ) HasImageManipulationOptions () bool {
78+ return g .Q != nil || g .H != nil || g .W != nil || g .B != nil || g .F != nil
79+ }
80+
7581// GetIfMatch returns the IfMatch field value.
7682func (g GetFileMetadataHeadersParams ) GetIfMatch () * string {
7783 return g .IfMatch
@@ -83,12 +89,12 @@ func (g GetFileMetadataHeadersParams) GetIfNoneMatch() *string {
8389}
8490
8591// GetIfModifiedSince returns the IfModifiedSince field value.
86- func (g GetFileMetadataHeadersParams ) GetIfModifiedSince () * time. Time {
92+ func (g GetFileMetadataHeadersParams ) GetIfModifiedSince () * Time {
8793 return g .IfModifiedSince
8894}
8995
9096// GetIfUnmodifiedSince returns the IfUnmodifiedSince field value.
91- func (g GetFileMetadataHeadersParams ) GetIfUnmodifiedSince () * time. Time {
97+ func (g GetFileMetadataHeadersParams ) GetIfUnmodifiedSince () * Time {
9298 return g .IfUnmodifiedSince
9399}
94100
@@ -117,6 +123,10 @@ func (g GetFileWithPresignedURLParams) GetF() *OutputImageFormat {
117123 return g .F
118124}
119125
126+ func (g GetFileWithPresignedURLParams ) HasImageManipulationOptions () bool {
127+ return g .Q != nil || g .H != nil || g .W != nil || g .B != nil || g .F != nil
128+ }
129+
120130// GetIfMatch returns the IfMatch field value.
121131func (g GetFileWithPresignedURLParams ) GetIfMatch () * string {
122132 return g .IfMatch
@@ -128,11 +138,11 @@ func (g GetFileWithPresignedURLParams) GetIfNoneMatch() *string {
128138}
129139
130140// GetIfModifiedSince returns the IfModifiedSince field value.
131- func (g GetFileWithPresignedURLParams ) GetIfModifiedSince () * time. Time {
141+ func (g GetFileWithPresignedURLParams ) GetIfModifiedSince () * Time {
132142 return g .IfModifiedSince
133143}
134144
135145// GetIfUnmodifiedSince returns the IfUnmodifiedSince field value.
136- func (g GetFileWithPresignedURLParams ) GetIfUnmodifiedSince () * time. Time {
146+ func (g GetFileWithPresignedURLParams ) GetIfUnmodifiedSince () * Time {
137147 return g .IfUnmodifiedSince
138148}
0 commit comments