hubspot-api-client 10.1.0 → 11.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile.lock +4 -4
  4. data/README.md +4 -0
  5. data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
  6. data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
  7. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
  8. data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
  9. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  10. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  11. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
  12. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
  13. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
  14. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
  15. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  16. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  17. data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3.rb → batch_input_hub_db_table_row_v3_request.rb} +5 -5
  18. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  19. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  24. data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
  25. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
  30. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
  31. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
  32. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  33. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
  34. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  38. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  39. data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
  40. data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
  41. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
  42. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
  43. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  44. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  45. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  46. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  47. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  48. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  49. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  50. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  51. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  52. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  53. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  54. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  55. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  56. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  57. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  58. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  59. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  60. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  61. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  62. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  63. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  64. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  65. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  66. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  67. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  68. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  69. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  70. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  71. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  72. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  73. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  74. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  75. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  76. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  77. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  78. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  79. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  80. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  81. data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -1
  82. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  83. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  84. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  85. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  86. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  87. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  88. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  89. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  90. data/lib/hubspot/version.rb +1 -1
  91. data/lib/hubspot-api-client.rb +16 -3
  92. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  93. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  94. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  95. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  96. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  97. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  98. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  99. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  100. data/spec/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3_spec.rb → batch_input_hub_db_table_row_v3_request_spec.rb} +7 -7
  101. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  102. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  103. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  104. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  105. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  106. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  107. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  108. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  109. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  110. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  111. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  112. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  113. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  114. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  115. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  116. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  117. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  118. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  119. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  120. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  121. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  122. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  123. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  124. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  125. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  126. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  127. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  128. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  129. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  130. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  131. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  132. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  133. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  134. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  135. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  136. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  137. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  138. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  139. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  140. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  141. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  142. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  143. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  144. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  145. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  146. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  147. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  148. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  149. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  150. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  151. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  152. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  153. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  154. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  155. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  156. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  157. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  158. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  159. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  160. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  161. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  162. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  163. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  164. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  165. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  166. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  167. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  168. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  169. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  170. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  171. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  172. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  173. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  174. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  175. data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
  176. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  177. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  178. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  179. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  180. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  181. data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
  182. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  183. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  184. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  185. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  186. metadata +96 -82
  187. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  188. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  189. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  190. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  191. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  192. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  193. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  194. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  195. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  196. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  197. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  198. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -22,7 +22,6 @@ module Hubspot
22
22
  @api_client = api_client
23
23
  end
24
24
  # Read a batch of quotes by internal ID, or unique property values
25
- # Read a list of quotes given a collection of IDs. Use the `properties` request body property to control which properties are returned.
26
25
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
@@ -33,7 +32,6 @@ module Hubspot
33
32
  end
34
33
 
35
34
  # Read a batch of quotes by internal ID, or unique property values
36
- # Read a list of quotes given a collection of IDs. Use the `properties` request body property to control which properties are returned.
37
35
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
38
36
  # @param [Hash] opts the optional parameters
39
37
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -21,8 +21,6 @@ module Hubspot
21
21
  def initialize(api_client = ApiClient.default)
22
22
  @api_client = api_client
23
23
  end
24
- # Filter, Sort, and Search CRM Objects
25
- # Filter, Sort, and Search CRM Objects
26
24
  # @param public_object_search_request [PublicObjectSearchRequest]
27
25
  # @param [Hash] opts the optional parameters
28
26
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -31,8 +29,6 @@ module Hubspot
31
29
  data
32
30
  end
33
31
 
34
- # Filter, Sort, and Search CRM Objects
35
- # Filter, Sort, and Search CRM Objects
36
32
  # @param public_object_search_request [PublicObjectSearchRequest]
37
33
  # @param [Hash] opts the optional parameters
38
34
  # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -200,7 +200,7 @@ module Hubspot
200
200
  return_type = opts[:return_type] || 'ObjectSchema'
201
201
 
202
202
  # auth_names
203
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
203
+ auth_names = opts[:auth_names] || ['hapikey']
204
204
 
