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,22 +18,22 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class BatchResponsePublicAssociationMultiWithLabelWithErrors
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
attr_accessor :results
|
|
21
|
+
attr_accessor :completed_at
|
|
24
22
|
|
|
25
23
|
attr_accessor :num_errors
|
|
26
24
|
|
|
27
|
-
attr_accessor :errors
|
|
28
|
-
|
|
29
25
|
attr_accessor :requested_at
|
|
30
26
|
|
|
31
27
|
attr_accessor :started_at
|
|
32
28
|
|
|
33
|
-
attr_accessor :completed_at
|
|
34
|
-
|
|
35
29
|
attr_accessor :links
|
|
36
30
|
|
|
31
|
+
attr_accessor :results
|
|
32
|
+
|
|
33
|
+
attr_accessor :errors
|
|
34
|
+
|
|
35
|
+
attr_accessor :status
|
|
36
|
+
|
|
37
37
|
class EnumAttributeValidator
|
|
38
38
|
attr_reader :datatype
|
|
39
39
|
attr_reader :allowable_values
|
|
@@ -59,14 +59,14 @@ module Hubspot
|
|
|
59
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
60
60
|
def self.attribute_map
|
|
61
61
|
{
|
|
62
|
-
:'
|
|
63
|
-
:'results' => :'results',
|
|
62
|
+
:'completed_at' => :'completedAt',
|
|
64
63
|
:'num_errors' => :'numErrors',
|
|
65
|
-
:'errors' => :'errors',
|
|
66
64
|
:'requested_at' => :'requestedAt',
|
|
67
65
|
:'started_at' => :'startedAt',
|
|
68
|
-
:'
|
|
69
|
-
:'
|
|
66
|
+
:'links' => :'links',
|
|
67
|
+
:'results' => :'results',
|
|
68
|
+
:'errors' => :'errors',
|
|
69
|
+
:'status' => :'status'
|
|
70
70
|
}
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -78,14 +78,14 @@ module Hubspot
|
|
|
78
78
|
# Attribute type mapping.
|
|
79
79
|
def self.openapi_types
|
|
80
80
|
{
|
|
81
|
-
:'
|
|
82
|
-
:'results' => :'Array<PublicAssociationMultiWithLabel>',
|
|
81
|
+
:'completed_at' => :'Time',
|
|
83
82
|
:'num_errors' => :'Integer',
|
|
84
|
-
:'errors' => :'Array<StandardError>',
|
|
85
83
|
:'requested_at' => :'Time',
|
|
86
84
|
:'started_at' => :'Time',
|
|
87
|
-
:'
|
|
88
|
-
:'
|
|
85
|
+
:'links' => :'Hash<String, String>',
|
|
86
|
+
:'results' => :'Array<PublicAssociationMultiWithLabel>',
|
|
87
|
+
:'errors' => :'Array<StandardError>',
|
|
88
|
+
:'status' => :'String'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
91
91
|
|
|
@@ -110,26 +110,14 @@ module Hubspot
|
|
|
110
110
|
h[k.to_sym] = v
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
if attributes.key?(:'results')
|
|
118
|
-
if (value = attributes[:'results']).is_a?(Array)
|
|
119
|
-
self.results = value
|
|
120
|
-
end
|
|
113
|
+
if attributes.key?(:'completed_at')
|
|
114
|
+
self.completed_at = attributes[:'completed_at']
|
|
121
115
|
end
|
|
122
116
|
|
|
123
117
|
if attributes.key?(:'num_errors')
|
|
124
118
|
self.num_errors = attributes[:'num_errors']
|
|
125
119
|
end
|
|
126
120
|
|
|
127
|
-
if attributes.key?(:'errors')
|
|
128
|
-
if (value = attributes[:'errors']).is_a?(Array)
|
|
129
|
-
self.errors = value
|
|
130
|
-
end
|
|
131
|
-
end
|
|
132
|
-
|
|
133
121
|
if attributes.key?(:'requested_at')
|
|
134
122
|
self.requested_at = attributes[:'requested_at']
|
|
135
123
|
end
|
|
@@ -138,35 +126,47 @@ module Hubspot
|
|
|
138
126
|
self.started_at = attributes[:'started_at']
|
|
139
127
|
end
|
|
140
128
|
|
|
141
|
-
if attributes.key?(:'completed_at')
|
|
142
|
-
self.completed_at = attributes[:'completed_at']
|
|
143
|
-
end
|
|
144
|
-
|
|
145
129
|
if attributes.key?(:'links')
|
|
146
130
|
if (value = attributes[:'links']).is_a?(Hash)
|
|
147
131
|
self.links = value
|
|
148
132
|
end
|
|
149
133
|
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'results')
|
|
136
|
+
if (value = attributes[:'results']).is_a?(Array)
|
|
137
|
+
self.results = value
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'errors')
|
|
142
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
143
|
+
self.errors = value
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'status')
|
|
148
|
+
self.status = attributes[:'status']
|
|
149
|
+
end
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
153
153
|
# @return Array for valid properties with the reasons
|
|
154
154
|
def list_invalid_properties
|
|
155
155
|
invalid_properties = Array.new
|
|
156
|
-
if @
|
|
157
|
-
invalid_properties.push('invalid value for "
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
if @results.nil?
|
|
161
|
-
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
156
|
+
if @completed_at.nil?
|
|
157
|
+
invalid_properties.push('invalid value for "completed_at", completed_at cannot be nil.')
|
|
162
158
|
end
|
|
163
159
|
|
|
164
160
|
if @started_at.nil?
|
|
165
161
|
invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
|
|
166
162
|
end
|
|
167
163
|
|
|
168
|
-
if @
|
|
169
|
-
invalid_properties.push('invalid value for "
|
|
164
|
+
if @results.nil?
|
|
165
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if @status.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
invalid_properties
|
|
@@ -175,12 +175,12 @@ module Hubspot
|
|
|
175
175
|
# Check to see if the all the properties in the model are valid
|
|
176
176
|
# @return true if the model is valid
|
|
177
177
|
def valid?
|
|
178
|
+
return false if @completed_at.nil?
|
|
179
|
+
return false if @started_at.nil?
|
|
180
|
+
return false if @results.nil?
|
|
178
181
|
return false if @status.nil?
|
|
179
182
|
status_validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
|
|
180
183
|
return false unless status_validator.valid?(@status)
|
|
181
|
-
return false if @results.nil?
|
|
182
|
-
return false if @started_at.nil?
|
|
183
|
-
return false if @completed_at.nil?
|
|
184
184
|
true
|
|
185
185
|
end
|
|
186
186
|
|
|
@@ -199,14 +199,14 @@ module Hubspot
|
|
|
199
199
|
def ==(o)
|
|
200
200
|
return true if self.equal?(o)
|
|
201
201
|
self.class == o.class &&
|
|
202
|
-
|
|
203
|
-
results == o.results &&
|
|
202
|
+
completed_at == o.completed_at &&
|
|
204
203
|
num_errors == o.num_errors &&
|
|
205
|
-
errors == o.errors &&
|
|
206
204
|
requested_at == o.requested_at &&
|
|
207
205
|
started_at == o.started_at &&
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
links == o.links &&
|
|
207
|
+
results == o.results &&
|
|
208
|
+
errors == o.errors &&
|
|
209
|
+
status == o.status
|
|
210
210
|
end
|
|
211
211
|
|
|
212
212
|
# @see the `==` method
|
|
@@ -218,7 +218,7 @@ module Hubspot
|
|
|
218
218
|
# Calculates hash code according to all attributes.
|
|
219
219
|
# @return [Integer] Hash code
|
|
220
220
|
def hash
|
|
221
|
-
[
|
|
221
|
+
[completed_at, num_errors, requested_at, started_at, links, results, errors, status].hash
|
|
222
222
|
end
|
|
223
223
|
|
|
224
224
|
# Builds the object from hash
|
data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb
CHANGED
|
@@ -18,22 +18,22 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class BatchResponsePublicDefaultAssociation
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
attr_accessor :results
|
|
21
|
+
attr_accessor :completed_at
|
|
24
22
|
|
|
25
23
|
attr_accessor :num_errors
|
|
26
24
|
|
|
27
|
-
attr_accessor :errors
|
|
28
|
-
|
|
29
25
|
attr_accessor :requested_at
|
|
30
26
|
|
|
31
27
|
attr_accessor :started_at
|
|
32
28
|
|
|
33
|
-
attr_accessor :completed_at
|
|
34
|
-
|
|
35
29
|
attr_accessor :links
|
|
36
30
|
|
|
31
|
+
attr_accessor :results
|
|
32
|
+
|
|
33
|
+
attr_accessor :errors
|
|
34
|
+
|
|
35
|
+
attr_accessor :status
|
|
36
|
+
|
|
37
37
|
class EnumAttributeValidator
|
|
38
38
|
attr_reader :datatype
|
|
39
39
|
attr_reader :allowable_values
|
|
@@ -59,14 +59,14 @@ module Hubspot
|
|
|
59
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
60
60
|
def self.attribute_map
|
|
61
61
|
{
|
|
62
|
-
:'
|
|
63
|
-
:'results' => :'results',
|
|
62
|
+
:'completed_at' => :'completedAt',
|
|
64
63
|
:'num_errors' => :'numErrors',
|
|
65
|
-
:'errors' => :'errors',
|
|
66
64
|
:'requested_at' => :'requestedAt',
|
|
67
65
|
:'started_at' => :'startedAt',
|
|
68
|
-
:'
|
|
69
|
-
:'
|
|
66
|
+
:'links' => :'links',
|
|
67
|
+
:'results' => :'results',
|
|
68
|
+
:'errors' => :'errors',
|
|
69
|
+
:'status' => :'status'
|
|
70
70
|
}
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -78,14 +78,14 @@ module Hubspot
|
|
|
78
78
|
# Attribute type mapping.
|
|
79
79
|
def self.openapi_types
|
|
80
80
|
{
|
|
81
|
-
:'
|
|
82
|
-
:'results' => :'Array<PublicDefaultAssociation>',
|
|
81
|
+
:'completed_at' => :'Time',
|
|
83
82
|
:'num_errors' => :'Integer',
|
|
84
|
-
:'errors' => :'Array<StandardError>',
|
|
85
83
|
:'requested_at' => :'Time',
|
|
86
84
|
:'started_at' => :'Time',
|
|
87
|
-
:'
|
|
88
|
-
:'
|
|
85
|
+
:'links' => :'Hash<String, String>',
|
|
86
|
+
:'results' => :'Array<PublicDefaultAssociation>',
|
|
87
|
+
:'errors' => :'Array<StandardError1>',
|
|
88
|
+
:'status' => :'String'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
91
91
|
|
|
@@ -110,26 +110,14 @@ module Hubspot
|
|
|
110
110
|
h[k.to_sym] = v
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
if attributes.key?(:'results')
|
|
118
|
-
if (value = attributes[:'results']).is_a?(Array)
|
|
119
|
-
self.results = value
|
|
120
|
-
end
|
|
113
|
+
if attributes.key?(:'completed_at')
|
|
114
|
+
self.completed_at = attributes[:'completed_at']
|
|
121
115
|
end
|
|
122
116
|
|
|
123
117
|
if attributes.key?(:'num_errors')
|
|
124
118
|
self.num_errors = attributes[:'num_errors']
|
|
125
119
|
end
|
|
126
120
|
|
|
127
|
-
if attributes.key?(:'errors')
|
|
128
|
-
if (value = attributes[:'errors']).is_a?(Array)
|
|
129
|
-
self.errors = value
|
|
130
|
-
end
|
|
131
|
-
end
|
|
132
|
-
|
|
133
121
|
if attributes.key?(:'requested_at')
|
|
134
122
|
self.requested_at = attributes[:'requested_at']
|
|
135
123
|
end
|
|
@@ -138,35 +126,47 @@ module Hubspot
|
|
|
138
126
|
self.started_at = attributes[:'started_at']
|
|
139
127
|
end
|
|
140
128
|
|
|
141
|
-
if attributes.key?(:'completed_at')
|
|
142
|
-
self.completed_at = attributes[:'completed_at']
|
|
143
|
-
end
|
|
144
|
-
|
|
145
129
|
if attributes.key?(:'links')
|
|
146
130
|
if (value = attributes[:'links']).is_a?(Hash)
|
|
147
131
|
self.links = value
|
|
148
132
|
end
|
|
149
133
|
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'results')
|
|
136
|
+
if (value = attributes[:'results']).is_a?(Array)
|
|
137
|
+
self.results = value
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'errors')
|
|
142
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
143
|
+
self.errors = value
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'status')
|
|
148
|
+
self.status = attributes[:'status']
|
|
149
|
+
end
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
153
153
|
# @return Array for valid properties with the reasons
|
|
154
154
|
def list_invalid_properties
|
|
155
155
|
invalid_properties = Array.new
|
|
156
|
-
if @
|
|
157
|
-
invalid_properties.push('invalid value for "
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
if @results.nil?
|
|
161
|
-
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
156
|
+
if @completed_at.nil?
|
|
157
|
+
invalid_properties.push('invalid value for "completed_at", completed_at cannot be nil.')
|
|
162
158
|
end
|
|
163
159
|
|
|
164
160
|
if @started_at.nil?
|
|
165
161
|
invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
|
|
166
162
|
end
|
|
167
163
|
|
|
168
|
-
if @
|
|
169
|
-
invalid_properties.push('invalid value for "
|
|
164
|
+
if @results.nil?
|
|
165
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if @status.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
invalid_properties
|
|
@@ -175,12 +175,12 @@ module Hubspot
|
|
|
175
175
|
# Check to see if the all the properties in the model are valid
|
|
176
176
|
# @return true if the model is valid
|
|
177
177
|
def valid?
|
|
178
|
+
return false if @completed_at.nil?
|
|
179
|
+
return false if @started_at.nil?
|
|
180
|
+
return false if @results.nil?
|
|
178
181
|
return false if @status.nil?
|
|
179
182
|
status_validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
|
|
180
183
|
return false unless status_validator.valid?(@status)
|
|
181
|
-
return false if @results.nil?
|
|
182
|
-
return false if @started_at.nil?
|
|
183
|
-
return false if @completed_at.nil?
|
|
184
184
|
true
|
|
185
185
|
end
|
|
186
186
|
|
|
@@ -199,14 +199,14 @@ module Hubspot
|
|
|
199
199
|
def ==(o)
|
|
200
200
|
return true if self.equal?(o)
|
|
201
201
|
self.class == o.class &&
|
|
202
|
-
|
|
203
|
-
results == o.results &&
|
|
202
|
+
completed_at == o.completed_at &&
|
|
204
203
|
num_errors == o.num_errors &&
|
|
205
|
-
errors == o.errors &&
|
|
206
204
|
requested_at == o.requested_at &&
|
|
207
205
|
started_at == o.started_at &&
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
links == o.links &&
|
|
207
|
+
results == o.results &&
|
|
208
|
+
errors == o.errors &&
|
|
209
|
+
status == o.status
|
|
210
210
|
end
|
|
211
211
|
|
|
212
212
|
# @see the `==` method
|
|
@@ -218,7 +218,7 @@ module Hubspot
|
|
|
218
218
|
# Calculates hash code according to all attributes.
|
|
219
219
|
# @return [Integer] Hash code
|
|
220
220
|
def hash
|
|
221
|
-
[
|
|
221
|
+
[completed_at, num_errors, requested_at, started_at, links, results, errors, status].hash
|
|
222
222
|
end
|
|
223
223
|
|
|
224
224
|
# Builds the object from hash
|
|
@@ -18,18 +18,18 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class BatchResponseSimplePublicObject
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
attr_accessor :results
|
|
21
|
+
attr_accessor :completed_at
|
|
24
22
|
|
|
25
23
|
attr_accessor :requested_at
|
|
26
24
|
|
|
27
25
|
attr_accessor :started_at
|
|
28
26
|
|
|
29
|
-
attr_accessor :completed_at
|
|
30
|
-
|
|
31
27
|
attr_accessor :links
|
|
32
28
|
|
|
29
|
+
attr_accessor :results
|
|
30
|
+
|
|
31
|
+
attr_accessor :status
|
|
32
|
+
|
|
33
33
|
class EnumAttributeValidator
|
|
34
34
|
attr_reader :datatype
|
|
35
35
|
attr_reader :allowable_values
|
|
@@ -55,12 +55,12 @@ module Hubspot
|
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
56
|
def self.attribute_map
|
|
57
57
|
{
|
|
58
|
-
:'
|
|
59
|
-
:'results' => :'results',
|
|
58
|
+
:'completed_at' => :'completedAt',
|
|
60
59
|
:'requested_at' => :'requestedAt',
|
|
61
60
|
:'started_at' => :'startedAt',
|
|
62
|
-
:'
|
|
63
|
-
:'
|
|
61
|
+
:'links' => :'links',
|
|
62
|
+
:'results' => :'results',
|
|
63
|
+
:'status' => :'status'
|
|
64
64
|
}
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -72,12 +72,12 @@ module Hubspot
|
|
|
72
72
|
# Attribute type mapping.
|
|
73
73
|
def self.openapi_types
|
|
74
74
|
{
|
|
75
|
-
:'
|
|
76
|
-
:'results' => :'Array<SimplePublicObject>',
|
|
75
|
+
:'completed_at' => :'Time',
|
|
77
76
|
:'requested_at' => :'Time',
|
|
78
77
|
:'started_at' => :'Time',
|
|
79
|
-
:'
|
|
80
|
-
:'
|
|
78
|
+
:'links' => :'Hash<String, String>',
|
|
79
|
+
:'results' => :'Array<SimplePublicObject>',
|
|
80
|
+
:'status' => :'String'
|
|
81
81
|
}
|
|
82
82
|
end
|
|
83
83
|
|
|
@@ -102,14 +102,8 @@ module Hubspot
|
|
|
102
102
|
h[k.to_sym] = v
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
if attributes.key?(:'
|
|
106
|
-
self.
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'results')
|
|
110
|
-
if (value = attributes[:'results']).is_a?(Array)
|
|
111
|
-
self.results = value
|
|
112
|
-
end
|
|
105
|
+
if attributes.key?(:'completed_at')
|
|
106
|
+
self.completed_at = attributes[:'completed_at']
|
|
113
107
|
end
|
|
114
108
|
|
|
115
109
|
if attributes.key?(:'requested_at')
|
|
@@ -120,35 +114,41 @@ module Hubspot
|
|
|
120
114
|
self.started_at = attributes[:'started_at']
|
|
121
115
|
end
|
|
122
116
|
|
|
123
|
-
if attributes.key?(:'completed_at')
|
|
124
|
-
self.completed_at = attributes[:'completed_at']
|
|
125
|
-
end
|
|
126
|
-
|
|
127
117
|
if attributes.key?(:'links')
|
|
128
118
|
if (value = attributes[:'links']).is_a?(Hash)
|
|
129
119
|
self.links = value
|
|
130
120
|
end
|
|
131
121
|
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'results')
|
|
124
|
+
if (value = attributes[:'results']).is_a?(Array)
|
|
125
|
+
self.results = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'status')
|
|
130
|
+
self.status = attributes[:'status']
|
|
131
|
+
end
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
135
135
|
# @return Array for valid properties with the reasons
|
|
136
136
|
def list_invalid_properties
|
|
137
137
|
invalid_properties = Array.new
|
|
138
|
-
if @
|
|
139
|
-
invalid_properties.push('invalid value for "
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
if @results.nil?
|
|
143
|
-
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
138
|
+
if @completed_at.nil?
|
|
139
|
+
invalid_properties.push('invalid value for "completed_at", completed_at cannot be nil.')
|
|
144
140
|
end
|
|
145
141
|
|
|
146
142
|
if @started_at.nil?
|
|
147
143
|
invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
|
|
148
144
|
end
|
|
149
145
|
|
|
150
|
-
if @
|
|
151
|
-
invalid_properties.push('invalid value for "
|
|
146
|
+
if @results.nil?
|
|
147
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if @status.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
152
152
|
end
|
|
153
153
|
|
|
154
154
|
invalid_properties
|
|
@@ -157,12 +157,12 @@ module Hubspot
|
|
|
157
157
|
# Check to see if the all the properties in the model are valid
|
|
158
158
|
# @return true if the model is valid
|
|
159
159
|
def valid?
|
|
160
|
+
return false if @completed_at.nil?
|
|
161
|
+
return false if @started_at.nil?
|
|
162
|
+
return false if @results.nil?
|
|
160
163
|
return false if @status.nil?
|
|
161
164
|
status_validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
|
|
162
165
|
return false unless status_validator.valid?(@status)
|
|
163
|
-
return false if @results.nil?
|
|
164
|
-
return false if @started_at.nil?
|
|
165
|
-
return false if @completed_at.nil?
|
|
166
166
|
true
|
|
167
167
|
end
|
|
168
168
|
|
|
@@ -181,12 +181,12 @@ module Hubspot
|
|
|
181
181
|
def ==(o)
|
|
182
182
|
return true if self.equal?(o)
|
|
183
183
|
self.class == o.class &&
|
|
184
|
-
|
|
185
|
-
results == o.results &&
|
|
184
|
+
completed_at == o.completed_at &&
|
|
186
185
|
requested_at == o.requested_at &&
|
|
187
186
|
started_at == o.started_at &&
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
links == o.links &&
|
|
188
|
+
results == o.results &&
|
|
189
|
+
status == o.status
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# @see the `==` method
|
|
@@ -198,7 +198,7 @@ module Hubspot
|
|
|
198
198
|
# Calculates hash code according to all attributes.
|
|
199
199
|
# @return [Integer] Hash code
|
|
200
200
|
def hash
|
|
201
|
-
[
|
|
201
|
+
[completed_at, requested_at, started_at, links, results, status].hash
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
# Builds the object from hash
|