zernio-sdk 0.0.521 → 0.0.523

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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -1
  3. data/docs/AnalyticsApi.md +2 -2
  4. data/docs/ConnectApi.md +4 -4
  5. data/docs/CreateStandaloneAdRequestPromotedObject.md +1 -1
  6. data/docs/FoodMenuItemOptionsInner.md +2 -2
  7. data/docs/GMBAttributesApi.md +1 -1
  8. data/docs/GMBMediaApi.md +1 -1
  9. data/docs/SelectLinkedInOrganizationRequest.md +1 -1
  10. data/docs/SelectLinkedInOrganizationRequestSelectedOrganization.md +26 -0
  11. data/docs/UpdateGmbLocationRequest.md +3 -1
  12. data/docs/UpdateGoogleBusinessAttributesRequestAttributesInner.md +6 -2
  13. data/docs/UpdateGoogleBusinessAttributesRequestAttributesInnerUriValuesInner.md +18 -0
  14. data/docs/UpdateGoogleBusinessServicesRequestServiceItemsInner.md +3 -3
  15. data/docs/UpdateGoogleBusinessServicesRequestServiceItemsInnerFreeFormServiceItem.md +20 -0
  16. data/docs/UpdateGoogleBusinessServicesRequestServiceItemsInnerFreeFormServiceItemLabel.md +22 -0
  17. data/docs/UpdateGoogleBusinessServicesRequestServiceItemsInnerPrice.md +22 -0
  18. data/docs/UpdateGoogleBusinessServicesRequestServiceItemsInnerStructuredServiceItem.md +20 -0
  19. data/docs/UpdateLinkedInOrganization200Response.md +22 -0
  20. data/lib/zernio-sdk/api/analytics_api.rb +11 -2
  21. data/lib/zernio-sdk/api/connect_api.rb +7 -3
  22. data/lib/zernio-sdk/api/gmb_media_api.rb +6 -2
  23. data/lib/zernio-sdk/api/gmb_place_actions_api.rb +4 -4
  24. data/lib/zernio-sdk/api/gmb_verifications_api.rb +8 -0
  25. data/lib/zernio-sdk/models/batch_get_google_business_reviews_request.rb +37 -0
  26. data/lib/zernio-sdk/models/create_google_business_media_request.rb +21 -2
  27. data/lib/zernio-sdk/models/create_standalone_ad_request_promoted_object.rb +1 -1
  28. data/lib/zernio-sdk/models/food_menu.rb +9 -0
  29. data/lib/zernio-sdk/models/food_menu_item.rb +9 -0
  30. data/lib/zernio-sdk/models/food_menu_item_attributes.rb +53 -0
  31. data/lib/zernio-sdk/models/food_menu_item_options_inner.rb +43 -0
  32. data/lib/zernio-sdk/models/food_menu_section.rb +9 -0
  33. data/lib/zernio-sdk/models/get_telegram_commands200_response_data_inner.rb +67 -0
  34. data/lib/zernio-sdk/models/reply_to_google_business_review_request.rb +9 -0
  35. data/lib/zernio-sdk/models/select_linked_in_organization_request.rb +1 -1
  36. data/lib/zernio-sdk/models/select_linked_in_organization_request_selected_organization.rb +263 -0
  37. data/lib/zernio-sdk/models/set_instagram_ice_breakers_request.rb +9 -0
  38. data/lib/zernio-sdk/models/set_instagram_ice_breakers_request_ice_breakers_inner.rb +18 -0
  39. data/lib/zernio-sdk/models/set_reddit_post_flair_request.rb +27 -0
  40. data/lib/zernio-sdk/models/set_telegram_commands_request.rb +9 -0
  41. data/lib/zernio-sdk/models/set_telegram_commands_request_commands_inner.rb +47 -0
  42. data/lib/zernio-sdk/models/update_gmb_location_request.rb +61 -4
  43. data/lib/zernio-sdk/models/update_google_business_attributes_request.rb +9 -0
  44. data/lib/zernio-sdk/models/update_google_business_attributes_request_attributes_inner.rb +84 -4
  45. data/lib/zernio-sdk/models/update_google_business_attributes_request_attributes_inner_uri_values_inner.rb +164 -0
  46. data/lib/zernio-sdk/models/update_google_business_place_action_request.rb +0 -22
  47. data/lib/zernio-sdk/models/update_google_business_services_request_service_items_inner.rb +3 -3
  48. data/lib/zernio-sdk/models/update_google_business_services_request_service_items_inner_free_form_service_item.rb +199 -0
  49. data/lib/zernio-sdk/models/update_google_business_services_request_service_items_inner_free_form_service_item_label.rb +191 -0
  50. data/lib/zernio-sdk/models/update_google_business_services_request_service_items_inner_price.rb +203 -0
  51. data/lib/zernio-sdk/models/update_google_business_services_request_service_items_inner_structured_service_item.rb +182 -0
  52. data/lib/zernio-sdk/models/{get_linked_in_post_reactions400_response.rb → update_linked_in_organization200_response.rb} +33 -24
  53. data/lib/zernio-sdk/models/update_reddit_subreddits_request.rb +9 -0
  54. data/lib/zernio-sdk/models/update_youtube_default_playlist_request.rb +9 -0
  55. data/lib/zernio-sdk/version.rb +1 -1
  56. data/lib/zernio-sdk.rb +7 -1
  57. data/openapi.yaml +112 -60
  58. data/spec/api/analytics_api_spec.rb +1 -1
  59. data/spec/api/connect_api_spec.rb +1 -1
  60. data/spec/api/gmb_media_api_spec.rb +1 -1
  61. data/spec/models/create_google_business_media_request_spec.rb +1 -1
  62. data/spec/models/food_menu_item_attributes_spec.rb +4 -0
  63. data/spec/models/select_linked_in_organization_request_selected_organization_spec.rb +60 -0
  64. data/spec/models/update_gmb_location_request_spec.rb +6 -0
  65. data/spec/models/update_google_business_attributes_request_attributes_inner_spec.rb +16 -0
  66. data/spec/models/update_google_business_attributes_request_attributes_inner_uri_values_inner_spec.rb +36 -0
  67. data/spec/models/update_google_business_services_request_service_items_inner_free_form_service_item_label_spec.rb +48 -0
  68. data/spec/models/update_google_business_services_request_service_items_inner_free_form_service_item_spec.rb +42 -0
  69. data/spec/models/update_google_business_services_request_service_items_inner_price_spec.rb +48 -0
  70. data/spec/models/update_google_business_services_request_service_items_inner_structured_service_item_spec.rb +42 -0
  71. data/spec/models/{get_linked_in_post_reactions400_response_spec.rb → update_linked_in_organization200_response_spec.rb} +16 -10
  72. metadata +30 -6
  73. data/docs/GetLinkedInPostReactions400Response.md +0 -20
