hubspot-api-client 17.0.0 → 17.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -2
  3. data/Gemfile.lock +1 -1
  4. data/lib/hubspot/codegen/automation/actions/api/callbacks_api.rb +2 -2
  5. data/lib/hubspot/codegen/automation/actions/configuration.rb +0 -7
  6. data/lib/hubspot/codegen/cms/blogs/authors/api/blog_authors_api.rb +14 -14
  7. data/lib/hubspot/codegen/cms/blogs/authors/configuration.rb +0 -7
  8. data/lib/hubspot/codegen/cms/blogs/tags/api/blog_tags_api.rb +14 -14
  9. data/lib/hubspot/codegen/cms/blogs/tags/configuration.rb +0 -7
  10. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  11. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  12. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +9 -9
  13. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +17 -17
  14. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +14 -14
  15. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +0 -7
  16. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +19 -19
  17. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  18. data/lib/hubspot/codegen/cms/performance/api/public_performance_api.rb +2 -2
  19. data/lib/hubspot/codegen/cms/performance/configuration.rb +0 -7
  20. data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +3 -3
  21. data/lib/hubspot/codegen/crm/associations/configuration.rb +0 -7
  22. data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +1 -1
  23. data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +0 -7
  24. data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +6 -6
  25. data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +5 -5
  26. data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +0 -7
  27. data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +18 -18
  28. data/lib/hubspot/codegen/crm/associations/v4/models/batch_read_input_simple_public_object_id.rb +20 -20
  29. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +41 -41
  30. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +52 -52
  31. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +41 -41
  32. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +52 -52
  33. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +52 -52
  34. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object.rb +41 -41
  35. data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object_with_errors.rb +52 -52
  36. data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_associated_id.rb +13 -13
  37. data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +13 -13
  38. data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
  39. data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +50 -50
  40. data/lib/hubspot/codegen/crm/associations/v4/models/error_category.rb +18 -18
  41. data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +28 -28
  42. data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +19 -19
  43. data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +18 -18
  44. data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +13 -13
  45. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_create_request.rb +18 -18
  46. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_update_request.rb +18 -18
  47. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +20 -20
  48. data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +13 -13
  49. data/lib/hubspot/codegen/crm/associations/v4/models/public_associations_for_object.rb +18 -18
  50. data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +18 -18
  51. data/lib/hubspot/codegen/crm/associations/v4/models/public_gdpr_delete_input.rb +13 -13
  52. data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object.rb +44 -44
  53. data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_batch_input.rb +18 -18
  54. data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_input_for_create.rb +20 -20
  55. data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_with_associations.rb +49 -49
  56. data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +46 -46
  57. data/lib/hubspot/codegen/crm/associations/v4/models/standard_error1.rb +324 -0
  58. data/lib/hubspot/codegen/crm/associations/v4/models/value_with_timestamp.rb +33 -33
  59. data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +4 -4
  60. data/lib/hubspot/codegen/crm/associations/v4/schema/configuration.rb +0 -7
  61. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +5 -5
  62. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +4 -4
  63. data/lib/hubspot/codegen/crm/companies/api/public_object_api.rb +1 -1
  64. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
  65. data/lib/hubspot/codegen/crm/companies/configuration.rb +0 -7
  66. data/lib/hubspot/codegen/crm/companies/models/standard_error.rb +1 -1
  67. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +5 -5
  68. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +4 -4
  69. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +1 -1
  70. data/lib/hubspot/codegen/crm/contacts/api/public_object_api.rb +1 -1
  71. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
  72. data/lib/hubspot/codegen/crm/contacts/configuration.rb +0 -7
  73. data/lib/hubspot/codegen/crm/contacts/models/standard_error.rb +1 -1
  74. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +5 -5
  75. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +4 -4
  76. data/lib/hubspot/codegen/crm/deals/api/public_object_api.rb +1 -1
  77. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
  78. data/lib/hubspot/codegen/crm/deals/configuration.rb +0 -7
  79. data/lib/hubspot/codegen/crm/deals/models/standard_error.rb +1 -1
  80. data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +10 -10
  81. data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +3 -3
  82. data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +2 -2
  83. data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +2 -2
  84. data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +2 -2
  85. data/lib/hubspot/codegen/crm/extensions/accounting/configuration.rb +0 -7
  86. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api/settings_api.rb +3 -3
  87. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +0 -1
  88. data/lib/hubspot/codegen/crm/extensions/videoconferencing/configuration.rb +0 -7
  89. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
  90. data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +1 -1
  91. data/lib/hubspot/codegen/crm/imports/configuration.rb +0 -7
  92. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +5 -5
  93. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +4 -4
  94. data/lib/hubspot/codegen/crm/line_items/api/public_object_api.rb +1 -1
  95. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
  96. data/lib/hubspot/codegen/crm/line_items/configuration.rb +0 -7
  97. data/lib/hubspot/codegen/crm/line_items/models/standard_error.rb +1 -1
  98. data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +3 -3
  99. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +5 -5
  100. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +4 -4
  101. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +1 -1
  102. data/lib/hubspot/codegen/crm/objects/api/public_object_api.rb +1 -1
  103. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +1 -1
  104. data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +5 -5
  105. data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +4 -4
  106. data/lib/hubspot/codegen/crm/objects/calls/api/public_object_api.rb +1 -1
  107. data/lib/hubspot/codegen/crm/objects/calls/api/search_api.rb +1 -1
  108. data/lib/hubspot/codegen/crm/objects/calls/configuration.rb +0 -7
  109. data/lib/hubspot/codegen/crm/objects/calls/models/standard_error.rb +1 -1
  110. data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +5 -5
  111. data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +4 -4
  112. data/lib/hubspot/codegen/crm/objects/communications/api/public_object_api.rb +1 -1
  113. data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +1 -1
  114. data/lib/hubspot/codegen/crm/objects/communications/configuration.rb +0 -7
  115. data/lib/hubspot/codegen/crm/objects/communications/models/standard_error.rb +1 -1
  116. data/lib/hubspot/codegen/crm/objects/configuration.rb +0 -7
  117. data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +5 -5
  118. data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +4 -4
  119. data/lib/hubspot/codegen/crm/objects/emails/api/public_object_api.rb +1 -1
  120. data/lib/hubspot/codegen/crm/objects/emails/api/search_api.rb +1 -1
  121. data/lib/hubspot/codegen/crm/objects/emails/configuration.rb +0 -7
  122. data/lib/hubspot/codegen/crm/objects/emails/models/standard_error.rb +1 -1
  123. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +5 -5
  124. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +4 -4
  125. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/public_object_api.rb +1 -1
  126. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +1 -1
  127. data/lib/hubspot/codegen/crm/objects/feedback_submissions/configuration.rb +0 -7
  128. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/standard_error.rb +1 -1
  129. data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +5 -5
  130. data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +4 -4
  131. data/lib/hubspot/codegen/crm/objects/meetings/api/public_object_api.rb +1 -1
  132. data/lib/hubspot/codegen/crm/objects/meetings/api/search_api.rb +1 -1
  133. data/lib/hubspot/codegen/crm/objects/meetings/configuration.rb +0 -7
  134. data/lib/hubspot/codegen/crm/objects/meetings/models/standard_error.rb +1 -1
  135. data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +1 -1
  136. data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +5 -5
  137. data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +4 -4
  138. data/lib/hubspot/codegen/crm/objects/notes/api/public_object_api.rb +1 -1
  139. data/lib/hubspot/codegen/crm/objects/notes/api/search_api.rb +1 -1
  140. data/lib/hubspot/codegen/crm/objects/notes/configuration.rb +0 -7
  141. data/lib/hubspot/codegen/crm/objects/notes/models/standard_error.rb +1 -1
  142. data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +5 -5
  143. data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +4 -4
  144. data/lib/hubspot/codegen/crm/objects/postal_mail/api/public_object_api.rb +1 -1
  145. data/lib/hubspot/codegen/crm/objects/postal_mail/api/search_api.rb +1 -1
  146. data/lib/hubspot/codegen/crm/objects/postal_mail/configuration.rb +0 -7
  147. data/lib/hubspot/codegen/crm/objects/postal_mail/models/standard_error.rb +1 -1
  148. data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +5 -5
  149. data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +4 -4
  150. data/lib/hubspot/codegen/crm/objects/tasks/api/public_object_api.rb +1 -1
  151. data/lib/hubspot/codegen/crm/objects/tasks/api/search_api.rb +1 -1
  152. data/lib/hubspot/codegen/crm/objects/tasks/configuration.rb +0 -7
  153. data/lib/hubspot/codegen/crm/objects/tasks/models/standard_error.rb +1 -1
  154. data/lib/hubspot/codegen/crm/owners/api/owners_api.rb +2 -2
  155. data/lib/hubspot/codegen/crm/owners/configuration.rb +0 -7
  156. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_audits_api.rb +1 -1
  157. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stage_audits_api.rb +1 -1
  158. data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +6 -6
  159. data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +6 -6
  160. data/lib/hubspot/codegen/crm/pipelines/configuration.rb +0 -7
  161. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +5 -5
  162. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +4 -4
  163. data/lib/hubspot/codegen/crm/products/api/public_object_api.rb +1 -1
  164. data/lib/hubspot/codegen/crm/products/api/search_api.rb +1 -1
  165. data/lib/hubspot/codegen/crm/products/configuration.rb +0 -7
  166. data/lib/hubspot/codegen/crm/products/models/standard_error.rb +1 -1
  167. data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +3 -3
  168. data/lib/hubspot/codegen/crm/properties/api/core_api.rb +5 -5
  169. data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +5 -5
  170. data/lib/hubspot/codegen/crm/properties/configuration.rb +0 -7
  171. data/lib/hubspot/codegen/crm/properties/models/standard_error.rb +1 -1
  172. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +5 -5
  173. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +4 -4
  174. data/lib/hubspot/codegen/crm/quotes/api/public_object_api.rb +1 -1
  175. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +1 -1
  176. data/lib/hubspot/codegen/crm/quotes/configuration.rb +0 -7
  177. data/lib/hubspot/codegen/crm/quotes/models/standard_error.rb +1 -1
  178. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +7 -7
  179. data/lib/hubspot/codegen/crm/schemas/api/public_object_schemas_api.rb +1 -1
  180. data/lib/hubspot/codegen/crm/schemas/configuration.rb +0 -7
  181. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +5 -5
  182. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +4 -4
  183. data/lib/hubspot/codegen/crm/tickets/api/public_object_api.rb +1 -1
  184. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
  185. data/lib/hubspot/codegen/crm/tickets/configuration.rb +0 -7
  186. data/lib/hubspot/codegen/crm/tickets/models/standard_error.rb +1 -1
  187. data/lib/hubspot/codegen/events/api/events_api.rb +1 -1
  188. data/lib/hubspot/codegen/events/configuration.rb +0 -7
  189. data/lib/hubspot/codegen/files/files/api/files_api.rb +10 -10
  190. data/lib/hubspot/codegen/files/files/api/folders_api.rb +8 -8
  191. data/lib/hubspot/codegen/files/files/configuration.rb +0 -7
  192. data/lib/hubspot/codegen/marketing/forms/api/forms_api.rb +6 -6
  193. data/lib/hubspot/codegen/marketing/forms/configuration.rb +0 -7
  194. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +1 -1
  195. data/lib/hubspot/codegen/marketing/transactional/configuration.rb +0 -7
  196. data/lib/hubspot/codegen/webhooks/models/standard_error.rb +1 -1
  197. data/lib/hubspot/helpers/path.rb +0 -6
  198. data/lib/hubspot/version.rb +1 -1
  199. data/pkg/hubspot-api-client-17.0.0.gem +0 -0
  200. metadata +4 -2
