hubspot-api-client 17.0.0.pre.beta.4 → 17.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +48 -1
  3. data/Gemfile.lock +1 -1
  4. data/lib/hubspot/client.rb +1 -1
  5. data/lib/hubspot/codegen/automation/actions/api/callbacks_api.rb +2 -2
  6. data/lib/hubspot/codegen/automation/actions/configuration.rb +0 -7
  7. data/lib/hubspot/codegen/cms/blogs/authors/api/blog_authors_api.rb +14 -14
  8. data/lib/hubspot/codegen/cms/blogs/authors/configuration.rb +0 -7
  9. data/lib/hubspot/codegen/cms/blogs/tags/api/blog_tags_api.rb +14 -14
  10. data/lib/hubspot/codegen/cms/blogs/tags/configuration.rb +0 -7
  11. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  12. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  13. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +9 -9
  14. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +17 -17
  15. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +14 -14
  16. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +0 -7
  17. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +19 -19
  18. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  19. data/lib/hubspot/codegen/cms/performance/api/public_performance_api.rb +2 -2
  20. data/lib/hubspot/codegen/cms/performance/configuration.rb +0 -7
  21. data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +3 -3
  22. data/lib/hubspot/codegen/crm/associations/configuration.rb +0 -7
  23. data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +1 -1
  24. data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +0 -7
  25. data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +6 -6
  26. data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +5 -5
  27. data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +0 -7
  28. data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +18 -18
  29. data/lib/hubspot/codegen/crm/associations/v4/models/batch_read_input_simple_public_object_id.rb +20 -20
  30. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +41 -41
  31. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +52 -52
  32. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +41 -41
  33. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +52 -52
  34. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +52 -52
  35. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object.rb +41 -41
  36. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object_with_errors.rb +52 -52
  37. data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_associated_id.rb +13 -13
  38. data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +13 -13
  39. data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  40. data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +50 -50
  41. data/lib/hubspot/codegen/crm/associations/v4/models/error_category.rb +18 -18
  42. data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +28 -28
  43. data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +19 -19
  44. data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +18 -18
  45. data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +13 -13
  46. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_create_request.rb +18 -18
  47. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_update_request.rb +18 -18
  48. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +20 -20
  49. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +13 -13
  50. data/lib/hubspot/codegen/crm/associations/v4/models/public_associations_for_object.rb +18 -18
  51. data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +18 -18
  52. data/lib/hubspot/codegen/crm/associations/v4/models/public_gdpr_delete_input.rb +13 -13
  53. data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object.rb +44 -44
  54. data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_batch_input.rb +18 -18
  55. data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_input_for_create.rb +20 -20
  56. data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_with_associations.rb +49 -49
  57. data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +46 -46
  58. data/lib/hubspot/codegen/crm/associations/v4/models/standard_error1.rb +324 -0
  59. data/lib/hubspot/codegen/crm/associations/v4/models/value_with_timestamp.rb +33 -33
  60. data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +4 -4
  61. data/lib/hubspot/codegen/crm/associations/v4/schema/configuration.rb +0 -7
  62. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +5 -5
  63. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +4 -4
  64. data/lib/hubspot/codegen/crm/companies/api/public_object_api.rb +1 -1
  65. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
  66. data/lib/hubspot/codegen/crm/companies/configuration.rb +0 -7
  67. data/lib/hubspot/codegen/crm/companies/models/standard_error.rb +1 -1
  68. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +5 -5
  69. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +4 -4
  70. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +1 -1
  71. data/lib/hubspot/codegen/crm/contacts/api/public_object_api.rb +1 -1
  72. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
  73. data/lib/hubspot/codegen/crm/contacts/configuration.rb +0 -7
  74. data/lib/hubspot/codegen/crm/contacts/models/standard_error.rb +1 -1
  75. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +5 -5
  76. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +4 -4
  77. data/lib/hubspot/codegen/crm/deals/api/public_object_api.rb +1 -1
  78. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
  79. data/lib/hubspot/codegen/crm/deals/configuration.rb +0 -7
  80. data/lib/hubspot/codegen/crm/deals/models/standard_error.rb +1 -1
  81. data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +10 -10
  82. data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +3 -3
  83. data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +2 -2
  84. data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +2 -2
  85. data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +2 -2
  86. data/lib/hubspot/codegen/crm/extensions/accounting/configuration.rb +0 -7
  87. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api/settings_api.rb +3 -3
  88. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +0 -1
  89. data/lib/hubspot/codegen/crm/extensions/videoconferencing/configuration.rb +0 -7
  90. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
  91. data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +1 -1
  92. data/lib/hubspot/codegen/crm/imports/configuration.rb +0 -7
  93. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +5 -5
  94. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +4 -4
  95. data/lib/hubspot/codegen/crm/line_items/api/public_object_api.rb +1 -1
  96. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
  97. data/lib/hubspot/codegen/crm/line_items/configuration.rb +0 -7
  98. data/lib/hubspot/codegen/crm/line_items/models/standard_error.rb +1 -1
  99. data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +3 -3
  100. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +5 -5
  101. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +4 -4
  102. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +1 -1
  103. data/lib/hubspot/codegen/crm/objects/api/public_object_api.rb +1 -1
  104. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +1 -1
  105. data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +5 -5
  106. data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +4 -4
  107. data/lib/hubspot/codegen/crm/objects/calls/api/public_object_api.rb +1 -1
  108. data/lib/hubspot/codegen/crm/objects/calls/api/search_api.rb +1 -1
  109. data/lib/hubspot/codegen/crm/objects/calls/configuration.rb +0 -7
  110. data/lib/hubspot/codegen/crm/objects/calls/models/standard_error.rb +1 -1
  111. data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +5 -5
  112. data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +4 -4
  113. data/lib/hubspot/codegen/crm/objects/communications/api/public_object_api.rb +1 -1
  114. data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +1 -1
  115. data/lib/hubspot/codegen/crm/objects/communications/configuration.rb +0 -7
  116. data/lib/hubspot/codegen/crm/objects/communications/models/standard_error.rb +1 -1
  117. data/lib/hubspot/codegen/crm/objects/configuration.rb +0 -7
  118. data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +5 -5
  119. data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +4 -4
  120. data/lib/hubspot/codegen/crm/objects/emails/api/public_object_api.rb +1 -1
  121. data/lib/hubspot/codegen/crm/objects/emails/api/search_api.rb +1 -1
  122. data/lib/hubspot/codegen/crm/objects/emails/configuration.rb +0 -7
  123. data/lib/hubspot/codegen/crm/objects/emails/models/standard_error.rb +1 -1
  124. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +5 -5
  125. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +4 -4
  126. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/public_object_api.rb +1 -1
  127. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +1 -1
  128. data/lib/hubspot/codegen/crm/objects/feedback_submissions/configuration.rb +0 -7
  129. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/standard_error.rb +1 -1
  130. data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +5 -5
  131. data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +4 -4
  132. data/lib/hubspot/codegen/crm/objects/meetings/api/public_object_api.rb +1 -1
  133. data/lib/hubspot/codegen/crm/objects/meetings/api/search_api.rb +1 -1
  134. data/lib/hubspot/codegen/crm/objects/meetings/configuration.rb +0 -7
  135. data/lib/hubspot/codegen/crm/objects/meetings/models/standard_error.rb +1 -1
  136. data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +1 -1
  137. data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +5 -5
  138. data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +4 -4
  139. data/lib/hubspot/codegen/crm/objects/notes/api/public_object_api.rb +1 -1
  140. data/lib/hubspot/codegen/crm/objects/notes/api/search_api.rb +1 -1
  141. data/lib/hubspot/codegen/crm/objects/notes/configuration.rb +0 -7
  142. data/lib/hubspot/codegen/crm/objects/notes/models/standard_error.rb +1 -1
  143. data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +5 -5
  144. data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +4 -4
  145. data/lib/hubspot/codegen/crm/objects/postal_mail/api/public_object_api.rb +1 -1
  146. data/lib/hubspot/codegen/crm/objects/postal_mail/api/search_api.rb +1 -1
  147. data/lib/hubspot/codegen/crm/objects/postal_mail/configuration.rb +0 -7
  148. data/lib/hubspot/codegen/crm/objects/postal_mail/models/standard_error.rb +1 -1
  149. data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +5 -5
  150. data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +4 -4
  151. data/lib/hubspot/codegen/crm/objects/tasks/api/public_object_api.rb +1 -1
  152. data/lib/hubspot/codegen/crm/objects/tasks/api/search_api.rb +1 -1
  153. data/lib/hubspot/codegen/crm/objects/tasks/configuration.rb +0 -7
  154. data/lib/hubspot/codegen/crm/objects/tasks/models/standard_error.rb +1 -1
  155. data/lib/hubspot/codegen/crm/owners/api/owners_api.rb +2 -2
  156. data/lib/hubspot/codegen/crm/owners/configuration.rb +0 -7
  157. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_audits_api.rb +1 -1
  158. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stage_audits_api.rb +1 -1
  159. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +6 -6
  160. data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +6 -6
  161. data/lib/hubspot/codegen/crm/pipelines/configuration.rb +0 -7
  162. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +5 -5
  163. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +4 -4
  164. data/lib/hubspot/codegen/crm/products/api/public_object_api.rb +1 -1
  165. data/lib/hubspot/codegen/crm/products/api/search_api.rb +1 -1
  166. data/lib/hubspot/codegen/crm/products/configuration.rb +0 -7
  167. data/lib/hubspot/codegen/crm/products/models/standard_error.rb +1 -1
  168. data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +3 -3
  169. data/lib/hubspot/codegen/crm/properties/api/core_api.rb +5 -5
  170. data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +5 -5
  171. data/lib/hubspot/codegen/crm/properties/configuration.rb +0 -7
  172. data/lib/hubspot/codegen/crm/properties/models/standard_error.rb +1 -1
  173. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +5 -5
  174. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +4 -4
  175. data/lib/hubspot/codegen/crm/quotes/api/public_object_api.rb +1 -1
  176. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +1 -1
  177. data/lib/hubspot/codegen/crm/quotes/configuration.rb +0 -7
  178. data/lib/hubspot/codegen/crm/quotes/models/standard_error.rb +1 -1
  179. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +7 -7
  180. data/lib/hubspot/codegen/crm/schemas/api/public_object_schemas_api.rb +1 -1
  181. data/lib/hubspot/codegen/crm/schemas/configuration.rb +0 -7
  182. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +5 -5
  183. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +4 -4
  184. data/lib/hubspot/codegen/crm/tickets/api/public_object_api.rb +1 -1
  185. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
  186. data/lib/hubspot/codegen/crm/tickets/configuration.rb +0 -7
  187. data/lib/hubspot/codegen/crm/tickets/models/standard_error.rb +1 -1
  188. data/lib/hubspot/codegen/events/api/events_api.rb +1 -1
  189. data/lib/hubspot/codegen/events/configuration.rb +0 -7
  190. data/lib/hubspot/codegen/files/files/api/files_api.rb +10 -10
  191. data/lib/hubspot/codegen/files/files/api/folders_api.rb +8 -8
  192. data/lib/hubspot/codegen/files/files/configuration.rb +0 -7
  193. data/lib/hubspot/codegen/marketing/forms/api/forms_api.rb +6 -6
  194. data/lib/hubspot/codegen/marketing/forms/configuration.rb +0 -7
  195. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +1 -1
  196. data/lib/hubspot/codegen/marketing/transactional/configuration.rb +0 -7
  197. data/lib/hubspot/codegen/webhooks/models/standard_error.rb +1 -1
  198. data/lib/hubspot/discovery/oauth/client.rb +0 -4
  199. data/lib/hubspot/helpers/camel_case.rb +5 -1
  200. data/lib/hubspot/helpers/path.rb +1 -8
  201. data/lib/hubspot/helpers/snake_case.rb +2 -1
  202. data/lib/hubspot/oauth_helper.rb +12 -8
  203. data/lib/hubspot/version.rb +1 -1
  204. data/pkg/hubspot-api-client-17.0.0.gem +0 -0
  205. data/spec/discovery/client_spec.rb +1 -1
  206. data/spec/discovery/oauth/access_tokens_api_spec.rb +1 -1
  207. data/spec/discovery/oauth/refresh_tokens_api_spec.rb +1 -1
  208. data/spec/discovery/oauth/tokens_api_spec.rb +1 -1
  209. data/spec/helpers/authorize_url_spec.rb +75 -0
  210. metadata +8 -4
