hubspot-api-client 17.0.0 → 17.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -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/discovery/base_api_client.rb +1 -1
  198. data/lib/hubspot/helpers/path.rb +0 -6
  199. data/lib/hubspot/version.rb +1 -1
  200. data/pkg/hubspot-api-client-17.0.0.gem +0 -0
  201. metadata +4 -2
@@ -18,10 +18,10 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class ErrorCategory
21
- attr_accessor :name
22
-
23
21
  attr_accessor :http_status
24
22
 
23
+ attr_accessor :name
24
+
25
25
  class EnumAttributeValidator
26
26
  attr_reader :datatype
27
27
  attr_reader :allowable_values
@@ -47,8 +47,8 @@ module Hubspot
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'name' => :'name',
51
- :'http_status' => :'httpStatus'
50
+ :'http_status' => :'httpStatus',
51
+ :'name' => :'name'
52
52
  }
53
53
  end
54
54
 
@@ -60,8 +60,8 @@ module Hubspot
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'name' => :'String',
64
- :'http_status' => :'String'
63
+ :'http_status' => :'String',
64
+ :'name' => :'String'
65
65
  }
66
66
  end
67
67
 
@@ -86,37 +86,37 @@ module Hubspot
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'name')
90
- self.name = attributes[:'name']
91
- end
92
-
93
89
  if attributes.key?(:'http_status')
94
90
  self.http_status = attributes[:'http_status']
95
91
  end
92
+
93
+ if attributes.key?(:'name')
94
+ self.name = attributes[:'name']
95
+ end
96
96
  end
97
97
 
98
98
  # Show invalid properties with the reasons. Usually used together with valid?
99
99
  # @return Array for valid properties with the reasons
100
100
  def list_invalid_properties
101
101
  invalid_properties = Array.new
102
- if @name.nil?
103
- invalid_properties.push('invalid value for "name", name cannot be nil.')
104
- end
105
-
106
102
  if @http_status.nil?
107
103
  invalid_properties.push('invalid value for "http_status", http_status cannot be nil.')
108
104
  end
109
105
 
106
+ if @name.nil?
107
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
108
+ end
109
+
110
110
  invalid_properties
111
111
  end
112
112
 
113
113
  # Check to see if the all the properties in the model are valid
114
114
  # @return true if the model is valid
115
115
  def valid?
116
- return false if @name.nil?
117
116
  return false if @http_status.nil?