205
205
  new_options = opts.merge(
206
206
  :header_params => header_params,
@@ -270,7 +270,7 @@ module Hubspot
270
270
  return_type = opts[:return_type] || 'AssociationDefinition'
271
271
 
272
272
  # auth_names
273
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
273
+ auth_names = opts[:auth_names] || ['hapikey']
274
274
 
275
275
  new_options = opts.merge(
276
276
  :header_params => header_params,
@@ -461,7 +461,7 @@ module Hubspot
461
461
  return_type = opts[:return_type] || 'ObjectTypeDefinition'
462
462
 
463
463
  # auth_names
464
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
464
+ auth_names = opts[:auth_names] || ['hapikey']
465
465
 
466
466
  new_options = opts.merge(
467
467
  :header_params => header_params,
@@ -15,7 +15,7 @@ require 'cgi'
15
15
  module Hubspot
16
16
  module Crm
17
17
  module Schemas
18
- class DefaultApi
18
+ class PublicObjectSchemasApi
19
19
  attr_accessor :api_client
20
20
 
21
21
  def initialize(api_client = ApiClient.default)
@@ -34,11 +34,11 @@ module Hubspot
34
34
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
35
35
  def purge_with_http_info(object_type, opts = {})
36
36
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: DefaultApi.purge ...'
37
+ @api_client.config.logger.debug 'Calling API: PublicObjectSchemasApi.purge ...'
38
38
  end
39
39
  # verify the required parameter 'object_type' is set
40
40
  if @api_client.config.client_side_validation && object_type.nil?
41
- fail ArgumentError, "Missing the required parameter 'object_type' when calling DefaultApi.purge"
41
+ fail ArgumentError, "Missing the required parameter 'object_type' when calling PublicObjectSchemasApi.purge"
42
42
  end
43
43
  # resource path
44
44
  local_var_path = '/crm/v3/schemas/{objectType}/purge'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s))
@@ -74,7 +74,7 @@ module Hubspot
74
74
 
75
75
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
76
76
  if @api_client.config.debugging
77
- @api_client.config.logger.debug "API called: DefaultApi#purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
+ @api_client.config.logger.debug "API called: PublicObjectSchemasApi#purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
78
  end
79
79
  return data, status_code, headers
80
80
  end
@@ -22,7 +22,6 @@ module Hubspot
22
22
  @api_client = api_client
23
23
  end
24
24
  # Archive a batch of tickets by ID
25
- # Archive a list of tickets given a collection of IDs. This method will return a `204 No Content` response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
26
25
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @return [nil]
@@ -32,7 +31,6 @@ module Hubspot
32
31
  end
33
32
 
34
33
  # Archive a batch of tickets by ID
35
- # Archive a list of tickets given a collection of IDs. This method will return a &#x60;204 No Content&#x60; response on success regardless of the initial state of the object (e.g. active, already archived, non-existent).
36
34
  # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
37
35
  # @param [Hash] opts the optional parameters
38
36
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -86,7 +84,6 @@ module Hubspot
86
84
  end
87
85
 
88
86
  # Create a batch of tickets
89
- # Create a batch of tickets. This follows the same rules as creating an individual object.
90
87
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
91
88
  # @param [Hash] opts the optional parameters
92
89
  # @return [BatchResponseSimplePublicObject]
@@ -96,7 +93,6 @@ module Hubspot
96
93
  end
97
94
 
98
95
  # Create a batch of tickets
99
- # Create a batch of tickets. This follows the same rules as creating an individual object.
100
96
  # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
101
97
  # @param [Hash] opts the optional parameters
102
98
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -150,7 +146,6 @@ module Hubspot
150
146
  end
151
147
 
152
148
  # Read a batch of tickets by internal ID, or unique property values
153
- # Read a list of tickets given a collection of IDs. Use the `properties` request body property to control which properties are returned.
154
149
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
155
150
  # @param [Hash] opts the optional parameters
156
151
  # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
@@ -161,7 +156,6 @@ module Hubspot
161
156
  end
162
157
 
163
158
  # Read a batch of tickets by internal ID, or unique property values
164
- # Read a list of tickets given a collection of IDs. Use the &#x60;properties&#x60; request body property to control which properties are returned.
165
159
  # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
166
160
  # @param [Hash] opts the optional parameters
167
161
  # @option opts [Boolean] :archived Whether to return only results that have been archived.
@@ -217,7 +211,6 @@ module Hubspot
217
211
  end
218
212
 
219
213
  # Update a batch of tickets
220
- # Perform a partial upate on a batch of tickets. This follows the same rules as performing partial updates on an individual object.
221
214
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
222
215
  # @param [Hash] opts the optional parameters
223
216
  # @return [BatchResponseSimplePublicObject]
@@ -227,7 +220,6 @@ module Hubspot
227
220
  end
228
221
 
229
222
  # Update a batch of tickets
230
- # Perform a partial upate on a batch of tickets. This follows the same rules as performing partial updates on an individual object.
231
223
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
232
224
  # @param [Hash] opts the optional parameters
233
225
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
@@ -21,8 +21,6 @@ module Hubspot
21
21
  def initialize(api_client = ApiClient.default)
22
22
  @api_client = api_client
23
23
  end
24
- # Filter, Sort, and Search CRM Objects
25
- # Filter, Sort, and Search CRM Objects
26
24
  # @param public_object_search_request [PublicObjectSearchRequest]
27
25
  # @param [Hash] opts the optional parameters
28
26
  # @return [CollectionResponseWithTotalSimplePublicObjectForwardPaging]
@@ -31,8 +29,6 @@ module Hubspot
31
29
  data
32
30
  end
33
31
 
34
- # Filter, Sort, and Search CRM Objects
35
- # Filter, Sort, and Search CRM Objects
36
32
  # @param public_object_search_request [PublicObjectSearchRequest]
37
33
  # @param [Hash] opts the optional parameters
38
34
  # @return [Array<(CollectionResponseWithTotalSimplePublicObjectForwardPaging, Integer, Hash)>] CollectionResponseWithTotalSimplePublicObjectForwardPaging data, response status code and response headers
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -163,7 +163,7 @@ module Hubspot
163
163
  # Use this to list all event templates owned by your app.
164
164
  # @param app_id [Integer] The ID of the target app.
165
165
  # @param [Hash] opts the optional parameters
166
- # @return [CollectionResponseTimelineEventTemplate]
166
+ # @return [CollectionResponseTimelineEventTemplateNoPaging]
167
167
  def get_all(app_id, opts = {})
168
168
  data, _status_code, _headers = get_all_with_http_info(app_id, opts)
169
169
  data
@@ -173,7 +173,7 @@ module Hubspot
173
173
  # Use this to list all event templates owned by your app.
174
174
  # @param app_id [Integer] The ID of the target app.
175
175
  # @param [Hash] opts the optional parameters
176
- # @return [Array<(CollectionResponseTimelineEventTemplate, Integer, Hash)>] CollectionResponseTimelineEventTemplate data, response status code and response headers
176
+ # @return [Array<(CollectionResponseTimelineEventTemplateNoPaging, Integer, Hash)>] CollectionResponseTimelineEventTemplateNoPaging data, response status code and response headers
177
177
  def get_all_with_http_info(app_id, opts = {})
178
178
  if @api_client.config.debugging
179
179
  @api_client.config.logger.debug 'Calling API: TemplatesApi.get_all ...'
@@ -200,7 +200,7 @@ module Hubspot
200
200
  post_body = opts[:body]
201
201
 
202
202
  # return_type
203
- return_type = opts[:return_type] || 'CollectionResponseTimelineEventTemplate'
203
+ return_type = opts[:return_type] || 'CollectionResponseTimelineEventTemplateNoPaging'
204
204
 
205
205
  # auth_names
206
206
  auth_names = opts[:auth_names] || ['developer_hapikey']
@@ -15,25 +15,20 @@ require 'date'
15
15
  module Hubspot
16
16
  module Crm
17
17
  module Timeline
18
- class CollectionResponseTimelineEventTemplate
19
- # A collection of templates.
18
+ class CollectionResponseTimelineEventTemplateNoPaging
20
19
  attr_accessor :results
21
20
 
22
- attr_accessor :paging
23
-
24
21
  # Attribute mapping from ruby-style variable name to JSON key.
25
22
  def self.attribute_map
26
23
  {
27
- :'results' => :'results',
28
- :'paging' => :'paging'
24
+ :'results' => :'results'
29
25
  }
30
26
  end
31
27
 
32
28
  # Attribute type mapping.
33
29
  def self.openapi_types
34
30
  {
35
- :'results' => :'Array<TimelineEventTemplate>',
36
- :'paging' => :'Paging'
31
+ :'results' => :'Array<TimelineEventTemplate>'
37
32
  }
38
33
  end
39
34
 
@@ -47,13 +42,13 @@ module Hubspot
47
42
  # @param [Hash] attributes Model attributes in the form of hash
48
43
  def initialize(attributes = {})
49
44
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplate` initialize method"
45
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplateNoPaging` initialize method"
51
46
  end
52
47
 
53
48
  # check to see if the attribute exists and convert string to symbol for hash key
54
49
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
50
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplateNoPaging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
52
  end
58
53
  h[k.to_sym] = v
59
54
  }