@@ -18,22 +18,22 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class BatchResponseSimplePublicObjectWithErrors
21
- attr_accessor :status
22
-
23
- attr_accessor :results
21
+ attr_accessor :completed_at
24
22
 
25
23
  attr_accessor :num_errors
26
24
 
27
- attr_accessor :errors
28
-
29
25
  attr_accessor :requested_at
30
26
 
31
27
  attr_accessor :started_at
32
28
 
33
- attr_accessor :completed_at
34
-
35
29
  attr_accessor :links
36
30
 
31
+ attr_accessor :results
32
+
33
+ attr_accessor :errors
34
+
35
+ attr_accessor :status
36
+
37
37
  class EnumAttributeValidator
38
38
  attr_reader :datatype
39
39
  attr_reader :allowable_values
@@ -59,14 +59,14 @@ module Hubspot
59
59
  # Attribute mapping from ruby-style variable name to JSON key.
60
60
  def self.attribute_map
61
61
  {
62
- :'status' => :'status',
63
- :'results' => :'results',
62
+ :'completed_at' => :'completedAt',
64
63
  :'num_errors' => :'numErrors',
65
- :'errors' => :'errors',
66
64
  :'requested_at' => :'requestedAt',
67
65
  :'started_at' => :'startedAt',
68
- :'completed_at' => :'completedAt',
69
- :'links' => :'links'
66
+ :'links' => :'links',
67
+ :'results' => :'results',
68
+ :'errors' => :'errors',
69
+ :'status' => :'status'
70
70
  }