118
117
  http_status_validator = EnumAttributeValidator.new('String', ["CONTINUE", "SWITCHING_PROTOCOLS", "PROCESSING", "OK", "CREATED", "ACCEPTED", "NON_AUTHORITATIVE_INFORMATION", "NO_CONTENT", "RESET_CONTENT", "PARTIAL_CONTENT", "MULTI_STATUS", "ALREADY_REPORTED", "IM_USED", "MULTIPLE_CHOICES", "MOVED_PERMANENTLY", "FOUND", "SEE_OTHER", "NOT_MODIFIED", "USE_PROXY", "TEMPORARY_REDIRECT", "PERMANENT_REDIRECT", "BAD_REQUEST", "UNAUTHORIZED", "PAYMENT_REQUIRED", "FORBIDDEN", "NOT_FOUND", "METHOD_NOT_ALLOWED", "NOT_ACCEPTABLE", "PROXY_AUTHENTICATION_REQUIRED", "REQUEST_TIMEOUT", "CONFLICT", "GONE", "LENGTH_REQUIRED", "PRECONDITION_FAILED", "REQUEST_ENTITY_TOO_LARGE", "REQUEST_URI_TOO_LONG", "UNSUPPORTED_MEDIA_TYPE", "REQUESTED_RANGE_NOT_SATISFIABLE", "EXPECTATION_FAILED", "IM_A_TEAPOT", "MISDIRECTED_REQUEST", "UNPROCESSABLE_ENTITY", "LOCKED", "FAILED_DEPENDENCY", "UPGRADE_REQUIRED", "PRECONDITION_REQUIRED", "TOO_MANY_REQUESTS", "REQUEST_HEADERS_FIELDS_TOO_LARGE", "INTERNAL_STALE_SERVICE_DISCOVERY", "UNAVAILABLE_FOR_LEGAL_REASONS", "MIGRATION_IN_PROGRESS", "INTERNAL_SERVER_ERROR", "NOT_IMPLEMENTED", "BAD_GATEWAY", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT", "HTTP_VERSION_NOT_SUPPORTED", "VARIANT_ALSO_NEGOTIATES", "INSUFFICIENT_STORAGE", "LOOP_DETECTED", "NOT_EXTENDED", "NETWORK_AUTHENTICATION_REQUIRED"])
119
118
  return false unless http_status_validator.valid?(@http_status)
119
+ return false if @name.nil?
120
120
  true
121
121
  end
122
122
 
@@ -135,8 +135,8 @@ module Hubspot
135
135
  def ==(o)
136
136
  return true if self.equal?(o)
137
137
  self.class == o.class &&
138
- name == o.name &&
139
- http_status == o.http_status
138
+ http_status == o.http_status &&
139
+ name == o.name
140
140
  end
141
141
 
142
142
  # @see the `==` method
@@ -148,7 +148,7 @@ module Hubspot
148
148
  # Calculates hash code according to all attributes.
149
149
  # @return [Integer] Hash code
150
150
  def hash
151
- [name, http_status].hash
151
+ [http_status, name].hash
152
152
  end
153
153
 
154
154
  # Builds the object from hash
@@ -18,29 +18,29 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class ErrorDetail
21
- # A human readable message describing the error along with remediation steps where appropriate
22
- attr_accessor :message
23
-
24
- # The name of the field or parameter in which the error was found.
25
- attr_accessor :_in
21
+ # A specific category that contains more specific detail about the error
22
+ attr_accessor :sub_category
26
23
 
27
24
  # The status code associated with the error detail
28
25
  attr_accessor :code
29
26
 
30
- # A specific category that contains more specific detail about the error
31
- attr_accessor :sub_category
27
+ # The name of the field or parameter in which the error was found.
28
+ attr_accessor :_in
32
29
 
33
30
  # Context about the error condition
34
31
  attr_accessor :context
35
32
 
33
+ # A human readable message describing the error along with remediation steps where appropriate
34
+ attr_accessor :message
35
+
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
- :'message' => :'message',
40
- :'_in' => :'in',
41
- :'code' => :'code',
42
39
  :'sub_category' => :'subCategory',
43
- :'context' => :'context'
40
+ :'code' => :'code',
41
+ :'_in' => :'in',
42
+ :'context' => :'context',
43
+ :'message' => :'message'
44
44
  }
45
45
  end
46
46
 
@@ -52,11 +52,11 @@ module Hubspot
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'message' => :'String',
56
- :'_in' => :'String',
57
- :'code' => :'String',
58
55
  :'sub_category' => :'String',
59
- :'context' => :'Hash<String, Array<String>>'
56
+ :'code' => :'String',
57
+ :'_in' => :'String',
58
+ :'context' => :'Hash<String, Array<String>>',
59
+ :'message' => :'String'
60
60
  }
61
61
  end
62
62
 
@@ -81,20 +81,16 @@ module Hubspot
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'message')
85
- self.message = attributes[:'message']
86
- end
87
-
88
- if attributes.key?(:'_in')
89
- self._in = attributes[:'_in']
84
+ if attributes.key?(:'sub_category')
85
+ self.sub_category = attributes[:'sub_category']
90
86
  end
91
87
 
92
88
  if attributes.key?(:'code')
93
89
  self.code = attributes[:'code']
94
90
  end
95
91
 
96
- if attributes.key?(:'sub_category')
97
- self.sub_category = attributes[:'sub_category']
92
+ if attributes.key?(:'_in')
93
+ self._in = attributes[:'_in']
98
94
  end
99
95
 
100
96
  if attributes.key?(:'context')
@@ -102,6 +98,10 @@ module Hubspot
102
98
  self.context = value
