Class: OpenAI::Models::Beta::Agents::Vaults::CredentialAuth::McpOauth::Refresh

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agents/vaults/credential_auth.rb,
sig/openai/models/beta/agents/vaults/credential_auth.rbs

Overview

See Also:

  • OpenAI::Models::Beta::Agents::Vaults::CredentialAuth::McpOauth#refresh

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, 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

#initializeObject



64
# File 'sig/openai/models/beta/agents/vaults/credential_auth.rbs', line 64

def initialize: (

Instance Attribute Details

#client_idString

The OAuth client ID used when requesting a new access token.

Parameters:

  • value (String)

Returns:

  • (String)


76
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 76

required :client_id, String

#resourceString?

The resource URI sent to the OAuth token endpoint during refresh, if configured.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


82
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 82

required :resource, String, nil?: true

#scopeString?

Space-separated OAuth scopes requested during refresh, if configured.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


88
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 88

required :scope, String, nil?: true

#token_endpointString

The HTTPS OAuth token endpoint used for refresh.

Parameters:

  • value (String)

Returns:

  • (String)


94
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 94

required :token_endpoint, String

#token_endpoint_authOpenAI::Models::Beta::Agents::Vaults::McpOauthTokenEndpointAuth::None, ...

How the OAuth client authenticates to the token endpoint, excluding its client secret.



101
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 101

required :token_endpoint_auth, union: -> { OpenAI::Beta::Agents::Vaults::McpOauthTokenEndpointAuth }

Instance Method Details

#to_hash{

Returns:

  • ({)


72
# File 'sig/openai/models/beta/agents/vaults/credential_auth.rbs', line 72

def to_hash: -> {