Class BetaManagedAgentsMcpOAuthCreateParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpOAuthCreateParamsParameters for creating an MCP OAuth credential.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMcpOAuthCreateParams.BuilderA builder for BetaManagedAgentsMcpOAuthCreateParams.
-
Method Summary
Modifier and Type Method Description final StringaccessToken()The OAuth access token to send to the MCP server. final StringmcpServerUrl()URL of the MCP server this credential authenticates against. final Optional<OffsetDateTime>expiresAt()When access_tokenexpires, in RFC 3339.final Optional<BetaManagedAgentsMcpOAuthRefreshParams>refresh()Refresh token configuration, if the credential supports token refresh. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("mcp_oauth")final JsonField<String>_accessToken()Returns the raw JSON value of accessToken. final JsonField<String>_mcpServerUrl()Returns the raw JSON value of mcpServerUrl. final JsonField<OffsetDateTime>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<BetaManagedAgentsMcpOAuthRefreshParams>_refresh()Returns the raw JSON value of refresh. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMcpOAuthCreateParams.BuildertoBuilder()final BetaManagedAgentsMcpOAuthCreateParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMcpOAuthCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpOAuthCreateParams. -
-
Method Detail
-
accessToken
final String accessToken()
The OAuth access token to send to the MCP server.
-
mcpServerUrl
final String mcpServerUrl()
URL of the MCP server this credential authenticates against.
-
expiresAt
final Optional<OffsetDateTime> expiresAt()
When
access_tokenexpires, in RFC 3339.Must be in the future.
-
refresh
final Optional<BetaManagedAgentsMcpOAuthRefreshParams> refresh()
Refresh token configuration, if the credential supports token refresh.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("mcp_oauth")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_accessToken
final JsonField<String> _accessToken()
Returns the raw JSON value of accessToken.
Unlike accessToken, this method doesn't throw if the JSON field has an unexpected type.
-
_mcpServerUrl
final JsonField<String> _mcpServerUrl()
Returns the raw JSON value of mcpServerUrl.
Unlike mcpServerUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_expiresAt
final JsonField<OffsetDateTime> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_refresh
final JsonField<BetaManagedAgentsMcpOAuthRefreshParams> _refresh()
Returns the raw JSON value of refresh.
Unlike refresh, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsMcpOAuthCreateParams.Builder toBuilder()
-
validate
final BetaManagedAgentsMcpOAuthCreateParams validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsMcpOAuthCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpOAuthCreateParams.
The following fields are required:
.accessToken() .mcpServerUrl()
-
-
-
-