hubspot-api-client 10.1.0 → 11.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -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/crm/companies/api/batch_api.rb +0 -8
  43. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  44. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  45. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  46. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  47. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  48. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  49. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  50. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  51. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  52. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  53. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  54. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  55. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  56. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  57. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  58. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  59. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  60. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  61. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  62. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  63. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  64. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  65. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  66. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  67. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  68. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  69. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  70. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  71. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  72. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  73. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  74. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  75. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  76. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  77. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  78. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  79. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  80. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  81. data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -1
  82. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  83. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  84. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  85. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  86. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  87. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  88. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  89. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  90. data/lib/hubspot/version.rb +1 -1
  91. data/lib/hubspot-api-client.rb +16 -3
  92. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  93. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  94. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  95. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  96. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  97. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  98. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  99. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  100. 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
  101. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  102. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  103. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  104. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  105. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  106. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  107. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  108. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  109. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  110. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  111. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  112. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  113. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  114. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  115. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  116. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  117. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  118. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  119. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  120. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  121. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  122. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  123. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  124. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  125. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  126. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  127. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  128. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  129. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  130. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  131. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  132. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  133. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  134. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  135. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  136. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  137. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  138. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  139. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  140. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  141. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  142. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  143. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  144. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  145. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  146. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  147. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  148. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  149. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  150. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  151. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  152. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  153. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  154. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  155. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  156. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  157. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  158. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  159. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  160. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  161. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  162. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  163. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  164. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  165. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  166. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  167. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  168. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  169. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  170. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  171. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  172. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  173. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  174. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  175. data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
  176. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  177. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  178. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  179. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  180. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  181. data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
  182. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  183. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  184. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  185. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  186. metadata +96 -82
  187. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  188. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  189. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  190. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  191. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  192. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  193. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  194. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  195. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  196. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  197. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  198. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
4
- subject(:default_api) { Hubspot::Cms::Blogs::Authors::DefaultApi.new }
3
+ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
4
+ subject(:api) { Hubspot::Cms::Blogs::Authors::AuthorApi.new }
5
5
 
6
6
  it { is_expected.to respond_to(:archive) }
7
7
  it { is_expected.to respond_to(:archive_batch) }
@@ -14,13 +14,13 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
14
14
  it { is_expected.to respond_to(:update_batch) }
15
15
 
16
16
  describe '#archive_batch_with_http_info' do # #archive_batch returns nil, so there are specs for the #archive_with_http_info instead
17
- subject(:new_options) { default_api.archive_batch_with_http_info(input_string, params).first }
17
+ subject(:new_options) { api.archive_batch_with_http_info(input_string, params).first }
18
18
 
19
19
  let(:params) { { auth_names: 'ouath2' } }
20
20
  let(:input_string) { 'test_input_string' }
21
21
 
22
22
  before do
23
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
23
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
24
24
  end
25
25
 
26
26
  it 'sets auth names from params' do
@@ -32,7 +32,7 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
32
32
  end
33
33
 
34
34
  context 'with hapikey' do
35
- subject(:new_options_auth_names) { default_api.archive_batch_with_http_info(input_string, params).first[:auth_names] }
35
+ subject(:new_options_auth_names) { api.archive_batch_with_http_info(input_string, params).first[:auth_names] }
36
36
 
37
37
  let(:params) { { auth_names: 'hapikey' } }
38
38
 
@@ -41,13 +41,13 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
41
41
  end
42
42
 
43
43
  describe '#archive_with_http_info' do # #archive returns nil, so there are specs for the #archive_with_http_info instead
44
- subject(:request) { default_api.archive_with_http_info(object_id, params).first }
44
+ subject(:request) { api.archive_with_http_info(object_id, params).first }
45
45
 
46
46
  let(:params) { { auth_names: 'ouath2' } }
47
47
  let(:object_id) { 'test_object_id' }
48
48
 
49
49
  before do
50
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
50
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
51
51
  end
52
52
 
53
53
  it 'sets auth names from params' do
@@ -59,7 +59,7 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
59
59
  end
60
60
 
61
61
  context 'with hapikey' do
