Class: Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb

Defined Under Namespace

Modules: TokenEndpointAuth

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(client_id:, token_endpoint:, token_endpoint_auth:, resource: nil, scope: nil) ⇒ Object

OAuth refresh token configuration returned in credential responses.

Parameters:



# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb', line 39

Instance Attribute Details

#client_idString

OAuth client ID.

Returns:

  • (String)


12
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb', line 12

required :client_id, String

#resourceString?

OAuth resource indicator.

Returns:

  • (String, nil)


31
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb', line 31

optional :resource, String, nil?: true

#scopeString?

OAuth scope for the refresh request.

Returns:

  • (String, nil)


37
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb', line 37

optional :scope, String, nil?: true

#token_endpointString

Token endpoint URL used to refresh the access token.

Returns:

  • (String)


18
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb', line 18

required :token_endpoint, String

#token_endpoint_authAnthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthNoneResponse, ...

Token endpoint requires no client authentication.



24
25
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb', line 24

required :token_endpoint_auth,
union: -> { Anthropic::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshResponse::TokenEndpointAuth }