hubspot-api-client 10.0.1 → 11.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +4 -4
  4. data/README.md +4 -0
  5. data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
  6. data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
  7. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
  8. data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
  9. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  10. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  11. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
  12. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
  13. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
  14. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
  15. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  16. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  17. 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
  18. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  19. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  24. data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
  25. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
  30. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
  31. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
  32. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  33. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
  34. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  38. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  39. data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
  40. data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
  41. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
  42. data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +80 -0
  43. data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +214 -0
  44. data/lib/hubspot/codegen/communication_preferences/api_client.rb +404 -0
  45. data/lib/hubspot/codegen/communication_preferences/api_error.rb +59 -0
  46. data/lib/hubspot/codegen/communication_preferences/configuration.rb +254 -0
  47. data/lib/hubspot/codegen/communication_preferences/models/error.rb +290 -0
  48. data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +256 -0
  49. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +372 -0
  50. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +231 -0
  51. data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +283 -0
  52. data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +339 -0
  53. data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +216 -0
  54. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
  55. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  56. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  57. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  58. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  59. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  60. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  61. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  62. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  63. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  64. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  65. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  66. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  67. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  68. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  69. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  70. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  71. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  72. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  73. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  74. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  75. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  76. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  77. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  78. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  79. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  80. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  81. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  82. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  83. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  84. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  85. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  86. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  87. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  88. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  89. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  90. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  91. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  92. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  93. data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -1
  94. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  95. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  96. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  97. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  98. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  99. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  100. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  101. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  102. data/lib/hubspot/version.rb +1 -1
  103. data/lib/hubspot-api-client.rb +16 -3
  104. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  105. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  106. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  107. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  108. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  109. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  110. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  111. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  112. 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
  113. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  114. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  115. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  116. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  117. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  118. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  119. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  120. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  121. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  122. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  123. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  124. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  125. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  126. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  127. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  128. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  129. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  130. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  131. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  132. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  133. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  134. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  135. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  136. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  137. data/spec/codegen/communication_preferences/api/definition_api_spec.rb +46 -0
  138. data/spec/codegen/communication_preferences/api/status_api_spec.rb +71 -0
  139. data/spec/codegen/communication_preferences/models/error_detail_spec.rb +65 -0
  140. data/spec/codegen/communication_preferences/models/error_spec.rb +77 -0
  141. data/spec/codegen/communication_preferences/models/public_subscription_status_spec.rb +101 -0
  142. data/spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb +47 -0
  143. data/spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb +63 -0
  144. data/spec/codegen/communication_preferences/models/subscription_definition_spec.rb +95 -0
  145. data/spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb +41 -0
  146. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  147. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  148. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  149. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  150. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  151. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  152. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  153. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  154. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  155. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  156. data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +2 -2
  157. data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +6 -0
  158. data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +6 -0
  159. data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +6 -0
  160. data/spec/codegen/crm/extensions/cards/api/cards_api_spec.rb +2 -2
  161. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  162. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  163. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  164. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  165. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  166. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  167. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  168. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  169. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  170. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  171. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  172. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  173. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  174. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  175. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  176. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  177. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  178. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  179. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  180. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  181. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  182. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  183. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  184. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  185. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  186. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  187. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  188. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  189. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  190. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  191. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  192. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  193. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  194. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  195. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  196. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  197. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  198. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  199. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  200. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  201. data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
  202. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  203. data/spec/features/communication_preferences/definition_api_spec.rb +7 -0
  204. data/spec/features/communication_preferences/status_api_spec.rb +9 -0
  205. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  206. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  207. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  208. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  209. data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
  210. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  211. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  212. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  213. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  214. metadata +130 -82
  215. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  216. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  217. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  218. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  219. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  220. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  221. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  222. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  223. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  224. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  225. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  226. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -34,7 +34,6 @@ describe 'BatchApi' do
34
34
 
35
35
  # unit tests for archive
36
36
  # Archive a batch of tickets by ID
37
- # 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).
38
37
  # @param batch_input_simple_public_object_id
39
38
  # @param [Hash] opts the optional parameters
40
39
  # @return [nil]
@@ -46,7 +45,6 @@ describe 'BatchApi' do
46
45
 
47
46
  # unit tests for create
48
47
  # Create a batch of tickets
