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
+
+ * + *
+ * + *+ * 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: + *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+ * {@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+ * {@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.ListThe 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+ * {@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+ * {@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{@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{@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{@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{@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+ * {@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{@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+ * {@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{@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{@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{@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{@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{@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{@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{@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{@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+ * {@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+ * {@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: + *+ * 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.SetThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.MapThis 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.MapThis 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+ * 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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 @@ ++ * + *
+ * + *+ * 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: + *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+ * {@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+ * {@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.ListThe 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+ * {@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+ * {@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{@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{@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{@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{@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+ * {@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{@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+ * {@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{@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{@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{@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{@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{@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{@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{@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{@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+ * {@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+ * {@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: + *+ * 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.SetThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.MapThis 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.MapThis 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+ * 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Identity 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 @@ ++ * + *
+ * + *+ * 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: + *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+ * {@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+ * {@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.ListThe 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+ * {@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+ * {@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{@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{@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{@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