71
71
  end
72
72
 
@@ -78,14 +78,14 @@ module Hubspot
78
78
  # Attribute type mapping.
79
79
  def self.openapi_types
80
80
  {
81
- :'status' => :'String',
82
- :'results' => :'Array<SimplePublicObject>',
81
+ :'completed_at' => :'Time',
83
82
  :'num_errors' => :'Integer',
84
- :'errors' => :'Array<StandardError>',
85
83
  :'requested_at' => :'Time',
86
84
  :'started_at' => :'Time',
87
- :'completed_at' => :'Time',
88
- :'links' => :'Hash<String, String>'
85
+ :'links' => :'Hash<String, String>',
86
+ :'results' => :'Array<SimplePublicObject>',
87
+ :'errors' => :'Array<StandardError1>',
88
+ :'status' => :'String'
89
89
  }
90
90
  end
91
91
 
@@ -110,26 +110,14 @@ module Hubspot
110
110
  h[k.to_sym] = v
111
111
  }
112
112
 
113
- if attributes.key?(:'status')
114
- self.status = attributes[:'status']
115
- end
116
-
117
- if attributes.key?(:'results')
118
- if (value = attributes[:'results']).is_a?(Array)
119
- self.results = value
120
- end
113
+ if attributes.key?(:'completed_at')
114
+ self.completed_at = attributes[:'completed_at']
121
115
  end
