hubspot-api-client 10.1.1 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile.lock +2 -2
  4. data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
  5. data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
  6. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
  7. data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
  8. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  9. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  10. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
  11. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
  12. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
  13. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
  14. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  15. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  16. data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3.rb → batch_input_hub_db_table_row_v3_request.rb} +5 -5
  17. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  18. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  19. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
  24. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
  29. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
  30. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
  31. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  32. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
  33. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  34. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  38. data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
  39. data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
  40. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
  41. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
  42. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  43. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  44. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  45. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  46. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  47. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  48. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  49. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  50. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  51. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  52. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  53. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  54. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  55. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  56. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  57. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  58. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  59. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  60. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  61. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  62. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  63. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  64. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  65. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  66. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  67. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  68. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  69. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  70. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  71. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  72. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  73. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  74. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  75. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  76. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  77. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  78. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  79. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  80. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  81. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  82. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  83. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  84. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  85. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  86. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  87. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  88. data/lib/hubspot/version.rb +1 -1
  89. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  90. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  91. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  92. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  93. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  94. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  95. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  96. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  97. data/spec/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3_spec.rb → batch_input_hub_db_table_row_v3_request_spec.rb} +7 -7
  98. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  99. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  100. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  101. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  102. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  103. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  104. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  105. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  106. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  107. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  108. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  109. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  110. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  111. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  112. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  113. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  114. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  115. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  116. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  117. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  118. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  119. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  120. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  121. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  122. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  123. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  124. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  125. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  126. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  127. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  128. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  129. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  130. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  131. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  132. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  133. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  134. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  135. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  136. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  137. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  138. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  139. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  140. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  141. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  142. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  143. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  144. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  145. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  146. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  147. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  148. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  149. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  150. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  151. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  152. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  153. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  154. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  155. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  156. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  157. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  158. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  159. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  160. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  161. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  162. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  163. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  164. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  165. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  166. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  167. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  168. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  169. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  170. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  171. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  172. data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
  173. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  174. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  175. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  176. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  177. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  178. data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
  179. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  180. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  181. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  182. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  183. metadata +96 -82
  184. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  185. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  186. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  187. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  188. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  189. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  190. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  191. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  192. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  193. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  194. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  195. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -21,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
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = '10.1.1'
2
+ VERSION = '11.1.0'
3
3
  end
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::DefaultApi
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 'DefaultApi' do
19
+ describe 'AuditLogsApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Cms::AuditLogs::DefaultApi.new
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 DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Cms::AuditLogs::DefaultApi)
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::DefaultApi
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 'DefaultApi' do
19
+ describe 'AuthorApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Cms::Blogs::Authors::DefaultApi.new
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 DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::Authors::DefaultApi)
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::DefaultApi
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 'DefaultApi' do
19
+ describe 'BlogPostApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Cms::Blogs::BlogPosts::DefaultApi.new
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 DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::BlogPosts::DefaultApi)
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::DefaultApi
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 'DefaultApi' do
19
+ describe 'TagApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Cms::Blogs::Tags::DefaultApi.new
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 DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Cms::Blogs::Tags::DefaultApi)
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 `live` versions and you can publish and unpublish the live version. 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, pushed to live version, 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 live 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`.
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 `push-live` endpoint to push these changes to live version and publish them.
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 hub_db_table_row_v3_input The row definition JSON, formatted as described above.
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 `live` version. **Note:** This endpoint can be accessed without any authentication, if the table is set to be allowed for public access.
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 `live` version of the specified table. Row results can be filtered and sorted. Refer to the overview section 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.
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>] :properties Specify the column names to get results containing only the required columns instead of all column details.
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 &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
94
94
  # @option opts [Integer] :limit The maximum number of results to return. Default is &#x60;1000&#x60;.
95
- # @option opts [Array<String>] :sort Specifies the column names to sort the results by. See the above description for more details.
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&#39;s &#x60;draft&#x60; 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 &#x60;draft&#x60; version of the specified table. Row results can be filtered and sorted using the options mentioned in the overview section.
118
+ # Returns rows in the &#x60;draft&#x60; 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 &#x60;column1__gt&#x3D;5&amp;sort&#x3D;-column1&#x60;, API returns the rows with values for column &#x60;column1&#x60; greater than 5 and in the descending order of &#x60;column1&#x60; 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 &#x60;paging.next.after&#x60; 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 &#x60;1000&#x60;.
124
- # @option opts [Array<String>] :sort Specifies the column names to sort the results by.
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&#39;s &#x60;draft&#x60; version. All the column values must be specified. If a column has a value in the target table and this request doesn&#39;t define that value, it will be deleted. See the &#x60;Create a row&#x60; 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 hub_db_table_row_v3_input The JSON object of the row
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&#39;s &#x60;draft&#x60; version. All the column values need not be specified. Only the columns or fields that needs to be modified can be specified. See the &#x60;Create a row&#x60; 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 hub_db_table_row_v3_input The JSON object of the row with necessary fields that needs to be updated.
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 `live` versions and you can publish and unpublish the live version. 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, pushed to live version, 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 live 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`.
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 &#x60;draft&#x60; 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 batch_input_hub_db_table_row_v3 JSON array of row objects
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 &#x60;live&#x60; 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.
89
+ # Returns rows in the &#x60;published&#x60; 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 &#x60;draft&#x60; version of the table. See the endpoint &#x60;PUT /tables/{tableIdOrName}/rows/{rowId}/draft&#x60; for details on updating a single row.
103
103
  # @param table_id_or_name The ID or name of the table
