hubspot-api-client 16.2.1 → 16.3.0

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 (65) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +33 -1
  5. data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +428 -0
  6. data/lib/hubspot/codegen/crm/associations/v4/api/definitions_api.rb +332 -0
  7. data/lib/hubspot/codegen/crm/associations/v4/api_client.rb +412 -0
  8. data/lib/hubspot/codegen/crm/associations/v4/api_error.rb +63 -0
  9. data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +296 -0
  10. data/lib/hubspot/codegen/crm/associations/v4/models/association_spec.rb +278 -0
  11. data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +287 -0
  12. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_archive.rb +232 -0
  13. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_post.rb +232 -0
  14. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_default_association_multi_post.rb +232 -0
  15. data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_fetch_associations_batch_request.rb +232 -0
  16. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +328 -0
  17. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +348 -0
  18. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +328 -0
  19. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +348 -0
  20. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +348 -0
  21. data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_association_spec_with_label_no_paging.rb +232 -0
  22. data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +307 -0
  23. data/lib/hubspot/codegen/crm/associations/v4/models/error_category.rb +278 -0
  24. data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +273 -0
  25. data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +288 -0
  26. data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +246 -0
  27. data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +239 -0
  28. data/lib/hubspot/codegen/crm/associations/v4/models/paging.rb +234 -0
  29. data/lib/hubspot/codegen/crm/associations/v4/models/previous_page.rb +239 -0
  30. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_create_request.rb +244 -0
  31. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_update_request.rb +244 -0
  32. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_archive.rb +246 -0
  33. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +260 -0
  34. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +255 -0
  35. data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +258 -0
  36. data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association_multi_post.rb +244 -0
  37. data/lib/hubspot/codegen/crm/associations/v4/models/public_fetch_associations_batch_request.rb +239 -0
  38. data/lib/hubspot/codegen/crm/associations/v4/models/public_object_id.rb +230 -0
  39. data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +324 -0
  40. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +0 -2
  41. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +5 -7
  42. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +0 -2
  43. data/lib/hubspot/codegen/oauth/api_client.rb +0 -2
  44. data/lib/hubspot/codegen/oauth/api_error.rb +0 -2
  45. data/lib/hubspot/codegen/oauth/configuration.rb +0 -2
  46. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +0 -2
  47. data/lib/hubspot/codegen/oauth/models/error.rb +0 -2
  48. data/lib/hubspot/codegen/oauth/models/error_detail.rb +0 -2
  49. data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +0 -2
  50. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +31 -33
  51. data/lib/hubspot/discovery/crm/associations/client.rb +3 -1
  52. data/lib/hubspot/discovery/crm/associations/v4/api/batch_api.rb +15 -0
  53. data/lib/hubspot/discovery/crm/associations/v4/api/definitions_api.rb +15 -0
  54. data/lib/hubspot/discovery/crm/associations/v4/client.rb +21 -0
  55. data/lib/hubspot/version.rb +1 -1
  56. data/spec/discovery/cms/blogs/client_spec.rb +9 -0
  57. data/spec/discovery/cms/client_spec.rb +13 -0
  58. data/spec/discovery/crm/associations/client_spec.rb +7 -0
  59. data/spec/discovery/crm/associations/v4/batch_api_spec.rb +11 -0
  60. data/spec/discovery/crm/associations/v4/definitions_api_spec.rb +10 -0
  61. data/spec/discovery/crm/client_spec.rb +21 -0
  62. data/spec/discovery/crm/extensions/client_spec.rb +11 -0
  63. data/spec/discovery/crm/objects/client_spec.rb +13 -0
  64. data/spec/discovery/marketing/client_spec.rb +9 -0
  65. metadata +58 -2