@@ -63,10 +58,6 @@ module Hubspot
63
58
  self.results = value
64
59
  end
65
60
  end
66
-
67
- if attributes.key?(:'paging')
68
- self.paging = attributes[:'paging']
69
- end
70
61
  end
71
62
 
72
63
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -92,8 +83,7 @@ module Hubspot
92
83
  def ==(o)
93
84
  return true if self.equal?(o)
94
85
  self.class == o.class &&
95
- results == o.results &&
96
- paging == o.paging
86
+ results == o.results
97
87
  end
98
88
 
99
89
  # @see the `==` method
@@ -105,7 +95,7 @@ module Hubspot
105
95
  # Calculates hash code according to all attributes.
106
96
  # @return [Integer] Hash code
107
97
  def hash
108
- [results, paging].hash
98
+ [results].hash
109
99
  end
110
100
 
111
101
  # Builds the object from hash
@@ -227,7 +227,11 @@ module Hubspot
227
227
  # @option opts [Array<String>] :sort Sort files by a given field.
228
228
  # @option opts [String] :id Search files by given ID.
229
229
  # @option opts [DateTime] :created_at Search files by time of creation.
230
+ # @option opts [DateTime] :created_at_lte
231
+ # @option opts [DateTime] :created_at_gte
230
232
  # @option opts [DateTime] :updated_at Search files by time of latest updated.
