Class: OpenAI::Models::Beta::Agents::Vaults::CredentialAuth::McpOauth
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Agents::Vaults::CredentialAuth::McpOauth
- Defined in:
- lib/openai/models/beta/agents/vaults/credential_auth.rb,
sig/openai/models/beta/agents/vaults/credential_auth.rbs
Defined Under Namespace
Classes: Refresh
Instance Attribute Summary collapse
-
#expires_at ⇒ String?
When the OAuth access token expires, as an RFC 3339 timestamp, if known.
-
#mcp_server_url ⇒ String
The HTTPS MCP server URL authorized by this credential.
-
#refresh ⇒ OpenAI::Models::Beta::Agents::Vaults::CredentialAuth::McpOauth::Refresh?
Configuration used to refresh an MCP OAuth access token, excluding secret values.
-
#type ⇒ Symbol, :mcp_oauth
The type of the object.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(expires_at:, mcp_server_url:, refresh:, type: :mcp_oauth) ⇒ Object
constructor
Public metadata for an OAuth credential; tokens and client secrets are never returned.
- #to_hash ⇒ {
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
#initialize(expires_at:, mcp_server_url:, refresh:, type: :mcp_oauth) ⇒ Object
Public metadata for an OAuth credential; tokens and client secrets are never returned.
|
|
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 53
|
Instance Attribute Details
#expires_at ⇒ String?
When the OAuth access token expires, as an RFC 3339 timestamp, if known.
26 |
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 26 required :expires_at, String, nil?: true |
#mcp_server_url ⇒ String
The HTTPS MCP server URL authorized by this credential.
32 |
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 32 required :mcp_server_url, String |
#refresh ⇒ OpenAI::Models::Beta::Agents::Vaults::CredentialAuth::McpOauth::Refresh?
Configuration used to refresh an MCP OAuth access token, excluding secret values.
39 40 41 42 43 44 45 |
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 39 required( :refresh, -> { OpenAI::Beta::Agents::Vaults::CredentialAuth::McpOauth::Refresh }, nil?: true ) |
#type ⇒ Symbol, :mcp_oauth
The type of the object. Always mcp_oauth.
51 |
# File 'lib/openai/models/beta/agents/vaults/credential_auth.rb', line 51 required :type, const: :mcp_oauth |
Instance Method Details
#to_hash ⇒ {
37 |
# File 'sig/openai/models/beta/agents/vaults/credential_auth.rbs', line 37
def to_hash: -> {
|