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
@@ -1,84 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#OAuthService
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v1
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.2
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module Hubspot
|
16
|
-
module OAuth
|
17
|
-
class AccessTokensApi
|
18
|
-
attr_accessor :api_client
|
19
|
-
|
20
|
-
def initialize(api_client = ApiClient.default)
|
21
|
-
@api_client = api_client
|
22
|
-
end
|
23
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=AccessTokensResource%20OR%20Object&defs=requestAccessTokenInfo) | [API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Faccess-tokens%2F%28%28%7Btoken%7D%29%29?showRequestDetails=true) | <a href='#operations-Access_Tokens-get-%2Foauth%2Fv1%2Faccess-tokens%2F%7Btoken%7D'>Permalink</a>
|
24
|
-
# @param token [String]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [AccessTokenInfoResponse]
|
27
|
-
def get_oauth_v1_access_tokens_token(token, opts = {})
|
28
|
-
data, _status_code, _headers = get_oauth_v1_access_tokens_token_with_http_info(token, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=AccessTokensResource%20OR%20Object&defs=requestAccessTokenInfo)&nbsp;|&nbsp;[API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Faccess-tokens%2F%28%28%7Btoken%7D%29%29?showRequestDetails=true)&nbsp;|&nbsp;<a href='#operations-Access_Tokens-get-%2Foauth%2Fv1%2Faccess-tokens%2F%7Btoken%7D'>Permalink</a>
|
33
|
-
# @param token [String]
|
34
|
-
# @param [Hash] opts the optional parameters
|
35
|
-
# @return [Array<(AccessTokenInfoResponse, Integer, Hash)>] AccessTokenInfoResponse data, response status code and response headers
|
36
|
-
def get_oauth_v1_access_tokens_token_with_http_info(token, opts = {})
|
37
|
-
if @api_client.config.debugging
|
38
|
-
@api_client.config.logger.debug 'Calling API: AccessTokensApi.get_oauth_v1_access_tokens_token ...'
|
39
|
-
end
|
40
|
-
# verify the required parameter 'token' is set
|
41
|
-
if @api_client.config.client_side_validation && token.nil?
|
42
|
-
fail ArgumentError, "Missing the required parameter 'token' when calling AccessTokensApi.get_oauth_v1_access_tokens_token"
|
43
|
-
end
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/v1/access-tokens/{token}'.sub('{' + 'token' + '}', CGI.escape(token.to_s).gsub('%2F', '/'))
|
46
|
-
|
47
|
-
# query parameters
|
48
|
-
query_params = opts[:query_params] || {}
|
49
|
-
|
50
|
-
# header parameters
|
51
|
-
header_params = opts[:header_params] || {}
|
52
|
-
# HTTP header 'Accept' (if needed)
|
53
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
54
|
-
|
55
|
-
# form parameters
|
56
|
-
form_params = opts[:form_params] || {}
|
57
|
-
|
58
|
-
# http body (model)
|
59
|
-
post_body = opts[:body]
|
60
|
-
|
61
|
-
# return_type
|
62
|
-
return_type = opts[:return_type] || 'AccessTokenInfoResponse'
|
63
|
-
|
64
|
-
# auth_names
|
65
|
-
auth_names = opts[:auth_names] || []
|
66
|
-
|
67
|
-
new_options = opts.merge(
|
68
|
-
:header_params => header_params,
|
69
|
-
:query_params => query_params,
|
70
|
-
:form_params => form_params,
|
71
|
-
:body => post_body,
|
72
|
-
:auth_names => auth_names,
|
73
|
-
:return_type => return_type
|
74
|
-
)
|
75
|
-
|
76
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
77
|
-
if @api_client.config.debugging
|
78
|
-
@api_client.config.logger.debug "API called: AccessTokensApi#get_oauth_v1_access_tokens_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
-
end
|
80
|
-
return data, status_code, headers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
@@ -1,336 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#OAuthService
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v1
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.2
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module Hubspot
|
16
|
-
module OAuth
|
17
|
-
class RefreshTokensApi
|
18
|
-
attr_accessor :api_client
|
19
|
-
|
20
|
-
def initialize(api_client = ApiClient.default)
|
21
|
-
@api_client = api_client
|
22
|
-
end
|
23
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=deleteRefreshToken) | [API Goggles](https://tools.hubteam.com/api/delete/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2F%28%28%7Btoken%7D%29%29?showRequestDetails=true) | <a href='#operations-Refresh_Tokens-delete-%2Foauth%2Fv1%2Frefresh-tokens%2F%7Btoken%7D'>Permalink</a>
|
24
|
-
# @param token [String]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [Error]
|
27
|
-
def delete_oauth_v1_refresh_tokens_token(token, opts = {})
|
28
|
-
data, _status_code, _headers = delete_oauth_v1_refresh_tokens_token_with_http_info(token, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=deleteRefreshToken)&nbsp;|&nbsp;[API Goggles](https://tools.hubteam.com/api/delete/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2F%28%28%7Btoken%7D%29%29?showRequestDetails=true)&nbsp;|&nbsp;<a href='#operations-Refresh_Tokens-delete-%2Foauth%2Fv1%2Frefresh-tokens%2F%7Btoken%7D'>Permalink</a>
|
33
|
-
# @param token [String]
|
34
|
-
# @param [Hash] opts the optional parameters
|
35
|
-
# @return [Array<(Error, Integer, Hash)>] Error data, response status code and response headers
|
36
|
-
def delete_oauth_v1_refresh_tokens_token_with_http_info(token, opts = {})
|
37
|
-
if @api_client.config.debugging
|
38
|
-
@api_client.config.logger.debug 'Calling API: RefreshTokensApi.delete_oauth_v1_refresh_tokens_token ...'
|
39
|
-
end
|
40
|
-
# verify the required parameter 'token' is set
|
41
|
-
if @api_client.config.client_side_validation && token.nil?
|
42
|
-
fail ArgumentError, "Missing the required parameter 'token' when calling RefreshTokensApi.delete_oauth_v1_refresh_tokens_token"
|
43
|
-
end
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/v1/refresh-tokens/{token}'.sub('{' + 'token' + '}', CGI.escape(token.to_s).gsub('%2F', '/'))
|
46
|
-
|
47
|
-
# query parameters
|
48
|
-
query_params = opts[:query_params] || {}
|
49
|
-
|
50
|
-
# header parameters
|
51
|
-
header_params = opts[:header_params] || {}
|
52
|
-
# HTTP header 'Accept' (if needed)
|
53
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
54
|
-
|
55
|
-
# form parameters
|
56
|
-
form_params = opts[:form_params] || {}
|
57
|
-
|
58
|
-
# http body (model)
|
59
|
-
post_body = opts[:body]
|
60
|
-
|
61
|
-
# return_type
|
62
|
-
return_type = opts[:return_type] || 'Error'
|
63
|
-
|
64
|
-
# auth_names
|
65
|
-
auth_names = opts[:auth_names] || []
|
66
|
-
|
67
|
-
new_options = opts.merge(
|
68
|
-
:header_params => header_params,
|
69
|
-
:query_params => query_params,
|
70
|
-
:form_params => form_params,
|
71
|
-
:body => post_body,
|
72
|
-
:auth_names => auth_names,
|
73
|
-
:return_type => return_type
|
74
|
-
)
|
75
|
-
|
76
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
77
|
-
if @api_client.config.debugging
|
78
|
-
@api_client.config.logger.debug "API called: RefreshTokensApi#delete_oauth_v1_refresh_tokens_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
-
end
|
80
|
-
return data, status_code, headers
|
81
|
-
end
|
82
|
-
|
83
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=getRefreshTokenInfo) | [API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2Fhubs%2F%28%28%7BhubId%7D%29%29%2Fclients%2F%28%28%7BclientId%7D%29%29?showRequestDetails=true) | <a href='#operations-Refresh_Tokens-get-%2Foauth%2Fv1%2Frefresh-tokens%2Fhubs%2F%7BhubId%7D%2Fclients%2F%7BclientId%7D'>Permalink</a>
|
84
|
-
# @param hub_id [Integer]
|
85
|
-
# @param client_id [String]
|
86
|
-
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [Array<RefreshToken>]
|
88
|
-
def get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id(hub_id, client_id, opts = {})
|
89
|
-
data, _status_code, _headers = get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id_with_http_info(hub_id, client_id, opts)
|
90
|
-
data
|
91
|
-
end
|
92
|
-
|
93
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=getRefreshTokenInfo)&nbsp;|&nbsp;[API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2Fhubs%2F%28%28%7BhubId%7D%29%29%2Fclients%2F%28%28%7BclientId%7D%29%29?showRequestDetails=true)&nbsp;|&nbsp;<a href='#operations-Refresh_Tokens-get-%2Foauth%2Fv1%2Frefresh-tokens%2Fhubs%2F%7BhubId%7D%2Fclients%2F%7BclientId%7D'>Permalink</a>
|
94
|
-
# @param hub_id [Integer]
|
95
|
-
# @param client_id [String]
|
96
|
-
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [Array<(Array<RefreshToken>, Integer, Hash)>] Array<RefreshToken> data, response status code and response headers
|
98
|
-
def get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id_with_http_info(hub_id, client_id, opts = {})
|
99
|
-
if @api_client.config.debugging
|
100
|
-
@api_client.config.logger.debug 'Calling API: RefreshTokensApi.get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id ...'
|
101
|
-
end
|
102
|
-
# verify the required parameter 'hub_id' is set
|
103
|
-
if @api_client.config.client_side_validation && hub_id.nil?
|
104
|
-
fail ArgumentError, "Missing the required parameter 'hub_id' when calling RefreshTokensApi.get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id"
|
105
|
-
end
|
106
|
-
# verify the required parameter 'client_id' is set
|
107
|
-
if @api_client.config.client_side_validation && client_id.nil?
|
108
|
-
fail ArgumentError, "Missing the required parameter 'client_id' when calling RefreshTokensApi.get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id"
|
109
|
-
end
|
110
|
-
# resource path
|
111
|
-
local_var_path = '/v1/refresh-tokens/hubs/{hubId}/clients/{clientId}'.sub('{' + 'hubId' + '}', CGI.escape(hub_id.to_s).gsub('%2F', '/')).sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s).gsub('%2F', '/'))
|
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
|
-
|
121
|
-
# form parameters
|
122
|
-
form_params = opts[:form_params] || {}
|
123
|
-
|
124
|
-
# http body (model)
|
125
|
-
post_body = opts[:body]
|
126
|
-
|
127
|
-
# return_type
|
128
|
-
return_type = opts[:return_type] || 'Array<RefreshToken>'
|
129
|
-
|
130
|
-
# auth_names
|
131
|
-
auth_names = opts[:auth_names] || []
|
132
|
-
|
133
|
-
new_options = opts.merge(
|
134
|
-
:header_params => header_params,
|
135
|
-
:query_params => query_params,
|
136
|
-
:form_params => form_params,
|
137
|
-
:body => post_body,
|
138
|
-
:auth_names => auth_names,
|
139
|
-
:return_type => return_type
|
140
|
-
)
|
141
|
-
|
142
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
143
|
-
if @api_client.config.debugging
|
144
|
-
@api_client.config.logger.debug "API called: RefreshTokensApi#get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
-
end
|
146
|
-
return data, status_code, headers
|
147
|
-
end
|
148
|
-
|
149
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=getTokenAuditsByHubAndClient) | [API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2Fhubs%2F%28%28%7BhubId%7D%29%29%2Fclients%2F%28%28%7BclientId%7D%29%29%2Faudits?showRequestDetails=true) | <a href='#operations-Refresh_Tokens-get-%2Foauth%2Fv1%2Frefresh-tokens%2Fhubs%2F%7BhubId%7D%2Fclients%2F%7BclientId%7D%2Faudits'>Permalink</a>
|
150
|
-
# @param hub_id [Integer]
|
151
|
-
# @param client_id [String]
|
152
|
-
# @param [Hash] opts the optional parameters
|
153
|
-
# @return [Array<JsonNode>]
|
154
|
-
def get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id_audits(hub_id, client_id, opts = {})
|
155
|
-
data, _status_code, _headers = get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id_audits_with_http_info(hub_id, client_id, opts)
|
156
|
-
data
|
157
|
-
end
|
158
|
-
|
159
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=getTokenAuditsByHubAndClient)&nbsp;|&nbsp;[API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2Fhubs%2F%28%28%7BhubId%7D%29%29%2Fclients%2F%28%28%7BclientId%7D%29%29%2Faudits?showRequestDetails=true)&nbsp;|&nbsp;<a href='#operations-Refresh_Tokens-get-%2Foauth%2Fv1%2Frefresh-tokens%2Fhubs%2F%7BhubId%7D%2Fclients%2F%7BclientId%7D%2Faudits'>Permalink</a>
|
160
|
-
# @param hub_id [Integer]
|
161
|
-
# @param client_id [String]
|
162
|
-
# @param [Hash] opts the optional parameters
|
163
|
-
# @return [Array<(Array<JsonNode>, Integer, Hash)>] Array<JsonNode> data, response status code and response headers
|
164
|
-
def get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id_audits_with_http_info(hub_id, client_id, opts = {})
|
165
|
-
if @api_client.config.debugging
|
166
|
-
@api_client.config.logger.debug 'Calling API: RefreshTokensApi.get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id_audits ...'
|
167
|
-
end
|
168
|
-
# verify the required parameter 'hub_id' is set
|
169
|
-
if @api_client.config.client_side_validation && hub_id.nil?
|
170
|
-
fail ArgumentError, "Missing the required parameter 'hub_id' when calling RefreshTokensApi.get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id_audits"
|
171
|
-
end
|
172
|
-
# verify the required parameter 'client_id' is set
|
173
|
-
if @api_client.config.client_side_validation && client_id.nil?
|
174
|
-
fail ArgumentError, "Missing the required parameter 'client_id' when calling RefreshTokensApi.get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id_audits"
|
175
|
-
end
|
176
|
-
# resource path
|
177
|
-
local_var_path = '/v1/refresh-tokens/hubs/{hubId}/clients/{clientId}/audits'.sub('{' + 'hubId' + '}', CGI.escape(hub_id.to_s).gsub('%2F', '/')).sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s).gsub('%2F', '/'))
|
178
|
-
|
179
|
-
# query parameters
|
180
|
-
query_params = opts[:query_params] || {}
|
181
|
-
|
182
|
-
# header parameters
|
183
|
-
header_params = opts[:header_params] || {}
|
184
|
-
# HTTP header 'Accept' (if needed)
|
185
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
186
|
-
|
187
|
-
# form parameters
|
188
|
-
form_params = opts[:form_params] || {}
|
189
|
-
|
190
|
-
# http body (model)
|
191
|
-
post_body = opts[:body]
|
192
|
-
|
193
|
-
# return_type
|
194
|
-
return_type = opts[:return_type] || 'Array<JsonNode>'
|
195
|
-
|
196
|
-
# auth_names
|
197
|
-
auth_names = opts[:auth_names] || []
|
198
|
-
|
199
|
-
new_options = opts.merge(
|
200
|
-
:header_params => header_params,
|
201
|
-
:query_params => query_params,
|
202
|
-
:form_params => form_params,
|
203
|
-
:body => post_body,
|
204
|
-
:auth_names => auth_names,
|
205
|
-
:return_type => return_type
|
206
|
-
)
|
207
|
-
|
208
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
209
|
-
if @api_client.config.debugging
|
210
|
-
@api_client.config.logger.debug "API called: RefreshTokensApi#get_oauth_v1_refresh_tokens_hubs_hub_id_clients_client_id_audits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
|
-
end
|
212
|
-
return data, status_code, headers
|
213
|
-
end
|
214
|
-
|
215
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=requestRefreshTokenInfo) | [API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2F%28%28%7Btoken%7D%29%29?showRequestDetails=true) | <a href='#operations-Refresh_Tokens-get-%2Foauth%2Fv1%2Frefresh-tokens%2F%7Btoken%7D'>Permalink</a>
|
216
|
-
# @param token [String]
|
217
|
-
# @param [Hash] opts the optional parameters
|
218
|
-
# @return [RefreshTokenInfoResponse]
|
219
|
-
def get_oauth_v1_refresh_tokens_token(token, opts = {})
|
220
|
-
data, _status_code, _headers = get_oauth_v1_refresh_tokens_token_with_http_info(token, opts)
|
221
|
-
data
|
222
|
-
end
|
223
|
-
|
224
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=requestRefreshTokenInfo)&nbsp;|&nbsp;[API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2F%28%28%7Btoken%7D%29%29?showRequestDetails=true)&nbsp;|&nbsp;<a href='#operations-Refresh_Tokens-get-%2Foauth%2Fv1%2Frefresh-tokens%2F%7Btoken%7D'>Permalink</a>
|
225
|
-
# @param token [String]
|
226
|
-
# @param [Hash] opts the optional parameters
|
227
|
-
# @return [Array<(RefreshTokenInfoResponse, Integer, Hash)>] RefreshTokenInfoResponse data, response status code and response headers
|
228
|
-
def get_oauth_v1_refresh_tokens_token_with_http_info(token, opts = {})
|
229
|
-
if @api_client.config.debugging
|
230
|
-
@api_client.config.logger.debug 'Calling API: RefreshTokensApi.get_oauth_v1_refresh_tokens_token ...'
|
231
|
-
end
|
232
|
-
# verify the required parameter 'token' is set
|
233
|
-
if @api_client.config.client_side_validation && token.nil?
|
234
|
-
fail ArgumentError, "Missing the required parameter 'token' when calling RefreshTokensApi.get_oauth_v1_refresh_tokens_token"
|
235
|
-
end
|
236
|
-
# resource path
|
237
|
-
local_var_path = '/v1/refresh-tokens/{token}'.sub('{' + 'token' + '}', CGI.escape(token.to_s).gsub('%2F', '/'))
|
238
|
-
|
239
|
-
# query parameters
|
240
|
-
query_params = opts[:query_params] || {}
|
241
|
-
|
242
|
-
# header parameters
|
243
|
-
header_params = opts[:header_params] || {}
|
244
|
-
# HTTP header 'Accept' (if needed)
|
245
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
246
|
-
|
247
|
-
# form parameters
|
248
|
-
form_params = opts[:form_params] || {}
|
249
|
-
|
250
|
-
# http body (model)
|
251
|
-
post_body = opts[:body]
|
252
|
-
|
253
|
-
# return_type
|
254
|
-
return_type = opts[:return_type] || 'RefreshTokenInfoResponse'
|
255
|
-
|
256
|
-
# auth_names
|
257
|
-
auth_names = opts[:auth_names] || []
|
258
|
-
|
259
|
-
new_options = opts.merge(
|
260
|
-
:header_params => header_params,
|
261
|
-
:query_params => query_params,
|
262
|
-
:form_params => form_params,
|
263
|
-
:body => post_body,
|
264
|
-
:auth_names => auth_names,
|
265
|
-
:return_type => return_type
|
266
|
-
)
|
267
|
-
|
268
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
269
|
-
if @api_client.config.debugging
|
270
|
-
@api_client.config.logger.debug "API called: RefreshTokensApi#get_oauth_v1_refresh_tokens_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
271
|
-
end
|
272
|
-
return data, status_code, headers
|
273
|
-
end
|
274
|
-
|
275
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=getTokenAudits) | [API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2F%28%28%7Btoken%7D%29%29%2Faudits?showRequestDetails=true) | <a href='#operations-Refresh_Tokens-get-%2Foauth%2Fv1%2Frefresh-tokens%2F%7Btoken%7D%2Faudits'>Permalink</a>
|
276
|
-
# @param token [String]
|
277
|
-
# @param [Hash] opts the optional parameters
|
278
|
-
# @return [Array<JsonNode>]
|
279
|
-
def get_oauth_v1_refresh_tokens_token_audits(token, opts = {})
|
280
|
-
data, _status_code, _headers = get_oauth_v1_refresh_tokens_token_audits_with_http_info(token, opts)
|
281
|
-
data
|
282
|
-
end
|
283
|
-
|
284
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=RefreshTokensResource%20OR%20Object&defs=getTokenAudits)&nbsp;|&nbsp;[API Goggles](https://tools.hubteam.com/api/get/api.hubapi.com%2Foauth%2Fv1%2Frefresh-tokens%2F%28%28%7Btoken%7D%29%29%2Faudits?showRequestDetails=true)&nbsp;|&nbsp;<a href='#operations-Refresh_Tokens-get-%2Foauth%2Fv1%2Frefresh-tokens%2F%7Btoken%7D%2Faudits'>Permalink</a>
|
285
|
-
# @param token [String]
|
286
|
-
# @param [Hash] opts the optional parameters
|
287
|
-
# @return [Array<(Array<JsonNode>, Integer, Hash)>] Array<JsonNode> data, response status code and response headers
|
288
|
-
def get_oauth_v1_refresh_tokens_token_audits_with_http_info(token, opts = {})
|
289
|
-
if @api_client.config.debugging
|
290
|
-
@api_client.config.logger.debug 'Calling API: RefreshTokensApi.get_oauth_v1_refresh_tokens_token_audits ...'
|
291
|
-
end
|
292
|
-
# verify the required parameter 'token' is set
|
293
|
-
if @api_client.config.client_side_validation && token.nil?
|
294
|
-
fail ArgumentError, "Missing the required parameter 'token' when calling RefreshTokensApi.get_oauth_v1_refresh_tokens_token_audits"
|
295
|
-
end
|
296
|
-
# resource path
|
297
|
-
local_var_path = '/v1/refresh-tokens/{token}/audits'.sub('{' + 'token' + '}', CGI.escape(token.to_s).gsub('%2F', '/'))
|
298
|
-
|
299
|
-
# query parameters
|
300
|
-
query_params = opts[:query_params] || {}
|
301
|
-
|
302
|
-
# header parameters
|
303
|
-
header_params = opts[:header_params] || {}
|
304
|
-
# HTTP header 'Accept' (if needed)
|
305
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
306
|
-
|
307
|
-
# form parameters
|
308
|
-
form_params = opts[:form_params] || {}
|
309
|
-
|
310
|
-
# http body (model)
|
311
|
-
post_body = opts[:body]
|
312
|
-
|
313
|
-
# return_type
|
314
|
-
return_type = opts[:return_type] || 'Array<JsonNode>'
|
315
|
-
|
316
|
-
# auth_names
|
317
|
-
auth_names = opts[:auth_names] || []
|
318
|
-
|
319
|
-
new_options = opts.merge(
|
320
|
-
:header_params => header_params,
|
321
|
-
:query_params => query_params,
|
322
|
-
:form_params => form_params,
|
323
|
-
:body => post_body,
|
324
|
-
:auth_names => auth_names,
|
325
|
-
:return_type => return_type
|
326
|
-
)
|
327
|
-
|
328
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
329
|
-
if @api_client.config.debugging
|
330
|
-
@api_client.config.logger.debug "API called: RefreshTokensApi#get_oauth_v1_refresh_tokens_token_audits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
331
|
-
end
|
332
|
-
return data, status_code, headers
|
333
|
-
end
|
334
|
-
end
|
335
|
-
end
|
336
|
-
end
|
@@ -1,98 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#OAuthService
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v1
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.2
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module Hubspot
|
16
|
-
module OAuth
|
17
|
-
class TokensApi
|
18
|
-
attr_accessor :api_client
|
19
|
-
|
20
|
-
def initialize(api_client = ApiClient.default)
|
21
|
-
@api_client = api_client
|
22
|
-
end
|
23
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=TokensResource%20OR%20Object&defs=requestAccessToken) | [API Goggles](https://tools.hubteam.com/api/post/api.hubapi.com%2Foauth%2Fv1%2Ftoken?showRequestDetails=true) | <a href='#operations-Tokens-post-%2Foauth%2Fv1%2Ftoken'>Permalink</a>
|
24
|
-
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [String] :grant_type
|
26
|
-
# @option opts [String] :code
|
27
|
-
# @option opts [String] :redirect_uri
|
28
|
-
# @option opts [String] :client_id
|
29
|
-
# @option opts [String] :client_secret
|
30
|
-
# @option opts [String] :refresh_token
|
31
|
-
# @return [Error]
|
32
|
-
def post_oauth_v1_token(opts = {})
|
33
|
-
data, _status_code, _headers = post_oauth_v1_token_with_http_info(opts)
|
34
|
-
data
|
35
|
-
end
|
36
|
-
|
37
|
-
# Auth Level: none ([Docs](https://product.hubteam.com/docs/appsystems/auth-and-rest/auth-levels.html)) [Source Code](https://private.hubteam.com/opengrok/search?project=all&path=TokensResource%20OR%20Object&defs=requestAccessToken)&nbsp;|&nbsp;[API Goggles](https://tools.hubteam.com/api/post/api.hubapi.com%2Foauth%2Fv1%2Ftoken?showRequestDetails=true)&nbsp;|&nbsp;<a href='#operations-Tokens-post-%2Foauth%2Fv1%2Ftoken'>Permalink</a>
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :grant_type
|
40
|
-
# @option opts [String] :code
|
41
|
-
# @option opts [String] :redirect_uri
|
42
|
-
# @option opts [String] :client_id
|
43
|
-
# @option opts [String] :client_secret
|
44
|
-
# @option opts [String] :refresh_token
|
45
|
-
# @return [Array<(Error, Integer, Hash)>] Error data, response status code and response headers
|
46
|
-
def post_oauth_v1_token_with_http_info(opts = {})
|
47
|
-
if @api_client.config.debugging
|
48
|
-
@api_client.config.logger.debug 'Calling API: TokensApi.post_oauth_v1_token ...'
|
49
|
-
end
|
50
|
-
# resource path
|
51
|
-
local_var_path = '/v1/token'
|
52
|
-
|
53
|
-
# query parameters
|
54
|
-
query_params = opts[:query_params] || {}
|
55
|
-
|
56
|
-
# header parameters
|
57
|
-
header_params = opts[:header_params] || {}
|
58
|
-
# HTTP header 'Accept' (if needed)
|
59
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
60
|
-
# HTTP header 'Content-Type'
|
61
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
62
|
-
|
63
|
-
# form parameters
|
64
|
-
form_params = opts[:form_params] || {}
|
65
|
-
form_params['grant_type'] = opts[:'grant_type'] if !opts[:'grant_type'].nil?
|
66
|
-
form_params['code'] = opts[:'code'] if !opts[:'code'].nil?
|
67
|
-
form_params['redirect_uri'] = opts[:'redirect_uri'] if !opts[:'redirect_uri'].nil?
|
68
|
-
form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
|
69
|
-
form_params['client_secret'] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
|
70
|
-
form_params['refresh_token'] = opts[:'refresh_token'] if !opts[:'refresh_token'].nil?
|
71
|
-
|
72
|
-
# http body (model)
|
73
|
-
post_body = opts[:body]
|
74
|
-
|
75
|
-
# return_type
|
76
|
-
return_type = opts[:return_type] || 'Error'
|
77
|
-
|
78
|
-
# auth_names
|
79
|
-
auth_names = opts[:auth_names] || []
|
80
|
-
|
81
|
-
new_options = opts.merge(
|
82
|
-
:header_params => header_params,
|
83
|
-
:query_params => query_params,
|
84
|
-
:form_params => form_params,
|
85
|
-
:body => post_body,
|
86
|
-
:auth_names => auth_names,
|
87
|
-
:return_type => return_type
|
88
|
-
)
|
89
|
-
|
90
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
91
|
-
if @api_client.config.debugging
|
92
|
-
@api_client.config.logger.debug "API called: TokensApi#post_oauth_v1_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
93
|
-
end
|
94
|
-
return data, status_code, headers
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|