@@ -18,30 +18,30 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class SimplePublicObject
21
- attr_accessor :id
21
+ attr_accessor :created_at
22
22
 
23
- attr_accessor :properties
23
+ attr_accessor :archived
24
24
 
25
- attr_accessor :properties_with_history
25
+ attr_accessor :archived_at
26
26
 
27
- attr_accessor :created_at
27
+ attr_accessor :properties_with_history
28
28
 
29
- attr_accessor :updated_at
29
+ attr_accessor :id
30
30
 
31
- attr_accessor :archived
31
+ attr_accessor :properties
32
32
 
33
- attr_accessor :archived_at
33
+ attr_accessor :updated_at
34
34
 
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
- :'id' => :'id',
39
- :'properties' => :'properties',
40
- :'properties_with_history' => :'propertiesWithHistory',
41
38
  :'created_at' => :'createdAt',
42
- :'updated_at' => :'updatedAt',
43
39
  :'archived' => :'archived',
44
- :'archived_at' => :'archivedAt'
40
+ :'archived_at' => :'archivedAt',
41
+ :'properties_with_history' => :'propertiesWithHistory',
42
+ :'id' => :'id',
43
+ :'properties' => :'properties',
44
+ :'updated_at' => :'updatedAt'
45
45
  }
46
46
  end
