hubspot-api-client 10.1.1 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile.lock +2 -2
  4. data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
  5. data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
  6. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
  7. data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
  8. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  9. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  10. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
  11. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
  12. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
  13. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
  14. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  15. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  16. data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3.rb → batch_input_hub_db_table_row_v3_request.rb} +5 -5
  17. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  18. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  19. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
  24. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
  29. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
  30. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
  31. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  32. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
  33. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  34. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  38. data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
  39. data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
  40. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
  41. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
  42. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  43. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  44. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  45. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  46. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  47. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  48. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  49. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  50. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  51. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  52. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  53. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  54. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  55. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  56. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  57. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  58. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  59. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  60. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  61. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  62. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  63. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  64. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  65. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  66. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  67. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  68. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  69. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  70. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  71. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  72. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  73. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  74. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  75. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  76. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  77. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  78. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  79. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  80. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  81. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  82. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  83. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  84. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  85. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  86. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  87. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  88. data/lib/hubspot/version.rb +1 -1
  89. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  90. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  91. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  92. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  93. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  94. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  95. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  96. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  97. data/spec/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3_spec.rb → batch_input_hub_db_table_row_v3_request_spec.rb} +7 -7
  98. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  99. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  100. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  101. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  102. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  103. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  104. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  105. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  106. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  107. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  108. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  109. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  110. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  111. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  112. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  113. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  114. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  115. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  116. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  117. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  118. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  119. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  120. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  121. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  122. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  123. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  124. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  125. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  126. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  127. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  128. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  129. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  130. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  131. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  132. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  133. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  134. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  135. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  136. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  137. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  138. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  139. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  140. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  141. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  142. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  143. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  144. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  145. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  146. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  147. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  148. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  149. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  150. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  151. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  152. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  153. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  154. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  155. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  156. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  157. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  158. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  159. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  160. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  161. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  162. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  163. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  164. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  165. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  166. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  167. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  168. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  169. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  170. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  171. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  172. data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
  173. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  174. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  175. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  176. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  177. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  178. data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
  179. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  180. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  181. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  182. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  183. metadata +96 -82
  184. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  185. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  186. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  187. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  188. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  189. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  190. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  191. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  192. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  193. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  194. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  195. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -21,8 +21,6 @@ module Hubspot
21
21
  def initialize(api_client = ApiClient.default)
22
22
  @api_client = api_client
23
23
  end
24
- # Filter, Sort, and Search CRM Objects
25
- # Filter, Sort, and Search CRM Objects
26
24
  # @param object_type [String]
27
25
  # @param public_object_search_request [PublicObjectSearchRequest]
28
26
  # @param [Hash] opts the optional parameters
@@ -32,8 +30,6 @@ module Hubspot
32
30
  data
33
31
  end
34
32
 
35
- # Filter, Sort, and Search CRM Objects
36
- # Filter, Sort, and Search CRM Objects
37
33
  # @param object_type [String]
38
34
  # @param public_object_search_request [PublicObjectSearchRequest]
39
35
  # @param [Hash] opts the optional parameters
@@ -23,7 +23,6 @@ module Hubspot
23
23
  @api_client = api_client
24
24
  end
25
25
  # Read a batch of feedback submissions by internal ID, or unique property values
26
- # Read a list of feedback submissions given a collection of IDs. Use the `properties` request body property to control which properties are returned.
27
26
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
28
27
  # @param [Hash] opts the optional parameters
29
28
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
@@ -34,7 +33,6 @@ module Hubspot
34
33
  end
35
34
 
36
35
  # Read a batch of feedback submissions by internal ID, or unique property values
37
- # Read a list of feedback submissions given a collection of IDs. Use the `properties` request body property to control which properties are returned.
38
36
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
39
37
  # @param [Hash] opts the optional parameters
40
38
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -22,8 +22,6 @@ module Hubspot
22
22
  def initialize(api_client = ApiClient.default)
23
23
  @api_client = api_client
24
24
  end
25
- # Filter, Sort, and Search CRM Objects
26
- # Filter, Sort, and Search CRM Objects
27
25
  # @param public_object_search_request [PublicObjectSearchRequest]
28
26
  # @param [Hash] opts the optional parameters
29
27
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -32,8 +30,6 @@ module Hubspot
32
30
  data
33
31
  end
34
32
 
35
- # Filter, Sort, and Search CRM Objects
36
- # Filter, Sort, and Search CRM Objects
37
33
  # @param public_object_search_request [PublicObjectSearchRequest]
38
34
  # @param [Hash] opts the optional parameters
39
35
  # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
@@ -21,6 +21,7 @@ module Hubspot
21
21
 
