Class: ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::UpdateServiceOidcConfStep
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::UpdateServiceOidcConfStep
- Includes:
- Step
- Defined in:
- lib/3scale_toolbox/commands/import_command/openapi/update_service_oidc_conf_step.rb
Instance Attribute Summary
Attributes included from Step
Instance Method Summary collapse
-
#call ⇒ Object
Updates OIDC config.
Methods included from Step
#api_spec, #backend_api_host_header, #backend_api_secret_token, #base_path, #build_3scale_operations, #default_credentials_userkey, #initialize, #oidc_issuer_endpoint, #operations, #override_private_base_url, #override_private_basepath, #override_public_basepath, #prefix_matching, #private_base_path, #production_public_base_url, #public_base_path, #resource, #service, #service=, #staging_public_base_url, #target_system_name, #threescale_client
Instance Method Details
#call ⇒ Object
Updates OIDC config
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/3scale_toolbox/commands/import_command/openapi/update_service_oidc_conf_step.rb', line 10 def call # setting required attrs, operation is idempotent oidc_settings = {} add_flow_settings(oidc_settings) return unless oidc_settings.size.positive? res = service.update_oidc oidc_settings if (errors = res['errors']) raise ThreeScaleToolbox::Error, "Service oidc has not been updated. #{errors}" end puts 'Service oidc updated' end |