104
- # @param batch_input_hub_db_table_row_v3 JSON array of row objects.
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 `live` versions and you can publish and unpublish the live version. 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, pushed to live version, 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 live 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`.
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 live and draft versions.
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 hub_db_table_v3_input The JSON schema for the table being created.
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 &#x60;live&#x60; version of a table to CSV / EXCEL format.
87
+ # Exports the &#x60;published&#x60; 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 &#x60;CSV&#x60;, &#x60;XLSX&#x60;, and &#x60;XLS&#x60;.
@@ -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 &#x60;name&#x60;, &#x60;createdAt&#x60;, &#x60;updatedAt&#x60;, &#x60;createdBy&#x60;, &#x60;updatedBy&#x60;. &#x60;createdAt&#x60; 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 &#x60;paging.next.after&#x60; 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 &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
108
- # @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to &#x60;false&#x60;.
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 [Integer] :limit The maximum number of results to return. Default is 1000.
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 &#x60;false&#x60;.
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 live tables
121
- # Returns the details for the &#x60;live&#x60; version of each table defined in an account, including column definitions.
120
+ # Get all published tables
121
+ # Returns the details for the &#x60;published&#x60; 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 &#x60;name&#x60;, &#x60;createdAt&#x60;, &#x60;updatedAt&#x60;, &#x60;createdBy&#x60;, &#x60;updatedBy&#x60;. &#x60;createdAt&#x60; 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 &#x60;paging.next.after&#x60; 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 &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
129
- # @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to &#x60;false&#x60;.
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 [Integer] :limit The maximum number of results to return. Default is 1000.
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 &#x60;false&#x60;.
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 live table
156
- # Returns the details for the &#x60;live&#x60; 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.
155
+ # Get details for a published table
156
+ # Returns the details for the &#x60;published&#x60; 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 &#x60;true&#x60; to return details for an archived table. Defaults to &#x60;false&#x60;.
@@ -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 &#x60;draft&#x60; version of the table. Use &#x60;/push-live&#x60; endpoint to push these changes to &#x60;live&#x60; 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 &#x60;config&#x60;. The second part will be the CSV file you want to import and you can specify this with the name as &#x60;file&#x60;. Refer the overview section to check the details and format of the JSON-formatted options for the import.
170
+ # Import the contents of a CSV file into an existing HubDB table. The data will always be imported into the &#x60;draft&#x60; version of the table. Use &#x60;/publish&#x60; endpoint to push these changes to &#x60;published&#x60; 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 &#x60;config&#x60;. The second part will be the CSV file you want to import and you can specify this with the name as &#x60;file&#x60;. 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
- # Copies the data from draft to live version of the table and also publishes the live version. This will immediately push the data to the &#x60;live&#x60; version of the table and publishes the live version, meaning any website pages using data from the table will be updated.
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 &#x60;true&#x60; 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 &#x60;draft&#x60; version of the table with values from the &#x60;live&#x60; version. Any unpublished changes in the &#x60;draft&#x60; will be lost after this call is made.
197
+ # Replaces the data in the &#x60;draft&#x60; version of the table with values from the &#x60;published&#x60; version. Any unpublished changes in the &#x60;draft&#x60; 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 &#x60;true&#x60; 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 update_draft_table
209
- # Update an existing table
210
- # Update an existing HubDB table. You can use this endpoint to add or remove columns to the table. Tables updated using the endpoint will only modify the &#x60;draft&#x60; verion of the table. Use &#x60;push-live&#x60; endpoint to push all the changes to the &#x60;live&#x60; version. **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.
211
- # @param table_id_or_name The ID or name of the table to update.
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 &#x60;true&#x60; to populate foreign ID values in the result.
213
+ # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the response.
215
214
  # @return [HubDbTableV3]
216
- describe 'update_draft_table test' do
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 update_table
223
- # Publish or unpublish a live version of a table or restore an archived table
224
- # Use this endpoint to perform one of the following &lt;ul&gt;&lt;li&gt; Publish a live version of a table (without copying table data from draft) &lt;/li&gt;&lt;li&gt;Un-publish a live version of a table (Leaving the data in the live version)&lt;/li&gt;&lt;li&gt;Restore an archived table&lt;/li&gt;&lt;/ul&gt; To publish a table, send &#x60;published&#x60; property in the JSON object with the value &#x60;true&#x60;. To unpublish a table, send &#x60;published&#x60; property in the JSON object with the value &#x60;false&#x60;. To restore an archived table, send &#x60;archived&#x60; property in the JSON object with the value &#x60;false&#x60; along with the query parameter &#x60;archived&#x3D;true&#x60;. When restoring an archived table, if an active table already exists with the same &#x60;name&#x60; or &#x60;label&#x60;, you will need to change the name of the archived table when restoring it using the &#x60;name&#x60; and &#x60;label&#x60; parameters with a new name and new label. When you restore a table, the table will be restored only in the &#x60;draft&#x60; version. Examples: Publish live version of a table: &#x60;&#x60;&#x60; { \&quot;published\&quot;: true } &#x60;&#x60;&#x60; Unpublish live version of a table: &#x60;&#x60;&#x60; { \&quot;published\&quot;: false } &#x60;&#x60;&#x60; Restore a table: (send &#x60;archived&#x3D;true&#x60; in query parameters) &#x60;&#x60;&#x60; { \&quot;archived\&quot;: false } &#x60;&#x60;&#x60; Restore a table with a new name: (send &#x60;archived&#x3D;true&#x60; in query parameters) &#x60;&#x60;&#x60; { \&quot;label\&quot;: \&quot;New Table Name\&quot;, \&quot;name\&quot;: \&quot;new_table_name\&quot;, \&quot;archived\&quot;: false } &#x60;&#x60;&#x60;
225
- # @param table_id_or_name The ID or name of the table to return.
226
- # @param hub_db_table_v3_live_input The JSON object as described.
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 &#x60;draft&#x60; verion of the table. Use &#x60;publish&#x60; endpoint to push all the changes to the &#x60;published&#x60; version. To restore a table, include the query parameter &#x60;archived&#x3D;true&#x60; and &#x60;\&quot;archived\&quot;: false&#x60; 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 Whether to return only results that have been archived.
227
+ # @option opts [Boolean] :archived Specifies whether to return archived tables. Defaults to &#x60;false&#x60;.
229
228
  # @option opts [Boolean] :include_foreign_ids Set this to &#x60;true&#x60; to populate foreign ID values in the result.
230
229
  # @return [HubDbTableV3]
231
- describe 'update_table test' do
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