22
22
  attr_accessor :property_name
23
23
 
24
+ # null
24
25
  attr_accessor :operator
25
26
 
26
27
  class EnumAttributeValidator
@@ -117,7 +118,7 @@ module Hubspot
117
118
  def valid?
118
119
  return false if @property_name.nil?
119
120
  return false if @operator.nil?
120
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
121
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
121
122
  return false unless operator_validator.valid?(@operator)
122
123
  true
123
124
  end
@@ -125,7 +126,7 @@ module Hubspot
125
126
  # Custom attribute writer method checking allowed values (enum).
126
127
  # @param [Object] operator Object to be assigned
127
128
  def operator=(operator)
128
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
129
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
129
130
  unless validator.valid?(operator)
130
131
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
131
132
  end
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -15,7 +15,7 @@ require 'cgi'
15
15
  module Hubspot
16
16
  module Crm
17
17
  module Owners
18
- class DefaultApi
18
+ class OwnersApi
19
19
  attr_accessor :api_client
20
20
 
21
21
  def initialize(api_client = ApiClient.default)
@@ -40,11 +40,11 @@ module Hubspot
40
40
  # @return [Array<(PublicOwner, Integer, Hash)>] PublicOwner data, response status code and response headers
41
41
  def get_by_id_with_http_info(owner_id, opts = {})
42
42
  if @api_client.config.debugging
43
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_by_id ...'
43
+ @api_client.config.logger.debug 'Calling API: OwnersApi.get_by_id ...'
44
44
  end
45
45
  # verify the required parameter 'owner_id' is set
46
46
  if @api_client.config.client_side_validation && owner_id.nil?
47
- fail ArgumentError, "Missing the required parameter 'owner_id' when calling DefaultApi.get_by_id"
47
+ fail ArgumentError, "Missing the required parameter 'owner_id' when calling OwnersApi.get_by_id"
48
48
  end
49
49
  allowable_values = ["id", "userId"]
50
50
  if @api_client.config.client_side_validation && opts[:'id_property'] && !allowable_values.include?(opts[:'id_property'])
@@ -86,7 +86,7 @@ module Hubspot
86
86
 
87
87
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
88
88
  if @api_client.config.debugging
89
- @api_client.config.logger.debug "API called: DefaultApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ @api_client.config.logger.debug "API called: OwnersApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
90
  end
91
91
  return data, status_code, headers
92
92
  end
@@ -112,7 +112,7 @@ module Hubspot
112
112
  # @return [Array<(CollectionResponsePublicOwnerForwardPaging, Integer, Hash)>] CollectionResponsePublicOwnerForwardPaging data, response status code and response headers
113
113
  def get_page_with_http_info(opts = {})
114
114
  if @api_client.config.debugging
115
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_page ...'
115
+ @api_client.config.logger.debug 'Calling API: OwnersApi.get_page ...'
116
116
  end
117
117
  # resource path
118
118
  local_var_path = '/crm/v3/owners/'
@@ -152,7 +152,7 @@ module Hubspot
152
152
 
153
153
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
154
154
  if @api_client.config.debugging
155
- @api_client.config.logger.debug "API called: DefaultApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
+ @api_client.config.logger.debug "API called: OwnersApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
156
  end
157
157
  return data, status_code, headers
158
158
  end
@@ -22,7 +22,6 @@ module Hubspot
22
22
  @api_client = api_client
23
23
  end
24
24
  # Archive a batch of products by ID
25
- # Archive a list of products given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
26
25
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @return [nil]
@@ -32,7 +31,6 @@ module Hubspot
32
31
  end
33
32
 
34
33
  # Archive a batch of products by ID
35
- # Archive a list of products given a collection of IDs. This method will return a &#x60;204 No Content&#x60; response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
36
34
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
37
35
  # @param [Hash] opts the optional parameters
38
36
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -86,7 +84,6 @@ module Hubspot
86
84
  end
87
85
 
88
86
  # Create a batch of products
89
- # Create a batch of products. This follows the same rules as creating an individual object.
90
87
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
91
88
  # @param [Hash] opts the optional parameters
92
89
  # @return [BatchResponseSimplePublicObject]
@@ -96,7 +93,6 @@ module Hubspot
96
93
  end
97
94
 
98
95
  # Create a batch of products
99
- # Create a batch of products. This follows the same rules as creating an individual object.
100
96
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
101
97
  # @param [Hash] opts the optional parameters
102
98
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -150,7 +146,6 @@ module Hubspot
150
146
  end
151
147
 
152
148
  # Read a batch of products by internal ID, or unique property values