62
- subject(:new_options) { default_api.archive_with_http_info(object_id, params).first[:new_options][:auth_names] }
62
+ subject(:new_options) { api.archive_with_http_info(object_id, params).first[:new_options][:auth_names] }
63
63
 
64
64
  let(:params) { { auth_names: 'hapikey' } }
65
65
 
@@ -68,13 +68,13 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
68
68
  end
69
69
 
70
70
  describe '#create_batch' do
71
- subject(:new_options) { default_api.create_batch(blog_author, params) }
71
+ subject(:new_options) { api.create_batch(blog_author, params) }
72
72
 
73
73
  let(:params) { { auth_names: 'ouath2' } }
74
74
  let(:blog_author) { 'test_blog_author' }
75
75
 
76
76
  before do
77
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
77
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
78
78
  end
79
79
 
80
80
  it 'sets auth names from params' do
@@ -86,7 +86,7 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
86
86
  end
87
87
 
88
88
  context 'with hapikey' do
89
- subject(:new_options_auth_names) { default_api.create_batch(blog_author, params)[:auth_names] }
89
+ subject(:new_options_auth_names) { api.create_batch(blog_author, params)[:auth_names] }
90
90
 
91
91
  let(:params) { { auth_names: 'hapikey' } }
92
92
 
@@ -95,13 +95,13 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
95
95
  end
96
96
 
97
97
  describe '#create' do
98
- subject(:new_options) { default_api.create(blog_author, params) }
98
+ subject(:new_options) { api.create(blog_author, params) }
99
99
 
100
100
  let(:params) { { auth_names: 'ouath2' } }
101
101
  let(:blog_author) { 'test_blog_author' }
102
102
 
103
103
  before do
104
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
104
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
105
105
  end
106
106
 
107
107
  it 'sets auth names from params' do
@@ -113,7 +113,7 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
113
113
  end
114
114
 
115
115
  context 'with hapikey' do
116
- subject(:new_options_auth_names) { default_api.create(blog_author, params)[:auth_names] }
116
+ subject(:new_options_auth_names) { api.create(blog_author, params)[:auth_names] }
117
117
 
118
118
  let(:params) { { auth_names: 'hapikey' } }
119
119
 
@@ -122,13 +122,13 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
122
122
  end
123
123
 
124
124
  describe '#get_by_id' do
125
- subject(:request) { default_api.get_by_id(object_id, params) }
125
+ subject(:request) { api.get_by_id(object_id, params) }
126
126
 
127
127
  let(:params) { { auth_names: 'ouath2' } }
128
128
  let(:object_id) { 'test_object_id' }
129
129
 
130
130
  before do
131
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
131
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
132
132
  end
133
133
 
134
134
  it 'sets auth names from params' do
@@ -140,7 +140,7 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
140
140
  end
141
141
 
142
142
  context 'with hapikey' do
143
- subject(:new_options) { default_api.get_by_id(object_id, params)[:new_options][:auth_names] }
143
+ subject(:new_options) { api.get_by_id(object_id, params)[:new_options][:auth_names] }
144
144
 
145
145
  let(:params) { { auth_names: 'hapikey' } }
146
146
 
@@ -149,12 +149,12 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
149
149
  end
150
150
 
151
151
  describe '#get_page' do
152
- subject(:new_options_auth_names) { default_api.get_page(params)[:auth_names] }
152
+ subject(:new_options_auth_names) { api.get_page(params)[:auth_names] }
153
153
 
154
154
  let(:params) { { auth_names: 'ouath2' } }
155
155
 
156
156
  before do
157
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
157
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
158
158
  end
159
159
 
160
160
  it { is_expected.to eq params[:auth_names] }
@@ -167,13 +167,13 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
167
167
  end
168
168
 
169
169
  describe '#read_batch' do
170
- subject(:new_options) { default_api.read_batch(input_string, params) }
170
+ subject(:new_options) { api.read_batch(input_string, params) }
171
171
 
172
172
  let(:params) { { auth_names: 'ouath2' } }
173
173
  let(:input_string) { 'test_input_string' }
174
174
 
175
175
  before do
