hubspot-api-client 13.1.0 → 14.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/Gemfile.lock +16 -16
  4. data/README.md +4 -2
  5. data/hubspot-api-client.gemspec +1 -1
  6. data/lib/hubspot/codegen/automation/actions/api_error.rb +1 -1
  7. data/lib/hubspot/codegen/cms/audit-logs/api_error.rb +1 -1
  8. data/lib/hubspot/codegen/cms/blogs/authors/api_error.rb +1 -1
  9. data/lib/hubspot/codegen/cms/blogs/blog-posts/api_error.rb +1 -1
  10. data/lib/hubspot/codegen/cms/blogs/tags/api_error.rb +1 -1
  11. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +1 -1
  12. data/lib/hubspot/codegen/cms/domains/api_error.rb +1 -1
  13. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +2 -2
  14. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  15. data/lib/hubspot/codegen/cms/performance/api_error.rb +1 -1
  16. data/lib/hubspot/codegen/cms/site-search/api/public_api.rb +1 -4
  17. data/lib/hubspot/codegen/cms/site-search/api_error.rb +1 -1
  18. data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +2 -2
  19. data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +1 -1
  20. data/lib/hubspot/codegen/cms/site-search/models/{search_hit_field.rb → indexed_field.rb} +35 -35
  21. data/lib/hubspot/codegen/cms/source-code/api_error.rb +1 -1
  22. data/lib/hubspot/codegen/cms/url-redirects/api/redirects_api.rb +23 -21
  23. data/lib/hubspot/codegen/cms/url-redirects/api_error.rb +1 -1
  24. data/lib/hubspot/codegen/cms/url-redirects/models/{collection_response_with_total_url_mapping.rb → collection_response_with_total_url_mapping_forward_paging.rb} +4 -6
  25. data/lib/hubspot/codegen/cms/url-redirects/models/{paging.rb → forward_paging.rb} +3 -3
  26. data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb +14 -226
  27. data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb +31 -31
  28. data/lib/hubspot/codegen/communication_preferences/api_error.rb +1 -1
  29. data/lib/hubspot/codegen/conversations/visitor-identification/api_error.rb +1 -1
  30. data/lib/hubspot/codegen/crm/associations/api_error.rb +1 -1
  31. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +2 -2
  32. data/lib/hubspot/codegen/crm/companies/api_error.rb +1 -1
  33. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +2 -2
  34. data/lib/hubspot/codegen/crm/contacts/api_error.rb +1 -1
  35. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +2 -2
  36. data/lib/hubspot/codegen/crm/deals/api_error.rb +1 -1
  37. data/lib/hubspot/codegen/crm/extensions/accounting/api_error.rb +1 -1
  38. data/lib/hubspot/codegen/crm/extensions/calling/api_error.rb +1 -1
  39. data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +1 -1
  40. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_error.rb +1 -1
  41. data/lib/hubspot/codegen/crm/imports/api_error.rb +1 -1
  42. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +2 -2
  43. data/lib/hubspot/codegen/crm/line_items/api_error.rb +1 -1
  44. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +2 -2
  45. data/lib/hubspot/codegen/crm/objects/api_error.rb +1 -1
  46. data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +2 -2
  47. data/lib/hubspot/codegen/crm/objects/calls/api_error.rb +1 -1
  48. data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +2 -2
  49. data/lib/hubspot/codegen/crm/objects/emails/api_error.rb +1 -1
  50. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +3 -3
  51. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +7 -7
  52. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +4 -4
  53. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/public_object_api.rb +1 -1
  54. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +1 -1
  55. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_error.rb +1 -1
  56. data/lib/hubspot/codegen/crm/objects/feedback_submissions/configuration.rb +7 -0
  57. data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +2 -2
  58. data/lib/hubspot/codegen/crm/objects/meetings/api_error.rb +1 -1
  59. data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +2 -2
  60. data/lib/hubspot/codegen/crm/objects/notes/api_error.rb +1 -1
  61. data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +2 -2
  62. data/lib/hubspot/codegen/crm/objects/tasks/api_error.rb +1 -1
  63. data/lib/hubspot/codegen/crm/owners/api_error.rb +1 -1
  64. data/lib/hubspot/codegen/crm/pipelines/api_error.rb +1 -1
  65. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +2 -2
  66. data/lib/hubspot/codegen/crm/products/api_error.rb +1 -1
  67. data/lib/hubspot/codegen/crm/properties/api_error.rb +1 -1
  68. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +2 -2
  69. data/lib/hubspot/codegen/crm/quotes/api_error.rb +1 -1
  70. data/lib/hubspot/codegen/crm/schemas/api_error.rb +1 -1
  71. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +2 -2
  72. data/lib/hubspot/codegen/crm/tickets/api_error.rb +1 -1
  73. data/lib/hubspot/codegen/crm/timeline/api_error.rb +1 -1
  74. data/lib/hubspot/codegen/events/api_error.rb +1 -1
  75. data/lib/hubspot/codegen/files/files/api/files_api.rb +2 -2
  76. data/lib/hubspot/codegen/files/files/api/folders_api.rb +3 -3
  77. data/lib/hubspot/codegen/files/files/api_error.rb +1 -1
  78. data/lib/hubspot/codegen/marketing/events/api_error.rb +1 -1
  79. data/lib/hubspot/codegen/marketing/forms/api_error.rb +1 -1
  80. data/lib/hubspot/codegen/marketing/transactional/api/public_smtp_tokens_api.rb +18 -14
  81. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +10 -6
  82. data/lib/hubspot/codegen/marketing/transactional/api_error.rb +1 -1
  83. data/lib/hubspot/codegen/marketing/transactional/models/{collection_response_smtp_api_token_view.rb → collection_response_smtp_api_token_view_forward_paging.rb} +4 -5
  84. data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +15 -15
  85. data/lib/hubspot/codegen/marketing/transactional/models/{paging.rb → forward_paging.rb} +3 -3
  86. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +3 -13
  87. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +22 -30
  88. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -1
  89. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -1
  90. data/lib/hubspot/codegen/oauth/api_error.rb +1 -1
  91. data/lib/hubspot/codegen/settings/users/api_error.rb +1 -1
  92. data/lib/hubspot/codegen/webhooks/api_error.rb +1 -1
  93. data/lib/hubspot/version.rb +1 -1
  94. data/spec/codegen/cms/site-search/api/public_api_spec.rb +0 -1
  95. data/spec/codegen/cms/site-search/models/content_search_result_spec.rb +1 -1
  96. data/spec/codegen/cms/site-search/models/{search_hit_field_spec.rb → indexed_field_spec.rb} +10 -10
  97. data/spec/codegen/cms/url-redirects/api/redirects_api_spec.rb +3 -5
  98. data/spec/codegen/cms/url-redirects/models/{collection_response_with_total_url_mapping_spec.rb → collection_response_with_total_url_mapping_forward_paging_spec.rb} +6 -6
  99. data/spec/codegen/cms/url-redirects/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
  100. data/spec/codegen/cms/url-redirects/models/url_mapping_create_request_body_spec.rb +10 -10
  101. data/spec/codegen/cms/url-redirects/models/url_mapping_spec.rb +2 -78
  102. data/spec/codegen/crm/contacts/api/basic_api_spec.rb +2 -0
  103. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +3 -3
  104. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +3 -3
  105. data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +14 -14
  106. data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +26 -26
  107. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +17 -17
  108. data/spec/codegen/crm/objects/feedback_submissions/api/public_object_api_spec.rb +2 -2
  109. data/spec/codegen/crm/quotes/api/public_object_api_spec.rb +2 -2
  110. data/spec/codegen/marketing/transactional/api/public_smtp_tokens_api_spec.rb +2 -2
  111. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +1 -1
  112. data/spec/codegen/marketing/transactional/models/{collection_response_smtp_api_token_view_spec.rb → collection_response_smtp_api_token_view_forward_paging_spec.rb} +6 -6
  113. data/spec/codegen/marketing/transactional/models/email_send_status_view_spec.rb +7 -7
  114. data/spec/codegen/marketing/transactional/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
  115. data/spec/codegen/marketing/transactional/models/public_single_send_request_egg_spec.rb +4 -4
  116. metadata +18 -18