122
116
 
123
117
  if attributes.key?(:'num_errors')
124
118
  self.num_errors = attributes[:'num_errors']
125
119
  end
126
120
 
127
- if attributes.key?(:'errors')
128
- if (value = attributes[:'errors']).is_a?(Array)
129
- self.errors = value
130
- end
131
- end
132
-
133
121
  if attributes.key?(:'requested_at')
134
122
  self.requested_at = attributes[:'requested_at']
135
123
  end
@@ -138,35 +126,47 @@ module Hubspot
138
126
  self.started_at = attributes[:'started_at']
139
127
  end
140
128
 
141
- if attributes.key?(:'completed_at')
142
- self.completed_at = attributes[:'completed_at']
143
- end
144
-
145
129
  if attributes.key?(:'links')
146
130
  if (value = attributes[:'links']).is_a?(Hash)
147
131
  self.links = value
148
132
  end
149
133
  end
134
+
135
+ if attributes.key?(:'results')
136
+ if (value = attributes[:'results']).is_a?(Array)
137
+ self.results = value
138
+ end
139
+ end
140
+
141
+ if attributes.key?(:'errors')
142
+ if (value = attributes[:'errors']).is_a?(Array)
143
+ self.errors = value
144
+ end
145
+ end
146
+
147
+ if attributes.key?(:'status')
148
+ self.status = attributes[:'status']
149
+ end
150
150
  end