233
+ # @option opts [DateTime] :updated_at_lte
234
+ # @option opts [DateTime] :updated_at_gte
231
235
  # @option opts [String] :name Search for files containing the given name.
232
236
  # @option opts [String] :path Search files by path.
233
237
  # @option opts [Integer] :parent_folder_id Search files within given folder ID.
@@ -256,7 +260,11 @@ module Hubspot
256
260
  # @option opts [Array<String>] :sort Sort files by a given field.
257
261
  # @option opts [String] :id Search files by given ID.
258
262
  # @option opts [DateTime] :created_at Search files by time of creation.
263
+ # @option opts [DateTime] :created_at_lte
264
+ # @option opts [DateTime] :created_at_gte
259
265
  # @option opts [DateTime] :updated_at Search files by time of latest updated.
266
+ # @option opts [DateTime] :updated_at_lte
267
+ # @option opts [DateTime] :updated_at_gte
260
268
  # @option opts [String] :name Search for files containing the given name.
261
269
  # @option opts [String] :path Search files by path.
262
270
  # @option opts [Integer] :parent_folder_id Search files within given folder ID.
@@ -286,7 +294,11 @@ module Hubspot
286
294
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
287
295
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
288
296
  query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
297
+ query_params[:'createdAtLte'] = opts[:'created_at_lte'] if !opts[:'created_at_lte'].nil?
298
+ query_params[:'createdAtGte'] = opts[:'created_at_gte'] if !opts[:'created_at_gte'].nil?
289
299
  query_params[:'updatedAt'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
300
+ query_params[:'updatedAtLte'] = opts[:'updated_at_lte'] if !opts[:'updated_at_lte'].nil?
301
+ query_params[:'updatedAtGte'] = opts[:'updated_at_gte'] if !opts[:'updated_at_gte'].nil?
290
302
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
291
303
  query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
292
304
  query_params[:'parentFolderId'] = opts[:'parent_folder_id'] if !opts[:'parent_folder_id'].nil?
@@ -551,7 +563,6 @@ module Hubspot
551
563
  # Replace existing file data with new file data. Can be used to change image content without having to upload a new file and update all references.
552
564
  # @param file_id [String] Id of the desired file.
553
565
  # @param [Hash] opts the optional parameters
554
- # @option opts [String] :user_agent
555
566
  # @option opts [File] :file File data that will replace existing file in the file manager.
556
567
  # @option opts [String] :charset_hunch Character set of given file data.
557
568
  # @option opts [String] :options JSON String representing FileReplaceOptions
@@ -565,7 +576,6 @@ module Hubspot
565
576
  # Replace existing file data with new file data. Can be used to change image content without having to upload a new file and update all references.
566
577
  # @param file_id [String] Id of the desired file.
567
578
  # @param [Hash] opts the optional parameters
568
- # @option opts [String] :user_agent
569
579
  # @option opts [File] :file File data that will replace existing file in the file manager.
570
580
  # @option opts [String] :charset_hunch Character set of given file data.
571
581
  # @option opts [String] :options JSON String representing FileReplaceOptions
@@ -595,7 +605,6 @@ module Hubspot
595
605
  header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
596
606
  # HTTP header 'Content-Type'
597
607
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
598
- header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
599
608
 
600
609
  # form parameters
601
610
  form_params = opts[:form_params] || {}
@@ -706,7 +715,6 @@ module Hubspot
706
715
  # Upload file
707
716
  # Upload a single file with content specified in request body.
708
717
  # @param [Hash] opts the optional parameters
709
- # @option opts [String] :user_agent
710
718
  # @option opts [File] :file File to be uploaded.
711
719
  # @option opts [String] :folder_id Either &#39;folderId&#39; or &#39;folderPath&#39; is required. folderId is the ID of the folder the file will be uploaded to.
712
720
  # @option opts [String] :folder_path Either &#39;folderPath&#39; or &#39;folderId&#39; is required. This field represents the destination folder path for the uploaded file. If a path doesn&#39;t exist, the system will try to create one.
@@ -722,7 +730,6 @@ module Hubspot
722
730
  # Upload file
723
731
  # Upload a single file with content specified in request body.
724
732
  # @param [Hash] opts the optional parameters
725
- # @option opts [String] :user_agent
726
733
  # @option opts [File] :file File to be uploaded.
727
734
  # @option opts [String] :folder_id Either &#39;folderId&#39; or &#39;folderPath&#39; is required. folderId is the ID of the folder the file will be uploaded to.
728
735
  # @option opts [String] :folder_path Either &#39;folderPath&#39; or &#39;folderId&#39; is required. This field represents the destination folder path for the uploaded file. If a path doesn&#39;t exist, the system will try to create one.
@@ -746,7 +753,6 @@ module Hubspot
746
753
  header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
747
754
  # HTTP header 'Content-Type'
748
755
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
749
- header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
750
756
 
751
757
  # form parameters
752
758
  form_params = opts[:form_params] || {}
@@ -291,7 +291,11 @@ module Hubspot
291
291
  # @option opts [Array<String>] :sort Sort results by given property. For example -name sorts by name field descending, name sorts by name field ascending.
292
292
  # @option opts [String] :id Search folder by given ID.
293
293
  # @option opts [DateTime] :created_at Search for folders with the given creation timestamp.
294
+ # @option opts [DateTime] :created_at_lte
295
+ # @option opts [DateTime] :created_at_gte
294
296
  # @option opts [DateTime] :updated_at Search for folder at given update timestamp.
297
+ # @option opts [DateTime] :updated_at_lte
298
+ # @option opts [DateTime] :updated_at_gte
295
299
  # @option opts [String] :name Search for folders containing the specified name.
296
300
  # @option opts [String] :path Search for folders by path.
297
301
  # @option opts [Integer] :parent_folder_id Search for folders with the given parent folder ID.
@@ -311,7 +315,11 @@ module Hubspot
311
315
  # @option opts [Array<String>] :sort Sort results by given property. For example -name sorts by name field descending, name sorts by name field ascending.
312
316
  # @option opts [String] :id Search folder by given ID.
313
317
  # @option opts [DateTime] :created_at Search for folders with the given creation timestamp.
318
+ # @option opts [DateTime] :created_at_lte
319
+ # @option opts [DateTime] :created_at_gte
314
320
  # @option opts [DateTime] :updated_at Search for folder at given update timestamp.
321
+ # @option opts [DateTime] :updated_at_lte
322
+ # @option opts [DateTime] :updated_at_gte
315
323
  # @option opts [String] :name Search for folders containing the specified name.
316
324
  # @option opts [String] :path Search for folders by path.
317
325
  # @option opts [Integer] :parent_folder_id Search for folders with the given parent folder ID.
@@ -332,7 +340,11 @@ module Hubspot
332
340
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
333
341
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
334
342
  query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
343
+ query_params[:'createdAtLte'] = opts[:'created_at_lte'] if !opts[:'created_at_lte'].nil?
344
+ query_params[:'createdAtGte'] = opts[:'created_at_gte'] if !opts[:'created_at_gte'].nil?
335
345
  query_params[:'updatedAt'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
346
+ query_params[:'updatedAtLte'] = opts[:'updated_at_lte'] if !opts[:'updated_at_lte'].nil?
347
+ query_params[:'updatedAtGte'] = opts[:'updated_at_gte'] if !opts[:'updated_at_gte'].nil?
336
348
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
337
349
  query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
338
350
  query_params[:'parentFolderId'] = opts[:'parent_folder_id'] if !opts[:'parent_folder_id'].nil?
@@ -31,7 +31,7 @@ module Hubspot
31
31
  # Attribute type mapping.
32
32
  def self.openapi_types
33
33
  {
34
- :'results' => :'Array<File>',
34
+ :'results' => :'Array<HubspotFile>',
35
35
  :'paging' => :'Paging'
36
36
  }
37
37
  end
@@ -16,10 +16,10 @@ module Hubspot
16
16
  module Files
17
17
  module Files
18
18
  class ErrorCategory
19
- attr_accessor :http_status
20
-
21
19
  attr_accessor :name
22
20
 
21
+ attr_accessor :http_status
22
+
23
23
  class EnumAttributeValidator
24
24
  attr_reader :datatype
25
25
  attr_reader :allowable_values
@@ -45,16 +45,16 @@ module Hubspot
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'http_status' => :'httpStatus',
49
- :'name' => :'name'
48
+ :'name' => :'name',
49
+ :'http_status' => :'httpStatus'
50
50
  }
51
51
  end
52
52
 
53
53
  # Attribute type mapping.
54
54
  def self.openapi_types
55
55
  {
56
- :'http_status' => :'String',
57
- :'name' => :'String'
56
+ :'name' => :'String',
57
+ :'http_status' => :'String'
58
58
  }
59
59
  end
60
60
 
@@ -79,37 +79,37 @@ module Hubspot
79
79
  h[k.to_sym] = v
80
80
  }
