hubspot-api-client 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/hubspot-api-client.rb +3 -2
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +94 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +0 -5
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +0 -5
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +226 -0
- data/lib/hubspot/codegen/crm/associations/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +19 -5
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/companies/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/companies/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/contacts/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/deals/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/deals/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +36 -36
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +8 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +6 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +7 -4
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +8 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +7 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +24 -4
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/line_items/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +22 -2
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +6 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +7 -7
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +22 -2
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/products/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/products/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/products/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +4 -4
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +6 -6
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +6 -6
- data/lib/hubspot/codegen/crm/properties/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/properties/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/quotes/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +4 -4
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/tickets/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +6 -6
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +353 -0
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +362 -0
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +250 -0
- data/lib/hubspot/codegen/crm/{objects → timeline}/api_client.rb +6 -5
- data/lib/hubspot/codegen/crm/{objects → timeline}/api_error.rb +4 -4
- data/lib/hubspot/codegen/crm/{objects → timeline}/configuration.rb +6 -6
- data/lib/hubspot/codegen/crm/timeline/models/add_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +219 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_response_simple_public_object.rb → timeline/models/batch_response_timeline_event_response.rb} +17 -14
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +228 -0
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/contains.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/date.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/divide_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects → timeline}/models/error.rb +18 -8
- data/lib/hubspot/codegen/crm/{objects → timeline}/models/error_detail.rb +26 -29
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_input_simple_public_object_input.rb → timeline/models/has_email_reply.rb} +78 -15
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_or.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/filter.rb → timeline/models/month.rb} +36 -28
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_input_simple_public_object_id.rb → timeline/models/now.rb} +78 -15
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/pipeline_probability.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/public_object_search_request.rb → timeline/models/timeline_event.rb} +101 -69
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object_id.rb → timeline/models/timeline_event_i_frame.rb} +79 -18
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +342 -0
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object.rb → timeline/models/timeline_event_template.rb} +62 -56
- data/lib/hubspot/codegen/crm/{objects/models/batch_read_input_simple_public_object_id.rb → timeline/models/timeline_event_template_create_request.rb} +63 -36
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +328 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +229 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +244 -0
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object_batch_input.rb → timeline/models/timeline_event_template_update_request.rb} +57 -19
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/xor.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +280 -0
- data/lib/hubspot/codegen/oauth/api/default_api.rb +270 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +3 -4
- data/lib/hubspot/codegen/oauth/configuration.rb +3 -3
- data/lib/hubspot/codegen/oauth/models/error.rb +14 -25
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +26 -6
- data/lib/hubspot/codegen/oauth/models/{refresh_token.rb → token_response_if.rb} +33 -47
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +214 -0
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +360 -0
- data/lib/hubspot/codegen/webhooks/api_client.rb +420 -0
- data/lib/hubspot/codegen/webhooks/api_error.rb +59 -0
- data/lib/hubspot/codegen/webhooks/configuration.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/error.rb +290 -0
- data/lib/hubspot/codegen/webhooks/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +229 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +254 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +268 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +217 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +210 -0
- data/lib/hubspot/codegen/{oauth/models/json_node.rb → webhooks/models/subscription_response.rb} +75 -189
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +264 -0
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/companies-app/Gemfile.lock +2 -2
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +3 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +3 -2
- data/sample-apps/contacts-app/Gemfile.lock +2 -2
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +1 -1
- data/sample-apps/contacts-app/app/views/contacts/show.html.erb +1 -0
- data/sample-apps/leaky-bucket-app/Gemfile.lock +2 -2
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/oauth-app/Gemfile.lock +2 -2
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- metadata +170 -90
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +0 -254
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +0 -389
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -293
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -92
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +0 -217
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +0 -226
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_id.rb +0 -226
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +0 -241
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +0 -217
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +0 -224
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +0 -210
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +0 -217
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +0 -84
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +0 -336
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +0 -98
- data/spec/objects/api/associations_api_spec.rb +0 -76
- data/spec/objects/api/basic_api_spec.rb +0 -108
- data/spec/objects/api/batch_api_spec.rb +0 -88
- data/spec/objects/api/search_api_spec.rb +0 -48
- data/spec/objects/api_client_spec.rb +0 -226
- data/spec/objects/configuration_spec.rb +0 -42
- data/spec/objects/models/batch_input_simple_public_object_batch_input_spec.rb +0 -41
- data/spec/objects/models/batch_input_simple_public_object_id_spec.rb +0 -41
- data/spec/objects/models/batch_input_simple_public_object_input_spec.rb +0 -41
- data/spec/objects/models/batch_read_input_simple_public_object_id_spec.rb +0 -47
- data/spec/objects/models/batch_response_simple_public_object_spec.rb +0 -81
- data/spec/objects/models/collection_response_simple_public_object_id_spec.rb +0 -47
- data/spec/objects/models/collection_response_simple_public_object_spec.rb +0 -47
- data/spec/objects/models/collection_response_with_total_simple_public_object_spec.rb +0 -53
- data/spec/objects/models/error_detail_spec.rb +0 -65
- data/spec/objects/models/error_spec.rb +0 -71
- data/spec/objects/models/filter_group_spec.rb +0 -41
- data/spec/objects/models/filter_spec.rb +0 -57
- data/spec/objects/models/next_page_spec.rb +0 -47
- data/spec/objects/models/paging_spec.rb +0 -41
- data/spec/objects/models/public_object_search_request_spec.rb +0 -71
- data/spec/objects/models/simple_public_object_batch_input_spec.rb +0 -47
- data/spec/objects/models/simple_public_object_id_spec.rb +0 -41
- data/spec/objects/models/simple_public_object_input_spec.rb +0 -41
- data/spec/objects/models/simple_public_object_spec.rb +0 -77
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -62,6 +62,7 @@ module Hubspot
|
|
62
62
|
conn.request :url_encoded
|
63
63
|
end
|
64
64
|
conn.adapter(Faraday.default_adapter)
|
65
|
+
conn.options[:params_encoder] = Faraday::FlatParamsEncoder
|
65
66
|
|
66
67
|
# Errors handler settings
|
67
68
|
if !config.error_handler.empty?
|
@@ -269,9 +270,7 @@ module Hubspot
|
|
269
270
|
end
|
270
271
|
else
|
271
272
|
# models, e.g. Pet
|
272
|
-
Hubspot::OAuth.const_get(return_type).
|
273
|
-
model.build_from_hash data
|
274
|
-
end
|
273
|
+
Hubspot::OAuth.const_get(return_type).build_from_hash(data)
|
275
274
|
end
|
276
275
|
end
|
277
276
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -126,7 +126,7 @@ module Hubspot
|
|
126
126
|
def initialize
|
127
127
|
@scheme = 'https'
|
128
128
|
@host = 'api.hubapi.com'
|
129
|
-
@base_path = '
|
129
|
+
@base_path = ''
|
130
130
|
@api_key = {}
|
131
131
|
@api_key_prefix = {}
|
132
132
|
@timeout = 0
|
@@ -214,7 +214,7 @@ module Hubspot
|
|
214
214
|
def server_settings
|
215
215
|
[
|
216
216
|
{
|
217
|
-
url: "https://api.hubapi.com/
|
217
|
+
url: "https://api.hubapi.com/",
|
218
218
|
description: "No description provided",
|
219
219
|
}
|
220
220
|
]
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module Hubspot
|
16
16
|
module OAuth
|
17
|
-
|
17
|
+
class Error
|
18
18
|
# A human readable message describing the error along with remediation steps where appropriate
|
19
19
|
attr_accessor :message
|
20
20
|
|
@@ -24,6 +24,9 @@ module Hubspot
|
|
24
24
|
# The error category
|
25
25
|
attr_accessor :category
|
26
26
|
|
27
|
+
# A specific category that contains more specific detail about the error
|
28
|
+
attr_accessor :sub_category
|
29
|
+
|
27
30
|
# further information about the error
|
28
31
|
attr_accessor :errors
|
29
32
|
|
@@ -39,6 +42,7 @@ module Hubspot
|
|
39
42
|
:'message' => :'message',
|
40
43
|
:'correlation_id' => :'correlationId',
|
41
44
|
:'category' => :'category',
|
45
|
+
:'sub_category' => :'subCategory',
|
42
46
|
:'errors' => :'errors',
|
43
47
|
:'context' => :'context',
|
44
48
|
:'links' => :'links'
|
@@ -51,6 +55,7 @@ module Hubspot
|
|
51
55
|
:'message' => :'String',
|
52
56
|
:'correlation_id' => :'String',
|
53
57
|
:'category' => :'String',
|
58
|
+
:'sub_category' => :'String',
|
54
59
|
:'errors' => :'Array<ErrorDetail>',
|
55
60
|
:'context' => :'Hash<String, Array<String>>',
|
56
61
|
:'links' => :'Hash<String, String>'
|
@@ -90,6 +95,10 @@ module Hubspot
|
|
90
95
|
self.category = attributes[:'category']
|
91
96
|
end
|
92
97
|
|
98
|
+
if attributes.key?(:'sub_category')
|
99
|
+
self.sub_category = attributes[:'sub_category']
|
100
|
+
end
|
101
|
+
|
93
102
|
if attributes.key?(:'errors')
|
94
103
|
if (value = attributes[:'errors']).is_a?(Array)
|
95
104
|
self.errors = value
|
@@ -121,11 +130,6 @@ module Hubspot
|
|
121
130
|
invalid_properties.push('invalid value for "correlation_id", correlation_id cannot be nil.')
|
122
131
|
end
|
123
132
|
|
124
|
-
pattern = Regexp.new(/[a-zA-Z0-9]{32}/)
|
125
|
-
if @correlation_id !~ pattern
|
126
|
-
invalid_properties.push("invalid value for \"correlation_id\", must conform to the pattern #{pattern}.")
|
127
|
-
end
|
128
|
-
|
129
133
|
if @category.nil?
|
130
134
|
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
131
135
|
end
|
@@ -138,26 +142,10 @@ module Hubspot
|
|
138
142
|
def valid?
|
139
143
|
return false if @message.nil?
|
140
144
|
return false if @correlation_id.nil?
|
141
|
-
return false if @correlation_id !~ Regexp.new(/[a-zA-Z0-9]{32}/)
|
142
145
|
return false if @category.nil?
|
143
146
|
true
|
144
147
|
end
|
145
148
|
|
146
|
-
# Custom attribute writer method with validation
|
147
|
-
# @param [Object] correlation_id Value to be assigned
|
148
|
-
def correlation_id=(correlation_id)
|
149
|
-
if correlation_id.nil?
|
150
|
-
fail ArgumentError, 'correlation_id cannot be nil'
|
151
|
-
end
|
152
|
-
|
153
|
-
pattern = Regexp.new(/[a-zA-Z0-9]{32}/)
|
154
|
-
if correlation_id !~ pattern
|
155
|
-
fail ArgumentError, "invalid value for \"correlation_id\", must conform to the pattern #{pattern}."
|
156
|
-
end
|
157
|
-
|
158
|
-
@correlation_id = correlation_id
|
159
|
-
end
|
160
|
-
|
161
149
|
# Checks equality by comparing each attribute.
|
162
150
|
# @param [Object] Object to be compared
|
163
151
|
def ==(o)
|
@@ -166,6 +154,7 @@ module Hubspot
|
|
166
154
|
message == o.message &&
|
167
155
|
correlation_id == o.correlation_id &&
|
168
156
|
category == o.category &&
|
157
|
+
sub_category == o.sub_category &&
|
169
158
|
errors == o.errors &&
|
170
159
|
context == o.context &&
|
171
160
|
links == o.links
|
@@ -180,7 +169,7 @@ module Hubspot
|
|
180
169
|
# Calculates hash code according to all attributes.
|
181
170
|
# @return [Integer] Hash code
|
182
171
|
def hash
|
183
|
-
[message, correlation_id, category, errors, context, links].hash
|
172
|
+
[message, correlation_id, category, sub_category, errors, context, links].hash
|
184
173
|
end
|
185
174
|
|
186
175
|
# Builds the object from hash
|
@@ -298,4 +287,4 @@ module Hubspot
|
|
298
287
|
end
|
299
288
|
end
|
300
289
|
end
|
301
|
-
end
|
290
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,6 +21,12 @@ module Hubspot
|
|
21
21
|
# The name of the field or parameter in which the error was found.
|
22
22
|
attr_accessor :_in
|
23
23
|
|
24
|
+
# The status code associated with the error detail
|
25
|
+
attr_accessor :code
|
26
|
+
|
27
|
+
# A specific category that contains more specific detail about the error
|
28
|
+
attr_accessor :sub_category
|
29
|
+
|
24
30
|
# Context about the error condition
|
25
31
|
attr_accessor :context
|
26
32
|
|
@@ -29,6 +35,8 @@ module Hubspot
|
|
29
35
|
{
|
30
36
|
:'message' => :'message',
|
31
37
|
:'_in' => :'in',
|
38
|
+
:'code' => :'code',
|
39
|
+
:'sub_category' => :'subCategory',
|
32
40
|
:'context' => :'context'
|
33
41
|
}
|
34
42
|
end
|
@@ -38,6 +46,8 @@ module Hubspot
|
|
38
46
|
{
|
39
47
|
:'message' => :'String',
|
40
48
|
:'_in' => :'String',
|
49
|
+
:'code' => :'String',
|
50
|
+
:'sub_category' => :'String',
|
41
51
|
:'context' => :'Hash<String, Array<String>>'
|
42
52
|
}
|
43
53
|
end
|
@@ -52,13 +62,13 @@ module Hubspot
|
|
52
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
63
|
def initialize(attributes = {})
|
54
64
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::OAuth::ErrorDetail` initialize method"
|
56
66
|
end
|
57
67
|
|
58
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::OAuth::ErrorDetail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
72
|
end
|
63
73
|
h[k.to_sym] = v
|
64
74
|
}
|
@@ -71,6 +81,14 @@ module Hubspot
|
|
71
81
|
self._in = attributes[:'_in']
|
72
82
|
end
|
73
83
|
|
84
|
+
if attributes.key?(:'code')
|
85
|
+
self.code = attributes[:'code']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'sub_category')
|
89
|
+
self.sub_category = attributes[:'sub_category']
|
90
|
+
end
|
91
|
+
|
74
92
|
if attributes.key?(:'context')
|
75
93
|
if (value = attributes[:'context']).is_a?(Hash)
|
76
94
|
self.context = value
|
@@ -103,6 +121,8 @@ module Hubspot
|
|
103
121
|
self.class == o.class &&
|
104
122
|
message == o.message &&
|
105
123
|
_in == o._in &&
|
124
|
+
code == o.code &&
|
125
|
+
sub_category == o.sub_category &&
|
106
126
|
context == o.context
|
107
127
|
end
|
108
128
|
|
@@ -115,7 +135,7 @@ module Hubspot
|
|
115
135
|
# Calculates hash code according to all attributes.
|
116
136
|
# @return [Integer] Hash code
|
117
137
|
def hash
|
118
|
-
[message, _in, context].hash
|
138
|
+
[message, _in, code, sub_category, context].hash
|
119
139
|
end
|
120
140
|
|
121
141
|
# Builds the object from hash
|
@@ -182,7 +202,7 @@ module Hubspot
|
|
182
202
|
end
|
183
203
|
end
|
184
204
|
else # model
|
185
|
-
Hubspot::
|
205
|
+
Hubspot::OAuth.const_get(type).build_from_hash(value)
|
186
206
|
end
|
187
207
|
end
|
188
208
|
|
@@ -233,4 +253,4 @@ module Hubspot
|
|
233
253
|
end
|
234
254
|
end
|
235
255
|
end
|
236
|
-
end
|
256
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,32 +14,28 @@ require 'date'
|
|
14
14
|
|
15
15
|
module Hubspot
|
16
16
|
module OAuth
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class TokenResponseIF
|
18
|
+
attr_accessor :access_token
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :expires_in
|
21
21
|
|
22
|
-
attr_accessor :
|
23
|
-
|
24
|
-
attr_accessor :user_id
|
22
|
+
attr_accessor :refresh_token
|
25
23
|
|
26
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
25
|
def self.attribute_map
|
28
26
|
{
|
29
|
-
:'
|
30
|
-
:'
|
31
|
-
:'
|
32
|
-
:'user_id' => :'userId'
|
27
|
+
:'access_token' => :'access_token',
|
28
|
+
:'expires_in' => :'expires_in',
|
29
|
+
:'refresh_token' => :'refresh_token'
|
33
30
|
}
|
34
31
|
end
|
35
32
|
|
36
33
|
# Attribute type mapping.
|
37
34
|
def self.openapi_types
|
38
35
|
{
|
39
|
-
:'
|
40
|
-
:'
|
41
|
-
:'
|
42
|
-
:'user_id' => :'Integer'
|
36
|
+
:'access_token' => :'String',
|
37
|
+
:'expires_in' => :'Integer',
|
38
|
+
:'refresh_token' => :'String'
|
43
39
|
}
|
44
40
|
end
|
45
41
|
|
@@ -53,31 +49,27 @@ module Hubspot
|
|
53
49
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
50
|
def initialize(attributes = {})
|
55
51
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::OAuth::
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::OAuth::TokenResponseIF` initialize method"
|
57
53
|
end
|
58
54
|
|
59
55
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
56
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
57
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::OAuth::
|
58
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::OAuth::TokenResponseIF`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
59
|
end
|
64
60
|
h[k.to_sym] = v
|
65
61
|
}
|
66
62
|
|
67
|
-
if attributes.key?(:'
|
68
|
-
self.
|
69
|
-
end
|
70
|
-
|
71
|
-
if attributes.key?(:'client_id')
|
72
|
-
self.client_id = attributes[:'client_id']
|
63
|
+
if attributes.key?(:'access_token')
|
64
|
+
self.access_token = attributes[:'access_token']
|
73
65
|
end
|
74
66
|
|
75
|
-
if attributes.key?(:'
|
76
|
-
self.
|
67
|
+
if attributes.key?(:'expires_in')
|
68
|
+
self.expires_in = attributes[:'expires_in']
|
77
69
|
end
|
78
70
|
|
79
|
-
if attributes.key?(:'
|
80
|
-
self.
|
71
|
+
if attributes.key?(:'refresh_token')
|
72
|
+
self.refresh_token = attributes[:'refresh_token']
|
81
73
|
end
|
82
74
|
end
|
83
75
|
|
@@ -85,20 +77,16 @@ module Hubspot
|
|
85
77
|
# @return Array for valid properties with the reasons
|
86
78
|
def list_invalid_properties
|
87
79
|
invalid_properties = Array.new
|
88
|
-
if @
|
89
|
-
invalid_properties.push('invalid value for "
|
90
|
-
end
|
91
|
-
|
92
|
-
if @client_id.nil?
|
93
|
-
invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
|
80
|
+
if @access_token.nil?
|
81
|
+
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
94
82
|
end
|
95
83
|
|
96
|
-
if @
|
97
|
-
invalid_properties.push('invalid value for "
|
84
|
+
if @expires_in.nil?
|
85
|
+
invalid_properties.push('invalid value for "expires_in", expires_in cannot be nil.')
|
98
86
|
end
|
99
87
|
|
100
|
-
if @
|
101
|
-
invalid_properties.push('invalid value for "
|
88
|
+
if @refresh_token.nil?
|
89
|
+
invalid_properties.push('invalid value for "refresh_token", refresh_token cannot be nil.')
|
102
90
|
end
|
103
91
|
|
104
92
|
invalid_properties
|
@@ -107,10 +95,9 @@ module Hubspot
|
|
107
95
|
# Check to see if the all the properties in the model are valid
|
108
96
|
# @return true if the model is valid
|
109
97
|
def valid?
|
110
|
-
return false if @
|
111
|
-
return false if @
|
112
|
-
return false if @
|
113
|
-
return false if @user_id.nil?
|
98
|
+
return false if @access_token.nil?
|
99
|
+
return false if @expires_in.nil?
|
100
|
+
return false if @refresh_token.nil?
|
114
101
|
true
|
115
102
|
end
|
116
103
|
|
@@ -119,10 +106,9 @@ module Hubspot
|
|
119
106
|
def ==(o)
|
120
107
|
return true if self.equal?(o)
|
121
108
|
self.class == o.class &&
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
user_id == o.user_id
|
109
|
+
access_token == o.access_token &&
|
110
|
+
expires_in == o.expires_in &&
|
111
|
+
refresh_token == o.refresh_token
|
126
112
|
end
|
127
113
|
|
128
114
|
# @see the `==` method
|
@@ -134,7 +120,7 @@ module Hubspot
|
|
134
120
|
# Calculates hash code according to all attributes.
|
135
121
|
# @return [Integer] Hash code
|
136
122
|
def hash
|
137
|
-
[
|
123
|
+
[access_token, expires_in, refresh_token].hash
|
138
124
|
end
|
139
125
|
|
140
126
|
# Builds the object from hash
|
@@ -252,4 +238,4 @@ module Hubspot
|
|
252
238
|
end
|
253
239
|
end
|
254
240
|
end
|
255
|
-
end
|
241
|
+
end
|
@@ -0,0 +1,214 @@
|
|
1
|
+
=begin
|
2
|
+
#Webhooks API
|
3
|
+
|
4
|
+
#Provides a way for apps to subscribe to certain change events in HubSpot. Once configured, apps will receive event payloads containing details about the changes at a specified target URL. There can only be one target URL for receiving event notifications per app.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Webhooks
|
17
|
+
class SettingsApi
|
18
|
+
attr_accessor :api_client
|
19
|
+
|
20
|
+
def initialize(api_client = ApiClient.default)
|
21
|
+
@api_client = api_client
|
22
|
+
end
|
23
|
+
# Clear webhook settings
|
24
|
+
# Resets webhook target URL to empty, and max concurrency limit to `0` for the given app. This will effectively pause all webhook subscriptions until new settings are provided.
|
25
|
+
# @param app_id [Integer] The ID of the target app.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [nil]
|
28
|
+
def clear_settings(app_id, opts = {})
|
29
|
+
clear_settings_with_http_info(app_id, opts)
|
30
|
+
nil
|
31
|
+
end
|
32
|
+
|
33
|
+
# Clear webhook settings
|
34
|
+
# Resets webhook target URL to empty, and max concurrency limit to `0` for the given app. This will effectively pause all webhook subscriptions until new settings are provided.
|
35
|
+
# @param app_id [Integer] The ID of the target app.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
38
|
+
def clear_settings_with_http_info(app_id, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.clear_settings ...'
|
41
|
+
end
|
42
|
+
# verify the required parameter 'app_id' is set
|
43
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.clear_settings"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = '/webhooks/v3/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = opts[:query_params] || {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = opts[:header_params] || {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:body]
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:return_type]
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:header_params => header_params,
|
71
|
+
:query_params => query_params,
|
72
|
+
:form_params => form_params,
|
73
|
+
:body => post_body,
|
74
|
+
:auth_names => auth_names,
|
75
|
+
:return_type => return_type
|
76
|
+
)
|
77
|
+
|
78
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: SettingsApi#clear_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
|
85
|
+
# Configure webhook settings
|
86
|
+
# Used to set the webhook target URL and max concurrency limit for the given app.
|
87
|
+
# @param app_id [Integer] The ID of the target app.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [SettingsChangeRequest] :settings_change_request Settings state to create new with or replace existing settings with.
|
90
|
+
# @return [SettingsResponse]
|
91
|
+
def configure_settings(app_id, opts = {})
|
92
|
+
data, _status_code, _headers = configure_settings_with_http_info(app_id, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Configure webhook settings
|
97
|
+
# Used to set the webhook target URL and max concurrency limit for the given app.
|
98
|
+
# @param app_id [Integer] The ID of the target app.
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @option opts [SettingsChangeRequest] :settings_change_request Settings state to create new with or replace existing settings with.
|
101
|
+
# @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
|
102
|
+
def configure_settings_with_http_info(app_id, opts = {})
|
103
|
+
if @api_client.config.debugging
|
104
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.configure_settings ...'
|
105
|
+
end
|
106
|
+
# verify the required parameter 'app_id' is set
|
107
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.configure_settings"
|
109
|
+
end
|
110
|
+
# resource path
|
111
|
+
local_var_path = '/webhooks/v3/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
112
|
+
|
113
|
+
# query parameters
|
114
|
+
query_params = opts[:query_params] || {}
|
115
|
+
|
116
|
+
# header parameters
|
117
|
+
header_params = opts[:header_params] || {}
|
118
|
+
# HTTP header 'Accept' (if needed)
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
120
|
+
# HTTP header 'Content-Type'
|
121
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
122
|
+
|
123
|
+
# form parameters
|
124
|
+
form_params = opts[:form_params] || {}
|
125
|
+
|
126
|
+
# http body (model)
|
127
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'settings_change_request'])
|
128
|
+
|
129
|
+
# return_type
|
130
|
+
return_type = opts[:return_type] || 'SettingsResponse'
|
131
|
+
|
132
|
+
# auth_names
|
133
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
134
|
+
|
135
|
+
new_options = opts.merge(
|
136
|
+
:header_params => header_params,
|
137
|
+
:query_params => query_params,
|
138
|
+
:form_params => form_params,
|
139
|
+
:body => post_body,
|
140
|
+
:auth_names => auth_names,
|
141
|
+
:return_type => return_type
|
142
|
+
)
|
143
|
+
|
144
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: SettingsApi#configure_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
|
151
|
+
# Get webhook settings
|
152
|
+
# Returns the current state of webhook settings for the given app. These settings include the app's configured target URL and max concurrency limit.
|
153
|
+
# @param app_id [Integer] The ID of the target app.
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @return [SettingsResponse]
|
156
|
+
def get_settings(app_id, opts = {})
|
157
|
+
data, _status_code, _headers = get_settings_with_http_info(app_id, opts)
|
158
|
+
data
|
159
|
+
end
|
160
|
+
|
161
|
+
# Get webhook settings
|
162
|
+
# Returns the current state of webhook settings for the given app. These settings include the app's configured target URL and max concurrency limit.
|
163
|
+
# @param app_id [Integer] The ID of the target app.
|
164
|
+
# @param [Hash] opts the optional parameters
|
165
|
+
# @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
|
166
|
+
def get_settings_with_http_info(app_id, opts = {})
|
167
|
+
if @api_client.config.debugging
|
168
|
+
@api_client.config.logger.debug 'Calling API: SettingsApi.get_settings ...'
|
169
|
+
end
|
170
|
+
# verify the required parameter 'app_id' is set
|
171
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
172
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SettingsApi.get_settings"
|
173
|
+
end
|
174
|
+
# resource path
|
175
|
+
local_var_path = '/webhooks/v3/{appId}/settings'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
176
|
+
|
177
|
+
# query parameters
|
178
|
+
query_params = opts[:query_params] || {}
|
179
|
+
|
180
|
+
# header parameters
|
181
|
+
header_params = opts[:header_params] || {}
|
182
|
+
# HTTP header 'Accept' (if needed)
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
184
|
+
|
185
|
+
# form parameters
|
186
|
+
form_params = opts[:form_params] || {}
|
187
|
+
|
188
|
+
# http body (model)
|
189
|
+
post_body = opts[:body]
|
190
|
+
|
191
|
+
# return_type
|
192
|
+
return_type = opts[:return_type] || 'SettingsResponse'
|
193
|
+
|
194
|
+
# auth_names
|
195
|
+
auth_names = opts[:auth_names] || ['hapikey']
|
196
|
+
|
197
|
+
new_options = opts.merge(
|
198
|
+
:header_params => header_params,
|
199
|
+
:query_params => query_params,
|
200
|
+
:form_params => form_params,
|
201
|
+
:body => post_body,
|
202
|
+
:auth_names => auth_names,
|
203
|
+
:return_type => return_type
|
204
|
+
)
|
205
|
+
|
206
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
207
|
+
if @api_client.config.debugging
|
208
|
+
@api_client.config.logger.debug "API called: SettingsApi#get_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
209
|
+
end
|
210
|
+
return data, status_code, headers
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|