@@ -0,0 +1,230 @@
1
+ =begin
2
+ #CrmPublicAssociationsServiceV4
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v4
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.2.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Hubspot
17
+ module Crm
18
+ module Associations
19
+ module V4
20
+ class PublicObjectId
21
+ attr_accessor :id
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'id' => :'id'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'id' => :'String'
39
+ }
40
+ end
41
+
42
+ # List of attributes with nullable: true
43
+ def self.openapi_nullable
44
+ Set.new([
45
+ ])
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ if (!attributes.is_a?(Hash))
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Associations::V4::PublicObjectId` initialize method"
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Associations::V4::PublicObjectId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'id')
64
+ self.id = attributes[:'id']
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ if @id.nil?
73
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
74
+ end
75
+
76
+ invalid_properties
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ def valid?
82
+ return false if @id.nil?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ id == o.id
92
+ end
93
+
94
+ # @see the `==` method
95
+ # @param [Object] Object to be compared
96
+ def eql?(o)
97
+ self == o
98
+ end
99
+
100
+ # Calculates hash code according to all attributes.
101
+ # @return [Integer] Hash code
102
+ def hash
103
+ [id].hash
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def self.build_from_hash(attributes)
110
+ new.build_from_hash(attributes)
111
+ end
112
+
113
+ # Builds the object from hash
114
+ # @param [Hash] attributes Model attributes in the form of hash
115
+ # @return [Object] Returns the model itself
116
+ def build_from_hash(attributes)
117
+ return nil unless attributes.is_a?(Hash)
118
+ attributes = attributes.transform_keys(&:to_sym)
119
+ self.class.openapi_types.each_pair do |key, type|
120
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
121
+ self.send("#{key}=", nil)
122
+ elsif type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :Time
143
+ Time.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :Boolean
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ # models (e.g. Pet) or oneOf
174
+ klass = Hubspot::Crm::Associations::V4.const_get(type)
175
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
176
+ end
177
+ end
178
+
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ if value.nil?
198
+ is_nullable = self.class.openapi_nullable.include?(attr)
199
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ end
201
+
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ # Outputs non-array value in the form of hash
208
+ # For object, use to_hash. Otherwise, just return the value
209
+ # @param [Object] value Any valid value
210
+ # @return [Hash] Returns the value in the form of hash
211
+ def _to_hash(value)
212
+ if value.is_a?(Array)
213
+ value.compact.map { |v| _to_hash(v) }
214
+ elsif value.is_a?(Hash)
215
+ {}.tap do |hash|
216
+ value.each { |k, v| hash[k] = _to_hash(v) }
217
+ end
218
+ elsif value.respond_to? :to_hash
219
+ value.to_hash
220
+ else
221
+ value
222
+ end
223
+ end
224
+
225
+ end
226
+
227
+ end
228
+ end
229
+ end
230
+ end
@@ -0,0 +1,324 @@
1
+ =begin
2
+ #CrmPublicAssociationsServiceV4
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v4
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.2.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Hubspot
17
+ module Crm
18
+ module Associations
19
+ module V4
20
+ class StandardError
21
+ attr_accessor :status
22
+
23
+ attr_accessor :id
24
+
25
+ attr_accessor :category
26
+
27
+ attr_accessor :sub_category
28
+
29
+ attr_accessor :message
30
+
31
+ attr_accessor :errors
32
+
33
+ attr_accessor :context
34
+
35
+ attr_accessor :links
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'status' => :'status',
41
+ :'id' => :'id',
42
+ :'category' => :'category',
43
+ :'sub_category' => :'subCategory',
44
+ :'message' => :'message',
45
+ :'errors' => :'errors',
46
+ :'context' => :'context',
47
+ :'links' => :'links'
48
+ }
49
+ end
50
+
51
+ # Returns all the JSON keys this model knows about
52
+ def self.acceptable_attributes
53
+ attribute_map.values
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.openapi_types
58
+ {
59
+ :'status' => :'String',
60
+ :'id' => :'String',
61
+ :'category' => :'ErrorCategory',
62
+ :'sub_category' => :'Object',
63
+ :'message' => :'String',
64
+ :'errors' => :'Array<ErrorDetail>',
65
+ :'context' => :'Hash<String, Array<String>>',
66
+ :'links' => :'Hash<String, String>'
67
+ }
68
+ end
69
+
70
+ # List of attributes with nullable: true
71
+ def self.openapi_nullable
72
+ Set.new([
73
+ ])
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Associations::V4::StandardError` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ attributes = attributes.each_with_object({}) { |(k, v), h|
85
+ if (!self.class.attribute_map.key?(k.to_sym))
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Associations::V4::StandardError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
+ end
88
+ h[k.to_sym] = v
89
+ }
90
+
91
+ if attributes.key?(:'status')
92
+ self.status = attributes[:'status']
93
+ end
94
+
95
+ if attributes.key?(:'id')
96
+ self.id = attributes[:'id']
97
+ end
98
+
99
+ if attributes.key?(:'category')
100
+ self.category = attributes[:'category']
101
+ end
102
+
103
+ if attributes.key?(:'sub_category')
104
+ self.sub_category = attributes[:'sub_category']
105
+ end
106
+
107
+ if attributes.key?(:'message')
108
+ self.message = attributes[:'message']
109
+ end
110
+
111
+ if attributes.key?(:'errors')
112
+ if (value = attributes[:'errors']).is_a?(Array)
113
+ self.errors = value
114
+ end
115
+ end
116
+
117
+ if attributes.key?(:'context')
118
+ if (value = attributes[:'context']).is_a?(Hash)
119
+ self.context = value
120
+ end
121
+ end
122
+
123
+ if attributes.key?(:'links')
124
+ if (value = attributes[:'links']).is_a?(Hash)
125
+ self.links = value
126
+ end
127
+ end
128
+ end
129
+
130
+ # Show invalid properties with the reasons. Usually used together with valid?
131
+ # @return Array for valid properties with the reasons
132
+ def list_invalid_properties
133
+ invalid_properties = Array.new
134
+ if @status.nil?
135
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
136
+ end
137
+
138
+ if @category.nil?
139
+ invalid_properties.push('invalid value for "category", category cannot be nil.')
140
+ end
141
+
142
+ if @message.nil?
143
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
144
+ end
145
+
146
+ if @errors.nil?
147
+ invalid_properties.push('invalid value for "errors", errors cannot be nil.')
148
+ end
149
+
150
+ if @context.nil?
151
+ invalid_properties.push('invalid value for "context", context cannot be nil.')
152
+ end
153
+
154
+ if @links.nil?
155
+ invalid_properties.push('invalid value for "links", links cannot be nil.')
156
+ end
157
+
158
+ invalid_properties
159
+ end
160
+
161
+ # Check to see if the all the properties in the model are valid
162
+ # @return true if the model is valid
163
+ def valid?
164
+ return false if @status.nil?
165
+ return false if @category.nil?
166
+ return false if @message.nil?
167
+ return false if @errors.nil?
168
+ return false if @context.nil?
169
+ return false if @links.nil?
170
+ true
171
+ end
172
+
173
+ # Checks equality by comparing each attribute.
174
+ # @param [Object] Object to be compared
175
+ def ==(o)
176
+ return true if self.equal?(o)
177
+ self.class == o.class &&
178
+ status == o.status &&
179
+ id == o.id &&
180
+ category == o.category &&
181
+ sub_category == o.sub_category &&
182
+ message == o.message &&
183
+ errors == o.errors &&
184
+ context == o.context &&
185
+ links == o.links
186
+ end
187
+
188
+ # @see the `==` method
189
+ # @param [Object] Object to be compared
190
+ def eql?(o)
191
+ self == o
192
+ end
193
+
194
+ # Calculates hash code according to all attributes.
195
+ # @return [Integer] Hash code
196
+ def hash
197
+ [status, id, category, sub_category, message, errors, context, links].hash
198
+ end
199
+
200
+ # Builds the object from hash
201
+ # @param [Hash] attributes Model attributes in the form of hash
202
+ # @return [Object] Returns the model itself
203
+ def self.build_from_hash(attributes)
204
+ new.build_from_hash(attributes)
205
+ end
206
+
207
+ # Builds the object from hash
208
+ # @param [Hash] attributes Model attributes in the form of hash
209
+ # @return [Object] Returns the model itself
210
+ def build_from_hash(attributes)
211
+ return nil unless attributes.is_a?(Hash)
212
+ attributes = attributes.transform_keys(&:to_sym)
213
+ self.class.openapi_types.each_pair do |key, type|
214
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
215
+ self.send("#{key}=", nil)
216
+ elsif type =~ /\AArray<(.*)>/i
217
+ # check to ensure the input is an array given that the attribute
218
+ # is documented as an array but the input is not
219
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
220
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
221
+ end
222
+ elsif !attributes[self.class.attribute_map[key]].nil?
223
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
224
+ end
225
+ end
226
+
227
+ self
228
+ end
229
+
230
+ # Deserializes the data based on type
231
+ # @param string type Data type
232
+ # @param string value Value to be deserialized
233
+ # @return [Object] Deserialized data
234
+ def _deserialize(type, value)
235
+ case type.to_sym
236
+ when :Time
237
+ Time.parse(value)
238
+ when :Date
239
+ Date.parse(value)
240
+ when :String
241
+ value.to_s
242
+ when :Integer
243
+ value.to_i
244
+ when :Float
245
+ value.to_f
246
+ when :Boolean
247
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
248
+ true
249
+ else
250
+ false
251
+ end
252
+ when :Object
253
+ # generic object (usually a Hash), return directly
254
+ value
255
+ when /\AArray<(?<inner_type>.+)>\z/
256
+ inner_type = Regexp.last_match[:inner_type]
257
+ value.map { |v| _deserialize(inner_type, v) }
258
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
259
+ k_type = Regexp.last_match[:k_type]
260
+ v_type = Regexp.last_match[:v_type]
261
+ {}.tap do |hash|
262
+ value.each do |k, v|
263
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
264
+ end
265
+ end
266
+ else # model
267
+ # models (e.g. Pet) or oneOf
268
+ klass = Hubspot::Crm::Associations::V4.const_get(type)
269
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
270
+ end
271
+ end
272
+
273
+ # Returns the string representation of the object
274
+ # @return [String] String presentation of the object
275
+ def to_s
276
+ to_hash.to_s
277
+ end
278
+
279
+ # to_body is an alias to to_hash (backward compatibility)
280
+ # @return [Hash] Returns the object in the form of hash
281
+ def to_body
282
+ to_hash
283
+ end
284
+
285
+ # Returns the object in the form of hash
286
+ # @return [Hash] Returns the object in the form of hash
287
+ def to_hash
288
+ hash = {}
289
+ self.class.attribute_map.each_pair do |attr, param|
290
+ value = self.send(attr)
291
+ if value.nil?
292
+ is_nullable = self.class.openapi_nullable.include?(attr)
293
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
294
+ end
295
+
296
+ hash[param] = _to_hash(value)
297
+ end
298
+ hash
299
+ end
300
+
301
+ # Outputs non-array value in the form of hash
302
+ # For object, use to_hash. Otherwise, just return the value
303
+ # @param [Object] value Any valid value
304
+ # @return [Hash] Returns the value in the form of hash
305
+ def _to_hash(value)
306
+ if value.is_a?(Array)
307
+ value.compact.map { |v| _to_hash(v) }
308
+ elsif value.is_a?(Hash)
309
+ {}.tap do |hash|
310
+ value.each { |k, v| hash[k] = _to_hash(v) }
311
+ end
312
+ elsif value.respond_to? :to_hash
313
+ value.to_hash
314
+ else
315
+ value
316
+ end
317
+ end
318
+
319
+ end
320
+
321
+ end
322
+ end
323
+ end
324
+ end
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1
@@ -22,15 +20,15 @@ module Hubspot
22
20
  end