@@ -85,6 +85,10 @@ module Zernio
85
85
  invalid_properties.push('invalid value for "ice_breakers", number of items must be less than or equal to 4.')
86
86
  end
87
87
 
88
+ if @ice_breakers.length < 1
89
+ invalid_properties.push('invalid value for "ice_breakers", number of items must be greater than or equal to 1.')
90
+ end
91
+
88
92
  invalid_properties
89
93
  end
90
94
 
@@ -94,6 +98,7 @@ module Zernio
94
98
  warn '[DEPRECATED] the `valid?` method is obsolete'
95
99
  return false if @ice_breakers.nil?
96
100
  return false if @ice_breakers.length > 4
101
+ return false if @ice_breakers.length < 1
97
102
  true
98
103
  end
99
104
 
@@ -108,6 +113,10 @@ module Zernio
108
113
  fail ArgumentError, 'invalid value for "ice_breakers", number of items must be less than or equal to 4.'
109
114
  end
110
115
 
116
+ if ice_breakers.length < 1
117
+ fail ArgumentError, 'invalid value for "ice_breakers", number of items must be greater than or equal to 1.'
118
+ end
119
+
111
120
  @ice_breakers = ice_breakers
112
121
  end
113
122
 
@@ -93,10 +93,18 @@ module Zernio
93
93
  invalid_properties.push('invalid value for "question", the character length must be smaller than or equal to 80.')
94
94
  end
95
95
 