49
- # Create a batch of tickets. This follows the same rules as creating an individual object.
50
48
  # @param batch_input_simple_public_object_input
51
49
  # @param [Hash] opts the optional parameters
52
50
  # @return [BatchResponseSimplePublicObject]
@@ -58,7 +56,6 @@ describe 'BatchApi' do
58
56
 
59
57
  # unit tests for read
60
58
  # Read a batch of tickets by internal ID, or unique property values
61
- # Read a list of tickets given a collection of IDs. Use the `properties` request body property to control which properties are returned.
62
59
  # @param batch_read_input_simple_public_object_id
63
60
  # @param [Hash] opts the optional parameters
64
61
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -71,7 +68,6 @@ describe 'BatchApi' do
71
68
 
72
69
  # unit tests for update
73
70
  # Update a batch of tickets
74
- # Perform a partial upate on a batch of tickets. This follows the same rules as performing partial updates on an individual object.
75
71
  # @param batch_input_simple_public_object_batch_input
76
72
  # @param [Hash] opts the optional parameters
77
73
  # @return [BatchResponseSimplePublicObject]
@@ -33,8 +33,6 @@ describe 'SearchApi' do
33
33
  end
34
34
 
35
35
  # unit tests for do_search
36
- # Filter, Sort, and Search CRM Objects
37
- # Filter, Sort, and Search CRM Objects
38
36
  # @param public_object_search_request
39
37
  # @param [Hash] opts the optional parameters
40
38
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -47,7 +47,7 @@ describe 'Filter' do
47
47
  describe 'test attribute "operator"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
50
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
51
51
  # validator.allowable_values.each do |value|
52
52
  # expect { @instance.operator = value }.not_to raise_error
53
53
  # end
@@ -63,7 +63,7 @@ describe 'TemplatesApi' do
63
63
  # Use this to list all event templates owned by your app.
64
64
  # @param app_id The ID of the target app.
65
65
  # @param [Hash] opts the optional parameters
66
- # @return [CollectionResponseTimelineEventTemplate]
66
+ # @return [CollectionResponseTimelineEventTemplateNoPaging]
67
67
  describe 'get_all test' do
68
68
  it 'should work' do
69
69
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplate
17
+ # Unit tests for Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplateNoPaging
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'CollectionResponseTimelineEventTemplate' do
20
+ describe 'CollectionResponseTimelineEventTemplateNoPaging' do
21
21
  before do
22
22
  # run before each test
23
- @instance = Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplate.new
23
+ @instance = Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplateNoPaging.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of CollectionResponseTimelineEventTemplate' do
31
- it 'should create an instance of CollectionResponseTimelineEventTemplate' do
32
- expect(@instance).to be_instance_of(Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplate)
30
+ describe 'test an instance of CollectionResponseTimelineEventTemplateNoPaging' do
31
+ it 'should create an instance of CollectionResponseTimelineEventTemplateNoPaging' do
32
+ expect(@instance).to be_instance_of(Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplateNoPaging)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "results"' do
@@ -38,10 +38,4 @@ describe 'CollectionResponseTimelineEventTemplate' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "paging"' do
42
- it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
- end
45
- end
46
-
47
41
  end
@@ -79,7 +79,11 @@ describe 'FilesApi' do
79
79
  # @option opts [Array<String>] :sort Sort files by a given field.
80
80
  # @option opts [String] :id Search files by given ID.
81
81
  # @option opts [DateTime] :created_at Search files by time of creation.
82
+ # @option opts [DateTime] :created_at_lte
83
+ # @option opts [DateTime] :created_at_gte
82
84
  # @option opts [DateTime] :updated_at Search files by time of latest updated.
85
+ # @option opts [DateTime] :updated_at_lte
86
+ # @option opts [DateTime] :updated_at_gte
83
87
  # @option opts [String] :name Search for files containing the given name.
84
88
  # @option opts [String] :path Search files by path.
85
89
  # @option opts [Integer] :parent_folder_id Search files within given folder ID.
@@ -144,7 +148,6 @@ describe 'FilesApi' do
144
148
  # Replace existing file data with new file data. Can be used to change image content without having to upload a new file and update all references.
145
149
  # @param file_id Id of the desired file.
146
150
  # @param [Hash] opts the optional parameters