47
47
 
@@ -53,13 +53,13 @@ module Hubspot
53
53
  # Attribute type mapping.
54
54
  def self.openapi_types
55
55
  {
56
- :'id' => :'String',
57
- :'properties' => :'Hash<String, String>',
58
- :'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>',
59
56
  :'created_at' => :'Time',
60
- :'updated_at' => :'Time',
61
57
  :'archived' => :'Boolean',
62
- :'archived_at' => :'Time'
58
+ :'archived_at' => :'Time',
59
+ :'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>',
60
+ :'id' => :'String',
61
+ :'properties' => :'Hash<String, String>',
62
+ :'updated_at' => :'Time'
63
63
  }
64
64
  end
65
65
 
@@ -84,14 +84,16 @@ module Hubspot
84
84
  h[k.to_sym] = v
85
85
  }
86
86
 
87
- if attributes.key?(:'id')
88
- self.id = attributes[:'id']
87
+ if attributes.key?(:'created_at')
88
+ self.created_at = attributes[:'created_at']
89
89
  end
90
90
 
91
- if attributes.key?(:'properties')
92
- if (value = attributes[:'properties']).is_a?(Hash)
93
- self.properties = value
94
- end
91
+ if attributes.key?(:'archived')
92
+ self.archived = attributes[:'archived']
93
+ end
94
+
95
+ if attributes.key?(:'archived_at')
96
+ self.archived_at = attributes[:'archived_at']
95
97
  end