96
+ if @question.to_s.length < 1
97
+ invalid_properties.push('invalid value for "question", the character length must be greater than or equal to 1.')
98
+ end
99
+
96
100
  if @payload.nil?
97
101
  invalid_properties.push('invalid value for "payload", payload cannot be nil.')
98
102
  end
99
103
 
104
+ if @payload.to_s.length < 1
105
+ invalid_properties.push('invalid value for "payload", the character length must be greater than or equal to 1.')
106
+ end
107
+
100
108
  invalid_properties
101
109
  end
102
110
 
@@ -106,7 +114,9 @@ module Zernio
106
114
  warn '[DEPRECATED] the `valid?` method is obsolete'
107
115
  return false if @question.nil?
108
116
  return false if @question.to_s.length > 80
117
+ return false if @question.to_s.length < 1
109
118
  return false if @payload.nil?
119
+ return false if @payload.to_s.length < 1
110
120
  true
111
121
  end
112
122
 
@@ -121,6 +131,10 @@ module Zernio
121
131
  fail ArgumentError, 'invalid value for "question", the character length must be smaller than or equal to 80.'
122
132
  end
123
133
 
134
+ if question.to_s.length < 1
135
+ fail ArgumentError, 'invalid value for "question", the character length must be greater than or equal to 1.'
136
+ end
137
+
124
138
  @question = question
125
139
  end
126
140
 
@@ -131,6 +145,10 @@ module Zernio
131
145
  fail ArgumentError, 'payload cannot be nil'
132
146
  end
133
147
 
148
+ if payload.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "payload", the character length must be greater than or equal to 1.'
150
+ end
151
+
134
152
  @payload = payload
135
153
  end
136
154
 
@@ -111,14 +111,26 @@ module Zernio
111
111
  invalid_properties.push('invalid value for "subreddit", subreddit cannot be nil.')
112
112
  end
113
113
 
114
+ if @subreddit.to_s.length < 1
115
+ invalid_properties.push('invalid value for "subreddit", the character length must be greater than or equal to 1.')
116
+ end
117
+
114
118
  if @post_id.nil?
115
119
  invalid_properties.push('invalid value for "post_id", post_id cannot be nil.')
116
120
  end
117
121
 
122
+ if @post_id.to_s.length < 1
123
+ invalid_properties.push('invalid value for "post_id", the character length must be greater than or equal to 1.')
124
+ end
125
+
118
126
  if @flair_template_id.nil?
119
127
  invalid_properties.push('invalid value for "flair_template_id", flair_template_id cannot be nil.')
120
128
  end
121
129
 
130
+ if @flair_template_id.to_s.length < 1
131
+ invalid_properties.push('invalid value for "flair_template_id", the character length must be greater than or equal to 1.')
132
+ end
133
+
122
134
  invalid_properties
123
135
  end
124
136
 
@@ -127,8 +139,11 @@ module Zernio
127
139
  def valid?
128
140
  warn '[DEPRECATED] the `valid?` method is obsolete'
129
141
  return false if @subreddit.nil?
142
+ return false if @subreddit.to_s.length < 1
130
143
  return false if @post_id.nil?
144
+ return false if @post_id.to_s.length < 1
131
145
  return false if @flair_template_id.nil?
146
+ return false if @flair_template_id.to_s.length < 1
132
147
  true
133
148
  end
134
149
 
@@ -139,6 +154,10 @@ module Zernio
139
154
  fail ArgumentError, 'subreddit cannot be nil'
140
155
  end
141
156
 
157
+ if subreddit.to_s.length < 1
158
+ fail ArgumentError, 'invalid value for "subreddit", the character length must be greater than or equal to 1.'
159
+ end
160
+
142
161
  @subreddit = subreddit
143
162
  end
144
163
 
@@ -149,6 +168,10 @@ module Zernio
149
168
  fail ArgumentError, 'post_id cannot be nil'
150
169
  end
151
170
 
171
+ if post_id.to_s.length < 1
172
+ fail ArgumentError, 'invalid value for "post_id", the character length must be greater than or equal to 1.'
173
+ end
174
+
152
175
  @post_id = post_id
153
176
  end
154
177
 