103
99
  end
104
100
  end
101
+
102
+ if attributes.key?(:'message')
103
+ self.message = attributes[:'message']
104
+ end
105
105
  end
106
106
 
107
107
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -127,11 +127,11 @@ module Hubspot
127
127
  def ==(o)
128
128
  return true if self.equal?(o)
129
129
  self.class == o.class &&
130
- message == o.message &&
131
- _in == o._in &&
132
- code == o.code &&
133
130
  sub_category == o.sub_category &&
134
- context == o.context
131
+ code == o.code &&
132
+ _in == o._in &&
133
+ context == o.context &&
134
+ message == o.message
135
135
  end
136
136
 
137
137
  # @see the `==` method
@@ -143,7 +143,7 @@ module Hubspot
143
143
  # Calculates hash code according to all attributes.
144
144
  # @return [Integer] Hash code
145
145
  def hash
146
- [message, _in, code, sub_category, context].hash
146
+ [sub_category, code, _in, context, message].hash
147
147
  end
148
148
 
149
149
  # Builds the object from hash
@@ -20,11 +20,11 @@ module Hubspot
20
20
  class LabelsBetweenObjectPair
21
21
  attr_accessor :from_object_type_id
22
22
 
23
- attr_accessor :from_object_id
23
+ attr_accessor :to_object_id
24
24
 
25
25
  attr_accessor :to_object_type_id
26
26
 
27
- attr_accessor :to_object_id
27
+ attr_accessor :from_object_id
28
28
 
29
29
  attr_accessor :labels
30
30
 
@@ -32,9 +32,9 @@ module Hubspot
32
32
  def self.attribute_map
33
33
  {
34
34
  :'from_object_type_id' => :'fromObjectTypeId',
35
- :'from_object_id' => :'fromObjectId',
36
- :'to_object_type_id' => :'toObjectTypeId',
37
35
  :'to_object_id' => :'toObjectId',
36
+ :'to_object_type_id' => :'toObjectTypeId',
37
+ :'from_object_id' => :'fromObjectId',
38
38
  :'labels' => :'labels'
39
39
  }
40
40
  end
@@ -48,9 +48,9 @@ module Hubspot
48
48
  def self.openapi_types
49
49
  {
50
50
  :'from_object_type_id' => :'String',
51
- :'from_object_id' => :'Integer',
52
- :'to_object_type_id' => :'String',
53
51
  :'to_object_id' => :'Integer',
52
+ :'to_object_type_id' => :'String',
53
+ :'from_object_id' => :'Integer',
54
54
  :'labels' => :'Array<String>'
55
55
  }
56
56
  end
@@ -80,16 +80,16 @@ module Hubspot
80
80
  self.from_object_type_id = attributes[:'from_object_type_id']
81
81
  end
82
82
 
83
- if attributes.key?(:'from_object_id')
84
- self.from_object_id = attributes[:'from_object_id']
83
+ if attributes.key?(:'to_object_id')
84
+ self.to_object_id = attributes[:'to_object_id']
85
85
  end
86
86
 
87
87
  if attributes.key?(:'to_object_type_id')
88
88
  self.to_object_type_id = attributes[:'to_object_type_id']
89
89
  end
90
90
 
91
- if attributes.key?(:'to_object_id')
92
- self.to_object_id = attributes[:'to_object_id']
91
+ if attributes.key?(:'from_object_id')
92
+ self.from_object_id = attributes[:'from_object_id']
93
93
  end
94
94
 
95
95
  if attributes.key?(:'labels')
@@ -107,16 +107,16 @@ module Hubspot
107
107
  invalid_properties.push('invalid value for "from_object_type_id", from_object_type_id cannot be nil.')
108
108
  end
109
109
 
110
- if @from_object_id.nil?
111
- invalid_properties.push('invalid value for "from_object_id", from_object_id cannot be nil.')
110
+ if @to_object_id.nil?
111
+ invalid_properties.push('invalid value for "to_object_id", to_object_id cannot be nil.')
112
112
  end
