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
@@ -0,0 +1,203 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
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 UpdateGoogleBusinessServicesRequestServiceItemsInnerPrice < ApiModelBase
18
+ attr_accessor :currency_code
19
+
20
+ attr_accessor :units
21
+
22
+ attr_accessor :nanos
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'currency_code' => :'currencyCode',
28
+ :'units' => :'units',
29
+ :'nanos' => :'nanos'
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
+ :'currency_code' => :'String',
47
+ :'units' => :'String',
48
+ :'nanos' => :'Integer'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateGoogleBusinessServicesRequestServiceItemsInnerPrice` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ acceptable_attribute_map = self.class.acceptable_attribute_map
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!acceptable_attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateGoogleBusinessServicesRequestServiceItemsInnerPrice`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'currency_code')
75
+ self.currency_code = attributes[:'currency_code']
76
+ end
77
+
78
+ if attributes.key?(:'units')
79
+ self.units = attributes[:'units']
80
+ end
81
+
82
+ if attributes.key?(:'nanos')
83
+ self.nanos = attributes[:'nanos']
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
91
+ invalid_properties = Array.new
92
+ if !@currency_code.nil? && @currency_code.to_s.length < 1
93
+ invalid_properties.push('invalid value for "currency_code", the character length must be greater than or equal to 1.')
94
+ end
95
+
96
+ if !@units.nil? && @units.to_s.length < 1
97
+ invalid_properties.push('invalid value for "units", the character length must be greater than or equal to 1.')
98
+ end
99
+
100
+ invalid_properties
101
+ end
102
+
103
+ # Check to see if the all the properties in the model are valid
104
+ # @return true if the model is valid
105
+ def valid?
106
+ warn '[DEPRECATED] the `valid?` method is obsolete'
107
+ return false if !@currency_code.nil? && @currency_code.to_s.length < 1
108
+ return false if !@units.nil? && @units.to_s.length < 1
109
+ true
110
+ end
111
+
112
+ # Custom attribute writer method with validation
113
+ # @param [Object] currency_code Value to be assigned
114
+ def currency_code=(currency_code)
115
+ if currency_code.nil?
116
+ fail ArgumentError, 'currency_code cannot be nil'
117
+ end
118
+
119
+ if currency_code.to_s.length < 1
120
+ fail ArgumentError, 'invalid value for "currency_code", the character length must be greater than or equal to 1.'
121
+ end
122
+
123
+ @currency_code = currency_code
124
+ end
125
+
126
+ # Custom attribute writer method with validation
127
+ # @param [Object] units Value to be assigned
128
+ def units=(units)
129
+ if units.nil?
130
+ fail ArgumentError, 'units cannot be nil'
131
+ end
132
+
133
+ if units.to_s.length < 1
134
+ fail ArgumentError, 'invalid value for "units", the character length must be greater than or equal to 1.'
135
+ end
136
+
137
+ @units = units
138
+ end
139
+
140
+ # Checks equality by comparing each attribute.
141
+ # @param [Object] Object to be compared
142
+ def ==(o)
143
+ return true if self.equal?(o)
144
+ self.class == o.class &&
145
+ currency_code == o.currency_code &&
146
+ units == o.units &&
147
+ nanos == o.nanos
148
+ end
149
+
150
+ # @see the `==` method
151
+ # @param [Object] Object to be compared
152
+ def eql?(o)
153
+ self == o
154
+ end
155
+
156
+ # Calculates hash code according to all attributes.
157
+ # @return [Integer] Hash code
158
+ def hash
159
+ [currency_code, units, nanos].hash
160
+ end
161
+
162
+ # Builds the object from hash
163
+ # @param [Hash] attributes Model attributes in the form of hash
164
+ # @return [Object] Returns the model itself
165
+ def self.build_from_hash(attributes)
166
+ return nil unless attributes.is_a?(Hash)
167
+ attributes = attributes.transform_keys(&:to_sym)
168
+ transformed_hash = {}
169
+ openapi_types.each_pair do |key, type|
170
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
171
+ transformed_hash["#{key}"] = nil
172
+ elsif type =~ /\AArray<(.*)>/i
173
+ # check to ensure the input is an array given that the attribute
174
+ # is documented as an array but the input is not
175
+ if attributes[attribute_map[key]].is_a?(Array)
176
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
177
+ end
178
+ elsif !attributes[attribute_map[key]].nil?
179
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
180
+ end
181
+ end
182
+ new(transformed_hash)
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ if value.nil?
192
+ is_nullable = self.class.openapi_nullable.include?(attr)
193
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
+ end
195
+
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ end
202
+
203
+ end
@@ -0,0 +1,182 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
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 UpdateGoogleBusinessServicesRequestServiceItemsInnerStructuredServiceItem < ApiModelBase
18
+ attr_accessor :service_type_id
19
+
20
+ attr_accessor :description
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'service_type_id' => :'serviceTypeId',
26
+ :'description' => :'description'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'service_type_id' => :'String',
44
+ :'description' => :'String'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateGoogleBusinessServicesRequestServiceItemsInnerStructuredServiceItem` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateGoogleBusinessServicesRequestServiceItemsInnerStructuredServiceItem`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'service_type_id')
71
+ self.service_type_id = attributes[:'service_type_id']
72
+ else
73
+ self.service_type_id = nil
74
+ end
75
+
76
+ if attributes.key?(:'description')
77
+ self.description = attributes[:'description']
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
85
+ invalid_properties = Array.new
86
+ if @service_type_id.nil?
87
+ invalid_properties.push('invalid value for "service_type_id", service_type_id cannot be nil.')
88
+ end
89
+
90
+ if @service_type_id.to_s.length < 1
91
+ invalid_properties.push('invalid value for "service_type_id", the character length must be greater than or equal to 1.')
92
+ end
93
+
94
+ invalid_properties
95
+ end
96
+
97
+ # Check to see if the all the properties in the model are valid
98
+ # @return true if the model is valid
99
+ def valid?
100
+ warn '[DEPRECATED] the `valid?` method is obsolete'
101
+ return false if @service_type_id.nil?
102
+ return false if @service_type_id.to_s.length < 1
103
+ true
104
+ end
105
+
106
+ # Custom attribute writer method with validation
107
+ # @param [Object] service_type_id Value to be assigned
108
+ def service_type_id=(service_type_id)
109
+ if service_type_id.nil?
110
+ fail ArgumentError, 'service_type_id cannot be nil'
111
+ end
112
+
113
+ if service_type_id.to_s.length < 1
114
+ fail ArgumentError, 'invalid value for "service_type_id", the character length must be greater than or equal to 1.'
115
+ end
116
+
117
+ @service_type_id = service_type_id
118
+ end
119
+
120
+ # Checks equality by comparing each attribute.
121
+ # @param [Object] Object to be compared
122
+ def ==(o)
123
+ return true if self.equal?(o)
124
+ self.class == o.class &&
125
+ service_type_id == o.service_type_id &&
126
+ description == o.description
127
+ end
128
+
129
+ # @see the `==` method
130
+ # @param [Object] Object to be compared
131
+ def eql?(o)
132
+ self == o
133
+ end
134
+
135
+ # Calculates hash code according to all attributes.
136
+ # @return [Integer] Hash code
137
+ def hash
138
+ [service_type_id, description].hash
139
+ end
140
+
141
+ # Builds the object from hash
142
+ # @param [Hash] attributes Model attributes in the form of hash
143
+ # @return [Object] Returns the model itself
144
+ def self.build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ attributes = attributes.transform_keys(&:to_sym)
147
+ transformed_hash = {}
148
+ openapi_types.each_pair do |key, type|
149
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
150
+ transformed_hash["#{key}"] = nil
151
+ elsif type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[attribute_map[key]].is_a?(Array)
155
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
156
+ end
157
+ elsif !attributes[attribute_map[key]].nil?
158
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
159
+ end
160
+ end
161
+ new(transformed_hash)
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ if value.nil?
171
+ is_nullable = self.class.openapi_nullable.include?(attr)
172
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
173
+ end
174
+
175
+ hash[param] = _to_hash(value)
176
+ end
177
+ hash
178
+ end
179
+
180
+ end
181
+
182
+ end
@@ -14,10 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Zernio
17
- class GetLinkedInPostReactions400Response < ApiModelBase
18
- attr_accessor :error
17
+ class UpdateLinkedInOrganization200Response < ApiModelBase
18
+ attr_accessor :message
19
19
 