96
98
 
97
99
  if attributes.key?(:'properties_with_history')
@@ -100,20 +102,18 @@ module Hubspot
100
102
  end
101
103
  end
102
104
 
103
- if attributes.key?(:'created_at')
104
- self.created_at = attributes[:'created_at']
105
- end
106
-
107
- if attributes.key?(:'updated_at')
108
- self.updated_at = attributes[:'updated_at']
105
+ if attributes.key?(:'id')
106
+ self.id = attributes[:'id']
109
107
  end
110
108
 
111
- if attributes.key?(:'archived')
112
- self.archived = attributes[:'archived']
109
+ if attributes.key?(:'properties')
110
+ if (value = attributes[:'properties']).is_a?(Hash)
111
+ self.properties = value
112
+ end
113
113
  end
114
114
 
115
- if attributes.key?(:'archived_at')
116
- self.archived_at = attributes[:'archived_at']
115
+ if attributes.key?(:'updated_at')
116
+ self.updated_at = attributes[:'updated_at']
117
117
  end
118
118
  end
119
119
 
@@ -121,6 +121,10 @@ module Hubspot
121
121
  # @return Array for valid properties with the reasons
122
122
  def list_invalid_properties
123
123
  invalid_properties = Array.new
124
+ if @created_at.nil?
125
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
126
+ end
127
+
124
128
  if @id.nil?
125
129
  invalid_properties.push('invalid value for "id", id cannot be nil.')
126
130
  end
@@ -129,10 +133,6 @@ module Hubspot
129
133
  invalid_properties.push('invalid value for "properties", properties cannot be nil.')
130
134
  end
131
135
 
132
- if @created_at.nil?
133
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
- end
135
-
136
136
  if @updated_at.nil?
137
137
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
138
138
  end
@@ -143,9 +143,9 @@ module Hubspot
143
143
  # Check to see if the all the properties in the model are valid
144
144
  # @return true if the model is valid
145
145
  def valid?
146
+ return false if @created_at.nil?
146
147
  return false if @id.nil?
147
148
  return false if @properties.nil?
148
- return false if @created_at.nil?
149
149
  return false if @updated_at.nil?
150
150
  true
151
151
  end
@@ -155,13 +155,13 @@ module Hubspot
155
155
  def ==(o)
156
156
  return true if self.equal?(o)
157
157
  self.class == o.class &&
158
- id == o.id &&
159
- properties == o.properties &&
160
- properties_with_history == o.properties_with_history &&
161
158
  created_at == o.created_at &&