81
81
 
82
- if attributes.key?(:'http_status')
83
- self.http_status = attributes[:'http_status']
84
- end
85
-
86
82
  if attributes.key?(:'name')
87
83
  self.name = attributes[:'name']
88
84
  end
85
+
86
+ if attributes.key?(:'http_status')
87
+ self.http_status = attributes[:'http_status']
88
+ end
89
89
  end
90
90
 
91
91
  # Show invalid properties with the reasons. Usually used together with valid?
92
92
  # @return Array for valid properties with the reasons
93
93
  def list_invalid_properties
94
94
  invalid_properties = Array.new
95
- if @http_status.nil?
96
- invalid_properties.push('invalid value for "http_status", http_status cannot be nil.')
97
- end
98
-
99
95
  if @name.nil?
100
96
  invalid_properties.push('invalid value for "name", name cannot be nil.')
101
97
  end
102
98
 
99
+ if @http_status.nil?
100
+ invalid_properties.push('invalid value for "http_status", http_status cannot be nil.')
101
+ end
102
+
103
103
  invalid_properties
104
104
  end
105
105
 
106
106
  # Check to see if the all the properties in the model are valid
107
107
  # @return true if the model is valid
108
108
  def valid?
109
+ return false if @name.nil?
109
110
  return false if @http_status.nil?
