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.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -1
  3. data/Gemfile.lock +1 -1
  4. data/lib/hubspot/codegen/automation/actions/models/action_function.rb +1 -0
  5. data/lib/hubspot/codegen/automation/actions/models/action_function_identifier.rb +1 -0
  6. data/lib/hubspot/codegen/automation/actions/models/action_labels.rb +1 -0
  7. data/lib/hubspot/codegen/automation/actions/models/action_revision.rb +1 -0
  8. data/lib/hubspot/codegen/automation/actions/models/callback_completion_batch_request.rb +1 -0
  9. data/lib/hubspot/codegen/automation/actions/models/callback_completion_request.rb +1 -0
  10. data/lib/hubspot/codegen/automation/actions/models/extension_action_definition.rb +1 -0
  11. data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_input.rb +1 -0
  12. data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_patch.rb +1 -0
  13. data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_patch_input_field_dependencies_inner.rb +1 -0
  14. data/lib/hubspot/codegen/automation/actions/models/field_type_definition.rb +1 -0
  15. data/lib/hubspot/codegen/automation/actions/models/input_field_definition.rb +1 -0
  16. data/lib/hubspot/codegen/automation/actions/models/object_request_options.rb +1 -0
  17. data/lib/hubspot/codegen/automation/actions/models/option.rb +1 -0
  18. data/lib/hubspot/codegen/cms/blogs/authors/models/attach_to_lang_primary_request_v_next.rb +1 -0
  19. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_blog_author.rb +1 -0
  20. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_json_node.rb +1 -0
  21. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_string.rb +1 -0
  22. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author.rb +1 -0
  23. data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author_with_errors.rb +1 -0
  24. data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author.rb +1 -0
  25. data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author_clone_request_v_next.rb +1 -0
  26. data/lib/hubspot/codegen/cms/blogs/authors/models/collection_response_with_total_blog_author_forward_paging.rb +1 -0
  27. data/lib/hubspot/codegen/cms/blogs/authors/models/detach_from_lang_group_request_v_next.rb +1 -0
  28. data/lib/hubspot/codegen/cms/blogs/authors/models/forward_paging.rb +1 -0
  29. data/lib/hubspot/codegen/cms/blogs/authors/models/next_page.rb +1 -0
  30. data/lib/hubspot/codegen/cms/blogs/authors/models/set_new_language_primary_request_v_next.rb +1 -0
  31. data/lib/hubspot/codegen/cms/blogs/authors/models/standard_error.rb +1 -0
  32. data/lib/hubspot/codegen/cms/blogs/authors/models/update_languages_request_v_next.rb +1 -0
  33. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/attach_to_lang_primary_request_v_next.rb +1 -0
  34. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_blog_post.rb +1 -0
  35. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_json_node.rb +1 -0
  36. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_string.rb +1 -0
  37. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post.rb +1 -0
  38. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post_with_errors.rb +1 -0
  39. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +1 -0
  40. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post_language_clone_request_v_next.rb +1 -0
  41. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_blog_post_forward_paging.rb +1 -0
  42. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_version_blog_post.rb +1 -0
  43. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_clone_request_v_next.rb +1 -0
  44. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_schedule_request_v_next.rb +1 -0
  45. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/detach_from_lang_group_request_v_next.rb +1 -0
  46. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/forward_paging.rb +1 -0
  47. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/next_page.rb +1 -0
  48. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/paging.rb +1 -0
  49. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/previous_page.rb +1 -0
  50. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/rgba_color.rb +1 -0
  51. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/set_new_language_primary_request_v_next.rb +1 -0
  52. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/standard_error.rb +1 -0
  53. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/update_languages_request_v_next.rb +1 -0
  54. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_blog_post.rb +1 -0
  55. data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_user.rb +1 -0
  56. data/lib/hubspot/codegen/cms/blogs/tags/models/attach_to_lang_primary_request_v_next.rb +1 -0
  57. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_json_node.rb +1 -0
  58. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_string.rb +1 -0
  59. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_tag.rb +1 -0
  60. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag.rb +1 -0
  61. data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag_with_errors.rb +1 -0
  62. data/lib/hubspot/codegen/cms/blogs/tags/models/collection_response_with_total_tag_forward_paging.rb +1 -0
  63. data/lib/hubspot/codegen/cms/blogs/tags/models/detach_from_lang_group_request_v_next.rb +1 -0
  64. data/lib/hubspot/codegen/cms/blogs/tags/models/forward_paging.rb +1 -0
  65. data/lib/hubspot/codegen/cms/blogs/tags/models/next_page.rb +1 -0
  66. data/lib/hubspot/codegen/cms/blogs/tags/models/set_new_language_primary_request_v_next.rb +1 -0
  67. data/lib/hubspot/codegen/cms/blogs/tags/models/standard_error.rb +1 -0
  68. data/lib/hubspot/codegen/cms/blogs/tags/models/tag.rb +1 -0
  69. data/lib/hubspot/codegen/cms/blogs/tags/models/tag_clone_request_v_next.rb +1 -0
  70. data/lib/hubspot/codegen/cms/blogs/tags/models/update_languages_request_v_next.rb +1 -0
  71. data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_generation_request.rb +1 -0
  72. data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_response.rb +1 -0
  73. data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +30 -18
  74. data/lib/hubspot/codegen/crm/associations/api/types_api.rb +3 -3
  75. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +29 -38
  76. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +29 -38
  77. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi_with_errors.rb +346 -0
  78. data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_with_errors.rb +346 -0
  79. data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definition_no_paging.rb +230 -0
  80. data/lib/hubspot/codegen/crm/associations/models/error_category.rb +20 -20
  81. data/lib/hubspot/codegen/crm/associations/models/paging.rb +13 -4
  82. data/lib/hubspot/codegen/crm/associations/models/previous_page.rb +237 -0
  83. data/lib/hubspot/codegen/crm/associations/models/public_association_definition.rb +242 -0
  84. data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +13 -4
  85. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +1 -0
  86. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +1 -0
  87. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_customer.rb +1 -0
  88. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_invoice.rb +1 -0
  89. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +1 -0
  90. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +1 -0
  91. data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +1 -0
  92. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +1 -0
  93. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +1 -0
  94. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +1 -0
  95. data/lib/hubspot/codegen/crm/extensions/accounting/models/customer_search_response_external.rb +1 -0
  96. data/lib/hubspot/codegen/crm/extensions/accounting/models/exchange_rate_response.rb +1 -0
  97. data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +1 -0
  98. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_pdf_response.rb +1 -0
  99. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +1 -0
  100. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_search_response.rb +1 -0
  101. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +1 -0
  102. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +1 -0
  103. data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +1 -0
  104. data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +1 -0
  105. data/lib/hubspot/codegen/crm/extensions/accounting/models/result_id_accounting_response.rb +1 -0
  106. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +1 -0
  107. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +1 -0
  108. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax.rb +1 -0
  109. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +1 -0
  110. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +1 -0
  111. data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +1 -0
  112. data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +1 -0
  113. data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +1 -0
  114. data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_product.rb +1 -0
  115. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +1 -0
  116. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +1 -0
  117. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +1 -0
  118. data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -0
  119. data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -0
  120. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -0
  121. data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -0
  122. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -0
  123. data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +1 -0
  124. data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -0
  125. data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -0
  126. data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -0
  127. data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -0
  128. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -0
  129. data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result_actions_inner.rb +1 -0
  130. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/external_settings.rb +1 -0
  131. data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -0
  132. data/lib/hubspot/codegen/files/files/models/file_update_input.rb +1 -0
  133. data/lib/hubspot/codegen/files/files/models/folder_input.rb +1 -0
  134. data/lib/hubspot/codegen/files/files/models/folder_update_input.rb +1 -0
  135. data/lib/hubspot/codegen/files/files/models/folder_update_task_locator.rb +1 -0
  136. data/lib/hubspot/codegen/files/files/models/hubspot_file.rb +1 -0
  137. data/lib/hubspot/codegen/files/files/models/import_from_url_task_locator.rb +1 -0
  138. data/lib/hubspot/codegen/marketing/events/api/marketing_events_external_api.rb +0 -60
  139. data/lib/hubspot/codegen/marketing/events/api/search_api.rb +90 -0
  140. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber.rb +1 -0
  141. data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_subscriber.rb +1 -0
  142. data/lib/hubspot/codegen/marketing/events/models/property_value.rb +13 -4
  143. data/lib/hubspot/codegen/marketing/forms/models/collection_response_form_definition_base_forward_paging_results_inner.rb +1 -0
  144. data/lib/hubspot/codegen/marketing/forms/models/datepicker_field.rb +1 -0
  145. data/lib/hubspot/codegen/marketing/forms/models/dependent_field.rb +1 -0
  146. data/lib/hubspot/codegen/marketing/forms/models/dependent_field_dependent_field.rb +1 -0
  147. data/lib/hubspot/codegen/marketing/forms/models/dependent_field_filter.rb +1 -0
  148. data/lib/hubspot/codegen/marketing/forms/models/dropdown_field.rb +1 -0
  149. data/lib/hubspot/codegen/marketing/forms/models/email_field.rb +1 -0
  150. data/lib/hubspot/codegen/marketing/forms/models/email_field_validation.rb +1 -0
  151. data/lib/hubspot/codegen/marketing/forms/models/field_group.rb +1 -0
  152. data/lib/hubspot/codegen/marketing/forms/models/file_field.rb +1 -0
  153. data/lib/hubspot/codegen/marketing/forms/models/form_definition_base.rb +1 -0
  154. data/lib/hubspot/codegen/marketing/forms/models/form_definition_create_request_base.rb +1 -0
  155. data/lib/hubspot/codegen/marketing/forms/models/form_display_options.rb +1 -0
  156. data/lib/hubspot/codegen/marketing/forms/models/form_post_submit_action.rb +1 -0
  157. data/lib/hubspot/codegen/marketing/forms/models/form_style.rb +1 -0
  158. data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_patch_request_legal_consent_options.rb +1 -0
  159. data/lib/hubspot/codegen/marketing/forms/models/mobile_phone_field.rb +1 -0
  160. data/lib/hubspot/codegen/marketing/forms/models/multi_line_text_field.rb +1 -0
  161. data/lib/hubspot/codegen/marketing/forms/models/multiple_checkboxes_field.rb +1 -0
  162. data/lib/hubspot/codegen/marketing/forms/models/number_field.rb +1 -0
  163. data/lib/hubspot/codegen/marketing/forms/models/number_field_validation.rb +1 -0
  164. data/lib/hubspot/codegen/marketing/forms/models/phone_field.rb +1 -0
  165. data/lib/hubspot/codegen/marketing/forms/models/phone_field_validation.rb +1 -0
  166. data/lib/hubspot/codegen/marketing/forms/models/radio_field.rb +1 -0
  167. data/lib/hubspot/codegen/marketing/forms/models/single_checkbox_field.rb +1 -0
  168. data/lib/hubspot/codegen/marketing/forms/models/single_line_text_field.rb +1 -0
  169. data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +1 -0
  170. data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +1 -0
  171. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +1 -0
  172. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +1 -0
  173. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -0
  174. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -0
  175. data/lib/hubspot/codegen/settings/users/models/public_permission_set.rb +1 -0
  176. data/lib/hubspot/codegen/settings/users/models/public_team.rb +1 -0
  177. data/lib/hubspot/codegen/settings/users/models/public_user.rb +1 -0
  178. data/lib/hubspot/codegen/settings/users/models/public_user_update.rb +1 -0
  179. data/lib/hubspot/codegen/settings/users/models/user_provision_request.rb +1 -0
  180. data/lib/hubspot/discovery/marketing/events/api/search_api.rb +13 -0
  181. data/lib/hubspot/discovery/marketing/events/client.rb +1 -0
  182. data/lib/hubspot/version.rb +1 -1
  183. data/spec/discovery/marketing/events/marketing_events_external_api_spec.rb +0 -1
  184. data/spec/discovery/marketing/events/search_api_spec.rb +7 -0
  185. metadata +12 -3
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Cms
18
18
  module Blogs
