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
@@ -21,12 +21,18 @@ module Hubspot
|
|
21
21
|
|
22
22
|
attr_accessor :access_token
|
23
23
|
|
24
|
+
attr_accessor :id_token
|
25
|
+
|
26
|
+
attr_accessor :token_type
|
27
|
+
|
24
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
29
|
def self.attribute_map
|
26
30
|
{
|
27
31
|
:'refresh_token' => :'refresh_token',
|
28
32
|
:'expires_in' => :'expires_in',
|
29
|
-
:'access_token' => :'access_token'
|
33
|
+
:'access_token' => :'access_token',
|
34
|
+
:'id_token' => :'id_token',
|
35
|
+
:'token_type' => :'token_type'
|
30
36
|
}
|
31
37
|
end
|
32
38
|
|
@@ -35,7 +41,9 @@ module Hubspot
|
|
35
41
|
{
|
36
42
|
:'refresh_token' => :'String',
|
37
43
|
:'expires_in' => :'Integer',
|
38
|
-
:'access_token' => :'String'
|
44
|
+
:'access_token' => :'String',
|
45
|
+
:'id_token' => :'String',
|
46
|
+
:'token_type' => :'String'
|
39
47
|
}
|
40
48
|
end
|
41
49
|
|
@@ -71,6 +79,14 @@ module Hubspot
|
|
71
79
|
if attributes.key?(:'access_token')
|
72
80
|
self.access_token = attributes[:'access_token']
|
73
81
|
end
|
82
|
+
|
83
|
+
if attributes.key?(:'id_token')
|
84
|
+
self.id_token = attributes[:'id_token']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'token_type')
|
88
|
+
self.token_type = attributes[:'token_type']
|
89
|
+
end
|
74
90
|
end
|
75
91
|
|
76
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -89,6 +105,10 @@ module Hubspot
|
|
89
105
|
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
90
106
|
end
|
91
107
|
|
108
|
+
if @token_type.nil?
|
109
|
+
invalid_properties.push('invalid value for "token_type", token_type cannot be nil.')
|
110
|
+
end
|
111
|
+
|
92
112
|
invalid_properties
|
93
113
|
end
|
94
114
|
|
@@ -98,6 +118,7 @@ module Hubspot
|
|
98
118
|
return false if @refresh_token.nil?
|
99
119
|
return false if @expires_in.nil?
|
100
120
|
return false if @access_token.nil?
|
121
|
+
return false if @token_type.nil?
|
101
122
|
true
|
102
123
|
end
|
103
124
|
|
@@ -108,7 +129,9 @@ module Hubspot
|
|
108
129
|
self.class == o.class &&
|
109
130
|
refresh_token == o.refresh_token &&
|
110
131
|
expires_in == o.expires_in &&
|
111
|
-
access_token == o.access_token
|
132
|
+
access_token == o.access_token &&
|
133
|
+
id_token == o.id_token &&
|
134
|
+
token_type == o.token_type
|
112
135
|
end
|
113
136
|
|
114
137
|
# @see the `==` method
|
@@ -120,7 +143,7 @@ module Hubspot
|
|
120
143
|
# Calculates hash code according to all attributes.
|
121
144
|
# @return [Integer] Hash code
|
122
145
|
def hash
|
123
|
-
[refresh_token, expires_in, access_token].hash
|
146
|
+
[refresh_token, expires_in, access_token, id_token, token_type].hash
|
124
147
|
end
|
125
148
|
|
126
149
|
# Builds the object from hash
|
data/lib/hubspot/version.rb
CHANGED
Binary file
|
@@ -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::Cms::AuditLogs::
|
16
|
+
# Unit tests for Hubspot::Cms::AuditLogs::AuditLogsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'AuditLogsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = Hubspot::Cms::AuditLogs::
|
22
|
+
@api_instance = Hubspot::Cms::AuditLogs::AuditLogsApi.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::Cms::AuditLogs::
|
29
|
+
describe 'test an instance of AuditLogsApi' do
|
30
|
+
it 'should create an instance of AuditLogsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Hubspot::Cms::AuditLogs::AuditLogsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -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::Cms::Blogs::Authors::
|
16
|
+
# Unit tests for Hubspot::Cms::Blogs::Authors::AuthorApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'AuthorApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = Hubspot::Cms::Blogs::Authors::
|
22
|
+
@api_instance = Hubspot::Cms::Blogs::Authors::AuthorApi.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::Cms::Blogs::Authors::
|
29
|
+
describe 'test an instance of AuthorApi' do
|
30
|
+
it 'should create an instance of AuthorApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::Authors::AuthorApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -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::Cms::Blogs::BlogPosts::
|
16
|
+
# Unit tests for Hubspot::Cms::Blogs::BlogPosts::BlogPostApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'BlogPostApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = Hubspot::Cms::Blogs::BlogPosts::
|
22
|
+
@api_instance = Hubspot::Cms::Blogs::BlogPosts::BlogPostApi.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::Cms::Blogs::BlogPosts::
|
29
|
+
describe 'test an instance of BlogPostApi' do
|
30
|
+
it 'should create an instance of BlogPostApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::BlogPosts::BlogPostApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -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::Cms::Blogs::Tags::
|
16
|
+
# Unit tests for Hubspot::Cms::Blogs::Tags::TagApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'TagApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = Hubspot::Cms::Blogs::Tags::
|
22
|
+
@api_instance = Hubspot::Cms::Blogs::Tags::TagApi.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::Cms::Blogs::Tags::
|
29
|
+
describe 'test an instance of TagApi' do
|
30
|
+
it 'should create an instance of TagApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::Tags::TagApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#HubDB endpoints
|
3
3
|
|
4
|
-
#HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `
|
4
|
+
#HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
@@ -35,8 +35,8 @@ describe 'RowsApi' do
|
|
35
35
|
# unit tests for clone_draft_table_row
|
36
36
|
# Clone a row
|
37
37
|
# Clones a single row in the `draft` version of the table.
|
38
|
-
# @param row_id The ID of the row
|
39
38
|
# @param table_id_or_name The ID or name of the table
|
39
|
+
# @param row_id The ID of the row
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [HubDbTableRowV3]
|
42
42
|
describe 'clone_draft_table_row test' do
|
@@ -47,9 +47,9 @@ describe 'RowsApi' do
|
|
47
47
|
|
48
48
|
# unit tests for create_table_row
|
49
49
|
# Add a new row to a table
|
50
|
-
# Add a new row to a HubDB table. New rows will be added to the `draft` version of the table. Use `
|
50
|
+
# Add a new row to a HubDB table. New rows will be added to the `draft` version of the table. Use `publish` endpoint to push these changes to published version.
|
51
51
|
# @param table_id_or_name The ID or name of the target table.
|
52
|
-
# @param
|
52
|
+
# @param hub_db_table_row_v3_request The row definition JSON, formatted as described above.
|
53
53
|
# @param [Hash] opts the optional parameters
|
54
54
|
# @return [HubDbTableRowV3]
|
55
55
|
describe 'create_table_row test' do
|
@@ -61,8 +61,8 @@ describe 'RowsApi' do
|
|
61
61
|
# unit tests for get_draft_table_row_by_id
|
62
62
|
# Get a row from the draft table
|
63
63
|
# Get a single row by ID from a table's `draft` version.
|
64
|
-
# @param row_id The ID of the row
|
65
64
|
# @param table_id_or_name The ID or name of the table
|
65
|
+
# @param row_id The ID of the row
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
67
|
# @return [HubDbTableRowV3]
|
68
68
|
describe 'get_draft_table_row_by_id test' do
|
@@ -73,9 +73,9 @@ describe 'RowsApi' do
|
|
73
73
|
|
74
74
|
# unit tests for get_table_row
|
75
75
|
# Get a table row
|
76
|
-
# Get a single row by ID from a table's `
|
77
|
-
# @param row_id The ID of the row
|
76
|
+
# Get a single row by ID from a table's `published` version. **Note:** This endpoint can be accessed without any authentication, if the table is set to be allowed for public access.
|
78
77
|
# @param table_id_or_name The ID or name of the table
|
78
|
+
# @param row_id The ID of the row
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @return [HubDbTableRowV3]
|
81
81
|
describe 'get_table_row test' do
|
@@ -86,13 +86,13 @@ describe 'RowsApi' do
|
|
86
86
|
|
87
87
|
# unit tests for get_table_rows
|
88
88
|
# Get rows for a table
|
89
|
-
# Returns a set of rows in the `
|
89
|
+
# Returns a set of rows in the `published` version of the specified table. Row results can be filtered and sorted. Filtering and sorting options will be sent as query parameters to the API request. For example, by adding the query parameters `column1__gt=5&sort=-column1`, API returns the rows with values for column `column1` greater than 5 and in the descending order of `column1` values. Refer to the [overview section](https://developers.hubspot.com/docs/api/cms/hubdb#filtering-and-sorting-table-rows) for detailed filtering and sorting options. **Note:** This endpoint can be accessed without any authentication, if the table is set to be allowed for public access.
|
90
90
|
# @param table_id_or_name The ID or name of the table to query.
|
91
91
|
# @param [Hash] opts the optional parameters
|
92
|
-
# @option opts [Array<String>] :
|
92
|
+
# @option opts [Array<String>] :sort Specifies the column names to sort the results by. See the above description for more details.
|
93
93
|
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
94
94
|
# @option opts [Integer] :limit The maximum number of results to return. Default is `1000`.
|
95
|
-
# @option opts [Array<String>] :
|
95
|
+
# @option opts [Array<String>] :properties Specify the column names to get results containing only the required columns instead of all column details.
|
96
96
|
# @return [CollectionResponseWithTotalHubDbTableRowV3ForwardPaging]
|
97
97
|
describe 'get_table_rows test' do
|
98
98
|
it 'should work' do
|
@@ -103,8 +103,8 @@ describe 'RowsApi' do
|
|
103
103
|
# unit tests for purge_draft_table_row
|
104
104
|
# Permanently deletes a row
|
105
105
|
# Permanently deletes a row from a table's `draft` version.
|
106
|
-
# @param row_id The ID of the row
|
107
106
|
# @param table_id_or_name The ID or name of the table
|
107
|
+
# @param row_id The ID of the row
|
108
108
|
# @param [Hash] opts the optional parameters
|
109
109
|
# @return [nil]
|
110
110
|
describe 'purge_draft_table_row test' do
|
@@ -115,13 +115,13 @@ describe 'RowsApi' do
|
|
115
115
|
|
116
116
|
# unit tests for read_draft_table_rows
|
117
117
|
# Get rows from draft table
|
118
|
-
# Returns rows in the `draft` version of the specified table. Row results can be filtered and sorted
|
118
|
+
# Returns rows in the `draft` version of the specified table. Row results can be filtered and sorted. Filtering and sorting options will be sent as query parameters to the API request. For example, by adding the query parameters `column1__gt=5&sort=-column1`, API returns the rows with values for column `column1` greater than 5 and in the descending order of `column1` values. Refer to the [overview section](https://developers.hubspot.com/docs/api/cms/hubdb#filtering-and-sorting-table-rows) for detailed filtering and sorting options.
|
119
119
|
# @param table_id_or_name The ID or name of the table to query.
|
120
120
|
# @param [Hash] opts the optional parameters
|
121
|
+
# @option opts [Array<String>] :sort Specifies the column names to sort the results by.
|
121
122
|
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
122
|
-
# @option opts [Array<String>] :properties Specify the column names to get results containing only the required columns instead of all column details. If you want to include multiple columns in the result, use this query param as many times.
|
123
123
|
# @option opts [Integer] :limit The maximum number of results to return. Default is `1000`.
|
124
|
-
# @option opts [Array<String>] :
|
124
|
+
# @option opts [Array<String>] :properties Specify the column names to get results containing only the required columns instead of all column details. If you want to include multiple columns in the result, use this query param as many times.
|
125
125
|
# @return [CollectionResponseWithTotalHubDbTableRowV3ForwardPaging]
|
126
126
|
describe 'read_draft_table_rows test' do
|
127
127
|
it 'should work' do
|
@@ -132,9 +132,9 @@ describe 'RowsApi' do
|
|
132
132
|
# unit tests for replace_draft_table_row
|
133
133
|
# Replaces an existing row
|
134
134
|
# Replace a single row in the table's `draft` version. All the column values must be specified. If a column has a value in the target table and this request doesn't define that value, it will be deleted. See the `Create a row` endpoint for instructions on how to format the JSON row definitions.
|
135
|
-
# @param row_id The ID of the row
|
136
135
|
# @param table_id_or_name The ID or name of the table
|
137
|
-
# @param
|
136
|
+
# @param row_id The ID of the row
|
137
|
+
# @param hub_db_table_row_v3_request The JSON object of the row
|
138
138
|
# @param [Hash] opts the optional parameters
|
139
139
|
# @return [HubDbTableRowV3]
|
140
140
|
describe 'replace_draft_table_row test' do
|
@@ -146,9 +146,9 @@ describe 'RowsApi' do
|
|
146
146
|
# unit tests for update_draft_table_row
|
147
147
|
# Updates an existing row
|
148
148
|
# Sparse updates a single row in the table's `draft` version. All the column values need not be specified. Only the columns or fields that needs to be modified can be specified. See the `Create a row` endpoint for instructions on how to format the JSON row definitions.
|
149
|
-
# @param row_id The ID of the row
|
150
149
|
# @param table_id_or_name The ID or name of the table
|
151
|
-
# @param
|
150
|
+
# @param row_id The ID of the row
|
151
|
+
# @param hub_db_table_row_v3_request The JSON object of the row with necessary fields that needs to be updated.
|
152
152
|
# @param [Hash] opts the optional parameters
|
153
153
|
# @return [HubDbTableRowV3]
|
154
154
|
describe 'update_draft_table_row test' do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#HubDB endpoints
|
3
3
|
|
4
|
-
#HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `
|
4
|
+
#HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
@@ -49,7 +49,7 @@ describe 'RowsBatchApi' do
|
|
49
49
|
# Create rows in batch
|
50
50
|
# Creates rows in the `draft` version of the specified table, given an array of row objects. See the overview section for more details with an example.
|
51
51
|
# @param table_id_or_name The ID or name of the table
|
52
|
-
# @param
|
52
|
+
# @param batch_input_hub_db_table_row_v3_request JSON array of row objects
|
53
53
|
# @param [Hash] opts the optional parameters
|
54
54
|
# @return [Object]
|
55
55
|
describe 'batch_create_draft_table_rows test' do
|
@@ -86,7 +86,7 @@ describe 'RowsBatchApi' do
|
|
86
86
|
|
87
87
|
# unit tests for batch_read_table_rows
|
88
88
|
# Get a set of rows
|
89
|
-
# Returns rows in the `
|
89
|
+
# Returns rows in the `published` version of the specified table, given a set of row ids. **Note:** This endpoint can be accessed without any authentication if the table is set to be allowed for public access.
|
90
90
|
# @param table_id_or_name The ID or name of the table to query.
|
91
91
|
# @param batch_input_string The JSON array of row ids
|
92
92
|
# @param [Hash] opts the optional parameters
|
@@ -101,7 +101,7 @@ describe 'RowsBatchApi' do
|
|
101
101
|
# Replace rows in batch in draft table
|
102
102
|
# Replaces multiple rows as a batch in the `draft` version of the table. See the endpoint `PUT /tables/{tableIdOrName}/rows/{rowId}/draft` for details on updating a single row.
|
103
103
|
# @param table_id_or_name The ID or name of the table
|
104
|
-
# @param
|
104
|
+
# @param batch_input_hub_db_table_row_v3_request JSON array of row objects.
|
105
105
|
# @param [Hash] opts the optional parameters
|
106
106
|
# @return [Object]
|
107
107
|
describe 'batch_replace_draft_table_rows test' do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#HubDB endpoints
|
3
3
|
|
4
|
-
#HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `
|
4
|
+
#HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
@@ -34,7 +34,7 @@ describe 'TablesApi' do
|
|
34
34
|
|
35
35
|
# unit tests for archive_table
|
36
36
|
# Archive a table
|
37
|
-
# Archive (soft delete) an existing HubDB table. This archives both the
|
37
|
+
# Archive (soft delete) an existing HubDB table. This archives both the published and draft versions.
|
38
38
|
# @param table_id_or_name The ID or name of the table to archive.
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [nil]
|
@@ -60,7 +60,7 @@ describe 'TablesApi' do
|
|
60
60
|
# unit tests for create_table
|
61
61
|
# Create a new table
|
62
62
|
# Creates a new draft HubDB table given a JSON schema. The table name and label should be unique for each account.
|
63
|
-
# @param
|
63
|
+
# @param hub_db_table_v3_request The JSON schema for the table being created.
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @return [HubDbTableV3]
|
66
66
|
describe 'create_table test' do
|
@@ -84,7 +84,7 @@ describe 'TablesApi' do
|
|
84
84
|
|
85
85
|
# unit tests for export_table
|
86
86
|
# Export a published version of a table
|
87
|
-
# Exports the `
|
87
|
+
# Exports the `published` version of a table to CSV / EXCEL format.
|
88
88
|
# @param table_id_or_name The ID or name of the table to export.
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @option opts [String] :format The file format to export. Possible values include `CSV`, `XLSX`, and `XLS`.
|
@@ -99,16 +99,16 @@ describe 'TablesApi' do
|
|
99
99
|
# Return all draft tables
|
100
100
|
# Returns the details for each draft table defined in the specified account, including column definitions.
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
|
-
# @option opts [DateTime] :updated_after Only return tables last updated after the specified time.
|
103
|
-
# @option opts [DateTime] :updated_before Only return tables last updated before the specified time.
|
104
102
|
# @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
|
103
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
104
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 1000.
|
105
105
|
# @option opts [DateTime] :created_at Only return tables created at exactly the specified time.
|
106
106
|
# @option opts [DateTime] :created_after Only return tables created after the specified time.
|
107
|
-
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
108
|
-
# @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to `false`.
|
109
107
|
# @option opts [DateTime] :created_before Only return tables created before the specified time.
|
110
108
|
# @option opts [DateTime] :updated_at Only return tables last updated at exactly the specified time.
|
111
|
-
# @option opts [
|
109
|
+
# @option opts [DateTime] :updated_after Only return tables last updated after the specified time.
|
110
|
+
# @option opts [DateTime] :updated_before Only return tables last updated before the specified time.
|
111
|
+
# @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to `false`.
|
112
112
|
# @return [CollectionResponseWithTotalHubDbTableV3ForwardPaging]
|
113
113
|
describe 'get_all_draft_tables test' do
|
114
114
|
it 'should work' do
|
@@ -117,19 +117,19 @@ describe 'TablesApi' do
|
|
117
117
|
end
|
118
118
|
|
119
119
|
# unit tests for get_all_tables
|
120
|
-
# Get all
|
121
|
-
# Returns the details for the `
|
120
|
+
# Get all published tables
|
121
|
+
# Returns the details for the `published` version of each table defined in an account, including column definitions.
|
122
122
|
# @param [Hash] opts the optional parameters
|
123
|
-
# @option opts [DateTime] :updated_after Only return tables last updated after the specified time.
|
124
|
-
# @option opts [DateTime] :updated_before Only return tables last updated before the specified time.
|
125
123
|
# @option opts [Array<String>] :sort Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.
|
124
|
+
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
125
|
+
# @option opts [Integer] :limit The maximum number of results to return. Default is 1000.
|
126
126
|
# @option opts [DateTime] :created_at Only return tables created at exactly the specified time.
|
127
127
|
# @option opts [DateTime] :created_after Only return tables created after the specified time.
|
128
|
-
# @option opts [String] :after The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.
|
129
|
-
# @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to `false`.
|
130
128
|
# @option opts [DateTime] :created_before Only return tables created before the specified time.
|
131
129
|
# @option opts [DateTime] :updated_at Only return tables last updated at exactly the specified time.
|
132
|
-
# @option opts [
|
130
|
+
# @option opts [DateTime] :updated_after Only return tables last updated after the specified time.
|
131
|
+
# @option opts [DateTime] :updated_before Only return tables last updated before the specified time.
|
132
|
+
# @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to `false`.
|
133
133
|
# @return [CollectionResponseWithTotalHubDbTableV3ForwardPaging]
|
134
134
|
describe 'get_all_tables test' do
|
135
135
|
it 'should work' do
|
@@ -152,8 +152,8 @@ describe 'TablesApi' do
|
|
152
152
|
end
|
153
153
|
|
154
154
|
# unit tests for get_table_details
|
155
|
-
# Get details for a
|
156
|
-
# Returns the details for the `
|
155
|
+
# Get details for a published table
|
156
|
+
# Returns the details for the `published` version of the specified table. This will include the definitions for the columns in the table and the number of rows in the table. **Note:** This endpoint can be accessed without any authentication if the table is set to be allowed for public access.
|
157
157
|
# @param table_id_or_name The ID or name of the table to return.
|
158
158
|
# @param [Hash] opts the optional parameters
|
159
159
|
# @option opts [Boolean] :archived Set this to `true` to return details for an archived table. Defaults to `false`.
|
@@ -167,11 +167,11 @@ describe 'TablesApi' do
|
|
167
167
|
|
168
168
|
# unit tests for import_draft_table
|
169
169
|
# Import data into draft table
|
170
|
-
# Import the contents of a CSV file into an existing HubDB table. The data will always be imported into the `draft` version of the table. Use `/
|
170
|
+
# Import the contents of a CSV file into an existing HubDB table. The data will always be imported into the `draft` version of the table. Use `/publish` endpoint to push these changes to `published` version. This endpoint takes a multi-part POST request. The first part will be a set of JSON-formatted options for the import and you can specify this with the name as `config`. The second part will be the CSV file you want to import and you can specify this with the name as `file`. Refer the [overview section](https://developers.hubspot.com/docs/api/cms/hubdb#importing-tables) to check the details and format of the JSON-formatted options for the import.
|
171
171
|
# @param table_id_or_name The ID of the destination table where data will be imported.
|
172
172
|
# @param [Hash] opts the optional parameters
|
173
|
-
# @option opts [File] :file The source CSV file to be imported.
|
174
173
|
# @option opts [String] :config Configuration for the import in JSON format as described above.
|
174
|
+
# @option opts [File] :file The source CSV file to be imported.
|
175
175
|
# @return [ImportResult]
|
176
176
|
describe 'import_draft_table test' do
|
177
177
|
it 'should work' do
|
@@ -181,7 +181,7 @@ describe 'TablesApi' do
|
|
181
181
|
|
182
182
|
# unit tests for publish_draft_table
|
183
183
|
# Publish a table from draft
|
184
|
-
#
|
184
|
+
# Publishes the table by copying the data and table schema changes from draft version to the published version, meaning any website pages using data from the table will be updated.
|
185
185
|
# @param table_id_or_name The ID or name of the table to publish.
|
186
186
|
# @param [Hash] opts the optional parameters
|
187
187
|
# @option opts [Boolean] :include_foreign_ids Set this to `true` to populate foreign ID values in the response.
|
@@ -194,7 +194,7 @@ describe 'TablesApi' do
|
|
194
194
|
|
195
195
|
# unit tests for reset_draft_table
|
196
196
|
# Reset a draft table
|
197
|
-
# Replaces the data in the `draft` version of the table with values from the `
|
197
|
+
# Replaces the data in the `draft` version of the table with values from the `published` version. Any unpublished changes in the `draft` will be lost after this call is made.
|
198
198
|
# @param table_id_or_name The ID or name of the table to reset.
|
199
199
|
# @param [Hash] opts the optional parameters
|
200
200
|
# @option opts [Boolean] :include_foreign_ids Set this to `true` to populate foreign ID values in the response.
|
@@ -205,30 +205,29 @@ describe 'TablesApi' do
|
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
208
|
-
# unit tests for
|
209
|
-
#
|
210
|
-
#
|
211
|
-
# @param table_id_or_name The ID or name of the table to
|
212
|
-
# @param hub_db_table_v3_input The JSON schema for the table being updated.
|
208
|
+
# unit tests for unpublish_table
|
209
|
+
# Unpublish a table
|
210
|
+
# Unpublishes the table, meaning any website pages using data from the table will not render any data.
|
211
|
+
# @param table_id_or_name The ID or name of the table to publish.
|
213
212
|
# @param [Hash] opts the optional parameters
|
214
|
-
# @option opts [Boolean] :include_foreign_ids Set this to `true` to populate foreign ID values in the
|
213
|
+
# @option opts [Boolean] :include_foreign_ids Set this to `true` to populate foreign ID values in the response.
|
215
214
|
# @return [HubDbTableV3]
|
216
|
-
describe '
|
215
|
+
describe 'unpublish_table test' do
|
217
216
|
it 'should work' do
|
218
217
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
219
218
|
end
|
220
219
|
end
|
221
220
|
|
222
|
-
# unit tests for
|
223
|
-
#
|
224
|
-
#
|
225
|
-
# @param table_id_or_name The ID or name of the table to
|
226
|
-
# @param
|
221
|
+
# unit tests for update_draft_table
|
222
|
+
# Update an existing table
|
223
|
+
# Update an existing HubDB table. You can use this endpoint to add or remove columns to the table as well as restore an archived table. Tables updated using the endpoint will only modify the `draft` verion of the table. Use `publish` endpoint to push all the changes to the `published` version. To restore a table, include the query parameter `archived=true` and `\"archived\": false` in the json body. **Note:** You need to include all the columns in the input when you are adding/removing/updating a column. If you do not include an already existing column in the request, it will be deleted.
|
224
|
+
# @param table_id_or_name The ID or name of the table to update.
|
225
|
+
# @param hub_db_table_v3_request The JSON schema for the table being updated.
|
227
226
|
# @param [Hash] opts the optional parameters
|
228
|
-
# @option opts [Boolean] :archived
|
227
|
+
# @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to `false`.
|
229
228
|
# @option opts [Boolean] :include_foreign_ids Set this to `true` to populate foreign ID values in the result.
|
230
229
|
# @return [HubDbTableV3]
|
231
|
-
describe '
|
230
|
+
describe 'update_draft_table test' do
|
232
231
|
it 'should work' do
|
233
232
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
234
233
|
end
|