151
151
 
152
152
  # Show invalid properties with the reasons. Usually used together with valid?
153
153
  # @return Array for valid properties with the reasons
154
154
  def list_invalid_properties
155
155
  invalid_properties = Array.new
156
- if @status.nil?
157
- invalid_properties.push('invalid value for "status", status cannot be nil.')
158
- end
159
-
160
- if @results.nil?
161
- invalid_properties.push('invalid value for "results", results cannot be nil.')
156
+ if @completed_at.nil?
157
+ invalid_properties.push('invalid value for "completed_at", completed_at cannot be nil.')
162
158
  end
163
159
 
164
160
  if @started_at.nil?
165
161
  invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
166
162
  end
167
163
 
168
- if @completed_at.nil?
169
- invalid_properties.push('invalid value for "completed_at", completed_at cannot be nil.')
164
+ if @results.nil?
165
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
166
+ end
167
+
168
+ if @status.nil?
169
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
170
170
  end
171
171
 
172
172
  invalid_properties
@@ -175,12 +175,12 @@ module Hubspot
175
175
  # Check to see if the all the properties in the model are valid
176
176
  # @return true if the model is valid
177
177
  def valid?
178
+ return false if @completed_at.nil?
179
+ return false if @started_at.nil?
180
+ return false if @results.nil?
178
181
  return false if @status.nil?
179
182
  status_validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
180
183
  return false unless status_validator.valid?(@status)
181
- return false if @results.nil?
182
- return false if @started_at.nil?
183
- return false if @completed_at.nil?
184
184
  true
185
185
  end
186
186
 
@@ -199,14 +199,14 @@ module Hubspot
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
- status == o.status &&
203
- results == o.results &&
202
+ completed_at == o.completed_at &&
204
203
  num_errors == o.num_errors &&
205
- errors == o.errors &&
206
204
  requested_at == o.requested_at &&
207
205
  started_at == o.started_at &&
208
- completed_at == o.completed_at &&
209
- links == o.links
206
+ links == o.links &&
207
+ results == o.results &&
208
+ errors == o.errors &&
209
+ status == o.status
210
210
  end
211
211
 
212
212
  # @see the `==` method
@@ -218,7 +218,7 @@ module Hubspot
218
218
  # Calculates hash code according to all attributes.
219
219
  # @return [Integer] Hash code
220
220
  def hash
221
- [status, results, num_errors, errors, requested_at, started_at, completed_at, links].hash
221
+ [completed_at, num_errors, requested_at, started_at, links, results, errors, status].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -18,15 +18,15 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class CollectionResponseAssociatedId
21
- attr_accessor :results
22
-
23
21
  attr_accessor :paging