@@ -159,6 +182,10 @@ module Zernio
159
182
  fail ArgumentError, 'flair_template_id cannot be nil'
160
183
  end
161
184
 
185
+ if flair_template_id.to_s.length < 1
186
+ fail ArgumentError, 'invalid value for "flair_template_id", the character length must be greater than or equal to 1.'
187
+ end
188
+
162
189
  @flair_template_id = flair_template_id
163
190
  end
164
191
 
@@ -81,6 +81,10 @@ module Zernio
81
81
  invalid_properties.push('invalid value for "commands", commands cannot be nil.')
82
82
  end
83
83
 
84
+ if @commands.length > 100
85
+ invalid_properties.push('invalid value for "commands", number of items must be less than or equal to 100.')
86
+ end
87
+
84
88
  invalid_properties
85
89
  end
86
90
 
@@ -89,6 +93,7 @@ module Zernio
89
93
  def valid?
90
94
  warn '[DEPRECATED] the `valid?` method is obsolete'
91
95
  return false if @commands.nil?
96
+ return false if @commands.length > 100
92
97
  true
93
98
  end
94
99
 
@@ -99,6 +104,10 @@ module Zernio
99
104
  fail ArgumentError, 'commands cannot be nil'
100
105
  end
101
106
 
107
+ if commands.length > 100
108
+ fail ArgumentError, 'invalid value for "commands", number of items must be less than or equal to 100.'
109
+ end
110
+
102
111
  @commands = commands
103
112
  end
104
113
 
@@ -91,10 +91,31 @@ module Zernio
91
91
  invalid_properties.push('invalid value for "command", command cannot be nil.')
92
92
  end
93
93
 
94
+ if @command.to_s.length > 32
95
+ invalid_properties.push('invalid value for "command", the character length must be smaller than or equal to 32.')
96
+ end
97
+
98
+ if @command.to_s.length < 1
99
+ invalid_properties.push('invalid value for "command", the character length must be greater than or equal to 1.')
100
+ end
101
+
102
+ pattern = Regexp.new(/^[a-z0-9_]+$/)
103
+ if @command !~ pattern
104
+ invalid_properties.push("invalid value for \"command\", must conform to the pattern #{pattern}.")
105
+ end
106
+
94
107
  if @description.nil?
95
108
  invalid_properties.push('invalid value for "description", description cannot be nil.')
96
109
  end
97
110
 
111
+ if @description.to_s.length > 256
112
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 256.')
113
+ end
114
+
115
+ if @description.to_s.length < 1
116
+ invalid_properties.push('invalid value for "description", the character length must be greater than or equal to 1.')
117
+ end
118
+
98
119
  invalid_properties
99
120
  end
100
121
 
@@ -103,7 +124,12 @@ module Zernio
103
124
  def valid?
104
125
  warn '[DEPRECATED] the `valid?` method is obsolete'
105
126
  return false if @command.nil?
127
+ return false if @command.to_s.length > 32
128
+ return false if @command.to_s.length < 1
129
+ return false if @command !~ Regexp.new(/^[a-z0-9_]+$/)
106
130
  return false if @description.nil?
131
+ return false if @description.to_s.length > 256
132
+ return false if @description.to_s.length < 1
107
133
  true
108
134
  end
109
135
 
@@ -114,6 +140,19 @@ module Zernio
114
140
  fail ArgumentError, 'command cannot be nil'
115
141
  end
116
142
 
143
+ if command.to_s.length > 32
144
+ fail ArgumentError, 'invalid value for "command", the character length must be smaller than or equal to 32.'
145
+ end
146
+
147
+ if command.to_s.length < 1
148
+ fail ArgumentError, 'invalid value for "command", the character length must be greater than or equal to 1.'
149
+ end
150
+
151
+ pattern = Regexp.new(/^[a-z0-9_]+$/)
152
+ if command !~ pattern
153
+ fail ArgumentError, "invalid value for \"command\", must conform to the pattern #{pattern}."
154
+ end
155
+
117
156
  @command = command
118
157
  end
119
158
 
@@ -124,6 +163,14 @@ module Zernio
124
163
  fail ArgumentError, 'description cannot be nil'
