wallee-ruby-sdk 6.4.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +38 -31
- data/README.md +450 -129
- data/lib/wallee-ruby-sdk/api_client.rb +1 -1
- data/lib/wallee-ruby-sdk/models/abstract_o_auth_client_update.rb +340 -0
- data/lib/wallee-ruby-sdk/models/abstract_role_update.rb +13 -1
- data/lib/wallee-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
- data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
- data/lib/wallee-ruby-sdk/models/bank_payment_type.rb +50 -0
- data/lib/wallee-ruby-sdk/models/{abstract_payment_terminal_update.rb → basic_address.rb} +46 -30
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_address_change_request.rb → boarding_strategy_information_request.rb} +22 -14
- data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_payment_data.rb → charge_attempt_lookup_result.rb} +16 -18
- data/lib/wallee-ruby-sdk/models/charge_attempt_projection.rb +560 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_option.rb → create_fulfillment_request.rb} +25 -50
- data/lib/wallee-ruby-sdk/models/delivery_days_range.rb +60 -0
- data/lib/wallee-ruby-sdk/models/delivery_destination.rb +51 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level.rb +403 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session_state.rb → dunning_case_level_state.rb} +7 -7
- data/lib/wallee-ruby-sdk/models/extended_rest_o_auth_client.rb +425 -0
- data/lib/wallee-ruby-sdk/models/fulfillment.rb +428 -0
- data/lib/wallee-ruby-sdk/models/fulfillment_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/fulfillment_state.rb +52 -0
- data/lib/wallee-ruby-sdk/models/identity_info.rb +279 -0
- data/lib/wallee-ruby-sdk/models/invoice_processor.rb +51 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link.rb +278 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement.rb +463 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
- data/lib/wallee-ruby-sdk/models/legal_form.rb +83 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_state.rb +50 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
- data/lib/wallee-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
- data/lib/wallee-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
- data/lib/wallee-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
- data/lib/wallee-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
- data/lib/wallee-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_address_change_response.rb → merchant_related_persons_dto.rb} +22 -20
- data/lib/wallee-ruby-sdk/models/o_auth_client.rb +397 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client_create.rb +365 -0
- data/lib/wallee-ruby-sdk/models/{user_space_role_list_response.rb → o_auth_client_list_response.rb} +4 -4
- data/lib/wallee-ruby-sdk/models/o_auth_client_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client_update.rb +374 -0
- data/lib/wallee-ruby-sdk/models/o_auth_consent.rb +321 -0
- data/lib/wallee-ruby-sdk/models/{user_account_role_list_response.rb → o_auth_consent_list_response.rb} +4 -4
- data/lib/wallee-ruby-sdk/models/o_auth_consent_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{user_account_role.rb → o_auth_user.rb} +56 -29
- data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_approval_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -10
- data/lib/wallee-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb} +57 -72
- data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal.rb +37 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +1 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
- data/lib/wallee-ruby-sdk/models/{express_checkout_create_response.rb → payout_account_info.rb} +31 -22
- data/lib/wallee-ruby-sdk/models/person_salutation.rb +54 -0
- data/lib/wallee-ruby-sdk/models/pricing_history_dto.rb +266 -0
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +11 -1
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/refund_days_range.rb +51 -0
- data/lib/wallee-ruby-sdk/models/refund_percentage_range.rb +56 -0
- data/lib/wallee-ruby-sdk/models/related_person.rb +329 -0
- data/lib/wallee-ruby-sdk/models/representative_info.rb +239 -0
- data/lib/wallee-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
- data/lib/wallee-ruby-sdk/models/{express_checkout_approval_response.rb → rest_o_auth_client_secret.rb} +19 -17
- data/lib/wallee-ruby-sdk/models/rest_o_auth_client_secret_created.rb +289 -0
- data/lib/wallee-ruby-sdk/models/role.rb +13 -1
- data/lib/wallee-ruby-sdk/models/role_create.rb +13 -1
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_request.rb → role_ref.rb} +21 -11
- data/lib/wallee-ruby-sdk/models/role_update.rb +13 -1
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +15 -230
- data/lib/wallee-ruby-sdk/models/scope.rb +13 -1
- data/lib/wallee-ruby-sdk/models/secret_key_state.rb +51 -0
- data/lib/wallee-ruby-sdk/models/setter.rb +618 -0
- data/lib/wallee-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
- data/lib/wallee-ruby-sdk/models/sole_proprietorship_info.rb +261 -0
- data/lib/wallee-ruby-sdk/models/state_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
- data/lib/wallee-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session_create.rb → subscription_component_group_configuration_request.rb} +23 -37
- data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_response.rb → subscription_product_dto.rb} +16 -18
- data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
- data/lib/wallee-ruby-sdk/models/tracking_number_request.rb +230 -0
- data/lib/wallee-ruby-sdk/models/transaction_overview.rb +1144 -0
- data/lib/wallee-ruby-sdk/models/transaction_projection.rb +1135 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership.rb +357 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
- data/lib/wallee-ruby-sdk/models/wallet_type.rb +40 -1
- data/lib/wallee-ruby-sdk/models/web_ui_account_theme.rb +230 -0
- data/lib/wallee-ruby-sdk/service/accounts_service.rb +16 -9
- data/lib/wallee-ruby-sdk/service/analytics_queries_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/bank_accounts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
- data/lib/wallee-ruby-sdk/service/charge_attempts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_flows_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/consumed_resources_service.rb +1 -1
- data/lib/wallee-ruby-sdk/service/countries_service.rb +15 -6
- data/lib/wallee-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/customer_addresses_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/customer_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/customers_service.rb +11 -11
- data/lib/wallee-ruby-sdk/service/debt_collection_cases_service.rb +12 -12
- data/lib/wallee-ruby-sdk/service/debt_collector_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/delivery_indications_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/document_templates_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
- data/lib/wallee-ruby-sdk/service/dunning_cases_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/dunning_flows_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/fulfillments_service.rb +355 -0
- data/lib/wallee-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
- data/lib/wallee-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
- data/lib/wallee-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
- data/lib/wallee-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
- data/lib/wallee-ruby-sdk/service/join_partnership_service.rb +586 -0
- data/lib/wallee-ruby-sdk/service/manual_tasks_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/members_service.rb +215 -0
- data/lib/wallee-ruby-sdk/service/merchant_applications_service.rb +334 -0
- data/lib/wallee-ruby-sdk/service/o_auth_clients_service.rb +611 -0
- data/lib/wallee-ruby-sdk/service/o_auth_consents_service.rb +332 -0
- data/lib/wallee-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_links_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
- data/lib/wallee-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/payment_terminals_service.rb +475 -22
- data/lib/wallee-ruby-sdk/service/payment_web_apps_service.rb +11 -11
- data/lib/wallee-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/refund_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/refunds_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/spaces_service.rb +10 -3
- data/lib/wallee-ruby-sdk/service/subscribers_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_charges_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_metrics_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_components_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/subscription_products_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_versions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscriptions_service.rb +13 -13
- data/lib/wallee-ruby-sdk/service/terminal_locations_service.rb +276 -0
- data/lib/wallee-ruby-sdk/service/token_versions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/tokens_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transaction_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_completions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_invoices_service.rb +86 -8
- data/lib/wallee-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/transaction_voids_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transactions_service.rb +179 -37
- data/lib/wallee-ruby-sdk/service/web_apps_service.rb +2 -2
- data/lib/wallee-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
- data/lib/wallee-ruby-sdk/service/webhook_listeners_service.rb +9 -9
- data/lib/wallee-ruby-sdk/service/webhook_urls_service.rb +9 -9
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/lib/wallee-ruby-sdk.rb +115 -25
- metadata +117 -27
- data/lib/wallee-ruby-sdk/service/application_users_roles_service.rb +0 -478
- data/lib/wallee-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
- data/lib/wallee-ruby-sdk/service/express_checkout_service.rb +0 -269
- data/lib/wallee-ruby-sdk/service/human_users_roles_service.rb +0 -478
- data/lib/wallee-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
# Wallee AG Ruby SDK
|
|
3
|
+
#
|
|
4
|
+
# This library allows to interact with the Wallee AG payment service.
|
|
5
|
+
#
|
|
6
|
+
# Copyright owner: Wallee AG
|
|
7
|
+
# Website: https://en.wallee.com
|
|
8
|
+
# Developer email: ecosystem-team@wallee.com
|
|
9
|
+
#
|
|
10
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
# you may not use this file except in compliance with the License.
|
|
12
|
+
# You may obtain a copy of the License at
|
|
13
|
+
#
|
|
14
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
#
|
|
16
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
# See the License for the specific language governing permissions and
|
|
20
|
+
# limitations under the License.
|
|
21
|
+
=end
|
|
22
|
+
|
|
23
|
+
require 'cgi'
|
|
24
|
+
|
|
25
|
+
module WalleeRubySdk
|
|
26
|
+
class OAuthClientsService
|
|
27
|
+
attr_accessor :api_client
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def initialize(api_client = ApiClient.default)
|
|
31
|
+
@api_client = api_client
|
|
32
|
+
end
|
|
33
|
+
# Deactivate a client secret
|
|
34
|
+
# @param client_id [Integer]
|
|
35
|
+
# @param id [Integer]
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @return [nil]
|
|
38
|
+
def delete_oauth2_clients_client_id_secrets_id(client_id, id, opts = {})
|
|
39
|
+
delete_oauth2_clients_client_id_secrets_id_with_http_info(client_id, id, opts)
|
|
40
|
+
nil
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Deactivate a client secret
|
|
44
|
+
|
|
45
|
+
# @param client_id [Integer]
|
|
46
|
+
# @param id [Integer]
|
|
47
|
+
# @param [Hash] opts the optional parameters
|
|
48
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
49
|
+
def delete_oauth2_clients_client_id_secrets_id_with_http_info(client_id, id, opts = {})
|
|
50
|
+
if @api_client.config.debugging
|
|
51
|
+
@api_client.config.logger.debug 'Calling API: OAuthClientsService.delete_oauth2_clients_client_id_secrets_id ...'
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'client_id' is set
|
|
54
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling OAuthClientsService.delete_oauth2_clients_client_id_secrets_id"
|
|
56
|
+
end
|
|
57
|
+
# verify the required parameter 'id' is set
|
|
58
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
59
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OAuthClientsService.delete_oauth2_clients_client_id_secrets_id"
|
|
60
|
+
end
|
|
61
|
+
# resource path
|
|
62
|
+
local_var_path = '/oauth2/clients/{clientId}/secrets/{id}'.sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
63
|
+
|
|
64
|
+
# query parameters
|
|
65
|
+
query_params = opts[:query_params] || {}
|
|
66
|
+
|
|
67
|
+
# header parameters
|
|
68
|
+
header_params = opts[:header_params] || {}
|
|
69
|
+
# HTTP header 'Accept' (if needed)
|
|
70
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
71
|
+
|
|
72
|
+
# form parameters
|
|
73
|
+
form_params = opts[:form_params] || {}
|
|
74
|
+
|
|
75
|
+
# connection timeout
|
|
76
|
+
connection_timeout = @api_client.config.timeout
|
|
77
|
+
|
|
78
|
+
# http body (model)
|
|
79
|
+
post_body = opts[:debug_body]
|
|
80
|
+
|
|
81
|
+
# return_type
|
|
82
|
+
return_type = opts[:debug_return_type]
|
|
83
|
+
|
|
84
|
+
new_options = opts.merge(
|
|
85
|
+
:operation => :"OAuthClientsService.delete_oauth2_clients_client_id_secrets_id",
|
|
86
|
+
:header_params => header_params,
|
|
87
|
+
:query_params => query_params,
|
|
88
|
+
:form_params => form_params,
|
|
89
|
+
:body => post_body,
|
|
90
|
+
:return_type => return_type
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
data, status_code, headers = @api_client.call_api(:DELETE.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
94
|
+
if @api_client.config.debugging
|
|
95
|
+
@api_client.config.logger.debug "API called: OAuthClientsService#delete_oauth2_clients_client_id_secrets_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
96
|
+
end
|
|
97
|
+
return data, status_code, headers
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
# Delete a OAuth Client
|
|
102
|
+
# Permanently deletes a OAuth Client. It cannot be undone.
|
|
103
|
+
# @param id [Integer]
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @return [nil]
|
|
106
|
+
def delete_oauth2_clients_id(id, opts = {})
|
|
107
|
+
delete_oauth2_clients_id_with_http_info(id, opts)
|
|
108
|
+
nil
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Delete a OAuth Client
|
|
112
|
+
# Permanently deletes a OAuth Client. It cannot be undone.
|
|
113
|
+
|
|
114
|
+
# @param id [Integer]
|
|
115
|
+
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
117
|
+
def delete_oauth2_clients_id_with_http_info(id, opts = {})
|
|
118
|
+
if @api_client.config.debugging
|
|
119
|
+
@api_client.config.logger.debug 'Calling API: OAuthClientsService.delete_oauth2_clients_id ...'
|
|
120
|
+
end
|
|
121
|
+
# verify the required parameter 'id' is set
|
|
122
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
123
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OAuthClientsService.delete_oauth2_clients_id"
|
|
124
|
+
end
|
|
125
|
+
# resource path
|
|
126
|
+
local_var_path = '/oauth2/clients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
127
|
+
|
|
128
|
+
# query parameters
|
|
129
|
+
query_params = opts[:query_params] || {}
|
|
130
|
+
|
|
131
|
+
# header parameters
|
|
132
|
+
header_params = opts[:header_params] || {}
|
|
133
|
+
# HTTP header 'Accept' (if needed)
|
|
134
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
135
|
+
|
|
136
|
+
# form parameters
|
|
137
|
+
form_params = opts[:form_params] || {}
|
|
138
|
+
|
|
139
|
+
# connection timeout
|
|
140
|
+
connection_timeout = @api_client.config.timeout
|
|
141
|
+
|
|
142
|
+
# http body (model)
|
|
143
|
+
post_body = opts[:debug_body]
|
|
144
|
+
|
|
145
|
+
# return_type
|
|
146
|
+
return_type = opts[:debug_return_type]
|
|
147
|
+
|
|
148
|
+
new_options = opts.merge(
|
|
149
|
+
:operation => :"OAuthClientsService.delete_oauth2_clients_id",
|
|
150
|
+
:header_params => header_params,
|
|
151
|
+
:query_params => query_params,
|
|
152
|
+
:form_params => form_params,
|
|
153
|
+
:body => post_body,
|
|
154
|
+
:return_type => return_type
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
data, status_code, headers = @api_client.call_api(:DELETE.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
158
|
+
if @api_client.config.debugging
|
|
159
|
+
@api_client.config.logger.debug "API called: OAuthClientsService#delete_oauth2_clients_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
160
|
+
end
|
|
161
|
+
return data, status_code, headers
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
# List all OAuth Clients
|
|
166
|
+
# @param [Hash] opts the optional parameters
|
|
167
|
+
# @option opts [Integer] :after Set to an object's ID to retrieve the page of objects coming immediately after the named object.
|
|
168
|
+
# @option opts [Integer] :before Set to an object's ID to retrieve the page of objects coming immediately before the named object.
|
|
169
|
+
# @option opts [Array<String>] :expand
|
|
170
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
|
|
171
|
+
# @option opts [SortingOrder] :order Specify to retrieve objects in chronological (ASC) or reverse chronological (DESC) order.
|
|
172
|
+
# @return [OAuthClientListResponse]
|
|
173
|
+
def get_oauth2_clients(opts = {})
|
|
174
|
+
data, _status_code, _headers = get_oauth2_clients_with_http_info(opts)
|
|
175
|
+
data
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# List all OAuth Clients
|
|
179
|
+
|
|
180
|
+
# @param [Hash] opts the optional parameters
|
|
181
|
+
# @option opts [Integer] :after Set to an object's ID to retrieve the page of objects coming immediately after the named object.
|
|
182
|
+
# @option opts [Integer] :before Set to an object's ID to retrieve the page of objects coming immediately before the named object.
|
|
183
|
+
# @option opts [Array<String>] :expand
|
|
184
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
|
|
185
|
+
# @option opts [SortingOrder] :order Specify to retrieve objects in chronological (ASC) or reverse chronological (DESC) order.
|
|
186
|
+
# @return [Array<(OAuthClientListResponse, Integer, Hash)>] OAuthClientListResponse data, response status code and response headers
|
|
187
|
+
def get_oauth2_clients_with_http_info(opts = {})
|
|
188
|
+
if @api_client.config.debugging
|
|
189
|
+
@api_client.config.logger.debug 'Calling API: OAuthClientsService.get_oauth2_clients ...'
|
|
190
|
+
end
|
|
191
|
+
if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 1
|
|
192
|
+
fail ArgumentError, 'invalid value for "opts[:"after"]" when calling OAuthClientsService.get_oauth2_clients, must be greater than or equal to 1.'
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if @api_client.config.client_side_validation && !opts[:'before'].nil? && opts[:'before'] < 1
|
|
196
|
+
fail ArgumentError, 'invalid value for "opts[:"before"]" when calling OAuthClientsService.get_oauth2_clients, must be greater than or equal to 1.'
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
200
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OAuthClientsService.get_oauth2_clients, must be smaller than or equal to 100.'
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
204
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OAuthClientsService.get_oauth2_clients, must be greater than or equal to 1.'
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# resource path
|
|
208
|
+
local_var_path = '/oauth2/clients'
|
|
209
|
+
|
|
210
|
+
# query parameters
|
|
211
|
+
query_params = opts[:query_params] || {}
|
|
212
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
213
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
214
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
215
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
216
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
217
|
+
|
|
218
|
+
# header parameters
|
|
219
|
+
header_params = opts[:header_params] || {}
|
|
220
|
+
# HTTP header 'Accept' (if needed)
|
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
222
|
+
|
|
223
|
+
# form parameters
|
|
224
|
+
form_params = opts[:form_params] || {}
|
|
225
|
+
|
|
226
|
+
# connection timeout
|
|
227
|
+
connection_timeout = @api_client.config.timeout
|
|
228
|
+
|
|
229
|
+
# http body (model)
|
|
230
|
+
post_body = opts[:debug_body]
|
|
231
|
+
|
|
232
|
+
# return_type
|
|
233
|
+
return_type = opts[:debug_return_type] || 'OAuthClientListResponse'
|
|
234
|
+
|
|
235
|
+
new_options = opts.merge(
|
|
236
|
+
:operation => :"OAuthClientsService.get_oauth2_clients",
|
|
237
|
+
:header_params => header_params,
|
|
238
|
+
:query_params => query_params,
|
|
239
|
+
:form_params => form_params,
|
|
240
|
+
:body => post_body,
|
|
241
|
+
:return_type => return_type
|
|
242
|
+
)
|
|
243
|
+
|
|
244
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
245
|
+
if @api_client.config.debugging
|
|
246
|
+
@api_client.config.logger.debug "API called: OAuthClientsService#get_oauth2_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
247
|
+
end
|
|
248
|
+
return data, status_code, headers
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
# Retrieve an OAuth Client
|
|
253
|
+
# @param id [Integer]
|
|
254
|
+
# @param [Hash] opts the optional parameters
|
|
255
|
+
# @option opts [Array<String>] :expand
|
|
256
|
+
# @return [ExtendedRestOAuthClient]
|
|
257
|
+
def get_oauth2_clients_id(id, opts = {})
|
|
258
|
+
data, _status_code, _headers = get_oauth2_clients_id_with_http_info(id, opts)
|
|
259
|
+
data
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Retrieve an OAuth Client
|
|
263
|
+
|
|
264
|
+
# @param id [Integer]
|
|
265
|
+
# @param [Hash] opts the optional parameters
|
|
266
|
+
# @option opts [Array<String>] :expand
|
|
267
|
+
# @return [Array<(ExtendedRestOAuthClient, Integer, Hash)>] ExtendedRestOAuthClient data, response status code and response headers
|
|
268
|
+
def get_oauth2_clients_id_with_http_info(id, opts = {})
|
|
269
|
+
if @api_client.config.debugging
|
|
270
|
+
@api_client.config.logger.debug 'Calling API: OAuthClientsService.get_oauth2_clients_id ...'
|
|
271
|
+
end
|
|
272
|
+
# verify the required parameter 'id' is set
|
|
273
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
274
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OAuthClientsService.get_oauth2_clients_id"
|
|
275
|
+
end
|
|
276
|
+
# resource path
|
|
277
|
+
local_var_path = '/oauth2/clients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
278
|
+
|
|
279
|
+
# query parameters
|
|
280
|
+
query_params = opts[:query_params] || {}
|
|
281
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
282
|
+
|
|
283
|
+
# header parameters
|
|
284
|
+
header_params = opts[:header_params] || {}
|
|
285
|
+
# HTTP header 'Accept' (if needed)
|
|
286
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
287
|
+
|
|
288
|
+
# form parameters
|
|
289
|
+
form_params = opts[:form_params] || {}
|
|
290
|
+
|
|
291
|
+
# connection timeout
|
|
292
|
+
connection_timeout = @api_client.config.timeout
|
|
293
|
+
|
|
294
|
+
# http body (model)
|
|
295
|
+
post_body = opts[:debug_body]
|
|
296
|
+
|
|
297
|
+
# return_type
|
|
298
|
+
return_type = opts[:debug_return_type] || 'ExtendedRestOAuthClient'
|
|
299
|
+
|
|
300
|
+
new_options = opts.merge(
|
|
301
|
+
:operation => :"OAuthClientsService.get_oauth2_clients_id",
|
|
302
|
+
:header_params => header_params,
|
|
303
|
+
:query_params => query_params,
|
|
304
|
+
:form_params => form_params,
|
|
305
|
+
:body => post_body,
|
|
306
|
+
:return_type => return_type
|
|
307
|
+
)
|
|
308
|
+
|
|
309
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
310
|
+
if @api_client.config.debugging
|
|
311
|
+
@api_client.config.logger.debug "API called: OAuthClientsService#get_oauth2_clients_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
312
|
+
end
|
|
313
|
+
return data, status_code, headers
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
# Search OAuth Clients
|
|
318
|
+
# @param [Hash] opts the optional parameters
|
|
319
|
+
# @option opts [Array<String>] :expand
|
|
320
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
|
|
321
|
+
# @option opts [Integer] :offset A cursor for pagination, specifies the number of objects to skip.
|
|
322
|
+
# @option opts [String] :order The fields and order to sort the objects by.
|
|
323
|
+
# @option opts [String] :query The search query to filter the objects by.
|
|
324
|
+
# @return [OAuthClientSearchResponse]
|
|
325
|
+
def get_oauth2_clients_search(opts = {})
|
|
326
|
+
data, _status_code, _headers = get_oauth2_clients_search_with_http_info(opts)
|
|
327
|
+
data
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# Search OAuth Clients
|
|
331
|
+
|
|
332
|
+
# @param [Hash] opts the optional parameters
|
|
333
|
+
# @option opts [Array<String>] :expand
|
|
334
|
+
# @option opts [Integer] :limit A limit on the number of objects to be returned, between 1 and 100. Default is 10.
|
|
335
|
+
# @option opts [Integer] :offset A cursor for pagination, specifies the number of objects to skip.
|
|
336
|
+
# @option opts [String] :order The fields and order to sort the objects by.
|
|
337
|
+
# @option opts [String] :query The search query to filter the objects by.
|
|
338
|
+
# @return [Array<(OAuthClientSearchResponse, Integer, Hash)>] OAuthClientSearchResponse data, response status code and response headers
|
|
339
|
+
def get_oauth2_clients_search_with_http_info(opts = {})
|
|
340
|
+
if @api_client.config.debugging
|
|
341
|
+
@api_client.config.logger.debug 'Calling API: OAuthClientsService.get_oauth2_clients_search ...'
|
|
342
|
+
end
|
|
343
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
344
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OAuthClientsService.get_oauth2_clients_search, must be smaller than or equal to 100.'
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
348
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OAuthClientsService.get_oauth2_clients_search, must be greater than or equal to 1.'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 10000
|
|
352
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling OAuthClientsService.get_oauth2_clients_search, must be smaller than or equal to 10000.'
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# resource path
|
|
356
|
+
local_var_path = '/oauth2/clients/search'
|
|
357
|
+
|
|
358
|
+
# query parameters
|
|
359
|
+
query_params = opts[:query_params] || {}
|
|
360
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
361
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
362
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
363
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
364
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
|
365
|
+
|
|
366
|
+
# header parameters
|
|
367
|
+
header_params = opts[:header_params] || {}
|
|
368
|
+
# HTTP header 'Accept' (if needed)
|
|
369
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
370
|
+
|
|
371
|
+
# form parameters
|
|
372
|
+
form_params = opts[:form_params] || {}
|
|
373
|
+
|
|
374
|
+
# connection timeout
|
|
375
|
+
connection_timeout = @api_client.config.timeout
|
|
376
|
+
|
|
377
|
+
# http body (model)
|
|
378
|
+
post_body = opts[:debug_body]
|
|
379
|
+
|
|
380
|
+
# return_type
|
|
381
|
+
return_type = opts[:debug_return_type] || 'OAuthClientSearchResponse'
|
|
382
|
+
|
|
383
|
+
new_options = opts.merge(
|
|
384
|
+
:operation => :"OAuthClientsService.get_oauth2_clients_search",
|
|
385
|
+
:header_params => header_params,
|
|
386
|
+
:query_params => query_params,
|
|
387
|
+
:form_params => form_params,
|
|
388
|
+
:body => post_body,
|
|
389
|
+
:return_type => return_type
|
|
390
|
+
)
|
|
391
|
+
|
|
392
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
393
|
+
if @api_client.config.debugging
|
|
394
|
+
@api_client.config.logger.debug "API called: OAuthClientsService#get_oauth2_clients_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
395
|
+
end
|
|
396
|
+
return data, status_code, headers
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
# Update a OAuth Client
|
|
401
|
+
# @param id [Integer]
|
|
402
|
+
# @param o_auth_client_update [OAuthClientUpdate]
|
|
403
|
+
# @param [Hash] opts the optional parameters
|
|
404
|
+
# @option opts [Array<String>] :expand
|
|
405
|
+
# @return [OAuthClient]
|
|
406
|
+
def patch_oauth2_clients_id(id, o_auth_client_update, opts = {})
|
|
407
|
+
data, _status_code, _headers = patch_oauth2_clients_id_with_http_info(id, o_auth_client_update, opts)
|
|
408
|
+
data
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Update a OAuth Client
|
|
412
|
+
|
|
413
|
+
# @param id [Integer]
|
|
414
|
+
# @param o_auth_client_update [OAuthClientUpdate]
|
|
415
|
+
# @param [Hash] opts the optional parameters
|
|
416
|
+
# @option opts [Array<String>] :expand
|
|
417
|
+
# @return [Array<(OAuthClient, Integer, Hash)>] OAuthClient data, response status code and response headers
|
|
418
|
+
def patch_oauth2_clients_id_with_http_info(id, o_auth_client_update, opts = {})
|
|
419
|
+
if @api_client.config.debugging
|
|
420
|
+
@api_client.config.logger.debug 'Calling API: OAuthClientsService.patch_oauth2_clients_id ...'
|
|
421
|
+
end
|
|
422
|
+
# verify the required parameter 'id' is set
|
|
423
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
424
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OAuthClientsService.patch_oauth2_clients_id"
|
|
425
|
+
end
|
|
426
|
+
# verify the required parameter 'o_auth_client_update' is set
|
|
427
|
+
if @api_client.config.client_side_validation && o_auth_client_update.nil?
|
|
428
|
+
fail ArgumentError, "Missing the required parameter 'o_auth_client_update' when calling OAuthClientsService.patch_oauth2_clients_id"
|
|
429
|
+
end
|
|
430
|
+
# resource path
|
|
431
|
+
local_var_path = '/oauth2/clients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
432
|
+
|
|
433
|
+
# query parameters
|
|
434
|
+
query_params = opts[:query_params] || {}
|
|
435
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
436
|
+
|
|
437
|
+
# header parameters
|
|
438
|
+
header_params = opts[:header_params] || {}
|
|
439
|
+
# HTTP header 'Accept' (if needed)
|
|
440
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
441
|
+
# HTTP header 'Content-Type'
|
|
442
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
443
|
+
if !content_type.nil?
|
|
444
|
+
header_params['Content-Type'] = content_type
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# form parameters
|
|
448
|
+
form_params = opts[:form_params] || {}
|
|
449
|
+
|
|
450
|
+
# connection timeout
|
|
451
|
+
connection_timeout = @api_client.config.timeout
|
|
452
|
+
|
|
453
|
+
# http body (model)
|
|
454
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(o_auth_client_update)
|
|
455
|
+
|
|
456
|
+
# return_type
|
|
457
|
+
return_type = opts[:debug_return_type] || 'OAuthClient'
|
|
458
|
+
|
|
459
|
+
new_options = opts.merge(
|
|
460
|
+
:operation => :"OAuthClientsService.patch_oauth2_clients_id",
|
|
461
|
+
:header_params => header_params,
|
|
462
|
+
:query_params => query_params,
|
|
463
|
+
:form_params => form_params,
|
|
464
|
+
:body => post_body,
|
|
465
|
+
:return_type => return_type
|
|
466
|
+
)
|
|
467
|
+
|
|
468
|
+
data, status_code, headers = @api_client.call_api(:PATCH.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
469
|
+
if @api_client.config.debugging
|
|
470
|
+
@api_client.config.logger.debug "API called: OAuthClientsService#patch_oauth2_clients_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
471
|
+
end
|
|
472
|
+
return data, status_code, headers
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
# Create a OAuth Client
|
|
477
|
+
# @param o_auth_client_create [OAuthClientCreate]
|
|
478
|
+
# @param [Hash] opts the optional parameters
|
|
479
|
+
# @option opts [Array<String>] :expand
|
|
480
|
+
# @return [OAuthClient]
|
|
481
|
+
def post_oauth2_clients(o_auth_client_create, opts = {})
|
|
482
|
+
data, _status_code, _headers = post_oauth2_clients_with_http_info(o_auth_client_create, opts)
|
|
483
|
+
data
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
# Create a OAuth Client
|
|
487
|
+
|
|
488
|
+
# @param o_auth_client_create [OAuthClientCreate]
|
|
489
|
+
# @param [Hash] opts the optional parameters
|
|
490
|
+
# @option opts [Array<String>] :expand
|
|
491
|
+
# @return [Array<(OAuthClient, Integer, Hash)>] OAuthClient data, response status code and response headers
|
|
492
|
+
def post_oauth2_clients_with_http_info(o_auth_client_create, opts = {})
|
|
493
|
+
if @api_client.config.debugging
|
|
494
|
+
@api_client.config.logger.debug 'Calling API: OAuthClientsService.post_oauth2_clients ...'
|
|
495
|
+
end
|
|
496
|
+
# verify the required parameter 'o_auth_client_create' is set
|
|
497
|
+
if @api_client.config.client_side_validation && o_auth_client_create.nil?
|
|
498
|
+
fail ArgumentError, "Missing the required parameter 'o_auth_client_create' when calling OAuthClientsService.post_oauth2_clients"
|
|
499
|
+
end
|
|
500
|
+
# resource path
|
|
501
|
+
local_var_path = '/oauth2/clients'
|
|
502
|
+
|
|
503
|
+
# query parameters
|
|
504
|
+
query_params = opts[:query_params] || {}
|
|
505
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
506
|
+
|
|
507
|
+
# header parameters
|
|
508
|
+
header_params = opts[:header_params] || {}
|
|
509
|
+
# HTTP header 'Accept' (if needed)
|
|
510
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
511
|
+
# HTTP header 'Content-Type'
|
|
512
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
513
|
+
if !content_type.nil?
|
|
514
|
+
header_params['Content-Type'] = content_type
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
# form parameters
|
|
518
|
+
form_params = opts[:form_params] || {}
|
|
519
|
+
|
|
520
|
+
# connection timeout
|
|
521
|
+
connection_timeout = @api_client.config.timeout
|
|
522
|
+
|
|
523
|
+
# http body (model)
|
|
524
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(o_auth_client_create)
|
|
525
|
+
|
|
526
|
+
# return_type
|
|
527
|
+
return_type = opts[:debug_return_type] || 'OAuthClient'
|
|
528
|
+
|
|
529
|
+
new_options = opts.merge(
|
|
530
|
+
:operation => :"OAuthClientsService.post_oauth2_clients",
|
|
531
|
+
:header_params => header_params,
|
|
532
|
+
:query_params => query_params,
|
|
533
|
+
:form_params => form_params,
|
|
534
|
+
:body => post_body,
|
|
535
|
+
:return_type => return_type
|
|
536
|
+
)
|
|
537
|
+
|
|
538
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
539
|
+
if @api_client.config.debugging
|
|
540
|
+
@api_client.config.logger.debug "API called: OAuthClientsService#post_oauth2_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
541
|
+
end
|
|
542
|
+
return data, status_code, headers
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
# Generate a new client secret
|
|
547
|
+
# @param client_id [Integer]
|
|
548
|
+
# @param [Hash] opts the optional parameters
|
|
549
|
+
# @option opts [Array<String>] :expand
|
|
550
|
+
# @return [RestOAuthClientSecret]
|
|
551
|
+
def post_oauth2_clients_client_id_secrets(client_id, opts = {})
|
|
552
|
+
data, _status_code, _headers = post_oauth2_clients_client_id_secrets_with_http_info(client_id, opts)
|
|
553
|
+
data
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
# Generate a new client secret
|
|
557
|
+
|
|
558
|
+
# @param client_id [Integer]
|
|
559
|
+
# @param [Hash] opts the optional parameters
|
|
560
|
+
# @option opts [Array<String>] :expand
|
|
561
|
+
# @return [Array<(RestOAuthClientSecret, Integer, Hash)>] RestOAuthClientSecret data, response status code and response headers
|
|
562
|
+
def post_oauth2_clients_client_id_secrets_with_http_info(client_id, opts = {})
|
|
563
|
+
if @api_client.config.debugging
|
|
564
|
+
@api_client.config.logger.debug 'Calling API: OAuthClientsService.post_oauth2_clients_client_id_secrets ...'
|
|
565
|
+
end
|
|
566
|
+
# verify the required parameter 'client_id' is set
|
|
567
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
|
568
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling OAuthClientsService.post_oauth2_clients_client_id_secrets"
|
|
569
|
+
end
|
|
570
|
+
# resource path
|
|
571
|
+
local_var_path = '/oauth2/clients/{clientId}/secrets'.sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s))
|
|
572
|
+
|
|
573
|
+
# query parameters
|
|
574
|
+
query_params = opts[:query_params] || {}
|
|
575
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
576
|
+
|
|
577
|
+
# header parameters
|
|
578
|
+
header_params = opts[:header_params] || {}
|
|
579
|
+
# HTTP header 'Accept' (if needed)
|
|
580
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
581
|
+
|
|
582
|
+
# form parameters
|
|
583
|
+
form_params = opts[:form_params] || {}
|
|
584
|
+
|
|
585
|
+
# connection timeout
|
|
586
|
+
connection_timeout = @api_client.config.timeout
|
|
587
|
+
|
|
588
|
+
# http body (model)
|
|
589
|
+
post_body = opts[:debug_body]
|
|
590
|
+
|
|
591
|
+
# return_type
|
|
592
|
+
return_type = opts[:debug_return_type] || 'RestOAuthClientSecret'
|
|
593
|
+
|
|
594
|
+
new_options = opts.merge(
|
|
595
|
+
:operation => :"OAuthClientsService.post_oauth2_clients_client_id_secrets",
|
|
596
|
+
:header_params => header_params,
|
|
597
|
+
:query_params => query_params,
|
|
598
|
+
:form_params => form_params,
|
|
599
|
+
:body => post_body,
|
|
600
|
+
:return_type => return_type
|
|
601
|
+
)
|
|
602
|
+
|
|
603
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
604
|
+
if @api_client.config.debugging
|
|
605
|
+
@api_client.config.logger.debug "API called: OAuthClientsService#post_oauth2_clients_client_id_secrets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
606
|
+
end
|
|
607
|
+
return data, status_code, headers
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
end
|
|
611
|
+
end
|