24
22
 
23
+ attr_accessor :results
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'results' => :'results',
29
- :'paging' => :'paging'
28
+ :'paging' => :'paging',
29
+ :'results' => :'results'
30
30
  }
31
31
  end
32
32
 
@@ -38,8 +38,8 @@ module Hubspot
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'results' => :'Array<AssociatedId>',
42
- :'paging' => :'Paging'
41
+ :'paging' => :'Paging',
42
+ :'results' => :'Array<AssociatedId>'
43
43
  }
44
44
  end
45
45
 
@@ -64,15 +64,15 @@ module Hubspot
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
+ if attributes.key?(:'paging')
68
+ self.paging = attributes[:'paging']
69
+ end
70
+
67
71
  if attributes.key?(:'results')
68
72
  if (value = attributes[:'results']).is_a?(Array)
69
73
  self.results = value
70
74
  end
71
75
  end
72
-
73
- if attributes.key?(:'paging')
74
- self.paging = attributes[:'paging']
75
- end
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -98,8 +98,8 @@ module Hubspot
98
98
  def ==(o)
99
99
  return true if self.equal?(o)
100
100
  self.class == o.class &&
101
- results == o.results &&
102
- paging == o.paging
101
+ paging == o.paging &&
102
+ results == o.results
103
103
  end
104
104
 
105
105
  # @see the `==` method
@@ -111,7 +111,7 @@ module Hubspot
111
111
  # Calculates hash code according to all attributes.
112
112
  # @return [Integer] Hash code
113
113
  def hash
114
- [results, paging].hash
114
+ [paging, results].hash
115
115
  end
116
116
 
117
117
  # Builds the object from hash
@@ -18,15 +18,15 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class CollectionResponseMultiAssociatedObjectWithLabelForwardPaging
21
- attr_accessor :results
22
-
23
21
  attr_accessor :paging
24
22
 
23
+ attr_accessor :results
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'results' => :'results',
29
- :'paging' => :'paging'
28
+ :'paging' => :'paging',
29
+ :'results' => :'results'
30
30
  }
31
31
  end
32
32
 
@@ -38,8 +38,8 @@ module Hubspot
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'results' => :'Array<MultiAssociatedObjectWithLabel>',
42
- :'paging' => :'ForwardPaging'
41
+ :'paging' => :'ForwardPaging',
42
+ :'results' => :'Array<MultiAssociatedObjectWithLabel>'
43
43
  }
44
44
  end
45
45
 
@@ -64,15 +64,15 @@ module Hubspot
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
+ if attributes.key?(:'paging')
68
+ self.paging = attributes[:'paging']
69
+ end
70
+
67
71
  if attributes.key?(:'results')
68
72
  if (value = attributes[:'results']).is_a?(Array)
69
73
  self.results = value
70
74
  end
71
75
  end
72
-
73
- if attributes.key?(:'paging')
74
- self.paging = attributes[:'paging']
75
- end
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -98,8 +98,8 @@ module Hubspot
98
98
  def ==(o)
99
99
  return true if self.equal?(o)
100
100
  self.class == o.class &&
101
- results == o.results &&
102
- paging == o.paging
101
+ paging == o.paging &&
102
+ results == o.results
103
103
  end
104
104
 
105
105
  # @see the `==` method
@@ -111,7 +111,7 @@ module Hubspot
111
111
  # Calculates hash code according to all attributes.
112
112
  # @return [Integer] Hash code
113
113
  def hash
114
- [results, paging].hash
114
+ [paging, results].hash
115
115
  end
116
116
 
117
117
  # Builds the object from hash
@@ -18,15 +18,15 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class CollectionResponseSimplePublicObjectWithAssociationsForwardPaging
21
- attr_accessor :results
22
-
23
21
  attr_accessor :paging
24
22
 