113
113
 
114
114
  if @to_object_type_id.nil?
115
115
  invalid_properties.push('invalid value for "to_object_type_id", to_object_type_id cannot be nil.')
116
116
  end
117
117
 
118
- if @to_object_id.nil?
119
- invalid_properties.push('invalid value for "to_object_id", to_object_id cannot be nil.')
118
+ if @from_object_id.nil?
119
+ invalid_properties.push('invalid value for "from_object_id", from_object_id cannot be nil.')
120
120
  end
121
121
 
122
122
  if @labels.nil?
@@ -130,9 +130,9 @@ module Hubspot
130
130
  # @return true if the model is valid
131
131
  def valid?
132
132
  return false if @from_object_type_id.nil?
133
- return false if @from_object_id.nil?
134
- return false if @to_object_type_id.nil?
135
133
  return false if @to_object_id.nil?
134
+ return false if @to_object_type_id.nil?
135
+ return false if @from_object_id.nil?
136
136
  return false if @labels.nil?
137
137
  true
138
138
  end
@@ -143,9 +143,9 @@ module Hubspot
143
143
  return true if self.equal?(o)
144
144
  self.class == o.class &&
145
145
  from_object_type_id == o.from_object_type_id &&
146
- from_object_id == o.from_object_id &&
147
- to_object_type_id == o.to_object_type_id &&
148
146
  to_object_id == o.to_object_id &&
147
+ to_object_type_id == o.to_object_type_id &&
148
+ from_object_id == o.from_object_id &&
149
149
  labels == o.labels
150
150
  end
151
151
 
@@ -158,7 +158,7 @@ module Hubspot
158
158
  # Calculates hash code according to all attributes.
159
159
  # @return [Integer] Hash code
160
160
  def hash
161
- [from_object_type_id, from_object_id, to_object_type_id, to_object_id, labels].hash
161
+ [from_object_type_id, to_object_id, to_object_type_id, from_object_id, labels].hash
162
162
  end
163
163
 
164
164
  # Builds the object from hash
@@ -18,15 +18,15 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class MultiAssociatedObjectWithLabel
21
- attr_accessor :to_object_id
22
-
23
21
  attr_accessor :association_types
24
22
 
23
+ attr_accessor :to_object_id
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'to_object_id' => :'toObjectId',
29
- :'association_types' => :'associationTypes'
28
+ :'association_types' => :'associationTypes',
29
+ :'to_object_id' => :'toObjectId'
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
- :'to_object_id' => :'Integer',
42
- :'association_types' => :'Array<AssociationSpecWithLabel>'
41
+ :'association_types' => :'Array<AssociationSpecWithLabel>',
42
+ :'to_object_id' => :'Integer'
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?(:'to_object_id')
68
- self.to_object_id = attributes[:'to_object_id']
69
- end
70
-
71
67
  if attributes.key?(:'association_types')
72
68
  if (value = attributes[:'association_types']).is_a?(Array)
73
69
  self.association_types = value
74
70
  end
75
71
  end