125
164
  end
126
165
 
166
+ if description.to_s.length > 256
167
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 256.'
168
+ end
169
+
170
+ if description.to_s.length < 1
171
+ fail ArgumentError, 'invalid value for "description", the character length must be greater than or equal to 1.'
172
+ end
173
+
127
174
  @description = description
128
175
  end
129
176
 
@@ -20,11 +20,15 @@ module Zernio
20
20
  # Optional but recommended. The Google Business Account resource name (\"accounts/123\") that owns the new location (from GET gmb-locations). When provided, the location is resolved directly instead of by enumerating the account, which is required for accounts with many locations. Named `googleAccountId` to disambiguate from the path `accountId` (the Zernio account). The legacy field name `accountId` is still accepted for backwards compatibility.
21
21
  attr_accessor :google_account_id
22
22
 
23
+ # Legacy alias for googleAccountId. Use googleAccountId for new integrations.
24
+ attr_accessor :account_id
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'selected_location_id' => :'selectedLocationId',
27
- :'google_account_id' => :'googleAccountId'
30
+ :'google_account_id' => :'googleAccountId',
31
+ :'account_id' => :'accountId'
28
32
  }
29
33
  end
30
34
 
@@ -42,7 +46,8 @@ module Zernio
42
46
  def self.openapi_types
43
47
  {
44
48
  :'selected_location_id' => :'String',
45
- :'google_account_id' => :'String'
49
+ :'google_account_id' => :'String',
50
+ :'account_id' => :'String'
46
51
  }
47
52
  end
48
53
 
@@ -77,6 +82,10 @@ module Zernio
77
82
  if attributes.key?(:'google_account_id')
78
83
  self.google_account_id = attributes[:'google_account_id']
79
84
  end
85
+
86
+ if attributes.key?(:'account_id')
87
+ self.account_id = attributes[:'account_id']
88
+ end
80
89
  end
81
90
 
82
91
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,6 +97,18 @@ module Zernio
88
97
  invalid_properties.push('invalid value for "selected_location_id", selected_location_id cannot be nil.')
89
98
  end
90
99
 
100
+ if @selected_location_id.to_s.length < 1
101
+ invalid_properties.push('invalid value for "selected_location_id", the character length must be greater than or equal to 1.')
102
+ end
103
+
104
+ if !@google_account_id.nil? && @google_account_id.to_s.length < 1
105
+ invalid_properties.push('invalid value for "google_account_id", the character length must be greater than or equal to 1.')
106
+ end
107
+
108
+ if !@account_id.nil? && @account_id.to_s.length < 1
109
+ invalid_properties.push('invalid value for "account_id", the character length must be greater than or equal to 1.')
110
+ end
111
+
91
112
  invalid_properties
92
113
  end
93
114
 
@@ -96,6 +117,9 @@ module Zernio
96
117
  def valid?
97
118
  warn '[DEPRECATED] the `valid?` method is obsolete'
98
119
  return false if @selected_location_id.nil?
120
+ return false if @selected_location_id.to_s.length < 1
121
+ return false if !@google_account_id.nil? && @google_account_id.to_s.length < 1
122
+ return false if !@account_id.nil? && @account_id.to_s.length < 1
99
123
  true
100
124
  end
101
125
 
@@ -106,16 +130,49 @@ module Zernio
106
130
  fail ArgumentError, 'selected_location_id cannot be nil'
107
131
  end
108
132
 
133
+ if selected_location_id.to_s.length < 1
134
+ fail ArgumentError, 'invalid value for "selected_location_id", the character length must be greater than or equal to 1.'
135
+ end
136
+
109
137
  @selected_location_id = selected_location_id
110
138
  end