@@ -14,7 +14,7 @@ module Hubspot
14
14
  module Crm
15
15
  module Extensions
16
16
  module Cards
17
- class ApiError < StandardError
17
+ class ApiError < ::StandardError
18
18
  attr_reader :code, :response_headers, :response_body
19
19
 
20
20
  # Usage examples:
@@ -14,7 +14,7 @@ module Hubspot
14
14
  module Crm
15
15
  module Extensions
16
16
  module Videoconferencing
17
- class ApiError < StandardError
17
+ class ApiError < ::StandardError
18
18
  attr_reader :code, :response_headers, :response_body
19
19
 
20
20
  # Usage examples:
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Imports
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -187,7 +187,7 @@ module Hubspot
187
187
 
188
188
  # query parameters
189
189
  query_params = opts[:query_params] || {}
190
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
190
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
191
191
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
192
192
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
193
193
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -262,7 +262,7 @@ module Hubspot
262
262
  query_params = opts[:query_params] || {}
263
263
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
264
264
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
265
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
265
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
266
266
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
267
267
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
268
268
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module LineItems
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -205,7 +205,7 @@ module Hubspot
205
205
 
206
206
  # query parameters
207
207
  query_params = opts[:query_params] || {}
208
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
208
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
209
209
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
210
210
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
211
211
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -286,7 +286,7 @@ module Hubspot
286
286
  query_params = opts[:query_params] || {}