110
111
  http_status_validator = EnumAttributeValidator.new('String', ["CONTINUE", "SWITCHING_PROTOCOLS", "PROCESSING", "OK", "CREATED", "ACCEPTED", "NON_AUTHORITATIVE_INFORMATION", "NO_CONTENT", "RESET_CONTENT", "PARTIAL_CONTENT", "MULTI_STATUS", "ALREADY_REPORTED", "IM_USED", "MULTIPLE_CHOICES", "MOVED_PERMANENTLY", "FOUND", "SEE_OTHER", "NOT_MODIFIED", "USE_PROXY", "TEMPORARY_REDIRECT", "PERMANENT_REDIRECT", "BAD_REQUEST", "UNAUTHORIZED", "PAYMENT_REQUIRED", "FORBIDDEN", "NOT_FOUND", "METHOD_NOT_ALLOWED", "NOT_ACCEPTABLE", "PROXY_AUTHENTICATION_REQUIRED", "REQUEST_TIMEOUT", "CONFLICT", "GONE", "LENGTH_REQUIRED", "PRECONDITION_FAILED", "REQUEST_ENTITY_TOO_LARGE", "REQUEST_URI_TOO_LONG", "UNSUPPORTED_MEDIA_TYPE", "REQUESTED_RANGE_NOT_SATISFIABLE", "EXPECTATION_FAILED", "IM_A_TEAPOT", "MISDIRECTED_REQUEST", "UNPROCESSABLE_ENTITY", "LOCKED", "FAILED_DEPENDENCY", "UPGRADE_REQUIRED", "PRECONDITION_REQUIRED", "TOO_MANY_REQUESTS", "REQUEST_HEADERS_FIELDS_TOO_LARGE", "INTERNAL_STALE_SERVICE_DISCOVERY", "UNAVAILABLE_FOR_LEGAL_REASONS", "INTERNAL_SERVER_ERROR", "NOT_IMPLEMENTED", "BAD_GATEWAY", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT", "HTTP_VERSION_NOT_SUPPORTED", "VARIANT_ALSO_NEGOTIATES", "INSUFFICIENT_STORAGE", "LOOP_DETECTED", "NOT_EXTENDED", "NETWORK_AUTHENTICATION_REQUIRED"])
111
112
  return false unless http_status_validator.valid?(@http_status)
112
- return false if @name.nil?
113
113
  true
114
114
  end
115
115
 
@@ -128,8 +128,8 @@ module Hubspot
128
128
  def ==(o)
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
- http_status == o.http_status &&
132
- name == o.name
131
+ name == o.name &&
132
+ http_status == o.http_status
133
133
  end
134
134
 
135
135
  # @see the `==` method
@@ -141,7 +141,7 @@ module Hubspot
141
141
  # Calculates hash code according to all attributes.
142
142
  # @return [Integer] Hash code
143
143
  def hash
144
- [http_status, name].hash
144
+ [name, http_status].hash
145
145
  end
146
146
 
147
147
  # Builds the object from hash