176
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
176
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
177
177
  end
178
178
 
179
179
  it 'sets auth_names from params' do
@@ -185,7 +185,7 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
185
185
  end
186
186
 
187
187
  context 'with hapikey' do
188
- subject(:new_options_auth_names) { default_api.read_batch(input_string, params)[:auth_names] }
188
+ subject(:new_options_auth_names) { api.read_batch(input_string, params)[:auth_names] }
189
189
 
190
190
  let(:params) { { auth_names: 'hapikey' } }
191
191
 
@@ -194,13 +194,13 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
194
194
  end
195
195
 
196
196
  describe '#update_batch' do
197
- subject(:new_options) { default_api.update_batch(input_json_node, params) }
197
+ subject(:new_options) { api.update_batch(input_json_node, params) }
198
198
 
199
199
  let(:params) { { auth_names: 'ouath2' } }
200
200
  let(:input_json_node) { 'test_input_json_node' }
201
201
 
202
202
  before do
203
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
203
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
204
204
  end
205
205
 
206
206
  it 'sets auth_names from params' do
@@ -212,7 +212,7 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
212
212
  end
213
213
 
214
214
  context 'with hapikey' do
215
- subject(:new_options_auth_names) { default_api.update_batch(input_json_node, params)[:auth_names] }
215
+ subject(:new_options_auth_names) { api.update_batch(input_json_node, params)[:auth_names] }
216
216
 
217
217
  let(:params) { { auth_names: 'hapikey' } }
218
218
 
@@ -221,14 +221,14 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
221
221
  end
222
222
 
223
223
  describe '#update' do
224
- subject(:request) { default_api.update(object_id, input_json_node, params) }
224
+ subject(:request) { api.update(object_id, input_json_node, params) }
225
225
 
226
226
  let(:params) { { auth_names: 'ouath2' } }
227
227
  let(:object_id) { 'test_object_id' }
228
228
  let(:input_json_node) { 'test_input_json_node' }
229
229
 
230
230
  before do