72
+
73
+ if attributes.key?(:'to_object_id')
74
+ self.to_object_id = attributes[:'to_object_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 @to_object_id.nil?
83
- invalid_properties.push('invalid value for "to_object_id", to_object_id cannot be nil.')
84
- end
85
-
86
82
  if @association_types.nil?
87
83
  invalid_properties.push('invalid value for "association_types", association_types cannot be nil.')
88
84
  end
89
85
 
86
+ if @to_object_id.nil?
87
+ invalid_properties.push('invalid value for "to_object_id", to_object_id 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 @to_object_id.nil?
97
96
  return false if @association_types.nil?
97
+ return false if @to_object_id.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
- to_object_id == o.to_object_id &&
107
- association_types == o.association_types
106
+ association_types == o.association_types &&
107
+ to_object_id == o.to_object_id
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
- [to_object_id, association_types].hash
119
+ [association_types, to_object_id].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 NextPage
21
- attr_accessor :after
22
-
23
21
  attr_accessor :link
24
22
 
23
+ attr_accessor :after
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'after' => :'after',
29
- :'link' => :'link'
28
+ :'link' => :'link',
29
+ :'after' => :'after'
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
- :'after' => :'String',
42
- :'link' => :'String'
41
+ :'link' => :'String',
42
+ :'after' => :'String'
43
43
  }
44
44
  end
45
45
 
@@ -64,13 +64,13 @@ module Hubspot
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
- if attributes.key?(:'after')
68
- self.after = attributes[:'after']
69
- end
70
-
71
67
  if attributes.key?(:'link')
72
68
  self.link = attributes[:'link']
73
69
  end
70
+
71
+ if attributes.key?(:'after')
72
+ self.after = attributes[:'after']
73
+ end
74
74
  end
75
75
 
76
76
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -96,8 +96,8 @@ module Hubspot
96
96
  def ==(o)
97
97
  return true if self.equal?(o)
98
98
  self.class == o.class &&
99
- after == o.after &&
100
- link == o.link
99
+ link == o.link &&
100
+ after == o.after
101
101
  end
102
102
 
103
103
  # @see the `==` method
@@ -109,7 +109,7 @@ module Hubspot
109
109
  # Calculates hash code according to all attributes.
110
110
  # @return [Integer] Hash code
111
111
  def hash
112
- [after, link].hash
112
+ [link, after].hash
113
113
  end
114
114
 
115
115
  # Builds the object from hash
@@ -18,15 +18,15 @@ module Hubspot
18
18
  module Associations
19
19
  module V4
20
20
  class PublicAssociationDefinitionCreateRequest
21
- attr_accessor :label
22
-
23
21
  attr_accessor :name
24
22
 
23
+ attr_accessor :label
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'label' => :'label',
29
- :'name' => :'name'
28
+ :'name' => :'name',
29
+ :'label' => :'label'
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
- :'label' => :'String',
42
- :'name' => :'String'
41
+ :'name' => :'String',
42
+ :'label' => :'String'
43
43
  }
44
44
  end
45
45
 
@@ -64,35 +64,35 @@ module Hubspot
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
- if attributes.key?(:'label')
68
- self.label = attributes[:'label']
69
- end
70
-
71
67
  if attributes.key?(:'name')
72
68
  self.name = attributes[:'name']
73
69
  end
70
+
71
+ if attributes.key?(:'label')
72
+ self.label = attributes[:'label']
73
+ end
74
74
  end
75
75
 
76
76
  # Show invalid properties with the reasons. Usually used together with valid?
77
77
  # @return Array for valid properties with the reasons
78
78
  def list_invalid_properties
79
79
  invalid_properties = Array.new
80
- if @label.nil?
81
- invalid_properties.push('invalid value for "label", label cannot be nil.')
82
- end
83
-
84
80
  if @name.nil?
85
81
  invalid_properties.push('invalid value for "name", name cannot be nil.')
86
82
  end
87
83
 
84
+ if @label.nil?
85
+ invalid_properties.push('invalid value for "label", label cannot be nil.')
86
+ end
87
+
88
88
  invalid_properties
89
89
  end
90
90
 
91
91
  # Check to see if the all the properties in the model are valid
92
92
  # @return true if the model is valid
93
93
  def valid?
94
- return false if @label.nil?
95
94
  return false if @name.nil?
95
+ return false if @label.nil?
96
96
  true
97
97
  end
98
98
 
@@ -101,8 +101,8 @@ module Hubspot
101
101
  def ==(o)
102
102
  return true if self.equal?(o)
103
103
  self.class == o.class &&
104
- label == o.label &&
105
- name == o.name
104
+ name == o.name &&
105
+ label == o.label
106
106
  end
107
107
 
108
108
  # @see the `==` method
@@ -114,7 +114,7 @@ module Hubspot
114
114
  # Calculates hash code according to all attributes.
115
115
  # @return [Integer] Hash code
116
116
  def hash
117
- [label, name].hash
117
+ [name, label].hash
118
118
  end
119
119
 
120
120
  # Builds the object from hash