162
- updated_at == o.updated_at &&
163
159
  archived == o.archived &&
164
- archived_at == o.archived_at
160
+ archived_at == o.archived_at &&
161
+ properties_with_history == o.properties_with_history &&
162
+ id == o.id &&
163
+ properties == o.properties &&
164
+ updated_at == o.updated_at
165
165
  end
166
166
 
167
167
  # @see the `==` method
@@ -173,7 +173,7 @@ module Hubspot
173
173
  # Calculates hash code according to all attributes.
174
174
  # @return [Integer] Hash code
175
175
  def hash
176
- [id, properties, properties_with_history, created_at, updated_at, archived, archived_at].hash
176
+ [created_at, archived, archived_at, properties_with_history, id, properties, updated_at].hash
177
177
  end
178
178
 
179
179
  # Builds the object from hash
@@ -18,15 +18,15 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class SimplePublicObjectBatchInput
21
- attr_accessor :properties
22
-
23
21
  attr_accessor :id
24
22
 
23
+ attr_accessor :properties
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'properties' => :'properties',
29
- :'id' => :'id'
28
+ :'id' => :'id',
29
+ :'properties' => :'properties'
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
- :'properties' => :'Hash<String, String>',
42
- :'id' => :'String'
41
+ :'id' => :'String',
42
+ :'properties' => :'Hash<String, String>'
43
43
  }
44
44
  end
45
45
 
@@ -64,37 +64,37 @@ module Hubspot
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
+ if attributes.key?(:'id')
68
+ self.id = attributes[:'id']
69
+ end
70
+
67
71
  if attributes.key?(:'properties')
68
72
  if (value = attributes[:'properties']).is_a?(Hash)
69
73
  self.properties = value
70
74
  end
71
75
  end
72
-
73
- if attributes.key?(:'id')
74
- self.id = attributes[:'id']
75
- end
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
79
79
  # @return Array for valid properties with the reasons
80
80
  def list_invalid_properties
81
81
  invalid_properties = Array.new
82
- if @properties.nil?
83
- invalid_properties.push('invalid value for "properties", properties cannot be nil.')
84
- end
85
-
86
82
  if @id.nil?
87
83
  invalid_properties.push('invalid value for "id", id cannot be nil.')
88
84
  end
89
85
 
86
+ if @properties.nil?
87
+ invalid_properties.push('invalid value for "properties", properties cannot be nil.')
88
+ end
89
+
90
90
  invalid_properties
91
91
  end
92
92
 
93
93
  # Check to see if the all the properties in the model are valid
94
94
  # @return true if the model is valid
95
95
  def valid?
96
- return false if @properties.nil?
97
96
  return false if @id.nil?
97
+ return false if @properties.nil?
98
98
  true
99
99
  end
100
100
 
@@ -103,8 +103,8 @@ module Hubspot
103
103
  def ==(o)
104
104
  return true if self.equal?(o)
105
105
  self.class == o.class &&
106
- properties == o.properties &&
107
- id == o.id
106
+ id == o.id &&
107
+ properties == o.properties
108
108
  end
109
109
 
110
110
  # @see the `==` method
@@ -116,7 +116,7 @@ module Hubspot
116
116
  # Calculates hash code according to all attributes.
117
117
  # @return [Integer] Hash code
118
118
  def hash
119
- [properties, id].hash
119
+ [id, properties].hash
120
120
  end
121
121
 
122
122
  # Builds the object from hash
@@ -18,15 +18,15 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class SimplePublicObjectInputForCreate
21
- attr_accessor :properties
22
-
23
21
  attr_accessor :associations
24
22
 
23
+ attr_accessor :properties
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'properties' => :'properties',
29
- :'associations' => :'associations'
28
+ :'associations' => :'associations',
29
+ :'properties' => :'properties'
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
- :'properties' => :'Hash<String, String>',
42
- :'associations' => :'Array<PublicAssociationsForObject>'
41
+ :'associations' => :'Array<PublicAssociationsForObject>',
42
+ :'properties' => :'Hash<String, String>'
43
43
  }
44
44
  end
45
45
 
@@ -64,39 +64,39 @@ module Hubspot
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
- if attributes.key?(:'properties')
68
- if (value = attributes[:'properties']).is_a?(Hash)
69
- self.properties = value
70
- end
71
- end
72
-
73
67
  if attributes.key?(:'associations')