287
287
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
288
288
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
289
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
289
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
290
290
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
291
291
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
292
292
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Objects
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -188,7 +188,7 @@ module Hubspot
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
191
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
192
192
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
193
193
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
194
194
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -263,7 +263,7 @@ module Hubspot
263
263
  query_params = opts[:query_params] || {}
264
264
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
265
265
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
266
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
267
267
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
268
268
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
269
269
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -14,7 +14,7 @@ module Hubspot
14
14
  module Crm
15
15
  module Objects
16
16
  module Calls
17
- class ApiError < StandardError
17
+ class ApiError < ::StandardError
18
18
  attr_reader :code, :response_headers, :response_body
19
19
 
20
20
  # Usage examples:
@@ -188,7 +188,7 @@ module Hubspot
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
191
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
192
192
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
193
193
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
194
194
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -263,7 +263,7 @@ module Hubspot
263
263
  query_params = opts[:query_params] || {}
264
264
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
265
265
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
266
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
267
267
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
268
268
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
269
269
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -14,7 +14,7 @@ module Hubspot
14
14
  module Crm
15
15
  module Objects
16
16
  module Emails
17
- class ApiError < StandardError
17
+ class ApiError < ::StandardError
18
18
  attr_reader :code, :response_headers, :response_body
19
19
 
20
20
  # Usage examples:
@@ -82,7 +82,7 @@ module Hubspot
82
82
  return_type = opts[:return_type]
83
83
 
84
84
  # auth_names
85
- auth_names = opts[:auth_names] || ['hapikey']
85
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
86
86
 
