hubspot-api-client 16.2.0 → 16.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile.lock +1 -1
- data/lib/hubspot/codegen/automation/actions/models/action_function.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/action_function_identifier.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/action_labels.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/action_revision.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/callback_completion_batch_request.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/callback_completion_request.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/extension_action_definition.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_input.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_patch.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_patch_input_field_dependencies_inner.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/field_type_definition.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/input_field_definition.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/object_request_options.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/option.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/attach_to_lang_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_blog_author.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_json_node.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_string.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author_with_errors.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author_clone_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/collection_response_with_total_blog_author_forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/detach_from_lang_group_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/next_page.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/set_new_language_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/standard_error.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/update_languages_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/attach_to_lang_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_json_node.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_string.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post_with_errors.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post_language_clone_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_blog_post_forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_version_blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_clone_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_schedule_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/detach_from_lang_group_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/next_page.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/previous_page.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/rgba_color.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/set_new_language_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/standard_error.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/update_languages_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_user.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/attach_to_lang_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_json_node.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_string.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_tag.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag_with_errors.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/collection_response_with_total_tag_forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/detach_from_lang_group_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/next_page.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/set_new_language_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/standard_error.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/tag.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/tag_clone_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/update_languages_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_generation_request.rb +1 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_response.rb +1 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +30 -18
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +29 -38
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +29 -38
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definition_no_paging.rb +230 -0
- data/lib/hubspot/codegen/crm/associations/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +13 -4
- data/lib/hubspot/codegen/crm/associations/models/previous_page.rb +237 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_definition.rb +242 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +13 -4
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_customer.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_invoice.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/customer_search_response_external.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/exchange_rate_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_pdf_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_search_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/result_id_accounting_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_product.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result_actions_inner.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/external_settings.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/file_update_input.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/folder_input.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/folder_update_input.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/folder_update_task_locator.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/hubspot_file.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/import_from_url_task_locator.rb +1 -0
- data/lib/hubspot/codegen/marketing/events/api/marketing_events_external_api.rb +0 -60
- data/lib/hubspot/codegen/marketing/events/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber.rb +1 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_subscriber.rb +1 -0
- data/lib/hubspot/codegen/marketing/events/models/property_value.rb +13 -4
- data/lib/hubspot/codegen/marketing/forms/models/collection_response_form_definition_base_forward_paging_results_inner.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/datepicker_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field_dependent_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field_filter.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/dropdown_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/email_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/email_field_validation.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/field_group.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/file_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_definition_base.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_definition_create_request_base.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_display_options.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_post_submit_action.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_style.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_patch_request_legal_consent_options.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/mobile_phone_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/multi_line_text_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/multiple_checkboxes_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/number_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/number_field_validation.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/phone_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/phone_field_validation.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/radio_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/single_checkbox_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/single_line_text_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/public_permission_set.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/public_team.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/public_user.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/public_user_update.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/user_provision_request.rb +1 -0
- data/lib/hubspot/discovery/marketing/events/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/client.rb +1 -0
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/marketing/events/marketing_events_external_api_spec.rb +0 -1
- data/spec/discovery/marketing/events/search_api_spec.rb +7 -0
- metadata +12 -3
@@ -25,11 +25,11 @@ module Hubspot
|
|
25
25
|
# Remove the associations between all pairs of objects identified in the request body.
|
26
26
|
# @param from_object_type [String]
|
27
27
|
# @param to_object_type [String]
|
28
|
+
# @param batch_input_public_association [BatchInputPublicAssociation]
|
28
29
|
# @param [Hash] opts the optional parameters
|
29
|
-
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
30
30
|
# @return [nil]
|
31
|
-
def archive(from_object_type, to_object_type, opts = {})
|
32
|
-
archive_with_http_info(from_object_type, to_object_type, opts)
|
31
|
+
def archive(from_object_type, to_object_type, batch_input_public_association, opts = {})
|
32
|
+
archive_with_http_info(from_object_type, to_object_type, batch_input_public_association, opts)
|
33
33
|
nil
|
34
34
|
end
|
35
35
|
|
@@ -37,10 +37,10 @@ module Hubspot
|
|
37
37
|
# Remove the associations between all pairs of objects identified in the request body.
|
38
38
|
# @param from_object_type [String]
|
39
39
|
# @param to_object_type [String]
|
40
|
+
# @param batch_input_public_association [BatchInputPublicAssociation]
|
40
41
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
42
42
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
43
|
-
def archive_with_http_info(from_object_type, to_object_type, opts = {})
|
43
|
+
def archive_with_http_info(from_object_type, to_object_type, batch_input_public_association, opts = {})
|
44
44
|
if @api_client.config.debugging
|
45
45
|
@api_client.config.logger.debug 'Calling API: BatchApi.archive ...'
|
46
46
|
end
|
@@ -52,6 +52,10 @@ module Hubspot
|
|
52
52
|
if @api_client.config.client_side_validation && to_object_type.nil?
|
53
53
|
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.archive"
|
54
54
|
end
|
55
|
+
# verify the required parameter 'batch_input_public_association' is set
|
56
|
+
if @api_client.config.client_side_validation && batch_input_public_association.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_public_association' when calling BatchApi.archive"
|
58
|
+
end
|
55
59
|
# resource path
|
56
60
|
local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/archive'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
|
57
61
|
|
@@ -72,7 +76,7 @@ module Hubspot
|
|
72
76
|
form_params = opts[:form_params] || {}
|
73
77
|
|
74
78
|
# http body (model)
|
75
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
79
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_public_association)
|
76
80
|
|
77
81
|
# return_type
|
78
82
|
return_type = opts[:debug_return_type]
|
@@ -101,11 +105,11 @@ module Hubspot
|
|
101
105
|
# Associate all pairs of objects identified in the request body.
|
102
106
|
# @param from_object_type [String]
|
103
107
|
# @param to_object_type [String]
|
108
|
+
# @param batch_input_public_association [BatchInputPublicAssociation]
|
104
109
|
# @param [Hash] opts the optional parameters
|
105
|
-
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
106
110
|
# @return [BatchResponsePublicAssociation]
|
107
|
-
def create(from_object_type, to_object_type, opts = {})
|
108
|
-
data, _status_code, _headers = create_with_http_info(from_object_type, to_object_type, opts)
|
111
|
+
def create(from_object_type, to_object_type, batch_input_public_association, opts = {})
|
112
|
+
data, _status_code, _headers = create_with_http_info(from_object_type, to_object_type, batch_input_public_association, opts)
|
109
113
|
data
|
110
114
|
end
|
111
115
|
|
@@ -113,10 +117,10 @@ module Hubspot
|
|
113
117
|
# Associate all pairs of objects identified in the request body.
|
114
118
|
# @param from_object_type [String]
|
115
119
|
# @param to_object_type [String]
|
120
|
+
# @param batch_input_public_association [BatchInputPublicAssociation]
|
116
121
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
118
122
|
# @return [Array<(BatchResponsePublicAssociation, Integer, Hash)>] BatchResponsePublicAssociation data, response status code and response headers
|
119
|
-
def create_with_http_info(from_object_type, to_object_type, opts = {})
|
123
|
+
def create_with_http_info(from_object_type, to_object_type, batch_input_public_association, opts = {})
|
120
124
|
if @api_client.config.debugging
|
121
125
|
@api_client.config.logger.debug 'Calling API: BatchApi.create ...'
|
122
126
|
end
|
@@ -128,6 +132,10 @@ module Hubspot
|
|
128
132
|
if @api_client.config.client_side_validation && to_object_type.nil?
|
129
133
|
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.create"
|
130
134
|
end
|
135
|
+
# verify the required parameter 'batch_input_public_association' is set
|
136
|
+
if @api_client.config.client_side_validation && batch_input_public_association.nil?
|
137
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_public_association' when calling BatchApi.create"
|
138
|
+
end
|
131
139
|
# resource path
|
132
140
|
local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/create'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
|
133
141
|
|
@@ -148,7 +156,7 @@ module Hubspot
|
|
148
156
|
form_params = opts[:form_params] || {}
|
149
157
|
|
150
158
|
# http body (model)
|
151
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
159
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_public_association)
|
152
160
|
|
153
161
|
# return_type
|
154
162
|
return_type = opts[:debug_return_type] || 'BatchResponsePublicAssociation'
|
@@ -177,11 +185,11 @@ module Hubspot
|
|
177
185
|
# Get the IDs of all `{toObjectType}` objects associated with those specified in the request body.
|
178
186
|
# @param from_object_type [String]
|
179
187
|
# @param to_object_type [String]
|
188
|
+
# @param batch_input_public_object_id [BatchInputPublicObjectId]
|
180
189
|
# @param [Hash] opts the optional parameters
|
181
|
-
# @option opts [BatchInputPublicObjectId] :batch_input_public_object_id
|
182
190
|
# @return [BatchResponsePublicAssociationMulti]
|
183
|
-
def read(from_object_type, to_object_type, opts = {})
|
184
|
-
data, _status_code, _headers = read_with_http_info(from_object_type, to_object_type, opts)
|
191
|
+
def read(from_object_type, to_object_type, batch_input_public_object_id, opts = {})
|
192
|
+
data, _status_code, _headers = read_with_http_info(from_object_type, to_object_type, batch_input_public_object_id, opts)
|
185
193
|
data
|
186
194
|
end
|
187
195
|
|
@@ -189,10 +197,10 @@ module Hubspot
|
|
189
197
|
# Get the IDs of all `{toObjectType}` objects associated with those specified in the request body.
|
190
198
|
# @param from_object_type [String]
|
191
199
|
# @param to_object_type [String]
|
200
|
+
# @param batch_input_public_object_id [BatchInputPublicObjectId]
|
192
201
|
# @param [Hash] opts the optional parameters
|
193
|
-
# @option opts [BatchInputPublicObjectId] :batch_input_public_object_id
|
194
202
|
# @return [Array<(BatchResponsePublicAssociationMulti, Integer, Hash)>] BatchResponsePublicAssociationMulti data, response status code and response headers
|
195
|
-
def read_with_http_info(from_object_type, to_object_type, opts = {})
|
203
|
+
def read_with_http_info(from_object_type, to_object_type, batch_input_public_object_id, opts = {})
|
196
204
|
if @api_client.config.debugging
|
197
205
|
@api_client.config.logger.debug 'Calling API: BatchApi.read ...'
|
198
206
|
end
|
@@ -204,6 +212,10 @@ module Hubspot
|
|
204
212
|
if @api_client.config.client_side_validation && to_object_type.nil?
|
205
213
|
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.read"
|
206
214
|
end
|
215
|
+
# verify the required parameter 'batch_input_public_object_id' is set
|
216
|
+
if @api_client.config.client_side_validation && batch_input_public_object_id.nil?
|
217
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_public_object_id' when calling BatchApi.read"
|
218
|
+
end
|
207
219
|
# resource path
|
208
220
|
local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/read'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
|
209
221
|
|
@@ -224,7 +236,7 @@ module Hubspot
|
|
224
236
|
form_params = opts[:form_params] || {}
|
225
237
|
|
226
238
|
# http body (model)
|
227
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
239
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_public_object_id)
|
228
240
|
|
229
241
|
# return_type
|
230
242
|
return_type = opts[:debug_return_type] || 'BatchResponsePublicAssociationMulti'
|
@@ -26,7 +26,7 @@ module Hubspot
|
|
26
26
|
# @param from_object_type [String]
|
27
27
|
# @param to_object_type [String]
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [
|
29
|
+
# @return [CollectionResponsePublicAssociationDefinitionNoPaging]
|
30
30
|
def get_all(from_object_type, to_object_type, opts = {})
|
31
31
|
data, _status_code, _headers = get_all_with_http_info(from_object_type, to_object_type, opts)
|
32
32
|
data
|
@@ -37,7 +37,7 @@ module Hubspot
|
|
37
37
|
# @param from_object_type [String]
|
38
38
|
# @param to_object_type [String]
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [Array<(
|
40
|
+
# @return [Array<(CollectionResponsePublicAssociationDefinitionNoPaging, Integer, Hash)>] CollectionResponsePublicAssociationDefinitionNoPaging data, response status code and response headers
|
41
41
|
def get_all_with_http_info(from_object_type, to_object_type, opts = {})
|
42
42
|
if @api_client.config.debugging
|
43
43
|
@api_client.config.logger.debug 'Calling API: TypesApi.get_all ...'
|
@@ -68,7 +68,7 @@ module Hubspot
|
|
68
68
|
post_body = opts[:debug_body]
|
69
69
|
|
70
70
|
# return_type
|
71
|
-
return_type = opts[:debug_return_type] || '
|
71
|
+
return_type = opts[:debug_return_type] || 'CollectionResponsePublicAssociationDefinitionNoPaging'
|
72
72
|
|
73
73
|
# auth_names
|
74
74
|
auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
|
@@ -17,20 +17,18 @@ module Hubspot
|
|
17
17
|
module Crm
|
18
18
|
module Associations
|
19
19
|
class BatchResponsePublicAssociation
|
20
|
-
attr_accessor :results
|
21
|
-
|
22
|
-
attr_accessor :num_errors
|
23
|
-
|
24
|
-
attr_accessor :errors
|
25
|
-
|
26
20
|
attr_accessor :status
|
27
21
|
|
22
|
+
attr_accessor :results
|
23
|
+
|
28
24
|
attr_accessor :requested_at
|
29
25
|
|
30
26
|
attr_accessor :started_at
|
31
27
|
|
32
28
|
attr_accessor :completed_at
|
33
29
|
|
30
|
+
attr_accessor :links
|
31
|
+
|
34
32
|
class EnumAttributeValidator
|
35
33
|
attr_reader :datatype
|
36
34
|
attr_reader :allowable_values
|
@@ -56,13 +54,12 @@ module Hubspot
|
|
56
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
55
|
def self.attribute_map
|
58
56
|
{
|
59
|
-
:'results' => :'results',
|
60
|
-
:'num_errors' => :'numErrors',
|
61
|
-
:'errors' => :'errors',
|
62
57
|
:'status' => :'status',
|
58
|
+
:'results' => :'results',
|
63
59
|
:'requested_at' => :'requestedAt',
|
64
60
|
:'started_at' => :'startedAt',
|
65
|
-
:'completed_at' => :'completedAt'
|
61
|
+
:'completed_at' => :'completedAt',
|
62
|
+
:'links' => :'links'
|
66
63
|
}
|
67
64
|
end
|
68
65
|
|
@@ -74,13 +71,12 @@ module Hubspot
|
|
74
71
|
# Attribute type mapping.
|
75
72
|
def self.openapi_types
|
76
73
|
{
|
77
|
-
:'results' => :'Array<PublicAssociation>',
|
78
|
-
:'num_errors' => :'Integer',
|
79
|
-
:'errors' => :'Array<StandardError>',
|
80
74
|
:'status' => :'String',
|
75
|
+
:'results' => :'Array<PublicAssociation>',
|
81
76
|
:'requested_at' => :'Time',
|
82
77
|
:'started_at' => :'Time',
|
83
|
-
:'completed_at' => :'Time'
|
78
|
+
:'completed_at' => :'Time',
|
79
|
+
:'links' => :'Hash<String, String>'
|
84
80
|
}
|
85
81
|
end
|
86
82
|
|
@@ -105,26 +101,16 @@ module Hubspot
|
|
105
101
|
h[k.to_sym] = v
|
106
102
|
}
|
107
103
|
|
104
|
+
if attributes.key?(:'status')
|
105
|
+
self.status = attributes[:'status']
|
106
|
+
end
|
107
|
+
|
108
108
|
if attributes.key?(:'results')
|
109
109
|
if (value = attributes[:'results']).is_a?(Array)
|
110
110
|
self.results = value
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
114
|
-
if attributes.key?(:'num_errors')
|
115
|
-
self.num_errors = attributes[:'num_errors']
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.key?(:'errors')
|
119
|
-
if (value = attributes[:'errors']).is_a?(Array)
|
120
|
-
self.errors = value
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'status')
|
125
|
-
self.status = attributes[:'status']
|
126
|
-
end
|
127
|
-
|
128
114
|
if attributes.key?(:'requested_at')
|
129
115
|
self.requested_at = attributes[:'requested_at']
|
130
116
|
end
|
@@ -136,20 +122,26 @@ module Hubspot
|
|
136
122
|
if attributes.key?(:'completed_at')
|
137
123
|
self.completed_at = attributes[:'completed_at']
|
138
124
|
end
|
125
|
+
|
126
|
+
if attributes.key?(:'links')
|
127
|
+
if (value = attributes[:'links']).is_a?(Hash)
|
128
|
+
self.links = value
|
129
|
+
end
|
130
|
+
end
|
139
131
|
end
|
140
132
|
|
141
133
|
# Show invalid properties with the reasons. Usually used together with valid?
|
142
134
|
# @return Array for valid properties with the reasons
|
143
135
|
def list_invalid_properties
|
144
136
|
invalid_properties = Array.new
|
145
|
-
if @results.nil?
|
146
|
-
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
147
|
-
end
|
148
|
-
|
149
137
|
if @status.nil?
|
150
138
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
151
139
|
end
|
152
140
|
|
141
|
+
if @results.nil?
|
142
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
143
|
+
end
|
144
|
+
|
153
145
|
if @started_at.nil?
|
154
146
|
invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
|
155
147
|
end
|
@@ -164,10 +156,10 @@ module Hubspot
|
|
164
156
|
# Check to see if the all the properties in the model are valid
|
165
157
|
# @return true if the model is valid
|
166
158
|
def valid?
|
167
|
-
return false if @results.nil?
|
168
159
|
return false if @status.nil?
|
169
160
|
status_validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
|
170
161
|
return false unless status_validator.valid?(@status)
|
162
|
+
return false if @results.nil?
|
171
163
|
return false if @started_at.nil?
|
172
164
|
return false if @completed_at.nil?
|
173
165
|
true
|
@@ -188,13 +180,12 @@ module Hubspot
|
|
188
180
|
def ==(o)
|
189
181
|
return true if self.equal?(o)
|
190
182
|
self.class == o.class &&
|
191
|
-
results == o.results &&
|
192
|
-
num_errors == o.num_errors &&
|
193
|
-
errors == o.errors &&
|
194
183
|
status == o.status &&
|
184
|
+
results == o.results &&
|
195
185
|
requested_at == o.requested_at &&
|
196
186
|
started_at == o.started_at &&
|
197
|
-
completed_at == o.completed_at
|
187
|
+
completed_at == o.completed_at &&
|
188
|
+
links == o.links
|
198
189
|
end
|
199
190
|
|
200
191
|
# @see the `==` method
|
@@ -206,7 +197,7 @@ module Hubspot
|
|
206
197
|
# Calculates hash code according to all attributes.
|
207
198
|
# @return [Integer] Hash code
|
208
199
|
def hash
|
209
|
-
[
|
200
|
+
[status, results, requested_at, started_at, completed_at, links].hash
|
210
201
|
end
|
211
202
|
|
212
203
|
# Builds the object from hash
|
@@ -17,20 +17,18 @@ module Hubspot
|
|
17
17
|
module Crm
|
18
18
|
module Associations
|
19
19
|
class BatchResponsePublicAssociationMulti
|
20
|
-
attr_accessor :results
|
21
|
-
|
22
|
-
attr_accessor :num_errors
|
23
|
-
|
24
|
-
attr_accessor :errors
|
25
|
-
|
26
20
|
attr_accessor :status
|
27
21
|
|
22
|
+
attr_accessor :results
|
23
|
+
|
28
24
|
attr_accessor :requested_at
|
29
25
|
|
30
26
|
attr_accessor :started_at
|
31
27
|
|
32
28
|
attr_accessor :completed_at
|
33
29
|
|
30
|
+
attr_accessor :links
|
31
|
+
|
34
32
|
class EnumAttributeValidator
|
35
33
|
attr_reader :datatype
|
36
34
|
attr_reader :allowable_values
|
@@ -56,13 +54,12 @@ module Hubspot
|
|
56
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
55
|
def self.attribute_map
|
58
56
|
{
|
59
|
-
:'results' => :'results',
|
60
|
-
:'num_errors' => :'numErrors',
|
61
|
-
:'errors' => :'errors',
|
62
57
|
:'status' => :'status',
|
58
|
+
:'results' => :'results',
|
63
59
|
:'requested_at' => :'requestedAt',
|
64
60
|
:'started_at' => :'startedAt',
|
65
|
-
:'completed_at' => :'completedAt'
|
61
|
+
:'completed_at' => :'completedAt',
|
62
|
+
:'links' => :'links'
|
66
63
|
}
|
67
64
|
end
|
68
65
|
|
@@ -74,13 +71,12 @@ module Hubspot
|
|
74
71
|
# Attribute type mapping.
|
75
72
|
def self.openapi_types
|
76
73
|
{
|
77
|
-
:'results' => :'Array<PublicAssociationMulti>',
|
78
|
-
:'num_errors' => :'Integer',
|
79
|
-
:'errors' => :'Array<StandardError>',
|
80
74
|
:'status' => :'String',
|
75
|
+
:'results' => :'Array<PublicAssociationMulti>',
|
81
76
|
:'requested_at' => :'Time',
|
82
77
|
:'started_at' => :'Time',
|
83
|
-
:'completed_at' => :'Time'
|
78
|
+
:'completed_at' => :'Time',
|
79
|
+
:'links' => :'Hash<String, String>'
|
84
80
|
}
|
85
81
|
end
|
86
82
|
|
@@ -105,26 +101,16 @@ module Hubspot
|
|
105
101
|
h[k.to_sym] = v
|
106
102
|
}
|
107
103
|
|
104
|
+
if attributes.key?(:'status')
|
105
|
+
self.status = attributes[:'status']
|
106
|
+
end
|
107
|
+
|
108
108
|
if attributes.key?(:'results')
|
109
109
|
if (value = attributes[:'results']).is_a?(Array)
|
110
110
|
self.results = value
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
114
|
-
if attributes.key?(:'num_errors')
|
115
|
-
self.num_errors = attributes[:'num_errors']
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.key?(:'errors')
|
119
|
-
if (value = attributes[:'errors']).is_a?(Array)
|
120
|
-
self.errors = value
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'status')
|
125
|
-
self.status = attributes[:'status']
|
126
|
-
end
|
127
|
-
|
128
114
|
if attributes.key?(:'requested_at')
|
129
115
|
self.requested_at = attributes[:'requested_at']
|
130
116
|
end
|
@@ -136,20 +122,26 @@ module Hubspot
|
|
136
122
|
if attributes.key?(:'completed_at')
|
137
123
|
self.completed_at = attributes[:'completed_at']
|
138
124
|
end
|
125
|
+
|
126
|
+
if attributes.key?(:'links')
|
127
|
+
if (value = attributes[:'links']).is_a?(Hash)
|
128
|
+
self.links = value
|
129
|
+
end
|
130
|
+
end
|
139
131
|
end
|
140
132
|
|
141
133
|
# Show invalid properties with the reasons. Usually used together with valid?
|
142
134
|
# @return Array for valid properties with the reasons
|
143
135
|
def list_invalid_properties
|
144
136
|
invalid_properties = Array.new
|
145
|
-
if @results.nil?
|
146
|
-
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
147
|
-
end
|
148
|
-
|
149
137
|
if @status.nil?
|
150
138
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
151
139
|
end
|
152
140
|
|
141
|
+
if @results.nil?
|
142
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
143
|
+
end
|
144
|
+
|
153
145
|
if @started_at.nil?
|
154
146
|
invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
|
155
147
|
end
|
@@ -164,10 +156,10 @@ module Hubspot
|
|
164
156
|
# Check to see if the all the properties in the model are valid
|
165
157
|
# @return true if the model is valid
|
166
158
|
def valid?
|
167
|
-
return false if @results.nil?
|
168
159
|
return false if @status.nil?
|
169
160
|
status_validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
|
170
161
|
return false unless status_validator.valid?(@status)
|
162
|
+
return false if @results.nil?
|
171
163
|
return false if @started_at.nil?
|
172
164
|
return false if @completed_at.nil?
|
173
165
|
true
|
@@ -188,13 +180,12 @@ module Hubspot
|
|
188
180
|
def ==(o)
|
189
181
|
return true if self.equal?(o)
|
190
182
|
self.class == o.class &&
|
191
|
-
results == o.results &&
|
192
|
-
num_errors == o.num_errors &&
|
193
|
-
errors == o.errors &&
|
194
183
|
status == o.status &&
|
184
|
+
results == o.results &&
|
195
185
|
requested_at == o.requested_at &&
|
196
186
|
started_at == o.started_at &&
|
197
|
-
completed_at == o.completed_at
|
187
|
+
completed_at == o.completed_at &&
|
188
|
+
links == o.links
|
198
189
|
end
|
199
190
|
|
200
191
|
# @see the `==` method
|
@@ -206,7 +197,7 @@ module Hubspot
|
|
206
197
|
# Calculates hash code according to all attributes.
|
207
198
|
# @return [Integer] Hash code
|
208
199
|
def hash
|
209
|
-
[
|
200
|
+
[status, results, requested_at, started_at, completed_at, links].hash
|
210
201
|
end
|
211
202
|
|
212
203
|
# Builds the object from hash
|