23
+ attr_accessor :results
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'results' => :'results',
29
- :'paging' => :'paging'
28
+ :'paging' => :'paging',
29
+ :'results' => :'results'
30
30
  }
31
31
  end
32
32
 
@@ -38,8 +38,8 @@ module Hubspot
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'results' => :'Array<SimplePublicObjectWithAssociations>',
42
- :'paging' => :'ForwardPaging'
41
+ :'paging' => :'ForwardPaging',
42
+ :'results' => :'Array<SimplePublicObjectWithAssociations>'
43
43
  }
44
44
  end
45
45
 
@@ -64,15 +64,15 @@ module Hubspot
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
+ if attributes.key?(:'paging')
68
+ self.paging = attributes[:'paging']
69
+ end
70
+
67
71
  if attributes.key?(:'results')
68
72
  if (value = attributes[:'results']).is_a?(Array)
69
73
  self.results = value
70
74
  end
71
75
  end
72
-
73
- if attributes.key?(:'paging')
74
- self.paging = attributes[:'paging']
75
- end
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -98,8 +98,8 @@ module Hubspot
98
98
  def ==(o)
99
99
  return true if self.equal?(o)
100
100
  self.class == o.class &&
101
- results == o.results &&
102
- paging == o.paging
101
+ paging == o.paging &&
102
+ results == o.results
103
103
  end
104
104
 
105
105
  # @see the `==` method
@@ -111,7 +111,7 @@ module Hubspot
111
111
  # Calculates hash code according to all attributes.
112
112
  # @return [Integer] Hash code
113
113
  def hash
114
- [results, paging].hash
114
+ [paging, results].hash
115
115
  end
116
116
 
117
117
  # Builds the object from hash
@@ -18,37 +18,37 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class Error
21
- # A human readable message describing the error along with remediation steps where appropriate
22
- attr_accessor :message
21
+ # A specific category that contains more specific detail about the error
22
+ attr_accessor :sub_category
23
+
24
+ # Context about the error condition
25
+ attr_accessor :context
23
26
 
24
27
  # A unique identifier for the request. Include this value with any error reports or support tickets
25
28
  attr_accessor :correlation_id
26
29
 
30
+ # A map of link names to associated URIs containing documentation about the error or recommended remediation steps
31
+ attr_accessor :links
32
+
33
+ # A human readable message describing the error along with remediation steps where appropriate
34
+ attr_accessor :message
35
+
27
36
  # The error category
28
37
  attr_accessor :category
29
38
 
30
- # A specific category that contains more specific detail about the error
31
- attr_accessor :sub_category
32
-
33
39
  # further information about the error
34
40
  attr_accessor :errors
35
41
 
36
- # Context about the error condition
37
- attr_accessor :context
38
-
39
- # A map of link names to associated URIs containing documentation about the error or recommended remediation steps
40
- attr_accessor :links
41
-
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
45
- :'message' => :'message',
46
- :'correlation_id' => :'correlationId',
47
- :'category' => :'category',
48
45
  :'sub_category' => :'subCategory',
49
- :'errors' => :'errors',
50
46
  :'context' => :'context',
51
- :'links' => :'links'
47
+ :'correlation_id' => :'correlationId',
48
+ :'links' => :'links',
49
+ :'message' => :'message',
50
+ :'category' => :'category',
51
+ :'errors' => :'errors'
52
52
  }
53
53
  end
54
54
 
@@ -60,13 +60,13 @@ module Hubspot
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'message' => :'String',
64
- :'correlation_id' => :'String',
65
- :'category' => :'String',
66
63
  :'sub_category' => :'String',
67
- :'errors' => :'Array<ErrorDetail>',
68
64
  :'context' => :'Hash<String, Array<String>>',
69
- :'links' => :'Hash<String, String>'
65
+ :'correlation_id' => :'String',
66
+ :'links' => :'Hash<String, String>',
67
+ :'message' => :'String',
68
+ :'category' => :'String',
69
+ :'errors' => :'Array<ErrorDetail>'
70
70
  }