87
87
  new_options = opts.merge(
88
88
  :header_params => header_params,
@@ -160,7 +160,7 @@ module Hubspot
160
160
  return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations'
161
161
 
162
162
  # auth_names
163
- auth_names = opts[:auth_names] || ['hapikey']
163
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
164
164
 
165
165
  new_options = opts.merge(
166
166
  :header_params => header_params,
@@ -232,7 +232,7 @@ module Hubspot
232
232
  return_type = opts[:return_type] || 'CollectionResponseAssociatedIdForwardPaging'
233
233
 
234
234
  # auth_names
235
- auth_names = opts[:auth_names] || ['hapikey']
235
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
236
236
 
237
237
  new_options = opts.merge(
238
238
  :header_params => header_params,
@@ -68,7 +68,7 @@ module Hubspot
68
68
  return_type = opts[:return_type]
69
69
 
70
70
  # auth_names
71
- auth_names = opts[:auth_names] || ['hapikey']
71
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
72
72
 
73
73
  new_options = opts.merge(
74
74
  :header_params => header_params,
@@ -132,7 +132,7 @@ module Hubspot
132
132
  return_type = opts[:return_type] || 'SimplePublicObject'
133
133
 
134
134
  # auth_names
135
- auth_names = opts[:auth_names] || ['hapikey']
135
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
136
136
 
137
137
  new_options = opts.merge(
138
138
  :header_params => header_params,
@@ -188,7 +188,7 @@ module Hubspot
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
191
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
192
192
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
193
193
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
194
194
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -209,7 +209,7 @@ module Hubspot
209
209
  return_type = opts[:return_type] || 'SimplePublicObjectWithAssociations'
210
210
 
211
211
  # auth_names
212
- auth_names = opts[:auth_names] || ['hapikey']
212
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
213
213
 
214
214
  new_options = opts.merge(
215
215
  :header_params => header_params,
@@ -263,7 +263,7 @@ module Hubspot
263
263
  query_params = opts[:query_params] || {}
264
264
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
265
265
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
266
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
267
267
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
268
268
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
269
269
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -283,7 +283,7 @@ module Hubspot
283
283
  return_type = opts[:return_type] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
284
284
 
285
285
  # auth_names
286
- auth_names = opts[:auth_names] || ['hapikey']
286
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
287
287
 
288
288
  new_options = opts.merge(
289
289
  :header_params => header_params,
@@ -356,7 +356,7 @@ module Hubspot
356
356
  return_type = opts[:return_type] || 'SimplePublicObject'
357
357
 
358
358
  # auth_names
359
- auth_names = opts[:auth_names] || ['hapikey']
359
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
360
360
 
361
361
  new_options = opts.merge(
362
362
  :header_params => header_params,
@@ -66,7 +66,7 @@ module Hubspot
66
66
  return_type = opts[:return_type]
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:auth_names] || ['hapikey']
69
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :header_params => header_params,
@@ -128,7 +128,7 @@ module Hubspot
128
128
  return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
129
129
 
130
130
  # auth_names
131
- auth_names = opts[:auth_names] || ['hapikey']
131
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
132
132
 
133
133
  new_options = opts.merge(
134
134
  :header_params => header_params,
@@ -193,7 +193,7 @@ module Hubspot
193
193
  return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
194
194
 
195
195
  # auth_names
196
- auth_names = opts[:auth_names] || ['hapikey']
196
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
197
197
 
198
198
  new_options = opts.merge(
199
199
  :header_params => header_params,
@@ -255,7 +255,7 @@ module Hubspot
255
255
  return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
256
256
 
257
257
  # auth_names
258
- auth_names = opts[:auth_names] || ['hapikey']
258
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
259
259
 
260
260
  new_options = opts.merge(
261
261
  :header_params => header_params,
@@ -66,7 +66,7 @@ module Hubspot
66
66
  return_type = opts[:return_type] || 'SimplePublicObject'
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:auth_names] || ['hapikey']
69
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :header_params => header_params,
@@ -64,7 +64,7 @@ module Hubspot
64
64
  return_type = opts[:return_type] || 'CollectionResponseWithTotalSimplePublicObjectForwardPaging'
65
65
 
66
66
  # auth_names
67
- auth_names = opts[:auth_names] || ['hapikey']
67
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
68
68
 
69
69
  new_options = opts.merge(
70
70
  :header_params => header_params,
@@ -14,7 +14,7 @@ module Hubspot
14
14
  module Crm
15
15
  module Objects
16
16
  module FeedbackSubmissions
17
- class ApiError < StandardError
17
+ class ApiError < ::StandardError
18
18
  attr_reader :code, :response_headers, :response_body
19
19
 
20
20
  # Usage examples:
@@ -207,6 +207,13 @@ module Hubspot
207
207
  key: 'hapikey',
208
208
  value: api_key_with_prefix('hapikey')
209
209
  },
210
+ 'oauth2' =>
211
+ {
212
+ type: 'oauth2',
213
+ in: 'header',
214
+ key: 'Authorization',
215
+ value: "Bearer #{access_token}"
216
+ },
210
217
  }
211
218
  end
212
219
 
@@ -188,7 +188,7 @@ module Hubspot
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
191
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
192
192
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
193
193
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
194
194
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -263,7 +263,7 @@ module Hubspot
263
263
  query_params = opts[:query_params] || {}
264
264
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
265
265
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
266
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
267
267
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
268
268
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
269
269
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -14,7 +14,7 @@ module Hubspot
14
14
  module Crm
15
15
  module Objects
16
16
  module Meetings
17
- class ApiError < StandardError
17
+ class ApiError < ::StandardError
18
18
  attr_reader :code, :response_headers, :response_body
19
19
 
20
20
  # Usage examples:
@@ -188,7 +188,7 @@ module Hubspot
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
191
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
192
192
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
193
193
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
194
194
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -263,7 +263,7 @@ module Hubspot
263
263
  query_params = opts[:query_params] || {}
264
264
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
265
265
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
266
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
267
267
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
268
268
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
269
269
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -14,7 +14,7 @@ module Hubspot
14
14
  module Crm
15
15
  module Objects
16
16
  module Notes
17
- class ApiError < StandardError
17
+ class ApiError < ::StandardError
18
18
  attr_reader :code, :response_headers, :response_body
19
19
 
20
20
  # Usage examples:
@@ -188,7 +188,7 @@ module Hubspot
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
191
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
192
192
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
193
193
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
194
194
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -263,7 +263,7 @@ module Hubspot
263
263
  query_params = opts[:query_params] || {}
264
264
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
265
265
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
266
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
267
267
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
268
268
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
269
269
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -14,7 +14,7 @@ module Hubspot
14
14
  module Crm
15
15
  module Objects
16
16
  module Tasks
17
- class ApiError < StandardError
17
+ class ApiError < ::StandardError
18
18
  attr_reader :code, :response_headers, :response_body
19
19
 
20
20
  # Usage examples:
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Owners
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Pipelines
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -187,7 +187,7 @@ module Hubspot
187
187
 
188
188
  # query parameters
189
189
  query_params = opts[:query_params] || {}
190
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
190
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
191
191
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
192
192
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
193
193
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -262,7 +262,7 @@ module Hubspot
262
262
  query_params = opts[:query_params] || {}
263
263
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
264
264
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
265
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
265
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
266
266
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
267
267
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
268
268
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Products
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Properties
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -187,7 +187,7 @@ module Hubspot
187
187
 
188
188
  # query parameters
189
189
  query_params = opts[:query_params] || {}
190
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
190
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
191
191
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
192
192
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
193
193
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -262,7 +262,7 @@ module Hubspot
262
262
  query_params = opts[:query_params] || {}
263
263
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
264
264
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
265
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
265
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
266
266
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
267
267
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
268
268
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Quotes
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Schemas
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -187,7 +187,7 @@ module Hubspot
187
187
 
188
188
  # query parameters
189
189
  query_params = opts[:query_params] || {}
190
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
190
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
191
191
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
192
192
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
193
193
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -262,7 +262,7 @@ module Hubspot
262
262
  query_params = opts[:query_params] || {}
263
263
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
264
264
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
265
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
265
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
266
266
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
267
267
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
268
268
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Tickets
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Crm
15
15
  module Timeline
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples:
@@ -12,7 +12,7 @@ OpenAPI Generator version: 4.3.1
12
12
 
13
13
  module Hubspot
14
14
  module Events
15
- class ApiError < StandardError
15
+ class ApiError < ::StandardError
16
16
  attr_reader :code, :response_headers, :response_body
17
17
 
18
18
  # Usage examples:
@@ -287,7 +287,7 @@ module Hubspot
287
287
 
288
288
  # query parameters
289
289
  query_params = opts[:query_params] || {}
290
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
290
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
291
291
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
292
292
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
293
293
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
@@ -380,7 +380,7 @@ module Hubspot
380
380
 
381
381
  # query parameters
382
382
  query_params = opts[:query_params] || {}
383
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
383
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
384
384
 
385
385
  # header parameters
386
386
  header_params = opts[:header_params] || {}
@@ -333,7 +333,7 @@ module Hubspot
333
333
 
334
334
  # query parameters
335
335
  query_params = opts[:query_params] || {}
336
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
336
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
337
337
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
338
338
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
339
339
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
@@ -417,7 +417,7 @@ module Hubspot
417
417
 
418
418
  # query parameters
419
419
  query_params = opts[:query_params] || {}
420
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
420
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
421
421
 
422
422
  # header parameters
423
423
  header_params = opts[:header_params] || {}
@@ -487,7 +487,7 @@ module Hubspot
487
487
 
488
488
  # query parameters
489
489
  query_params = opts[:query_params] || {}
490
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
490
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
491
491
 
492
492
  # header parameters
493
493
  header_params = opts[:header_params] || {}
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  module Hubspot
14
14
  module Files
15
15
  module Files
16
- class ApiError < StandardError
16
+ class ApiError < ::StandardError
17
17
  attr_reader :code, :response_headers, :response_body
18
18
 
19
19
  # Usage examples: