diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/README.md b/clients/google-api-services-agentidentity/v1/2.0.0/README.md new file mode 100644 index 00000000000..981babaca18 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/README.md @@ -0,0 +1,44 @@ +# Agent Identity API Client Library for Java + + + +This page contains information about getting started with the Agent Identity 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 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 API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-agentidentity + v1-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-agentidentity:v1-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-agentidentity/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/agentidentity/v1/ diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentity.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentity.java new file mode 100644 index 00000000000..d1d5f008796 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentity.java @@ -0,0 +1,4155 @@ +/* + * 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.agentidentity.v1; + +/** + * Service definition for AgentIdentity (v1). + * + *

+ * + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link AgentIdentityRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AgentIdentity 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 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://agentidentity.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://agentidentity.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: + * + * @param jsonFactory JSON factory, which may be: + * + * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public AgentIdentity(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + AgentIdentity(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+   *   {@code AgentIdentity.Projects.List request = agentidentity.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 AgentIdentity agentidentity = new AgentIdentity(...);}
+     *   {@code AgentIdentity.Locations.List request = agentidentity.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Resource name for the location. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Resource name for the location. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.Location.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Resource name for the location. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Resource name for the location. + */ + public java.lang.String getName() { + return name; + } + + /** Resource name for the location. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all projects. + * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method + * lists locations visible to that specific project. This includes public, private, or other + * project-specific locations enabled for the project. For gRPC and client library implementations, + * the resource name is passed as the `name` field. For direct service calls, the resource name is + * incorporated into the request path based on the specific service implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The resource that owns the locations collection, if applicable. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}/locations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all + * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, + * the method lists locations visible to that specific project. This includes public, private, or + * other project-specific locations enabled for the project. For gRPC and client library + * implementations, the resource name is passed as the `name` field. For direct service calls, the + * resource name is incorporated into the request path based on the specific service + * implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The resource that owns the locations collection, if applicable. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.ListLocationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The resource that owns the locations collection, if applicable. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The resource that owns the locations collection, if applicable. + */ + public java.lang.String getName() { + return name; + } + + /** The resource that owns the locations collection, if applicable. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; + + /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for + internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + return this; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like + `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results to return. If not set, the service selects a default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token received from the `next_page_token` field in the response. Send that page token to + receive the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the AccessSummaries collection. + * + *

The typical use is:

+ *
+       *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+       *   {@code AgentIdentity.AccessSummaries.List request = agentidentity.accessSummaries().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AccessSummaries accessSummaries() { + return new AccessSummaries(); + } + + /** + * The "accessSummaries" collection of methods. + */ + public class AccessSummaries { + + /** + * Gets details of a single AccessSummary. + * + * Create a request for the method "accessSummaries.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/accessSummaries/[^/]+$"); + + /** + * Gets details of a single AccessSummary. + * + * Create a request for the method "accessSummaries.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.AccessSummary.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/accessSummaries/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/accessSummaries/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: Filter + * by the SPIFFE ID of the agent. Example: `workload_id="spiffe://example.com/ns/default/sa/my- + * agent"` + * + * Create a request for the method "accessSummaries.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+parent}/accessSummaries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + * Create a request for the method "accessSummaries.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.ListAccessSummariesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `workload_id` or `auth_provider_name`. If no filter is provided, returns all access + * summaries for the requested project and location. Format: `workload_id=""` or + * `auth_provider_name=""` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter string to restrict the results. Currently supports filtering by `workload_id` or + `auth_provider_name`. If no filter is provided, returns all access summaries for the requested + project and location. Format: `workload_id=""` or `auth_provider_name=""` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `workload_id` or `auth_provider_name`. If no filter is provided, returns all access + * summaries for the requested project and location. Format: `workload_id=""` or + * `auth_provider_name=""` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by (auth_provider_id, + * user_id) in ascending order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. This field is currently ignored. Defaults to ordering by (auth_provider_id, user_id) in + ascending order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by (auth_provider_id, + * user_id) in ascending order. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results the server should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results the server should return. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the AuthProviders collection. + * + *

The typical use is:

+ *
+       *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+       *   {@code AgentIdentity.AuthProviders.List request = agentidentity.authProviders().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AuthProviders authProviders() { + return new AuthProviders(); + } + + /** + * The "authProviders" collection of methods. + */ + public class AuthProviders { + + /** + * Creates a new AuthProvider in a given project and location. + * + * Create a request for the method "authProviders.create". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.agentidentity.v1.model.AuthProvider} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.agentidentity.v1.model.AuthProvider content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+parent}/authProviders"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new AuthProvider in a given project and location. + * + * Create a request for the method "authProviders.create". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.agentidentity.v1.model.AuthProvider} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.agentidentity.v1.model.AuthProvider content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1.model.AuthProvider.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the AuthProvider is created. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The ID to use for the AuthProvider, which will become the final segment of + * the AuthProvider's resource name. This value should be 1-63 characters, and valid + * characters are /a-z-/. The first character must be a lowercase letter, and the last + * character must be a lowercase letter or a number. + */ + @com.google.api.client.util.Key + private java.lang.String authProviderId; + + /** Required. The ID to use for the AuthProvider, which will become the final segment of the + AuthProvider's resource name. This value should be 1-63 characters, and valid characters are + /a-z-/. The first character must be a lowercase letter, and the last character must be a lowercase + letter or a number. + */ + public java.lang.String getAuthProviderId() { + return authProviderId; + } + + /** + * Required. The ID to use for the AuthProvider, which will become the final segment of + * the AuthProvider's resource name. This value should be 1-63 characters, and valid + * characters are /a-z-/. The first character must be a lowercase letter, and the last + * character must be a lowercase letter or a number. + */ + public Create setAuthProviderId(java.lang.String authProviderId) { + this.authProviderId = authProviderId; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes since the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single AuthProvider. + * + * Create a request for the method "authProviders.delete". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Deletes a single AuthProvider. + * + * Create a request for the method "authProviders.delete". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AgentIdentity.this, "DELETE", REST_PATH, null, com.google.api.services.agentidentity.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Disables a single AuthProvider. + * + * Create a request for the method "authProviders.disable". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Disable#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.DisableAuthProviderRequest} + * @return the request + */ + public Disable disable(java.lang.String name, com.google.api.services.agentidentity.v1.model.DisableAuthProviderRequest content) throws java.io.IOException { + Disable result = new Disable(name, content); + initialize(result); + return result; + } + + public class Disable extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}:disable"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Disables a single AuthProvider. + * + * Create a request for the method "authProviders.disable". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Disable#execute()} method to invoke the remote operation. + *

{@link + * Disable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.DisableAuthProviderRequest} + * @since 1.13 + */ + protected Disable(java.lang.String name, com.google.api.services.agentidentity.v1.model.DisableAuthProviderRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Disable set$Xgafv(java.lang.String $Xgafv) { + return (Disable) super.set$Xgafv($Xgafv); + } + + @Override + public Disable setAccessToken(java.lang.String accessToken) { + return (Disable) super.setAccessToken(accessToken); + } + + @Override + public Disable setAlt(java.lang.String alt) { + return (Disable) super.setAlt(alt); + } + + @Override + public Disable setCallback(java.lang.String callback) { + return (Disable) super.setCallback(callback); + } + + @Override + public Disable setFields(java.lang.String fields) { + return (Disable) super.setFields(fields); + } + + @Override + public Disable setKey(java.lang.String key) { + return (Disable) super.setKey(key); + } + + @Override + public Disable setOauthToken(java.lang.String oauthToken) { + return (Disable) super.setOauthToken(oauthToken); + } + + @Override + public Disable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Disable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Disable setQuotaUser(java.lang.String quotaUser) { + return (Disable) super.setQuotaUser(quotaUser); + } + + @Override + public Disable setUploadType(java.lang.String uploadType) { + return (Disable) super.setUploadType(uploadType); + } + + @Override + public Disable setUploadProtocol(java.lang.String uploadProtocol) { + return (Disable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Disable setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Disable set(String parameterName, Object value) { + return (Disable) super.set(parameterName, value); + } + } + /** + * Enables a single AuthProvider. + * + * Create a request for the method "authProviders.enable". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Enable#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.EnableAuthProviderRequest} + * @return the request + */ + public Enable enable(java.lang.String name, com.google.api.services.agentidentity.v1.model.EnableAuthProviderRequest content) throws java.io.IOException { + Enable result = new Enable(name, content); + initialize(result); + return result; + } + + public class Enable extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}:enable"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Enables a single AuthProvider. + * + * Create a request for the method "authProviders.enable". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Enable#execute()} method to invoke the remote operation. + *

{@link + * Enable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.EnableAuthProviderRequest} + * @since 1.13 + */ + protected Enable(java.lang.String name, com.google.api.services.agentidentity.v1.model.EnableAuthProviderRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Enable set$Xgafv(java.lang.String $Xgafv) { + return (Enable) super.set$Xgafv($Xgafv); + } + + @Override + public Enable setAccessToken(java.lang.String accessToken) { + return (Enable) super.setAccessToken(accessToken); + } + + @Override + public Enable setAlt(java.lang.String alt) { + return (Enable) super.setAlt(alt); + } + + @Override + public Enable setCallback(java.lang.String callback) { + return (Enable) super.setCallback(callback); + } + + @Override + public Enable setFields(java.lang.String fields) { + return (Enable) super.setFields(fields); + } + + @Override + public Enable setKey(java.lang.String key) { + return (Enable) super.setKey(key); + } + + @Override + public Enable setOauthToken(java.lang.String oauthToken) { + return (Enable) super.setOauthToken(oauthToken); + } + + @Override + public Enable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Enable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Enable setQuotaUser(java.lang.String quotaUser) { + return (Enable) super.setQuotaUser(quotaUser); + } + + @Override + public Enable setUploadType(java.lang.String uploadType) { + return (Enable) super.setUploadType(uploadType); + } + + @Override + public Enable setUploadProtocol(java.lang.String uploadProtocol) { + return (Enable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Enable setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Enable set(String parameterName, Object value) { + return (Enable) super.set(parameterName, value); + } + } + /** + * Gets details of a single AuthProvider. + * + * Create a request for the method "authProviders.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Gets details of a single AuthProvider. + * + * Create a request for the method "authProviders.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "authProviders.getIamPolicy". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + * Create a request for the method "authProviders.getIamPolicy". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Lists AuthProviders in a given project and location. + * + * Create a request for the method "authProviders.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+parent}/authProviders"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists AuthProviders in a given project and location. + * + * Create a request for the method "authProviders.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.ListAuthProvidersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filter results. This field is currently ignored. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter results. This field is currently ignored. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filter results. This field is currently ignored. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Currently ignored. Defaults to ordering by auth_provider_id in ascending + * order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Currently ignored. Defaults to ordering by auth_provider_id in ascending order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Currently ignored. Defaults to ordering by auth_provider_id in ascending + * order. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is + omitted, the first page is returned. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. Deleted auth_providers will be kept with a soft-delete for 30 days before + * being purged. If this field is set to true, deleted auth_providers will also be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.Boolean showDeleted; + + /** Optional. Deleted auth_providers will be kept with a soft-delete for 30 days before being purged. + If this field is set to true, deleted auth_providers will also be returned. + */ + public java.lang.Boolean getShowDeleted() { + return showDeleted; + } + + /** + * Optional. Deleted auth_providers will be kept with a soft-delete for 30 days before + * being purged. If this field is set to true, deleted auth_providers will also be + * returned. + */ + public List setShowDeleted(java.lang.Boolean showDeleted) { + this.showDeleted = showDeleted; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single AuthProvider. + * + * Create a request for the method "authProviders.patch". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.AuthProvider} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.agentidentity.v1.model.AuthProvider content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Updates the parameters of a single AuthProvider. + * + * Create a request for the method "authProviders.patch". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.AuthProvider} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.agentidentity.v1.model.AuthProvider content) { + super(AgentIdentity.this, "PATCH", REST_PATH, content, com.google.api.services.agentidentity.v1.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The full resource name of the auth_provider. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes since the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AuthProvider resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in + * the mask. If the user does not provide a mask then all fields present in the request + * will be overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the AuthProvider resource + by the update. The fields specified in the update_mask are relative to the resource, not the full + request. A field will be overwritten if it is in the mask. If the user does not provide a mask then + all fields present in the request will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AuthProvider resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in + * the mask. If the user does not provide a mask then all fields present in the request + * will be overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Queries what all auth_providers are used by a given workload_id. + * + * Create a request for the method "authProviders.query". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Query#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public Query query(java.lang.String parent) throws java.io.IOException { + Query result = new Query(parent); + initialize(result); + return result; + } + + public class Query extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+parent}/authProviders:query"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Queries what all auth_providers are used by a given workload_id. + * + * Create a request for the method "authProviders.query". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. + *

{@link + * Query#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected Query(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.QueryAuthProvidersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Query set$Xgafv(java.lang.String $Xgafv) { + return (Query) super.set$Xgafv($Xgafv); + } + + @Override + public Query setAccessToken(java.lang.String accessToken) { + return (Query) super.setAccessToken(accessToken); + } + + @Override + public Query setAlt(java.lang.String alt) { + return (Query) super.setAlt(alt); + } + + @Override + public Query setCallback(java.lang.String callback) { + return (Query) super.setCallback(callback); + } + + @Override + public Query setFields(java.lang.String fields) { + return (Query) super.setFields(fields); + } + + @Override + public Query setKey(java.lang.String key) { + return (Query) super.setKey(key); + } + + @Override + public Query setOauthToken(java.lang.String oauthToken) { + return (Query) super.setOauthToken(oauthToken); + } + + @Override + public Query setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Query) super.setPrettyPrint(prettyPrint); + } + + @Override + public Query setQuotaUser(java.lang.String quotaUser) { + return (Query) super.setQuotaUser(quotaUser); + } + + @Override + public Query setUploadType(java.lang.String uploadType) { + return (Query) super.setUploadType(uploadType); + } + + @Override + public Query setUploadProtocol(java.lang.String uploadProtocol) { + return (Query) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + public Query setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. The maximum page size is 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. The maximum page size is 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. The maximum page size is 1000. + */ + public Query setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. A page token, received from a previous + * QueryAuthProviders call. Provide this to retrieve the subsequent page. When paginating, + * all other parameters provided to QueryAuthProviders must match the call that provided + * the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is + omitted, the first page is returned. A page token, received from a previous QueryAuthProviders + call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided + to QueryAuthProviders must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. A page token, received from a previous + * QueryAuthProviders call. Provide this to retrieve the subsequent page. When paginating, + * all other parameters provided to QueryAuthProviders must match the call that provided + * the page token. + */ + public Query setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Required. The workload identifier to filter by. */ + @com.google.api.client.util.Key + private java.lang.String workloadId; + + /** Required. The workload identifier to filter by. + */ + public java.lang.String getWorkloadId() { + return workloadId; + } + + /** Required. The workload identifier to filter by. */ + public Query setWorkloadId(java.lang.String workloadId) { + this.workloadId = workloadId; + return this; + } + + @Override + public Query set(String parameterName, Object value) { + return (Query) super.set(parameterName, value); + } + } + /** + * Queries what all workloads are using a given auth_provider. + * + * Create a request for the method "authProviders.queryWorkloads". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link QueryWorkloads#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @return the request + */ + public QueryWorkloads queryWorkloads(java.lang.String name) throws java.io.IOException { + QueryWorkloads result = new QueryWorkloads(name); + initialize(result); + return result; + } + + public class QueryWorkloads extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}:queryWorkloads"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Queries what all workloads are using a given auth_provider. + * + * Create a request for the method "authProviders.queryWorkloads". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link QueryWorkloads#execute()} method to invoke the remote + * operation.

{@link QueryWorkloads#initialize(com.google.api.client.googleapis.services.Abstr + * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.

+ * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @since 1.13 + */ + protected QueryWorkloads(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.QueryWorkloadsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public QueryWorkloads set$Xgafv(java.lang.String $Xgafv) { + return (QueryWorkloads) super.set$Xgafv($Xgafv); + } + + @Override + public QueryWorkloads setAccessToken(java.lang.String accessToken) { + return (QueryWorkloads) super.setAccessToken(accessToken); + } + + @Override + public QueryWorkloads setAlt(java.lang.String alt) { + return (QueryWorkloads) super.setAlt(alt); + } + + @Override + public QueryWorkloads setCallback(java.lang.String callback) { + return (QueryWorkloads) super.setCallback(callback); + } + + @Override + public QueryWorkloads setFields(java.lang.String fields) { + return (QueryWorkloads) super.setFields(fields); + } + + @Override + public QueryWorkloads setKey(java.lang.String key) { + return (QueryWorkloads) super.setKey(key); + } + + @Override + public QueryWorkloads setOauthToken(java.lang.String oauthToken) { + return (QueryWorkloads) super.setOauthToken(oauthToken); + } + + @Override + public QueryWorkloads setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryWorkloads) super.setPrettyPrint(prettyPrint); + } + + @Override + public QueryWorkloads setQuotaUser(java.lang.String quotaUser) { + return (QueryWorkloads) super.setQuotaUser(quotaUser); + } + + @Override + public QueryWorkloads setUploadType(java.lang.String uploadType) { + return (QueryWorkloads) super.setUploadType(uploadType); + } + + @Override + public QueryWorkloads setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryWorkloads) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the auth_provider to query. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public QueryWorkloads setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public QueryWorkloads setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. When + * paginating, all other parameters provided to QueryWorkloads must match the call that + * provided the page token. If this field is omitted, the first page is returned. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token, which can be sent as `page_token` to retrieve the next page. When paginating, + all other parameters provided to QueryWorkloads must match the call that provided the page token. + If this field is omitted, the first page is returned. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. When + * paginating, all other parameters provided to QueryWorkloads must match the call that + * provided the page token. If this field is omitted, the first page is returned. + */ + public QueryWorkloads setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public QueryWorkloads set(String parameterName, Object value) { + return (QueryWorkloads) super.set(parameterName, value); + } + } + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all authorization + * records associated with the user and AuthProvider, effectively revoking access across all agents. + * + * Create a request for the method "authProviders.revokeAuthorization". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link RevokeAuthorization#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.RevokeAuthorizationRequest} + * @return the request + */ + public RevokeAuthorization revokeAuthorization(java.lang.String name, com.google.api.services.agentidentity.v1.model.RevokeAuthorizationRequest content) throws java.io.IOException { + RevokeAuthorization result = new RevokeAuthorization(name, content); + initialize(result); + return result; + } + + public class RevokeAuthorization extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}:revokeAuthorization"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + * Create a request for the method "authProviders.revokeAuthorization". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link RevokeAuthorization#execute()} method to invoke the remote + * operation.

{@link RevokeAuthorization#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.RevokeAuthorizationRequest} + * @since 1.13 + */ + protected RevokeAuthorization(java.lang.String name, com.google.api.services.agentidentity.v1.model.RevokeAuthorizationRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1.model.RevokeAuthorizationResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public RevokeAuthorization set$Xgafv(java.lang.String $Xgafv) { + return (RevokeAuthorization) super.set$Xgafv($Xgafv); + } + + @Override + public RevokeAuthorization setAccessToken(java.lang.String accessToken) { + return (RevokeAuthorization) super.setAccessToken(accessToken); + } + + @Override + public RevokeAuthorization setAlt(java.lang.String alt) { + return (RevokeAuthorization) super.setAlt(alt); + } + + @Override + public RevokeAuthorization setCallback(java.lang.String callback) { + return (RevokeAuthorization) super.setCallback(callback); + } + + @Override + public RevokeAuthorization setFields(java.lang.String fields) { + return (RevokeAuthorization) super.setFields(fields); + } + + @Override + public RevokeAuthorization setKey(java.lang.String key) { + return (RevokeAuthorization) super.setKey(key); + } + + @Override + public RevokeAuthorization setOauthToken(java.lang.String oauthToken) { + return (RevokeAuthorization) super.setOauthToken(oauthToken); + } + + @Override + public RevokeAuthorization setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RevokeAuthorization) super.setPrettyPrint(prettyPrint); + } + + @Override + public RevokeAuthorization setQuotaUser(java.lang.String quotaUser) { + return (RevokeAuthorization) super.setQuotaUser(quotaUser); + } + + @Override + public RevokeAuthorization setUploadType(java.lang.String uploadType) { + return (RevokeAuthorization) super.setUploadType(uploadType); + } + + @Override + public RevokeAuthorization setUploadProtocol(java.lang.String uploadProtocol) { + return (RevokeAuthorization) 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 name; + + /** Required. The resource name of the AuthProvider. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public RevokeAuthorization setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public RevokeAuthorization set(String parameterName, Object value) { + return (RevokeAuthorization) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "authProviders.setIamPolicy". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1.model.SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.agentidentity.v1.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "authProviders.setIamPolicy". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1.model.SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.agentidentity.v1.model.SetIamPolicyRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "authProviders.testIamPermissions". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1.model.TestIamPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.agentidentity.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "authProviders.testIamPermissions". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1.model.TestIamPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.agentidentity.v1.model.TestIamPermissionsRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Undeletes a single AuthProvider. + * + * Create a request for the method "authProviders.undelete". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Undelete#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.UndeleteAuthProviderRequest} + * @return the request + */ + public Undelete undelete(java.lang.String name, com.google.api.services.agentidentity.v1.model.UndeleteAuthProviderRequest content) throws java.io.IOException { + Undelete result = new Undelete(name, content); + initialize(result); + return result; + } + + public class Undelete extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}:undelete"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Undeletes a single AuthProvider. + * + * Create a request for the method "authProviders.undelete". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Undelete#execute()} method to invoke the remote operation. + *

{@link + * Undelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1.model.UndeleteAuthProviderRequest} + * @since 1.13 + */ + protected Undelete(java.lang.String name, com.google.api.services.agentidentity.v1.model.UndeleteAuthProviderRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Undelete set$Xgafv(java.lang.String $Xgafv) { + return (Undelete) super.set$Xgafv($Xgafv); + } + + @Override + public Undelete setAccessToken(java.lang.String accessToken) { + return (Undelete) super.setAccessToken(accessToken); + } + + @Override + public Undelete setAlt(java.lang.String alt) { + return (Undelete) super.setAlt(alt); + } + + @Override + public Undelete setCallback(java.lang.String callback) { + return (Undelete) super.setCallback(callback); + } + + @Override + public Undelete setFields(java.lang.String fields) { + return (Undelete) super.setFields(fields); + } + + @Override + public Undelete setKey(java.lang.String key) { + return (Undelete) super.setKey(key); + } + + @Override + public Undelete setOauthToken(java.lang.String oauthToken) { + return (Undelete) super.setOauthToken(oauthToken); + } + + @Override + public Undelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Undelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Undelete setQuotaUser(java.lang.String quotaUser) { + return (Undelete) super.setQuotaUser(quotaUser); + } + + @Override + public Undelete setUploadType(java.lang.String uploadType) { + return (Undelete) super.setUploadType(uploadType); + } + + @Override + public Undelete setUploadProtocol(java.lang.String uploadProtocol) { + return (Undelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Undelete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Undelete set(String parameterName, Object value) { + return (Undelete) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Authorizations collection. + * + *

The typical use is:

+ *
+         *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+         *   {@code AgentIdentity.Authorizations.List request = agentidentity.authorizations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Authorizations authorizations() { + return new Authorizations(); + } + + /** + * The "authorizations" collection of methods. + */ + public class Authorizations { + + /** + * Deletes a single Authorization. + * + * Create a request for the method "authorizations.delete". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{auth + * orization} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + + /** + * Deletes a single Authorization. + * + * Create a request for the method "authorizations.delete". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{auth + * orization} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AgentIdentity.this, "DELETE", REST_PATH, null, com.google.api.services.agentidentity.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Authorization to delete. Format: projects/{project}/locatio + * ns/{location}/authProviders/{auth_provider}/authorizations/{authorization} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Authorization to delete. Format: projects/{project}/locations/{location}/ + authProviders/{auth_provider}/authorizations/{authorization} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Authorization to delete. Format: projects/{project}/locatio + * ns/{location}/authProviders/{auth_provider}/authorizations/{authorization} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients from + * accidentally creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients from + * accidentally creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single Authorization. + * + * Create a request for the method "authorizations.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + + /** + * Gets details of a single Authorization. + * + * Create a request for the method "authorizations.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.Authorization.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Authorizations in a given project and location. + * + * Create a request for the method "authorizations.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1/{+parent}/authorizations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Lists Authorizations in a given project and location. + * + * Create a request for the method "authorizations.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1.model.ListAuthorizationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `client_user_id` only. Format: `client_user_id=""` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter string to restrict the results. Currently supports filtering by `client_user_id` + only. Format: `client_user_id=""` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `client_user_id` only. Format: `client_user_id=""` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by authorization_id + * in ascending order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. This field is currently ignored. Defaults to ordering by authorization_id in ascending + order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by authorization_id + * in ascending order. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListAuthorizations` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListAuthorizations` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListAuthorizations` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListAuthorizations` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListAuthorizations` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListAuthorizations` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + } + + /** + * Builder for {@link AgentIdentity}. + * + *

+ * 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: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link AgentIdentity}. */ + @Override + public AgentIdentity build() { + return new AgentIdentity(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link AgentIdentityRequestInitializer}. + * + * @since 1.12 + */ + public Builder setAgentIdentityRequestInitializer( + AgentIdentityRequestInitializer agentidentityRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(agentidentityRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentityRequest.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentityRequest.java new file mode 100644 index 00000000000..ac27851e30f --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentityRequest.java @@ -0,0 +1,267 @@ +/* + * 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.agentidentity.v1; + +/** + * AgentIdentity request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class AgentIdentityRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public AgentIdentityRequest( + AgentIdentity client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public AgentIdentityRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public AgentIdentityRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public AgentIdentityRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public AgentIdentityRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public AgentIdentityRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public AgentIdentityRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public AgentIdentityRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public AgentIdentityRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public AgentIdentityRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public AgentIdentityRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public AgentIdentityRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final AgentIdentity getAbstractGoogleClient() { + return (AgentIdentity) super.getAbstractGoogleClient(); + } + + @Override + public AgentIdentityRequest setDisableGZipContent(boolean disableGZipContent) { + return (AgentIdentityRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public AgentIdentityRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (AgentIdentityRequest) super.setRequestHeaders(headers); + } + + @Override + public AgentIdentityRequest set(String parameterName, Object value) { + return (AgentIdentityRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentityRequestInitializer.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentityRequestInitializer.java new file mode 100644 index 00000000000..58eea1b7d4a --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentityRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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.agentidentity.v1; + +/** + * AgentIdentity request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new AgentIdentityRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new AgentIdentityRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends AgentIdentityRequestInitializer {
+
+    {@literal @}Override
+    public void initializeAgentIdentityRequest(AgentIdentityRequest{@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 AgentIdentityRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeAgentIdentityRequest(AgentIdentityRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class AgentIdentityRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AgentIdentityRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AgentIdentityRequestInitializer(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 AgentIdentityRequestInitializer(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); + initializeAgentIdentityRequest((AgentIdentityRequest) request); + } + + /** + * Initializes AgentIdentity 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 initializeAgentIdentityRequest(AgentIdentityRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentityScopes.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentityScopes.java new file mode 100644 index 00000000000..8c4ae953dcd --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/AgentIdentityScopes.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.agentidentity.v1; + +/** + * Available OAuth 2.0 scopes for use with the Agent Identity API. + * + * @since 1.4 + */ +public class AgentIdentityScopes { + + /** 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.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CLOUD_PLATFORM); + return java.util.Collections.unmodifiableSet(set); + } + + private AgentIdentityScopes() { + } +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AccessSummary.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AccessSummary.java new file mode 100644 index 00000000000..832eb84bb85 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AccessSummary.java @@ -0,0 +1,321 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message describing AccessSummary object + * + *

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 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 AccessSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The auth_provider that this access summary is associated with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authProvider; + + /** + * Output only. The type of the connector that was used to create this access summary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authProviderType; + + /** + * Output only. The first time this user has interacted with this workload. Rounded to the + * previous hour. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String firstAccessTime; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. The most recent time this user has interacted with this workload. Rounded to the + * previous hour. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastAccessTime; + + /** + * Output only. Identifier. Name of the AccessSummary + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The time when this access summary is permanently deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String purgeTime; + + /** + * Output only. All scopes that have been used by this user with this workload. The number of + * scopes is limited to 200. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Output only. The url of the authentication server that was accessed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenUrl; + + /** + * Output only. The user_id provided by the workload application for this user. Not verified by + * Google. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Output only. The identity bound to the workload that this user interacted with to produce this + * AccessSummary. Will typically be an agentic spiffe id + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String workloadId; + + /** + * Output only. The auth_provider that this access summary is associated with. + * @return value or {@code null} for none + */ + public java.lang.String getAuthProvider() { + return authProvider; + } + + /** + * Output only. The auth_provider that this access summary is associated with. + * @param authProvider authProvider or {@code null} for none + */ + public AccessSummary setAuthProvider(java.lang.String authProvider) { + this.authProvider = authProvider; + return this; + } + + /** + * Output only. The type of the connector that was used to create this access summary. + * @return value or {@code null} for none + */ + public java.lang.String getAuthProviderType() { + return authProviderType; + } + + /** + * Output only. The type of the connector that was used to create this access summary. + * @param authProviderType authProviderType or {@code null} for none + */ + public AccessSummary setAuthProviderType(java.lang.String authProviderType) { + this.authProviderType = authProviderType; + return this; + } + + /** + * Output only. The first time this user has interacted with this workload. Rounded to the + * previous hour. + * @return value or {@code null} for none + */ + public String getFirstAccessTime() { + return firstAccessTime; + } + + /** + * Output only. The first time this user has interacted with this workload. Rounded to the + * previous hour. + * @param firstAccessTime firstAccessTime or {@code null} for none + */ + public AccessSummary setFirstAccessTime(String firstAccessTime) { + this.firstAccessTime = firstAccessTime; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public AccessSummary setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. The most recent time this user has interacted with this workload. Rounded to the + * previous hour. + * @return value or {@code null} for none + */ + public String getLastAccessTime() { + return lastAccessTime; + } + + /** + * Output only. The most recent time this user has interacted with this workload. Rounded to the + * previous hour. + * @param lastAccessTime lastAccessTime or {@code null} for none + */ + public AccessSummary setLastAccessTime(String lastAccessTime) { + this.lastAccessTime = lastAccessTime; + return this; + } + + /** + * Output only. Identifier. Name of the AccessSummary + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Identifier. Name of the AccessSummary + * @param name name or {@code null} for none + */ + public AccessSummary setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The time when this access summary is permanently deleted. + * @return value or {@code null} for none + */ + public String getPurgeTime() { + return purgeTime; + } + + /** + * Output only. The time when this access summary is permanently deleted. + * @param purgeTime purgeTime or {@code null} for none + */ + public AccessSummary setPurgeTime(String purgeTime) { + this.purgeTime = purgeTime; + return this; + } + + /** + * Output only. All scopes that have been used by this user with this workload. The number of + * scopes is limited to 200. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Output only. All scopes that have been used by this user with this workload. The number of + * scopes is limited to 200. + * @param scopes scopes or {@code null} for none + */ + public AccessSummary setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Output only. The url of the authentication server that was accessed. + * @return value or {@code null} for none + */ + public java.lang.String getTokenUrl() { + return tokenUrl; + } + + /** + * Output only. The url of the authentication server that was accessed. + * @param tokenUrl tokenUrl or {@code null} for none + */ + public AccessSummary setTokenUrl(java.lang.String tokenUrl) { + this.tokenUrl = tokenUrl; + return this; + } + + /** + * Output only. The user_id provided by the workload application for this user. Not verified by + * Google. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Output only. The user_id provided by the workload application for this user. Not verified by + * Google. + * @param userId userId or {@code null} for none + */ + public AccessSummary setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + /** + * Output only. The identity bound to the workload that this user interacted with to produce this + * AccessSummary. Will typically be an agentic spiffe id + * @return value or {@code null} for none + */ + public java.lang.String getWorkloadId() { + return workloadId; + } + + /** + * Output only. The identity bound to the workload that this user interacted with to produce this + * AccessSummary. Will typically be an agentic spiffe id + * @param workloadId workloadId or {@code null} for none + */ + public AccessSummary setWorkloadId(java.lang.String workloadId) { + this.workloadId = workloadId; + return this; + } + + @Override + public AccessSummary set(String fieldName, Object value) { + return (AccessSummary) super.set(fieldName, value); + } + + @Override + public AccessSummary clone() { + return (AccessSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ApiKeyParams.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ApiKeyParams.java new file mode 100644 index 00000000000..19439b3dc79 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ApiKeyParams.java @@ -0,0 +1,66 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message describing ApiKeyParams object. + * + *

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 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 ApiKeyParams extends com.google.api.client.json.GenericJson { + + /** + * Optional. Input only. The API key for this auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKey; + + /** + * Optional. Input only. The API key for this auth_provider. + * @return value or {@code null} for none + */ + public java.lang.String getApiKey() { + return apiKey; + } + + /** + * Optional. Input only. The API key for this auth_provider. + * @param apiKey apiKey or {@code null} for none + */ + public ApiKeyParams setApiKey(java.lang.String apiKey) { + this.apiKey = apiKey; + return this; + } + + @Override + public ApiKeyParams set(String fieldName, Object value) { + return (ApiKeyParams) super.set(fieldName, value); + } + + @Override + public ApiKeyParams clone() { + return (ApiKeyParams) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuditConfig.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuditConfig.java new file mode 100644 index 00000000000..710bcd17b5e --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuditConfig.java @@ -0,0 +1,107 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Specifies the audit configuration for a service. The configuration determines which permission + * types are logged, and what identities, if any, are exempted from logging. An AuditConfig must + * have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific + * service, the union of the two AuditConfigs is used for that service: the log_types specified in + * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. + * Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", + * "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] + * }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": + * "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": + * "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this + * policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` + * from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging. + * + *

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 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 AuditConfig extends com.google.api.client.json.GenericJson { + + /** + * The configuration for logging of each type of permission. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List auditLogConfigs; + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * The configuration for logging of each type of permission. + * @return value or {@code null} for none + */ + public java.util.List getAuditLogConfigs() { + return auditLogConfigs; + } + + /** + * The configuration for logging of each type of permission. + * @param auditLogConfigs auditLogConfigs or {@code null} for none + */ + public AuditConfig setAuditLogConfigs(java.util.List auditLogConfigs) { + this.auditLogConfigs = auditLogConfigs; + return this; + } + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * @param service service or {@code null} for none + */ + public AuditConfig setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public AuditConfig set(String fieldName, Object value) { + return (AuditConfig) super.set(fieldName, value); + } + + @Override + public AuditConfig clone() { + return (AuditConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuditLogConfig.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuditLogConfig.java new file mode 100644 index 00000000000..53c8dfcf18c --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuditLogConfig.java @@ -0,0 +1,96 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { + * "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": + * "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + * jose@example.com from DATA_READ logging. + * + *

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 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 AuditLogConfig extends com.google.api.client.json.GenericJson { + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List exemptedMembers; + + /** + * The log type that this config enables. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String logType; + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * @return value or {@code null} for none + */ + public java.util.List getExemptedMembers() { + return exemptedMembers; + } + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * @param exemptedMembers exemptedMembers or {@code null} for none + */ + public AuditLogConfig setExemptedMembers(java.util.List exemptedMembers) { + this.exemptedMembers = exemptedMembers; + return this; + } + + /** + * The log type that this config enables. + * @return value or {@code null} for none + */ + public java.lang.String getLogType() { + return logType; + } + + /** + * The log type that this config enables. + * @param logType logType or {@code null} for none + */ + public AuditLogConfig setLogType(java.lang.String logType) { + this.logType = logType; + return this; + } + + @Override + public AuditLogConfig set(String fieldName, Object value) { + return (AuditLogConfig) super.set(fieldName, value); + } + + @Override + public AuditLogConfig clone() { + return (AuditLogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuthProvider.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuthProvider.java new file mode 100644 index 00000000000..3a8685840ce --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuthProvider.java @@ -0,0 +1,360 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message describing AuthProvider object + * + *

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 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 AuthProvider extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of scopes that are allowed to be requested for this auth_provider. If this list + * is non-empty, only scopes within this list may be requested. If this list is empty, all scopes + * may be requested. Scopes appearing in `blocked_scopes` are disallowed even if they appear in + * `allowed_scopes`. The number of allowed scopes is limited to 200. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedScopes; + + /** + * Required. AuthProvider type specific parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AuthProviderTypeParams authProviderTypeParams; + + /** + * Optional. List of scopes that are blocked from being requested for this auth_provider. If a + * scope appears in this list, it will not be requested, even if it also appears in + * `allowed_scopes`. `blocked_scopes` takes precedence over `allowed_scopes`. The number of + * blocked scopes is limited to 200. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List blockedScopes; + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. This is set to true if the auth_provider is deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean deleted; + + /** + * Optional. Description of the resource. Must be less than 256 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. The time when the auth_provider will expire. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The state of the auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Input only. Represents the workload identity in IAM `principal://` format of the + * agent(s) that will use this AuthProvider. Example: `principal://agents.global.org-${ORG_ID}.sys + * tem.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ + * ID}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List workloadIds; + + /** + * Optional. List of scopes that are allowed to be requested for this auth_provider. If this list + * is non-empty, only scopes within this list may be requested. If this list is empty, all scopes + * may be requested. Scopes appearing in `blocked_scopes` are disallowed even if they appear in + * `allowed_scopes`. The number of allowed scopes is limited to 200. + * @return value or {@code null} for none + */ + public java.util.List getAllowedScopes() { + return allowedScopes; + } + + /** + * Optional. List of scopes that are allowed to be requested for this auth_provider. If this list + * is non-empty, only scopes within this list may be requested. If this list is empty, all scopes + * may be requested. Scopes appearing in `blocked_scopes` are disallowed even if they appear in + * `allowed_scopes`. The number of allowed scopes is limited to 200. + * @param allowedScopes allowedScopes or {@code null} for none + */ + public AuthProvider setAllowedScopes(java.util.List allowedScopes) { + this.allowedScopes = allowedScopes; + return this; + } + + /** + * Required. AuthProvider type specific parameters. + * @return value or {@code null} for none + */ + public AuthProviderTypeParams getAuthProviderTypeParams() { + return authProviderTypeParams; + } + + /** + * Required. AuthProvider type specific parameters. + * @param authProviderTypeParams authProviderTypeParams or {@code null} for none + */ + public AuthProvider setAuthProviderTypeParams(AuthProviderTypeParams authProviderTypeParams) { + this.authProviderTypeParams = authProviderTypeParams; + return this; + } + + /** + * Optional. List of scopes that are blocked from being requested for this auth_provider. If a + * scope appears in this list, it will not be requested, even if it also appears in + * `allowed_scopes`. `blocked_scopes` takes precedence over `allowed_scopes`. The number of + * blocked scopes is limited to 200. + * @return value or {@code null} for none + */ + public java.util.List getBlockedScopes() { + return blockedScopes; + } + + /** + * Optional. List of scopes that are blocked from being requested for this auth_provider. If a + * scope appears in this list, it will not be requested, even if it also appears in + * `allowed_scopes`. `blocked_scopes` takes precedence over `allowed_scopes`. The number of + * blocked scopes is limited to 200. + * @param blockedScopes blockedScopes or {@code null} for none + */ + public AuthProvider setBlockedScopes(java.util.List blockedScopes) { + this.blockedScopes = blockedScopes; + return this; + } + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public AuthProvider setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. This is set to true if the auth_provider is deleted. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDeleted() { + return deleted; + } + + /** + * Output only. This is set to true if the auth_provider is deleted. + * @param deleted deleted or {@code null} for none + */ + public AuthProvider setDeleted(java.lang.Boolean deleted) { + this.deleted = deleted; + return this; + } + + /** + * Optional. Description of the resource. Must be less than 256 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the resource. Must be less than 256 characters. + * @param description description or {@code null} for none + */ + public AuthProvider setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. The time when the auth_provider will expire. + * @return value or {@code null} for none + */ + public String getExpireTime() { + return expireTime; + } + + /** + * Output only. The time when the auth_provider will expire. + * @param expireTime expireTime or {@code null} for none + */ + public AuthProvider setExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public AuthProvider setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param name name or {@code null} for none + */ + public AuthProvider setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The state of the auth_provider. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the auth_provider. + * @param state state or {@code null} for none + */ + public AuthProvider setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public AuthProvider setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. Input only. Represents the workload identity in IAM `principal://` format of the + * agent(s) that will use this AuthProvider. Example: `principal://agents.global.org-${ORG_ID}.sys + * tem.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ + * ID}` + * @return value or {@code null} for none + */ + public java.util.List getWorkloadIds() { + return workloadIds; + } + + /** + * Optional. Input only. Represents the workload identity in IAM `principal://` format of the + * agent(s) that will use this AuthProvider. Example: `principal://agents.global.org-${ORG_ID}.sys + * tem.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ + * ID}` + * @param workloadIds workloadIds or {@code null} for none + */ + public AuthProvider setWorkloadIds(java.util.List workloadIds) { + this.workloadIds = workloadIds; + return this; + } + + @Override + public AuthProvider set(String fieldName, Object value) { + return (AuthProvider) super.set(fieldName, value); + } + + @Override + public AuthProvider clone() { + return (AuthProvider) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuthProviderTypeParams.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuthProviderTypeParams.java new file mode 100644 index 00000000000..bdf5b29afd6 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/AuthProviderTypeParams.java @@ -0,0 +1,138 @@ +/* + * 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.agentidentity.v1.model; + +/** + * AuthProvider type specific parameters. Required when creating an auth_provider. + * + *

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 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 AuthProviderTypeParams extends com.google.api.client.json.GenericJson { + + /** + * ApiKey AuthProvider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiKeyParams apiKey; + + /** + * GeminiEnterprise auth_provider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GeminiEnterpriseAuthProviderParams geAuthProvider; + + /** + * ThreeLeggedOAuth AuthProvider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ThreeLeggedOAuth threeLeggedOauth; + + /** + * TwoLeggedOAuth AuthProvider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TwoLeggedOAuth twoLeggedOauth; + + /** + * ApiKey AuthProvider type parameters. + * @return value or {@code null} for none + */ + public ApiKeyParams getApiKey() { + return apiKey; + } + + /** + * ApiKey AuthProvider type parameters. + * @param apiKey apiKey or {@code null} for none + */ + public AuthProviderTypeParams setApiKey(ApiKeyParams apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * GeminiEnterprise auth_provider type parameters. + * @return value or {@code null} for none + */ + public GeminiEnterpriseAuthProviderParams getGeAuthProvider() { + return geAuthProvider; + } + + /** + * GeminiEnterprise auth_provider type parameters. + * @param geAuthProvider geAuthProvider or {@code null} for none + */ + public AuthProviderTypeParams setGeAuthProvider(GeminiEnterpriseAuthProviderParams geAuthProvider) { + this.geAuthProvider = geAuthProvider; + return this; + } + + /** + * ThreeLeggedOAuth AuthProvider type parameters. + * @return value or {@code null} for none + */ + public ThreeLeggedOAuth getThreeLeggedOauth() { + return threeLeggedOauth; + } + + /** + * ThreeLeggedOAuth AuthProvider type parameters. + * @param threeLeggedOauth threeLeggedOauth or {@code null} for none + */ + public AuthProviderTypeParams setThreeLeggedOauth(ThreeLeggedOAuth threeLeggedOauth) { + this.threeLeggedOauth = threeLeggedOauth; + return this; + } + + /** + * TwoLeggedOAuth AuthProvider type parameters. + * @return value or {@code null} for none + */ + public TwoLeggedOAuth getTwoLeggedOauth() { + return twoLeggedOauth; + } + + /** + * TwoLeggedOAuth AuthProvider type parameters. + * @param twoLeggedOauth twoLeggedOauth or {@code null} for none + */ + public AuthProviderTypeParams setTwoLeggedOauth(TwoLeggedOAuth twoLeggedOauth) { + this.twoLeggedOauth = twoLeggedOauth; + return this; + } + + @Override + public AuthProviderTypeParams set(String fieldName, Object value) { + return (AuthProviderTypeParams) super.set(fieldName, value); + } + + @Override + public AuthProviderTypeParams clone() { + return (AuthProviderTypeParams) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Authorization.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Authorization.java new file mode 100644 index 00000000000..391ec437d9b --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Authorization.java @@ -0,0 +1,189 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message describing Authorization object + * + *

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 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 Authorization extends com.google.api.client.json.GenericJson { + + /** + * Output only. The client_user_id provided by the client application for their end user. Not + * verified by Google. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientUserId; + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. name of resource + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The scopes actually granted by the end user during the consent flow. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Output only. The state of the authorization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The client_user_id provided by the client application for their end user. Not + * verified by Google. + * @return value or {@code null} for none + */ + public java.lang.String getClientUserId() { + return clientUserId; + } + + /** + * Output only. The client_user_id provided by the client application for their end user. Not + * verified by Google. + * @param clientUserId clientUserId or {@code null} for none + */ + public Authorization setClientUserId(java.lang.String clientUserId) { + this.clientUserId = clientUserId; + return this; + } + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public Authorization setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. name of resource + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. name of resource + * @param name name or {@code null} for none + */ + public Authorization setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The scopes actually granted by the end user during the consent flow. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Output only. The scopes actually granted by the end user during the consent flow. + * @param scopes scopes or {@code null} for none + */ + public Authorization setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Output only. The state of the authorization. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the authorization. + * @param state state or {@code null} for none + */ + public Authorization setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public Authorization setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Authorization set(String fieldName, Object value) { + return (Authorization) super.set(fieldName, value); + } + + @Override + public Authorization clone() { + return (Authorization) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Binding.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Binding.java new file mode 100644 index 00000000000..f3577c8c5e0 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Binding.java @@ -0,0 +1,270 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Associates `members`, or principals, with a `role`. + * + *

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 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 Binding extends com.google.api.client.json.GenericJson { + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Expr condition; + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List members; + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public Expr getCondition() { + return condition; + } + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param condition condition or {@code null} for none + */ + public Binding setCondition(Expr condition) { + this.condition = condition; + return this; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * @return value or {@code null} for none + */ + public java.util.List getMembers() { + return members; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * @param members members or {@code null} for none + */ + public Binding setMembers(java.util.List members) { + this.members = members; + return this; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @param role role or {@code null} for none + */ + public Binding setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public Binding set(String fieldName, Object value) { + return (Binding) super.set(fieldName, value); + } + + @Override + public Binding clone() { + return (Binding) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/DisableAuthProviderRequest.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/DisableAuthProviderRequest.java new file mode 100644 index 00000000000..669a60442c7 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/DisableAuthProviderRequest.java @@ -0,0 +1,78 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message for disabling an AuthProvider + * + *

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 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 DisableAuthProviderRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public DisableAuthProviderRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DisableAuthProviderRequest set(String fieldName, Object value) { + return (DisableAuthProviderRequest) super.set(fieldName, value); + } + + @Override + public DisableAuthProviderRequest clone() { + return (DisableAuthProviderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Empty.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Empty.java new file mode 100644 index 00000000000..701f287650c --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Empty.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.agentidentity.v1.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.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 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 Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/EnableAuthProviderRequest.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/EnableAuthProviderRequest.java new file mode 100644 index 00000000000..f263ff10db5 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/EnableAuthProviderRequest.java @@ -0,0 +1,78 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message for enabling an AuthProvider + * + *

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 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 EnableAuthProviderRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public EnableAuthProviderRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public EnableAuthProviderRequest set(String fieldName, Object value) { + return (EnableAuthProviderRequest) super.set(fieldName, value); + } + + @Override + public EnableAuthProviderRequest clone() { + return (EnableAuthProviderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Expr.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Expr.java new file mode 100644 index 00000000000..792c5b1c268 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Expr.java @@ -0,0 +1,159 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like + * expression language. The syntax and semantics of CEL are documented at + * https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" + * description: "Determines if a summary is less than 100 chars" expression: + * "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: + * "Determines if requestor is the document owner" expression: "document.owner == + * request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine + * whether the document should be publicly visible" expression: "document.type != 'private' && + * document.type != 'internal'" Example (Data Manipulation): title: "Notification string" + * description: "Create a notification string with a timestamp." expression: "'New message received + * at ' + string(document.create_time)" The exact variables and functions that may be referenced + * within an expression are determined by the service that evaluates it. See the service + * documentation for additional information. + * + *

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 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 Expr extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Textual representation of an expression in Common Expression Language syntax. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @param description description or {@code null} for none + */ + public Expr setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @param expression expression or {@code null} for none + */ + public Expr setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @param location location or {@code null} for none + */ + public Expr setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @param title title or {@code null} for none + */ + public Expr setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public Expr set(String fieldName, Object value) { + return (Expr) super.set(fieldName, value); + } + + @Override + public Expr clone() { + return (Expr) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/GeminiEnterpriseAuthProviderParams.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/GeminiEnterpriseAuthProviderParams.java new file mode 100644 index 00000000000..b86ced312ca --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/GeminiEnterpriseAuthProviderParams.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.agentidentity.v1.model; + +/** + * Message describing GeminiEnterpriseAuthProviderParams object. + * + *

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 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 GeminiEnterpriseAuthProviderParams extends com.google.api.client.json.GenericJson { + + @Override + public GeminiEnterpriseAuthProviderParams set(String fieldName, Object value) { + return (GeminiEnterpriseAuthProviderParams) super.set(fieldName, value); + } + + @Override + public GeminiEnterpriseAuthProviderParams clone() { + return (GeminiEnterpriseAuthProviderParams) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListAccessSummariesResponse.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListAccessSummariesResponse.java new file mode 100644 index 00000000000..59c66e1cb93 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListAccessSummariesResponse.java @@ -0,0 +1,120 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message for response to listing AccessSummaries + * + *

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 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 ListAccessSummariesResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of AccessSummary + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accessSummaries; + + static { + // hack to force ProGuard to consider AccessSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AccessSummary.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of AccessSummary + * @return value or {@code null} for none + */ + public java.util.List getAccessSummaries() { + return accessSummaries; + } + + /** + * The list of AccessSummary + * @param accessSummaries accessSummaries or {@code null} for none + */ + public ListAccessSummariesResponse setAccessSummaries(java.util.List accessSummaries) { + this.accessSummaries = accessSummaries; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAccessSummariesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAccessSummariesResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAccessSummariesResponse set(String fieldName, Object value) { + return (ListAccessSummariesResponse) super.set(fieldName, value); + } + + @Override + public ListAccessSummariesResponse clone() { + return (ListAccessSummariesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListAuthProvidersResponse.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListAuthProvidersResponse.java new file mode 100644 index 00000000000..16389a46cf0 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListAuthProvidersResponse.java @@ -0,0 +1,120 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message for response to listing AuthProviders + * + *

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 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 ListAuthProvidersResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of AuthProvider + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authProviders; + + static { + // hack to force ProGuard to consider AuthProvider used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AuthProvider.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of AuthProvider + * @return value or {@code null} for none + */ + public java.util.List getAuthProviders() { + return authProviders; + } + + /** + * The list of AuthProvider + * @param authProviders authProviders or {@code null} for none + */ + public ListAuthProvidersResponse setAuthProviders(java.util.List authProviders) { + this.authProviders = authProviders; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAuthProvidersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAuthProvidersResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAuthProvidersResponse set(String fieldName, Object value) { + return (ListAuthProvidersResponse) super.set(fieldName, value); + } + + @Override + public ListAuthProvidersResponse clone() { + return (ListAuthProvidersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListAuthorizationsResponse.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListAuthorizationsResponse.java new file mode 100644 index 00000000000..f0e476eaf74 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListAuthorizationsResponse.java @@ -0,0 +1,120 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message for response to listing Authorizations + * + *

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 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 ListAuthorizationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of Authorization + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authorizations; + + static { + // hack to force ProGuard to consider Authorization used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Authorization.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of Authorization + * @return value or {@code null} for none + */ + public java.util.List getAuthorizations() { + return authorizations; + } + + /** + * The list of Authorization + * @param authorizations authorizations or {@code null} for none + */ + public ListAuthorizationsResponse setAuthorizations(java.util.List authorizations) { + this.authorizations = authorizations; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAuthorizationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAuthorizationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAuthorizationsResponse set(String fieldName, Object value) { + return (ListAuthorizationsResponse) super.set(fieldName, value); + } + + @Override + public ListAuthorizationsResponse clone() { + return (ListAuthorizationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListLocationsResponse.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListLocationsResponse.java new file mode 100644 index 00000000000..199541e61a3 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ListLocationsResponse.java @@ -0,0 +1,90 @@ +/* + * 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.agentidentity.v1.model; + +/** + * The response message for Locations.ListLocations. + * + *

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 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 ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of locations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of locations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Location.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Location.java new file mode 100644 index 00000000000..b015db64a42 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Location.java @@ -0,0 +1,168 @@ +/* + * 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.agentidentity.v1.model; + +/** + * A resource that represents a Google Cloud location. + * + *

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 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 Location extends com.google.api.client.json.GenericJson { + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The canonical id for this location. For example: `"us-east1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationId; + + /** + * Service-specific metadata. For example the available capacity at the given location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @param displayName displayName or {@code null} for none + */ + public Location setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @return value or {@code null} for none + */ + public java.lang.String getLocationId() { + return locationId; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @param locationId locationId or {@code null} for none + */ + public Location setLocationId(java.lang.String locationId) { + this.locationId = locationId; + return this; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Policy.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Policy.java new file mode 100644 index 00000000000..a8d3f10872a --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/Policy.java @@ -0,0 +1,291 @@ +/* + * 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.agentidentity.v1.model; + +/** + * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud + * resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or + * principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, + * and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM + * predefined role or a user-created custom role. For some types of Google Cloud resources, a + * `binding` can also specify a `condition`, which is a logical expression that allows access to a + * resource only if the expression evaluates to `true`. A condition can add constraints based on + * attributes of the request, the resource, or both. To learn which resources support conditions in + * their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** + * ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ + * "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my- + * project-id@appspot.gserviceaccount.com" ] }, { "role": + * "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { + * "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": + * "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": + * 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - serviceAccount:my-project- + * id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - + * user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable + * access description: Does not grant access after Sep 2020 expression: request.time < + * timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM + * and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + * + *

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 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 Policy extends com.google.api.client.json.GenericJson { + + /** + * Specifies cloud audit logging configuration for this policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List auditConfigs; + + static { + // hack to force ProGuard to consider AuditConfig used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AuditConfig.class); + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bindings; + + static { + // hack to force ProGuard to consider Binding used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Binding.class); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer version; + + /** + * Specifies cloud audit logging configuration for this policy. + * @return value or {@code null} for none + */ + public java.util.List getAuditConfigs() { + return auditConfigs; + } + + /** + * Specifies cloud audit logging configuration for this policy. + * @param auditConfigs auditConfigs or {@code null} for none + */ + public Policy setAuditConfigs(java.util.List auditConfigs) { + this.auditConfigs = auditConfigs; + return this; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * @param bindings bindings or {@code null} for none + */ + public Policy setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public Policy setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #setEtag() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Policy encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public java.lang.Integer getVersion() { + return version; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param version version or {@code null} for none + */ + public Policy setVersion(java.lang.Integer version) { + this.version = version; + return this; + } + + @Override + public Policy set(String fieldName, Object value) { + return (Policy) super.set(fieldName, value); + } + + @Override + public Policy clone() { + return (Policy) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/QueryAuthProvidersResponse.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/QueryAuthProvidersResponse.java new file mode 100644 index 00000000000..a75fbfdfc7c --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/QueryAuthProvidersResponse.java @@ -0,0 +1,93 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Response message for QueryAuthProviders. + * + *

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 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 QueryAuthProvidersResponse extends com.google.api.client.json.GenericJson { + + /** + * The unique list of auth_provider resource names used by the workload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authProviderNames; + + /** + * A token identifying a page of results the server should return. If this field is omitted, there + * are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The unique list of auth_provider resource names used by the workload. + * @return value or {@code null} for none + */ + public java.util.List getAuthProviderNames() { + return authProviderNames; + } + + /** + * The unique list of auth_provider resource names used by the workload. + * @param authProviderNames authProviderNames or {@code null} for none + */ + public QueryAuthProvidersResponse setAuthProviderNames(java.util.List authProviderNames) { + this.authProviderNames = authProviderNames; + return this; + } + + /** + * A token identifying a page of results the server should return. If this field is omitted, there + * are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. If this field is omitted, there + * are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public QueryAuthProvidersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public QueryAuthProvidersResponse set(String fieldName, Object value) { + return (QueryAuthProvidersResponse) super.set(fieldName, value); + } + + @Override + public QueryAuthProvidersResponse clone() { + return (QueryAuthProvidersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/QueryWorkloadsResponse.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/QueryWorkloadsResponse.java new file mode 100644 index 00000000000..8448d0743fe --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/QueryWorkloadsResponse.java @@ -0,0 +1,90 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Response message for QueryWorkloads. + * + *

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 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 QueryWorkloadsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The unique list of workload identifiers (agents) that used the auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List workloadIds; + + /** + * A token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public QueryWorkloadsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The unique list of workload identifiers (agents) that used the auth_provider. + * @return value or {@code null} for none + */ + public java.util.List getWorkloadIds() { + return workloadIds; + } + + /** + * The unique list of workload identifiers (agents) that used the auth_provider. + * @param workloadIds workloadIds or {@code null} for none + */ + public QueryWorkloadsResponse setWorkloadIds(java.util.List workloadIds) { + this.workloadIds = workloadIds; + return this; + } + + @Override + public QueryWorkloadsResponse set(String fieldName, Object value) { + return (QueryWorkloadsResponse) super.set(fieldName, value); + } + + @Override + public QueryWorkloadsResponse clone() { + return (QueryWorkloadsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/RevokeAuthorizationRequest.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/RevokeAuthorizationRequest.java new file mode 100644 index 00000000000..8b6ccbc0d65 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/RevokeAuthorizationRequest.java @@ -0,0 +1,66 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Request message for RevokeAuthorization. + * + *

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 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 RevokeAuthorizationRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The identity of the user to revoke authorization for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Required. The identity of the user to revoke authorization for. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Required. The identity of the user to revoke authorization for. + * @param userId userId or {@code null} for none + */ + public RevokeAuthorizationRequest setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + @Override + public RevokeAuthorizationRequest set(String fieldName, Object value) { + return (RevokeAuthorizationRequest) super.set(fieldName, value); + } + + @Override + public RevokeAuthorizationRequest clone() { + return (RevokeAuthorizationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/RevokeAuthorizationResponse.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/RevokeAuthorizationResponse.java new file mode 100644 index 00000000000..033ff21e818 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/RevokeAuthorizationResponse.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.agentidentity.v1.model; + +/** + * Response message for RevokeAuthorization. + * + *

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 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 RevokeAuthorizationResponse extends com.google.api.client.json.GenericJson { + + @Override + public RevokeAuthorizationResponse set(String fieldName, Object value) { + return (RevokeAuthorizationResponse) super.set(fieldName, value); + } + + @Override + public RevokeAuthorizationResponse clone() { + return (RevokeAuthorizationResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/SetIamPolicyRequest.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/SetIamPolicyRequest.java new file mode 100644 index 00000000000..755637998d3 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/SetIamPolicyRequest.java @@ -0,0 +1,102 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Request message for `SetIamPolicy` method. + * + *

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 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 SetIamPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Policy policy; + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the + * mask will be modified. If no mask is provided, the following default mask is used: `paths: + * "bindings, etag"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @return value or {@code null} for none + */ + public Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public SetIamPolicyRequest setPolicy(Policy policy) { + this.policy = policy; + return this; + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the + * mask will be modified. If no mask is provided, the following default mask is used: `paths: + * "bindings, etag"` + * @return value or {@code null} for none + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the + * mask will be modified. If no mask is provided, the following default mask is used: `paths: + * "bindings, etag"` + * @param updateMask updateMask or {@code null} for none + */ + public SetIamPolicyRequest setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public SetIamPolicyRequest set(String fieldName, Object value) { + return (SetIamPolicyRequest) super.set(fieldName, value); + } + + @Override + public SetIamPolicyRequest clone() { + return (SetIamPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/TestIamPermissionsRequest.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/TestIamPermissionsRequest.java new file mode 100644 index 00000000000..ddb3fcb3aac --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/TestIamPermissionsRequest.java @@ -0,0 +1,72 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Request message for `TestIamPermissions` method. + * + *

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 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 TestIamPermissionsRequest extends com.google.api.client.json.GenericJson { + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + * `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + * `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + * `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param permissions permissions or {@code null} for none + */ + public TestIamPermissionsRequest setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestIamPermissionsRequest set(String fieldName, Object value) { + return (TestIamPermissionsRequest) super.set(fieldName, value); + } + + @Override + public TestIamPermissionsRequest clone() { + return (TestIamPermissionsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/TestIamPermissionsResponse.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/TestIamPermissionsResponse.java new file mode 100644 index 00000000000..cd0b9e5cb03 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/TestIamPermissionsResponse.java @@ -0,0 +1,66 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Response message for `TestIamPermissions` method. + * + *

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 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 TestIamPermissionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * @param permissions permissions or {@code null} for none + */ + public TestIamPermissionsResponse setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestIamPermissionsResponse set(String fieldName, Object value) { + return (TestIamPermissionsResponse) super.set(fieldName, value); + } + + @Override + public TestIamPermissionsResponse clone() { + return (TestIamPermissionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ThreeLeggedOAuth.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ThreeLeggedOAuth.java new file mode 100644 index 00000000000..9db1d93b421 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/ThreeLeggedOAuth.java @@ -0,0 +1,225 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message describing ThreeLeggedOAuth object. + * + *

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 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 ThreeLeggedOAuth extends com.google.api.client.json.GenericJson { + + /** + * Optional. The authorization endpoint to send users to for consenting to delegate to the agent. + * eg. "https://auth.atlassian.com/authorize" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authorizationUrl; + + /** + * Optional. The client ID of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * Optional. Input only. The client secret of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientSecret; + + /** + * Optional. The default continue URI for 3LO flow and it will be used when no continue URI is + * provided in the RetrieveCredentials request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultContinueUri; + + /** + * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent + * authorization code interception attacks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enablePkce; + + /** + * Output only. The redirect URL this auth_provider uses for the OAuth exchange. This is + * deterministic based on the name of the auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String redirectUrl; + + /** + * Optional. The token endpoint for requesting tokens on behalf of an end user. eg. + * "https://auth.atlassian.com/oauth/token" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenUrl; + + /** + * Optional. The authorization endpoint to send users to for consenting to delegate to the agent. + * eg. "https://auth.atlassian.com/authorize" + * @return value or {@code null} for none + */ + public java.lang.String getAuthorizationUrl() { + return authorizationUrl; + } + + /** + * Optional. The authorization endpoint to send users to for consenting to delegate to the agent. + * eg. "https://auth.atlassian.com/authorize" + * @param authorizationUrl authorizationUrl or {@code null} for none + */ + public ThreeLeggedOAuth setAuthorizationUrl(java.lang.String authorizationUrl) { + this.authorizationUrl = authorizationUrl; + return this; + } + + /** + * Optional. The client ID of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * Optional. The client ID of the OAuth client. + * @param clientId clientId or {@code null} for none + */ + public ThreeLeggedOAuth setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientSecret() { + return clientSecret; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @param clientSecret clientSecret or {@code null} for none + */ + public ThreeLeggedOAuth setClientSecret(java.lang.String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Optional. The default continue URI for 3LO flow and it will be used when no continue URI is + * provided in the RetrieveCredentials request. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultContinueUri() { + return defaultContinueUri; + } + + /** + * Optional. The default continue URI for 3LO flow and it will be used when no continue URI is + * provided in the RetrieveCredentials request. + * @param defaultContinueUri defaultContinueUri or {@code null} for none + */ + public ThreeLeggedOAuth setDefaultContinueUri(java.lang.String defaultContinueUri) { + this.defaultContinueUri = defaultContinueUri; + return this; + } + + /** + * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent + * authorization code interception attacks. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnablePkce() { + return enablePkce; + } + + /** + * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent + * authorization code interception attacks. + * @param enablePkce enablePkce or {@code null} for none + */ + public ThreeLeggedOAuth setEnablePkce(java.lang.Boolean enablePkce) { + this.enablePkce = enablePkce; + return this; + } + + /** + * Output only. The redirect URL this auth_provider uses for the OAuth exchange. This is + * deterministic based on the name of the auth_provider. + * @return value or {@code null} for none + */ + public java.lang.String getRedirectUrl() { + return redirectUrl; + } + + /** + * Output only. The redirect URL this auth_provider uses for the OAuth exchange. This is + * deterministic based on the name of the auth_provider. + * @param redirectUrl redirectUrl or {@code null} for none + */ + public ThreeLeggedOAuth setRedirectUrl(java.lang.String redirectUrl) { + this.redirectUrl = redirectUrl; + return this; + } + + /** + * Optional. The token endpoint for requesting tokens on behalf of an end user. eg. + * "https://auth.atlassian.com/oauth/token" + * @return value or {@code null} for none + */ + public java.lang.String getTokenUrl() { + return tokenUrl; + } + + /** + * Optional. The token endpoint for requesting tokens on behalf of an end user. eg. + * "https://auth.atlassian.com/oauth/token" + * @param tokenUrl tokenUrl or {@code null} for none + */ + public ThreeLeggedOAuth setTokenUrl(java.lang.String tokenUrl) { + this.tokenUrl = tokenUrl; + return this; + } + + @Override + public ThreeLeggedOAuth set(String fieldName, Object value) { + return (ThreeLeggedOAuth) super.set(fieldName, value); + } + + @Override + public ThreeLeggedOAuth clone() { + return (ThreeLeggedOAuth) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/TwoLeggedOAuth.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/TwoLeggedOAuth.java new file mode 100644 index 00000000000..9095b368fcd --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/TwoLeggedOAuth.java @@ -0,0 +1,114 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message describing TwoLeggedOAuth object. + * + *

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 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 TwoLeggedOAuth extends com.google.api.client.json.GenericJson { + + /** + * Optional. The client ID of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * Optional. Input only. The client secret of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientSecret; + + /** + * Optional. The token endpoint of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenUrl; + + /** + * Optional. The client ID of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * Optional. The client ID of the OAuth client. + * @param clientId clientId or {@code null} for none + */ + public TwoLeggedOAuth setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientSecret() { + return clientSecret; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @param clientSecret clientSecret or {@code null} for none + */ + public TwoLeggedOAuth setClientSecret(java.lang.String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Optional. The token endpoint of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getTokenUrl() { + return tokenUrl; + } + + /** + * Optional. The token endpoint of the OAuth client. + * @param tokenUrl tokenUrl or {@code null} for none + */ + public TwoLeggedOAuth setTokenUrl(java.lang.String tokenUrl) { + this.tokenUrl = tokenUrl; + return this; + } + + @Override + public TwoLeggedOAuth set(String fieldName, Object value) { + return (TwoLeggedOAuth) super.set(fieldName, value); + } + + @Override + public TwoLeggedOAuth clone() { + return (TwoLeggedOAuth) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/UndeleteAuthProviderRequest.java b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/UndeleteAuthProviderRequest.java new file mode 100644 index 00000000000..3be5d18c962 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/com/google/api/services/agentidentity/v1/model/UndeleteAuthProviderRequest.java @@ -0,0 +1,78 @@ +/* + * 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.agentidentity.v1.model; + +/** + * Message for undeleting a AuthProvider + * + *

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 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 UndeleteAuthProviderRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public UndeleteAuthProviderRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UndeleteAuthProviderRequest set(String fieldName, Object value) { + return (UndeleteAuthProviderRequest) super.set(fieldName, value); + } + + @Override + public UndeleteAuthProviderRequest clone() { + return (UndeleteAuthProviderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1/2.0.0/pom.xml b/clients/google-api-services-agentidentity/v1/2.0.0/pom.xml new file mode 100644 index 00000000000..2a6d4ac5f39 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-agentidentity + v1-rev20260722-2.0.0 + Agent Identity API v1-rev20260722-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.agentidentity + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Agent Identity API ${project.version} + Agent Identity API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-agentidentity/v1/README.md b/clients/google-api-services-agentidentity/v1/README.md new file mode 100644 index 00000000000..981babaca18 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1/README.md @@ -0,0 +1,44 @@ +# Agent Identity API Client Library for Java + + + +This page contains information about getting started with the Agent Identity 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 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 API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-agentidentity + v1-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-agentidentity:v1-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-agentidentity/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/agentidentity/v1/ diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/README.md b/clients/google-api-services-agentidentity/v1alpha/2.0.0/README.md new file mode 100644 index 00000000000..38e869d1133 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/README.md @@ -0,0 +1,44 @@ +# Agent Identity API Client Library for Java + + + +This page contains information about getting started with the Agent Identity 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 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 API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-agentidentity + v1alpha-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-agentidentity:v1alpha-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-agentidentity/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/agentidentity/v1/ diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentity.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentity.java new file mode 100644 index 00000000000..151606a640d --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentity.java @@ -0,0 +1,4155 @@ +/* + * 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.agentidentity.v1alpha; + +/** + * Service definition for AgentIdentity (v1alpha). + * + *

+ * + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link AgentIdentityRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AgentIdentity 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 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://agentidentity.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://agentidentity.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: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + * + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public AgentIdentity(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + AgentIdentity(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+   *   {@code AgentIdentity.Projects.List request = agentidentity.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 AgentIdentity agentidentity = new AgentIdentity(...);}
+     *   {@code AgentIdentity.Locations.List request = agentidentity.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Resource name for the location. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Resource name for the location. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.Location.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Resource name for the location. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Resource name for the location. + */ + public java.lang.String getName() { + return name; + } + + /** Resource name for the location. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all projects. + * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method + * lists locations visible to that specific project. This includes public, private, or other + * project-specific locations enabled for the project. For gRPC and client library implementations, + * the resource name is passed as the `name` field. For direct service calls, the resource name is + * incorporated into the request path based on the specific service implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The resource that owns the locations collection, if applicable. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}/locations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all + * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, + * the method lists locations visible to that specific project. This includes public, private, or + * other project-specific locations enabled for the project. For gRPC and client library + * implementations, the resource name is passed as the `name` field. For direct service calls, the + * resource name is incorporated into the request path based on the specific service + * implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The resource that owns the locations collection, if applicable. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.ListLocationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The resource that owns the locations collection, if applicable. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The resource that owns the locations collection, if applicable. + */ + public java.lang.String getName() { + return name; + } + + /** The resource that owns the locations collection, if applicable. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; + + /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for + internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + return this; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like + `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results to return. If not set, the service selects a default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token received from the `next_page_token` field in the response. Send that page token to + receive the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the AccessSummaries collection. + * + *

The typical use is:

+ *
+       *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+       *   {@code AgentIdentity.AccessSummaries.List request = agentidentity.accessSummaries().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AccessSummaries accessSummaries() { + return new AccessSummaries(); + } + + /** + * The "accessSummaries" collection of methods. + */ + public class AccessSummaries { + + /** + * Gets details of a single AccessSummary. + * + * Create a request for the method "accessSummaries.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/accessSummaries/[^/]+$"); + + /** + * Gets details of a single AccessSummary. + * + * Create a request for the method "accessSummaries.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.AccessSummary.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/accessSummaries/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/accessSummaries/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: Filter + * by the SPIFFE ID of the agent. Example: `workload_id="spiffe://example.com/ns/default/sa/my- + * agent"` + * + * Create a request for the method "accessSummaries.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/accessSummaries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + * Create a request for the method "accessSummaries.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.ListAccessSummariesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `workload_id` or `auth_provider_name`. If no filter is provided, returns all access + * summaries for the requested project and location. Format: `workload_id=""` or + * `auth_provider_name=""` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter string to restrict the results. Currently supports filtering by `workload_id` or + `auth_provider_name`. If no filter is provided, returns all access summaries for the requested + project and location. Format: `workload_id=""` or `auth_provider_name=""` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `workload_id` or `auth_provider_name`. If no filter is provided, returns all access + * summaries for the requested project and location. Format: `workload_id=""` or + * `auth_provider_name=""` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by (auth_provider_id, + * user_id) in ascending order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. This field is currently ignored. Defaults to ordering by (auth_provider_id, user_id) in + ascending order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by (auth_provider_id, + * user_id) in ascending order. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results the server should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results the server should return. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the AuthProviders collection. + * + *

The typical use is:

+ *
+       *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+       *   {@code AgentIdentity.AuthProviders.List request = agentidentity.authProviders().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AuthProviders authProviders() { + return new AuthProviders(); + } + + /** + * The "authProviders" collection of methods. + */ + public class AuthProviders { + + /** + * Creates a new AuthProvider in a given project and location. + * + * Create a request for the method "authProviders.create". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.AuthProvider} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.agentidentity.v1alpha.model.AuthProvider content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/authProviders"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new AuthProvider in a given project and location. + * + * Create a request for the method "authProviders.create". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.AuthProvider} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.agentidentity.v1alpha.model.AuthProvider content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1alpha.model.AuthProvider.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the AuthProvider is created. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The ID to use for the AuthProvider, which will become the final segment of + * the AuthProvider's resource name. This value should be 1-63 characters, and valid + * characters are /a-z-/. The first character must be a lowercase letter, and the last + * character must be a lowercase letter or a number. + */ + @com.google.api.client.util.Key + private java.lang.String authProviderId; + + /** Required. The ID to use for the AuthProvider, which will become the final segment of the + AuthProvider's resource name. This value should be 1-63 characters, and valid characters are + /a-z-/. The first character must be a lowercase letter, and the last character must be a lowercase + letter or a number. + */ + public java.lang.String getAuthProviderId() { + return authProviderId; + } + + /** + * Required. The ID to use for the AuthProvider, which will become the final segment of + * the AuthProvider's resource name. This value should be 1-63 characters, and valid + * characters are /a-z-/. The first character must be a lowercase letter, and the last + * character must be a lowercase letter or a number. + */ + public Create setAuthProviderId(java.lang.String authProviderId) { + this.authProviderId = authProviderId; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes since the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single AuthProvider. + * + * Create a request for the method "authProviders.delete". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Deletes a single AuthProvider. + * + * Create a request for the method "authProviders.delete". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AgentIdentity.this, "DELETE", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Disables a single AuthProvider. + * + * Create a request for the method "authProviders.disable". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Disable#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.DisableAuthProviderRequest} + * @return the request + */ + public Disable disable(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.DisableAuthProviderRequest content) throws java.io.IOException { + Disable result = new Disable(name, content); + initialize(result); + return result; + } + + public class Disable extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}:disable"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Disables a single AuthProvider. + * + * Create a request for the method "authProviders.disable". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Disable#execute()} method to invoke the remote operation. + *

{@link + * Disable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.DisableAuthProviderRequest} + * @since 1.13 + */ + protected Disable(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.DisableAuthProviderRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1alpha.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Disable set$Xgafv(java.lang.String $Xgafv) { + return (Disable) super.set$Xgafv($Xgafv); + } + + @Override + public Disable setAccessToken(java.lang.String accessToken) { + return (Disable) super.setAccessToken(accessToken); + } + + @Override + public Disable setAlt(java.lang.String alt) { + return (Disable) super.setAlt(alt); + } + + @Override + public Disable setCallback(java.lang.String callback) { + return (Disable) super.setCallback(callback); + } + + @Override + public Disable setFields(java.lang.String fields) { + return (Disable) super.setFields(fields); + } + + @Override + public Disable setKey(java.lang.String key) { + return (Disable) super.setKey(key); + } + + @Override + public Disable setOauthToken(java.lang.String oauthToken) { + return (Disable) super.setOauthToken(oauthToken); + } + + @Override + public Disable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Disable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Disable setQuotaUser(java.lang.String quotaUser) { + return (Disable) super.setQuotaUser(quotaUser); + } + + @Override + public Disable setUploadType(java.lang.String uploadType) { + return (Disable) super.setUploadType(uploadType); + } + + @Override + public Disable setUploadProtocol(java.lang.String uploadProtocol) { + return (Disable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Disable setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Disable set(String parameterName, Object value) { + return (Disable) super.set(parameterName, value); + } + } + /** + * Enables a single AuthProvider. + * + * Create a request for the method "authProviders.enable". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Enable#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.EnableAuthProviderRequest} + * @return the request + */ + public Enable enable(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.EnableAuthProviderRequest content) throws java.io.IOException { + Enable result = new Enable(name, content); + initialize(result); + return result; + } + + public class Enable extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}:enable"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Enables a single AuthProvider. + * + * Create a request for the method "authProviders.enable". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Enable#execute()} method to invoke the remote operation. + *

{@link + * Enable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.EnableAuthProviderRequest} + * @since 1.13 + */ + protected Enable(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.EnableAuthProviderRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1alpha.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Enable set$Xgafv(java.lang.String $Xgafv) { + return (Enable) super.set$Xgafv($Xgafv); + } + + @Override + public Enable setAccessToken(java.lang.String accessToken) { + return (Enable) super.setAccessToken(accessToken); + } + + @Override + public Enable setAlt(java.lang.String alt) { + return (Enable) super.setAlt(alt); + } + + @Override + public Enable setCallback(java.lang.String callback) { + return (Enable) super.setCallback(callback); + } + + @Override + public Enable setFields(java.lang.String fields) { + return (Enable) super.setFields(fields); + } + + @Override + public Enable setKey(java.lang.String key) { + return (Enable) super.setKey(key); + } + + @Override + public Enable setOauthToken(java.lang.String oauthToken) { + return (Enable) super.setOauthToken(oauthToken); + } + + @Override + public Enable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Enable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Enable setQuotaUser(java.lang.String quotaUser) { + return (Enable) super.setQuotaUser(quotaUser); + } + + @Override + public Enable setUploadType(java.lang.String uploadType) { + return (Enable) super.setUploadType(uploadType); + } + + @Override + public Enable setUploadProtocol(java.lang.String uploadProtocol) { + return (Enable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Enable setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Enable set(String parameterName, Object value) { + return (Enable) super.set(parameterName, value); + } + } + /** + * Gets details of a single AuthProvider. + * + * Create a request for the method "authProviders.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Gets details of a single AuthProvider. + * + * Create a request for the method "authProviders.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "authProviders.getIamPolicy". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + * Create a request for the method "authProviders.getIamPolicy". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Lists AuthProviders in a given project and location. + * + * Create a request for the method "authProviders.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/authProviders"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists AuthProviders in a given project and location. + * + * Create a request for the method "authProviders.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.ListAuthProvidersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filter results. This field is currently ignored. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter results. This field is currently ignored. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filter results. This field is currently ignored. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Currently ignored. Defaults to ordering by auth_provider_id in ascending + * order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Currently ignored. Defaults to ordering by auth_provider_id in ascending order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Currently ignored. Defaults to ordering by auth_provider_id in ascending + * order. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is + omitted, the first page is returned. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. Deleted auth_providers will be kept with a soft-delete for 30 days before + * being purged. If this field is set to true, deleted auth_providers will also be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.Boolean showDeleted; + + /** Optional. Deleted auth_providers will be kept with a soft-delete for 30 days before being purged. + If this field is set to true, deleted auth_providers will also be returned. + */ + public java.lang.Boolean getShowDeleted() { + return showDeleted; + } + + /** + * Optional. Deleted auth_providers will be kept with a soft-delete for 30 days before + * being purged. If this field is set to true, deleted auth_providers will also be + * returned. + */ + public List setShowDeleted(java.lang.Boolean showDeleted) { + this.showDeleted = showDeleted; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single AuthProvider. + * + * Create a request for the method "authProviders.patch". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.AuthProvider} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.AuthProvider content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Updates the parameters of a single AuthProvider. + * + * Create a request for the method "authProviders.patch". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.AuthProvider} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.AuthProvider content) { + super(AgentIdentity.this, "PATCH", REST_PATH, content, com.google.api.services.agentidentity.v1alpha.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The full resource name of the auth_provider. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes since the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AuthProvider resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in + * the mask. If the user does not provide a mask then all fields present in the request + * will be overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the AuthProvider resource + by the update. The fields specified in the update_mask are relative to the resource, not the full + request. A field will be overwritten if it is in the mask. If the user does not provide a mask then + all fields present in the request will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AuthProvider resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in + * the mask. If the user does not provide a mask then all fields present in the request + * will be overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Queries what all auth_providers are used by a given workload_id. + * + * Create a request for the method "authProviders.query". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Query#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public Query query(java.lang.String parent) throws java.io.IOException { + Query result = new Query(parent); + initialize(result); + return result; + } + + public class Query extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/authProviders:query"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Queries what all auth_providers are used by a given workload_id. + * + * Create a request for the method "authProviders.query". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. + *

{@link + * Query#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected Query(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.QueryAuthProvidersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Query set$Xgafv(java.lang.String $Xgafv) { + return (Query) super.set$Xgafv($Xgafv); + } + + @Override + public Query setAccessToken(java.lang.String accessToken) { + return (Query) super.setAccessToken(accessToken); + } + + @Override + public Query setAlt(java.lang.String alt) { + return (Query) super.setAlt(alt); + } + + @Override + public Query setCallback(java.lang.String callback) { + return (Query) super.setCallback(callback); + } + + @Override + public Query setFields(java.lang.String fields) { + return (Query) super.setFields(fields); + } + + @Override + public Query setKey(java.lang.String key) { + return (Query) super.setKey(key); + } + + @Override + public Query setOauthToken(java.lang.String oauthToken) { + return (Query) super.setOauthToken(oauthToken); + } + + @Override + public Query setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Query) super.setPrettyPrint(prettyPrint); + } + + @Override + public Query setQuotaUser(java.lang.String quotaUser) { + return (Query) super.setQuotaUser(quotaUser); + } + + @Override + public Query setUploadType(java.lang.String uploadType) { + return (Query) super.setUploadType(uploadType); + } + + @Override + public Query setUploadProtocol(java.lang.String uploadProtocol) { + return (Query) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + public Query setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. The maximum page size is 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. The maximum page size is 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. The maximum page size is 1000. + */ + public Query setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. A page token, received from a previous + * QueryAuthProviders call. Provide this to retrieve the subsequent page. When paginating, + * all other parameters provided to QueryAuthProviders must match the call that provided + * the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is + omitted, the first page is returned. A page token, received from a previous QueryAuthProviders + call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided + to QueryAuthProviders must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. A page token, received from a previous + * QueryAuthProviders call. Provide this to retrieve the subsequent page. When paginating, + * all other parameters provided to QueryAuthProviders must match the call that provided + * the page token. + */ + public Query setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Required. The workload identifier to filter by. */ + @com.google.api.client.util.Key + private java.lang.String workloadId; + + /** Required. The workload identifier to filter by. + */ + public java.lang.String getWorkloadId() { + return workloadId; + } + + /** Required. The workload identifier to filter by. */ + public Query setWorkloadId(java.lang.String workloadId) { + this.workloadId = workloadId; + return this; + } + + @Override + public Query set(String parameterName, Object value) { + return (Query) super.set(parameterName, value); + } + } + /** + * Queries what all workloads are using a given auth_provider. + * + * Create a request for the method "authProviders.queryWorkloads". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link QueryWorkloads#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @return the request + */ + public QueryWorkloads queryWorkloads(java.lang.String name) throws java.io.IOException { + QueryWorkloads result = new QueryWorkloads(name); + initialize(result); + return result; + } + + public class QueryWorkloads extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}:queryWorkloads"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Queries what all workloads are using a given auth_provider. + * + * Create a request for the method "authProviders.queryWorkloads". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link QueryWorkloads#execute()} method to invoke the remote + * operation.

{@link QueryWorkloads#initialize(com.google.api.client.googleapis.services.Abstr + * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.

+ * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @since 1.13 + */ + protected QueryWorkloads(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.QueryWorkloadsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public QueryWorkloads set$Xgafv(java.lang.String $Xgafv) { + return (QueryWorkloads) super.set$Xgafv($Xgafv); + } + + @Override + public QueryWorkloads setAccessToken(java.lang.String accessToken) { + return (QueryWorkloads) super.setAccessToken(accessToken); + } + + @Override + public QueryWorkloads setAlt(java.lang.String alt) { + return (QueryWorkloads) super.setAlt(alt); + } + + @Override + public QueryWorkloads setCallback(java.lang.String callback) { + return (QueryWorkloads) super.setCallback(callback); + } + + @Override + public QueryWorkloads setFields(java.lang.String fields) { + return (QueryWorkloads) super.setFields(fields); + } + + @Override + public QueryWorkloads setKey(java.lang.String key) { + return (QueryWorkloads) super.setKey(key); + } + + @Override + public QueryWorkloads setOauthToken(java.lang.String oauthToken) { + return (QueryWorkloads) super.setOauthToken(oauthToken); + } + + @Override + public QueryWorkloads setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryWorkloads) super.setPrettyPrint(prettyPrint); + } + + @Override + public QueryWorkloads setQuotaUser(java.lang.String quotaUser) { + return (QueryWorkloads) super.setQuotaUser(quotaUser); + } + + @Override + public QueryWorkloads setUploadType(java.lang.String uploadType) { + return (QueryWorkloads) super.setUploadType(uploadType); + } + + @Override + public QueryWorkloads setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryWorkloads) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the auth_provider to query. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public QueryWorkloads setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public QueryWorkloads setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. When + * paginating, all other parameters provided to QueryWorkloads must match the call that + * provided the page token. If this field is omitted, the first page is returned. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token, which can be sent as `page_token` to retrieve the next page. When paginating, + all other parameters provided to QueryWorkloads must match the call that provided the page token. + If this field is omitted, the first page is returned. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. When + * paginating, all other parameters provided to QueryWorkloads must match the call that + * provided the page token. If this field is omitted, the first page is returned. + */ + public QueryWorkloads setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public QueryWorkloads set(String parameterName, Object value) { + return (QueryWorkloads) super.set(parameterName, value); + } + } + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all authorization + * records associated with the user and AuthProvider, effectively revoking access across all agents. + * + * Create a request for the method "authProviders.revokeAuthorization". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link RevokeAuthorization#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.RevokeAuthorizationRequest} + * @return the request + */ + public RevokeAuthorization revokeAuthorization(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.RevokeAuthorizationRequest content) throws java.io.IOException { + RevokeAuthorization result = new RevokeAuthorization(name, content); + initialize(result); + return result; + } + + public class RevokeAuthorization extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}:revokeAuthorization"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + * Create a request for the method "authProviders.revokeAuthorization". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link RevokeAuthorization#execute()} method to invoke the remote + * operation.

{@link RevokeAuthorization#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.RevokeAuthorizationRequest} + * @since 1.13 + */ + protected RevokeAuthorization(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.RevokeAuthorizationRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1alpha.model.RevokeAuthorizationResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public RevokeAuthorization set$Xgafv(java.lang.String $Xgafv) { + return (RevokeAuthorization) super.set$Xgafv($Xgafv); + } + + @Override + public RevokeAuthorization setAccessToken(java.lang.String accessToken) { + return (RevokeAuthorization) super.setAccessToken(accessToken); + } + + @Override + public RevokeAuthorization setAlt(java.lang.String alt) { + return (RevokeAuthorization) super.setAlt(alt); + } + + @Override + public RevokeAuthorization setCallback(java.lang.String callback) { + return (RevokeAuthorization) super.setCallback(callback); + } + + @Override + public RevokeAuthorization setFields(java.lang.String fields) { + return (RevokeAuthorization) super.setFields(fields); + } + + @Override + public RevokeAuthorization setKey(java.lang.String key) { + return (RevokeAuthorization) super.setKey(key); + } + + @Override + public RevokeAuthorization setOauthToken(java.lang.String oauthToken) { + return (RevokeAuthorization) super.setOauthToken(oauthToken); + } + + @Override + public RevokeAuthorization setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RevokeAuthorization) super.setPrettyPrint(prettyPrint); + } + + @Override + public RevokeAuthorization setQuotaUser(java.lang.String quotaUser) { + return (RevokeAuthorization) super.setQuotaUser(quotaUser); + } + + @Override + public RevokeAuthorization setUploadType(java.lang.String uploadType) { + return (RevokeAuthorization) super.setUploadType(uploadType); + } + + @Override + public RevokeAuthorization setUploadProtocol(java.lang.String uploadProtocol) { + return (RevokeAuthorization) 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 name; + + /** Required. The resource name of the AuthProvider. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public RevokeAuthorization setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public RevokeAuthorization set(String parameterName, Object value) { + return (RevokeAuthorization) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "authProviders.setIamPolicy". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.agentidentity.v1alpha.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "authProviders.setIamPolicy". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.agentidentity.v1alpha.model.SetIamPolicyRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1alpha.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "authProviders.testIamPermissions". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.TestIamPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.agentidentity.v1alpha.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "authProviders.testIamPermissions". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.TestIamPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.agentidentity.v1alpha.model.TestIamPermissionsRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1alpha.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Undeletes a single AuthProvider. + * + * Create a request for the method "authProviders.undelete". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Undelete#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.UndeleteAuthProviderRequest} + * @return the request + */ + public Undelete undelete(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.UndeleteAuthProviderRequest content) throws java.io.IOException { + Undelete result = new Undelete(name, content); + initialize(result); + return result; + } + + public class Undelete extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}:undelete"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Undeletes a single AuthProvider. + * + * Create a request for the method "authProviders.undelete". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Undelete#execute()} method to invoke the remote operation. + *

{@link + * Undelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1alpha.model.UndeleteAuthProviderRequest} + * @since 1.13 + */ + protected Undelete(java.lang.String name, com.google.api.services.agentidentity.v1alpha.model.UndeleteAuthProviderRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1alpha.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Undelete set$Xgafv(java.lang.String $Xgafv) { + return (Undelete) super.set$Xgafv($Xgafv); + } + + @Override + public Undelete setAccessToken(java.lang.String accessToken) { + return (Undelete) super.setAccessToken(accessToken); + } + + @Override + public Undelete setAlt(java.lang.String alt) { + return (Undelete) super.setAlt(alt); + } + + @Override + public Undelete setCallback(java.lang.String callback) { + return (Undelete) super.setCallback(callback); + } + + @Override + public Undelete setFields(java.lang.String fields) { + return (Undelete) super.setFields(fields); + } + + @Override + public Undelete setKey(java.lang.String key) { + return (Undelete) super.setKey(key); + } + + @Override + public Undelete setOauthToken(java.lang.String oauthToken) { + return (Undelete) super.setOauthToken(oauthToken); + } + + @Override + public Undelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Undelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Undelete setQuotaUser(java.lang.String quotaUser) { + return (Undelete) super.setQuotaUser(quotaUser); + } + + @Override + public Undelete setUploadType(java.lang.String uploadType) { + return (Undelete) super.setUploadType(uploadType); + } + + @Override + public Undelete setUploadProtocol(java.lang.String uploadProtocol) { + return (Undelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Undelete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Undelete set(String parameterName, Object value) { + return (Undelete) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Authorizations collection. + * + *

The typical use is:

+ *
+         *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+         *   {@code AgentIdentity.Authorizations.List request = agentidentity.authorizations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Authorizations authorizations() { + return new Authorizations(); + } + + /** + * The "authorizations" collection of methods. + */ + public class Authorizations { + + /** + * Deletes a single Authorization. + * + * Create a request for the method "authorizations.delete". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{auth + * orization} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + + /** + * Deletes a single Authorization. + * + * Create a request for the method "authorizations.delete". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{auth + * orization} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AgentIdentity.this, "DELETE", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Authorization to delete. Format: projects/{project}/locatio + * ns/{location}/authProviders/{auth_provider}/authorizations/{authorization} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Authorization to delete. Format: projects/{project}/locations/{location}/ + authProviders/{auth_provider}/authorizations/{authorization} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Authorization to delete. Format: projects/{project}/locatio + * ns/{location}/authProviders/{auth_provider}/authorizations/{authorization} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients from + * accidentally creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients from + * accidentally creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single Authorization. + * + * Create a request for the method "authorizations.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + + /** + * Gets details of a single Authorization. + * + * Create a request for the method "authorizations.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.Authorization.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Authorizations in a given project and location. + * + * Create a request for the method "authorizations.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/authorizations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Lists Authorizations in a given project and location. + * + * Create a request for the method "authorizations.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1alpha.model.ListAuthorizationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `client_user_id` only. Format: `client_user_id=""` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter string to restrict the results. Currently supports filtering by `client_user_id` + only. Format: `client_user_id=""` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `client_user_id` only. Format: `client_user_id=""` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by authorization_id + * in ascending order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. This field is currently ignored. Defaults to ordering by authorization_id in ascending + order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by authorization_id + * in ascending order. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListAuthorizations` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListAuthorizations` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListAuthorizations` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListAuthorizations` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListAuthorizations` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListAuthorizations` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + } + + /** + * Builder for {@link AgentIdentity}. + * + *

+ * 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: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link AgentIdentity}. */ + @Override + public AgentIdentity build() { + return new AgentIdentity(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link AgentIdentityRequestInitializer}. + * + * @since 1.12 + */ + public Builder setAgentIdentityRequestInitializer( + AgentIdentityRequestInitializer agentidentityRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(agentidentityRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentityRequest.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentityRequest.java new file mode 100644 index 00000000000..7bac8f7917b --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentityRequest.java @@ -0,0 +1,267 @@ +/* + * 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.agentidentity.v1alpha; + +/** + * AgentIdentity request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class AgentIdentityRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public AgentIdentityRequest( + AgentIdentity client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public AgentIdentityRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public AgentIdentityRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public AgentIdentityRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public AgentIdentityRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public AgentIdentityRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public AgentIdentityRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public AgentIdentityRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public AgentIdentityRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public AgentIdentityRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public AgentIdentityRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public AgentIdentityRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final AgentIdentity getAbstractGoogleClient() { + return (AgentIdentity) super.getAbstractGoogleClient(); + } + + @Override + public AgentIdentityRequest setDisableGZipContent(boolean disableGZipContent) { + return (AgentIdentityRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public AgentIdentityRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (AgentIdentityRequest) super.setRequestHeaders(headers); + } + + @Override + public AgentIdentityRequest set(String parameterName, Object value) { + return (AgentIdentityRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentityRequestInitializer.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentityRequestInitializer.java new file mode 100644 index 00000000000..4ccf690b89d --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentityRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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.agentidentity.v1alpha; + +/** + * AgentIdentity request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new AgentIdentityRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new AgentIdentityRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends AgentIdentityRequestInitializer {
+
+    {@literal @}Override
+    public void initializeAgentIdentityRequest(AgentIdentityRequest{@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 AgentIdentityRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeAgentIdentityRequest(AgentIdentityRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class AgentIdentityRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AgentIdentityRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AgentIdentityRequestInitializer(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 AgentIdentityRequestInitializer(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); + initializeAgentIdentityRequest((AgentIdentityRequest) request); + } + + /** + * Initializes AgentIdentity 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 initializeAgentIdentityRequest(AgentIdentityRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentityScopes.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentityScopes.java new file mode 100644 index 00000000000..dd56b44ae67 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/AgentIdentityScopes.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.agentidentity.v1alpha; + +/** + * Available OAuth 2.0 scopes for use with the Agent Identity API. + * + * @since 1.4 + */ +public class AgentIdentityScopes { + + /** 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.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CLOUD_PLATFORM); + return java.util.Collections.unmodifiableSet(set); + } + + private AgentIdentityScopes() { + } +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AccessSummary.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AccessSummary.java new file mode 100644 index 00000000000..15c5a5b7eda --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AccessSummary.java @@ -0,0 +1,321 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message describing AccessSummary object + * + *

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 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 AccessSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The auth_provider that this access summary is associated with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authProvider; + + /** + * Output only. The type of the connector that was used to create this access summary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authProviderType; + + /** + * Output only. The first time this user has interacted with this workload. Rounded to the + * previous hour. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String firstAccessTime; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. The most recent time this user has interacted with this workload. Rounded to the + * previous hour. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastAccessTime; + + /** + * Output only. Identifier. Name of the AccessSummary + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The time when this access summary is permanently deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String purgeTime; + + /** + * Output only. All scopes that have been used by this user with this workload. The number of + * scopes is limited to 200. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Output only. The url of the authentication server that was accessed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenUrl; + + /** + * Output only. The user_id provided by the workload application for this user. Not verified by + * Google. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Output only. The identity bound to the workload that this user interacted with to produce this + * AccessSummary. Will typically be an agentic spiffe id + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String workloadId; + + /** + * Output only. The auth_provider that this access summary is associated with. + * @return value or {@code null} for none + */ + public java.lang.String getAuthProvider() { + return authProvider; + } + + /** + * Output only. The auth_provider that this access summary is associated with. + * @param authProvider authProvider or {@code null} for none + */ + public AccessSummary setAuthProvider(java.lang.String authProvider) { + this.authProvider = authProvider; + return this; + } + + /** + * Output only. The type of the connector that was used to create this access summary. + * @return value or {@code null} for none + */ + public java.lang.String getAuthProviderType() { + return authProviderType; + } + + /** + * Output only. The type of the connector that was used to create this access summary. + * @param authProviderType authProviderType or {@code null} for none + */ + public AccessSummary setAuthProviderType(java.lang.String authProviderType) { + this.authProviderType = authProviderType; + return this; + } + + /** + * Output only. The first time this user has interacted with this workload. Rounded to the + * previous hour. + * @return value or {@code null} for none + */ + public String getFirstAccessTime() { + return firstAccessTime; + } + + /** + * Output only. The first time this user has interacted with this workload. Rounded to the + * previous hour. + * @param firstAccessTime firstAccessTime or {@code null} for none + */ + public AccessSummary setFirstAccessTime(String firstAccessTime) { + this.firstAccessTime = firstAccessTime; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public AccessSummary setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. The most recent time this user has interacted with this workload. Rounded to the + * previous hour. + * @return value or {@code null} for none + */ + public String getLastAccessTime() { + return lastAccessTime; + } + + /** + * Output only. The most recent time this user has interacted with this workload. Rounded to the + * previous hour. + * @param lastAccessTime lastAccessTime or {@code null} for none + */ + public AccessSummary setLastAccessTime(String lastAccessTime) { + this.lastAccessTime = lastAccessTime; + return this; + } + + /** + * Output only. Identifier. Name of the AccessSummary + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Identifier. Name of the AccessSummary + * @param name name or {@code null} for none + */ + public AccessSummary setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The time when this access summary is permanently deleted. + * @return value or {@code null} for none + */ + public String getPurgeTime() { + return purgeTime; + } + + /** + * Output only. The time when this access summary is permanently deleted. + * @param purgeTime purgeTime or {@code null} for none + */ + public AccessSummary setPurgeTime(String purgeTime) { + this.purgeTime = purgeTime; + return this; + } + + /** + * Output only. All scopes that have been used by this user with this workload. The number of + * scopes is limited to 200. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Output only. All scopes that have been used by this user with this workload. The number of + * scopes is limited to 200. + * @param scopes scopes or {@code null} for none + */ + public AccessSummary setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Output only. The url of the authentication server that was accessed. + * @return value or {@code null} for none + */ + public java.lang.String getTokenUrl() { + return tokenUrl; + } + + /** + * Output only. The url of the authentication server that was accessed. + * @param tokenUrl tokenUrl or {@code null} for none + */ + public AccessSummary setTokenUrl(java.lang.String tokenUrl) { + this.tokenUrl = tokenUrl; + return this; + } + + /** + * Output only. The user_id provided by the workload application for this user. Not verified by + * Google. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Output only. The user_id provided by the workload application for this user. Not verified by + * Google. + * @param userId userId or {@code null} for none + */ + public AccessSummary setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + /** + * Output only. The identity bound to the workload that this user interacted with to produce this + * AccessSummary. Will typically be an agentic spiffe id + * @return value or {@code null} for none + */ + public java.lang.String getWorkloadId() { + return workloadId; + } + + /** + * Output only. The identity bound to the workload that this user interacted with to produce this + * AccessSummary. Will typically be an agentic spiffe id + * @param workloadId workloadId or {@code null} for none + */ + public AccessSummary setWorkloadId(java.lang.String workloadId) { + this.workloadId = workloadId; + return this; + } + + @Override + public AccessSummary set(String fieldName, Object value) { + return (AccessSummary) super.set(fieldName, value); + } + + @Override + public AccessSummary clone() { + return (AccessSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ApiKeyParams.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ApiKeyParams.java new file mode 100644 index 00000000000..81112b3a58c --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ApiKeyParams.java @@ -0,0 +1,66 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message describing ApiKeyParams object. + * + *

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 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 ApiKeyParams extends com.google.api.client.json.GenericJson { + + /** + * Optional. Input only. The API key for this auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKey; + + /** + * Optional. Input only. The API key for this auth_provider. + * @return value or {@code null} for none + */ + public java.lang.String getApiKey() { + return apiKey; + } + + /** + * Optional. Input only. The API key for this auth_provider. + * @param apiKey apiKey or {@code null} for none + */ + public ApiKeyParams setApiKey(java.lang.String apiKey) { + this.apiKey = apiKey; + return this; + } + + @Override + public ApiKeyParams set(String fieldName, Object value) { + return (ApiKeyParams) super.set(fieldName, value); + } + + @Override + public ApiKeyParams clone() { + return (ApiKeyParams) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuditConfig.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuditConfig.java new file mode 100644 index 00000000000..f47f5e98369 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuditConfig.java @@ -0,0 +1,107 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Specifies the audit configuration for a service. The configuration determines which permission + * types are logged, and what identities, if any, are exempted from logging. An AuditConfig must + * have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific + * service, the union of the two AuditConfigs is used for that service: the log_types specified in + * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. + * Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", + * "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] + * }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": + * "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": + * "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this + * policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` + * from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging. + * + *

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 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 AuditConfig extends com.google.api.client.json.GenericJson { + + /** + * The configuration for logging of each type of permission. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List auditLogConfigs; + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * The configuration for logging of each type of permission. + * @return value or {@code null} for none + */ + public java.util.List getAuditLogConfigs() { + return auditLogConfigs; + } + + /** + * The configuration for logging of each type of permission. + * @param auditLogConfigs auditLogConfigs or {@code null} for none + */ + public AuditConfig setAuditLogConfigs(java.util.List auditLogConfigs) { + this.auditLogConfigs = auditLogConfigs; + return this; + } + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * @param service service or {@code null} for none + */ + public AuditConfig setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public AuditConfig set(String fieldName, Object value) { + return (AuditConfig) super.set(fieldName, value); + } + + @Override + public AuditConfig clone() { + return (AuditConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuditLogConfig.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuditLogConfig.java new file mode 100644 index 00000000000..981c3282fbc --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuditLogConfig.java @@ -0,0 +1,96 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { + * "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": + * "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + * jose@example.com from DATA_READ logging. + * + *

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 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 AuditLogConfig extends com.google.api.client.json.GenericJson { + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List exemptedMembers; + + /** + * The log type that this config enables. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String logType; + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * @return value or {@code null} for none + */ + public java.util.List getExemptedMembers() { + return exemptedMembers; + } + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * @param exemptedMembers exemptedMembers or {@code null} for none + */ + public AuditLogConfig setExemptedMembers(java.util.List exemptedMembers) { + this.exemptedMembers = exemptedMembers; + return this; + } + + /** + * The log type that this config enables. + * @return value or {@code null} for none + */ + public java.lang.String getLogType() { + return logType; + } + + /** + * The log type that this config enables. + * @param logType logType or {@code null} for none + */ + public AuditLogConfig setLogType(java.lang.String logType) { + this.logType = logType; + return this; + } + + @Override + public AuditLogConfig set(String fieldName, Object value) { + return (AuditLogConfig) super.set(fieldName, value); + } + + @Override + public AuditLogConfig clone() { + return (AuditLogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuthProvider.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuthProvider.java new file mode 100644 index 00000000000..4191c70b9ed --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuthProvider.java @@ -0,0 +1,360 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message describing AuthProvider object + * + *

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 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 AuthProvider extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of scopes that are allowed to be requested for this auth_provider. If this list + * is non-empty, only scopes within this list may be requested. If this list is empty, all scopes + * may be requested. Scopes appearing in `blocked_scopes` are disallowed even if they appear in + * `allowed_scopes`. The number of allowed scopes is limited to 200. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedScopes; + + /** + * Required. AuthProvider type specific parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AuthProviderTypeParams authProviderTypeParams; + + /** + * Optional. List of scopes that are blocked from being requested for this auth_provider. If a + * scope appears in this list, it will not be requested, even if it also appears in + * `allowed_scopes`. `blocked_scopes` takes precedence over `allowed_scopes`. The number of + * blocked scopes is limited to 200. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List blockedScopes; + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. This is set to true if the auth_provider is deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean deleted; + + /** + * Optional. Description of the resource. Must be less than 256 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. The time when the auth_provider will expire. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The state of the auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Input only. Represents the workload identity in IAM `principal://` format of the + * agent(s) that will use this AuthProvider. Example: `principal://agents.global.org-${ORG_ID}.sys + * tem.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ + * ID}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List workloadIds; + + /** + * Optional. List of scopes that are allowed to be requested for this auth_provider. If this list + * is non-empty, only scopes within this list may be requested. If this list is empty, all scopes + * may be requested. Scopes appearing in `blocked_scopes` are disallowed even if they appear in + * `allowed_scopes`. The number of allowed scopes is limited to 200. + * @return value or {@code null} for none + */ + public java.util.List getAllowedScopes() { + return allowedScopes; + } + + /** + * Optional. List of scopes that are allowed to be requested for this auth_provider. If this list + * is non-empty, only scopes within this list may be requested. If this list is empty, all scopes + * may be requested. Scopes appearing in `blocked_scopes` are disallowed even if they appear in + * `allowed_scopes`. The number of allowed scopes is limited to 200. + * @param allowedScopes allowedScopes or {@code null} for none + */ + public AuthProvider setAllowedScopes(java.util.List allowedScopes) { + this.allowedScopes = allowedScopes; + return this; + } + + /** + * Required. AuthProvider type specific parameters. + * @return value or {@code null} for none + */ + public AuthProviderTypeParams getAuthProviderTypeParams() { + return authProviderTypeParams; + } + + /** + * Required. AuthProvider type specific parameters. + * @param authProviderTypeParams authProviderTypeParams or {@code null} for none + */ + public AuthProvider setAuthProviderTypeParams(AuthProviderTypeParams authProviderTypeParams) { + this.authProviderTypeParams = authProviderTypeParams; + return this; + } + + /** + * Optional. List of scopes that are blocked from being requested for this auth_provider. If a + * scope appears in this list, it will not be requested, even if it also appears in + * `allowed_scopes`. `blocked_scopes` takes precedence over `allowed_scopes`. The number of + * blocked scopes is limited to 200. + * @return value or {@code null} for none + */ + public java.util.List getBlockedScopes() { + return blockedScopes; + } + + /** + * Optional. List of scopes that are blocked from being requested for this auth_provider. If a + * scope appears in this list, it will not be requested, even if it also appears in + * `allowed_scopes`. `blocked_scopes` takes precedence over `allowed_scopes`. The number of + * blocked scopes is limited to 200. + * @param blockedScopes blockedScopes or {@code null} for none + */ + public AuthProvider setBlockedScopes(java.util.List blockedScopes) { + this.blockedScopes = blockedScopes; + return this; + } + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public AuthProvider setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. This is set to true if the auth_provider is deleted. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDeleted() { + return deleted; + } + + /** + * Output only. This is set to true if the auth_provider is deleted. + * @param deleted deleted or {@code null} for none + */ + public AuthProvider setDeleted(java.lang.Boolean deleted) { + this.deleted = deleted; + return this; + } + + /** + * Optional. Description of the resource. Must be less than 256 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the resource. Must be less than 256 characters. + * @param description description or {@code null} for none + */ + public AuthProvider setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. The time when the auth_provider will expire. + * @return value or {@code null} for none + */ + public String getExpireTime() { + return expireTime; + } + + /** + * Output only. The time when the auth_provider will expire. + * @param expireTime expireTime or {@code null} for none + */ + public AuthProvider setExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public AuthProvider setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param name name or {@code null} for none + */ + public AuthProvider setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The state of the auth_provider. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the auth_provider. + * @param state state or {@code null} for none + */ + public AuthProvider setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public AuthProvider setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. Input only. Represents the workload identity in IAM `principal://` format of the + * agent(s) that will use this AuthProvider. Example: `principal://agents.global.org-${ORG_ID}.sys + * tem.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ + * ID}` + * @return value or {@code null} for none + */ + public java.util.List getWorkloadIds() { + return workloadIds; + } + + /** + * Optional. Input only. Represents the workload identity in IAM `principal://` format of the + * agent(s) that will use this AuthProvider. Example: `principal://agents.global.org-${ORG_ID}.sys + * tem.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ + * ID}` + * @param workloadIds workloadIds or {@code null} for none + */ + public AuthProvider setWorkloadIds(java.util.List workloadIds) { + this.workloadIds = workloadIds; + return this; + } + + @Override + public AuthProvider set(String fieldName, Object value) { + return (AuthProvider) super.set(fieldName, value); + } + + @Override + public AuthProvider clone() { + return (AuthProvider) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuthProviderTypeParams.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuthProviderTypeParams.java new file mode 100644 index 00000000000..c7236b957ad --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/AuthProviderTypeParams.java @@ -0,0 +1,138 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * AuthProvider type specific parameters. Required when creating an auth_provider. + * + *

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 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 AuthProviderTypeParams extends com.google.api.client.json.GenericJson { + + /** + * ApiKey AuthProvider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiKeyParams apiKey; + + /** + * GeminiEnterprise auth_provider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GeminiEnterpriseAuthProviderParams geAuthProvider; + + /** + * ThreeLeggedOAuth AuthProvider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ThreeLeggedOAuth threeLeggedOauth; + + /** + * TwoLeggedOAuth AuthProvider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TwoLeggedOAuth twoLeggedOauth; + + /** + * ApiKey AuthProvider type parameters. + * @return value or {@code null} for none + */ + public ApiKeyParams getApiKey() { + return apiKey; + } + + /** + * ApiKey AuthProvider type parameters. + * @param apiKey apiKey or {@code null} for none + */ + public AuthProviderTypeParams setApiKey(ApiKeyParams apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * GeminiEnterprise auth_provider type parameters. + * @return value or {@code null} for none + */ + public GeminiEnterpriseAuthProviderParams getGeAuthProvider() { + return geAuthProvider; + } + + /** + * GeminiEnterprise auth_provider type parameters. + * @param geAuthProvider geAuthProvider or {@code null} for none + */ + public AuthProviderTypeParams setGeAuthProvider(GeminiEnterpriseAuthProviderParams geAuthProvider) { + this.geAuthProvider = geAuthProvider; + return this; + } + + /** + * ThreeLeggedOAuth AuthProvider type parameters. + * @return value or {@code null} for none + */ + public ThreeLeggedOAuth getThreeLeggedOauth() { + return threeLeggedOauth; + } + + /** + * ThreeLeggedOAuth AuthProvider type parameters. + * @param threeLeggedOauth threeLeggedOauth or {@code null} for none + */ + public AuthProviderTypeParams setThreeLeggedOauth(ThreeLeggedOAuth threeLeggedOauth) { + this.threeLeggedOauth = threeLeggedOauth; + return this; + } + + /** + * TwoLeggedOAuth AuthProvider type parameters. + * @return value or {@code null} for none + */ + public TwoLeggedOAuth getTwoLeggedOauth() { + return twoLeggedOauth; + } + + /** + * TwoLeggedOAuth AuthProvider type parameters. + * @param twoLeggedOauth twoLeggedOauth or {@code null} for none + */ + public AuthProviderTypeParams setTwoLeggedOauth(TwoLeggedOAuth twoLeggedOauth) { + this.twoLeggedOauth = twoLeggedOauth; + return this; + } + + @Override + public AuthProviderTypeParams set(String fieldName, Object value) { + return (AuthProviderTypeParams) super.set(fieldName, value); + } + + @Override + public AuthProviderTypeParams clone() { + return (AuthProviderTypeParams) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Authorization.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Authorization.java new file mode 100644 index 00000000000..ae9d548353b --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Authorization.java @@ -0,0 +1,189 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message describing Authorization object + * + *

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 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 Authorization extends com.google.api.client.json.GenericJson { + + /** + * Output only. The client_user_id provided by the client application for their end user. Not + * verified by Google. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientUserId; + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. name of resource + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The scopes actually granted by the end user during the consent flow. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Output only. The state of the authorization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The client_user_id provided by the client application for their end user. Not + * verified by Google. + * @return value or {@code null} for none + */ + public java.lang.String getClientUserId() { + return clientUserId; + } + + /** + * Output only. The client_user_id provided by the client application for their end user. Not + * verified by Google. + * @param clientUserId clientUserId or {@code null} for none + */ + public Authorization setClientUserId(java.lang.String clientUserId) { + this.clientUserId = clientUserId; + return this; + } + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public Authorization setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. name of resource + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. name of resource + * @param name name or {@code null} for none + */ + public Authorization setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The scopes actually granted by the end user during the consent flow. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Output only. The scopes actually granted by the end user during the consent flow. + * @param scopes scopes or {@code null} for none + */ + public Authorization setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Output only. The state of the authorization. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the authorization. + * @param state state or {@code null} for none + */ + public Authorization setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public Authorization setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Authorization set(String fieldName, Object value) { + return (Authorization) super.set(fieldName, value); + } + + @Override + public Authorization clone() { + return (Authorization) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Binding.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Binding.java new file mode 100644 index 00000000000..df8ef0c59ed --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Binding.java @@ -0,0 +1,270 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Associates `members`, or principals, with a `role`. + * + *

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 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 Binding extends com.google.api.client.json.GenericJson { + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Expr condition; + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List members; + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public Expr getCondition() { + return condition; + } + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param condition condition or {@code null} for none + */ + public Binding setCondition(Expr condition) { + this.condition = condition; + return this; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * @return value or {@code null} for none + */ + public java.util.List getMembers() { + return members; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * @param members members or {@code null} for none + */ + public Binding setMembers(java.util.List members) { + this.members = members; + return this; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @param role role or {@code null} for none + */ + public Binding setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public Binding set(String fieldName, Object value) { + return (Binding) super.set(fieldName, value); + } + + @Override + public Binding clone() { + return (Binding) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/DisableAuthProviderRequest.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/DisableAuthProviderRequest.java new file mode 100644 index 00000000000..afd694b57ab --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/DisableAuthProviderRequest.java @@ -0,0 +1,78 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message for disabling an AuthProvider + * + *

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 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 DisableAuthProviderRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public DisableAuthProviderRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DisableAuthProviderRequest set(String fieldName, Object value) { + return (DisableAuthProviderRequest) super.set(fieldName, value); + } + + @Override + public DisableAuthProviderRequest clone() { + return (DisableAuthProviderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Empty.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Empty.java new file mode 100644 index 00000000000..ea4ae4fb503 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Empty.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.agentidentity.v1alpha.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.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 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 Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/EnableAuthProviderRequest.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/EnableAuthProviderRequest.java new file mode 100644 index 00000000000..1b1e65cc528 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/EnableAuthProviderRequest.java @@ -0,0 +1,78 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message for enabling an AuthProvider + * + *

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 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 EnableAuthProviderRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public EnableAuthProviderRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public EnableAuthProviderRequest set(String fieldName, Object value) { + return (EnableAuthProviderRequest) super.set(fieldName, value); + } + + @Override + public EnableAuthProviderRequest clone() { + return (EnableAuthProviderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Expr.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Expr.java new file mode 100644 index 00000000000..ab88146d90d --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Expr.java @@ -0,0 +1,159 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like + * expression language. The syntax and semantics of CEL are documented at + * https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" + * description: "Determines if a summary is less than 100 chars" expression: + * "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: + * "Determines if requestor is the document owner" expression: "document.owner == + * request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine + * whether the document should be publicly visible" expression: "document.type != 'private' && + * document.type != 'internal'" Example (Data Manipulation): title: "Notification string" + * description: "Create a notification string with a timestamp." expression: "'New message received + * at ' + string(document.create_time)" The exact variables and functions that may be referenced + * within an expression are determined by the service that evaluates it. See the service + * documentation for additional information. + * + *

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 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 Expr extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Textual representation of an expression in Common Expression Language syntax. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @param description description or {@code null} for none + */ + public Expr setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @param expression expression or {@code null} for none + */ + public Expr setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @param location location or {@code null} for none + */ + public Expr setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @param title title or {@code null} for none + */ + public Expr setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public Expr set(String fieldName, Object value) { + return (Expr) super.set(fieldName, value); + } + + @Override + public Expr clone() { + return (Expr) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/GeminiEnterpriseAuthProviderParams.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/GeminiEnterpriseAuthProviderParams.java new file mode 100644 index 00000000000..a42d5da3d86 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/GeminiEnterpriseAuthProviderParams.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.agentidentity.v1alpha.model; + +/** + * Message describing GeminiEnterpriseAuthProviderParams object. + * + *

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 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 GeminiEnterpriseAuthProviderParams extends com.google.api.client.json.GenericJson { + + @Override + public GeminiEnterpriseAuthProviderParams set(String fieldName, Object value) { + return (GeminiEnterpriseAuthProviderParams) super.set(fieldName, value); + } + + @Override + public GeminiEnterpriseAuthProviderParams clone() { + return (GeminiEnterpriseAuthProviderParams) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListAccessSummariesResponse.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListAccessSummariesResponse.java new file mode 100644 index 00000000000..a923885406b --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListAccessSummariesResponse.java @@ -0,0 +1,120 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message for response to listing AccessSummaries + * + *

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 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 ListAccessSummariesResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of AccessSummary + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accessSummaries; + + static { + // hack to force ProGuard to consider AccessSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AccessSummary.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of AccessSummary + * @return value or {@code null} for none + */ + public java.util.List getAccessSummaries() { + return accessSummaries; + } + + /** + * The list of AccessSummary + * @param accessSummaries accessSummaries or {@code null} for none + */ + public ListAccessSummariesResponse setAccessSummaries(java.util.List accessSummaries) { + this.accessSummaries = accessSummaries; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAccessSummariesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAccessSummariesResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAccessSummariesResponse set(String fieldName, Object value) { + return (ListAccessSummariesResponse) super.set(fieldName, value); + } + + @Override + public ListAccessSummariesResponse clone() { + return (ListAccessSummariesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListAuthProvidersResponse.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListAuthProvidersResponse.java new file mode 100644 index 00000000000..5c1fad10391 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListAuthProvidersResponse.java @@ -0,0 +1,120 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message for response to listing AuthProviders + * + *

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 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 ListAuthProvidersResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of AuthProvider + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authProviders; + + static { + // hack to force ProGuard to consider AuthProvider used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AuthProvider.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of AuthProvider + * @return value or {@code null} for none + */ + public java.util.List getAuthProviders() { + return authProviders; + } + + /** + * The list of AuthProvider + * @param authProviders authProviders or {@code null} for none + */ + public ListAuthProvidersResponse setAuthProviders(java.util.List authProviders) { + this.authProviders = authProviders; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAuthProvidersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAuthProvidersResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAuthProvidersResponse set(String fieldName, Object value) { + return (ListAuthProvidersResponse) super.set(fieldName, value); + } + + @Override + public ListAuthProvidersResponse clone() { + return (ListAuthProvidersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListAuthorizationsResponse.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListAuthorizationsResponse.java new file mode 100644 index 00000000000..d981d91619e --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListAuthorizationsResponse.java @@ -0,0 +1,120 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message for response to listing Authorizations + * + *

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 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 ListAuthorizationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of Authorization + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authorizations; + + static { + // hack to force ProGuard to consider Authorization used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Authorization.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of Authorization + * @return value or {@code null} for none + */ + public java.util.List getAuthorizations() { + return authorizations; + } + + /** + * The list of Authorization + * @param authorizations authorizations or {@code null} for none + */ + public ListAuthorizationsResponse setAuthorizations(java.util.List authorizations) { + this.authorizations = authorizations; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAuthorizationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAuthorizationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAuthorizationsResponse set(String fieldName, Object value) { + return (ListAuthorizationsResponse) super.set(fieldName, value); + } + + @Override + public ListAuthorizationsResponse clone() { + return (ListAuthorizationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListLocationsResponse.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListLocationsResponse.java new file mode 100644 index 00000000000..56fbd6ff9a4 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ListLocationsResponse.java @@ -0,0 +1,90 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * The response message for Locations.ListLocations. + * + *

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 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 ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of locations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of locations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Location.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Location.java new file mode 100644 index 00000000000..b19d02c8821 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Location.java @@ -0,0 +1,168 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * A resource that represents a Google Cloud location. + * + *

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 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 Location extends com.google.api.client.json.GenericJson { + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The canonical id for this location. For example: `"us-east1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationId; + + /** + * Service-specific metadata. For example the available capacity at the given location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @param displayName displayName or {@code null} for none + */ + public Location setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @return value or {@code null} for none + */ + public java.lang.String getLocationId() { + return locationId; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @param locationId locationId or {@code null} for none + */ + public Location setLocationId(java.lang.String locationId) { + this.locationId = locationId; + return this; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Policy.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Policy.java new file mode 100644 index 00000000000..059a6930bfa --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/Policy.java @@ -0,0 +1,291 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud + * resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or + * principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, + * and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM + * predefined role or a user-created custom role. For some types of Google Cloud resources, a + * `binding` can also specify a `condition`, which is a logical expression that allows access to a + * resource only if the expression evaluates to `true`. A condition can add constraints based on + * attributes of the request, the resource, or both. To learn which resources support conditions in + * their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** + * ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ + * "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my- + * project-id@appspot.gserviceaccount.com" ] }, { "role": + * "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { + * "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": + * "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": + * 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - serviceAccount:my-project- + * id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - + * user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable + * access description: Does not grant access after Sep 2020 expression: request.time < + * timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM + * and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + * + *

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 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 Policy extends com.google.api.client.json.GenericJson { + + /** + * Specifies cloud audit logging configuration for this policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List auditConfigs; + + static { + // hack to force ProGuard to consider AuditConfig used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AuditConfig.class); + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bindings; + + static { + // hack to force ProGuard to consider Binding used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Binding.class); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer version; + + /** + * Specifies cloud audit logging configuration for this policy. + * @return value or {@code null} for none + */ + public java.util.List getAuditConfigs() { + return auditConfigs; + } + + /** + * Specifies cloud audit logging configuration for this policy. + * @param auditConfigs auditConfigs or {@code null} for none + */ + public Policy setAuditConfigs(java.util.List auditConfigs) { + this.auditConfigs = auditConfigs; + return this; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * @param bindings bindings or {@code null} for none + */ + public Policy setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public Policy setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #setEtag() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Policy encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public java.lang.Integer getVersion() { + return version; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param version version or {@code null} for none + */ + public Policy setVersion(java.lang.Integer version) { + this.version = version; + return this; + } + + @Override + public Policy set(String fieldName, Object value) { + return (Policy) super.set(fieldName, value); + } + + @Override + public Policy clone() { + return (Policy) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/QueryAuthProvidersResponse.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/QueryAuthProvidersResponse.java new file mode 100644 index 00000000000..21ed16410c3 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/QueryAuthProvidersResponse.java @@ -0,0 +1,93 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Response message for QueryAuthProviders. + * + *

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 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 QueryAuthProvidersResponse extends com.google.api.client.json.GenericJson { + + /** + * The unique list of auth_provider resource names used by the workload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authProviderNames; + + /** + * A token identifying a page of results the server should return. If this field is omitted, there + * are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The unique list of auth_provider resource names used by the workload. + * @return value or {@code null} for none + */ + public java.util.List getAuthProviderNames() { + return authProviderNames; + } + + /** + * The unique list of auth_provider resource names used by the workload. + * @param authProviderNames authProviderNames or {@code null} for none + */ + public QueryAuthProvidersResponse setAuthProviderNames(java.util.List authProviderNames) { + this.authProviderNames = authProviderNames; + return this; + } + + /** + * A token identifying a page of results the server should return. If this field is omitted, there + * are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. If this field is omitted, there + * are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public QueryAuthProvidersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public QueryAuthProvidersResponse set(String fieldName, Object value) { + return (QueryAuthProvidersResponse) super.set(fieldName, value); + } + + @Override + public QueryAuthProvidersResponse clone() { + return (QueryAuthProvidersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/QueryWorkloadsResponse.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/QueryWorkloadsResponse.java new file mode 100644 index 00000000000..f694e5cb87a --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/QueryWorkloadsResponse.java @@ -0,0 +1,90 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Response message for QueryWorkloads. + * + *

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 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 QueryWorkloadsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The unique list of workload identifiers (agents) that used the auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List workloadIds; + + /** + * A token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public QueryWorkloadsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The unique list of workload identifiers (agents) that used the auth_provider. + * @return value or {@code null} for none + */ + public java.util.List getWorkloadIds() { + return workloadIds; + } + + /** + * The unique list of workload identifiers (agents) that used the auth_provider. + * @param workloadIds workloadIds or {@code null} for none + */ + public QueryWorkloadsResponse setWorkloadIds(java.util.List workloadIds) { + this.workloadIds = workloadIds; + return this; + } + + @Override + public QueryWorkloadsResponse set(String fieldName, Object value) { + return (QueryWorkloadsResponse) super.set(fieldName, value); + } + + @Override + public QueryWorkloadsResponse clone() { + return (QueryWorkloadsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/RevokeAuthorizationRequest.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/RevokeAuthorizationRequest.java new file mode 100644 index 00000000000..e92a0f939d2 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/RevokeAuthorizationRequest.java @@ -0,0 +1,66 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Request message for RevokeAuthorization. + * + *

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 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 RevokeAuthorizationRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The identity of the user to revoke authorization for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Required. The identity of the user to revoke authorization for. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Required. The identity of the user to revoke authorization for. + * @param userId userId or {@code null} for none + */ + public RevokeAuthorizationRequest setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + @Override + public RevokeAuthorizationRequest set(String fieldName, Object value) { + return (RevokeAuthorizationRequest) super.set(fieldName, value); + } + + @Override + public RevokeAuthorizationRequest clone() { + return (RevokeAuthorizationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/RevokeAuthorizationResponse.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/RevokeAuthorizationResponse.java new file mode 100644 index 00000000000..5a87db47e86 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/RevokeAuthorizationResponse.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.agentidentity.v1alpha.model; + +/** + * Response message for RevokeAuthorization. + * + *

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 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 RevokeAuthorizationResponse extends com.google.api.client.json.GenericJson { + + @Override + public RevokeAuthorizationResponse set(String fieldName, Object value) { + return (RevokeAuthorizationResponse) super.set(fieldName, value); + } + + @Override + public RevokeAuthorizationResponse clone() { + return (RevokeAuthorizationResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/SetIamPolicyRequest.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/SetIamPolicyRequest.java new file mode 100644 index 00000000000..7eb9ecc4d4b --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/SetIamPolicyRequest.java @@ -0,0 +1,102 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Request message for `SetIamPolicy` method. + * + *

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 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 SetIamPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Policy policy; + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the + * mask will be modified. If no mask is provided, the following default mask is used: `paths: + * "bindings, etag"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @return value or {@code null} for none + */ + public Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public SetIamPolicyRequest setPolicy(Policy policy) { + this.policy = policy; + return this; + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the + * mask will be modified. If no mask is provided, the following default mask is used: `paths: + * "bindings, etag"` + * @return value or {@code null} for none + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the + * mask will be modified. If no mask is provided, the following default mask is used: `paths: + * "bindings, etag"` + * @param updateMask updateMask or {@code null} for none + */ + public SetIamPolicyRequest setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public SetIamPolicyRequest set(String fieldName, Object value) { + return (SetIamPolicyRequest) super.set(fieldName, value); + } + + @Override + public SetIamPolicyRequest clone() { + return (SetIamPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/TestIamPermissionsRequest.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/TestIamPermissionsRequest.java new file mode 100644 index 00000000000..00ccccb8df5 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/TestIamPermissionsRequest.java @@ -0,0 +1,72 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Request message for `TestIamPermissions` method. + * + *

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 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 TestIamPermissionsRequest extends com.google.api.client.json.GenericJson { + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + * `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + * `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + * `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param permissions permissions or {@code null} for none + */ + public TestIamPermissionsRequest setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestIamPermissionsRequest set(String fieldName, Object value) { + return (TestIamPermissionsRequest) super.set(fieldName, value); + } + + @Override + public TestIamPermissionsRequest clone() { + return (TestIamPermissionsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/TestIamPermissionsResponse.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/TestIamPermissionsResponse.java new file mode 100644 index 00000000000..9e4e0cf33f3 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/TestIamPermissionsResponse.java @@ -0,0 +1,66 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Response message for `TestIamPermissions` method. + * + *

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 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 TestIamPermissionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * @param permissions permissions or {@code null} for none + */ + public TestIamPermissionsResponse setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestIamPermissionsResponse set(String fieldName, Object value) { + return (TestIamPermissionsResponse) super.set(fieldName, value); + } + + @Override + public TestIamPermissionsResponse clone() { + return (TestIamPermissionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ThreeLeggedOAuth.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ThreeLeggedOAuth.java new file mode 100644 index 00000000000..6c009e9011c --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/ThreeLeggedOAuth.java @@ -0,0 +1,225 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message describing ThreeLeggedOAuth object. + * + *

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 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 ThreeLeggedOAuth extends com.google.api.client.json.GenericJson { + + /** + * Optional. The authorization endpoint to send users to for consenting to delegate to the agent. + * eg. "https://auth.atlassian.com/authorize" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authorizationUrl; + + /** + * Optional. The client ID of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * Optional. Input only. The client secret of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientSecret; + + /** + * Optional. The default continue URI for 3LO flow and it will be used when no continue URI is + * provided in the RetrieveCredentials request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultContinueUri; + + /** + * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent + * authorization code interception attacks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enablePkce; + + /** + * Output only. The redirect URL this auth_provider uses for the OAuth exchange. This is + * deterministic based on the name of the auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String redirectUrl; + + /** + * Optional. The token endpoint for requesting tokens on behalf of an end user. eg. + * "https://auth.atlassian.com/oauth/token" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenUrl; + + /** + * Optional. The authorization endpoint to send users to for consenting to delegate to the agent. + * eg. "https://auth.atlassian.com/authorize" + * @return value or {@code null} for none + */ + public java.lang.String getAuthorizationUrl() { + return authorizationUrl; + } + + /** + * Optional. The authorization endpoint to send users to for consenting to delegate to the agent. + * eg. "https://auth.atlassian.com/authorize" + * @param authorizationUrl authorizationUrl or {@code null} for none + */ + public ThreeLeggedOAuth setAuthorizationUrl(java.lang.String authorizationUrl) { + this.authorizationUrl = authorizationUrl; + return this; + } + + /** + * Optional. The client ID of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * Optional. The client ID of the OAuth client. + * @param clientId clientId or {@code null} for none + */ + public ThreeLeggedOAuth setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientSecret() { + return clientSecret; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @param clientSecret clientSecret or {@code null} for none + */ + public ThreeLeggedOAuth setClientSecret(java.lang.String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Optional. The default continue URI for 3LO flow and it will be used when no continue URI is + * provided in the RetrieveCredentials request. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultContinueUri() { + return defaultContinueUri; + } + + /** + * Optional. The default continue URI for 3LO flow and it will be used when no continue URI is + * provided in the RetrieveCredentials request. + * @param defaultContinueUri defaultContinueUri or {@code null} for none + */ + public ThreeLeggedOAuth setDefaultContinueUri(java.lang.String defaultContinueUri) { + this.defaultContinueUri = defaultContinueUri; + return this; + } + + /** + * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent + * authorization code interception attacks. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnablePkce() { + return enablePkce; + } + + /** + * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent + * authorization code interception attacks. + * @param enablePkce enablePkce or {@code null} for none + */ + public ThreeLeggedOAuth setEnablePkce(java.lang.Boolean enablePkce) { + this.enablePkce = enablePkce; + return this; + } + + /** + * Output only. The redirect URL this auth_provider uses for the OAuth exchange. This is + * deterministic based on the name of the auth_provider. + * @return value or {@code null} for none + */ + public java.lang.String getRedirectUrl() { + return redirectUrl; + } + + /** + * Output only. The redirect URL this auth_provider uses for the OAuth exchange. This is + * deterministic based on the name of the auth_provider. + * @param redirectUrl redirectUrl or {@code null} for none + */ + public ThreeLeggedOAuth setRedirectUrl(java.lang.String redirectUrl) { + this.redirectUrl = redirectUrl; + return this; + } + + /** + * Optional. The token endpoint for requesting tokens on behalf of an end user. eg. + * "https://auth.atlassian.com/oauth/token" + * @return value or {@code null} for none + */ + public java.lang.String getTokenUrl() { + return tokenUrl; + } + + /** + * Optional. The token endpoint for requesting tokens on behalf of an end user. eg. + * "https://auth.atlassian.com/oauth/token" + * @param tokenUrl tokenUrl or {@code null} for none + */ + public ThreeLeggedOAuth setTokenUrl(java.lang.String tokenUrl) { + this.tokenUrl = tokenUrl; + return this; + } + + @Override + public ThreeLeggedOAuth set(String fieldName, Object value) { + return (ThreeLeggedOAuth) super.set(fieldName, value); + } + + @Override + public ThreeLeggedOAuth clone() { + return (ThreeLeggedOAuth) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/TwoLeggedOAuth.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/TwoLeggedOAuth.java new file mode 100644 index 00000000000..32a1fc089ae --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/TwoLeggedOAuth.java @@ -0,0 +1,114 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message describing TwoLeggedOAuth object. + * + *

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 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 TwoLeggedOAuth extends com.google.api.client.json.GenericJson { + + /** + * Optional. The client ID of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * Optional. Input only. The client secret of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientSecret; + + /** + * Optional. The token endpoint of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenUrl; + + /** + * Optional. The client ID of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * Optional. The client ID of the OAuth client. + * @param clientId clientId or {@code null} for none + */ + public TwoLeggedOAuth setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientSecret() { + return clientSecret; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @param clientSecret clientSecret or {@code null} for none + */ + public TwoLeggedOAuth setClientSecret(java.lang.String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Optional. The token endpoint of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getTokenUrl() { + return tokenUrl; + } + + /** + * Optional. The token endpoint of the OAuth client. + * @param tokenUrl tokenUrl or {@code null} for none + */ + public TwoLeggedOAuth setTokenUrl(java.lang.String tokenUrl) { + this.tokenUrl = tokenUrl; + return this; + } + + @Override + public TwoLeggedOAuth set(String fieldName, Object value) { + return (TwoLeggedOAuth) super.set(fieldName, value); + } + + @Override + public TwoLeggedOAuth clone() { + return (TwoLeggedOAuth) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/UndeleteAuthProviderRequest.java b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/UndeleteAuthProviderRequest.java new file mode 100644 index 00000000000..db8e7da5015 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/com/google/api/services/agentidentity/v1alpha/model/UndeleteAuthProviderRequest.java @@ -0,0 +1,78 @@ +/* + * 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.agentidentity.v1alpha.model; + +/** + * Message for undeleting a AuthProvider + * + *

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 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 UndeleteAuthProviderRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public UndeleteAuthProviderRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UndeleteAuthProviderRequest set(String fieldName, Object value) { + return (UndeleteAuthProviderRequest) super.set(fieldName, value); + } + + @Override + public UndeleteAuthProviderRequest clone() { + return (UndeleteAuthProviderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1alpha/2.0.0/pom.xml b/clients/google-api-services-agentidentity/v1alpha/2.0.0/pom.xml new file mode 100644 index 00000000000..cec0df919c4 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-agentidentity + v1alpha-rev20260722-2.0.0 + Agent Identity API v1alpha-rev20260722-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.agentidentity + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Agent Identity API ${project.version} + Agent Identity API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-agentidentity/v1alpha/README.md b/clients/google-api-services-agentidentity/v1alpha/README.md new file mode 100644 index 00000000000..38e869d1133 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1alpha/README.md @@ -0,0 +1,44 @@ +# Agent Identity API Client Library for Java + + + +This page contains information about getting started with the Agent Identity 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 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 API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-agentidentity + v1alpha-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-agentidentity:v1alpha-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-agentidentity/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/agentidentity/v1/ diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/README.md b/clients/google-api-services-agentidentity/v1beta/2.0.0/README.md new file mode 100644 index 00000000000..e8c9fb2a98d --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/README.md @@ -0,0 +1,44 @@ +# Agent Identity API Client Library for Java + + + +This page contains information about getting started with the Agent Identity 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 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 API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-agentidentity + v1beta-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-agentidentity:v1beta-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-agentidentity/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/agentidentity/v1/ diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentity.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentity.java new file mode 100644 index 00000000000..594dd1929be --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentity.java @@ -0,0 +1,4155 @@ +/* + * 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.agentidentity.v1beta; + +/** + * Service definition for AgentIdentity (v1beta). + * + *

+ * + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link AgentIdentityRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AgentIdentity 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 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://agentidentity.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://agentidentity.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: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + * + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public AgentIdentity(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + AgentIdentity(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+   *   {@code AgentIdentity.Projects.List request = agentidentity.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 AgentIdentity agentidentity = new AgentIdentity(...);}
+     *   {@code AgentIdentity.Locations.List request = agentidentity.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Resource name for the location. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Resource name for the location. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.Location.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Resource name for the location. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Resource name for the location. + */ + public java.lang.String getName() { + return name; + } + + /** Resource name for the location. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all projects. + * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method + * lists locations visible to that specific project. This includes public, private, or other + * project-specific locations enabled for the project. For gRPC and client library implementations, + * the resource name is passed as the `name` field. For direct service calls, the resource name is + * incorporated into the request path based on the specific service implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The resource that owns the locations collection, if applicable. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}/locations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all + * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, + * the method lists locations visible to that specific project. This includes public, private, or + * other project-specific locations enabled for the project. For gRPC and client library + * implementations, the resource name is passed as the `name` field. For direct service calls, the + * resource name is incorporated into the request path based on the specific service + * implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The resource that owns the locations collection, if applicable. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.ListLocationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The resource that owns the locations collection, if applicable. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The resource that owns the locations collection, if applicable. + */ + public java.lang.String getName() { + return name; + } + + /** The resource that owns the locations collection, if applicable. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; + + /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for + internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + return this; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like + `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results to return. If not set, the service selects a default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token received from the `next_page_token` field in the response. Send that page token to + receive the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the AccessSummaries collection. + * + *

The typical use is:

+ *
+       *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+       *   {@code AgentIdentity.AccessSummaries.List request = agentidentity.accessSummaries().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AccessSummaries accessSummaries() { + return new AccessSummaries(); + } + + /** + * The "accessSummaries" collection of methods. + */ + public class AccessSummaries { + + /** + * Gets details of a single AccessSummary. + * + * Create a request for the method "accessSummaries.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/accessSummaries/[^/]+$"); + + /** + * Gets details of a single AccessSummary. + * + * Create a request for the method "accessSummaries.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.AccessSummary.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/accessSummaries/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/accessSummaries/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: Filter + * by the SPIFFE ID of the agent. Example: `workload_id="spiffe://example.com/ns/default/sa/my- + * agent"` + * + * Create a request for the method "accessSummaries.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+parent}/accessSummaries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + * Create a request for the method "accessSummaries.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.ListAccessSummariesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `workload_id` or `auth_provider_name`. If no filter is provided, returns all access + * summaries for the requested project and location. Format: `workload_id=""` or + * `auth_provider_name=""` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter string to restrict the results. Currently supports filtering by `workload_id` or + `auth_provider_name`. If no filter is provided, returns all access summaries for the requested + project and location. Format: `workload_id=""` or `auth_provider_name=""` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `workload_id` or `auth_provider_name`. If no filter is provided, returns all access + * summaries for the requested project and location. Format: `workload_id=""` or + * `auth_provider_name=""` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by (auth_provider_id, + * user_id) in ascending order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. This field is currently ignored. Defaults to ordering by (auth_provider_id, user_id) in + ascending order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by (auth_provider_id, + * user_id) in ascending order. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results the server should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results the server should return. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the AuthProviders collection. + * + *

The typical use is:

+ *
+       *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+       *   {@code AgentIdentity.AuthProviders.List request = agentidentity.authProviders().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AuthProviders authProviders() { + return new AuthProviders(); + } + + /** + * The "authProviders" collection of methods. + */ + public class AuthProviders { + + /** + * Creates a new AuthProvider in a given project and location. + * + * Create a request for the method "authProviders.create". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.AuthProvider} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.agentidentity.v1beta.model.AuthProvider content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+parent}/authProviders"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new AuthProvider in a given project and location. + * + * Create a request for the method "authProviders.create". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.AuthProvider} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.agentidentity.v1beta.model.AuthProvider content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1beta.model.AuthProvider.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the AuthProvider is created. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The ID to use for the AuthProvider, which will become the final segment of + * the AuthProvider's resource name. This value should be 1-63 characters, and valid + * characters are /a-z-/. The first character must be a lowercase letter, and the last + * character must be a lowercase letter or a number. + */ + @com.google.api.client.util.Key + private java.lang.String authProviderId; + + /** Required. The ID to use for the AuthProvider, which will become the final segment of the + AuthProvider's resource name. This value should be 1-63 characters, and valid characters are + /a-z-/. The first character must be a lowercase letter, and the last character must be a lowercase + letter or a number. + */ + public java.lang.String getAuthProviderId() { + return authProviderId; + } + + /** + * Required. The ID to use for the AuthProvider, which will become the final segment of + * the AuthProvider's resource name. This value should be 1-63 characters, and valid + * characters are /a-z-/. The first character must be a lowercase letter, and the last + * character must be a lowercase letter or a number. + */ + public Create setAuthProviderId(java.lang.String authProviderId) { + this.authProviderId = authProviderId; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes since the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single AuthProvider. + * + * Create a request for the method "authProviders.delete". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Deletes a single AuthProvider. + * + * Create a request for the method "authProviders.delete". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AgentIdentity.this, "DELETE", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Disables a single AuthProvider. + * + * Create a request for the method "authProviders.disable". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Disable#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.DisableAuthProviderRequest} + * @return the request + */ + public Disable disable(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.DisableAuthProviderRequest content) throws java.io.IOException { + Disable result = new Disable(name, content); + initialize(result); + return result; + } + + public class Disable extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}:disable"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Disables a single AuthProvider. + * + * Create a request for the method "authProviders.disable". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Disable#execute()} method to invoke the remote operation. + *

{@link + * Disable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.DisableAuthProviderRequest} + * @since 1.13 + */ + protected Disable(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.DisableAuthProviderRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1beta.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Disable set$Xgafv(java.lang.String $Xgafv) { + return (Disable) super.set$Xgafv($Xgafv); + } + + @Override + public Disable setAccessToken(java.lang.String accessToken) { + return (Disable) super.setAccessToken(accessToken); + } + + @Override + public Disable setAlt(java.lang.String alt) { + return (Disable) super.setAlt(alt); + } + + @Override + public Disable setCallback(java.lang.String callback) { + return (Disable) super.setCallback(callback); + } + + @Override + public Disable setFields(java.lang.String fields) { + return (Disable) super.setFields(fields); + } + + @Override + public Disable setKey(java.lang.String key) { + return (Disable) super.setKey(key); + } + + @Override + public Disable setOauthToken(java.lang.String oauthToken) { + return (Disable) super.setOauthToken(oauthToken); + } + + @Override + public Disable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Disable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Disable setQuotaUser(java.lang.String quotaUser) { + return (Disable) super.setQuotaUser(quotaUser); + } + + @Override + public Disable setUploadType(java.lang.String uploadType) { + return (Disable) super.setUploadType(uploadType); + } + + @Override + public Disable setUploadProtocol(java.lang.String uploadProtocol) { + return (Disable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Disable setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Disable set(String parameterName, Object value) { + return (Disable) super.set(parameterName, value); + } + } + /** + * Enables a single AuthProvider. + * + * Create a request for the method "authProviders.enable". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Enable#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.EnableAuthProviderRequest} + * @return the request + */ + public Enable enable(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.EnableAuthProviderRequest content) throws java.io.IOException { + Enable result = new Enable(name, content); + initialize(result); + return result; + } + + public class Enable extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}:enable"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Enables a single AuthProvider. + * + * Create a request for the method "authProviders.enable". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Enable#execute()} method to invoke the remote operation. + *

{@link + * Enable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.EnableAuthProviderRequest} + * @since 1.13 + */ + protected Enable(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.EnableAuthProviderRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1beta.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Enable set$Xgafv(java.lang.String $Xgafv) { + return (Enable) super.set$Xgafv($Xgafv); + } + + @Override + public Enable setAccessToken(java.lang.String accessToken) { + return (Enable) super.setAccessToken(accessToken); + } + + @Override + public Enable setAlt(java.lang.String alt) { + return (Enable) super.setAlt(alt); + } + + @Override + public Enable setCallback(java.lang.String callback) { + return (Enable) super.setCallback(callback); + } + + @Override + public Enable setFields(java.lang.String fields) { + return (Enable) super.setFields(fields); + } + + @Override + public Enable setKey(java.lang.String key) { + return (Enable) super.setKey(key); + } + + @Override + public Enable setOauthToken(java.lang.String oauthToken) { + return (Enable) super.setOauthToken(oauthToken); + } + + @Override + public Enable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Enable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Enable setQuotaUser(java.lang.String quotaUser) { + return (Enable) super.setQuotaUser(quotaUser); + } + + @Override + public Enable setUploadType(java.lang.String uploadType) { + return (Enable) super.setUploadType(uploadType); + } + + @Override + public Enable setUploadProtocol(java.lang.String uploadProtocol) { + return (Enable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Enable setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Enable set(String parameterName, Object value) { + return (Enable) super.set(parameterName, value); + } + } + /** + * Gets details of a single AuthProvider. + * + * Create a request for the method "authProviders.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Gets details of a single AuthProvider. + * + * Create a request for the method "authProviders.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "authProviders.getIamPolicy". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + * Create a request for the method "authProviders.getIamPolicy". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Lists AuthProviders in a given project and location. + * + * Create a request for the method "authProviders.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+parent}/authProviders"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists AuthProviders in a given project and location. + * + * Create a request for the method "authProviders.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.ListAuthProvidersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filter results. This field is currently ignored. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter results. This field is currently ignored. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filter results. This field is currently ignored. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Currently ignored. Defaults to ordering by auth_provider_id in ascending + * order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Currently ignored. Defaults to ordering by auth_provider_id in ascending order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Currently ignored. Defaults to ordering by auth_provider_id in ascending + * order. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is + omitted, the first page is returned. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. Deleted auth_providers will be kept with a soft-delete for 30 days before + * being purged. If this field is set to true, deleted auth_providers will also be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.Boolean showDeleted; + + /** Optional. Deleted auth_providers will be kept with a soft-delete for 30 days before being purged. + If this field is set to true, deleted auth_providers will also be returned. + */ + public java.lang.Boolean getShowDeleted() { + return showDeleted; + } + + /** + * Optional. Deleted auth_providers will be kept with a soft-delete for 30 days before + * being purged. If this field is set to true, deleted auth_providers will also be + * returned. + */ + public List setShowDeleted(java.lang.Boolean showDeleted) { + this.showDeleted = showDeleted; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single AuthProvider. + * + * Create a request for the method "authProviders.patch". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.AuthProvider} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.AuthProvider content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Updates the parameters of a single AuthProvider. + * + * Create a request for the method "authProviders.patch". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.AuthProvider} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.AuthProvider content) { + super(AgentIdentity.this, "PATCH", REST_PATH, content, com.google.api.services.agentidentity.v1beta.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The full resource name of the auth_provider. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes since the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * since the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AuthProvider resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in + * the mask. If the user does not provide a mask then all fields present in the request + * will be overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the AuthProvider resource + by the update. The fields specified in the update_mask are relative to the resource, not the full + request. A field will be overwritten if it is in the mask. If the user does not provide a mask then + all fields present in the request will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AuthProvider resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in + * the mask. If the user does not provide a mask then all fields present in the request + * will be overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Queries what all auth_providers are used by a given workload_id. + * + * Create a request for the method "authProviders.query". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Query#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @return the request + */ + public Query query(java.lang.String parent) throws java.io.IOException { + Query result = new Query(parent); + initialize(result); + return result; + } + + public class Query extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+parent}/authProviders:query"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Queries what all auth_providers are used by a given workload_id. + * + * Create a request for the method "authProviders.query". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. + *

{@link + * Query#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @since 1.13 + */ + protected Query(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.QueryAuthProvidersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Query set$Xgafv(java.lang.String $Xgafv) { + return (Query) super.set$Xgafv($Xgafv); + } + + @Override + public Query setAccessToken(java.lang.String accessToken) { + return (Query) super.setAccessToken(accessToken); + } + + @Override + public Query setAlt(java.lang.String alt) { + return (Query) super.setAlt(alt); + } + + @Override + public Query setCallback(java.lang.String callback) { + return (Query) super.setCallback(callback); + } + + @Override + public Query setFields(java.lang.String fields) { + return (Query) super.setFields(fields); + } + + @Override + public Query setKey(java.lang.String key) { + return (Query) super.setKey(key); + } + + @Override + public Query setOauthToken(java.lang.String oauthToken) { + return (Query) super.setOauthToken(oauthToken); + } + + @Override + public Query setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Query) super.setPrettyPrint(prettyPrint); + } + + @Override + public Query setQuotaUser(java.lang.String quotaUser) { + return (Query) super.setQuotaUser(quotaUser); + } + + @Override + public Query setUploadType(java.lang.String uploadType) { + return (Query) super.setUploadType(uploadType); + } + + @Override + public Query setUploadProtocol(java.lang.String uploadProtocol) { + return (Query) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + */ + public Query setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. The maximum page size is 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. The maximum page size is 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. The maximum page size is 1000. + */ + public Query setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. A page token, received from a previous + * QueryAuthProviders call. Provide this to retrieve the subsequent page. When paginating, + * all other parameters provided to QueryAuthProviders must match the call that provided + * the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is + omitted, the first page is returned. A page token, received from a previous QueryAuthProviders + call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided + to QueryAuthProviders must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. If this + * field is omitted, the first page is returned. A page token, received from a previous + * QueryAuthProviders call. Provide this to retrieve the subsequent page. When paginating, + * all other parameters provided to QueryAuthProviders must match the call that provided + * the page token. + */ + public Query setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Required. The workload identifier to filter by. */ + @com.google.api.client.util.Key + private java.lang.String workloadId; + + /** Required. The workload identifier to filter by. + */ + public java.lang.String getWorkloadId() { + return workloadId; + } + + /** Required. The workload identifier to filter by. */ + public Query setWorkloadId(java.lang.String workloadId) { + this.workloadId = workloadId; + return this; + } + + @Override + public Query set(String parameterName, Object value) { + return (Query) super.set(parameterName, value); + } + } + /** + * Queries what all workloads are using a given auth_provider. + * + * Create a request for the method "authProviders.queryWorkloads". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link QueryWorkloads#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @return the request + */ + public QueryWorkloads queryWorkloads(java.lang.String name) throws java.io.IOException { + QueryWorkloads result = new QueryWorkloads(name); + initialize(result); + return result; + } + + public class QueryWorkloads extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}:queryWorkloads"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Queries what all workloads are using a given auth_provider. + * + * Create a request for the method "authProviders.queryWorkloads". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link QueryWorkloads#execute()} method to invoke the remote + * operation.

{@link QueryWorkloads#initialize(com.google.api.client.googleapis.services.Abstr + * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.

+ * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @since 1.13 + */ + protected QueryWorkloads(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.QueryWorkloadsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public QueryWorkloads set$Xgafv(java.lang.String $Xgafv) { + return (QueryWorkloads) super.set$Xgafv($Xgafv); + } + + @Override + public QueryWorkloads setAccessToken(java.lang.String accessToken) { + return (QueryWorkloads) super.setAccessToken(accessToken); + } + + @Override + public QueryWorkloads setAlt(java.lang.String alt) { + return (QueryWorkloads) super.setAlt(alt); + } + + @Override + public QueryWorkloads setCallback(java.lang.String callback) { + return (QueryWorkloads) super.setCallback(callback); + } + + @Override + public QueryWorkloads setFields(java.lang.String fields) { + return (QueryWorkloads) super.setFields(fields); + } + + @Override + public QueryWorkloads setKey(java.lang.String key) { + return (QueryWorkloads) super.setKey(key); + } + + @Override + public QueryWorkloads setOauthToken(java.lang.String oauthToken) { + return (QueryWorkloads) super.setOauthToken(oauthToken); + } + + @Override + public QueryWorkloads setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryWorkloads) super.setPrettyPrint(prettyPrint); + } + + @Override + public QueryWorkloads setQuotaUser(java.lang.String quotaUser) { + return (QueryWorkloads) super.setQuotaUser(quotaUser); + } + + @Override + public QueryWorkloads setUploadType(java.lang.String uploadType) { + return (QueryWorkloads) super.setUploadType(uploadType); + } + + @Override + public QueryWorkloads setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryWorkloads) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the auth_provider to query. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public QueryWorkloads setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public QueryWorkloads setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. When + * paginating, all other parameters provided to QueryWorkloads must match the call that + * provided the page token. If this field is omitted, the first page is returned. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token, which can be sent as `page_token` to retrieve the next page. When paginating, + all other parameters provided to QueryWorkloads must match the call that provided the page token. + If this field is omitted, the first page is returned. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token, which can be sent as `page_token` to retrieve the next page. When + * paginating, all other parameters provided to QueryWorkloads must match the call that + * provided the page token. If this field is omitted, the first page is returned. + */ + public QueryWorkloads setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public QueryWorkloads set(String parameterName, Object value) { + return (QueryWorkloads) super.set(parameterName, value); + } + } + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all authorization + * records associated with the user and AuthProvider, effectively revoking access across all agents. + * + * Create a request for the method "authProviders.revokeAuthorization". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link RevokeAuthorization#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.RevokeAuthorizationRequest} + * @return the request + */ + public RevokeAuthorization revokeAuthorization(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.RevokeAuthorizationRequest content) throws java.io.IOException { + RevokeAuthorization result = new RevokeAuthorization(name, content); + initialize(result); + return result; + } + + public class RevokeAuthorization extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}:revokeAuthorization"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + * Create a request for the method "authProviders.revokeAuthorization". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link RevokeAuthorization#execute()} method to invoke the remote + * operation.

{@link RevokeAuthorization#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.RevokeAuthorizationRequest} + * @since 1.13 + */ + protected RevokeAuthorization(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.RevokeAuthorizationRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1beta.model.RevokeAuthorizationResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public RevokeAuthorization set$Xgafv(java.lang.String $Xgafv) { + return (RevokeAuthorization) super.set$Xgafv($Xgafv); + } + + @Override + public RevokeAuthorization setAccessToken(java.lang.String accessToken) { + return (RevokeAuthorization) super.setAccessToken(accessToken); + } + + @Override + public RevokeAuthorization setAlt(java.lang.String alt) { + return (RevokeAuthorization) super.setAlt(alt); + } + + @Override + public RevokeAuthorization setCallback(java.lang.String callback) { + return (RevokeAuthorization) super.setCallback(callback); + } + + @Override + public RevokeAuthorization setFields(java.lang.String fields) { + return (RevokeAuthorization) super.setFields(fields); + } + + @Override + public RevokeAuthorization setKey(java.lang.String key) { + return (RevokeAuthorization) super.setKey(key); + } + + @Override + public RevokeAuthorization setOauthToken(java.lang.String oauthToken) { + return (RevokeAuthorization) super.setOauthToken(oauthToken); + } + + @Override + public RevokeAuthorization setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RevokeAuthorization) super.setPrettyPrint(prettyPrint); + } + + @Override + public RevokeAuthorization setQuotaUser(java.lang.String quotaUser) { + return (RevokeAuthorization) super.setQuotaUser(quotaUser); + } + + @Override + public RevokeAuthorization setUploadType(java.lang.String uploadType) { + return (RevokeAuthorization) super.setUploadType(uploadType); + } + + @Override + public RevokeAuthorization setUploadProtocol(java.lang.String uploadProtocol) { + return (RevokeAuthorization) 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 name; + + /** Required. The resource name of the AuthProvider. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public RevokeAuthorization setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public RevokeAuthorization set(String parameterName, Object value) { + return (RevokeAuthorization) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "authProviders.setIamPolicy". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.agentidentity.v1beta.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "authProviders.setIamPolicy". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.agentidentity.v1beta.model.SetIamPolicyRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1beta.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "authProviders.testIamPermissions". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.TestIamPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.agentidentity.v1beta.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "authProviders.testIamPermissions". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.TestIamPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.agentidentity.v1beta.model.TestIamPermissionsRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1beta.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Undeletes a single AuthProvider. + * + * Create a request for the method "authProviders.undelete". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Undelete#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.UndeleteAuthProviderRequest} + * @return the request + */ + public Undelete undelete(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.UndeleteAuthProviderRequest content) throws java.io.IOException { + Undelete result = new Undelete(name, content); + initialize(result); + return result; + } + + public class Undelete extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}:undelete"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Undeletes a single AuthProvider. + * + * Create a request for the method "authProviders.undelete". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Undelete#execute()} method to invoke the remote operation. + *

{@link + * Undelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param content the {@link com.google.api.services.agentidentity.v1beta.model.UndeleteAuthProviderRequest} + * @since 1.13 + */ + protected Undelete(java.lang.String name, com.google.api.services.agentidentity.v1beta.model.UndeleteAuthProviderRequest content) { + super(AgentIdentity.this, "POST", REST_PATH, content, com.google.api.services.agentidentity.v1beta.model.AuthProvider.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public Undelete set$Xgafv(java.lang.String $Xgafv) { + return (Undelete) super.set$Xgafv($Xgafv); + } + + @Override + public Undelete setAccessToken(java.lang.String accessToken) { + return (Undelete) super.setAccessToken(accessToken); + } + + @Override + public Undelete setAlt(java.lang.String alt) { + return (Undelete) super.setAlt(alt); + } + + @Override + public Undelete setCallback(java.lang.String callback) { + return (Undelete) super.setCallback(callback); + } + + @Override + public Undelete setFields(java.lang.String fields) { + return (Undelete) super.setFields(fields); + } + + @Override + public Undelete setKey(java.lang.String key) { + return (Undelete) super.setKey(key); + } + + @Override + public Undelete setOauthToken(java.lang.String oauthToken) { + return (Undelete) super.setOauthToken(oauthToken); + } + + @Override + public Undelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Undelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Undelete setQuotaUser(java.lang.String quotaUser) { + return (Undelete) super.setQuotaUser(quotaUser); + } + + @Override + public Undelete setUploadType(java.lang.String uploadType) { + return (Undelete) super.setUploadType(uploadType); + } + + @Override + public Undelete setUploadProtocol(java.lang.String uploadProtocol) { + return (Undelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public Undelete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Undelete set(String parameterName, Object value) { + return (Undelete) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Authorizations collection. + * + *

The typical use is:

+ *
+         *   {@code AgentIdentity agentidentity = new AgentIdentity(...);}
+         *   {@code AgentIdentity.Authorizations.List request = agentidentity.authorizations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Authorizations authorizations() { + return new Authorizations(); + } + + /** + * The "authorizations" collection of methods. + */ + public class Authorizations { + + /** + * Deletes a single Authorization. + * + * Create a request for the method "authorizations.delete". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{auth + * orization} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + + /** + * Deletes a single Authorization. + * + * Create a request for the method "authorizations.delete". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{auth + * orization} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AgentIdentity.this, "DELETE", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Authorization to delete. Format: projects/{project}/locatio + * ns/{location}/authProviders/{auth_provider}/authorizations/{authorization} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Authorization to delete. Format: projects/{project}/locations/{location}/ + authProviders/{auth_provider}/authorizations/{authorization} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Authorization to delete. Format: projects/{project}/locatio + * ns/{location}/authProviders/{auth_provider}/authorizations/{authorization} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients from + * accidentally creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients from + * accidentally creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single Authorization. + * + * Create a request for the method "authorizations.get". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the resource + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + + /** + * Gets details of a single Authorization. + * + * Create a request for the method "authorizations.get". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the resource + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.Authorization.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Name of the resource */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the resource + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the resource */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+/authorizations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Authorizations in a given project and location. + * + * Create a request for the method "authorizations.list". + * + * This request holds the parameters needed by the agentidentity server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AgentIdentityRequest { + + private static final String REST_PATH = "v1beta/{+parent}/authorizations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + + /** + * Lists Authorizations in a given project and location. + * + * Create a request for the method "authorizations.list". + * + * This request holds the parameters needed by the the agentidentity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AgentIdentity.this, "GET", REST_PATH, null, com.google.api.services.agentidentity.v1beta.model.ListAuthorizationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where the search is performed. Format: + projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authProviders/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `client_user_id` only. Format: `client_user_id=""` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter string to restrict the results. Currently supports filtering by `client_user_id` + only. Format: `client_user_id=""` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter string to restrict the results. Currently supports filtering by + * `client_user_id` only. Format: `client_user_id=""` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by authorization_id + * in ascending order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. This field is currently ignored. Defaults to ordering by authorization_id in ascending + order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. This field is currently ignored. Defaults to ordering by authorization_id + * in ascending order. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListAuthorizations` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListAuthorizations` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListAuthorizations` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListAuthorizations` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListAuthorizations` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided + * to `ListAuthorizations` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + } + + /** + * Builder for {@link AgentIdentity}. + * + *

+ * 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: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link AgentIdentity}. */ + @Override + public AgentIdentity build() { + return new AgentIdentity(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link AgentIdentityRequestInitializer}. + * + * @since 1.12 + */ + public Builder setAgentIdentityRequestInitializer( + AgentIdentityRequestInitializer agentidentityRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(agentidentityRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentityRequest.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentityRequest.java new file mode 100644 index 00000000000..d75fd700986 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentityRequest.java @@ -0,0 +1,267 @@ +/* + * 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.agentidentity.v1beta; + +/** + * AgentIdentity request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class AgentIdentityRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public AgentIdentityRequest( + AgentIdentity client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public AgentIdentityRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public AgentIdentityRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public AgentIdentityRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public AgentIdentityRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public AgentIdentityRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public AgentIdentityRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public AgentIdentityRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public AgentIdentityRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public AgentIdentityRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public AgentIdentityRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public AgentIdentityRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final AgentIdentity getAbstractGoogleClient() { + return (AgentIdentity) super.getAbstractGoogleClient(); + } + + @Override + public AgentIdentityRequest setDisableGZipContent(boolean disableGZipContent) { + return (AgentIdentityRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public AgentIdentityRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (AgentIdentityRequest) super.setRequestHeaders(headers); + } + + @Override + public AgentIdentityRequest set(String parameterName, Object value) { + return (AgentIdentityRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentityRequestInitializer.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentityRequestInitializer.java new file mode 100644 index 00000000000..dc185b7dcdc --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentityRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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.agentidentity.v1beta; + +/** + * AgentIdentity request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new AgentIdentityRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new AgentIdentityRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends AgentIdentityRequestInitializer {
+
+    {@literal @}Override
+    public void initializeAgentIdentityRequest(AgentIdentityRequest{@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 AgentIdentityRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeAgentIdentityRequest(AgentIdentityRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class AgentIdentityRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AgentIdentityRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AgentIdentityRequestInitializer(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 AgentIdentityRequestInitializer(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); + initializeAgentIdentityRequest((AgentIdentityRequest) request); + } + + /** + * Initializes AgentIdentity 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 initializeAgentIdentityRequest(AgentIdentityRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentityScopes.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentityScopes.java new file mode 100644 index 00000000000..076494e3d44 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/AgentIdentityScopes.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.agentidentity.v1beta; + +/** + * Available OAuth 2.0 scopes for use with the Agent Identity API. + * + * @since 1.4 + */ +public class AgentIdentityScopes { + + /** 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.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CLOUD_PLATFORM); + return java.util.Collections.unmodifiableSet(set); + } + + private AgentIdentityScopes() { + } +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AccessSummary.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AccessSummary.java new file mode 100644 index 00000000000..d37e44e1835 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AccessSummary.java @@ -0,0 +1,321 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message describing AccessSummary object + * + *

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 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 AccessSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The auth_provider that this access summary is associated with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authProvider; + + /** + * Output only. The type of the connector that was used to create this access summary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authProviderType; + + /** + * Output only. The first time this user has interacted with this workload. Rounded to the + * previous hour. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String firstAccessTime; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. The most recent time this user has interacted with this workload. Rounded to the + * previous hour. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastAccessTime; + + /** + * Output only. Identifier. Name of the AccessSummary + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The time when this access summary is permanently deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String purgeTime; + + /** + * Output only. All scopes that have been used by this user with this workload. The number of + * scopes is limited to 200. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Output only. The url of the authentication server that was accessed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenUrl; + + /** + * Output only. The user_id provided by the workload application for this user. Not verified by + * Google. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Output only. The identity bound to the workload that this user interacted with to produce this + * AccessSummary. Will typically be an agentic spiffe id + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String workloadId; + + /** + * Output only. The auth_provider that this access summary is associated with. + * @return value or {@code null} for none + */ + public java.lang.String getAuthProvider() { + return authProvider; + } + + /** + * Output only. The auth_provider that this access summary is associated with. + * @param authProvider authProvider or {@code null} for none + */ + public AccessSummary setAuthProvider(java.lang.String authProvider) { + this.authProvider = authProvider; + return this; + } + + /** + * Output only. The type of the connector that was used to create this access summary. + * @return value or {@code null} for none + */ + public java.lang.String getAuthProviderType() { + return authProviderType; + } + + /** + * Output only. The type of the connector that was used to create this access summary. + * @param authProviderType authProviderType or {@code null} for none + */ + public AccessSummary setAuthProviderType(java.lang.String authProviderType) { + this.authProviderType = authProviderType; + return this; + } + + /** + * Output only. The first time this user has interacted with this workload. Rounded to the + * previous hour. + * @return value or {@code null} for none + */ + public String getFirstAccessTime() { + return firstAccessTime; + } + + /** + * Output only. The first time this user has interacted with this workload. Rounded to the + * previous hour. + * @param firstAccessTime firstAccessTime or {@code null} for none + */ + public AccessSummary setFirstAccessTime(String firstAccessTime) { + this.firstAccessTime = firstAccessTime; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public AccessSummary setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. The most recent time this user has interacted with this workload. Rounded to the + * previous hour. + * @return value or {@code null} for none + */ + public String getLastAccessTime() { + return lastAccessTime; + } + + /** + * Output only. The most recent time this user has interacted with this workload. Rounded to the + * previous hour. + * @param lastAccessTime lastAccessTime or {@code null} for none + */ + public AccessSummary setLastAccessTime(String lastAccessTime) { + this.lastAccessTime = lastAccessTime; + return this; + } + + /** + * Output only. Identifier. Name of the AccessSummary + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Identifier. Name of the AccessSummary + * @param name name or {@code null} for none + */ + public AccessSummary setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The time when this access summary is permanently deleted. + * @return value or {@code null} for none + */ + public String getPurgeTime() { + return purgeTime; + } + + /** + * Output only. The time when this access summary is permanently deleted. + * @param purgeTime purgeTime or {@code null} for none + */ + public AccessSummary setPurgeTime(String purgeTime) { + this.purgeTime = purgeTime; + return this; + } + + /** + * Output only. All scopes that have been used by this user with this workload. The number of + * scopes is limited to 200. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Output only. All scopes that have been used by this user with this workload. The number of + * scopes is limited to 200. + * @param scopes scopes or {@code null} for none + */ + public AccessSummary setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Output only. The url of the authentication server that was accessed. + * @return value or {@code null} for none + */ + public java.lang.String getTokenUrl() { + return tokenUrl; + } + + /** + * Output only. The url of the authentication server that was accessed. + * @param tokenUrl tokenUrl or {@code null} for none + */ + public AccessSummary setTokenUrl(java.lang.String tokenUrl) { + this.tokenUrl = tokenUrl; + return this; + } + + /** + * Output only. The user_id provided by the workload application for this user. Not verified by + * Google. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Output only. The user_id provided by the workload application for this user. Not verified by + * Google. + * @param userId userId or {@code null} for none + */ + public AccessSummary setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + /** + * Output only. The identity bound to the workload that this user interacted with to produce this + * AccessSummary. Will typically be an agentic spiffe id + * @return value or {@code null} for none + */ + public java.lang.String getWorkloadId() { + return workloadId; + } + + /** + * Output only. The identity bound to the workload that this user interacted with to produce this + * AccessSummary. Will typically be an agentic spiffe id + * @param workloadId workloadId or {@code null} for none + */ + public AccessSummary setWorkloadId(java.lang.String workloadId) { + this.workloadId = workloadId; + return this; + } + + @Override + public AccessSummary set(String fieldName, Object value) { + return (AccessSummary) super.set(fieldName, value); + } + + @Override + public AccessSummary clone() { + return (AccessSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ApiKeyParams.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ApiKeyParams.java new file mode 100644 index 00000000000..15498c54442 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ApiKeyParams.java @@ -0,0 +1,66 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message describing ApiKeyParams object. + * + *

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 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 ApiKeyParams extends com.google.api.client.json.GenericJson { + + /** + * Optional. Input only. The API key for this auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKey; + + /** + * Optional. Input only. The API key for this auth_provider. + * @return value or {@code null} for none + */ + public java.lang.String getApiKey() { + return apiKey; + } + + /** + * Optional. Input only. The API key for this auth_provider. + * @param apiKey apiKey or {@code null} for none + */ + public ApiKeyParams setApiKey(java.lang.String apiKey) { + this.apiKey = apiKey; + return this; + } + + @Override + public ApiKeyParams set(String fieldName, Object value) { + return (ApiKeyParams) super.set(fieldName, value); + } + + @Override + public ApiKeyParams clone() { + return (ApiKeyParams) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuditConfig.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuditConfig.java new file mode 100644 index 00000000000..0c8df4b19a7 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuditConfig.java @@ -0,0 +1,107 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Specifies the audit configuration for a service. The configuration determines which permission + * types are logged, and what identities, if any, are exempted from logging. An AuditConfig must + * have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific + * service, the union of the two AuditConfigs is used for that service: the log_types specified in + * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. + * Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", + * "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] + * }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": + * "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": + * "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this + * policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` + * from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging. + * + *

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 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 AuditConfig extends com.google.api.client.json.GenericJson { + + /** + * The configuration for logging of each type of permission. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List auditLogConfigs; + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * The configuration for logging of each type of permission. + * @return value or {@code null} for none + */ + public java.util.List getAuditLogConfigs() { + return auditLogConfigs; + } + + /** + * The configuration for logging of each type of permission. + * @param auditLogConfigs auditLogConfigs or {@code null} for none + */ + public AuditConfig setAuditLogConfigs(java.util.List auditLogConfigs) { + this.auditLogConfigs = auditLogConfigs; + return this; + } + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * @param service service or {@code null} for none + */ + public AuditConfig setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public AuditConfig set(String fieldName, Object value) { + return (AuditConfig) super.set(fieldName, value); + } + + @Override + public AuditConfig clone() { + return (AuditConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuditLogConfig.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuditLogConfig.java new file mode 100644 index 00000000000..045e0638c97 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuditLogConfig.java @@ -0,0 +1,96 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { + * "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": + * "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + * jose@example.com from DATA_READ logging. + * + *

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 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 AuditLogConfig extends com.google.api.client.json.GenericJson { + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List exemptedMembers; + + /** + * The log type that this config enables. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String logType; + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * @return value or {@code null} for none + */ + public java.util.List getExemptedMembers() { + return exemptedMembers; + } + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * @param exemptedMembers exemptedMembers or {@code null} for none + */ + public AuditLogConfig setExemptedMembers(java.util.List exemptedMembers) { + this.exemptedMembers = exemptedMembers; + return this; + } + + /** + * The log type that this config enables. + * @return value or {@code null} for none + */ + public java.lang.String getLogType() { + return logType; + } + + /** + * The log type that this config enables. + * @param logType logType or {@code null} for none + */ + public AuditLogConfig setLogType(java.lang.String logType) { + this.logType = logType; + return this; + } + + @Override + public AuditLogConfig set(String fieldName, Object value) { + return (AuditLogConfig) super.set(fieldName, value); + } + + @Override + public AuditLogConfig clone() { + return (AuditLogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuthProvider.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuthProvider.java new file mode 100644 index 00000000000..72c4f86a838 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuthProvider.java @@ -0,0 +1,360 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message describing AuthProvider object + * + *

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 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 AuthProvider extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of scopes that are allowed to be requested for this auth_provider. If this list + * is non-empty, only scopes within this list may be requested. If this list is empty, all scopes + * may be requested. Scopes appearing in `blocked_scopes` are disallowed even if they appear in + * `allowed_scopes`. The number of allowed scopes is limited to 200. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedScopes; + + /** + * Required. AuthProvider type specific parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AuthProviderTypeParams authProviderTypeParams; + + /** + * Optional. List of scopes that are blocked from being requested for this auth_provider. If a + * scope appears in this list, it will not be requested, even if it also appears in + * `allowed_scopes`. `blocked_scopes` takes precedence over `allowed_scopes`. The number of + * blocked scopes is limited to 200. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List blockedScopes; + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. This is set to true if the auth_provider is deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean deleted; + + /** + * Optional. Description of the resource. Must be less than 256 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. The time when the auth_provider will expire. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The state of the auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Input only. Represents the workload identity in IAM `principal://` format of the + * agent(s) that will use this AuthProvider. Example: `principal://agents.global.org-${ORG_ID}.sys + * tem.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ + * ID}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List workloadIds; + + /** + * Optional. List of scopes that are allowed to be requested for this auth_provider. If this list + * is non-empty, only scopes within this list may be requested. If this list is empty, all scopes + * may be requested. Scopes appearing in `blocked_scopes` are disallowed even if they appear in + * `allowed_scopes`. The number of allowed scopes is limited to 200. + * @return value or {@code null} for none + */ + public java.util.List getAllowedScopes() { + return allowedScopes; + } + + /** + * Optional. List of scopes that are allowed to be requested for this auth_provider. If this list + * is non-empty, only scopes within this list may be requested. If this list is empty, all scopes + * may be requested. Scopes appearing in `blocked_scopes` are disallowed even if they appear in + * `allowed_scopes`. The number of allowed scopes is limited to 200. + * @param allowedScopes allowedScopes or {@code null} for none + */ + public AuthProvider setAllowedScopes(java.util.List allowedScopes) { + this.allowedScopes = allowedScopes; + return this; + } + + /** + * Required. AuthProvider type specific parameters. + * @return value or {@code null} for none + */ + public AuthProviderTypeParams getAuthProviderTypeParams() { + return authProviderTypeParams; + } + + /** + * Required. AuthProvider type specific parameters. + * @param authProviderTypeParams authProviderTypeParams or {@code null} for none + */ + public AuthProvider setAuthProviderTypeParams(AuthProviderTypeParams authProviderTypeParams) { + this.authProviderTypeParams = authProviderTypeParams; + return this; + } + + /** + * Optional. List of scopes that are blocked from being requested for this auth_provider. If a + * scope appears in this list, it will not be requested, even if it also appears in + * `allowed_scopes`. `blocked_scopes` takes precedence over `allowed_scopes`. The number of + * blocked scopes is limited to 200. + * @return value or {@code null} for none + */ + public java.util.List getBlockedScopes() { + return blockedScopes; + } + + /** + * Optional. List of scopes that are blocked from being requested for this auth_provider. If a + * scope appears in this list, it will not be requested, even if it also appears in + * `allowed_scopes`. `blocked_scopes` takes precedence over `allowed_scopes`. The number of + * blocked scopes is limited to 200. + * @param blockedScopes blockedScopes or {@code null} for none + */ + public AuthProvider setBlockedScopes(java.util.List blockedScopes) { + this.blockedScopes = blockedScopes; + return this; + } + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public AuthProvider setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. This is set to true if the auth_provider is deleted. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDeleted() { + return deleted; + } + + /** + * Output only. This is set to true if the auth_provider is deleted. + * @param deleted deleted or {@code null} for none + */ + public AuthProvider setDeleted(java.lang.Boolean deleted) { + this.deleted = deleted; + return this; + } + + /** + * Optional. Description of the resource. Must be less than 256 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the resource. Must be less than 256 characters. + * @param description description or {@code null} for none + */ + public AuthProvider setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. The time when the auth_provider will expire. + * @return value or {@code null} for none + */ + public String getExpireTime() { + return expireTime; + } + + /** + * Output only. The time when the auth_provider will expire. + * @param expireTime expireTime or {@code null} for none + */ + public AuthProvider setExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public AuthProvider setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The full resource name of the auth_provider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param name name or {@code null} for none + */ + public AuthProvider setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The state of the auth_provider. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the auth_provider. + * @param state state or {@code null} for none + */ + public AuthProvider setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public AuthProvider setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. Input only. Represents the workload identity in IAM `principal://` format of the + * agent(s) that will use this AuthProvider. Example: `principal://agents.global.org-${ORG_ID}.sys + * tem.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ + * ID}` + * @return value or {@code null} for none + */ + public java.util.List getWorkloadIds() { + return workloadIds; + } + + /** + * Optional. Input only. Represents the workload identity in IAM `principal://` format of the + * agent(s) that will use this AuthProvider. Example: `principal://agents.global.org-${ORG_ID}.sys + * tem.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ + * ID}` + * @param workloadIds workloadIds or {@code null} for none + */ + public AuthProvider setWorkloadIds(java.util.List workloadIds) { + this.workloadIds = workloadIds; + return this; + } + + @Override + public AuthProvider set(String fieldName, Object value) { + return (AuthProvider) super.set(fieldName, value); + } + + @Override + public AuthProvider clone() { + return (AuthProvider) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuthProviderTypeParams.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuthProviderTypeParams.java new file mode 100644 index 00000000000..86c26b1bd1b --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/AuthProviderTypeParams.java @@ -0,0 +1,138 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * AuthProvider type specific parameters. Required when creating an auth_provider. + * + *

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 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 AuthProviderTypeParams extends com.google.api.client.json.GenericJson { + + /** + * ApiKey AuthProvider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiKeyParams apiKey; + + /** + * GeminiEnterprise auth_provider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GeminiEnterpriseAuthProviderParams geAuthProvider; + + /** + * ThreeLeggedOAuth AuthProvider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ThreeLeggedOAuth threeLeggedOauth; + + /** + * TwoLeggedOAuth AuthProvider type parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TwoLeggedOAuth twoLeggedOauth; + + /** + * ApiKey AuthProvider type parameters. + * @return value or {@code null} for none + */ + public ApiKeyParams getApiKey() { + return apiKey; + } + + /** + * ApiKey AuthProvider type parameters. + * @param apiKey apiKey or {@code null} for none + */ + public AuthProviderTypeParams setApiKey(ApiKeyParams apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * GeminiEnterprise auth_provider type parameters. + * @return value or {@code null} for none + */ + public GeminiEnterpriseAuthProviderParams getGeAuthProvider() { + return geAuthProvider; + } + + /** + * GeminiEnterprise auth_provider type parameters. + * @param geAuthProvider geAuthProvider or {@code null} for none + */ + public AuthProviderTypeParams setGeAuthProvider(GeminiEnterpriseAuthProviderParams geAuthProvider) { + this.geAuthProvider = geAuthProvider; + return this; + } + + /** + * ThreeLeggedOAuth AuthProvider type parameters. + * @return value or {@code null} for none + */ + public ThreeLeggedOAuth getThreeLeggedOauth() { + return threeLeggedOauth; + } + + /** + * ThreeLeggedOAuth AuthProvider type parameters. + * @param threeLeggedOauth threeLeggedOauth or {@code null} for none + */ + public AuthProviderTypeParams setThreeLeggedOauth(ThreeLeggedOAuth threeLeggedOauth) { + this.threeLeggedOauth = threeLeggedOauth; + return this; + } + + /** + * TwoLeggedOAuth AuthProvider type parameters. + * @return value or {@code null} for none + */ + public TwoLeggedOAuth getTwoLeggedOauth() { + return twoLeggedOauth; + } + + /** + * TwoLeggedOAuth AuthProvider type parameters. + * @param twoLeggedOauth twoLeggedOauth or {@code null} for none + */ + public AuthProviderTypeParams setTwoLeggedOauth(TwoLeggedOAuth twoLeggedOauth) { + this.twoLeggedOauth = twoLeggedOauth; + return this; + } + + @Override + public AuthProviderTypeParams set(String fieldName, Object value) { + return (AuthProviderTypeParams) super.set(fieldName, value); + } + + @Override + public AuthProviderTypeParams clone() { + return (AuthProviderTypeParams) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Authorization.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Authorization.java new file mode 100644 index 00000000000..7104f6fcd50 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Authorization.java @@ -0,0 +1,189 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message describing Authorization object + * + *

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 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 Authorization extends com.google.api.client.json.GenericJson { + + /** + * Output only. The client_user_id provided by the client application for their end user. Not + * verified by Google. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientUserId; + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. name of resource + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The scopes actually granted by the end user during the consent flow. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Output only. The state of the authorization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The client_user_id provided by the client application for their end user. Not + * verified by Google. + * @return value or {@code null} for none + */ + public java.lang.String getClientUserId() { + return clientUserId; + } + + /** + * Output only. The client_user_id provided by the client application for their end user. Not + * verified by Google. + * @param clientUserId clientUserId or {@code null} for none + */ + public Authorization setClientUserId(java.lang.String clientUserId) { + this.clientUserId = clientUserId; + return this; + } + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public Authorization setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. name of resource + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. name of resource + * @param name name or {@code null} for none + */ + public Authorization setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The scopes actually granted by the end user during the consent flow. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Output only. The scopes actually granted by the end user during the consent flow. + * @param scopes scopes or {@code null} for none + */ + public Authorization setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Output only. The state of the authorization. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the authorization. + * @param state state or {@code null} for none + */ + public Authorization setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public Authorization setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Authorization set(String fieldName, Object value) { + return (Authorization) super.set(fieldName, value); + } + + @Override + public Authorization clone() { + return (Authorization) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Binding.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Binding.java new file mode 100644 index 00000000000..8c7d4d716ea --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Binding.java @@ -0,0 +1,270 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Associates `members`, or principals, with a `role`. + * + *

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 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 Binding extends com.google.api.client.json.GenericJson { + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Expr condition; + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List members; + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public Expr getCondition() { + return condition; + } + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param condition condition or {@code null} for none + */ + public Binding setCondition(Expr condition) { + this.condition = condition; + return this; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * @return value or {@code null} for none + */ + public java.util.List getMembers() { + return members; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * @param members members or {@code null} for none + */ + public Binding setMembers(java.util.List members) { + this.members = members; + return this; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @param role role or {@code null} for none + */ + public Binding setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public Binding set(String fieldName, Object value) { + return (Binding) super.set(fieldName, value); + } + + @Override + public Binding clone() { + return (Binding) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/DisableAuthProviderRequest.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/DisableAuthProviderRequest.java new file mode 100644 index 00000000000..e027dd66c94 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/DisableAuthProviderRequest.java @@ -0,0 +1,78 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message for disabling an AuthProvider + * + *

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 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 DisableAuthProviderRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public DisableAuthProviderRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DisableAuthProviderRequest set(String fieldName, Object value) { + return (DisableAuthProviderRequest) super.set(fieldName, value); + } + + @Override + public DisableAuthProviderRequest clone() { + return (DisableAuthProviderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Empty.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Empty.java new file mode 100644 index 00000000000..7f3e4af92d6 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Empty.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.agentidentity.v1beta.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.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 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 Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/EnableAuthProviderRequest.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/EnableAuthProviderRequest.java new file mode 100644 index 00000000000..d869ec8626f --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/EnableAuthProviderRequest.java @@ -0,0 +1,78 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message for enabling an AuthProvider + * + *

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 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 EnableAuthProviderRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public EnableAuthProviderRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public EnableAuthProviderRequest set(String fieldName, Object value) { + return (EnableAuthProviderRequest) super.set(fieldName, value); + } + + @Override + public EnableAuthProviderRequest clone() { + return (EnableAuthProviderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Expr.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Expr.java new file mode 100644 index 00000000000..42e31c01a0e --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Expr.java @@ -0,0 +1,159 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like + * expression language. The syntax and semantics of CEL are documented at + * https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" + * description: "Determines if a summary is less than 100 chars" expression: + * "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: + * "Determines if requestor is the document owner" expression: "document.owner == + * request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine + * whether the document should be publicly visible" expression: "document.type != 'private' && + * document.type != 'internal'" Example (Data Manipulation): title: "Notification string" + * description: "Create a notification string with a timestamp." expression: "'New message received + * at ' + string(document.create_time)" The exact variables and functions that may be referenced + * within an expression are determined by the service that evaluates it. See the service + * documentation for additional information. + * + *

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 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 Expr extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Textual representation of an expression in Common Expression Language syntax. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @param description description or {@code null} for none + */ + public Expr setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @param expression expression or {@code null} for none + */ + public Expr setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @param location location or {@code null} for none + */ + public Expr setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @param title title or {@code null} for none + */ + public Expr setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public Expr set(String fieldName, Object value) { + return (Expr) super.set(fieldName, value); + } + + @Override + public Expr clone() { + return (Expr) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/GeminiEnterpriseAuthProviderParams.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/GeminiEnterpriseAuthProviderParams.java new file mode 100644 index 00000000000..3c684e8beb4 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/GeminiEnterpriseAuthProviderParams.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.agentidentity.v1beta.model; + +/** + * Message describing GeminiEnterpriseAuthProviderParams object. + * + *

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 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 GeminiEnterpriseAuthProviderParams extends com.google.api.client.json.GenericJson { + + @Override + public GeminiEnterpriseAuthProviderParams set(String fieldName, Object value) { + return (GeminiEnterpriseAuthProviderParams) super.set(fieldName, value); + } + + @Override + public GeminiEnterpriseAuthProviderParams clone() { + return (GeminiEnterpriseAuthProviderParams) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListAccessSummariesResponse.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListAccessSummariesResponse.java new file mode 100644 index 00000000000..200440dbd3f --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListAccessSummariesResponse.java @@ -0,0 +1,120 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message for response to listing AccessSummaries + * + *

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 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 ListAccessSummariesResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of AccessSummary + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accessSummaries; + + static { + // hack to force ProGuard to consider AccessSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AccessSummary.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of AccessSummary + * @return value or {@code null} for none + */ + public java.util.List getAccessSummaries() { + return accessSummaries; + } + + /** + * The list of AccessSummary + * @param accessSummaries accessSummaries or {@code null} for none + */ + public ListAccessSummariesResponse setAccessSummaries(java.util.List accessSummaries) { + this.accessSummaries = accessSummaries; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAccessSummariesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAccessSummariesResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAccessSummariesResponse set(String fieldName, Object value) { + return (ListAccessSummariesResponse) super.set(fieldName, value); + } + + @Override + public ListAccessSummariesResponse clone() { + return (ListAccessSummariesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListAuthProvidersResponse.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListAuthProvidersResponse.java new file mode 100644 index 00000000000..8ee64165564 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListAuthProvidersResponse.java @@ -0,0 +1,120 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message for response to listing AuthProviders + * + *

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 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 ListAuthProvidersResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of AuthProvider + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authProviders; + + static { + // hack to force ProGuard to consider AuthProvider used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AuthProvider.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of AuthProvider + * @return value or {@code null} for none + */ + public java.util.List getAuthProviders() { + return authProviders; + } + + /** + * The list of AuthProvider + * @param authProviders authProviders or {@code null} for none + */ + public ListAuthProvidersResponse setAuthProviders(java.util.List authProviders) { + this.authProviders = authProviders; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAuthProvidersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAuthProvidersResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAuthProvidersResponse set(String fieldName, Object value) { + return (ListAuthProvidersResponse) super.set(fieldName, value); + } + + @Override + public ListAuthProvidersResponse clone() { + return (ListAuthProvidersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListAuthorizationsResponse.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListAuthorizationsResponse.java new file mode 100644 index 00000000000..519f334a7e6 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListAuthorizationsResponse.java @@ -0,0 +1,120 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message for response to listing Authorizations + * + *

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 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 ListAuthorizationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of Authorization + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authorizations; + + static { + // hack to force ProGuard to consider Authorization used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Authorization.class); + } + + /** + * A token identifying a page of results the server should return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of Authorization + * @return value or {@code null} for none + */ + public java.util.List getAuthorizations() { + return authorizations; + } + + /** + * The list of Authorization + * @param authorizations authorizations or {@code null} for none + */ + public ListAuthorizationsResponse setAuthorizations(java.util.List authorizations) { + this.authorizations = authorizations; + return this; + } + + /** + * A token identifying a page of results the server should return. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAuthorizationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAuthorizationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAuthorizationsResponse set(String fieldName, Object value) { + return (ListAuthorizationsResponse) super.set(fieldName, value); + } + + @Override + public ListAuthorizationsResponse clone() { + return (ListAuthorizationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListLocationsResponse.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListLocationsResponse.java new file mode 100644 index 00000000000..178a484e07b --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ListLocationsResponse.java @@ -0,0 +1,90 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * The response message for Locations.ListLocations. + * + *

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 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 ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of locations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of locations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Location.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Location.java new file mode 100644 index 00000000000..ac214e1e94d --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Location.java @@ -0,0 +1,168 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * A resource that represents a Google Cloud location. + * + *

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 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 Location extends com.google.api.client.json.GenericJson { + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The canonical id for this location. For example: `"us-east1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationId; + + /** + * Service-specific metadata. For example the available capacity at the given location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @param displayName displayName or {@code null} for none + */ + public Location setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @return value or {@code null} for none + */ + public java.lang.String getLocationId() { + return locationId; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @param locationId locationId or {@code null} for none + */ + public Location setLocationId(java.lang.String locationId) { + this.locationId = locationId; + return this; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Policy.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Policy.java new file mode 100644 index 00000000000..11aa22fdb82 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/Policy.java @@ -0,0 +1,291 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud + * resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or + * principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, + * and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM + * predefined role or a user-created custom role. For some types of Google Cloud resources, a + * `binding` can also specify a `condition`, which is a logical expression that allows access to a + * resource only if the expression evaluates to `true`. A condition can add constraints based on + * attributes of the request, the resource, or both. To learn which resources support conditions in + * their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** + * ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ + * "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my- + * project-id@appspot.gserviceaccount.com" ] }, { "role": + * "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { + * "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": + * "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": + * 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - serviceAccount:my-project- + * id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - + * user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable + * access description: Does not grant access after Sep 2020 expression: request.time < + * timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM + * and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + * + *

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 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 Policy extends com.google.api.client.json.GenericJson { + + /** + * Specifies cloud audit logging configuration for this policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List auditConfigs; + + static { + // hack to force ProGuard to consider AuditConfig used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AuditConfig.class); + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bindings; + + static { + // hack to force ProGuard to consider Binding used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Binding.class); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer version; + + /** + * Specifies cloud audit logging configuration for this policy. + * @return value or {@code null} for none + */ + public java.util.List getAuditConfigs() { + return auditConfigs; + } + + /** + * Specifies cloud audit logging configuration for this policy. + * @param auditConfigs auditConfigs or {@code null} for none + */ + public Policy setAuditConfigs(java.util.List auditConfigs) { + this.auditConfigs = auditConfigs; + return this; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * @param bindings bindings or {@code null} for none + */ + public Policy setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public Policy setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **Important:** If you use IAM Conditions, you must include + * the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + * to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the + * version `3` policy are lost. + * @see #setEtag() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Policy encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public java.lang.Integer getVersion() { + return version; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param version version or {@code null} for none + */ + public Policy setVersion(java.lang.Integer version) { + this.version = version; + return this; + } + + @Override + public Policy set(String fieldName, Object value) { + return (Policy) super.set(fieldName, value); + } + + @Override + public Policy clone() { + return (Policy) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/QueryAuthProvidersResponse.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/QueryAuthProvidersResponse.java new file mode 100644 index 00000000000..450323daef0 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/QueryAuthProvidersResponse.java @@ -0,0 +1,93 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Response message for QueryAuthProviders. + * + *

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 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 QueryAuthProvidersResponse extends com.google.api.client.json.GenericJson { + + /** + * The unique list of auth_provider resource names used by the workload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authProviderNames; + + /** + * A token identifying a page of results the server should return. If this field is omitted, there + * are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The unique list of auth_provider resource names used by the workload. + * @return value or {@code null} for none + */ + public java.util.List getAuthProviderNames() { + return authProviderNames; + } + + /** + * The unique list of auth_provider resource names used by the workload. + * @param authProviderNames authProviderNames or {@code null} for none + */ + public QueryAuthProvidersResponse setAuthProviderNames(java.util.List authProviderNames) { + this.authProviderNames = authProviderNames; + return this; + } + + /** + * A token identifying a page of results the server should return. If this field is omitted, there + * are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token identifying a page of results the server should return. If this field is omitted, there + * are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public QueryAuthProvidersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public QueryAuthProvidersResponse set(String fieldName, Object value) { + return (QueryAuthProvidersResponse) super.set(fieldName, value); + } + + @Override + public QueryAuthProvidersResponse clone() { + return (QueryAuthProvidersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/QueryWorkloadsResponse.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/QueryWorkloadsResponse.java new file mode 100644 index 00000000000..6bac9cea721 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/QueryWorkloadsResponse.java @@ -0,0 +1,90 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Response message for QueryWorkloads. + * + *

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 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 QueryWorkloadsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The unique list of workload identifiers (agents) that used the auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List workloadIds; + + /** + * A token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public QueryWorkloadsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The unique list of workload identifiers (agents) that used the auth_provider. + * @return value or {@code null} for none + */ + public java.util.List getWorkloadIds() { + return workloadIds; + } + + /** + * The unique list of workload identifiers (agents) that used the auth_provider. + * @param workloadIds workloadIds or {@code null} for none + */ + public QueryWorkloadsResponse setWorkloadIds(java.util.List workloadIds) { + this.workloadIds = workloadIds; + return this; + } + + @Override + public QueryWorkloadsResponse set(String fieldName, Object value) { + return (QueryWorkloadsResponse) super.set(fieldName, value); + } + + @Override + public QueryWorkloadsResponse clone() { + return (QueryWorkloadsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/RevokeAuthorizationRequest.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/RevokeAuthorizationRequest.java new file mode 100644 index 00000000000..eb13e2f9ef5 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/RevokeAuthorizationRequest.java @@ -0,0 +1,66 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Request message for RevokeAuthorization. + * + *

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 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 RevokeAuthorizationRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The identity of the user to revoke authorization for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Required. The identity of the user to revoke authorization for. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Required. The identity of the user to revoke authorization for. + * @param userId userId or {@code null} for none + */ + public RevokeAuthorizationRequest setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + @Override + public RevokeAuthorizationRequest set(String fieldName, Object value) { + return (RevokeAuthorizationRequest) super.set(fieldName, value); + } + + @Override + public RevokeAuthorizationRequest clone() { + return (RevokeAuthorizationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/RevokeAuthorizationResponse.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/RevokeAuthorizationResponse.java new file mode 100644 index 00000000000..10854289751 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/RevokeAuthorizationResponse.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.agentidentity.v1beta.model; + +/** + * Response message for RevokeAuthorization. + * + *

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 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 RevokeAuthorizationResponse extends com.google.api.client.json.GenericJson { + + @Override + public RevokeAuthorizationResponse set(String fieldName, Object value) { + return (RevokeAuthorizationResponse) super.set(fieldName, value); + } + + @Override + public RevokeAuthorizationResponse clone() { + return (RevokeAuthorizationResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/SetIamPolicyRequest.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/SetIamPolicyRequest.java new file mode 100644 index 00000000000..222d75af307 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/SetIamPolicyRequest.java @@ -0,0 +1,102 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Request message for `SetIamPolicy` method. + * + *

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 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 SetIamPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Policy policy; + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the + * mask will be modified. If no mask is provided, the following default mask is used: `paths: + * "bindings, etag"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @return value or {@code null} for none + */ + public Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public SetIamPolicyRequest setPolicy(Policy policy) { + this.policy = policy; + return this; + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the + * mask will be modified. If no mask is provided, the following default mask is used: `paths: + * "bindings, etag"` + * @return value or {@code null} for none + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the + * mask will be modified. If no mask is provided, the following default mask is used: `paths: + * "bindings, etag"` + * @param updateMask updateMask or {@code null} for none + */ + public SetIamPolicyRequest setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public SetIamPolicyRequest set(String fieldName, Object value) { + return (SetIamPolicyRequest) super.set(fieldName, value); + } + + @Override + public SetIamPolicyRequest clone() { + return (SetIamPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/TestIamPermissionsRequest.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/TestIamPermissionsRequest.java new file mode 100644 index 00000000000..fcfcc25ae77 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/TestIamPermissionsRequest.java @@ -0,0 +1,72 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Request message for `TestIamPermissions` method. + * + *

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 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 TestIamPermissionsRequest extends com.google.api.client.json.GenericJson { + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + * `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + * `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or + * `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param permissions permissions or {@code null} for none + */ + public TestIamPermissionsRequest setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestIamPermissionsRequest set(String fieldName, Object value) { + return (TestIamPermissionsRequest) super.set(fieldName, value); + } + + @Override + public TestIamPermissionsRequest clone() { + return (TestIamPermissionsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/TestIamPermissionsResponse.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/TestIamPermissionsResponse.java new file mode 100644 index 00000000000..b00279967dc --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/TestIamPermissionsResponse.java @@ -0,0 +1,66 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Response message for `TestIamPermissions` method. + * + *

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 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 TestIamPermissionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * @param permissions permissions or {@code null} for none + */ + public TestIamPermissionsResponse setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestIamPermissionsResponse set(String fieldName, Object value) { + return (TestIamPermissionsResponse) super.set(fieldName, value); + } + + @Override + public TestIamPermissionsResponse clone() { + return (TestIamPermissionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ThreeLeggedOAuth.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ThreeLeggedOAuth.java new file mode 100644 index 00000000000..dc2f6635db2 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/ThreeLeggedOAuth.java @@ -0,0 +1,225 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message describing ThreeLeggedOAuth object. + * + *

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 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 ThreeLeggedOAuth extends com.google.api.client.json.GenericJson { + + /** + * Optional. The authorization endpoint to send users to for consenting to delegate to the agent. + * eg. "https://auth.atlassian.com/authorize" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authorizationUrl; + + /** + * Optional. The client ID of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * Optional. Input only. The client secret of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientSecret; + + /** + * Optional. The default continue URI for 3LO flow and it will be used when no continue URI is + * provided in the RetrieveCredentials request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultContinueUri; + + /** + * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent + * authorization code interception attacks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enablePkce; + + /** + * Output only. The redirect URL this auth_provider uses for the OAuth exchange. This is + * deterministic based on the name of the auth_provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String redirectUrl; + + /** + * Optional. The token endpoint for requesting tokens on behalf of an end user. eg. + * "https://auth.atlassian.com/oauth/token" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenUrl; + + /** + * Optional. The authorization endpoint to send users to for consenting to delegate to the agent. + * eg. "https://auth.atlassian.com/authorize" + * @return value or {@code null} for none + */ + public java.lang.String getAuthorizationUrl() { + return authorizationUrl; + } + + /** + * Optional. The authorization endpoint to send users to for consenting to delegate to the agent. + * eg. "https://auth.atlassian.com/authorize" + * @param authorizationUrl authorizationUrl or {@code null} for none + */ + public ThreeLeggedOAuth setAuthorizationUrl(java.lang.String authorizationUrl) { + this.authorizationUrl = authorizationUrl; + return this; + } + + /** + * Optional. The client ID of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * Optional. The client ID of the OAuth client. + * @param clientId clientId or {@code null} for none + */ + public ThreeLeggedOAuth setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientSecret() { + return clientSecret; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @param clientSecret clientSecret or {@code null} for none + */ + public ThreeLeggedOAuth setClientSecret(java.lang.String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Optional. The default continue URI for 3LO flow and it will be used when no continue URI is + * provided in the RetrieveCredentials request. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultContinueUri() { + return defaultContinueUri; + } + + /** + * Optional. The default continue URI for 3LO flow and it will be used when no continue URI is + * provided in the RetrieveCredentials request. + * @param defaultContinueUri defaultContinueUri or {@code null} for none + */ + public ThreeLeggedOAuth setDefaultContinueUri(java.lang.String defaultContinueUri) { + this.defaultContinueUri = defaultContinueUri; + return this; + } + + /** + * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent + * authorization code interception attacks. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnablePkce() { + return enablePkce; + } + + /** + * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent + * authorization code interception attacks. + * @param enablePkce enablePkce or {@code null} for none + */ + public ThreeLeggedOAuth setEnablePkce(java.lang.Boolean enablePkce) { + this.enablePkce = enablePkce; + return this; + } + + /** + * Output only. The redirect URL this auth_provider uses for the OAuth exchange. This is + * deterministic based on the name of the auth_provider. + * @return value or {@code null} for none + */ + public java.lang.String getRedirectUrl() { + return redirectUrl; + } + + /** + * Output only. The redirect URL this auth_provider uses for the OAuth exchange. This is + * deterministic based on the name of the auth_provider. + * @param redirectUrl redirectUrl or {@code null} for none + */ + public ThreeLeggedOAuth setRedirectUrl(java.lang.String redirectUrl) { + this.redirectUrl = redirectUrl; + return this; + } + + /** + * Optional. The token endpoint for requesting tokens on behalf of an end user. eg. + * "https://auth.atlassian.com/oauth/token" + * @return value or {@code null} for none + */ + public java.lang.String getTokenUrl() { + return tokenUrl; + } + + /** + * Optional. The token endpoint for requesting tokens on behalf of an end user. eg. + * "https://auth.atlassian.com/oauth/token" + * @param tokenUrl tokenUrl or {@code null} for none + */ + public ThreeLeggedOAuth setTokenUrl(java.lang.String tokenUrl) { + this.tokenUrl = tokenUrl; + return this; + } + + @Override + public ThreeLeggedOAuth set(String fieldName, Object value) { + return (ThreeLeggedOAuth) super.set(fieldName, value); + } + + @Override + public ThreeLeggedOAuth clone() { + return (ThreeLeggedOAuth) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/TwoLeggedOAuth.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/TwoLeggedOAuth.java new file mode 100644 index 00000000000..221a4f91604 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/TwoLeggedOAuth.java @@ -0,0 +1,114 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message describing TwoLeggedOAuth object. + * + *

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 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 TwoLeggedOAuth extends com.google.api.client.json.GenericJson { + + /** + * Optional. The client ID of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * Optional. Input only. The client secret of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientSecret; + + /** + * Optional. The token endpoint of the OAuth client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenUrl; + + /** + * Optional. The client ID of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * Optional. The client ID of the OAuth client. + * @param clientId clientId or {@code null} for none + */ + public TwoLeggedOAuth setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getClientSecret() { + return clientSecret; + } + + /** + * Optional. Input only. The client secret of the OAuth client. + * @param clientSecret clientSecret or {@code null} for none + */ + public TwoLeggedOAuth setClientSecret(java.lang.String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Optional. The token endpoint of the OAuth client. + * @return value or {@code null} for none + */ + public java.lang.String getTokenUrl() { + return tokenUrl; + } + + /** + * Optional. The token endpoint of the OAuth client. + * @param tokenUrl tokenUrl or {@code null} for none + */ + public TwoLeggedOAuth setTokenUrl(java.lang.String tokenUrl) { + this.tokenUrl = tokenUrl; + return this; + } + + @Override + public TwoLeggedOAuth set(String fieldName, Object value) { + return (TwoLeggedOAuth) super.set(fieldName, value); + } + + @Override + public TwoLeggedOAuth clone() { + return (TwoLeggedOAuth) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/UndeleteAuthProviderRequest.java b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/UndeleteAuthProviderRequest.java new file mode 100644 index 00000000000..98209fc39c0 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/com/google/api/services/agentidentity/v1beta/model/UndeleteAuthProviderRequest.java @@ -0,0 +1,78 @@ +/* + * 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.agentidentity.v1beta.model; + +/** + * Message for undeleting a AuthProvider + * + *

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 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 UndeleteAuthProviderRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @return value or {@code null} for none + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so that if + * you must retry your request, the server will know to ignore the request if it has already been + * completed. The server will guarantee that for at least 60 minutes after the first request. The + * request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param requestId requestId or {@code null} for none + */ + public UndeleteAuthProviderRequest setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UndeleteAuthProviderRequest set(String fieldName, Object value) { + return (UndeleteAuthProviderRequest) super.set(fieldName, value); + } + + @Override + public UndeleteAuthProviderRequest clone() { + return (UndeleteAuthProviderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-agentidentity/v1beta/2.0.0/pom.xml b/clients/google-api-services-agentidentity/v1beta/2.0.0/pom.xml new file mode 100644 index 00000000000..e20ef1e4906 --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-agentidentity + v1beta-rev20260722-2.0.0 + Agent Identity API v1beta-rev20260722-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.agentidentity + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Agent Identity API ${project.version} + Agent Identity API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-agentidentity/v1beta/README.md b/clients/google-api-services-agentidentity/v1beta/README.md new file mode 100644 index 00000000000..e8c9fb2a98d --- /dev/null +++ b/clients/google-api-services-agentidentity/v1beta/README.md @@ -0,0 +1,44 @@ +# Agent Identity API Client Library for Java + + + +This page contains information about getting started with the Agent Identity 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 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 API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-agentidentity + v1beta-rev20260722-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-agentidentity:v1beta-rev20260722-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-agentidentity/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/agentidentity/v1/