71
71
  end
72
72
 
@@ -91,53 +91,53 @@ module Hubspot
91
91
  h[k.to_sym] = v
92
92
  }
93
93
 
94
- if attributes.key?(:'message')
95
- self.message = attributes[:'message']
96
- end
97
-
98
- if attributes.key?(:'correlation_id')
99
- self.correlation_id = attributes[:'correlation_id']
100
- end
101
-
102
- if attributes.key?(:'category')
103
- self.category = attributes[:'category']
104
- end
105
-
106
94
  if attributes.key?(:'sub_category')
107
95
  self.sub_category = attributes[:'sub_category']
108
96
  end
109
97
 
110
- if attributes.key?(:'errors')
111
- if (value = attributes[:'errors']).is_a?(Array)
112
- self.errors = value
113
- end
114
- end
115
-
116
98
  if attributes.key?(:'context')
117
99
  if (value = attributes[:'context']).is_a?(Hash)
118
100
  self.context = value
119
101
  end
120
102
  end
121
103
 
104
+ if attributes.key?(:'correlation_id')
105
+ self.correlation_id = attributes[:'correlation_id']
106
+ end
107
+
122
108
  if attributes.key?(:'links')
123
109
  if (value = attributes[:'links']).is_a?(Hash)
124
110
  self.links = value
125
111
  end
126
112
  end
113
+
114
+ if attributes.key?(:'message')
115
+ self.message = attributes[:'message']
116
+ end
117
+
118
+ if attributes.key?(:'category')
119
+ self.category = attributes[:'category']
120
+ end
121
+
122
+ if attributes.key?(:'errors')
123
+ if (value = attributes[:'errors']).is_a?(Array)
124
+ self.errors = value
125
+ end
126
+ end
127
127
  end
128
128
 
129
129
  # Show invalid properties with the reasons. Usually used together with valid?
130
130
  # @return Array for valid properties with the reasons
131
131
  def list_invalid_properties
132
132
  invalid_properties = Array.new
133
- if @message.nil?
134
- invalid_properties.push('invalid value for "message", message cannot be nil.')
135
- end
136
-
137
133
  if @correlation_id.nil?
138
134
  invalid_properties.push('invalid value for "correlation_id", correlation_id cannot be nil.')
139
135
  end
140
136
 
137
+ if @message.nil?
138
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
139
+ end
140
+
141
141
  if @category.nil?
142
142
  invalid_properties.push('invalid value for "category", category cannot be nil.')
143
143
  end
@@ -148,8 +148,8 @@ module Hubspot
148
148
  # Check to see if the all the properties in the model are valid
149
149
  # @return true if the model is valid
150
150
  def valid?
151
- return false if @message.nil?
152
151
  return false if @correlation_id.nil?
152
+ return false if @message.nil?
153
153
  return false if @category.nil?
154
154
  true
155
155
  end
@@ -159,13 +159,13 @@ module Hubspot
159
159
  def ==(o)
160
160
  return true if self.equal?(o)
161
161
  self.class == o.class &&
162
- message == o.message &&
163
- correlation_id == o.correlation_id &&
164
- category == o.category &&
165
162
  sub_category == o.sub_category &&
166
- errors == o.errors &&
167
163
  context == o.context &&
168
- links == o.links
164
+ correlation_id == o.correlation_id &&
165
+ links == o.links &&
166
+ message == o.message &&
167
+ category == o.category &&
168
+ errors == o.errors
169
169
  end
170
170
 
171
171
  # @see the `==` method
@@ -177,7 +177,7 @@ module Hubspot
177
177
  # Calculates hash code according to all attributes.
178
178
  # @return [Integer] Hash code
179
179
  def hash
180
- [message, correlation_id, category, sub_category, errors, context, links].hash
180
+ [sub_category, context, correlation_id, links, message, category, errors].hash
181
181
  end
182
182
 
183
183
  # Builds the object from hash