153
- # Read a list of products given a collection of IDs. Use the `properties` request body property to control which properties are returned.
154
149
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
155
150
  # @param [Hash] opts the optional parameters
156
151
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
@@ -161,7 +156,6 @@ module Hubspot
161
156
  end
162
157
 
163
158
  # Read a batch of products by internal ID, or unique property values
164
- # Read a list of products given a collection of IDs. Use the &#x60;properties&#x60; request body property to control which properties are returned.
165
159
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
166
160
  # @param [Hash] opts the optional parameters
167
161
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -217,7 +211,6 @@ module Hubspot
217
211
  end
218
212
 
219
213
  # Update a batch of products
220
- # Perform a partial upate on a batch of products. This follows the same rules as performing partial updates on an individual object.
221
214
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
222
215
  # @param [Hash] opts the optional parameters
223
216
  # @return [BatchResponseSimplePublicObject]
@@ -227,7 +220,6 @@ module Hubspot
227
220
  end
228
221
 
229
222
  # Update a batch of products
230
- # Perform a partial upate on a batch of products. This follows the same rules as performing partial updates on an individual object.
231
223
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
232
224
  # @param [Hash] opts the optional parameters
233
225
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -21,8 +21,6 @@ module Hubspot
21
21
  def initialize(api_client = ApiClient.default)
22
22
  @api_client = api_client
23
23
  end
24
- # Filter, Sort, and Search CRM Objects
25
- # Filter, Sort, and Search CRM Objects
26
24
  # @param public_object_search_request [PublicObjectSearchRequest]
27
25
  # @param [Hash] opts the optional parameters
28
26
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -31,8 +29,6 @@ module Hubspot
31
29
  data
32
30
  end
33
31
 
34
- # Filter, Sort, and Search CRM Objects
35
- # Filter, Sort, and Search CRM Objects
36
32
  # @param public_object_search_request [PublicObjectSearchRequest]
37
33
  # @param [Hash] opts the optional parameters
38
34
  # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -22,7 +22,6 @@ module Hubspot
22
22
  @api_client = api_client
23
23
  end
24
24
  # Read a batch of quotes by internal ID, or unique property values
25
- # Read a list of quotes given a collection of IDs. Use the `properties` request body property to control which properties are returned.
26
25
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
@@ -33,7 +32,6 @@ module Hubspot
33
32
  end
34
33
 
35
34
  # Read a batch of quotes by internal ID, or unique property values
36
- # Read a list of quotes given a collection of IDs. Use the &#x60;properties&#x60; request body property to control which properties are returned.
37
35
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
38
36
  # @param [Hash] opts the optional parameters
39
37
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -21,8 +21,6 @@ module Hubspot
21
21
  def initialize(api_client = ApiClient.default)
22
22
  @api_client = api_client
23
23
  end
24
- # Filter, Sort, and Search CRM Objects
25
- # Filter, Sort, and Search CRM Objects
26
24
  # @param public_object_search_request [PublicObjectSearchRequest]
27
25
  # @param [Hash] opts the optional parameters
28
26
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -31,8 +29,6 @@ module Hubspot
31
29
  data
32
30
  end
33
31
 
34
- # Filter, Sort, and Search CRM Objects
35
- # Filter, Sort, and Search CRM Objects
36
32
  # @param public_object_search_request [PublicObjectSearchRequest]
37
33
  # @param [Hash] opts the optional parameters
38
34
  # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -200,7 +200,7 @@ module Hubspot
200
200
  return_type = opts[:return_type] || 'ObjectSchema'
201
201
 
202
202
  # auth_names
203
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
203
+ auth_names = opts[:auth_names] || ['hapikey']
204
204
 
