Class BetaManagedAgentsMcpOAuthAuthResponse
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpOAuthAuthResponseOAuth credential details for an MCP server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMcpOAuthAuthResponse.BuilderA builder for BetaManagedAgentsMcpOAuthAuthResponse.
-
Method Summary
Modifier and Type Method Description final StringmcpServerUrl()URL of the MCP server this credential authenticates against. final Optional<OffsetDateTime>expiresAt()When the credential's access token expires, in RFC 3339. final Optional<BetaManagedAgentsMcpOAuthRefreshResponse>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>_mcpServerUrl()Returns the raw JSON value of mcpServerUrl. final JsonField<OffsetDateTime>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<BetaManagedAgentsMcpOAuthRefreshResponse>_refresh()Returns the raw JSON value of refresh. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMcpOAuthAuthResponse.BuildertoBuilder()final BetaManagedAgentsMcpOAuthAuthResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMcpOAuthAuthResponse.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpOAuthAuthResponse. final static BetaManagedAgentsMcpOAuthAuthResponseof(String mcpServerUrl)Returns an immutable instance of BetaManagedAgentsMcpOAuthAuthResponse with the required mcpServerUrl set to the given value. -
-
Method Detail
-
mcpServerUrl
final String mcpServerUrl()
URL of the MCP server this credential authenticates against.
-
expiresAt
final Optional<OffsetDateTime> expiresAt()
When the credential's access token expires, in RFC 3339. Absent if the expiry isn't known.
-
refresh
final Optional<BetaManagedAgentsMcpOAuthRefreshResponse> 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).
-
_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<BetaManagedAgentsMcpOAuthRefreshResponse> _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 BetaManagedAgentsMcpOAuthAuthResponse.Builder toBuilder()
-
validate
final BetaManagedAgentsMcpOAuthAuthResponse 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 BetaManagedAgentsMcpOAuthAuthResponse.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpOAuthAuthResponse.
The following fields are required:
.mcpServerUrl()
-
of
final static BetaManagedAgentsMcpOAuthAuthResponse of(String mcpServerUrl)
Returns an immutable instance of BetaManagedAgentsMcpOAuthAuthResponse with the required mcpServerUrl set to the given value.
-
-
-
-