147
- # @option opts [String] :user_agent
148
151
  # @option opts [File] :file File data that will replace existing file in the file manager.
149
152
  # @option opts [String] :charset_hunch Character set of given file data.
150
153
  # @option opts [String] :options JSON String representing FileReplaceOptions
@@ -172,7 +175,6 @@ describe 'FilesApi' do
172
175
  # Upload file
173
176
  # Upload a single file with content specified in request body.
174
177
  # @param [Hash] opts the optional parameters
175
- # @option opts [String] :user_agent
176
178
  # @option opts [File] :file File to be uploaded.
177
179
  # @option opts [String] :folder_id Either &#39;folderId&#39; or &#39;folderPath&#39; is required. folderId is the ID of the folder the file will be uploaded to.
178
180
  # @option opts [String] :folder_path Either &#39;folderPath&#39; or &#39;folderId&#39; is required. This field represents the destination folder path for the uploaded file. If a path doesn&#39;t exist, the system will try to create one.
@@ -91,7 +91,11 @@ describe 'FoldersApi' do
91
91
  # @option opts [Array<String>] :sort Sort results by given property. For example -name sorts by name field descending, name sorts by name field ascending.
92
92
  # @option opts [String] :id Search folder by given ID.
93
93
  # @option opts [DateTime] :created_at Search for folders with the given creation timestamp.
94
+ # @option opts [DateTime] :created_at_lte
95
+ # @option opts [DateTime] :created_at_gte
94
96
  # @option opts [DateTime] :updated_at Search for folder at given update timestamp.
97
+ # @option opts [DateTime] :updated_at_lte
98
+ # @option opts [DateTime] :updated_at_gte
95
99
  # @option opts [String] :name Search for folders containing the specified name.
96
100
  # @option opts [String] :path Search for folders by path.
97
101
  # @option opts [Integer] :parent_folder_id Search for folders with the given parent folder ID.
@@ -32,19 +32,19 @@ describe 'ErrorCategory' do
32
32
  expect(@instance).to be_instance_of(Hubspot::Files::Files::ErrorCategory)
33
33
  end
34
34
  end
35
- describe 'test attribute "http_status"' do
35
+ describe 'test attribute "name"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["CONTINUE", "SWITCHING_PROTOCOLS", "PROCESSING", "OK", "CREATED", "ACCEPTED", "NON_AUTHORITATIVE_INFORMATION", "NO_CONTENT", "RESET_CONTENT", "PARTIAL_CONTENT", "MULTI_STATUS", "ALREADY_REPORTED", "IM_USED", "MULTIPLE_CHOICES", "MOVED_PERMANENTLY", "FOUND", "SEE_OTHER", "NOT_MODIFIED", "USE_PROXY", "TEMPORARY_REDIRECT", "PERMANENT_REDIRECT", "BAD_REQUEST", "UNAUTHORIZED", "PAYMENT_REQUIRED", "FORBIDDEN", "NOT_FOUND", "METHOD_NOT_ALLOWED", "NOT_ACCEPTABLE", "PROXY_AUTHENTICATION_REQUIRED", "REQUEST_TIMEOUT", "CONFLICT", "GONE", "LENGTH_REQUIRED", "PRECONDITION_FAILED", "REQUEST_ENTITY_TOO_LARGE", "REQUEST_URI_TOO_LONG", "UNSUPPORTED_MEDIA_TYPE", "REQUESTED_RANGE_NOT_SATISFIABLE", "EXPECTATION_FAILED", "IM_A_TEAPOT", "MISDIRECTED_REQUEST", "UNPROCESSABLE_ENTITY", "LOCKED", "FAILED_DEPENDENCY", "UPGRADE_REQUIRED", "PRECONDITION_REQUIRED", "TOO_MANY_REQUESTS", "REQUEST_HEADERS_FIELDS_TOO_LARGE", "INTERNAL_STALE_SERVICE_DISCOVERY", "UNAVAILABLE_FOR_LEGAL_REASONS", "INTERNAL_SERVER_ERROR", "NOT_IMPLEMENTED", "BAD_GATEWAY", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT", "HTTP_VERSION_NOT_SUPPORTED", "VARIANT_ALSO_NEGOTIATES", "INSUFFICIENT_STORAGE", "LOOP_DETECTED", "NOT_EXTENDED", "NETWORK_AUTHENTICATION_REQUIRED"])
39
- # validator.allowable_values.each do |value|
40
- # expect { @instance.http_status = value }.not_to raise_error
41
- # end
42
38
  end