205
205
  new_options = opts.merge(
206
206
  :header_params => header_params,
@@ -270,7 +270,7 @@ module Hubspot
270
270
  return_type = opts[:return_type] || 'AssociationDefinition'
271
271
 
272
272
  # auth_names
273
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
273
+ auth_names = opts[:auth_names] || ['hapikey']
274
274
 
275
275
  new_options = opts.merge(
276
276
  :header_params => header_params,
@@ -461,7 +461,7 @@ module Hubspot
461
461
  return_type = opts[:return_type] || 'ObjectTypeDefinition'
462
462
 
463
463
  # auth_names
464
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
464
+ auth_names = opts[:auth_names] || ['hapikey']
465
465
 
466
466
  new_options = opts.merge(
467
467
  :header_params => header_params,
@@ -15,7 +15,7 @@ require 'cgi'
15
15
  module Hubspot
16
16
  module Crm
17
17
  module Schemas
18
- class DefaultApi
18
+ class PublicObjectSchemasApi
19
19
  attr_accessor :api_client
20
20
 
21
21
  def initialize(api_client = ApiClient.default)
@@ -34,11 +34,11 @@ module Hubspot
34
34
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
35
35
  def purge_with_http_info(object_type, opts = {})
36
36
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: DefaultApi.purge ...'
37
+ @api_client.config.logger.debug 'Calling API: PublicObjectSchemasApi.purge ...'
38
38
  end
39
39
  # verify the required parameter 'object_type' is set
40
40
  if @api_client.config.client_side_validation && object_type.nil?
41
- fail ArgumentError, "Missing the required parameter 'object_type' when calling DefaultApi.purge"
41
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling PublicObjectSchemasApi.purge"
42
42
  end
43
43
  # resource path
44
44
  local_var_path = '/crm/v3/schemas/{objectType}/purge'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s))
@@ -74,7 +74,7 @@ module Hubspot
74
74
 
75
75
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
76
76
  if @api_client.config.debugging
77
- @api_client.config.logger.debug "API called: DefaultApi#purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
+ @api_client.config.logger.debug "API called: PublicObjectSchemasApi#purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
78
  end
79
79
  return data, status_code, headers
80
80
  end
@@ -22,7 +22,6 @@ module Hubspot
22
22
  @api_client = api_client
23
23
  end
24
24
  # Archive a batch of tickets by ID
25
- # Archive a list of tickets given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
26
25
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @return [nil]
@@ -32,7 +31,6 @@ module Hubspot
32
31
  end
33
32
 
34
33
  # Archive a batch of tickets by ID
35
- # Archive a list of tickets given a collection of IDs. This method will return a &#x60;204 No Content&#x60; response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
36
34
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
37
35
  # @param [Hash] opts the optional parameters
38
36
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -86,7 +84,6 @@ module Hubspot
86
84
  end
87
85
 
88
86
  # Create a batch of tickets
89
- # Create a batch of tickets. This follows the same rules as creating an individual object.
90
87
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
91
88
  # @param [Hash] opts the optional parameters
92
89
  # @return [BatchResponseSimplePublicObject]
@@ -96,7 +93,6 @@ module Hubspot
96
93
  end
97
94
 
98
95
  # Create a batch of tickets
99
- # Create a batch of tickets. This follows the same rules as creating an individual object.
100
96
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
101
97
  # @param [Hash] opts the optional parameters
102
98
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -150,7 +146,6 @@ module Hubspot
150
146
  end
151
147
 
152
148
  # Read a batch of tickets by internal ID, or unique property values
153
- # Read a list of tickets given a collection of IDs. Use the `properties` request body property to control which properties are returned.
154
149
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
155
150
  # @param [Hash] opts the optional parameters
156
151
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
@@ -161,7 +156,6 @@ module Hubspot
161
156
  end
162
157
 
163
158
  # Read a batch of tickets by internal ID, or unique property values
164
- # Read a list of tickets given a collection of IDs. Use the &#x60;properties&#x60; request body property to control which properties are returned.
165
159
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
166
160
  # @param [Hash] opts the optional parameters
167
161
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -217,7 +211,6 @@ module Hubspot
217
211
  end
218
212
 
219
213
  # Update a batch of tickets
220
- # Perform a partial upate on a batch of tickets. This follows the same rules as performing partial updates on an individual object.
221
214
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
222
215
  # @param [Hash] opts the optional parameters
223
216
  # @return [BatchResponseSimplePublicObject]
@@ -227,7 +220,6 @@ module Hubspot
227
220
  end
228
221
 
229
222
  # Update a batch of tickets
230
- # Perform a partial upate on a batch of tickets. This follows the same rules as performing partial updates on an individual object.
231
223
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
232
224
  # @param [Hash] opts the optional parameters
233
225
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -21,8 +21,6 @@ module Hubspot
21
21
  def initialize(api_client = ApiClient.default)
22
22
  @api_client = api_client
23
23
  end
24
- # Filter, Sort, and Search CRM Objects
25
- # Filter, Sort, and Search CRM Objects
26
24
  # @param public_object_search_request [PublicObjectSearchRequest]
27
25
  # @param [Hash] opts the optional parameters
28
26
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -31,8 +29,6 @@ module Hubspot
31
29
  data
32
30
  end
33
31
 
34
- # Filter, Sort, and Search CRM Objects
35
- # Filter, Sort, and Search CRM Objects
36
32
  # @param public_object_search_request [PublicObjectSearchRequest]
37
33
  # @param [Hash] opts the optional parameters
38
34
  # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers