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.
public final classBetaManagedAgentsMcpOAuthAuthResponse.Type
-
Method Summary
Modifier and Type Method Description final StringmcpServerUrl()URL of the MCP server this credential authenticates against. final BetaManagedAgentsMcpOAuthAuthResponse.Typetype()final Optional<OffsetDateTime>expiresAt()A timestamp in RFC 3339 format final Optional<BetaManagedAgentsMcpOAuthRefreshResponse>refresh()OAuth refresh token configuration returned in credential responses. final JsonField<String>_mcpServerUrl()Returns the raw JSON value of mcpServerUrl. final JsonField<BetaManagedAgentsMcpOAuthAuthResponse.Type>_type()Returns the raw JSON value of type. 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. -
-
Method Detail
-
mcpServerUrl
final String mcpServerUrl()
URL of the MCP server this credential authenticates against.
-
type
final BetaManagedAgentsMcpOAuthAuthResponse.Type type()
-
expiresAt
final Optional<OffsetDateTime> expiresAt()
A timestamp in RFC 3339 format
-
refresh
final Optional<BetaManagedAgentsMcpOAuthRefreshResponse> refresh()
OAuth refresh token configuration returned in credential responses.
-
_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.
-
_type
final JsonField<BetaManagedAgentsMcpOAuthAuthResponse.Type> _type()
Returns the raw JSON value of type.
Unlike type, 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() .type()
-
-
-
-