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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +2 -2
- data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
- data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
- data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
- data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
- 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
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
- data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
- data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
- data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
- data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
- data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
- data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
- data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
- data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
- data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
- data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
- data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
- data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
- data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
- data/lib/hubspot/version.rb +1 -1
- data/pkg/hubspot-api-client-10.1.1.gem +0 -0
- data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
- data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
- data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
- data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
- data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
- data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
- data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
- 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
- data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
- data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
- data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
- data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
- data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
- data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
- data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
- data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
- data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
- data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
- data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
- data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
- data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
- data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
- data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
- data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
- data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
- data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
- data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
- data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
- data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
- data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
- data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
- data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
- data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
- data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
- data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
- data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
- data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
- data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
- data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
- data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
- data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
- data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
- data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
- data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
- data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
- data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
- data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
- data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
- data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
- data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
- data/spec/features/oauth/tokens_api_spec.rb +7 -0
- metadata +96 -82
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
- data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
- data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
- data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
- data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
- data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
- data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
- data/spec/features/crm/schemas/default_api_spec.rb +0 -7
- data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -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::
|
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 '
|
19
|
+
describe 'RefreshTokensApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = Hubspot::OAuth::
|
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
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(Hubspot::OAuth::
|
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::
|
4
|
-
subject(:
|
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) {
|
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
|
-
|
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] }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'Hubspot::Cms::Blogs::Authors::
|
4
|
-
subject(:
|
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) {
|
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
|
-
|
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) {
|
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) {
|
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
|
-
|
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) {
|
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) {
|
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
|
-
|
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) {
|
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) {
|
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
|
-
|
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) {
|
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) {
|
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
|
-
|
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) {
|
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) {
|
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
|
-
|
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) {
|
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
|
-
|
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) {
|
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) {
|
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
|
-
|
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) {
|
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) {
|
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
|
-
|
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) {
|
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::
|
4
|
-
subject(:
|
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) }
|