From 28442479e75e32aef80e07fdf1138c44e43d140b Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Wed, 22 Jul 2026 17:58:54 -0700
Subject: [PATCH] chore: regenerate agentidentitycredentials client
---
.../v1/2.0.0/README.md | 44 ++
.../v1/AgentIdentityCredentials.java | 635 ++++++++++++++++++
.../v1/AgentIdentityCredentialsRequest.java | 267 ++++++++
...IdentityCredentialsRequestInitializer.java | 119 ++++
.../v1/AgentIdentityCredentialsScopes.java | 42 ++
...tidentitycredentialsV1ConsentRejected.java | 43 ++
...edentialsV1FinalizeCredentialsRequest.java | 146 ++++
...dentialsV1FinalizeCredentialsResponse.java | 43 ++
...loudAgentidentitycredentialsV1Pending.java | 44 ++
...edentialsV1RetrieveCredentialsRequest.java | 151 +++++
...dentialsV1RetrieveCredentialsResponse.java | 139 ++++
...loudAgentidentitycredentialsV1Success.java | 169 +++++
...entitycredentialsV1UriConsentRequired.java | 129 ++++
.../v1/2.0.0/pom.xml | 219 ++++++
.../v1/README.md | 44 ++
.../v1alpha/2.0.0/README.md | 44 ++
.../v1alpha/AgentIdentityCredentials.java | 635 ++++++++++++++++++
.../AgentIdentityCredentialsRequest.java | 267 ++++++++
...IdentityCredentialsRequestInitializer.java | 119 ++++
.../AgentIdentityCredentialsScopes.java | 42 ++
...titycredentialsV1alphaConsentRejected.java | 43 ++
...ialsV1alphaFinalizeCredentialsRequest.java | 146 ++++
...alsV1alphaFinalizeCredentialsResponse.java | 43 ++
...gentidentitycredentialsV1alphaPending.java | 44 ++
...ialsV1alphaRetrieveCredentialsRequest.java | 151 +++++
...alsV1alphaRetrieveCredentialsResponse.java | 139 ++++
...gentidentitycredentialsV1alphaSuccess.java | 169 +++++
...ycredentialsV1alphaUriConsentRequired.java | 129 ++++
.../v1alpha/2.0.0/pom.xml | 219 ++++++
.../v1alpha/README.md | 44 ++
30 files changed, 4468 insertions(+)
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/README.md
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/AgentIdentityCredentials.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/AgentIdentityCredentialsRequest.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/AgentIdentityCredentialsRequestInitializer.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/AgentIdentityCredentialsScopes.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1ConsentRejected.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1Pending.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1Success.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1UriConsentRequired.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/2.0.0/pom.xml
create mode 100644 clients/google-api-services-agentidentitycredentials/v1/README.md
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/README.md
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/AgentIdentityCredentials.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/AgentIdentityCredentialsRequest.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/AgentIdentityCredentialsRequestInitializer.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/AgentIdentityCredentialsScopes.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaConsentRejected.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaPending.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsRequest.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaSuccess.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired.java
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/pom.xml
create mode 100644 clients/google-api-services-agentidentitycredentials/v1alpha/README.md
diff --git a/clients/google-api-services-agentidentitycredentials/v1/2.0.0/README.md b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/README.md
new file mode 100644
index 00000000000..bb3e110236f
--- /dev/null
+++ b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/README.md
@@ -0,0 +1,44 @@
+# Agent Identity Credentials API Client Library for Java
+
+agentidentitycredentials.googleapis.com API.
+
+This page contains information about getting started with the Agent Identity Credentials API
+using the Google API Client Library for Java. In addition, you may be interested
+in the following documentation:
+
+* Browse the [Javadoc reference for the Agent Identity Credentials API][javadoc]
+* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client].
+* Interact with this API in your browser using the [APIs Explorer for the Agent Identity Credentials API][api-explorer]
+
+## Installation
+
+### Maven
+
+Add the following lines to your `pom.xml` file:
+
+```xml
+
+ * agentidentitycredentials.googleapis.com API. + *
+ * + *+ * For more information about this service, see the + * API Documentation + *
+ * + *+ * This service uses {@link AgentIdentityCredentialsRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *
+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AgentIdentityCredentials extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.0.0 of the Agent Identity Credentials API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://agentidentitycredentials.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://agentidentitycredentials.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *+ * Use {@link Builder} if you need to specify any of the optional parameters. + *
+ * + * @param transport HTTP transport, which should normally be: + *The typical use is:
+ *
+ * {@code AgentIdentityCredentials agentidentitycredentials = new AgentIdentityCredentials(...);}
+ * {@code AgentIdentityCredentials.Projects.List request = agentidentitycredentials.projects().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Projects projects() {
+ return new Projects();
+ }
+
+ /**
+ * The "projects" collection of methods.
+ */
+ public class Projects {
+
+ /**
+ * An accessor for creating requests from the Locations collection.
+ *
+ * The typical use is:
+ *
+ * {@code AgentIdentityCredentials agentidentitycredentials = new AgentIdentityCredentials(...);}
+ * {@code AgentIdentityCredentials.Locations.List request = agentidentitycredentials.locations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Locations locations() {
+ return new Locations();
+ }
+
+ /**
+ * The "locations" collection of methods.
+ */
+ public class Locations {
+
+ /**
+ * An accessor for creating requests from the AuthProviders collection.
+ *
+ * The typical use is:
+ *
+ * {@code AgentIdentityCredentials agentidentitycredentials = new AgentIdentityCredentials(...);}
+ * {@code AgentIdentityCredentials.AuthProviders.List request = agentidentitycredentials.authProviders().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AuthProviders authProviders() {
+ return new AuthProviders();
+ }
+
+ /**
+ * The "authProviders" collection of methods.
+ */
+ public class AuthProviders {
+
+ /**
+ * An accessor for creating requests from the Credentials collection.
+ *
+ * The typical use is:
+ *
+ * {@code AgentIdentityCredentials agentidentitycredentials = new AgentIdentityCredentials(...);}
+ * {@code AgentIdentityCredentials.Credentials.List request = agentidentitycredentials.credentials().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Credentials credentials() {
+ return new Credentials();
+ }
+
+ /**
+ * The "credentials" collection of methods.
+ */
+ public class Credentials {
+
+ /**
+ * Finalizes the credentials after a successful consent flow.
+ *
+ * Create a request for the method "credentials.finalize".
+ *
+ * This request holds the parameters needed by the agentidentitycredentials server. After setting
+ * any optional parameters, call the {@link Finalize#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param authProvider Required. The resource name of the AuthProvider. Format:
+ * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
+ * @param content the {@link com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest}
+ * @return the request
+ */
+ public Finalize finalize(java.lang.String authProvider, com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest content) throws java.io.IOException {
+ Finalize result = new Finalize(authProvider, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Finalize extends AgentIdentityCredentialsRequest{@link + * Finalize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param authProvider Required. The resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + * @param content the {@link com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest} + * @since 1.13 + */ + protected Finalize(java.lang.String authProvider, com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest content) { + super(AgentIdentityCredentials.this, "POST", REST_PATH, content, com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse.class); + this.authProvider = com.google.api.client.util.Preconditions.checkNotNull(authProvider, "Required parameter authProvider must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTH_PROVIDER_PATTERN.matcher(authProvider).matches(), + "Parameter authProvider must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Finalize set$Xgafv(java.lang.String $Xgafv) { + return (Finalize) super.set$Xgafv($Xgafv); + } + + @Override + public Finalize setAccessToken(java.lang.String accessToken) { + return (Finalize) super.setAccessToken(accessToken); + } + + @Override + public Finalize setAlt(java.lang.String alt) { + return (Finalize) super.setAlt(alt); + } + + @Override + public Finalize setCallback(java.lang.String callback) { + return (Finalize) super.setCallback(callback); + } + + @Override + public Finalize setFields(java.lang.String fields) { + return (Finalize) super.setFields(fields); + } + + @Override + public Finalize setKey(java.lang.String key) { + return (Finalize) super.setKey(key); + } + + @Override + public Finalize setOauthToken(java.lang.String oauthToken) { + return (Finalize) super.setOauthToken(oauthToken); + } + + @Override + public Finalize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Finalize) super.setPrettyPrint(prettyPrint); + } + + @Override + public Finalize setQuotaUser(java.lang.String quotaUser) { + return (Finalize) super.setQuotaUser(quotaUser); + } + + @Override + public Finalize setUploadType(java.lang.String uploadType) { + return (Finalize) super.setUploadType(uploadType); + } + + @Override + public Finalize setUploadProtocol(java.lang.String uploadProtocol) { + return (Finalize) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + @com.google.api.client.util.Key + private java.lang.String authProvider; + + /** Required. The resource name of the AuthProvider. Format: + `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public java.lang.String getAuthProvider() { + return authProvider; + } + + /** + * Required. The resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public Finalize setAuthProvider(java.lang.String authProvider) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTH_PROVIDER_PATTERN.matcher(authProvider).matches(), + "Parameter authProvider must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.authProvider = authProvider; + return this; + } + + @Override + public Finalize set(String parameterName, Object value) { + return (Finalize) super.set(parameterName, value); + } + } + /** + * Retrieves authorization credentials for an authprovider, or indicates what action needs to be + * taken to obtain credentials. If the `token` field in the response is populated, credential + * retrieval was successful. If one of the fields in the `status` oneof is populated, further action + * is required to obtain credentials, such as redirecting the user for consent. View comments on + * `RetrieveCredentialsResponse` for more information. + * + * Create a request for the method "credentials.retrieve". + * + * This request holds the parameters needed by the agentidentitycredentials server. After setting + * any optional parameters, call the {@link Retrieve#execute()} method to invoke the remote + * operation. + * + * @param authProvider Required. The parent resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + * @param content the {@link com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest} + * @return the request + */ + public Retrieve retrieve(java.lang.String authProvider, com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest content) throws java.io.IOException { + Retrieve result = new Retrieve(authProvider, content); + initialize(result); + return result; + } + + public class Retrieve extends AgentIdentityCredentialsRequest{@link + * Retrieve#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param authProvider Required. The parent resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + * @param content the {@link com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest} + * @since 1.13 + */ + protected Retrieve(java.lang.String authProvider, com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest content) { + super(AgentIdentityCredentials.this, "POST", REST_PATH, content, com.google.api.services.agentidentitycredentials.v1.model.GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse.class); + this.authProvider = com.google.api.client.util.Preconditions.checkNotNull(authProvider, "Required parameter authProvider must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTH_PROVIDER_PATTERN.matcher(authProvider).matches(), + "Parameter authProvider must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Retrieve set$Xgafv(java.lang.String $Xgafv) { + return (Retrieve) super.set$Xgafv($Xgafv); + } + + @Override + public Retrieve setAccessToken(java.lang.String accessToken) { + return (Retrieve) super.setAccessToken(accessToken); + } + + @Override + public Retrieve setAlt(java.lang.String alt) { + return (Retrieve) super.setAlt(alt); + } + + @Override + public Retrieve setCallback(java.lang.String callback) { + return (Retrieve) super.setCallback(callback); + } + + @Override + public Retrieve setFields(java.lang.String fields) { + return (Retrieve) super.setFields(fields); + } + + @Override + public Retrieve setKey(java.lang.String key) { + return (Retrieve) super.setKey(key); + } + + @Override + public Retrieve setOauthToken(java.lang.String oauthToken) { + return (Retrieve) super.setOauthToken(oauthToken); + } + + @Override + public Retrieve setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Retrieve) super.setPrettyPrint(prettyPrint); + } + + @Override + public Retrieve setQuotaUser(java.lang.String quotaUser) { + return (Retrieve) super.setQuotaUser(quotaUser); + } + + @Override + public Retrieve setUploadType(java.lang.String uploadType) { + return (Retrieve) super.setUploadType(uploadType); + } + + @Override + public Retrieve setUploadProtocol(java.lang.String uploadProtocol) { + return (Retrieve) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + @com.google.api.client.util.Key + private java.lang.String authProvider; + + /** Required. The parent resource name of the AuthProvider. Format: + `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public java.lang.String getAuthProvider() { + return authProvider; + } + + /** + * Required. The parent resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public Retrieve setAuthProvider(java.lang.String authProvider) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTH_PROVIDER_PATTERN.matcher(authProvider).matches(), + "Parameter authProvider must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.authProvider = authProvider; + return this; + } + + @Override + public Retrieve set(String parameterName, Object value) { + return (Retrieve) super.set(parameterName, value); + } + } + + } + } + } + } + + /** + * Builder for {@link AgentIdentityCredentials}. + * + *+ * Implementation is not thread-safe. + *
+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *+ * The simplest usage is to use it to set the key parameter: + *
+ * + *+ public static final GoogleClientRequestInitializer KEY_INITIALIZER = + new AgentIdentityCredentialsRequestInitializer(KEY); + *+ * + *
+ * There is also a constructor to set both the key and userIp parameters: + *
+ * + *+ public static final GoogleClientRequestInitializer INITIALIZER = + new AgentIdentityCredentialsRequestInitializer(KEY, USER_IP); + *+ * + *
+ * If you want to implement custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer extends AgentIdentityCredentialsRequestInitializer {
+
+ {@literal @}Override
+ public void initializeAgentIdentityCredentialsRequest(AgentIdentityCredentialsRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer2 extends AgentIdentityCredentialsRequestInitializer {
+
+ public MyKeyRequestInitializer() {
+ super(KEY, USER_IP);
+ }
+
+ {@literal @}Override
+ public void initializeAgentIdentityCredentialsRequest(AgentIdentityCredentialsRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Subclasses should be thread-safe. + *
+ * + * @since 1.12 + */ +public class AgentIdentityCredentialsRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AgentIdentityCredentialsRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AgentIdentityCredentialsRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public AgentIdentityCredentialsRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest> request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeAgentIdentityCredentialsRequest((AgentIdentityCredentialsRequest>) request); + } + + /** + * Initializes AgentIdentityCredentials request. + * + *+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *
+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeAgentIdentityCredentialsRequest(AgentIdentityCredentialsRequest> request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/AgentIdentityCredentialsScopes.java b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/AgentIdentityCredentialsScopes.java new file mode 100644 index 00000000000..23a588089c2 --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/AgentIdentityCredentialsScopes.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1; + +/** + * Available OAuth 2.0 scopes for use with the Agent Identity Credentials API. + * + * @since 1.4 + */ +public class AgentIdentityCredentialsScopes { + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.SetThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1ConsentRejected extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAgentidentitycredentialsV1ConsentRejected set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1ConsentRejected) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1ConsentRejected clone() { + return (GoogleCloudAgentidentitycredentialsV1ConsentRejected) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest.java b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest.java new file mode 100644 index 00000000000..d8bd98b294c --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest.java @@ -0,0 +1,146 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1.model; + +/** + * Request message for FinalizeCredentials. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The same consent_nonce value that was provided during redirect in the + * UriConsentRequired metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consentNonce; + + /** + * Required. The identity of the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Required. The encrypted state passed back from the consent flow. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userIdValidationState; + + /** + * Required. The same consent_nonce value that was provided during redirect in the + * UriConsentRequired metadata. + * @return value or {@code null} for none + */ + public java.lang.String getConsentNonce() { + return consentNonce; + } + + /** + * Required. The same consent_nonce value that was provided during redirect in the + * UriConsentRequired metadata. + * @param consentNonce consentNonce or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest setConsentNonce(java.lang.String consentNonce) { + this.consentNonce = consentNonce; + return this; + } + + /** + * Required. The identity of the end user. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Required. The identity of the end user. + * @param userId userId or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + /** + * Required. The encrypted state passed back from the consent flow. + * @see #decodeUserIdValidationState() + * @return value or {@code null} for none + */ + public java.lang.String getUserIdValidationState() { + return userIdValidationState; + } + + /** + * Required. The encrypted state passed back from the consent flow. + * @see #getUserIdValidationState() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeUserIdValidationState() { + return com.google.api.client.util.Base64.decodeBase64(userIdValidationState); + } + + /** + * Required. The encrypted state passed back from the consent flow. + * @see #encodeUserIdValidationState() + * @param userIdValidationState userIdValidationState or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest setUserIdValidationState(java.lang.String userIdValidationState) { + this.userIdValidationState = userIdValidationState; + return this; + } + + /** + * Required. The encrypted state passed back from the consent flow. + * @see #setUserIdValidationState() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest encodeUserIdValidationState(byte[] userIdValidationState) { + this.userIdValidationState = com.google.api.client.util.Base64.encodeBase64URLSafeString(userIdValidationState); + return this; + } + + @Override + public GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest clone() { + return (GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse.java b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse.java new file mode 100644 index 00000000000..40571a3e143 --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1.model; + +/** + * Response message for FinalizeCredentials. Intentionally empty + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse clone() { + return (GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1Pending.java b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1Pending.java new file mode 100644 index 00000000000..3ca9c406663 --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1Pending.java @@ -0,0 +1,44 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1.model; + +/** + * Indicates that the credential retrieval is pending. The caller should retry the + * RetrieveCredentials request after some time. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1Pending extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAgentidentitycredentialsV1Pending set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1Pending) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1Pending clone() { + return (GoogleCloudAgentidentitycredentialsV1Pending) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest.java b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest.java new file mode 100644 index 00000000000..b242ae7103c --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest.java @@ -0,0 +1,151 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1.model; + +/** + * Request message for RetrieveCredentials. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The URI to redirect the user to after consent is completed. This field is required + * for authproviders using the 3-legged OAuth flow. For other authprovider types, this field is + * unused but not rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continueUri; + + /** + * Optional. Input only. Set this field only if the previous token was expired or invalid. This + * value must be the full, previously returned token string. Will trigger a refresh of the access + * token with a stored refresh token, if possible, or a new consent flow. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String forceRefreshToken; + + /** + * Optional. The OAuth scopes required for this access. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse extends com.google.api.client.json.GenericJson { + + /** + * Message indicating consent was rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAgentidentitycredentialsV1ConsentRejected consentRejected; + + /** + * Message indicating credential retrieval is pending. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAgentidentitycredentialsV1Pending pending; + + /** + * Message indicating credentials were successfully retrieved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAgentidentitycredentialsV1Success success; + + /** + * Message indicating uri based consent is required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAgentidentitycredentialsV1UriConsentRequired uriConsentRequired; + + /** + * Message indicating consent was rejected. + * @return value or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1ConsentRejected getConsentRejected() { + return consentRejected; + } + + /** + * Message indicating consent was rejected. + * @param consentRejected consentRejected or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse setConsentRejected(GoogleCloudAgentidentitycredentialsV1ConsentRejected consentRejected) { + this.consentRejected = consentRejected; + return this; + } + + /** + * Message indicating credential retrieval is pending. + * @return value or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1Pending getPending() { + return pending; + } + + /** + * Message indicating credential retrieval is pending. + * @param pending pending or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse setPending(GoogleCloudAgentidentitycredentialsV1Pending pending) { + this.pending = pending; + return this; + } + + /** + * Message indicating credentials were successfully retrieved. + * @return value or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1Success getSuccess() { + return success; + } + + /** + * Message indicating credentials were successfully retrieved. + * @param success success or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse setSuccess(GoogleCloudAgentidentitycredentialsV1Success success) { + this.success = success; + return this; + } + + /** + * Message indicating uri based consent is required. + * @return value or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1UriConsentRequired getUriConsentRequired() { + return uriConsentRequired; + } + + /** + * Message indicating uri based consent is required. + * @param uriConsentRequired uriConsentRequired or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse setUriConsentRequired(GoogleCloudAgentidentitycredentialsV1UriConsentRequired uriConsentRequired) { + this.uriConsentRequired = uriConsentRequired; + return this; + } + + @Override + public GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse clone() { + return (GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1Success.java b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1Success.java new file mode 100644 index 00000000000..2263f2b07b3 --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/com/google/api/services/agentidentitycredentials/v1/model/GoogleCloudAgentidentitycredentialsV1Success.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1.model; + +/** + * Message indicating successful retrieval of credentials. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1Success extends com.google.api.client.json.GenericJson { + + /** + * The expiration time of the token. This does not guarantee that the token will be valid until + * this time, since the token could be revoked earlier. There could also be clock skew between the + * auth provider and the client so it may expire slightly earlier. If not set, the token might be + * permanent or it may be that the service does not (or cannot) know when it will expire. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * The HTTP header name where the token should be placed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String header; + + /** + * The scopes actually associated with the retrieved token. End users may have rejected some + * requested scopes, or the third-party authorization servers can return a different set of scopes + * than what was asked for. Callers should verify that all required scopes for their intended use + * are included in this list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1UriConsentRequired extends com.google.api.client.json.GenericJson { + + /** + * Output only. The URL where the user should be redirected to grant consent. This will always be + * present. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authorizationUri; + + /** + * Output only. A one-time, randomly generated value that validates the entire consent flow is + * handled by a single user, avoiding CSRF attacks. It must be submitted with the + * FinalizeCredentials request to complete the OAuth exchange. This will always be present. + * Implemented per https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consentNonce; + + /** + * Output only. The unique ID of the credentials retrieval operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uid; + + /** + * Output only. The URL where the user should be redirected to grant consent. This will always be + * present. + * @return value or {@code null} for none + */ + public java.lang.String getAuthorizationUri() { + return authorizationUri; + } + + /** + * Output only. The URL where the user should be redirected to grant consent. This will always be + * present. + * @param authorizationUri authorizationUri or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1UriConsentRequired setAuthorizationUri(java.lang.String authorizationUri) { + this.authorizationUri = authorizationUri; + return this; + } + + /** + * Output only. A one-time, randomly generated value that validates the entire consent flow is + * handled by a single user, avoiding CSRF attacks. It must be submitted with the + * FinalizeCredentials request to complete the OAuth exchange. This will always be present. + * Implemented per https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5 + * @return value or {@code null} for none + */ + public java.lang.String getConsentNonce() { + return consentNonce; + } + + /** + * Output only. A one-time, randomly generated value that validates the entire consent flow is + * handled by a single user, avoiding CSRF attacks. It must be submitted with the + * FinalizeCredentials request to complete the OAuth exchange. This will always be present. + * Implemented per https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5 + * @param consentNonce consentNonce or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1UriConsentRequired setConsentNonce(java.lang.String consentNonce) { + this.consentNonce = consentNonce; + return this; + } + + /** + * Output only. The unique ID of the credentials retrieval operation. + * @return value or {@code null} for none + */ + public java.lang.String getUid() { + return uid; + } + + /** + * Output only. The unique ID of the credentials retrieval operation. + * @param uid uid or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1UriConsentRequired setUid(java.lang.String uid) { + this.uid = uid; + return this; + } + + @Override + public GoogleCloudAgentidentitycredentialsV1UriConsentRequired set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1UriConsentRequired) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1UriConsentRequired clone() { + return (GoogleCloudAgentidentitycredentialsV1UriConsentRequired) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1/2.0.0/pom.xml b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/pom.xml new file mode 100644 index 00000000000..37622d79821 --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1/2.0.0/pom.xml @@ -0,0 +1,219 @@ ++ * agentidentitycredentials.googleapis.com API. + *
+ * + *+ * For more information about this service, see the + * API Documentation + *
+ * + *+ * This service uses {@link AgentIdentityCredentialsRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *
+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AgentIdentityCredentials extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.0.0 of the Agent Identity Credentials API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://agentidentitycredentials.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://agentidentitycredentials.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *+ * Use {@link Builder} if you need to specify any of the optional parameters. + *
+ * + * @param transport HTTP transport, which should normally be: + *The typical use is:
+ *
+ * {@code AgentIdentityCredentials agentidentitycredentials = new AgentIdentityCredentials(...);}
+ * {@code AgentIdentityCredentials.Projects.List request = agentidentitycredentials.projects().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Projects projects() {
+ return new Projects();
+ }
+
+ /**
+ * The "projects" collection of methods.
+ */
+ public class Projects {
+
+ /**
+ * An accessor for creating requests from the Locations collection.
+ *
+ * The typical use is:
+ *
+ * {@code AgentIdentityCredentials agentidentitycredentials = new AgentIdentityCredentials(...);}
+ * {@code AgentIdentityCredentials.Locations.List request = agentidentitycredentials.locations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Locations locations() {
+ return new Locations();
+ }
+
+ /**
+ * The "locations" collection of methods.
+ */
+ public class Locations {
+
+ /**
+ * An accessor for creating requests from the AuthProviders collection.
+ *
+ * The typical use is:
+ *
+ * {@code AgentIdentityCredentials agentidentitycredentials = new AgentIdentityCredentials(...);}
+ * {@code AgentIdentityCredentials.AuthProviders.List request = agentidentitycredentials.authProviders().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AuthProviders authProviders() {
+ return new AuthProviders();
+ }
+
+ /**
+ * The "authProviders" collection of methods.
+ */
+ public class AuthProviders {
+
+ /**
+ * An accessor for creating requests from the Credentials collection.
+ *
+ * The typical use is:
+ *
+ * {@code AgentIdentityCredentials agentidentitycredentials = new AgentIdentityCredentials(...);}
+ * {@code AgentIdentityCredentials.Credentials.List request = agentidentitycredentials.credentials().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Credentials credentials() {
+ return new Credentials();
+ }
+
+ /**
+ * The "credentials" collection of methods.
+ */
+ public class Credentials {
+
+ /**
+ * Finalizes the credentials after a successful consent flow.
+ *
+ * Create a request for the method "credentials.finalize".
+ *
+ * This request holds the parameters needed by the agentidentitycredentials server. After setting
+ * any optional parameters, call the {@link Finalize#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param authProvider Required. The resource name of the AuthProvider. Format:
+ * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
+ * @param content the {@link com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest}
+ * @return the request
+ */
+ public Finalize finalize(java.lang.String authProvider, com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest content) throws java.io.IOException {
+ Finalize result = new Finalize(authProvider, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Finalize extends AgentIdentityCredentialsRequest{@link + * Finalize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param authProvider Required. The resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + * @param content the {@link com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest} + * @since 1.13 + */ + protected Finalize(java.lang.String authProvider, com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest content) { + super(AgentIdentityCredentials.this, "POST", REST_PATH, content, com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse.class); + this.authProvider = com.google.api.client.util.Preconditions.checkNotNull(authProvider, "Required parameter authProvider must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTH_PROVIDER_PATTERN.matcher(authProvider).matches(), + "Parameter authProvider must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Finalize set$Xgafv(java.lang.String $Xgafv) { + return (Finalize) super.set$Xgafv($Xgafv); + } + + @Override + public Finalize setAccessToken(java.lang.String accessToken) { + return (Finalize) super.setAccessToken(accessToken); + } + + @Override + public Finalize setAlt(java.lang.String alt) { + return (Finalize) super.setAlt(alt); + } + + @Override + public Finalize setCallback(java.lang.String callback) { + return (Finalize) super.setCallback(callback); + } + + @Override + public Finalize setFields(java.lang.String fields) { + return (Finalize) super.setFields(fields); + } + + @Override + public Finalize setKey(java.lang.String key) { + return (Finalize) super.setKey(key); + } + + @Override + public Finalize setOauthToken(java.lang.String oauthToken) { + return (Finalize) super.setOauthToken(oauthToken); + } + + @Override + public Finalize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Finalize) super.setPrettyPrint(prettyPrint); + } + + @Override + public Finalize setQuotaUser(java.lang.String quotaUser) { + return (Finalize) super.setQuotaUser(quotaUser); + } + + @Override + public Finalize setUploadType(java.lang.String uploadType) { + return (Finalize) super.setUploadType(uploadType); + } + + @Override + public Finalize setUploadProtocol(java.lang.String uploadProtocol) { + return (Finalize) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + @com.google.api.client.util.Key + private java.lang.String authProvider; + + /** Required. The resource name of the AuthProvider. Format: + `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public java.lang.String getAuthProvider() { + return authProvider; + } + + /** + * Required. The resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public Finalize setAuthProvider(java.lang.String authProvider) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTH_PROVIDER_PATTERN.matcher(authProvider).matches(), + "Parameter authProvider must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.authProvider = authProvider; + return this; + } + + @Override + public Finalize set(String parameterName, Object value) { + return (Finalize) super.set(parameterName, value); + } + } + /** + * Retrieves authorization credentials for an authprovider, or indicates what action needs to be + * taken to obtain credentials. If the `token` field in the response is populated, credential + * retrieval was successful. If one of the fields in the `status` oneof is populated, further action + * is required to obtain credentials, such as redirecting the user for consent. View comments on + * `RetrieveCredentialsResponse` for more information. + * + * Create a request for the method "credentials.retrieve". + * + * This request holds the parameters needed by the agentidentitycredentials server. After setting + * any optional parameters, call the {@link Retrieve#execute()} method to invoke the remote + * operation. + * + * @param authProvider Required. The parent resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + * @param content the {@link com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsRequest} + * @return the request + */ + public Retrieve retrieve(java.lang.String authProvider, com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsRequest content) throws java.io.IOException { + Retrieve result = new Retrieve(authProvider, content); + initialize(result); + return result; + } + + public class Retrieve extends AgentIdentityCredentialsRequest{@link + * Retrieve#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param authProvider Required. The parent resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + * @param content the {@link com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsRequest} + * @since 1.13 + */ + protected Retrieve(java.lang.String authProvider, com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsRequest content) { + super(AgentIdentityCredentials.this, "POST", REST_PATH, content, com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse.class); + this.authProvider = com.google.api.client.util.Preconditions.checkNotNull(authProvider, "Required parameter authProvider must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTH_PROVIDER_PATTERN.matcher(authProvider).matches(), + "Parameter authProvider must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Retrieve set$Xgafv(java.lang.String $Xgafv) { + return (Retrieve) super.set$Xgafv($Xgafv); + } + + @Override + public Retrieve setAccessToken(java.lang.String accessToken) { + return (Retrieve) super.setAccessToken(accessToken); + } + + @Override + public Retrieve setAlt(java.lang.String alt) { + return (Retrieve) super.setAlt(alt); + } + + @Override + public Retrieve setCallback(java.lang.String callback) { + return (Retrieve) super.setCallback(callback); + } + + @Override + public Retrieve setFields(java.lang.String fields) { + return (Retrieve) super.setFields(fields); + } + + @Override + public Retrieve setKey(java.lang.String key) { + return (Retrieve) super.setKey(key); + } + + @Override + public Retrieve setOauthToken(java.lang.String oauthToken) { + return (Retrieve) super.setOauthToken(oauthToken); + } + + @Override + public Retrieve setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Retrieve) super.setPrettyPrint(prettyPrint); + } + + @Override + public Retrieve setQuotaUser(java.lang.String quotaUser) { + return (Retrieve) super.setQuotaUser(quotaUser); + } + + @Override + public Retrieve setUploadType(java.lang.String uploadType) { + return (Retrieve) super.setUploadType(uploadType); + } + + @Override + public Retrieve setUploadProtocol(java.lang.String uploadProtocol) { + return (Retrieve) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + @com.google.api.client.util.Key + private java.lang.String authProvider; + + /** Required. The parent resource name of the AuthProvider. Format: + `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public java.lang.String getAuthProvider() { + return authProvider; + } + + /** + * Required. The parent resource name of the AuthProvider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public Retrieve setAuthProvider(java.lang.String authProvider) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTH_PROVIDER_PATTERN.matcher(authProvider).matches(), + "Parameter authProvider must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.authProvider = authProvider; + return this; + } + + @Override + public Retrieve set(String parameterName, Object value) { + return (Retrieve) super.set(parameterName, value); + } + } + + } + } + } + } + + /** + * Builder for {@link AgentIdentityCredentials}. + * + *+ * Implementation is not thread-safe. + *
+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *+ * The simplest usage is to use it to set the key parameter: + *
+ * + *+ public static final GoogleClientRequestInitializer KEY_INITIALIZER = + new AgentIdentityCredentialsRequestInitializer(KEY); + *+ * + *
+ * There is also a constructor to set both the key and userIp parameters: + *
+ * + *+ public static final GoogleClientRequestInitializer INITIALIZER = + new AgentIdentityCredentialsRequestInitializer(KEY, USER_IP); + *+ * + *
+ * If you want to implement custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer extends AgentIdentityCredentialsRequestInitializer {
+
+ {@literal @}Override
+ public void initializeAgentIdentityCredentialsRequest(AgentIdentityCredentialsRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer2 extends AgentIdentityCredentialsRequestInitializer {
+
+ public MyKeyRequestInitializer() {
+ super(KEY, USER_IP);
+ }
+
+ {@literal @}Override
+ public void initializeAgentIdentityCredentialsRequest(AgentIdentityCredentialsRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Subclasses should be thread-safe. + *
+ * + * @since 1.12 + */ +public class AgentIdentityCredentialsRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AgentIdentityCredentialsRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AgentIdentityCredentialsRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public AgentIdentityCredentialsRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest> request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeAgentIdentityCredentialsRequest((AgentIdentityCredentialsRequest>) request); + } + + /** + * Initializes AgentIdentityCredentials request. + * + *+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *
+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeAgentIdentityCredentialsRequest(AgentIdentityCredentialsRequest> request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/AgentIdentityCredentialsScopes.java b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/AgentIdentityCredentialsScopes.java new file mode 100644 index 00000000000..598f3df310b --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/AgentIdentityCredentialsScopes.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1alpha; + +/** + * Available OAuth 2.0 scopes for use with the Agent Identity Credentials API. + * + * @since 1.4 + */ +public class AgentIdentityCredentialsScopes { + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.SetThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1alphaConsentRejected extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaConsentRejected set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1alphaConsentRejected) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaConsentRejected clone() { + return (GoogleCloudAgentidentitycredentialsV1alphaConsentRejected) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest.java b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest.java new file mode 100644 index 00000000000..2dbb1a3bfaf --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest.java @@ -0,0 +1,146 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1alpha.model; + +/** + * Request message for FinalizeCredentials. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The same consent_nonce value that was provided during redirect in the + * UriConsentRequired metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consentNonce; + + /** + * Required. The identity of the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Required. The encrypted state passed back from the consent flow. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userIdValidationState; + + /** + * Required. The same consent_nonce value that was provided during redirect in the + * UriConsentRequired metadata. + * @return value or {@code null} for none + */ + public java.lang.String getConsentNonce() { + return consentNonce; + } + + /** + * Required. The same consent_nonce value that was provided during redirect in the + * UriConsentRequired metadata. + * @param consentNonce consentNonce or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest setConsentNonce(java.lang.String consentNonce) { + this.consentNonce = consentNonce; + return this; + } + + /** + * Required. The identity of the end user. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Required. The identity of the end user. + * @param userId userId or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + /** + * Required. The encrypted state passed back from the consent flow. + * @see #decodeUserIdValidationState() + * @return value or {@code null} for none + */ + public java.lang.String getUserIdValidationState() { + return userIdValidationState; + } + + /** + * Required. The encrypted state passed back from the consent flow. + * @see #getUserIdValidationState() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeUserIdValidationState() { + return com.google.api.client.util.Base64.decodeBase64(userIdValidationState); + } + + /** + * Required. The encrypted state passed back from the consent flow. + * @see #encodeUserIdValidationState() + * @param userIdValidationState userIdValidationState or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest setUserIdValidationState(java.lang.String userIdValidationState) { + this.userIdValidationState = userIdValidationState; + return this; + } + + /** + * Required. The encrypted state passed back from the consent flow. + * @see #setUserIdValidationState() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest encodeUserIdValidationState(byte[] userIdValidationState) { + this.userIdValidationState = com.google.api.client.util.Base64.encodeBase64URLSafeString(userIdValidationState); + return this; + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest clone() { + return (GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse.java b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse.java new file mode 100644 index 00000000000..4e786e15416 --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1alpha.model; + +/** + * Response message for FinalizeCredentials. Intentionally empty + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse clone() { + return (GoogleCloudAgentidentitycredentialsV1alphaFinalizeCredentialsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaPending.java b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaPending.java new file mode 100644 index 00000000000..ee4455a95da --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaPending.java @@ -0,0 +1,44 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1alpha.model; + +/** + * Indicates that the credential retrieval is pending. The caller should retry the + * RetrieveCredentials request after some time. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1alphaPending extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaPending set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1alphaPending) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaPending clone() { + return (GoogleCloudAgentidentitycredentialsV1alphaPending) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsRequest.java b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsRequest.java new file mode 100644 index 00000000000..c6490511cdc --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsRequest.java @@ -0,0 +1,151 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1alpha.model; + +/** + * Request message for RetrieveCredentials. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The URI to redirect the user to after consent is completed. This field is required + * for authproviders using the 3-legged OAuth flow. For other authprovider types, this field is + * unused but not rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continueUri; + + /** + * Optional. Input only. Set this field only if the previous token was expired or invalid. This + * value must be the full, previously returned token string. Will trigger a refresh of the access + * token with a stored refresh token, if possible, or a new consent flow. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String forceRefreshToken; + + /** + * Optional. The OAuth scopes required for this access. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse extends com.google.api.client.json.GenericJson { + + /** + * Message indicating consent was rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAgentidentitycredentialsV1alphaConsentRejected consentRejected; + + /** + * Message indicating credential retrieval is pending. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAgentidentitycredentialsV1alphaPending pending; + + /** + * Message indicating credentials were successfully retrieved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAgentidentitycredentialsV1alphaSuccess success; + + /** + * Message indicating uri based consent is required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired uriConsentRequired; + + /** + * Message indicating consent was rejected. + * @return value or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaConsentRejected getConsentRejected() { + return consentRejected; + } + + /** + * Message indicating consent was rejected. + * @param consentRejected consentRejected or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse setConsentRejected(GoogleCloudAgentidentitycredentialsV1alphaConsentRejected consentRejected) { + this.consentRejected = consentRejected; + return this; + } + + /** + * Message indicating credential retrieval is pending. + * @return value or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaPending getPending() { + return pending; + } + + /** + * Message indicating credential retrieval is pending. + * @param pending pending or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse setPending(GoogleCloudAgentidentitycredentialsV1alphaPending pending) { + this.pending = pending; + return this; + } + + /** + * Message indicating credentials were successfully retrieved. + * @return value or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaSuccess getSuccess() { + return success; + } + + /** + * Message indicating credentials were successfully retrieved. + * @param success success or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse setSuccess(GoogleCloudAgentidentitycredentialsV1alphaSuccess success) { + this.success = success; + return this; + } + + /** + * Message indicating uri based consent is required. + * @return value or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired getUriConsentRequired() { + return uriConsentRequired; + } + + /** + * Message indicating uri based consent is required. + * @param uriConsentRequired uriConsentRequired or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse setUriConsentRequired(GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired uriConsentRequired) { + this.uriConsentRequired = uriConsentRequired; + return this; + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse clone() { + return (GoogleCloudAgentidentitycredentialsV1alphaRetrieveCredentialsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaSuccess.java b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaSuccess.java new file mode 100644 index 00000000000..30bea067f90 --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaSuccess.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.agentidentitycredentials.v1alpha.model; + +/** + * Message indicating successful retrieval of credentials. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1alphaSuccess extends com.google.api.client.json.GenericJson { + + /** + * The expiration time of the token. This does not guarantee that the token will be valid until + * this time, since the token could be revoked earlier. There could also be clock skew between the + * auth provider and the client so it may expire slightly earlier. If not set, the token might be + * permanent or it may be that the service does not (or cannot) know when it will expire. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * The HTTP header name where the token should be placed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String header; + + /** + * The scopes actually associated with the retrieved token. End users may have rejected some + * requested scopes, or the third-party authorization servers can return a different set of scopes + * than what was asked for. Callers should verify that all required scopes for their intended use + * are included in this list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity Credentials API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired extends com.google.api.client.json.GenericJson { + + /** + * Output only. The URL where the user should be redirected to grant consent. This will always be + * present. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authorizationUri; + + /** + * Output only. A one-time, randomly generated value that validates the entire consent flow is + * handled by a single user, avoiding CSRF attacks. It must be submitted with the + * FinalizeCredentials request to complete the OAuth exchange. This will always be present. + * Implemented per https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consentNonce; + + /** + * Output only. The unique ID of the credentials retrieval operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uid; + + /** + * Output only. The URL where the user should be redirected to grant consent. This will always be + * present. + * @return value or {@code null} for none + */ + public java.lang.String getAuthorizationUri() { + return authorizationUri; + } + + /** + * Output only. The URL where the user should be redirected to grant consent. This will always be + * present. + * @param authorizationUri authorizationUri or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired setAuthorizationUri(java.lang.String authorizationUri) { + this.authorizationUri = authorizationUri; + return this; + } + + /** + * Output only. A one-time, randomly generated value that validates the entire consent flow is + * handled by a single user, avoiding CSRF attacks. It must be submitted with the + * FinalizeCredentials request to complete the OAuth exchange. This will always be present. + * Implemented per https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5 + * @return value or {@code null} for none + */ + public java.lang.String getConsentNonce() { + return consentNonce; + } + + /** + * Output only. A one-time, randomly generated value that validates the entire consent flow is + * handled by a single user, avoiding CSRF attacks. It must be submitted with the + * FinalizeCredentials request to complete the OAuth exchange. This will always be present. + * Implemented per https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5 + * @param consentNonce consentNonce or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired setConsentNonce(java.lang.String consentNonce) { + this.consentNonce = consentNonce; + return this; + } + + /** + * Output only. The unique ID of the credentials retrieval operation. + * @return value or {@code null} for none + */ + public java.lang.String getUid() { + return uid; + } + + /** + * Output only. The unique ID of the credentials retrieval operation. + * @param uid uid or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired setUid(java.lang.String uid) { + this.uid = uid; + return this; + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired clone() { + return (GoogleCloudAgentidentitycredentialsV1alphaUriConsentRequired) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/pom.xml b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/pom.xml new file mode 100644 index 00000000000..3f7ccd51433 --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/pom.xml @@ -0,0 +1,219 @@ +