43
39
  end
44
40
 
45
- describe 'test attribute "name"' do
41
+ describe 'test attribute "http_status"' do
46
42
  it 'should work' do
47
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["CONTINUE", "SWITCHING_PROTOCOLS", "PROCESSING", "OK", "CREATED", "ACCEPTED", "NON_AUTHORITATIVE_INFORMATION", "NO_CONTENT", "RESET_CONTENT", "PARTIAL_CONTENT", "MULTI_STATUS", "ALREADY_REPORTED", "IM_USED", "MULTIPLE_CHOICES", "MOVED_PERMANENTLY", "FOUND", "SEE_OTHER", "NOT_MODIFIED", "USE_PROXY", "TEMPORARY_REDIRECT", "PERMANENT_REDIRECT", "BAD_REQUEST", "UNAUTHORIZED", "PAYMENT_REQUIRED", "FORBIDDEN", "NOT_FOUND", "METHOD_NOT_ALLOWED", "NOT_ACCEPTABLE", "PROXY_AUTHENTICATION_REQUIRED", "REQUEST_TIMEOUT", "CONFLICT", "GONE", "LENGTH_REQUIRED", "PRECONDITION_FAILED", "REQUEST_ENTITY_TOO_LARGE", "REQUEST_URI_TOO_LONG", "UNSUPPORTED_MEDIA_TYPE", "REQUESTED_RANGE_NOT_SATISFIABLE", "EXPECTATION_FAILED", "IM_A_TEAPOT", "MISDIRECTED_REQUEST", "UNPROCESSABLE_ENTITY", "LOCKED", "FAILED_DEPENDENCY", "UPGRADE_REQUIRED", "PRECONDITION_REQUIRED", "TOO_MANY_REQUESTS", "REQUEST_HEADERS_FIELDS_TOO_LARGE", "INTERNAL_STALE_SERVICE_DISCOVERY", "UNAVAILABLE_FOR_LEGAL_REASONS", "INTERNAL_SERVER_ERROR", "NOT_IMPLEMENTED", "BAD_GATEWAY", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT", "HTTP_VERSION_NOT_SUPPORTED", "VARIANT_ALSO_NEGOTIATES", "INSUFFICIENT_STORAGE", "LOOP_DETECTED", "NOT_EXTENDED", "NETWORK_AUTHENTICATION_REQUIRED"])
45
+ # validator.allowable_values.each do |value|
46
+ # expect { @instance.http_status = value }.not_to raise_error
47
+ # end
48
48
  end
49
49
  end
50
50
 
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for Hubspot::Marketing::Transactional::DefaultApi
16
+ # Unit tests for Hubspot::Marketing::Transactional::PublicSmtpTokensApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'DefaultApi' do
19
+ describe 'PublicSmtpTokensApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Marketing::Transactional::DefaultApi.new
22
+ @api_instance = Hubspot::Marketing::Transactional::PublicSmtpTokensApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Marketing::Transactional::DefaultApi)
29
+ describe 'test an instance of PublicSmtpTokensApi' do
30
+ it 'should create an instance of PublicSmtpTokensApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::Marketing::Transactional::PublicSmtpTokensApi)
32
32
  end
33
33
  end
34
34
 
@@ -95,16 +95,4 @@ describe 'DefaultApi' do
95
95
  end
96
96
  end
97
97
 
