hubspot-api-client 17.0.0.pre.beta.4 → 17.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +48 -1
- data/Gemfile.lock +1 -1
- data/lib/hubspot/client.rb +1 -1
- data/lib/hubspot/codegen/automation/actions/api/callbacks_api.rb +2 -2
- data/lib/hubspot/codegen/automation/actions/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/blogs/authors/api/blog_authors_api.rb +14 -14
- data/lib/hubspot/codegen/cms/blogs/authors/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/blogs/tags/api/blog_tags_api.rb +14 -14
- data/lib/hubspot/codegen/cms/blogs/tags/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
- data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +9 -9
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +17 -17
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +14 -14
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +19 -19
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/api/public_performance_api.rb +2 -2
- data/lib/hubspot/codegen/cms/performance/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +6 -6
- data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +5 -5
- data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +41 -41
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +52 -52
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +41 -41
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +52 -52
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +52 -52
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object.rb +41 -41
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object_with_errors.rb +52 -52
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_associated_id.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_simple_public_object_with_associations_forward_paging.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +50 -50
- data/lib/hubspot/codegen/crm/associations/v4/models/error_category.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +28 -28
- data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +19 -19
- data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_create_request.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_update_request.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +20 -20
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/public_associations_for_object.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/public_gdpr_delete_input.rb +13 -13
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object.rb +44 -44
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_input_for_create.rb +20 -20
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_with_associations.rb +49 -49
- data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +46 -46
- data/lib/hubspot/codegen/crm/associations/v4/models/standard_error1.rb +324 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/value_with_timestamp.rb +33 -33
- data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +4 -4
- data/lib/hubspot/codegen/crm/associations/v4/schema/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/companies/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/companies/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/contacts/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/deals/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/deals/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +10 -10
- data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +3 -3
- data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +2 -2
- data/lib/hubspot/codegen/crm/extensions/accounting/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/api/settings_api.rb +3 -3
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +0 -1
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
- data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/line_items/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/line_items/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +3 -3
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/calls/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/calls/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/calls/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/calls/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/communications/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/communications/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/communications/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/emails/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/emails/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/emails/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/emails/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/meetings/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/meetings/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/meetings/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/meetings/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/notes/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/notes/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/notes/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/notes/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/objects/tasks/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/tasks/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/tasks/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/objects/tasks/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/api/owners_api.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_audits_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stage_audits_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +6 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +6 -6
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/products/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/products/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +5 -5
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +5 -5
- data/lib/hubspot/codegen/crm/properties/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/properties/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/quotes/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/quotes/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +7 -7
- data/lib/hubspot/codegen/crm/schemas/api/public_object_schemas_api.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +5 -5
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/tickets/api/public_object_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +0 -7
- data/lib/hubspot/codegen/crm/tickets/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/events/api/events_api.rb +1 -1
- data/lib/hubspot/codegen/events/configuration.rb +0 -7
- data/lib/hubspot/codegen/files/files/api/files_api.rb +10 -10
- data/lib/hubspot/codegen/files/files/api/folders_api.rb +8 -8
- data/lib/hubspot/codegen/files/files/configuration.rb +0 -7
- data/lib/hubspot/codegen/marketing/forms/api/forms_api.rb +6 -6
- data/lib/hubspot/codegen/marketing/forms/configuration.rb +0 -7
- data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/configuration.rb +0 -7
- data/lib/hubspot/codegen/webhooks/models/standard_error.rb +1 -1
- data/lib/hubspot/discovery/oauth/client.rb +0 -4
- data/lib/hubspot/helpers/camel_case.rb +5 -1
- data/lib/hubspot/helpers/path.rb +1 -8
- data/lib/hubspot/helpers/snake_case.rb +2 -1
- data/lib/hubspot/oauth_helper.rb +12 -8
- data/lib/hubspot/version.rb +1 -1
- data/pkg/hubspot-api-client-17.0.0.gem +0 -0
- data/spec/discovery/client_spec.rb +1 -1
- data/spec/discovery/oauth/access_tokens_api_spec.rb +1 -1
- data/spec/discovery/oauth/refresh_tokens_api_spec.rb +1 -1
- data/spec/discovery/oauth/tokens_api_spec.rb +1 -1
- data/spec/helpers/authorize_url_spec.rb +75 -0
- metadata +8 -4
|
@@ -18,33 +18,33 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class StandardError
|
|
21
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :sub_category
|
|
22
|
+
|
|
23
|
+
attr_accessor :context
|
|
24
|
+
|
|
25
|
+
attr_accessor :links
|
|
22
26
|
|
|
23
27
|
attr_accessor :id
|
|
24
28
|
|
|
25
29
|
attr_accessor :category
|
|
26
30
|
|
|
27
|
-
attr_accessor :sub_category
|
|
28
|
-
|
|
29
31
|
attr_accessor :message
|
|
30
32
|
|
|
31
33
|
attr_accessor :errors
|
|
32
34
|
|
|
33
|
-
attr_accessor :
|
|
34
|
-
|
|
35
|
-
attr_accessor :links
|
|
35
|
+
attr_accessor :status
|
|
36
36
|
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
38
|
def self.attribute_map
|
|
39
39
|
{
|
|
40
|
-
:'
|
|
40
|
+
:'sub_category' => :'subCategory',
|
|
41
|
+
:'context' => :'context',
|
|
42
|
+
:'links' => :'links',
|
|
41
43
|
:'id' => :'id',
|
|
42
44
|
:'category' => :'category',
|
|
43
|
-
:'sub_category' => :'subCategory',
|
|
44
45
|
:'message' => :'message',
|
|
45
46
|
:'errors' => :'errors',
|
|
46
|
-
:'
|
|
47
|
-
:'links' => :'links'
|
|
47
|
+
:'status' => :'status'
|
|
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
|
-
:'
|
|
59
|
+
:'sub_category' => :'Object',
|
|
60
|
+
:'context' => :'Hash<String, Array<String>>',
|
|
61
|
+
:'links' => :'Hash<String, String>',
|
|
60
62
|
:'id' => :'String',
|
|
61
63
|
:'category' => :'ErrorCategory',
|
|
62
|
-
:'sub_category' => :'Object',
|
|
63
64
|
:'message' => :'String',
|
|
64
65
|
:'errors' => :'Array<ErrorDetail>',
|
|
65
|
-
:'
|
|
66
|
-
:'links' => :'Hash<String, String>'
|
|
66
|
+
:'status' => :'String'
|
|
67
67
|
}
|
|
68
68
|
end
|
|
69
69
|
|
|
@@ -88,8 +88,20 @@ module Hubspot
|
|
|
88
88
|
h[k.to_sym] = v
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
if attributes.key?(:'
|
|
92
|
-
self.
|
|
91
|
+
if attributes.key?(:'sub_category')
|
|
92
|
+
self.sub_category = attributes[:'sub_category']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'context')
|
|
96
|
+
if (value = attributes[:'context']).is_a?(Hash)
|
|
97
|
+
self.context = value
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'links')
|
|
102
|
+
if (value = attributes[:'links']).is_a?(Hash)
|
|
103
|
+
self.links = value
|
|
104
|
+
end
|
|
93
105
|
end
|
|
94
106
|
|
|
95
107
|
if attributes.key?(:'id')
|
|
@@ -100,10 +112,6 @@ module Hubspot
|
|
|
100
112
|
self.category = attributes[:'category']
|
|
101
113
|
end
|
|
102
114
|
|
|
103
|
-
if attributes.key?(:'sub_category')
|
|
104
|
-
self.sub_category = attributes[:'sub_category']
|
|
105
|
-
end
|
|
106
|
-
|
|
107
115
|
if attributes.key?(:'message')
|
|
108
116
|
self.message = attributes[:'message']
|
|
109
117
|
end
|
|
@@ -114,16 +122,8 @@ module Hubspot
|
|
|
114
122
|
end
|
|
115
123
|
end
|
|
116
124
|
|
|
117
|
-
if attributes.key?(:'
|
|
118
|
-
|
|
119
|
-
self.context = value
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
if attributes.key?(:'links')
|
|
124
|
-
if (value = attributes[:'links']).is_a?(Hash)
|
|
125
|
-
self.links = value
|
|
126
|
-
end
|
|
125
|
+
if attributes.key?(:'status')
|
|
126
|
+
self.status = attributes[:'status']
|
|
127
127
|
end
|
|
128
128
|
end
|
|
129
129
|
|
|
@@ -131,8 +131,12 @@ module Hubspot
|
|
|
131
131
|
# @return Array for valid properties with the reasons
|
|
132
132
|
def list_invalid_properties
|
|
133
133
|
invalid_properties = Array.new
|
|
134
|
-
if @
|
|
135
|
-
invalid_properties.push('invalid value for "
|
|
134
|
+
if @context.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "context", context cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @links.nil?
|
|
139
|
+
invalid_properties.push('invalid value for "links", links cannot be nil.')
|
|
136
140
|
end
|
|
137
141
|
|
|
138
142
|
if @category.nil?
|
|
@@ -147,12 +151,8 @@ module Hubspot
|
|
|
147
151
|
invalid_properties.push('invalid value for "errors", errors cannot be nil.')
|
|
148
152
|
end
|
|
149
153
|
|
|
150
|
-
if @
|
|
151
|
-
invalid_properties.push('invalid value for "
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
if @links.nil?
|
|
155
|
-
invalid_properties.push('invalid value for "links", links cannot be nil.')
|
|
154
|
+
if @status.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
invalid_properties
|
|
@@ -161,12 +161,12 @@ module Hubspot
|
|
|
161
161
|
# Check to see if the all the properties in the model are valid
|
|
162
162
|
# @return true if the model is valid
|
|
163
163
|
def valid?
|
|
164
|
-
return false if @
|
|
164
|
+
return false if @context.nil?
|
|
165
|
+
return false if @links.nil?
|
|
165
166
|
return false if @category.nil?
|
|
166
167
|
return false if @message.nil?
|
|
167
168
|
return false if @errors.nil?
|
|
168
|
-
return false if @
|
|
169
|
-
return false if @links.nil?
|
|
169
|
+
return false if @status.nil?
|
|
170
170
|
true
|
|
171
171
|
end
|
|
172
172
|
|
|
@@ -175,14 +175,14 @@ module Hubspot
|
|
|
175
175
|
def ==(o)
|
|
176
176
|
return true if self.equal?(o)
|
|
177
177
|
self.class == o.class &&
|
|
178
|
-
|
|
178
|
+
sub_category == o.sub_category &&
|
|
179
|
+
context == o.context &&
|
|
180
|
+
links == o.links &&
|
|
179
181
|
id == o.id &&
|
|
180
182
|
category == o.category &&
|
|
181
|
-
sub_category == o.sub_category &&
|
|
182
183
|
message == o.message &&
|
|
183
184
|
errors == o.errors &&
|
|
184
|
-
|
|
185
|
-
links == o.links
|
|
185
|
+
status == o.status
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
# @see the `==` method
|
|
@@ -194,7 +194,7 @@ module Hubspot
|
|
|
194
194
|
# Calculates hash code according to all attributes.
|
|
195
195
|
# @return [Integer] Hash code
|
|
196
196
|
def hash
|
|
197
|
-
[
|
|
197
|
+
[sub_category, context, links, id, category, message, errors, status].hash
|
|
198
198
|
end
|
|
199
199
|
|
|
200
200
|
# Builds the object from hash
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#CrmPublicObjectsService
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v4
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Hubspot
|
|
17
|
+
module Crm
|
|
18
|
+
module Associations
|
|
19
|
+
module V4
|
|
20
|
+
class StandardError1
|
|
21
|
+
attr_accessor :sub_category
|
|
22
|
+
|
|
23
|
+
attr_accessor :context
|
|
24
|
+
|
|
25
|
+
attr_accessor :links
|
|
26
|
+
|
|
27
|
+
attr_accessor :id
|
|
28
|
+
|
|
29
|
+
attr_accessor :category
|
|
30
|
+
|
|
31
|
+
attr_accessor :message
|
|
32
|
+
|
|
33
|
+
attr_accessor :errors
|
|
34
|
+
|
|
35
|
+
attr_accessor :status
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'sub_category' => :'subCategory',
|
|
41
|
+
:'context' => :'context',
|
|
42
|
+
:'links' => :'links',
|
|
43
|
+
:'id' => :'id',
|
|
44
|
+
:'category' => :'category',
|
|
45
|
+
:'message' => :'message',
|
|
46
|
+
:'errors' => :'errors',
|
|
47
|
+
:'status' => :'status'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Returns all the JSON keys this model knows about
|
|
52
|
+
def self.acceptable_attributes
|
|
53
|
+
attribute_map.values
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute type mapping.
|
|
57
|
+
def self.openapi_types
|
|
58
|
+
{
|
|
59
|
+
:'sub_category' => :'Object',
|
|
60
|
+
:'context' => :'Hash<String, Array<String>>',
|
|
61
|
+
:'links' => :'Hash<String, String>',
|
|
62
|
+
:'id' => :'String',
|
|
63
|
+
:'category' => :'String',
|
|
64
|
+
:'message' => :'String',
|
|
65
|
+
:'errors' => :'Array<ErrorDetail>',
|
|
66
|
+
:'status' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Associations::V4::StandardError1` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
85
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Associations::V4::StandardError1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
87
|
+
end
|
|
88
|
+
h[k.to_sym] = v
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'sub_category')
|
|
92
|
+
self.sub_category = attributes[:'sub_category']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'context')
|
|
96
|
+
if (value = attributes[:'context']).is_a?(Hash)
|
|
97
|
+
self.context = value
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'links')
|
|
102
|
+
if (value = attributes[:'links']).is_a?(Hash)
|
|
103
|
+
self.links = value
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'id')
|
|
108
|
+
self.id = attributes[:'id']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'category')
|
|
112
|
+
self.category = attributes[:'category']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'message')
|
|
116
|
+
self.message = attributes[:'message']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'errors')
|
|
120
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
121
|
+
self.errors = value
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'status')
|
|
126
|
+
self.status = attributes[:'status']
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
131
|
+
# @return Array for valid properties with the reasons
|
|
132
|
+
def list_invalid_properties
|
|
133
|
+
invalid_properties = Array.new
|
|
134
|
+
if @context.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "context", context cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @links.nil?
|
|
139
|
+
invalid_properties.push('invalid value for "links", links cannot be nil.')
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if @category.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if @message.nil?
|
|
147
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if @errors.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "errors", errors cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if @status.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
invalid_properties
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Check to see if the all the properties in the model are valid
|
|
162
|
+
# @return true if the model is valid
|
|
163
|
+
def valid?
|
|
164
|
+
return false if @context.nil?
|
|
165
|
+
return false if @links.nil?
|
|
166
|
+
return false if @category.nil?
|
|
167
|
+
return false if @message.nil?
|
|
168
|
+
return false if @errors.nil?
|
|
169
|
+
return false if @status.nil?
|
|
170
|
+
true
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Checks equality by comparing each attribute.
|
|
174
|
+
# @param [Object] Object to be compared
|
|
175
|
+
def ==(o)
|
|
176
|
+
return true if self.equal?(o)
|
|
177
|
+
self.class == o.class &&
|
|
178
|
+
sub_category == o.sub_category &&
|
|
179
|
+
context == o.context &&
|
|
180
|
+
links == o.links &&
|
|
181
|
+
id == o.id &&
|
|
182
|
+
category == o.category &&
|
|
183
|
+
message == o.message &&
|
|
184
|
+
errors == o.errors &&
|
|
185
|
+
status == o.status
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# @see the `==` method
|
|
189
|
+
# @param [Object] Object to be compared
|
|
190
|
+
def eql?(o)
|
|
191
|
+
self == o
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Calculates hash code according to all attributes.
|
|
195
|
+
# @return [Integer] Hash code
|
|
196
|
+
def hash
|
|
197
|
+
[sub_category, context, links, id, category, message, errors, status].hash
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Builds the object from hash
|
|
201
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
202
|
+
# @return [Object] Returns the model itself
|
|
203
|
+
def self.build_from_hash(attributes)
|
|
204
|
+
new.build_from_hash(attributes)
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Builds the object from hash
|
|
208
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
209
|
+
# @return [Object] Returns the model itself
|
|
210
|
+
def build_from_hash(attributes)
|
|
211
|
+
return nil unless attributes.is_a?(Hash)
|
|
212
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
213
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
214
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
215
|
+
self.send("#{key}=", nil)
|
|
216
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
217
|
+
# check to ensure the input is an array given that the attribute
|
|
218
|
+
# is documented as an array but the input is not
|
|
219
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
220
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
221
|
+
end
|
|
222
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
223
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
self
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Deserializes the data based on type
|
|
231
|
+
# @param string type Data type
|
|
232
|
+
# @param string value Value to be deserialized
|
|
233
|
+
# @return [Object] Deserialized data
|
|
234
|
+
def _deserialize(type, value)
|
|
235
|
+
case type.to_sym
|
|
236
|
+
when :Time
|
|
237
|
+
Time.parse(value)
|
|
238
|
+
when :Date
|
|
239
|
+
Date.parse(value)
|
|
240
|
+
when :String
|
|
241
|
+
value.to_s
|
|
242
|
+
when :Integer
|
|
243
|
+
value.to_i
|
|
244
|
+
when :Float
|
|
245
|
+
value.to_f
|
|
246
|
+
when :Boolean
|
|
247
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
248
|
+
true
|
|
249
|
+
else
|
|
250
|
+
false
|
|
251
|
+
end
|
|
252
|
+
when :Object
|
|
253
|
+
# generic object (usually a Hash), return directly
|
|
254
|
+
value
|
|
255
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
256
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
257
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
258
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
259
|
+
k_type = Regexp.last_match[:k_type]
|
|
260
|
+
v_type = Regexp.last_match[:v_type]
|
|
261
|
+
{}.tap do |hash|
|
|
262
|
+
value.each do |k, v|
|
|
263
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
else # model
|
|
267
|
+
# models (e.g. Pet) or oneOf
|
|
268
|
+
klass = Hubspot::Crm::Associations::V4.const_get(type)
|
|
269
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Returns the string representation of the object
|
|
274
|
+
# @return [String] String presentation of the object
|
|
275
|
+
def to_s
|
|
276
|
+
to_hash.to_s
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
280
|
+
# @return [Hash] Returns the object in the form of hash
|
|
281
|
+
def to_body
|
|
282
|
+
to_hash
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Returns the object in the form of hash
|
|
286
|
+
# @return [Hash] Returns the object in the form of hash
|
|
287
|
+
def to_hash
|
|
288
|
+
hash = {}
|
|
289
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
290
|
+
value = self.send(attr)
|
|
291
|
+
if value.nil?
|
|
292
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
293
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
hash[param] = _to_hash(value)
|
|
297
|
+
end
|
|
298
|
+
hash
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# Outputs non-array value in the form of hash
|
|
302
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
303
|
+
# @param [Object] value Any valid value
|
|
304
|
+
# @return [Hash] Returns the value in the form of hash
|
|
305
|
+
def _to_hash(value)
|
|
306
|
+
if value.is_a?(Array)
|
|
307
|
+
value.compact.map { |v| _to_hash(v) }
|
|
308
|
+
elsif value.is_a?(Hash)
|
|
309
|
+
{}.tap do |hash|
|
|
310
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
311
|
+
end
|
|
312
|
+
elsif value.respond_to? :to_hash
|
|
313
|
+
value.to_hash
|
|
314
|
+
else
|
|
315
|
+
value
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
end
|
|
@@ -18,27 +18,27 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class ValueWithTimestamp
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
attr_accessor :timestamp
|
|
21
|
+
attr_accessor :source_id
|
|
24
22
|
|
|
25
23
|
attr_accessor :source_type
|
|
26
24
|
|
|
27
|
-
attr_accessor :source_id
|
|
28
|
-
|
|
29
25
|
attr_accessor :source_label
|
|
30
26
|
|
|
31
27
|
attr_accessor :updated_by_user_id
|
|
32
28
|
|
|
29
|
+
attr_accessor :value
|
|
30
|
+
|
|
31
|
+
attr_accessor :timestamp
|
|
32
|
+
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
34
|
def self.attribute_map
|
|
35
35
|
{
|
|
36
|
-
:'value' => :'value',
|
|
37
|
-
:'timestamp' => :'timestamp',
|
|
38
|
-
:'source_type' => :'sourceType',
|
|
39
36
|
:'source_id' => :'sourceId',
|
|
37
|
+
:'source_type' => :'sourceType',
|
|
40
38
|
:'source_label' => :'sourceLabel',
|
|
41
|
-
:'updated_by_user_id' => :'updatedByUserId'
|
|
39
|
+
:'updated_by_user_id' => :'updatedByUserId',
|
|
40
|
+
:'value' => :'value',
|
|
41
|
+
:'timestamp' => :'timestamp'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -50,12 +50,12 @@ module Hubspot
|
|
|
50
50
|
# Attribute type mapping.
|
|
51
51
|
def self.openapi_types
|
|
52
52
|
{
|
|
53
|
-
:'value' => :'String',
|
|
54
|
-
:'timestamp' => :'Time',
|
|
55
|
-
:'source_type' => :'String',
|
|
56
53
|
:'source_id' => :'String',
|
|
54
|
+
:'source_type' => :'String',
|
|
57
55
|
:'source_label' => :'String',
|
|
58
|
-
:'updated_by_user_id' => :'Integer'
|
|
56
|
+
:'updated_by_user_id' => :'Integer',
|
|
57
|
+
:'value' => :'String',
|
|
58
|
+
:'timestamp' => :'Time'
|
|
59
59
|
}
|
|
60
60
|
end
|
|
61
61
|
|
|
@@ -80,22 +80,14 @@ module Hubspot
|
|
|
80
80
|
h[k.to_sym] = v
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
if attributes.key?(:'
|
|
84
|
-
self.
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
if attributes.key?(:'timestamp')
|
|
88
|
-
self.timestamp = attributes[:'timestamp']
|
|
83
|
+
if attributes.key?(:'source_id')
|
|
84
|
+
self.source_id = attributes[:'source_id']
|
|
89
85
|
end
|
|
90
86
|
|
|
91
87
|
if attributes.key?(:'source_type')
|
|
92
88
|
self.source_type = attributes[:'source_type']
|
|
93
89
|
end
|
|
94
90
|
|
|
95
|
-
if attributes.key?(:'source_id')
|
|
96
|
-
self.source_id = attributes[:'source_id']
|
|
97
|
-
end
|
|
98
|
-
|
|
99
91
|
if attributes.key?(:'source_label')
|
|
100
92
|
self.source_label = attributes[:'source_label']
|
|
101
93
|
end
|
|
@@ -103,12 +95,24 @@ module Hubspot
|
|
|
103
95
|
if attributes.key?(:'updated_by_user_id')
|
|
104
96
|
self.updated_by_user_id = attributes[:'updated_by_user_id']
|
|
105
97
|
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'value')
|
|
100
|
+
self.value = attributes[:'value']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'timestamp')
|
|
104
|
+
self.timestamp = attributes[:'timestamp']
|
|
105
|
+
end
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
109
109
|
# @return Array for valid properties with the reasons
|
|
110
110
|
def list_invalid_properties
|
|
111
111
|
invalid_properties = Array.new
|
|
112
|
+
if @source_type.nil?
|
|
113
|
+
invalid_properties.push('invalid value for "source_type", source_type cannot be nil.')
|
|
114
|
+
end
|
|
115
|
+
|
|
112
116
|
if @value.nil?
|
|
113
117
|
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
|
114
118
|
end
|
|
@@ -117,19 +121,15 @@ module Hubspot
|
|
|
117
121
|
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
|
118
122
|
end
|
|
119
123
|
|
|
120
|
-
if @source_type.nil?
|
|
121
|
-
invalid_properties.push('invalid value for "source_type", source_type cannot be nil.')
|
|
122
|
-
end
|
|
123
|
-
|
|
124
124
|
invalid_properties
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
# Check to see if the all the properties in the model are valid
|
|
128
128
|
# @return true if the model is valid
|
|
129
129
|
def valid?
|
|
130
|
+
return false if @source_type.nil?
|
|
130
131
|
return false if @value.nil?
|
|
131
132
|
return false if @timestamp.nil?
|
|
132
|
-
return false if @source_type.nil?
|
|
133
133
|
true
|
|
134
134
|
end
|
|
135
135
|
|
|
@@ -138,12 +138,12 @@ module Hubspot
|
|
|
138
138
|
def ==(o)
|
|
139
139
|
return true if self.equal?(o)
|
|
140
140
|
self.class == o.class &&
|
|
141
|
-
value == o.value &&
|
|
142
|
-
timestamp == o.timestamp &&
|
|
143
|
-
source_type == o.source_type &&
|
|
144
141
|
source_id == o.source_id &&
|
|
142
|
+
source_type == o.source_type &&
|
|
145
143
|
source_label == o.source_label &&
|
|
146
|
-
updated_by_user_id == o.updated_by_user_id
|
|
144
|
+
updated_by_user_id == o.updated_by_user_id &&
|
|
145
|
+
value == o.value &&
|
|
146
|
+
timestamp == o.timestamp
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
# @see the `==` method
|
|
@@ -155,7 +155,7 @@ module Hubspot
|
|
|
155
155
|
# Calculates hash code according to all attributes.
|
|
156
156
|
# @return [Integer] Hash code
|
|
157
157
|
def hash
|
|
158
|
-
[
|
|
158
|
+
[source_id, source_type, source_label, updated_by_user_id, value, timestamp].hash
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
# Builds the object from hash
|
|
@@ -84,7 +84,7 @@ module Hubspot
|
|
|
84
84
|
return_type = opts[:debug_return_type] || 'CollectionResponseAssociationSpecWithLabelNoPaging'
|
|
85
85
|
|
|
86
86
|
# auth_names
|
|
87
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
87
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
88
88
|
|
|
89
89
|
new_options = opts.merge(
|
|
90
90
|
:operation => :"DefinitionsApi.create",
|
|
@@ -159,7 +159,7 @@ module Hubspot
|
|
|
159
159
|
return_type = opts[:debug_return_type]
|
|
160
160
|
|
|
161
161
|
# auth_names
|
|
162
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
162
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
163
163
|
|
|
164
164
|
new_options = opts.merge(
|
|
165
165
|
:operation => :"DefinitionsApi.delete",
|
|
@@ -228,7 +228,7 @@ module Hubspot
|
|
|
228
228
|
return_type = opts[:debug_return_type] || 'CollectionResponseAssociationSpecWithLabelNoPaging'
|
|
229
229
|
|
|
230
230
|
# auth_names
|
|
231
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
231
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
232
232
|
|
|
233
233
|
new_options = opts.merge(
|
|
234
234
|
:operation => :"DefinitionsApi.get_all",
|
|
@@ -308,7 +308,7 @@ module Hubspot
|
|
|
308
308
|
return_type = opts[:debug_return_type]
|
|
309
309
|
|
|
310
310
|
# auth_names
|
|
311
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
311
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
312
312
|
|
|
313
313
|
new_options = opts.merge(
|
|
314
314
|
:operation => :"DefinitionsApi.update",
|