111
139
 
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] google_account_id Value to be assigned
142
+ def google_account_id=(google_account_id)
143
+ if google_account_id.nil?
144
+ fail ArgumentError, 'google_account_id cannot be nil'
145
+ end
146
+
147
+ if google_account_id.to_s.length < 1
148
+ fail ArgumentError, 'invalid value for "google_account_id", the character length must be greater than or equal to 1.'
149
+ end
150
+
151
+ @google_account_id = google_account_id
152
+ end
153
+
154
+ # Custom attribute writer method with validation
155
+ # @param [Object] account_id Value to be assigned
156
+ def account_id=(account_id)
157
+ if account_id.nil?
158
+ fail ArgumentError, 'account_id cannot be nil'
159
+ end
160
+
161
+ if account_id.to_s.length < 1
162
+ fail ArgumentError, 'invalid value for "account_id", the character length must be greater than or equal to 1.'
163
+ end
164
+
165
+ @account_id = account_id
166
+ end
167
+
112
168
  # Checks equality by comparing each attribute.
113
169
  # @param [Object] Object to be compared
114
170
  def ==(o)
115
171
  return true if self.equal?(o)
116
172
  self.class == o.class &&
117
173
  selected_location_id == o.selected_location_id &&
118
- google_account_id == o.google_account_id
174
+ google_account_id == o.google_account_id &&
175
+ account_id == o.account_id
119
176
  end
120
177
 
121
178
  # @see the `==` method
@@ -127,7 +184,7 @@ module Zernio
127
184
  # Calculates hash code according to all attributes.
128
185
  # @return [Integer] Hash code
129
186
  def hash
130
- [selected_location_id, google_account_id].hash
187
+ [selected_location_id, google_account_id, account_id].hash
131
188
  end
132
189
 
133
190
  # Builds the object from hash
@@ -96,6 +96,10 @@ module Zernio
96
96
  invalid_properties.push('invalid value for "attribute_mask", attribute_mask cannot be nil.')
97
97
  end
98
98
 
99
+ if @attribute_mask.to_s.length < 1
100
+ invalid_properties.push('invalid value for "attribute_mask", the character length must be greater than or equal to 1.')
101
+ end
102
+
99
103
  invalid_properties
100
104
  end
101
105
 
@@ -105,6 +109,7 @@ module Zernio
105
109
  warn '[DEPRECATED] the `valid?` method is obsolete'
106
110
  return false if @attributes.nil?
107
111
  return false if @attribute_mask.nil?
112
+ return false if @attribute_mask.to_s.length < 1
108
113
  true
109
114
  end
110
115
 
@@ -125,6 +130,10 @@ module Zernio
125
130
  fail ArgumentError, 'attribute_mask cannot be nil'
126
131
  end
127
132
 
133
+ if attribute_mask.to_s.length < 1
134
+ fail ArgumentError, 'invalid value for "attribute_mask", the character length must be greater than or equal to 1.'
135
+ end
136
+
128
137
  @attribute_mask = attribute_mask
129
138
  end
130
139
 
@@ -17,16 +17,44 @@ module Zernio
17
17
  class UpdateGoogleBusinessAttributesRequestAttributesInner < ApiModelBase
18
18
  attr_accessor :name
19
19
 
20
+ attr_accessor :value_type
21
+
20
22
  attr_accessor :values
21
23
 
22
24
  attr_accessor :repeated_enum_value
23
25
 
26
+ attr_accessor :uri_values
27
+
28
+ class EnumAttributeValidator
29
+ attr_reader :datatype
30
+ attr_reader :allowable_values
31
+
32
+ def initialize(datatype, allowable_values)
33
+ @allowable_values = allowable_values.map do |value|
34
+ case datatype.to_s
35
+ when /Integer/i
36
+ value.to_i
37
+ when /Float/i
38
+ value.to_f
39
+ else
40
+ value
41
+ end
42
+ end
43
+ end
44
+
45
+ def valid?(value)
46
+ !value || allowable_values.include?(value)
47
+ end
48
+ end
49
+
24
50
  # Attribute mapping from ruby-style variable name to JSON key.
25
51
  def self.attribute_map
26
52
  {
27
53
  :'name' => :'name',
54
+ :'value_type' => :'valueType',
28
55
  :'values' => :'values',
29
- :'repeated_enum_value' => :'repeatedEnumValue'
56
+ :'repeated_enum_value' => :'repeatedEnumValue',
57
+ :'uri_values' => :'uriValues'
30
58
  }
31
59
  end
32
60
 
@@ -44,8 +72,10 @@ module Zernio
44
72
  def self.openapi_types