19
19
  module Tags
20
+ # Model definition for a Tag.
20
21
  class Tag
21
22
  # The unique ID of the Blog Tag.
22
23
  attr_accessor :id
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Cms
18
18
  module Blogs
19
19
  module Tags
20
+ # Request body object for cloning blog tags.
20
21
  class TagCloneRequestVNext
21
22
  # ID of the object to be cloned.
22
23
  attr_accessor :id
@@ -17,6 +17,7 @@ module Hubspot
17
17
  module Cms
18
18
  module Blogs
19
19
  module Tags
20
+ # Request object for updating languages within a multi-language group.
20
21
  class UpdateLanguagesRequestVNext
21
22
  # ID of the primary object in the multi-language group.
22
23
  attr_accessor :primary_id
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Conversations
18
18
  module VisitorIdentification
19
+ # Information used to generate a token
19
20
  class IdentificationTokenGenerationRequest
20
21
  # The email of the visitor that you wish to identify
21
22
  attr_accessor :email
@@ -16,6 +16,7 @@ require 'time'
16
16
  module Hubspot
17
17
  module Conversations
18
18
  module VisitorIdentification
19
+ # The identification token to be passed to the Conversations JS API to identify the visitor
19
20
  class IdentificationTokenResponse
20
21
  attr_accessor :token
21
22
 
@@ -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(opts[:'batch_input_public_association'])
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(opts[:'batch_input_public_association'])
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 &#x60;{toObjectType}&#x60; 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(opts[:'batch_input_public_object_id'])
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 [CollectionResponsePublicAssociationDefiniton]
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<(CollectionResponsePublicAssociationDefiniton, Integer, Hash)>] CollectionResponsePublicAssociationDefiniton data, response status code and response headers
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] || 'CollectionResponsePublicAssociationDefiniton'
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
- [results, num_errors, errors, status, requested_at, started_at, completed_at].hash
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
- [results, num_errors, errors, status, requested_at, started_at, completed_at].hash
200
+ [status, results, requested_at, started_at, completed_at, links].hash
210
201
  end
211
202
 
212
203
  # Builds the object from hash