74
68
  if (value = attributes[:'associations']).is_a?(Array)
75
69
  self.associations = value
76
70
  end
77
71
  end
72
+
73
+ if attributes.key?(:'properties')
74
+ if (value = attributes[:'properties']).is_a?(Hash)
75
+ self.properties = value
76
+ end
77
+ end
78
78
  end
79
79
 
80
80
  # Show invalid properties with the reasons. Usually used together with valid?
81
81
  # @return Array for valid properties with the reasons
82
82
  def list_invalid_properties
83
83
  invalid_properties = Array.new
84
- if @properties.nil?
85
- invalid_properties.push('invalid value for "properties", properties cannot be nil.')
86
- end
87
-
88
84
  if @associations.nil?
89
85
  invalid_properties.push('invalid value for "associations", associations cannot be nil.')
90
86
  end
91
87
 
88
+ if @properties.nil?
89
+ invalid_properties.push('invalid value for "properties", properties cannot be nil.')
90
+ end
91
+
92
92
  invalid_properties
93
93
  end
94
94
 
95
95
  # Check to see if the all the properties in the model are valid
96
96
  # @return true if the model is valid
97
97
  def valid?
98
- return false if @properties.nil?
99
98
  return false if @associations.nil?
99
+ return false if @properties.nil?
100
100
  true
101
101
  end
102
102
 
@@ -105,8 +105,8 @@ module Hubspot
105
105
  def ==(o)
106
106
  return true if self.equal?(o)
107
107
  self.class == o.class &&
108
- properties == o.properties &&
109
- associations == o.associations
108
+ associations == o.associations &&
109
+ properties == o.properties
110
110
  end
111
111
 
112
112
  # @see the `==` method
@@ -118,7 +118,7 @@ module Hubspot
118
118
  # Calculates hash code according to all attributes.
119
119
  # @return [Integer] Hash code
120
120
  def hash
121
- [properties, associations].hash
121
+ [associations, properties].hash
122
122
  end
123
123
 
124
124
  # Builds the object from hash
@@ -18,33 +18,33 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class SimplePublicObjectWithAssociations
21
- attr_accessor :id
22
-
23
- attr_accessor :properties
24
-
25
- attr_accessor :properties_with_history
21
+ attr_accessor :associations
26
22
 
27
23
  attr_accessor :created_at
28
24
 
29
- attr_accessor :updated_at
30
-
31
25
  attr_accessor :archived
32
26
 
33
27
  attr_accessor :archived_at
34
28
 
35
- attr_accessor :associations
29
+ attr_accessor :properties_with_history
30
+
31
+ attr_accessor :id
32
+
33
+ attr_accessor :properties
34
+
35
+ attr_accessor :updated_at
36
36
 
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
38
38
  def self.attribute_map
39
39
  {
40
- :'id' => :'id',
41
- :'properties' => :'properties',
42
- :'properties_with_history' => :'propertiesWithHistory',
40
+ :'associations' => :'associations',
43
41
  :'created_at' => :'createdAt',
44
- :'updated_at' => :'updatedAt',
45
42
  :'archived' => :'archived',
46
43
  :'archived_at' => :'archivedAt',
47
- :'associations' => :'associations'
44
+ :'properties_with_history' => :'propertiesWithHistory',
45
+ :'id' => :'id',
46
+ :'properties' => :'properties',
47
+ :'updated_at' => :'updatedAt'
48
48
  }
49
49
  end
50
50
 
@@ -56,14 +56,14 @@ module Hubspot
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
- :'id' => :'String',
60
- :'properties' => :'Hash<String, String>',
61
- :'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>',
59
+ :'associations' => :'Hash<String, CollectionResponseAssociatedId>',
62
60
  :'created_at' => :'Time',
63
- :'updated_at' => :'Time',
64
61
  :'archived' => :'Boolean',
65
62
  :'archived_at' => :'Time',
66
- :'associations' => :'Hash<String, CollectionResponseAssociatedId>'
63
+ :'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>',
64
+ :'id' => :'String',
65
+ :'properties' => :'Hash<String, String>',
66
+ :'updated_at' => :'Time'
67
67
  }
68
68
  end
69
69
 
@@ -88,19 +88,9 @@ module Hubspot
88
88
  h[k.to_sym] = v
89
89
  }
90
90
 
