Class BetaManagedAgentsMcpOAuthUpdateParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMcpOAuthUpdateParamsParameters for updating an MCP OAuth credential. The
mcp_server_urlis immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMcpOAuthUpdateParams.BuilderA builder for BetaManagedAgentsMcpOAuthUpdateParams.
-
Method Summary
Modifier and Type Method Description final Optional<String>accessToken()The new OAuth access token to replace the stored one. final Optional<OffsetDateTime>expiresAt()When the credential's access token expires, in RFC 3339. final Optional<BetaManagedAgentsMcpOAuthRefreshUpdateParams>refresh()Updated refresh token configuration. 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<OffsetDateTime>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<BetaManagedAgentsMcpOAuthRefreshUpdateParams>_refresh()Returns the raw JSON value of refresh. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMcpOAuthUpdateParams.BuildertoBuilder()final BetaManagedAgentsMcpOAuthUpdateParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMcpOAuthUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpOAuthUpdateParams. -
-
Method Detail
-
accessToken
final Optional<String> accessToken()
The new OAuth access token to replace the stored one.
-
expiresAt
final Optional<OffsetDateTime> expiresAt()
When the credential's access token expires, in RFC 3339. Leave it out to keep the stored expiry.
If you send a new
access_token, send itsexpires_attoo, or the new token keeps the old expiry.Must be in the future.
-
refresh
final Optional<BetaManagedAgentsMcpOAuthRefreshUpdateParams> refresh()
Updated refresh token configuration.
-
_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.
-
_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<BetaManagedAgentsMcpOAuthRefreshUpdateParams> _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 BetaManagedAgentsMcpOAuthUpdateParams.Builder toBuilder()
-
validate
final BetaManagedAgentsMcpOAuthUpdateParams 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 BetaManagedAgentsMcpOAuthUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMcpOAuthUpdateParams.
-
-
-
-