hubspot-api-client 10.0.0 → 11.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +3 -3
- data/README.md +4 -0
- data/lib/hubspot/codegen/automation/actions/api_client.rb +12 -12
- data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
- data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +12 -12
- data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
- data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +12 -12
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api_client.rb +12 -12
- data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
- data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +12 -12
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
- data/lib/hubspot/codegen/cms/domains/api_client.rb +12 -12
- data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +13 -13
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3.rb → batch_input_hub_db_table_row_v3_request.rb} +5 -5
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
- data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
- data/lib/hubspot/codegen/cms/performance/api_client.rb +12 -12
- data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
- data/lib/hubspot/codegen/cms/site-search/api_client.rb +12 -12
- data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
- data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +12 -12
- data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +80 -0
- data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +214 -0
- data/lib/hubspot/codegen/communication_preferences/api_client.rb +404 -0
- data/lib/hubspot/codegen/communication_preferences/api_error.rb +59 -0
- data/lib/hubspot/codegen/communication_preferences/configuration.rb +254 -0
- data/lib/hubspot/codegen/communication_preferences/models/error.rb +290 -0
- data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +372 -0
- data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +231 -0
- data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +283 -0
- data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +339 -0
- data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +216 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/associations/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/companies/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/deals/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +24 -16
- data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +14 -4
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +14 -4
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +16 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +25 -17
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
- data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
- data/lib/hubspot/codegen/crm/imports/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/objects/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
- data/lib/hubspot/codegen/crm/owners/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/products/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/properties/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
- data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
- data/lib/hubspot/codegen/crm/schemas/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +12 -12
- data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
- data/lib/hubspot/codegen/events/api_client.rb +12 -12
- data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
- data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
- data/lib/hubspot/codegen/files/files/api_client.rb +12 -12
- data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
- data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
- data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
- data/lib/hubspot/codegen/marketing/transactional/api_client.rb +12 -12
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +12 -12
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
- data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
- data/lib/hubspot/codegen/webhooks/api_client.rb +12 -12
- data/lib/hubspot/version.rb +1 -1
- data/lib/hubspot-api-client.rb +16 -3
- data/pkg/hubspot-api-client-10.1.1.gem +0 -0
- data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
- data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
- data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
- data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
- data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
- data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
- data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
- data/spec/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3_spec.rb → batch_input_hub_db_table_row_v3_request_spec.rb} +7 -7
- data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
- data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
- data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
- data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
- data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
- data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
- data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
- data/spec/codegen/communication_preferences/api/definition_api_spec.rb +46 -0
- data/spec/codegen/communication_preferences/api/status_api_spec.rb +71 -0
- data/spec/codegen/communication_preferences/models/error_detail_spec.rb +65 -0
- data/spec/codegen/communication_preferences/models/error_spec.rb +77 -0
- data/spec/codegen/communication_preferences/models/public_subscription_status_spec.rb +101 -0
- data/spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb +47 -0
- data/spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb +63 -0
- data/spec/codegen/communication_preferences/models/subscription_definition_spec.rb +95 -0
- data/spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb +41 -0
- data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
- data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +2 -2
- data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +6 -0
- data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +6 -0
- data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +6 -0
- data/spec/codegen/crm/extensions/cards/api/cards_api_spec.rb +2 -2
- data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
- data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
- data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
- data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
- data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
- data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
- data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
- data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
- data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
- data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
- data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
- data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
- data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
- data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
- data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
- data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
- data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
- data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
- data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
- data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
- data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
- data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
- data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
- data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
- data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
- data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
- data/spec/features/communication_preferences/definition_api_spec.rb +7 -0
- data/spec/features/communication_preferences/status_api_spec.rb +9 -0
- data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
- data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
- data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
- data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
- data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
- data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
- data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
- data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
- data/spec/features/oauth/tokens_api_spec.rb +7 -0
- metadata +130 -82
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
- data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
- data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
- data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
- data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
- data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
- data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
- data/spec/features/crm/schemas/default_api_spec.rb +0 -7
- data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -55,21 +55,21 @@ module Hubspot
|
|
55
55
|
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
56
56
|
end
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
retries -= 1
|
69
|
-
end
|
58
|
+
if !response.success? && config.error_handler.any?
|
59
|
+
config.error_handler.each do |statuses, opts|
|
60
|
+
statuses = statuses.is_a?(Integer) ? [statuses] : statuses
|
61
|
+
|
62
|
+
retries = opts[:max_retries] || 5
|
63
|
+
while retries > 0 && statuses.include?(response.code)
|
64
|
+
sleep opts[:seconds_delay] if opts[:seconds_delay]
|
65
|
+
response = request.run
|
66
|
+
opts[:retry_block].call if opts[:retry_block]
|
67
|
+
retries -= 1
|
70
68
|
end
|
71
69
|
end
|
70
|
+
end
|
72
71
|
|
72
|
+
unless response.success?
|
73
73
|
if response.timed_out?
|
74
74
|
fail ApiError.new('Connection timed out')
|
75
75
|
elsif response.code == 0
|
@@ -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 `204 No Content` 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 `properties` 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
|
@@ -55,21 +55,21 @@ module Hubspot
|
|
55
55
|
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
56
56
|
end
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
retries -= 1
|
69
|
-
end
|
58
|
+
if !response.success? && config.error_handler.any?
|
59
|
+
config.error_handler.each do |statuses, opts|
|
60
|
+
statuses = statuses.is_a?(Integer) ? [statuses] : statuses
|
61
|
+
|
62
|
+
retries = opts[:max_retries] || 5
|
63
|
+
while retries > 0 && statuses.include?(response.code)
|
64
|
+
sleep opts[:seconds_delay] if opts[:seconds_delay]
|
65
|
+
response = request.run
|
66
|
+
opts[:retry_block].call if opts[:retry_block]
|
67
|
+
retries -= 1
|
70
68
|
end
|
71
69
|
end
|
70
|
+
end
|
72
71
|
|
72
|
+
unless response.success?
|
73
73
|
if response.timed_out?
|
74
74
|
fail ApiError.new('Connection timed out')
|
75
75
|
elsif response.code == 0
|
@@ -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 [
|
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<(
|
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] || '
|
203
|
+
return_type = opts[:return_type] || 'CollectionResponseTimelineEventTemplateNoPaging'
|
204
204
|
|
205
205
|
# auth_names
|
206
206
|
auth_names = opts[:auth_names] || ['developer_hapikey']
|
@@ -55,21 +55,21 @@ module Hubspot
|
|
55
55
|
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
56
56
|
end
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
retries -= 1
|
69
|
-
end
|
58
|
+
if !response.success? && config.error_handler.any?
|
59
|
+
config.error_handler.each do |statuses, opts|
|
60
|
+
statuses = statuses.is_a?(Integer) ? [statuses] : statuses
|
61
|
+
|
62
|
+
retries = opts[:max_retries] || 5
|
63
|
+
while retries > 0 && statuses.include?(response.code)
|
64
|
+
sleep opts[:seconds_delay] if opts[:seconds_delay]
|
65
|
+
response = request.run
|
66
|
+
opts[:retry_block].call if opts[:retry_block]
|
67
|
+
retries -= 1
|
70
68
|
end
|
71
69
|
end
|
70
|
+
end
|
72
71
|
|
72
|
+
unless response.success?
|
73
73
|
if response.timed_out?
|
74
74
|
fail ApiError.new('Connection timed out')
|
75
75
|
elsif response.code == 0
|
@@ -15,25 +15,20 @@ require 'date'
|
|
15
15
|
module Hubspot
|
16
16
|
module Crm
|
17
17
|
module Timeline
|
18
|
-
class
|
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::
|
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::
|
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
|
98
|
+
[results].hash
|
109
99
|
end
|
110
100
|
|
111
101
|
# Builds the object from hash
|
@@ -54,21 +54,21 @@ module Hubspot
|
|
54
54
|
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
55
55
|
end
|
56
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
retries -= 1
|
68
|
-
end
|
57
|
+
if !response.success? && config.error_handler.any?
|
58
|
+
config.error_handler.each do |statuses, opts|
|
59
|
+
statuses = statuses.is_a?(Integer) ? [statuses] : statuses
|
60
|
+
|
61
|
+
retries = opts[:max_retries] || 5
|
62
|
+
while retries > 0 && statuses.include?(response.code)
|
63
|
+
sleep opts[:seconds_delay] if opts[:seconds_delay]
|
64
|
+
response = request.run
|
65
|
+
opts[:retry_block].call if opts[:retry_block]
|
66
|
+
retries -= 1
|
69
67
|
end
|
70
68
|
end
|
69
|
+
end
|
71
70
|
|
71
|
+
unless response.success?
|
72
72
|
if response.timed_out?
|
73
73
|
fail ApiError.new('Connection timed out')
|
74
74
|
elsif response.code == 0
|
@@ -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 'folderId' or 'folderPath' is required. folderId is the ID of the folder the file will be uploaded to.
|
712
720
|
# @option opts [String] :folder_path Either 'folderPath' or 'folderId' is required. This field represents the destination folder path for the uploaded file. If a path doesn'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 'folderId' or 'folderPath' is required. folderId is the ID of the folder the file will be uploaded to.
|
728
735
|
# @option opts [String] :folder_path Either 'folderPath' or 'folderId' is required. This field represents the destination folder path for the uploaded file. If a path doesn'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?
|