91
- if attributes.key?(:'id')
92
- self.id = attributes[:'id']
93
- end
94
-
95
- if attributes.key?(:'properties')
96
- if (value = attributes[:'properties']).is_a?(Hash)
97
- self.properties = value
98
- end
99
- end
100
-
101
- if attributes.key?(:'properties_with_history')
102
- if (value = attributes[:'properties_with_history']).is_a?(Hash)
103
- self.properties_with_history = value
91
+ if attributes.key?(:'associations')
92
+ if (value = attributes[:'associations']).is_a?(Hash)
93
+ self.associations = value
104
94
  end
105
95
  end
106
96
 
@@ -108,10 +98,6 @@ module Hubspot
108
98
  self.created_at = attributes[:'created_at']
109
99
  end
110
100
 
111
- if attributes.key?(:'updated_at')
112
- self.updated_at = attributes[:'updated_at']
113
- end
114
-
115
101
  if attributes.key?(:'archived')
116
102
  self.archived = attributes[:'archived']
117
103
  end
@@ -120,17 +106,35 @@ module Hubspot
120
106
  self.archived_at = attributes[:'archived_at']
121
107
  end
122
108
 
123
- if attributes.key?(:'associations')
124
- if (value = attributes[:'associations']).is_a?(Hash)
125
- self.associations = value
109
+ if attributes.key?(:'properties_with_history')
110
+ if (value = attributes[:'properties_with_history']).is_a?(Hash)
111
+ self.properties_with_history = value
112
+ end
113
+ end
114
+
115
+ if attributes.key?(:'id')
116
+ self.id = attributes[:'id']
117
+ end
118
+
119
+ if attributes.key?(:'properties')
120
+ if (value = attributes[:'properties']).is_a?(Hash)
121
+ self.properties = value
126
122
  end
127
123
  end
124
+
125
+ if attributes.key?(:'updated_at')
126
+ self.updated_at = attributes[:'updated_at']
127
+ end
128
128
  end
129
129
 
130
130
  # Show invalid properties with the reasons. Usually used together with valid?
131
131
  # @return Array for valid properties with the reasons
132
132
  def list_invalid_properties
133
133
  invalid_properties = Array.new
134
+ if @created_at.nil?
135
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
136
+ end
137
+
134
138
  if @id.nil?
135
139
  invalid_properties.push('invalid value for "id", id cannot be nil.')
136
140
  end
@@ -139,10 +143,6 @@ module Hubspot
139
143
  invalid_properties.push('invalid value for "properties", properties cannot be nil.')
140
144
  end
141
145
 
142
- if @created_at.nil?
143
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
144
- end
145
-
146
146
  if @updated_at.nil?
147
147
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
148
148
  end
@@ -153,9 +153,9 @@ module Hubspot
153
153
  # Check to see if the all the properties in the model are valid
154
154
  # @return true if the model is valid
155
155
  def valid?
156
+ return false if @created_at.nil?
156
157
  return false if @id.nil?
157
158
  return false if @properties.nil?
158
- return false if @created_at.nil?
159
159
  return false if @updated_at.nil?
160
160
  true
161
161
  end
@@ -165,14 +165,14 @@ module Hubspot
165
165
  def ==(o)
166
166
  return true if self.equal?(o)
167
167
  self.class == o.class &&
168
- id == o.id &&
169
- properties == o.properties &&
170
- properties_with_history == o.properties_with_history &&
168
+ associations == o.associations &&
171
169
  created_at == o.created_at &&
172
- updated_at == o.updated_at &&
173
170
  archived == o.archived &&
174
171
  archived_at == o.archived_at &&
175
- associations == o.associations
172
+ properties_with_history == o.properties_with_history &&
173
+ id == o.id &&
174
+ properties == o.properties &&
175
+ updated_at == o.updated_at
176
176
  end
177
177
 
178
178
  # @see the `==` method
@@ -184,7 +184,7 @@ module Hubspot
184
184
  # Calculates hash code according to all attributes.
185
185
  # @return [Integer] Hash code
186
186
  def hash
187
- [id, properties, properties_with_history, created_at, updated_at, archived, archived_at, associations].hash
187
+ [associations, created_at, archived, archived_at, properties_with_history, id, properties, updated_at].hash
188
188
  end
189
189
 
190
190
  # Builds the object from hash