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
data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_update_request.rb
CHANGED
|
@@ -18,15 +18,15 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class PublicAssociationDefinitionUpdateRequest
|
|
21
|
-
attr_accessor :label
|
|
22
|
-
|
|
23
21
|
attr_accessor :association_type_id
|
|
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
|
-
:'
|
|
29
|
-
:'
|
|
28
|
+
:'association_type_id' => :'associationTypeId',
|
|
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
|
-
:'
|
|
42
|
-
:'
|
|
41
|
+
:'association_type_id' => :'Integer',
|
|
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?(:'association_type_id')
|
|
72
68
|
self.association_type_id = attributes[:'association_type_id']
|
|
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 @association_type_id.nil?
|
|
85
81
|
invalid_properties.push('invalid value for "association_type_id", association_type_id 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 @association_type_id.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
|
-
|
|
105
|
-
|
|
104
|
+
association_type_id == o.association_type_id &&
|
|
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
|
-
[
|
|
117
|
+
[association_type_id, label].hash
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
# Builds the object from hash
|
|
@@ -18,18 +18,18 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class PublicAssociationMultiPost
|
|
21
|
+
attr_accessor :types
|
|
22
|
+
|
|
21
23
|
attr_accessor :from
|
|
22
24
|
|
|
23
25
|
attr_accessor :to
|
|
24
26
|
|
|
25
|
-
attr_accessor :types
|
|
26
|
-
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
28
|
def self.attribute_map
|
|
29
29
|
{
|
|
30
|
+
:'types' => :'types',
|
|
30
31
|
:'from' => :'from',
|
|
31
|
-
:'to' => :'to'
|
|
32
|
-
:'types' => :'types'
|
|
32
|
+
:'to' => :'to'
|
|
33
33
|
}
|
|
34
34
|
end
|
|
35
35
|
|
|
@@ -41,9 +41,9 @@ module Hubspot
|
|
|
41
41
|
# Attribute type mapping.
|
|
42
42
|
def self.openapi_types
|
|
43
43
|
{
|
|
44
|
+
:'types' => :'Array<AssociationSpec>',
|
|
44
45
|
:'from' => :'PublicObjectId',
|
|
45
|
-
:'to' => :'PublicObjectId'
|
|
46
|
-
:'types' => :'Array<AssociationSpec>'
|
|
46
|
+
:'to' => :'PublicObjectId'
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -68,6 +68,12 @@ module Hubspot
|
|
|
68
68
|
h[k.to_sym] = v
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
if attributes.key?(:'types')
|
|
72
|
+
if (value = attributes[:'types']).is_a?(Array)
|
|
73
|
+
self.types = value
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
71
77
|
if attributes.key?(:'from')
|
|
72
78
|
self.from = attributes[:'from']
|
|
73
79
|
end
|
|
@@ -75,18 +81,16 @@ module Hubspot
|
|
|
75
81
|
if attributes.key?(:'to')
|
|
76
82
|
self.to = attributes[:'to']
|
|
77
83
|
end
|
|
78
|
-
|
|
79
|
-
if attributes.key?(:'types')
|
|
80
|
-
if (value = attributes[:'types']).is_a?(Array)
|
|
81
|
-
self.types = value
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
87
|
# @return Array for valid properties with the reasons
|
|
88
88
|
def list_invalid_properties
|
|
89
89
|
invalid_properties = Array.new
|
|
90
|
+
if @types.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "types", types cannot be nil.')
|
|
92
|
+
end
|
|
93
|
+
|
|
90
94
|
if @from.nil?
|
|
91
95
|
invalid_properties.push('invalid value for "from", from cannot be nil.')
|
|
92
96
|
end
|
|
@@ -95,19 +99,15 @@ module Hubspot
|
|
|
95
99
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
96
100
|
end
|
|
97
101
|
|
|
98
|
-
if @types.nil?
|
|
99
|
-
invalid_properties.push('invalid value for "types", types cannot be nil.')
|
|
100
|
-
end
|
|
101
|
-
|
|
102
102
|
invalid_properties
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
# Check to see if the all the properties in the model are valid
|
|
106
106
|
# @return true if the model is valid
|
|
107
107
|
def valid?
|
|
108
|
+
return false if @types.nil?
|
|
108
109
|
return false if @from.nil?
|
|
109
110
|
return false if @to.nil?
|
|
110
|
-
return false if @types.nil?
|
|
111
111
|
true
|
|
112
112
|
end
|
|
113
113
|
|
|
@@ -116,9 +116,9 @@ module Hubspot
|
|
|
116
116
|
def ==(o)
|
|
117
117
|
return true if self.equal?(o)
|
|
118
118
|
self.class == o.class &&
|
|
119
|
+
types == o.types &&
|
|
119
120
|
from == o.from &&
|
|
120
|
-
to == o.to
|
|
121
|
-
types == o.types
|
|
121
|
+
to == o.to
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# @see the `==` method
|
|
@@ -130,7 +130,7 @@ module Hubspot
|
|
|
130
130
|
# Calculates hash code according to all attributes.
|
|
131
131
|
# @return [Integer] Hash code
|
|
132
132
|
def hash
|
|
133
|
-
[from, to
|
|
133
|
+
[types, from, to].hash
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
# Builds the object from hash
|
|
@@ -20,16 +20,16 @@ module Hubspot
|
|
|
20
20
|
class PublicAssociationMultiWithLabel
|
|
21
21
|
attr_accessor :from
|
|
22
22
|
|
|
23
|
-
attr_accessor :to
|
|
24
|
-
|
|
25
23
|
attr_accessor :paging
|
|
26
24
|
|
|
25
|
+
attr_accessor :to
|
|
26
|
+
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
28
|
def self.attribute_map
|
|
29
29
|
{
|
|
30
30
|
:'from' => :'from',
|
|
31
|
-
:'
|
|
32
|
-
:'
|
|
31
|
+
:'paging' => :'paging',
|
|
32
|
+
:'to' => :'to'
|
|
33
33
|
}
|
|
34
34
|
end
|
|
35
35
|
|
|
@@ -42,8 +42,8 @@ module Hubspot
|
|
|
42
42
|
def self.openapi_types
|
|
43
43
|
{
|
|
44
44
|
:'from' => :'PublicObjectId',
|
|
45
|
-
:'
|
|
46
|
-
:'
|
|
45
|
+
:'paging' => :'Paging',
|
|
46
|
+
:'to' => :'Array<MultiAssociatedObjectWithLabel>'
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -72,15 +72,15 @@ module Hubspot
|
|
|
72
72
|
self.from = attributes[:'from']
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
+
if attributes.key?(:'paging')
|
|
76
|
+
self.paging = attributes[:'paging']
|
|
77
|
+
end
|
|
78
|
+
|
|
75
79
|
if attributes.key?(:'to')
|
|
76
80
|
if (value = attributes[:'to']).is_a?(Array)
|
|
77
81
|
self.to = value
|
|
78
82
|
end
|
|
79
83
|
end
|
|
80
|
-
|
|
81
|
-
if attributes.key?(:'paging')
|
|
82
|
-
self.paging = attributes[:'paging']
|
|
83
|
-
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -112,8 +112,8 @@ module Hubspot
|
|
|
112
112
|
return true if self.equal?(o)
|
|
113
113
|
self.class == o.class &&
|
|
114
114
|
from == o.from &&
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
paging == o.paging &&
|
|
116
|
+
to == o.to
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
# @see the `==` method
|
|
@@ -125,7 +125,7 @@ module Hubspot
|
|
|
125
125
|
# Calculates hash code according to all attributes.
|
|
126
126
|
# @return [Integer] Hash code
|
|
127
127
|
def hash
|
|
128
|
-
[from,
|
|
128
|
+
[from, paging, to].hash
|
|
129
129
|
end
|
|
130
130
|
|
|
131
131
|
# Builds the object from hash
|
|
@@ -18,15 +18,15 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class PublicAssociationsForObject
|
|
21
|
-
attr_accessor :to
|
|
22
|
-
|
|
23
21
|
attr_accessor :types
|
|
24
22
|
|
|
23
|
+
attr_accessor :to
|
|
24
|
+
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
26
|
def self.attribute_map
|
|
27
27
|
{
|
|
28
|
-
:'
|
|
29
|
-
:'
|
|
28
|
+
:'types' => :'types',
|
|
29
|
+
:'to' => :'to'
|
|
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
|
-
:'
|
|
42
|
-
:'
|
|
41
|
+
:'types' => :'Array<AssociationSpec>',
|
|
42
|
+
:'to' => :'PublicObjectId'
|
|
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')
|
|
68
|
-
self.to = attributes[:'to']
|
|
69
|
-
end
|
|
70
|
-
|
|
71
67
|
if attributes.key?(:'types')
|
|
72
68
|
if (value = attributes[:'types']).is_a?(Array)
|
|
73
69
|
self.types = value
|
|
74
70
|
end
|
|
75
71
|
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'to')
|
|
74
|
+
self.to = attributes[:'to']
|
|
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.nil?
|
|
83
|
-
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
84
|
-
end
|
|
85
|
-
|
|
86
82
|
if @types.nil?
|
|
87
83
|
invalid_properties.push('invalid value for "types", types cannot be nil.')
|
|
88
84
|
end
|
|
89
85
|
|
|
86
|
+
if @to.nil?
|
|
87
|
+
invalid_properties.push('invalid value for "to", to 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.nil?
|
|
97
96
|
return false if @types.nil?
|
|
97
|
+
return false if @to.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
|
-
|
|
107
|
-
|
|
106
|
+
types == o.types &&
|
|
107
|
+
to == o.to
|
|
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
|
-
[
|
|
119
|
+
[types, to].hash
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
# Builds the object from hash
|
|
@@ -18,18 +18,18 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class PublicDefaultAssociation
|
|
21
|
+
attr_accessor :association_spec
|
|
22
|
+
|
|
21
23
|
attr_accessor :from
|
|
22
24
|
|
|
23
25
|
attr_accessor :to
|
|
24
26
|
|
|
25
|
-
attr_accessor :association_spec
|
|
26
|
-
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
28
|
def self.attribute_map
|
|
29
29
|
{
|
|
30
|
+
:'association_spec' => :'associationSpec',
|
|
30
31
|
:'from' => :'from',
|
|
31
|
-
:'to' => :'to'
|
|
32
|
-
:'association_spec' => :'associationSpec'
|
|
32
|
+
:'to' => :'to'
|
|
33
33
|
}
|
|
34
34
|
end
|
|
35
35
|
|
|
@@ -41,9 +41,9 @@ module Hubspot
|
|
|
41
41
|
# Attribute type mapping.
|
|
42
42
|
def self.openapi_types
|
|
43
43
|
{
|
|
44
|
+
:'association_spec' => :'AssociationSpec',
|
|
44
45
|
:'from' => :'PublicObjectId',
|
|
45
|
-
:'to' => :'PublicObjectId'
|
|
46
|
-
:'association_spec' => :'AssociationSpec'
|
|
46
|
+
:'to' => :'PublicObjectId'
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -68,6 +68,10 @@ module Hubspot
|
|
|
68
68
|
h[k.to_sym] = v
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
if attributes.key?(:'association_spec')
|
|
72
|
+
self.association_spec = attributes[:'association_spec']
|
|
73
|
+
end
|
|
74
|
+
|
|
71
75
|
if attributes.key?(:'from')
|
|
72
76
|
self.from = attributes[:'from']
|
|
73
77
|
end
|
|
@@ -75,16 +79,16 @@ module Hubspot
|
|
|
75
79
|
if attributes.key?(:'to')
|
|
76
80
|
self.to = attributes[:'to']
|
|
77
81
|
end
|
|
78
|
-
|
|
79
|
-
if attributes.key?(:'association_spec')
|
|
80
|
-
self.association_spec = attributes[:'association_spec']
|
|
81
|
-
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
85
|
# @return Array for valid properties with the reasons
|
|
86
86
|
def list_invalid_properties
|
|
87
87
|
invalid_properties = Array.new
|
|
88
|
+
if @association_spec.nil?
|
|
89
|
+
invalid_properties.push('invalid value for "association_spec", association_spec cannot be nil.')
|
|
90
|
+
end
|
|
91
|
+
|
|
88
92
|
if @from.nil?
|
|
89
93
|
invalid_properties.push('invalid value for "from", from cannot be nil.')
|
|
90
94
|
end
|
|
@@ -93,19 +97,15 @@ module Hubspot
|
|
|
93
97
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
94
98
|
end
|
|
95
99
|
|
|
96
|
-
if @association_spec.nil?
|
|
97
|
-
invalid_properties.push('invalid value for "association_spec", association_spec cannot be nil.')
|
|
98
|
-
end
|
|
99
|
-
|
|
100
100
|
invalid_properties
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
# Check to see if the all the properties in the model are valid
|
|
104
104
|
# @return true if the model is valid
|
|
105
105
|
def valid?
|
|
106
|
+
return false if @association_spec.nil?
|
|
106
107
|
return false if @from.nil?
|
|
107
108
|
return false if @to.nil?
|
|
108
|
-
return false if @association_spec.nil?
|
|
109
109
|
true
|
|
110
110
|
end
|
|
111
111
|
|
|
@@ -114,9 +114,9 @@ module Hubspot
|
|
|
114
114
|
def ==(o)
|
|
115
115
|
return true if self.equal?(o)
|
|
116
116
|
self.class == o.class &&
|
|
117
|
+
association_spec == o.association_spec &&
|
|
117
118
|
from == o.from &&
|
|
118
|
-
to == o.to
|
|
119
|
-
association_spec == o.association_spec
|
|
119
|
+
to == o.to
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
# @see the `==` method
|
|
@@ -128,7 +128,7 @@ module Hubspot
|
|
|
128
128
|
# Calculates hash code according to all attributes.
|
|
129
129
|
# @return [Integer] Hash code
|
|
130
130
|
def hash
|
|
131
|
-
[from, to
|
|
131
|
+
[association_spec, from, to].hash
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
# Builds the object from hash
|
|
@@ -18,15 +18,15 @@ module Hubspot
|
|
|
18
18
|
module Associations
|
|
19
19
|
module V4
|
|
20
20
|
class PublicGdprDeleteInput
|
|
21
|
-
attr_accessor :object_id
|
|
22
|
-
|
|
23
21
|
attr_accessor :id_property
|
|
24
22
|
|
|
23
|
+
attr_accessor :object_id
|
|
24
|
+
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
26
|
def self.attribute_map
|
|
27
27
|
{
|
|
28
|
-
:'
|
|
29
|
-
:'
|
|
28
|
+
:'id_property' => :'idProperty',
|
|
29
|
+
:'object_id' => :'objectId'
|
|
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
|
-
:'
|
|
42
|
-
:'
|
|
41
|
+
:'id_property' => :'String',
|
|
42
|
+
:'object_id' => :'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?(:'object_id')
|
|
68
|
-
self.object_id = attributes[:'object_id']
|
|
69
|
-
end
|
|
70
|
-
|
|
71
67
|
if attributes.key?(:'id_property')
|
|
72
68
|
self.id_property = attributes[:'id_property']
|
|
73
69
|
end
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'object_id')
|
|
72
|
+
self.object_id = attributes[:'object_id']
|
|
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
|
-
|
|
100
|
-
|
|
99
|
+
id_property == o.id_property &&
|
|
100
|
+
object_id == o.object_id
|
|
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
|
-
[
|
|
112
|
+
[id_property, object_id].hash
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
# Builds the object from hash
|