98
- # unit tests for send_email
99
- # Send a single transactional email asynchronously.
100
- # Asynchronously send a transactional email. Returns the status of the email send with a statusId that can be used to continuously query for the status using the Email Send Status API.
101
- # @param [Hash] opts the optional parameters
102
- # @option opts [PublicSingleSendRequestEgg] :public_single_send_request_egg A request object describing the email to send.
103
- # @return [EmailSendStatusView]
104
- describe 'send_email test' do
105
- it 'should work' do
106
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
107
- end
108
- end
109
-
110
98
  end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #Transactional Email
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Hubspot::Marketing::Transactional::SingleSendApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SingleSendApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Hubspot::Marketing::Transactional::SingleSendApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SingleSendApi' do
30
+ it 'should create an instance of SingleSendApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::Marketing::Transactional::SingleSendApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for send_email
36
+ # Send a single transactional email asynchronously.
37
+ # Asynchronously send a transactional email. Returns the status of the email send with a statusId that can be used to continuously query for the status using the Email Send Status API.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [PublicSingleSendRequestEgg] :public_single_send_request_egg A request object describing the email to send.
40
+ # @return [EmailSendStatusView]
41
+ describe 'send_email test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,45 @@
1
+ =begin
2
+ #OAuthService
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Hubspot::OAuth::AccessTokensApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'AccessTokensApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Hubspot::OAuth::AccessTokensApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of AccessTokensApi' do
30
+ it 'should create an instance of AccessTokensApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::OAuth::AccessTokensApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_access_token
36
+ # @param token
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [AccessTokenInfoResponse]
39
+ describe 'get_access_token test' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ end
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for Hubspot::OAuth::DefaultApi
16
+ # Unit tests for Hubspot::OAuth::RefreshTokensApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'DefaultApi' do
19
+ describe 'RefreshTokensApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::OAuth::DefaultApi.new
22
+ @api_instance = Hubspot::OAuth::RefreshTokensApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::OAuth::DefaultApi)
29
+ describe 'test an instance of RefreshTokensApi' do
30
+ it 'should create an instance of RefreshTokensApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::OAuth::RefreshTokensApi)
32
32
  end
33
33
  end
34
34
 
@@ -42,31 +42,6 @@ describe 'DefaultApi' do
42
42
  end
43
43
  end
44
44
 
45
- # unit tests for create_token
46
- # @param [Hash] opts the optional parameters
47
- # @option opts [String] :grant_type
48
- # @option opts [String] :code
49
- # @option opts [String] :redirect_uri
50
- # @option opts [String] :client_id
51
- # @option opts [String] :client_secret
52
- # @option opts [String] :refresh_token
53
- # @return [TokenResponseIF]
54
- describe 'create_token test' do
55
- it 'should work' do
56
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
- end
58
- end
59
-
60
- # unit tests for get_access_token
61
- # @param token
62
- # @param [Hash] opts the optional parameters
63
- # @return [AccessTokenInfoResponse]
64
- describe 'get_access_token test' do
65
- it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
- end
68
- end
69
-
70
45
  # unit tests for get_refresh_token
71
46
  # @param token
72
47
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,50 @@
1
+ =begin
2
+ #OAuthService
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Hubspot::OAuth::TokensApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'TokensApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Hubspot::OAuth::TokensApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of TokensApi' do
30
+ it 'should create an instance of TokensApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::OAuth::TokensApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_token
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :grant_type
38
+ # @option opts [String] :code
39
+ # @option opts [String] :redirect_uri
40
+ # @option opts [String] :client_id
41
+ # @option opts [String] :client_secret
42
+ # @option opts [String] :refresh_token
43
+ # @return [TokenResponseIF]
44
+ describe 'create_token test' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ end
@@ -62,6 +62,18 @@ describe 'AccessTokenInfoResponse' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "trial_scopes"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "trial_scope_to_scope_group_pks"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
65
77
  describe 'test attribute "hub_id"' do
66
78
  it 'should work' do
67
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,4 +50,16 @@ describe 'TokenResponseIF' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "id_token"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "token_type"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
53
65
  end
@@ -1,17 +1,17 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'Hubspot::Cms::AuditLogs::DefaultApi' do
4
- subject(:default_api) { Hubspot::Cms::AuditLogs::DefaultApi.new }
3
+ describe 'Hubspot::Cms::AuditLogs::AuditLogsApi' do
4
+ subject(:api) { Hubspot::Cms::AuditLogs::AuditLogsApi.new }
5
5
 
6
6
  it { is_expected.to respond_to(:get_page) }
7
7
 
8
8
  describe '#get_page' do
9
- subject(:new_options_auth_names) { default_api.get_page(params)[:auth_names] }
9
+ subject(:new_options_auth_names) { api.get_page(params)[:auth_names] }
10
10
 
11
11
  let(:params) { { auth_names: 'ouath2' } }
12
12
 
13
13
  before do
14
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
14
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
15
15
  end
16
16
 
17
17
  it { is_expected.to eq params[:auth_names] }