20
- attr_accessor :code
20
+ attr_accessor :account_type
21
+
22
+ attr_accessor :account_name
21
23
 
22
24
  class EnumAttributeValidator
23
25
  attr_reader :datatype
@@ -44,8 +46,9 @@ module Zernio
44
46
  # Attribute mapping from ruby-style variable name to JSON key.
45
47
  def self.attribute_map
46
48
  {
47
- :'error' => :'error',
48
- :'code' => :'code'
49
+ :'message' => :'message',
50
+ :'account_type' => :'accountType',
51
+ :'account_name' => :'accountName'
49
52
  }
50
53
  end
51
54
 
@@ -62,8 +65,9 @@ module Zernio
62
65
  # Attribute type mapping.
63
66
  def self.openapi_types
64
67
  {
65
- :'error' => :'String',
66
- :'code' => :'String'
68
+ :'message' => :'String',
69
+ :'account_type' => :'String',
70
+ :'account_name' => :'String'
67
71
  }
68
72
  end
69
73
 
@@ -77,24 +81,28 @@ module Zernio
77
81
  # @param [Hash] attributes Model attributes in the form of hash
78
82
  def initialize(attributes = {})
79
83
  if (!attributes.is_a?(Hash))
80
- fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::GetLinkedInPostReactions400Response` initialize method"
84
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateLinkedInOrganization200Response` initialize method"
81
85
  end
82
86
 
83
87
  # check to see if the attribute exists and convert string to symbol for hash key
84
88
  acceptable_attribute_map = self.class.acceptable_attribute_map
85
89
  attributes = attributes.each_with_object({}) { |(k, v), h|
86
90
  if (!acceptable_attribute_map.key?(k.to_sym))
87
- fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::GetLinkedInPostReactions400Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
91
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateLinkedInOrganization200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
92
  end
89
93
  h[k.to_sym] = v
90
94
  }
91
95
 
92
- if attributes.key?(:'error')
93
- self.error = attributes[:'error']
96
+ if attributes.key?(:'message')
97
+ self.message = attributes[:'message']
98
+ end
99
+
100
+ if attributes.key?(:'account_type')
101
+ self.account_type = attributes[:'account_type']
94
102
  end
95
103
 
96
- if attributes.key?(:'code')
97
- self.code = attributes[:'code']
104
+ if attributes.key?(:'account_name')
105
+ self.account_name = attributes[:'account_name']
98
106
  end
99
107
  end
100
108
 
@@ -110,19 +118,19 @@ module Zernio
110
118
  # @return true if the model is valid
111
119
  def valid?
112
120
  warn '[DEPRECATED] the `valid?` method is obsolete'
113
- code_validator = EnumAttributeValidator.new('String', ["missing_urn", "invalid_urn", "invalid_platform", "PLATFORM_LIMITATION"])
114
- return false unless code_validator.valid?(@code)
121
+ account_type_validator = EnumAttributeValidator.new('String', ["personal", "organization"])
122
+ return false unless account_type_validator.valid?(@account_type)
115
123
  true
116
124
  end
117
125
 
118
126
  # Custom attribute writer method checking allowed values (enum).
119
- # @param [Object] code Object to be assigned
120
- def code=(code)
121
- validator = EnumAttributeValidator.new('String', ["missing_urn", "invalid_urn", "invalid_platform", "PLATFORM_LIMITATION"])
122
- unless validator.valid?(code)
123
- fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
127
+ # @param [Object] account_type Object to be assigned
128
+ def account_type=(account_type)
129
+ validator = EnumAttributeValidator.new('String', ["personal", "organization"])
130
+ unless validator.valid?(account_type)
131
+ fail ArgumentError, "invalid value for \"account_type\", must be one of #{validator.allowable_values}."
124
132
  end
125
- @code = code
133
+ @account_type = account_type
126
134
  end
127
135
 
128
136
  # Checks equality by comparing each attribute.
@@ -130,8 +138,9 @@ module Zernio
130
138
  def ==(o)
131
139
  return true if self.equal?(o)
132
140
  self.class == o.class &&
133
- error == o.error &&
134
- code == o.code
141
+ message == o.message &&
142
+ account_type == o.account_type &&
143
+ account_name == o.account_name
135
144
  end
136
145
 
137
146
  # @see the `==` method
@@ -143,7 +152,7 @@ module Zernio
143
152
  # Calculates hash code according to all attributes.
144
153
  # @return [Integer] Hash code
145
154
  def hash
146
- [error, code].hash
155
+ [message, account_type, account_name].hash
147
156
  end
148
157
 
149
158
  # Builds the object from hash
@@ -79,6 +79,10 @@ module Zernio
79
79
  invalid_properties.push('invalid value for "default_subreddit", default_subreddit cannot be nil.')
80
80
  end
81
81
 
82
+ if @default_subreddit.to_s.length < 1
83
+ invalid_properties.push('invalid value for "default_subreddit", the character length must be greater than or equal to 1.')
84
+ end
85
+
82
86
  invalid_properties
83
87
  end
84
88
 
@@ -87,6 +91,7 @@ module Zernio
87
91
  def valid?
88
92
  warn '[DEPRECATED] the `valid?` method is obsolete'
89
93
  return false if @default_subreddit.nil?
94
+ return false if @default_subreddit.to_s.length < 1
90
95
  true
91
96
  end
92
97
 
@@ -97,6 +102,10 @@ module Zernio
97
102
  fail ArgumentError, 'default_subreddit cannot be nil'
98
103
  end
99
104
 
105
+ if default_subreddit.to_s.length < 1
106
+ fail ArgumentError, 'invalid value for "default_subreddit", the character length must be greater than or equal to 1.'
107
+ end
108
+
100
109
  @default_subreddit = default_subreddit
101
110
  end
102
111
 
@@ -87,6 +87,10 @@ module Zernio
87
87
  invalid_properties.push('invalid value for "default_playlist_id", default_playlist_id cannot be nil.')
88
88
  end
89
89
 
90
+ if @default_playlist_id.to_s.length < 1
91
+ invalid_properties.push('invalid value for "default_playlist_id", the character length must be greater than or equal to 1.')
92
+ end
93
+
90
94
  invalid_properties
91
95
  end
92
96
 
@@ -95,6 +99,7 @@ module Zernio
95
99
  def valid?
96
100
  warn '[DEPRECATED] the `valid?` method is obsolete'
97
101
  return false if @default_playlist_id.nil?
102
+ return false if @default_playlist_id.to_s.length < 1
98
103
  true
99
104
  end
100
105
 
@@ -105,6 +110,10 @@ module Zernio
105
110
  fail ArgumentError, 'default_playlist_id cannot be nil'
106
111
  end
107
112
 
113
+ if default_playlist_id.to_s.length < 1
114
+ fail ArgumentError, 'invalid value for "default_playlist_id", the character length must be greater than or equal to 1.'
115
+ end
116
+
108
117
  @default_playlist_id = default_playlist_id
109
118
  end
110
119
 
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.521'
14
+ VERSION = '0.0.523'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -556,7 +556,6 @@ require 'zernio-sdk/models/get_linked_in_post_reactions200_response'
556
556
  require 'zernio-sdk/models/get_linked_in_post_reactions200_response_pagination'
557
557
  require 'zernio-sdk/models/get_linked_in_post_reactions200_response_reactions_inner'
558
558
  require 'zernio-sdk/models/get_linked_in_post_reactions200_response_reactions_inner_from'
559
- require 'zernio-sdk/models/get_linked_in_post_reactions400_response'
560
559
  require 'zernio-sdk/models/get_linked_in_supply_forecast200_response'
561
560
  require 'zernio-sdk/models/get_linked_in_supply_forecast200_response_forecast_inner'
562
561
  require 'zernio-sdk/models/get_linked_in_supply_forecast200_response_forecast_inner_time_series_inner'
@@ -1012,6 +1011,7 @@ require 'zernio-sdk/models/select_linked_in_organization200_response'
1012
1011
  require 'zernio-sdk/models/select_linked_in_organization200_response_account'
1013
1012
  require 'zernio-sdk/models/select_linked_in_organization200_response_bulk_refresh'
1014
1013
  require 'zernio-sdk/models/select_linked_in_organization_request'
1014
+ require 'zernio-sdk/models/select_linked_in_organization_request_selected_organization'
1015
1015
  require 'zernio-sdk/models/select_pinterest_board200_response'
1016
1016
  require 'zernio-sdk/models/select_pinterest_board200_response_account'
1017
1017
  require 'zernio-sdk/models/select_pinterest_board_request'
@@ -1215,6 +1215,7 @@ require 'zernio-sdk/models/update_gmb_location_request'
1215
1215
  require 'zernio-sdk/models/update_google_business_attributes200_response'
1216
1216
  require 'zernio-sdk/models/update_google_business_attributes_request'
1217
1217
  require 'zernio-sdk/models/update_google_business_attributes_request_attributes_inner'
1218
+ require 'zernio-sdk/models/update_google_business_attributes_request_attributes_inner_uri_values_inner'
1218
1219
  require 'zernio-sdk/models/update_google_business_food_menus200_response'
1219
1220
  require 'zernio-sdk/models/update_google_business_food_menus_request'
1220
1221
  require 'zernio-sdk/models/update_google_business_location_details200_response'
@@ -1234,9 +1235,14 @@ require 'zernio-sdk/models/update_google_business_place_action_request'
1234
1235
  require 'zernio-sdk/models/update_google_business_services200_response'
1235
1236
  require 'zernio-sdk/models/update_google_business_services_request'
1236
1237
  require 'zernio-sdk/models/update_google_business_services_request_service_items_inner'
1238
+ require 'zernio-sdk/models/update_google_business_services_request_service_items_inner_free_form_service_item'
1239
+ require 'zernio-sdk/models/update_google_business_services_request_service_items_inner_free_form_service_item_label'
1240
+ require 'zernio-sdk/models/update_google_business_services_request_service_items_inner_price'
1241
+ require 'zernio-sdk/models/update_google_business_services_request_service_items_inner_structured_service_item'
1237
1242
  require 'zernio-sdk/models/update_inbox_conversation200_response'
1238
1243
  require 'zernio-sdk/models/update_inbox_conversation200_response_data'
1239
1244
  require 'zernio-sdk/models/update_inbox_conversation_request'
1245
+ require 'zernio-sdk/models/update_linked_in_organization200_response'
1240
1246
  require 'zernio-sdk/models/update_linked_in_organization_request'
1241
1247
  require 'zernio-sdk/models/update_pinterest_boards_request'
1242
1248
  require 'zernio-sdk/models/update_post_metadata200_response'