45
73
  {
46
74
  :'name' => :'String',
75
+ :'value_type' => :'String',
47
76
  :'values' => :'Array<Object>',
48
- :'repeated_enum_value' => :'GetGoogleBusinessAttributes200ResponseAttributesInnerRepeatedEnumValue'
77
+ :'repeated_enum_value' => :'GetGoogleBusinessAttributes200ResponseAttributesInnerRepeatedEnumValue',
78
+ :'uri_values' => :'Array<UpdateGoogleBusinessAttributesRequestAttributesInnerUriValuesInner>'
49
79
  }
50
80
  end
51
81
 
@@ -73,6 +103,12 @@ module Zernio
73
103
 
74
104
  if attributes.key?(:'name')
75
105
  self.name = attributes[:'name']
106
+ else
107
+ self.name = nil
108
+ end
109
+
110
+ if attributes.key?(:'value_type')
111
+ self.value_type = attributes[:'value_type']
76
112
  end
77
113
 
78
114
  if attributes.key?(:'values')
@@ -84,6 +120,12 @@ module Zernio
84
120
  if attributes.key?(:'repeated_enum_value')
85
121
  self.repeated_enum_value = attributes[:'repeated_enum_value']
86
122
  end
123
+
124
+ if attributes.key?(:'uri_values')
125
+ if (value = attributes[:'uri_values']).is_a?(Array)
126
+ self.uri_values = value
127
+ end
128
+ end
87
129
  end
88
130
 
89
131
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,6 +133,14 @@ module Zernio
91
133
  def list_invalid_properties
92
134
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
93
135
  invalid_properties = Array.new
136
+ if @name.nil?
137
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
138
+ end
139
+
140
+ if @name.to_s.length < 1
141
+ invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
142
+ end
143
+
94
144
  invalid_properties
95
145
  end
96
146
 
@@ -98,17 +148,47 @@ module Zernio
98
148
  # @return true if the model is valid
99
149
  def valid?
100
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
151
+ return false if @name.nil?
152
+ return false if @name.to_s.length < 1
153
+ value_type_validator = EnumAttributeValidator.new('String', ["ATTRIBUTE_VALUE_TYPE_UNSPECIFIED", "BOOL", "ENUM", "URL", "REPEATED_ENUM"])
154
+ return false unless value_type_validator.valid?(@value_type)
101
155
  true
102
156
  end
103
157
 
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] name Value to be assigned
160
+ def name=(name)
161
+ if name.nil?
162
+ fail ArgumentError, 'name cannot be nil'
163
+ end
164
+
165
+ if name.to_s.length < 1
166
+ fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
167
+ end
168
+
169
+ @name = name
170
+ end
171
+
172
+ # Custom attribute writer method checking allowed values (enum).
173
+ # @param [Object] value_type Object to be assigned
174
+ def value_type=(value_type)
175
+ validator = EnumAttributeValidator.new('String', ["ATTRIBUTE_VALUE_TYPE_UNSPECIFIED", "BOOL", "ENUM", "URL", "REPEATED_ENUM"])
176
+ unless validator.valid?(value_type)
177
+ fail ArgumentError, "invalid value for \"value_type\", must be one of #{validator.allowable_values}."
178
+ end
179
+ @value_type = value_type
180
+ end
181
+
104
182
  # Checks equality by comparing each attribute.
105
183
  # @param [Object] Object to be compared
106
184
  def ==(o)
107
185
  return true if self.equal?(o)
108
186
  self.class == o.class &&
109
187
  name == o.name &&
188
+ value_type == o.value_type &&
110
189
  values == o.values &&
111
- repeated_enum_value == o.repeated_enum_value
190
+ repeated_enum_value == o.repeated_enum_value &&
191
+ uri_values == o.uri_values
112
192
  end
113
193
 
114
194
  # @see the `==` method
@@ -120,7 +200,7 @@ module Zernio
120
200
  # Calculates hash code according to all attributes.
121
201
  # @return [Integer] Hash code
122
202
  def hash
123
- [name, values, repeated_enum_value].hash
203
+ [name, value_type, values, repeated_enum_value, uri_values].hash
124
204
  end
125
205
 
126
206
  # Builds the object from hash