late-sdk 0.0.905 → 0.0.906
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/docs/AdCampaignsApi.md +71 -1
- data/docs/AdCreative.md +4 -0
- data/docs/CreateStandaloneAdRequest.md +8 -6
- data/docs/GooglePmaxAssetGroup.md +28 -0
- data/docs/GooglePmaxAssetGroupAssetsInner.md +28 -0
- data/docs/GooglePmaxAssetGroupInput.md +32 -0
- data/docs/GooglePmaxAssetGroupInputImages.md +22 -0
- data/docs/ListGoogleAssetGroups200Response.md +22 -0
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +70 -2
- data/lib/zernio-sdk/models/ad_creative.rb +21 -1
- data/lib/zernio-sdk/models/create_standalone_ad200_response_results_inner.rb +2 -2
- data/lib/zernio-sdk/models/create_standalone_ad_request.rb +18 -9
- data/lib/zernio-sdk/models/google_pmax_asset_group.rb +299 -0
- data/lib/zernio-sdk/models/google_pmax_asset_group_assets_inner.rb +244 -0
- data/lib/zernio-sdk/models/google_pmax_asset_group_input.rb +453 -0
- data/lib/zernio-sdk/models/google_pmax_asset_group_input_images.rb +280 -0
- data/lib/zernio-sdk/models/list_google_asset_groups200_response.rb +204 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +5 -0
- data/openapi.yaml +184 -8
- data/spec/api/ad_campaigns_api_spec.rb +13 -1
- data/spec/models/ad_creative_spec.rb +12 -0
- data/spec/models/create_standalone_ad200_response_results_inner_spec.rb +1 -1
- data/spec/models/create_standalone_ad_request_spec.rb +7 -1
- data/spec/models/google_pmax_asset_group_assets_inner_spec.rb +66 -0
- data/spec/models/google_pmax_asset_group_input_images_spec.rb +48 -0
- data/spec/models/google_pmax_asset_group_input_spec.rb +78 -0
- data/spec/models/google_pmax_asset_group_spec.rb +66 -0
- data/spec/models/list_google_asset_groups200_response_spec.rb +48 -0
- data/zernio-sdk-0.0.906.gem +0 -0
- metadata +22 -2
- data/zernio-sdk-0.0.905.gem +0 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
# Public HTTP(S) image URLs. GIF, JPEG or PNG, at most 5120 KB per image. Google validates dimensions and aspect ratios.
|
|
18
|
+
class GooglePmaxAssetGroupInputImages < ApiModelBase
|
|
19
|
+
# Landscape marketing images. Aspect ratio 1.91:1, minimum 600 x 314 pixels.
|
|
20
|
+
attr_accessor :landscape
|
|
21
|
+
|
|
22
|
+
# Square marketing images. Aspect ratio 1:1, minimum 300 x 300 pixels.
|
|
23
|
+
attr_accessor :square
|
|
24
|
+
|
|
25
|
+
# Required square logos. Aspect ratio 1:1, minimum 128 x 128 pixels.
|
|
26
|
+
attr_accessor :logo
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'landscape' => :'landscape',
|
|
32
|
+
:'square' => :'square',
|
|
33
|
+
:'logo' => :'logo'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns attribute mapping this model knows about
|
|
38
|
+
def self.acceptable_attribute_map
|
|
39
|
+
attribute_map
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Returns all the JSON keys this model knows about
|
|
43
|
+
def self.acceptable_attributes
|
|
44
|
+
acceptable_attribute_map.values
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
def self.openapi_types
|
|
49
|
+
{
|
|
50
|
+
:'landscape' => :'Array<String>',
|
|
51
|
+
:'square' => :'Array<String>',
|
|
52
|
+
:'logo' => :'Array<String>'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::GooglePmaxAssetGroupInputImages` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::GooglePmaxAssetGroupInputImages`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
+
end
|
|
75
|
+
h[k.to_sym] = v
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'landscape')
|
|
79
|
+
if (value = attributes[:'landscape']).is_a?(Array)
|
|
80
|
+
self.landscape = value
|
|
81
|
+
end
|
|
82
|
+
else
|
|
83
|
+
self.landscape = nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'square')
|
|
87
|
+
if (value = attributes[:'square']).is_a?(Array)
|
|
88
|
+
self.square = value
|
|
89
|
+
end
|
|
90
|
+
else
|
|
91
|
+
self.square = nil
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'logo')
|
|
95
|
+
if (value = attributes[:'logo']).is_a?(Array)
|
|
96
|
+
self.logo = value
|
|
97
|
+
end
|
|
98
|
+
else
|
|
99
|
+
self.logo = nil
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
104
|
+
# @return Array for valid properties with the reasons
|
|
105
|
+
def list_invalid_properties
|
|
106
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
107
|
+
invalid_properties = Array.new
|
|
108
|
+
if @landscape.nil?
|
|
109
|
+
invalid_properties.push('invalid value for "landscape", landscape cannot be nil.')
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if @landscape.length > 20
|
|
113
|
+
invalid_properties.push('invalid value for "landscape", number of items must be less than or equal to 20.')
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if @landscape.length < 1
|
|
117
|
+
invalid_properties.push('invalid value for "landscape", number of items must be greater than or equal to 1.')
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if @square.nil?
|
|
121
|
+
invalid_properties.push('invalid value for "square", square cannot be nil.')
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if @square.length > 20
|
|
125
|
+
invalid_properties.push('invalid value for "square", number of items must be less than or equal to 20.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if @square.length < 1
|
|
129
|
+
invalid_properties.push('invalid value for "square", number of items must be greater than or equal to 1.')
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if @logo.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "logo", logo cannot be nil.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if @logo.length > 5
|
|
137
|
+
invalid_properties.push('invalid value for "logo", number of items must be less than or equal to 5.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if @logo.length < 1
|
|
141
|
+
invalid_properties.push('invalid value for "logo", number of items must be greater than or equal to 1.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
invalid_properties
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Check to see if the all the properties in the model are valid
|
|
148
|
+
# @return true if the model is valid
|
|
149
|
+
def valid?
|
|
150
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
+
return false if @landscape.nil?
|
|
152
|
+
return false if @landscape.length > 20
|
|
153
|
+
return false if @landscape.length < 1
|
|
154
|
+
return false if @square.nil?
|
|
155
|
+
return false if @square.length > 20
|
|
156
|
+
return false if @square.length < 1
|
|
157
|
+
return false if @logo.nil?
|
|
158
|
+
return false if @logo.length > 5
|
|
159
|
+
return false if @logo.length < 1
|
|
160
|
+
true
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Custom attribute writer method with validation
|
|
164
|
+
# @param [Object] landscape Value to be assigned
|
|
165
|
+
def landscape=(landscape)
|
|
166
|
+
if landscape.nil?
|
|
167
|
+
fail ArgumentError, 'landscape cannot be nil'
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if landscape.length > 20
|
|
171
|
+
fail ArgumentError, 'invalid value for "landscape", number of items must be less than or equal to 20.'
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if landscape.length < 1
|
|
175
|
+
fail ArgumentError, 'invalid value for "landscape", number of items must be greater than or equal to 1.'
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
@landscape = landscape
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Custom attribute writer method with validation
|
|
182
|
+
# @param [Object] square Value to be assigned
|
|
183
|
+
def square=(square)
|
|
184
|
+
if square.nil?
|
|
185
|
+
fail ArgumentError, 'square cannot be nil'
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if square.length > 20
|
|
189
|
+
fail ArgumentError, 'invalid value for "square", number of items must be less than or equal to 20.'
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if square.length < 1
|
|
193
|
+
fail ArgumentError, 'invalid value for "square", number of items must be greater than or equal to 1.'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
@square = square
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Custom attribute writer method with validation
|
|
200
|
+
# @param [Object] logo Value to be assigned
|
|
201
|
+
def logo=(logo)
|
|
202
|
+
if logo.nil?
|
|
203
|
+
fail ArgumentError, 'logo cannot be nil'
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if logo.length > 5
|
|
207
|
+
fail ArgumentError, 'invalid value for "logo", number of items must be less than or equal to 5.'
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if logo.length < 1
|
|
211
|
+
fail ArgumentError, 'invalid value for "logo", number of items must be greater than or equal to 1.'
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
@logo = logo
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Checks equality by comparing each attribute.
|
|
218
|
+
# @param [Object] Object to be compared
|
|
219
|
+
def ==(o)
|
|
220
|
+
return true if self.equal?(o)
|
|
221
|
+
self.class == o.class &&
|
|
222
|
+
landscape == o.landscape &&
|
|
223
|
+
square == o.square &&
|
|
224
|
+
logo == o.logo
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# @see the `==` method
|
|
228
|
+
# @param [Object] Object to be compared
|
|
229
|
+
def eql?(o)
|
|
230
|
+
self == o
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Calculates hash code according to all attributes.
|
|
234
|
+
# @return [Integer] Hash code
|
|
235
|
+
def hash
|
|
236
|
+
[landscape, square, logo].hash
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Builds the object from hash
|
|
240
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
241
|
+
# @return [Object] Returns the model itself
|
|
242
|
+
def self.build_from_hash(attributes)
|
|
243
|
+
return nil unless attributes.is_a?(Hash)
|
|
244
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
245
|
+
transformed_hash = {}
|
|
246
|
+
openapi_types.each_pair do |key, type|
|
|
247
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
248
|
+
transformed_hash["#{key}"] = nil
|
|
249
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
250
|
+
# check to ensure the input is an array given that the attribute
|
|
251
|
+
# is documented as an array but the input is not
|
|
252
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
253
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
254
|
+
end
|
|
255
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
256
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
new(transformed_hash)
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Returns the object in the form of hash
|
|
263
|
+
# @return [Hash] Returns the object in the form of hash
|
|
264
|
+
def to_hash
|
|
265
|
+
hash = {}
|
|
266
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
267
|
+
value = self.send(attr)
|
|
268
|
+
if value.nil?
|
|
269
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
270
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
hash[param] = _to_hash(value)
|
|
274
|
+
end
|
|
275
|
+
hash
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
end
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
class ListGoogleAssetGroups200Response < ApiModelBase
|
|
18
|
+
attr_accessor :asset_groups
|
|
19
|
+
|
|
20
|
+
attr_accessor :cached_at
|
|
21
|
+
|
|
22
|
+
attr_accessor :stale
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'asset_groups' => :'assetGroups',
|
|
28
|
+
:'cached_at' => :'cachedAt',
|
|
29
|
+
:'stale' => :'stale'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'asset_groups' => :'Array<GooglePmaxAssetGroup>',
|
|
47
|
+
:'cached_at' => :'Time',
|
|
48
|
+
:'stale' => :'Boolean'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
:'cached_at',
|
|
56
|
+
])
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Initializes the object
|
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
61
|
+
def initialize(attributes = {})
|
|
62
|
+
if (!attributes.is_a?(Hash))
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ListGoogleAssetGroups200Response` initialize method"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
69
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ListGoogleAssetGroups200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
71
|
+
end
|
|
72
|
+
h[k.to_sym] = v
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'asset_groups')
|
|
76
|
+
if (value = attributes[:'asset_groups']).is_a?(Array)
|
|
77
|
+
self.asset_groups = value
|
|
78
|
+
end
|
|
79
|
+
else
|
|
80
|
+
self.asset_groups = nil
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'cached_at')
|
|
84
|
+
self.cached_at = attributes[:'cached_at']
|
|
85
|
+
else
|
|
86
|
+
self.cached_at = nil
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'stale')
|
|
90
|
+
self.stale = attributes[:'stale']
|
|
91
|
+
else
|
|
92
|
+
self.stale = nil
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
97
|
+
# @return Array for valid properties with the reasons
|
|
98
|
+
def list_invalid_properties
|
|
99
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
100
|
+
invalid_properties = Array.new
|
|
101
|
+
if @asset_groups.nil?
|
|
102
|
+
invalid_properties.push('invalid value for "asset_groups", asset_groups cannot be nil.')
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if @stale.nil?
|
|
106
|
+
invalid_properties.push('invalid value for "stale", stale cannot be nil.')
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
invalid_properties
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Check to see if the all the properties in the model are valid
|
|
113
|
+
# @return true if the model is valid
|
|
114
|
+
def valid?
|
|
115
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @asset_groups.nil?
|
|
117
|
+
return false if @stale.nil?
|
|
118
|
+
true
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Custom attribute writer method with validation
|
|
122
|
+
# @param [Object] asset_groups Value to be assigned
|
|
123
|
+
def asset_groups=(asset_groups)
|
|
124
|
+
if asset_groups.nil?
|
|
125
|
+
fail ArgumentError, 'asset_groups cannot be nil'
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
@asset_groups = asset_groups
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Custom attribute writer method with validation
|
|
132
|
+
# @param [Object] stale Value to be assigned
|
|
133
|
+
def stale=(stale)
|
|
134
|
+
if stale.nil?
|
|
135
|
+
fail ArgumentError, 'stale cannot be nil'
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
@stale = stale
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Checks equality by comparing each attribute.
|
|
142
|
+
# @param [Object] Object to be compared
|
|
143
|
+
def ==(o)
|
|
144
|
+
return true if self.equal?(o)
|
|
145
|
+
self.class == o.class &&
|
|
146
|
+
asset_groups == o.asset_groups &&
|
|
147
|
+
cached_at == o.cached_at &&
|
|
148
|
+
stale == o.stale
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# @see the `==` method
|
|
152
|
+
# @param [Object] Object to be compared
|
|
153
|
+
def eql?(o)
|
|
154
|
+
self == o
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Calculates hash code according to all attributes.
|
|
158
|
+
# @return [Integer] Hash code
|
|
159
|
+
def hash
|
|
160
|
+
[asset_groups, cached_at, stale].hash
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Builds the object from hash
|
|
164
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
165
|
+
# @return [Object] Returns the model itself
|
|
166
|
+
def self.build_from_hash(attributes)
|
|
167
|
+
return nil unless attributes.is_a?(Hash)
|
|
168
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
169
|
+
transformed_hash = {}
|
|
170
|
+
openapi_types.each_pair do |key, type|
|
|
171
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
172
|
+
transformed_hash["#{key}"] = nil
|
|
173
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
174
|
+
# check to ensure the input is an array given that the attribute
|
|
175
|
+
# is documented as an array but the input is not
|
|
176
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
177
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
178
|
+
end
|
|
179
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
180
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
new(transformed_hash)
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Returns the object in the form of hash
|
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
|
188
|
+
def to_hash
|
|
189
|
+
hash = {}
|
|
190
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
191
|
+
value = self.send(attr)
|
|
192
|
+
if value.nil?
|
|
193
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
194
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
end
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -927,6 +927,10 @@ require 'zernio-sdk/models/google_business_platform_data_offer'
|
|
|
927
927
|
require 'zernio-sdk/models/google_business_review'
|
|
928
928
|
require 'zernio-sdk/models/google_business_review_review_reply'
|
|
929
929
|
require 'zernio-sdk/models/google_business_review_reviewer'
|
|
930
|
+
require 'zernio-sdk/models/google_pmax_asset_group'
|
|
931
|
+
require 'zernio-sdk/models/google_pmax_asset_group_assets_inner'
|
|
932
|
+
require 'zernio-sdk/models/google_pmax_asset_group_input'
|
|
933
|
+
require 'zernio-sdk/models/google_pmax_asset_group_input_images'
|
|
930
934
|
require 'zernio-sdk/models/google_rsa_description'
|
|
931
935
|
require 'zernio-sdk/models/google_rsa_headline'
|
|
932
936
|
require 'zernio-sdk/models/google_sitelink'
|
|
@@ -1099,6 +1103,7 @@ require 'zernio-sdk/models/list_facebook_pages200_response'
|
|
|
1099
1103
|
require 'zernio-sdk/models/list_facebook_pages200_response_pages_inner'
|
|
1100
1104
|
require 'zernio-sdk/models/list_form_leads200_response'
|
|
1101
1105
|
require 'zernio-sdk/models/list_form_leads200_response_leads_inner'
|
|
1106
|
+
require 'zernio-sdk/models/list_google_asset_groups200_response'
|
|
1102
1107
|
require 'zernio-sdk/models/list_google_business_locations200_response'
|
|
1103
1108
|
require 'zernio-sdk/models/list_google_business_locations200_response_locations_inner'
|
|
1104
1109
|
require 'zernio-sdk/models/list_google_business_media200_response'
|