231
- default_api.api_client.stub(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
231
+ api.api_client.stub(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
232
232
  end
233
233
 
234
234
  it 'sets auth names from params' do
@@ -244,7 +244,7 @@ describe 'Hubspot::Cms::Blogs::Authors::DefaultApi' do
244
244
  end
245
245
 
246
246
  context 'with hapikey' do
247
- subject(:new_options_auth_names) { default_api.update(object_id, input_json_node, params)[:new_options][:auth_names] }
247
+ subject(:new_options_auth_names) { api.update(object_id, input_json_node, params)[:new_options][:auth_names] }
248
248
 
249
249
  let(:params) { { auth_names: 'hapikey' } }
250
250
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'Hubspot::Cms::Blogs::BlogPosts::DefaultApi' do
4
- subject(:default_api) { Hubspot::Cms::Blogs::BlogPosts::DefaultApi.new }
3
+ describe 'Hubspot::Cms::Blogs::BlogPosts::BlogPostApi' do
4
+ subject(:api) { Hubspot::Cms::Blogs::BlogPosts::BlogPostApi.new }
5
5
 
6
6
  it { is_expected.to respond_to(:archive) }
7
7
  it { is_expected.to respond_to(:archive_batch) }
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'Hubspot::Cms::Blogs::Tags::DefaultApi' do
4
- subject(:default_api) { Hubspot::Cms::Blogs::Tags::DefaultApi.new }
3
+ describe 'Hubspot::Cms::Blogs::Tags::TagApi' do
4
+ subject(:api) { Hubspot::Cms::Blogs::Tags::TagApi.new }
5
5
 
6
6
  it { is_expected.to respond_to(:archive) }
7
7
  it { is_expected.to respond_to(:archive_batch) }
@@ -14,7 +14,7 @@ describe 'Hubspot::Cms::Hubdb::TablesApi' do
14
14
  it { is_expected.to respond_to(:get_table_details) }
15
15
  it { is_expected.to respond_to(:import_draft_table) }
16
16
  it { is_expected.to respond_to(:publish_draft_table) }
17
+ it { is_expected.to respond_to(:unpublish_table) }
17
18
  it { is_expected.to respond_to(:reset_draft_table) }
18
19
  it { is_expected.to respond_to(:update_draft_table) }
19
- it { is_expected.to respond_to(:update_table) }
20
20
  end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Cms::Performance::PublicPerformanceApi' do
4
+ subject(:api) { Hubspot::Cms::Performance::PublicPerformanceApi.new }
5
+
6
+ it { is_expected.to respond_to(:get_page) }
7
+ it { is_expected.to respond_to(:get_uptime) }
8
+ end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'Hubspot::Cms::SiteSearch::DefaultApi' do
4
- subject(:default_api) { Hubspot::Cms::SiteSearch::DefaultApi.new }
3
+ describe 'Hubspot::Cms::SiteSearch::PublicApi' do
4
+ subject(:api) { Hubspot::Cms::SiteSearch::PublicApi.new }
5
5
 
6
6
  it { is_expected.to respond_to(:get_by_id) }
7
7
  it { is_expected.to respond_to(:search) }
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Crm::Contacts::GDPRApi' do
4
+ subject(:api) { Hubspot::Crm::Contacts::GDPRApi.new }
5
+
6
+ it { is_expected.to respond_to(:purge_by_email) }
7
+ it { is_expected.to respond_to(:purge_by_id) }
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Crm::Objects::GDPRApi' do
4
+ subject(:api) { Hubspot::Crm::Objects::GDPRApi.new }
5
+
6
+ it { is_expected.to respond_to(:purge_by_email) }
7
+ it { is_expected.to respond_to(:purge_by_id) }
8
+ end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'Hubspot::Crm::Owners::DefaultApi' do
4
- subject(:default_api) { Hubspot::Crm::Owners::DefaultApi.new }
3
+ describe 'Hubspot::Crm::Owners::OwnersApi' do
4
+ subject(:api) { Hubspot::Crm::Owners::OwnersApi.new }
5
5
 
6
6
  it { is_expected.to respond_to(:get_by_id) }
7
7
  it { is_expected.to respond_to(:get_page) }
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Crm::Schemas::PublicObjectSchemasApi' do
4
+ subject(:api) { Hubspot::Crm::Schemas::PublicObjectSchemasApi.new }
5
+
6
+ it { is_expected.to respond_to(:purge) }
7
+ end
@@ -1,12 +1,11 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'Hubspot::Marketing::Transactional::DefaultApi' do
4
- subject(:settings_api) { Hubspot::Marketing::Transactional::DefaultApi.new }
3
+ describe 'Hubspot::Marketing::Transactional::PublicSmtpTokensApi' do
4
+ subject(:settings_api) { Hubspot::Marketing::Transactional::PublicSmtpTokensApi.new }
5
5
 
6
6
  it { is_expected.to respond_to(:archive_token) }
7
7
  it { is_expected.to respond_to(:get_token_by_id) }
8
8
  it { is_expected.to respond_to(:get_tokens_page) }
9
9
  it { is_expected.to respond_to(:create_token) }
10
10
  it { is_expected.to respond_to(:reset_password) }
11
- it { is_expected.to respond_to(:send_email) }
12
11
  end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Marketing::Transactional::SingleSendApi' do
4
+ subject(:api) { Hubspot::Marketing::Transactional::SingleSendApi.new }
5
+
6
+ it { is_expected.to respond_to(:send_email) }
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::OAuth::AccessTokensApi' do
4
+ subject(:api) { Hubspot::OAuth::AccessTokensApi.new }
5
+
6
+ it { is_expected.to respond_to(:get_access_token) }
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::OAuth::RefreshTokensApi' do
4
+ subject(:api) { Hubspot::OAuth::RefreshTokensApi.new }
5
+
6
+ it { is_expected.to respond_to(:archive_refresh_token) }
7
+ it { is_expected.to respond_to(:get_refresh_token) }
8
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::OAuth::TokensApi' do
4
+ subject(:api) { Hubspot::OAuth::TokensApi.new }
5
+
6
+ it { is_expected.to respond_to(:create_token) }
7
+ end