{@link + * Exchange#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 auth provider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + * @param content the {@link com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaExchangeCredentialsRequest} + * @since 1.13 + */ + protected Exchange(java.lang.String authProvider, com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaExchangeCredentialsRequest content) { + super(AgentIdentityCredentials.this, "POST", REST_PATH, content, com.google.api.services.agentidentitycredentials.v1alpha.model.GoogleCloudAgentidentitycredentialsV1alphaExchangeCredentialsResponse.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 Exchange set$Xgafv(java.lang.String $Xgafv) { + return (Exchange) super.set$Xgafv($Xgafv); + } + + @Override + public Exchange setAccessToken(java.lang.String accessToken) { + return (Exchange) super.setAccessToken(accessToken); + } + + @Override + public Exchange setAlt(java.lang.String alt) { + return (Exchange) super.setAlt(alt); + } + + @Override + public Exchange setCallback(java.lang.String callback) { + return (Exchange) super.setCallback(callback); + } + + @Override + public Exchange setFields(java.lang.String fields) { + return (Exchange) super.setFields(fields); + } + + @Override + public Exchange setKey(java.lang.String key) { + return (Exchange) super.setKey(key); + } + + @Override + public Exchange setOauthToken(java.lang.String oauthToken) { + return (Exchange) super.setOauthToken(oauthToken); + } + + @Override + public Exchange setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Exchange) super.setPrettyPrint(prettyPrint); + } + + @Override + public Exchange setQuotaUser(java.lang.String quotaUser) { + return (Exchange) super.setQuotaUser(quotaUser); + } + + @Override + public Exchange setUploadType(java.lang.String uploadType) { + return (Exchange) super.setUploadType(uploadType); + } + + @Override + public Exchange setUploadProtocol(java.lang.String uploadProtocol) { + return (Exchange) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the auth provider. 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 auth provider. Format: + `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public java.lang.String getAuthProvider() { + return authProvider; + } + + /** + * Required. The resource name of the auth provider. Format: + * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + */ + public Exchange 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 Exchange set(String parameterName, Object value) { + return (Exchange) super.set(parameterName, value); + } + } /** * Finalizes the credentials after a successful consent flow. * diff --git a/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaExchangeCredentialsRequest.java b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaExchangeCredentialsRequest.java new file mode 100644 index 00000000000..5606bf0ad06 --- /dev/null +++ b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/com/google/api/services/agentidentitycredentials/v1alpha/model/GoogleCloudAgentidentitycredentialsV1alphaExchangeCredentialsRequest.java @@ -0,0 +1,145 @@ +/* + * 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 `ExchangeCredentials`. + * + *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 GoogleCloudAgentidentitycredentialsV1alphaExchangeCredentialsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The desired downstream OAuth scopes to request for the exchanged token. + * 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 GoogleCloudAgentidentitycredentialsV1alphaExchangeCredentialsResponse extends com.google.api.client.json.GenericJson { + + /** + * Optional. The time when the token was acquired. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String acquireTime; + + /** + * Optional. The expiration time of the exchanged access token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * The scopes actually associated with the retrieved token. + * 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 GoogleCloudAgentidentitycredentialsV1alphaTokenBinding extends com.google.api.client.json.GenericJson { + + /** + * Optional. The base64url-encoded SHA-256 hash of the DER-encoded X.509 client certificate, as + * defined in RFC 8705 Section 3.1 (corresponding to "x5t#S256"). Format requirements: - Base64url + * encoding (RFC 4648 Section 5) using URL-safe characters ('-' and '_') without padding ('='). - + * Exactly 43 characters long for a 256-bit SHA-256 digest. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String certificateFingerprint; + + /** + * Optional. The base64url-encoded SHA-256 hash of the DER-encoded X.509 client certificate, as + * defined in RFC 8705 Section 3.1 (corresponding to "x5t#S256"). Format requirements: - Base64url + * encoding (RFC 4648 Section 5) using URL-safe characters ('-' and '_') without padding ('='). - + * Exactly 43 characters long for a 256-bit SHA-256 digest. + * @return value or {@code null} for none + */ + public java.lang.String getCertificateFingerprint() { + return certificateFingerprint; + } + + /** + * Optional. The base64url-encoded SHA-256 hash of the DER-encoded X.509 client certificate, as + * defined in RFC 8705 Section 3.1 (corresponding to "x5t#S256"). Format requirements: - Base64url + * encoding (RFC 4648 Section 5) using URL-safe characters ('-' and '_') without padding ('='). - + * Exactly 43 characters long for a 256-bit SHA-256 digest. + * @param certificateFingerprint certificateFingerprint or {@code null} for none + */ + public GoogleCloudAgentidentitycredentialsV1alphaTokenBinding setCertificateFingerprint(java.lang.String certificateFingerprint) { + this.certificateFingerprint = certificateFingerprint; + return this; + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaTokenBinding set(String fieldName, Object value) { + return (GoogleCloudAgentidentitycredentialsV1alphaTokenBinding) super.set(fieldName, value); + } + + @Override + public GoogleCloudAgentidentitycredentialsV1alphaTokenBinding clone() { + return (GoogleCloudAgentidentitycredentialsV1alphaTokenBinding) 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 index 37e408c4367..f9457b83269 100644 --- a/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-agentidentitycredentials/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@