23
21
  # @param token [String]
24
22
  # @param [Hash] opts the optional parameters
25
- # @return [Error]
23
+ # @return [nil]
26
24
  def archive_refresh_token(token, opts = {})
27
- data, _status_code, _headers = archive_refresh_token_with_http_info(token, opts)
28
- data
25
+ archive_refresh_token_with_http_info(token, opts)
26
+ nil
29
27
  end
30
28
 
31
29
  # @param token [String]
32
30
  # @param [Hash] opts the optional parameters
33
- # @return [Array<(Error, Integer, Hash)>] Error data, response status code and response headers
31
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
34
32
  def archive_refresh_token_with_http_info(token, opts = {})
35
33
  if @api_client.config.debugging
36
34
  @api_client.config.logger.debug 'Calling API: RefreshTokensApi.archive_refresh_token ...'
@@ -57,7 +55,7 @@ module Hubspot
57
55
  post_body = opts[:debug_body]
58
56
 
59
57
  # return_type
60
- return_type = opts[:debug_return_type] || 'Error'
58
+ return_type = opts[:debug_return_type]
61
59
 
62
60
  # auth_names
63
61
  auth_names = opts[:debug_auth_names] || []
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1
@@ -1,6 +1,4 @@
1
1
  =begin
2
- #OAuthService
3
-
4
2
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
3
 
6
4
  The version of the OpenAPI document: v1