diff --git a/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManager.java b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManager.java new file mode 100644 index 00000000000..913acf08d38 --- /dev/null +++ b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManager.java @@ -0,0 +1,3351 @@ +/* + * 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.accesscontextmanager.v1; + +/** + * Service definition for AccessContextManager (v1). + * + *
+ * An API for setting attribute based access control to requests to GCP services. + *
+ * + *+ * For more information about this service, see the + * API Documentation + *
+ * + *+ * This service uses {@link AccessContextManagerRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *
+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AccessContextManager 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 >= 15, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.15 of google-api-client to run version " + + "1.26.0 of the Access Context Manager 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://accesscontextmanager.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 AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.AccessPolicies.List request = accesscontextmanager.accessPolicies().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AccessPolicies accessPolicies() {
+ return new AccessPolicies();
+ }
+
+ /**
+ * The "accessPolicies" collection of methods.
+ */
+ public class AccessPolicies {
+
+ /**
+ * Create an `AccessPolicy`. Fails if this organization already has a `AccessPolicy`. The
+ * longrunning Operation will have a successful status once the `AccessPolicy` has propagated to
+ * long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a
+ * BadRequest proto.
+ *
+ * Create a request for the method "accessPolicies.create".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy}
+ * @return the request
+ */
+ public Create create(com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) throws java.io.IOException {
+ Create result = new Create(content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AccessContextManagerRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy} + * @since 1.13 + */ + protected Create(com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.class); + } + + @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); + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete an AccessPolicy by resource name. The longrunning Operation will have a successful status + * once the AccessPolicy has been removed from long-lasting storage. + * + * Create a request for the method "accessPolicies.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the access policy to delete. + Format `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to delete. + Format `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to delete. + * + * Format `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the access policy to delete. + + Format `accessPolicies/{policy_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the access policy to delete. + * + * Format `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get an AccessPolicy by name. + * + * Create a request for the method "accessPolicies.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the access policy to get. + Format `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to get. + Format `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.AccessPolicy.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to get. + * + * Format `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the access policy to get. + + Format `accessPolicies/{policy_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the access policy to get. + * + * Format `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List all AccessPolicies under a container. + * + * Create a request for the method "accessPolicies.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends AccessContextManagerRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @since 1.13 + */ + protected List() { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListAccessPoliciesResponse.class); + } + + @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); + } + + /** Number of AccessPolicy instances to include in the list. Default 100. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Number of AccessPolicy instances to include in the list. Default 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Number of AccessPolicy instances to include in the list. Default 100. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Next page token for the next batch of AccessPolicy instances. Defaults to the first page of + * results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Next page token for the next batch of AccessPolicy instances. Defaults to the first page of + results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Next page token for the next batch of AccessPolicy instances. Defaults to the first page of + * results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Required. Resource name for the container to list AccessPolicy instances from. + * + * Format: `organizations/{org_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the container to list AccessPolicy instances from. + + Format: `organizations/{org_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the container to list AccessPolicy instances from. + * + * Format: `organizations/{org_id}` + */ + public List setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Update an AccessPolicy. The longrunning Operation from this RPC will have a successful status + * once the changes to the AccessPolicy have propagated to long-lasting storage. Syntactic and basic + * semantic errors will be returned in `metadata` as a BadRequest proto. + * + * Create a request for the method "accessPolicies.patch". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Output only. Resource name of the `AccessPolicy`. Format: + `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AccessContextManagerRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Output only. Resource name of the `AccessPolicy`. Format: + `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) { + super(AccessContextManager.this, "PATCH", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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); + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask to control which fields get updated. Must be non-empty. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the AccessLevels collection. + * + *The typical use is:
+ *
+ * {@code AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.AccessLevels.List request = accesscontextmanager.accessLevels().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AccessLevels accessLevels() {
+ return new AccessLevels();
+ }
+
+ /**
+ * The "accessLevels" collection of methods.
+ */
+ public class AccessLevels {
+
+ /**
+ * Create an Access Level. The longrunning operation from this RPC will have a successful status
+ * once the Access Level has propagated to long-lasting storage. Access Levels containing errors
+ * will result in an error response for the first error encountered.
+ *
+ * Create a request for the method "accessLevels.create".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. Resource name for the access policy which owns this Access
+ Level.
+ Format:
+ * `accessPolicies/{policy_id}`
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AccessContextManagerRequest{@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. Resource name for the access policy which owns this Access + Level. + Format: + * `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy which owns this Access Level. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy which owns this Access Level. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy which owns this Access Level. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete an Access Level by resource name. The longrunning operation from this RPC will have a + * successful status once the Access Level has been removed from long-lasting storage. + * + * Create a request for the method "accessLevels.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + } + + @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. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Access Level. + + Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + 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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get an Access Level by resource name. + * + * Create a request for the method "accessLevels.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.AccessLevel.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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + } + + @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. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Access Level. + + Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + 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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as + * `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` + * or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are + * returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent + * `CustomLevels`. + */ + @com.google.api.client.util.Key + private java.lang.String accessLevelFormat; + + /** Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as + `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` or + `CustomLevels` based on how they were created. If set to CEL, all Access Levels are returned as + `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent `CustomLevels`. + */ + public java.lang.String getAccessLevelFormat() { + return accessLevelFormat; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as + * `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` + * or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are + * returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent + * `CustomLevels`. + */ + public Get setAccessLevelFormat(java.lang.String accessLevelFormat) { + this.accessLevelFormat = accessLevelFormat; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List all Access Levels for an access policy. + * + * Create a request for the method "accessLevels.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Resource name for the access policy to list Access Levels from. + Format: + * `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to list Access Levels from. + Format: + * `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListAccessLevelsResponse.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to list Access Levels from. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy to list Access Levels from. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy to list Access Levels from. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression language, as + * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the + * format they were defined. + */ + @com.google.api.client.util.Key + private java.lang.String accessLevelFormat; + + /** Whether to return `BasicLevels` in the Cloud Common Expression language, as `CustomLevels`, rather + than as `BasicLevels`. Defaults to returning `AccessLevels` in the format they were defined. + */ + public java.lang.String getAccessLevelFormat() { + return accessLevelFormat; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression language, as + * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the + * format they were defined. + */ + public List setAccessLevelFormat(java.lang.String accessLevelFormat) { + this.accessLevelFormat = accessLevelFormat; + return this; + } + + /** + * Number of Access Levels to include in the list. Default 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Number of Access Levels to include in the list. Default 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Number of Access Levels to include in the list. Default 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Next page token for the next batch of Access Level instances. Defaults to the first page + * of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Next page token for the next batch of Access Level instances. Defaults to the first page of + results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Next page token for the next batch of Access Level instances. Defaults to the first page + * of results. + */ + 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); + } + } + /** + * Update an Access Level. The longrunning operation from this RPC will have a successful status + * once the changes to the Access Level have propagated to long-lasting storage. Access Levels + * containing errors will result in an error response for the first error encountered. + * + * Create a request for the method "accessLevels.patch". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Access Level. The `short_name` component + must begin with a letter + * and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AccessContextManagerRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Resource name for the Access Level. The `short_name` component + must begin with a letter + * and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) { + super(AccessContextManager.this, "PATCH", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + } + + @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); + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with + * a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Access Level. The `short_name` component must begin with a letter + and only include alphanumeric and '_'. Format: + `accessPolicies/{policy_id}/accessLevels/{short_name}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with + * a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + */ + 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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask to control which fields get updated. Must be non-empty. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the ServicePerimeters collection. + * + *The typical use is:
+ *
+ * {@code AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.ServicePerimeters.List request = accesscontextmanager.servicePerimeters().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public ServicePerimeters servicePerimeters() {
+ return new ServicePerimeters();
+ }
+
+ /**
+ * The "servicePerimeters" collection of methods.
+ */
+ public class ServicePerimeters {
+
+ /**
+ * Create an Service Perimeter. The longrunning operation from this RPC will have a successful
+ * status once the Service Perimeter has propagated to long-lasting storage. Service Perimeters
+ * containing errors will result in an error response for the first error encountered.
+ *
+ * Create a request for the method "servicePerimeters.create".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. Resource name for the access policy which owns this Service
+ Perimeter.
+ Format:
+ * `accessPolicies/{policy_id}`
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AccessContextManagerRequest{@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. Resource name for the access policy which owns this Service + Perimeter. + Format: + * `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy which owns this Service Perimeter. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy which owns this Service Perimeter. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy which owns this Service Perimeter. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete an Service Perimeter by resource name. The longrunning operation from this RPC will have a + * successful status once the Service Perimeter has been removed from long-lasting storage. + * + * Create a request for the method "servicePerimeters.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + } + + @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. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Service Perimeter. + + Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + */ + 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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get an Service Perimeter by resource name. + * + * Create a request for the method "servicePerimeters.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter.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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + } + + @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. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Service Perimeter. + + Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + */ + 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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List all Service Perimeters for an access policy. + * + * Create a request for the method "servicePerimeters.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Resource name for the access policy to list Service Perimeters from. + Format: + * `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to list Service Perimeters from. + Format: + * `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListServicePerimetersResponse.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to list Service Perimeters from. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy to list Service Perimeters from. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy to list Service Perimeters from. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Number of Service Perimeters to include in the list. Default 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Number of Service Perimeters to include in the list. Default 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Number of Service Perimeters to include in the list. Default 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Next page token for the next batch of Service Perimeter instances. Defaults to the first + * page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Next page token for the next batch of Service Perimeter instances. Defaults to the first page of + results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Next page token for the next batch of Service Perimeter instances. Defaults to the first + * page of results. + */ + 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); + } + } + /** + * Update an Service Perimeter. The longrunning operation from this RPC will have a successful + * status once the changes to the Service Perimeter have propagated to long-lasting storage. Service + * Perimeter containing errors will result in an error response for the first error encountered. + * + * Create a request for the method "servicePerimeters.patch". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the ServicePerimeter. The `short_name` + component must begin with a + * letter and only include alphanumeric and '_'. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AccessContextManagerRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Resource name for the ServicePerimeter. The `short_name` + component must begin with a + * letter and only include alphanumeric and '_'. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) { + super(AccessContextManager.this, "PATCH", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + } + + @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); + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin + * with a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a + letter and only include alphanumeric and '_'. Format: + `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin + * with a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + */ + 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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask to control which fields get updated. Must be non-empty. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *
+ * {@code AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.Operations.List request = accesscontextmanager.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest}
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends AccessContextManagerRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.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 " + + "^operations/.+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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 " + + "^operations/.+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AccessContextManagerRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.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 " + + "^operations/.+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + 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 " + + "^operations/.+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation 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 AccessContextManagerRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^operations/.+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation 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 " + + "^operations/.+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use different resource + * name schemes, such as `users/operations`. To override the binding, API services can add a binding + * such as `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, however overriding users + * must ensure the name binding is the parent resource, without the operations collection id. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @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 AccessContextManagerRequest{@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 name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListOperationsResponse.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 " + + "^operations$"); + } + } + + @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 name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + 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 " + + "^operations$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list 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 AccessContextManager}. + * + *+ * Implementation is not thread-safe. + *
+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + /** + * 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 AccessContextManagerRequestInitializer(KEY); + *+ * + *
+ * There is also a constructor to set both the key and userIp parameters: + *
+ * + *+ public static final GoogleClientRequestInitializer INITIALIZER = + new AccessContextManagerRequestInitializer(KEY, USER_IP); + *+ * + *
+ * If you want to implement custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer extends AccessContextManagerRequestInitializer {
+
+ {@literal @}Override
+ public void initializeAccessContextManagerRequest(AccessContextManagerRequest{@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 AccessContextManagerRequestInitializer {
+
+ public MyKeyRequestInitializer() {
+ super(KEY, USER_IP);
+ }
+
+ {@literal @}Override
+ public void initializeAccessContextManagerRequest(AccessContextManagerRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Subclasses should be thread-safe. + *
+ * + * @since 1.12 + */ +public class AccessContextManagerRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AccessContextManagerRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AccessContextManagerRequestInitializer(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 AccessContextManagerRequestInitializer(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); + initializeAccessContextManagerRequest((AccessContextManagerRequest>) request); + } + + /** + * Initializes AccessContextManager 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 initializeAccessContextManagerRequest(AccessContextManagerRequest> request) throws java.io.IOException { + } +} diff --git a/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManagerScopes.java b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManagerScopes.java new file mode 100644 index 00000000000..a24cc91248f --- /dev/null +++ b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManagerScopes.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.accesscontextmanager.v1; + +/** + * Available OAuth 2.0 scopes for use with the Access Context Manager API. + * + * @since 1.4 + */ +public class AccessContextManagerScopes { + + /** View and manage your data across Google Cloud Platform services. */ + 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 Access Context Manager 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 AccessLevel extends com.google.api.client.json.GenericJson { + + /** + * A `BasicLevel` composed of `Conditions`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BasicLevel basic; + + /** + * Output only. Time the `AccessLevel` was created in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Description of the `AccessLevel` and its use. Does not affect behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Human readable title. Must be unique within the Policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Time the `AccessLevel` was updated in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * A `BasicLevel` composed of `Conditions`. + * @return value or {@code null} for none + */ + public BasicLevel getBasic() { + return basic; + } + + /** + * A `BasicLevel` composed of `Conditions`. + * @param basic basic or {@code null} for none + */ + public AccessLevel setBasic(BasicLevel basic) { + this.basic = basic; + return this; + } + + /** + * Output only. Time the `AccessLevel` was created in UTC. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Time the `AccessLevel` was created in UTC. + * @param createTime createTime or {@code null} for none + */ + public AccessLevel setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Description of the `AccessLevel` and its use. Does not affect behavior. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Description of the `AccessLevel` and its use. Does not affect behavior. + * @param description description or {@code null} for none + */ + public AccessLevel setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @param name name or {@code null} for none + */ + public AccessLevel setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Human readable title. Must be unique within the Policy. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Human readable title. Must be unique within the Policy. + * @param title title or {@code null} for none + */ + public AccessLevel setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. Time the `AccessLevel` was updated in UTC. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Time the `AccessLevel` was updated in UTC. + * @param updateTime updateTime or {@code null} for none + */ + public AccessLevel setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public AccessLevel set(String fieldName, Object value) { + return (AccessLevel) super.set(fieldName, value); + } + + @Override + public AccessLevel clone() { + return (AccessLevel) super.clone(); + } + +} diff --git a/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/AccessPolicy.java b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/AccessPolicy.java new file mode 100644 index 00000000000..6efa50a0759 --- /dev/null +++ b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/AccessPolicy.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.accesscontextmanager.v1.model; + +/** + * `AccessPolicy` is a container for `AccessLevels` (which define the necessary attributes to use + * GCP services) and `ServicePerimeters` (which define regions of services able to freely pass data + * within a perimeter). An access policy is globally visible within an organization, and the + * restrictions it specifies apply to all projects within an organization. + * + *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 Access Context Manager 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 AccessPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. Time the `AccessPolicy` was created in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently + * immutable once created. Format: `organizations/{organization_id}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Required. Human readable title. Does not affect behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Time the `AccessPolicy` was updated in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Time the `AccessPolicy` was created in UTC. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Time the `AccessPolicy` was created in UTC. + * @param createTime createTime or {@code null} for none + */ + public AccessPolicy setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + * @param name name or {@code null} for none + */ + public AccessPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently + * immutable once created. Format: `organizations/{organization_id}` + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently + * immutable once created. Format: `organizations/{organization_id}` + * @param parent parent or {@code null} for none + */ + public AccessPolicy setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Required. Human readable title. Does not affect behavior. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Required. Human readable title. Does not affect behavior. + * @param title title or {@code null} for none + */ + public AccessPolicy setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. Time the `AccessPolicy` was updated in UTC. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Time the `AccessPolicy` was updated in UTC. + * @param updateTime updateTime or {@code null} for none + */ + public AccessPolicy setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public AccessPolicy set(String fieldName, Object value) { + return (AccessPolicy) super.set(fieldName, value); + } + + @Override + public AccessPolicy clone() { + return (AccessPolicy) super.clone(); + } + +} diff --git a/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/BasicLevel.java b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/BasicLevel.java new file mode 100644 index 00000000000..061db767856 --- /dev/null +++ b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/BasicLevel.java @@ -0,0 +1,100 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * `BasicLevel` is an `AccessLevel` using a set of recommended features. + * + *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 Access Context Manager 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 BasicLevel extends com.google.api.client.json.GenericJson { + + /** + * How the `conditions` list should be combined to determine if a request is granted this + * `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the + * `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be + * satisfied for the `AccessLevel` to be applied. Default behavior is AND. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String combiningFunction; + + /** + * Required. A list of requirements for the `AccessLevel` to be granted. + * 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 Access Context Manager 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 CancelOperationRequest extends com.google.api.client.json.GenericJson { + + @Override + public CancelOperationRequest set(String fieldName, Object value) { + return (CancelOperationRequest) super.set(fieldName, value); + } + + @Override + public CancelOperationRequest clone() { + return (CancelOperationRequest) super.clone(); + } + +} diff --git a/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/Condition.java b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/Condition.java new file mode 100644 index 00000000000..dcca9056144 --- /dev/null +++ b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/Condition.java @@ -0,0 +1,202 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * A condition necessary for an `AccessLevel` to be granted. The Condition is an AND over its + * fields. So a Condition is true if: 1) the request IP is from one of the listed subnetworks AND 2) + * the originating device complies with the listed device policy AND 3) all listed access levels are + * granted AND 4) the request was sent at a time allowed by the DateTimeRestriction. + * + *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 Access Context Manager 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 Condition extends com.google.api.client.json.GenericJson { + + /** + * Device specific restrictions, all restrictions must hold for the Condition to be true. If not + * specified, all devices are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DevicePolicy devicePolicy; + + /** + * CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a CIDR IP address + * block, the specified IP address portion must be properly truncated (i.e. all the host bits must + * be zero) or the input is considered malformed. For example, "192.0.2.0/24" is accepted but + * "192.0.2.1/24" is not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas + * "2001:db8::1/32" is not. The originating IP of a request must be in one of the listed subnets + * in order for this Condition to be true. If empty, all IP addresses are 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 Access Context Manager 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 DevicePolicy extends com.google.api.client.json.GenericJson { + + /** + * Allowed device management levels, an empty list allows all management levels. + * 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 Access Context Manager 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/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ListAccessLevelsResponse.java b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ListAccessLevelsResponse.java new file mode 100644 index 00000000000..2d1a52a0e16 --- /dev/null +++ b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ListAccessLevelsResponse.java @@ -0,0 +1,100 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * A response to `ListAccessLevelsRequest`. + * + *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 Access Context Manager 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 ListAccessLevelsResponse extends com.google.api.client.json.GenericJson { + + /** + * List of the Access Level instances. + * 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 Access Context Manager 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 ListAccessPoliciesResponse extends com.google.api.client.json.GenericJson { + + /** + * List of the AccessPolicy instances. + * 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 Access Context Manager 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 ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations 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 Access Context Manager 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 ListServicePerimetersResponse extends com.google.api.client.json.GenericJson { + + /** + * The pagination token to retrieve the next page of results. If the value is empty, no further + * results remain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * List of the Service Perimeter instances. + * 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 Access Context Manager 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 Operation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * 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 Access Context Manager 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 OsConstraint extends com.google.api.client.json.GenericJson { + + /** + * The minimum allowed OS version. If not set, any version of this OS satisfies the constraint. + * Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minimumVersion; + + /** + * Required. The allowed OS type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osType; + + /** + * The minimum allowed OS version. If not set, any version of this OS satisfies the constraint. + * Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"`. + * @return value or {@code null} for none + */ + public java.lang.String getMinimumVersion() { + return minimumVersion; + } + + /** + * The minimum allowed OS version. If not set, any version of this OS satisfies the constraint. + * Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"`. + * @param minimumVersion minimumVersion or {@code null} for none + */ + public OsConstraint setMinimumVersion(java.lang.String minimumVersion) { + this.minimumVersion = minimumVersion; + return this; + } + + /** + * Required. The allowed OS type. + * @return value or {@code null} for none + */ + public java.lang.String getOsType() { + return osType; + } + + /** + * Required. The allowed OS type. + * @param osType osType or {@code null} for none + */ + public OsConstraint setOsType(java.lang.String osType) { + this.osType = osType; + return this; + } + + @Override + public OsConstraint set(String fieldName, Object value) { + return (OsConstraint) super.set(fieldName, value); + } + + @Override + public OsConstraint clone() { + return (OsConstraint) super.clone(); + } + +} diff --git a/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeter.java b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeter.java new file mode 100644 index 00000000000..17c2c7a3a29 --- /dev/null +++ b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeter.java @@ -0,0 +1,235 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * `ServicePerimeter` describes a set of GCP resources which can freely import and export data + * amongst themselves, but not export outside of the `ServicePerimeter`. If a request with a source + * within this `ServicePerimeter` has a target outside of the `ServicePerimeter`, the request will + * be blocked. Otherwise the request is allowed. There are two types of Service Perimeter - Regular + * and Bridge. Regular Service Perimeters cannot overlap, a single GCP project can only belong to a + * single regular Service Perimeter. Service Perimeter Bridges can contain only GCP projects as + * members, a single GCP project may belong to multiple Service Perimeter Bridges. + * + *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 Access Context Manager 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 ServicePerimeter extends com.google.api.client.json.GenericJson { + + /** + * Output only. Time the `ServicePerimeter` was created in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Description of the `ServicePerimeter` and its use. Does not affect behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Perimeter type indicator. A single project is allowed to be a member of single regular + * perimeter, but multiple service perimeter bridges. A project cannot be a included in a + * perimeter bridge without being included in regular perimeter. For perimeter bridges, the + * restricted service list as well as access level lists must be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String perimeterType; + + /** + * Current ServicePerimeter configuration. Specifies sets of resources, restricted services and + * access levels that determine perimeter content and boundaries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServicePerimeterConfig status; + + /** + * Human readable title. Must be unique within the Policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Time the `ServicePerimeter` was updated in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Time the `ServicePerimeter` was created in UTC. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Time the `ServicePerimeter` was created in UTC. + * @param createTime createTime or {@code null} for none + */ + public ServicePerimeter setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Description of the `ServicePerimeter` and its use. Does not affect behavior. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Description of the `ServicePerimeter` and its use. Does not affect behavior. + * @param description description or {@code null} for none + */ + public ServicePerimeter setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @param name name or {@code null} for none + */ + public ServicePerimeter setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Perimeter type indicator. A single project is allowed to be a member of single regular + * perimeter, but multiple service perimeter bridges. A project cannot be a included in a + * perimeter bridge without being included in regular perimeter. For perimeter bridges, the + * restricted service list as well as access level lists must be empty. + * @return value or {@code null} for none + */ + public java.lang.String getPerimeterType() { + return perimeterType; + } + + /** + * Perimeter type indicator. A single project is allowed to be a member of single regular + * perimeter, but multiple service perimeter bridges. A project cannot be a included in a + * perimeter bridge without being included in regular perimeter. For perimeter bridges, the + * restricted service list as well as access level lists must be empty. + * @param perimeterType perimeterType or {@code null} for none + */ + public ServicePerimeter setPerimeterType(java.lang.String perimeterType) { + this.perimeterType = perimeterType; + return this; + } + + /** + * Current ServicePerimeter configuration. Specifies sets of resources, restricted services and + * access levels that determine perimeter content and boundaries. + * @return value or {@code null} for none + */ + public ServicePerimeterConfig getStatus() { + return status; + } + + /** + * Current ServicePerimeter configuration. Specifies sets of resources, restricted services and + * access levels that determine perimeter content and boundaries. + * @param status status or {@code null} for none + */ + public ServicePerimeter setStatus(ServicePerimeterConfig status) { + this.status = status; + return this; + } + + /** + * Human readable title. Must be unique within the Policy. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Human readable title. Must be unique within the Policy. + * @param title title or {@code null} for none + */ + public ServicePerimeter setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. Time the `ServicePerimeter` was updated in UTC. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Time the `ServicePerimeter` was updated in UTC. + * @param updateTime updateTime or {@code null} for none + */ + public ServicePerimeter setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public ServicePerimeter set(String fieldName, Object value) { + return (ServicePerimeter) super.set(fieldName, value); + } + + @Override + public ServicePerimeter clone() { + return (ServicePerimeter) super.clone(); + } + +} diff --git a/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeterConfig.java b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeterConfig.java new file mode 100644 index 00000000000..11d6fb42e5d --- /dev/null +++ b/clients/1.26.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeterConfig.java @@ -0,0 +1,143 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * `ServicePerimeterConfig` specifies a set of GCP resources that describe specific Service + * Perimeter configuration. + * + *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 Access Context Manager 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 ServicePerimeterConfig extends com.google.api.client.json.GenericJson { + + /** + * A list of `AccessLevel` resource names that allow resources within the `ServicePerimeter` to be + * accessed from the internet. `AccessLevels` listed must be in the same policy as this + * `ServicePerimeter`. Referencing a nonexistent `AccessLevel` is a syntax error. If no + * `AccessLevel` names are listed, resources within the perimeter can only be accessed via GCP + * calls with request origins within the perimeter. Example: + * `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. For Service Perimeter Bridge, must be + * empty. + * 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 Access Context Manager 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 Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List+ * An API for setting attribute based access control to requests to GCP services. + *
+ * + *+ * For more information about this service, see the + * API Documentation + *
+ * + *+ * This service uses {@link AccessContextManagerRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *
+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AccessContextManager 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 >= 15, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.15 of google-api-client to run version " + + "1.27.0 of the Access Context Manager 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://accesscontextmanager.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 AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.AccessPolicies.List request = accesscontextmanager.accessPolicies().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AccessPolicies accessPolicies() {
+ return new AccessPolicies();
+ }
+
+ /**
+ * The "accessPolicies" collection of methods.
+ */
+ public class AccessPolicies {
+
+ /**
+ * Create an `AccessPolicy`. Fails if this organization already has a `AccessPolicy`. The
+ * longrunning Operation will have a successful status once the `AccessPolicy` has propagated to
+ * long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a
+ * BadRequest proto.
+ *
+ * Create a request for the method "accessPolicies.create".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy}
+ * @return the request
+ */
+ public Create create(com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) throws java.io.IOException {
+ Create result = new Create(content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AccessContextManagerRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy} + * @since 1.13 + */ + protected Create(com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.class); + } + + @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); + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete an AccessPolicy by resource name. The longrunning Operation will have a successful status + * once the AccessPolicy has been removed from long-lasting storage. + * + * Create a request for the method "accessPolicies.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the access policy to delete. + Format `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to delete. + Format `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to delete. + * + * Format `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the access policy to delete. + + Format `accessPolicies/{policy_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the access policy to delete. + * + * Format `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get an AccessPolicy by name. + * + * Create a request for the method "accessPolicies.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the access policy to get. + Format `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to get. + Format `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.AccessPolicy.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to get. + * + * Format `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the access policy to get. + + Format `accessPolicies/{policy_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the access policy to get. + * + * Format `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List all AccessPolicies under a container. + * + * Create a request for the method "accessPolicies.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends AccessContextManagerRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @since 1.13 + */ + protected List() { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListAccessPoliciesResponse.class); + } + + @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); + } + + /** Number of AccessPolicy instances to include in the list. Default 100. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Number of AccessPolicy instances to include in the list. Default 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Number of AccessPolicy instances to include in the list. Default 100. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Next page token for the next batch of AccessPolicy instances. Defaults to the first page of + * results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Next page token for the next batch of AccessPolicy instances. Defaults to the first page of + results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Next page token for the next batch of AccessPolicy instances. Defaults to the first page of + * results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Required. Resource name for the container to list AccessPolicy instances from. + * + * Format: `organizations/{org_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the container to list AccessPolicy instances from. + + Format: `organizations/{org_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the container to list AccessPolicy instances from. + * + * Format: `organizations/{org_id}` + */ + public List setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Update an AccessPolicy. The longrunning Operation from this RPC will have a successful status + * once the changes to the AccessPolicy have propagated to long-lasting storage. Syntactic and basic + * semantic errors will be returned in `metadata` as a BadRequest proto. + * + * Create a request for the method "accessPolicies.patch". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Output only. Resource name of the `AccessPolicy`. Format: + `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AccessContextManagerRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Output only. Resource name of the `AccessPolicy`. Format: + `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) { + super(AccessContextManager.this, "PATCH", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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); + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask to control which fields get updated. Must be non-empty. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the AccessLevels collection. + * + *The typical use is:
+ *
+ * {@code AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.AccessLevels.List request = accesscontextmanager.accessLevels().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AccessLevels accessLevels() {
+ return new AccessLevels();
+ }
+
+ /**
+ * The "accessLevels" collection of methods.
+ */
+ public class AccessLevels {
+
+ /**
+ * Create an Access Level. The longrunning operation from this RPC will have a successful status
+ * once the Access Level has propagated to long-lasting storage. Access Levels containing errors
+ * will result in an error response for the first error encountered.
+ *
+ * Create a request for the method "accessLevels.create".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. Resource name for the access policy which owns this Access
+ Level.
+ Format:
+ * `accessPolicies/{policy_id}`
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AccessContextManagerRequest{@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. Resource name for the access policy which owns this Access + Level. + Format: + * `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy which owns this Access Level. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy which owns this Access Level. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy which owns this Access Level. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete an Access Level by resource name. The longrunning operation from this RPC will have a + * successful status once the Access Level has been removed from long-lasting storage. + * + * Create a request for the method "accessLevels.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + } + + @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. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Access Level. + + Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + 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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get an Access Level by resource name. + * + * Create a request for the method "accessLevels.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.AccessLevel.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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + } + + @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. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Access Level. + + Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + 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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as + * `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` + * or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are + * returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent + * `CustomLevels`. + */ + @com.google.api.client.util.Key + private java.lang.String accessLevelFormat; + + /** Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as + `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` or + `CustomLevels` based on how they were created. If set to CEL, all Access Levels are returned as + `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent `CustomLevels`. + */ + public java.lang.String getAccessLevelFormat() { + return accessLevelFormat; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as + * `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` + * or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are + * returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent + * `CustomLevels`. + */ + public Get setAccessLevelFormat(java.lang.String accessLevelFormat) { + this.accessLevelFormat = accessLevelFormat; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List all Access Levels for an access policy. + * + * Create a request for the method "accessLevels.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Resource name for the access policy to list Access Levels from. + Format: + * `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to list Access Levels from. + Format: + * `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListAccessLevelsResponse.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to list Access Levels from. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy to list Access Levels from. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy to list Access Levels from. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression language, as + * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the + * format they were defined. + */ + @com.google.api.client.util.Key + private java.lang.String accessLevelFormat; + + /** Whether to return `BasicLevels` in the Cloud Common Expression language, as `CustomLevels`, rather + than as `BasicLevels`. Defaults to returning `AccessLevels` in the format they were defined. + */ + public java.lang.String getAccessLevelFormat() { + return accessLevelFormat; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression language, as + * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the + * format they were defined. + */ + public List setAccessLevelFormat(java.lang.String accessLevelFormat) { + this.accessLevelFormat = accessLevelFormat; + return this; + } + + /** + * Number of Access Levels to include in the list. Default 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Number of Access Levels to include in the list. Default 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Number of Access Levels to include in the list. Default 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Next page token for the next batch of Access Level instances. Defaults to the first page + * of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Next page token for the next batch of Access Level instances. Defaults to the first page of + results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Next page token for the next batch of Access Level instances. Defaults to the first page + * of results. + */ + 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); + } + } + /** + * Update an Access Level. The longrunning operation from this RPC will have a successful status + * once the changes to the Access Level have propagated to long-lasting storage. Access Levels + * containing errors will result in an error response for the first error encountered. + * + * Create a request for the method "accessLevels.patch". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Access Level. The `short_name` component + must begin with a letter + * and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AccessContextManagerRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Resource name for the Access Level. The `short_name` component + must begin with a letter + * and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) { + super(AccessContextManager.this, "PATCH", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + } + + @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); + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with + * a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Access Level. The `short_name` component must begin with a letter + and only include alphanumeric and '_'. Format: + `accessPolicies/{policy_id}/accessLevels/{short_name}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with + * a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + */ + 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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask to control which fields get updated. Must be non-empty. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the ServicePerimeters collection. + * + *The typical use is:
+ *
+ * {@code AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.ServicePerimeters.List request = accesscontextmanager.servicePerimeters().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public ServicePerimeters servicePerimeters() {
+ return new ServicePerimeters();
+ }
+
+ /**
+ * The "servicePerimeters" collection of methods.
+ */
+ public class ServicePerimeters {
+
+ /**
+ * Create an Service Perimeter. The longrunning operation from this RPC will have a successful
+ * status once the Service Perimeter has propagated to long-lasting storage. Service Perimeters
+ * containing errors will result in an error response for the first error encountered.
+ *
+ * Create a request for the method "servicePerimeters.create".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. Resource name for the access policy which owns this Service
+ Perimeter.
+ Format:
+ * `accessPolicies/{policy_id}`
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AccessContextManagerRequest{@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. Resource name for the access policy which owns this Service + Perimeter. + Format: + * `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy which owns this Service Perimeter. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy which owns this Service Perimeter. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy which owns this Service Perimeter. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete an Service Perimeter by resource name. The longrunning operation from this RPC will have a + * successful status once the Service Perimeter has been removed from long-lasting storage. + * + * Create a request for the method "servicePerimeters.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + } + + @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. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Service Perimeter. + + Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + */ + 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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get an Service Perimeter by resource name. + * + * Create a request for the method "servicePerimeters.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter.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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + } + + @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. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Service Perimeter. + + Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + */ + 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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List all Service Perimeters for an access policy. + * + * Create a request for the method "servicePerimeters.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Resource name for the access policy to list Service Perimeters from. + Format: + * `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to list Service Perimeters from. + Format: + * `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListServicePerimetersResponse.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to list Service Perimeters from. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy to list Service Perimeters from. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy to list Service Perimeters from. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Number of Service Perimeters to include in the list. Default 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Number of Service Perimeters to include in the list. Default 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Number of Service Perimeters to include in the list. Default 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Next page token for the next batch of Service Perimeter instances. Defaults to the first + * page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Next page token for the next batch of Service Perimeter instances. Defaults to the first page of + results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Next page token for the next batch of Service Perimeter instances. Defaults to the first + * page of results. + */ + 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); + } + } + /** + * Update an Service Perimeter. The longrunning operation from this RPC will have a successful + * status once the changes to the Service Perimeter have propagated to long-lasting storage. Service + * Perimeter containing errors will result in an error response for the first error encountered. + * + * Create a request for the method "servicePerimeters.patch". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the ServicePerimeter. The `short_name` + component must begin with a + * letter and only include alphanumeric and '_'. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AccessContextManagerRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Resource name for the ServicePerimeter. The `short_name` + component must begin with a + * letter and only include alphanumeric and '_'. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) { + super(AccessContextManager.this, "PATCH", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + } + + @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); + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin + * with a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a + letter and only include alphanumeric and '_'. Format: + `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin + * with a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + */ + 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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask to control which fields get updated. Must be non-empty. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *
+ * {@code AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.Operations.List request = accesscontextmanager.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest}
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends AccessContextManagerRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.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 " + + "^operations/.+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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 " + + "^operations/.+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AccessContextManagerRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.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 " + + "^operations/.+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + 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 " + + "^operations/.+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation 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 AccessContextManagerRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^operations/.+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation 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 " + + "^operations/.+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use different resource + * name schemes, such as `users/operations`. To override the binding, API services can add a binding + * such as `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, however overriding users + * must ensure the name binding is the parent resource, without the operations collection id. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @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 AccessContextManagerRequest{@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 name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListOperationsResponse.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 " + + "^operations$"); + } + } + + @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 name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + 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 " + + "^operations$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list 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 AccessContextManager}. + * + *+ * Implementation is not thread-safe. + *
+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + /** + * 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 AccessContextManagerRequestInitializer(KEY); + *+ * + *
+ * There is also a constructor to set both the key and userIp parameters: + *
+ * + *+ public static final GoogleClientRequestInitializer INITIALIZER = + new AccessContextManagerRequestInitializer(KEY, USER_IP); + *+ * + *
+ * If you want to implement custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer extends AccessContextManagerRequestInitializer {
+
+ {@literal @}Override
+ public void initializeAccessContextManagerRequest(AccessContextManagerRequest{@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 AccessContextManagerRequestInitializer {
+
+ public MyKeyRequestInitializer() {
+ super(KEY, USER_IP);
+ }
+
+ {@literal @}Override
+ public void initializeAccessContextManagerRequest(AccessContextManagerRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Subclasses should be thread-safe. + *
+ * + * @since 1.12 + */ +public class AccessContextManagerRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AccessContextManagerRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AccessContextManagerRequestInitializer(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 AccessContextManagerRequestInitializer(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); + initializeAccessContextManagerRequest((AccessContextManagerRequest>) request); + } + + /** + * Initializes AccessContextManager 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 initializeAccessContextManagerRequest(AccessContextManagerRequest> request) throws java.io.IOException { + } +} diff --git a/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManagerScopes.java b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManagerScopes.java new file mode 100644 index 00000000000..a24cc91248f --- /dev/null +++ b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManagerScopes.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.accesscontextmanager.v1; + +/** + * Available OAuth 2.0 scopes for use with the Access Context Manager API. + * + * @since 1.4 + */ +public class AccessContextManagerScopes { + + /** View and manage your data across Google Cloud Platform services. */ + 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 Access Context Manager 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 AccessLevel extends com.google.api.client.json.GenericJson { + + /** + * A `BasicLevel` composed of `Conditions`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BasicLevel basic; + + /** + * Output only. Time the `AccessLevel` was created in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Description of the `AccessLevel` and its use. Does not affect behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Human readable title. Must be unique within the Policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Time the `AccessLevel` was updated in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * A `BasicLevel` composed of `Conditions`. + * @return value or {@code null} for none + */ + public BasicLevel getBasic() { + return basic; + } + + /** + * A `BasicLevel` composed of `Conditions`. + * @param basic basic or {@code null} for none + */ + public AccessLevel setBasic(BasicLevel basic) { + this.basic = basic; + return this; + } + + /** + * Output only. Time the `AccessLevel` was created in UTC. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Time the `AccessLevel` was created in UTC. + * @param createTime createTime or {@code null} for none + */ + public AccessLevel setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Description of the `AccessLevel` and its use. Does not affect behavior. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Description of the `AccessLevel` and its use. Does not affect behavior. + * @param description description or {@code null} for none + */ + public AccessLevel setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @param name name or {@code null} for none + */ + public AccessLevel setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Human readable title. Must be unique within the Policy. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Human readable title. Must be unique within the Policy. + * @param title title or {@code null} for none + */ + public AccessLevel setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. Time the `AccessLevel` was updated in UTC. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Time the `AccessLevel` was updated in UTC. + * @param updateTime updateTime or {@code null} for none + */ + public AccessLevel setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public AccessLevel set(String fieldName, Object value) { + return (AccessLevel) super.set(fieldName, value); + } + + @Override + public AccessLevel clone() { + return (AccessLevel) super.clone(); + } + +} diff --git a/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/AccessPolicy.java b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/AccessPolicy.java new file mode 100644 index 00000000000..6efa50a0759 --- /dev/null +++ b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/AccessPolicy.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.accesscontextmanager.v1.model; + +/** + * `AccessPolicy` is a container for `AccessLevels` (which define the necessary attributes to use + * GCP services) and `ServicePerimeters` (which define regions of services able to freely pass data + * within a perimeter). An access policy is globally visible within an organization, and the + * restrictions it specifies apply to all projects within an organization. + * + *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 Access Context Manager 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 AccessPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. Time the `AccessPolicy` was created in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently + * immutable once created. Format: `organizations/{organization_id}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Required. Human readable title. Does not affect behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Time the `AccessPolicy` was updated in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Time the `AccessPolicy` was created in UTC. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Time the `AccessPolicy` was created in UTC. + * @param createTime createTime or {@code null} for none + */ + public AccessPolicy setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + * @param name name or {@code null} for none + */ + public AccessPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently + * immutable once created. Format: `organizations/{organization_id}` + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently + * immutable once created. Format: `organizations/{organization_id}` + * @param parent parent or {@code null} for none + */ + public AccessPolicy setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Required. Human readable title. Does not affect behavior. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Required. Human readable title. Does not affect behavior. + * @param title title or {@code null} for none + */ + public AccessPolicy setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. Time the `AccessPolicy` was updated in UTC. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Time the `AccessPolicy` was updated in UTC. + * @param updateTime updateTime or {@code null} for none + */ + public AccessPolicy setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public AccessPolicy set(String fieldName, Object value) { + return (AccessPolicy) super.set(fieldName, value); + } + + @Override + public AccessPolicy clone() { + return (AccessPolicy) super.clone(); + } + +} diff --git a/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/BasicLevel.java b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/BasicLevel.java new file mode 100644 index 00000000000..061db767856 --- /dev/null +++ b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/BasicLevel.java @@ -0,0 +1,100 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * `BasicLevel` is an `AccessLevel` using a set of recommended features. + * + *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 Access Context Manager 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 BasicLevel extends com.google.api.client.json.GenericJson { + + /** + * How the `conditions` list should be combined to determine if a request is granted this + * `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the + * `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be + * satisfied for the `AccessLevel` to be applied. Default behavior is AND. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String combiningFunction; + + /** + * Required. A list of requirements for the `AccessLevel` to be granted. + * 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 Access Context Manager 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 CancelOperationRequest extends com.google.api.client.json.GenericJson { + + @Override + public CancelOperationRequest set(String fieldName, Object value) { + return (CancelOperationRequest) super.set(fieldName, value); + } + + @Override + public CancelOperationRequest clone() { + return (CancelOperationRequest) super.clone(); + } + +} diff --git a/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/Condition.java b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/Condition.java new file mode 100644 index 00000000000..dcca9056144 --- /dev/null +++ b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/Condition.java @@ -0,0 +1,202 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * A condition necessary for an `AccessLevel` to be granted. The Condition is an AND over its + * fields. So a Condition is true if: 1) the request IP is from one of the listed subnetworks AND 2) + * the originating device complies with the listed device policy AND 3) all listed access levels are + * granted AND 4) the request was sent at a time allowed by the DateTimeRestriction. + * + *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 Access Context Manager 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 Condition extends com.google.api.client.json.GenericJson { + + /** + * Device specific restrictions, all restrictions must hold for the Condition to be true. If not + * specified, all devices are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DevicePolicy devicePolicy; + + /** + * CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a CIDR IP address + * block, the specified IP address portion must be properly truncated (i.e. all the host bits must + * be zero) or the input is considered malformed. For example, "192.0.2.0/24" is accepted but + * "192.0.2.1/24" is not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas + * "2001:db8::1/32" is not. The originating IP of a request must be in one of the listed subnets + * in order for this Condition to be true. If empty, all IP addresses are 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 Access Context Manager 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 DevicePolicy extends com.google.api.client.json.GenericJson { + + /** + * Allowed device management levels, an empty list allows all management levels. + * 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 Access Context Manager 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/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ListAccessLevelsResponse.java b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ListAccessLevelsResponse.java new file mode 100644 index 00000000000..2d1a52a0e16 --- /dev/null +++ b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ListAccessLevelsResponse.java @@ -0,0 +1,100 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * A response to `ListAccessLevelsRequest`. + * + *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 Access Context Manager 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 ListAccessLevelsResponse extends com.google.api.client.json.GenericJson { + + /** + * List of the Access Level instances. + * 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 Access Context Manager 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 ListAccessPoliciesResponse extends com.google.api.client.json.GenericJson { + + /** + * List of the AccessPolicy instances. + * 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 Access Context Manager 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 ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations 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 Access Context Manager 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 ListServicePerimetersResponse extends com.google.api.client.json.GenericJson { + + /** + * The pagination token to retrieve the next page of results. If the value is empty, no further + * results remain. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * List of the Service Perimeter instances. + * 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 Access Context Manager 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 Operation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * 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 Access Context Manager 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 OsConstraint extends com.google.api.client.json.GenericJson { + + /** + * The minimum allowed OS version. If not set, any version of this OS satisfies the constraint. + * Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minimumVersion; + + /** + * Required. The allowed OS type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osType; + + /** + * The minimum allowed OS version. If not set, any version of this OS satisfies the constraint. + * Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"`. + * @return value or {@code null} for none + */ + public java.lang.String getMinimumVersion() { + return minimumVersion; + } + + /** + * The minimum allowed OS version. If not set, any version of this OS satisfies the constraint. + * Format: `"major.minor.patch"`. Examples: `"10.5.301"`, `"9.2.1"`. + * @param minimumVersion minimumVersion or {@code null} for none + */ + public OsConstraint setMinimumVersion(java.lang.String minimumVersion) { + this.minimumVersion = minimumVersion; + return this; + } + + /** + * Required. The allowed OS type. + * @return value or {@code null} for none + */ + public java.lang.String getOsType() { + return osType; + } + + /** + * Required. The allowed OS type. + * @param osType osType or {@code null} for none + */ + public OsConstraint setOsType(java.lang.String osType) { + this.osType = osType; + return this; + } + + @Override + public OsConstraint set(String fieldName, Object value) { + return (OsConstraint) super.set(fieldName, value); + } + + @Override + public OsConstraint clone() { + return (OsConstraint) super.clone(); + } + +} diff --git a/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeter.java b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeter.java new file mode 100644 index 00000000000..17c2c7a3a29 --- /dev/null +++ b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeter.java @@ -0,0 +1,235 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * `ServicePerimeter` describes a set of GCP resources which can freely import and export data + * amongst themselves, but not export outside of the `ServicePerimeter`. If a request with a source + * within this `ServicePerimeter` has a target outside of the `ServicePerimeter`, the request will + * be blocked. Otherwise the request is allowed. There are two types of Service Perimeter - Regular + * and Bridge. Regular Service Perimeters cannot overlap, a single GCP project can only belong to a + * single regular Service Perimeter. Service Perimeter Bridges can contain only GCP projects as + * members, a single GCP project may belong to multiple Service Perimeter Bridges. + * + *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 Access Context Manager 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 ServicePerimeter extends com.google.api.client.json.GenericJson { + + /** + * Output only. Time the `ServicePerimeter` was created in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Description of the `ServicePerimeter` and its use. Does not affect behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Perimeter type indicator. A single project is allowed to be a member of single regular + * perimeter, but multiple service perimeter bridges. A project cannot be a included in a + * perimeter bridge without being included in regular perimeter. For perimeter bridges, the + * restricted service list as well as access level lists must be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String perimeterType; + + /** + * Current ServicePerimeter configuration. Specifies sets of resources, restricted services and + * access levels that determine perimeter content and boundaries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServicePerimeterConfig status; + + /** + * Human readable title. Must be unique within the Policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Time the `ServicePerimeter` was updated in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Time the `ServicePerimeter` was created in UTC. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Time the `ServicePerimeter` was created in UTC. + * @param createTime createTime or {@code null} for none + */ + public ServicePerimeter setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Description of the `ServicePerimeter` and its use. Does not affect behavior. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Description of the `ServicePerimeter` and its use. Does not affect behavior. + * @param description description or {@code null} for none + */ + public ServicePerimeter setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @param name name or {@code null} for none + */ + public ServicePerimeter setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Perimeter type indicator. A single project is allowed to be a member of single regular + * perimeter, but multiple service perimeter bridges. A project cannot be a included in a + * perimeter bridge without being included in regular perimeter. For perimeter bridges, the + * restricted service list as well as access level lists must be empty. + * @return value or {@code null} for none + */ + public java.lang.String getPerimeterType() { + return perimeterType; + } + + /** + * Perimeter type indicator. A single project is allowed to be a member of single regular + * perimeter, but multiple service perimeter bridges. A project cannot be a included in a + * perimeter bridge without being included in regular perimeter. For perimeter bridges, the + * restricted service list as well as access level lists must be empty. + * @param perimeterType perimeterType or {@code null} for none + */ + public ServicePerimeter setPerimeterType(java.lang.String perimeterType) { + this.perimeterType = perimeterType; + return this; + } + + /** + * Current ServicePerimeter configuration. Specifies sets of resources, restricted services and + * access levels that determine perimeter content and boundaries. + * @return value or {@code null} for none + */ + public ServicePerimeterConfig getStatus() { + return status; + } + + /** + * Current ServicePerimeter configuration. Specifies sets of resources, restricted services and + * access levels that determine perimeter content and boundaries. + * @param status status or {@code null} for none + */ + public ServicePerimeter setStatus(ServicePerimeterConfig status) { + this.status = status; + return this; + } + + /** + * Human readable title. Must be unique within the Policy. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Human readable title. Must be unique within the Policy. + * @param title title or {@code null} for none + */ + public ServicePerimeter setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. Time the `ServicePerimeter` was updated in UTC. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Time the `ServicePerimeter` was updated in UTC. + * @param updateTime updateTime or {@code null} for none + */ + public ServicePerimeter setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public ServicePerimeter set(String fieldName, Object value) { + return (ServicePerimeter) super.set(fieldName, value); + } + + @Override + public ServicePerimeter clone() { + return (ServicePerimeter) super.clone(); + } + +} diff --git a/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeterConfig.java b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeterConfig.java new file mode 100644 index 00000000000..11d6fb42e5d --- /dev/null +++ b/clients/1.27.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/ServicePerimeterConfig.java @@ -0,0 +1,143 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * `ServicePerimeterConfig` specifies a set of GCP resources that describe specific Service + * Perimeter configuration. + * + *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 Access Context Manager 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 ServicePerimeterConfig extends com.google.api.client.json.GenericJson { + + /** + * A list of `AccessLevel` resource names that allow resources within the `ServicePerimeter` to be + * accessed from the internet. `AccessLevels` listed must be in the same policy as this + * `ServicePerimeter`. Referencing a nonexistent `AccessLevel` is a syntax error. If no + * `AccessLevel` names are listed, resources within the perimeter can only be accessed via GCP + * calls with request origins within the perimeter. Example: + * `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. For Service Perimeter Bridge, must be + * empty. + * 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 Access Context Manager 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 Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List+ * An API for setting attribute based access control to requests to GCP services. + *
+ * + *+ * For more information about this service, see the + * API Documentation + *
+ * + *+ * This service uses {@link AccessContextManagerRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *
+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AccessContextManager 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 >= 15, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.15 of google-api-client to run version " + + "1.28.0 of the Access Context Manager 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://accesscontextmanager.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 AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.AccessPolicies.List request = accesscontextmanager.accessPolicies().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AccessPolicies accessPolicies() {
+ return new AccessPolicies();
+ }
+
+ /**
+ * The "accessPolicies" collection of methods.
+ */
+ public class AccessPolicies {
+
+ /**
+ * Create an `AccessPolicy`. Fails if this organization already has a `AccessPolicy`. The
+ * longrunning Operation will have a successful status once the `AccessPolicy` has propagated to
+ * long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a
+ * BadRequest proto.
+ *
+ * Create a request for the method "accessPolicies.create".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy}
+ * @return the request
+ */
+ public Create create(com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) throws java.io.IOException {
+ Create result = new Create(content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AccessContextManagerRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy} + * @since 1.13 + */ + protected Create(com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.class); + } + + @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); + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete an AccessPolicy by resource name. The longrunning Operation will have a successful status + * once the AccessPolicy has been removed from long-lasting storage. + * + * Create a request for the method "accessPolicies.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the access policy to delete. + Format `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to delete. + Format `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to delete. + * + * Format `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the access policy to delete. + + Format `accessPolicies/{policy_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the access policy to delete. + * + * Format `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get an AccessPolicy by name. + * + * Create a request for the method "accessPolicies.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the access policy to get. + Format `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to get. + Format `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.AccessPolicy.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to get. + * + * Format `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the access policy to get. + + Format `accessPolicies/{policy_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the access policy to get. + * + * Format `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List all AccessPolicies under a container. + * + * Create a request for the method "accessPolicies.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends AccessContextManagerRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @since 1.13 + */ + protected List() { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListAccessPoliciesResponse.class); + } + + @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); + } + + /** Number of AccessPolicy instances to include in the list. Default 100. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Number of AccessPolicy instances to include in the list. Default 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Number of AccessPolicy instances to include in the list. Default 100. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Next page token for the next batch of AccessPolicy instances. Defaults to the first page of + * results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Next page token for the next batch of AccessPolicy instances. Defaults to the first page of + results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Next page token for the next batch of AccessPolicy instances. Defaults to the first page of + * results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Required. Resource name for the container to list AccessPolicy instances from. + * + * Format: `organizations/{org_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the container to list AccessPolicy instances from. + + Format: `organizations/{org_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the container to list AccessPolicy instances from. + * + * Format: `organizations/{org_id}` + */ + public List setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Update an AccessPolicy. The longrunning Operation from this RPC will have a successful status + * once the changes to the AccessPolicy have propagated to long-lasting storage. Syntactic and basic + * semantic errors will be returned in `metadata` as a BadRequest proto. + * + * Create a request for the method "accessPolicies.patch". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Output only. Resource name of the `AccessPolicy`. Format: + `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AccessContextManagerRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Output only. Resource name of the `AccessPolicy`. Format: + `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessPolicy content) { + super(AccessContextManager.this, "PATCH", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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); + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask to control which fields get updated. Must be non-empty. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the AccessLevels collection. + * + *The typical use is:
+ *
+ * {@code AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.AccessLevels.List request = accesscontextmanager.accessLevels().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AccessLevels accessLevels() {
+ return new AccessLevels();
+ }
+
+ /**
+ * The "accessLevels" collection of methods.
+ */
+ public class AccessLevels {
+
+ /**
+ * Create an Access Level. The longrunning operation from this RPC will have a successful status
+ * once the Access Level has propagated to long-lasting storage. Access Levels containing errors
+ * will result in an error response for the first error encountered.
+ *
+ * Create a request for the method "accessLevels.create".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. Resource name for the access policy which owns this Access
+ Level.
+ Format:
+ * `accessPolicies/{policy_id}`
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AccessContextManagerRequest{@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. Resource name for the access policy which owns this Access + Level. + Format: + * `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy which owns this Access Level. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy which owns this Access Level. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy which owns this Access Level. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete an Access Level by resource name. The longrunning operation from this RPC will have a + * successful status once the Access Level has been removed from long-lasting storage. + * + * Create a request for the method "accessLevels.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + } + + @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. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Access Level. + + Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + 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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get an Access Level by resource name. + * + * Create a request for the method "accessLevels.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Access Level. + Format: + * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.AccessLevel.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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + } + + @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. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Access Level. + + Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. + * + * Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` + */ + 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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as + * `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` + * or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are + * returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent + * `CustomLevels`. + */ + @com.google.api.client.util.Key + private java.lang.String accessLevelFormat; + + /** Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as + `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` or + `CustomLevels` based on how they were created. If set to CEL, all Access Levels are returned as + `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent `CustomLevels`. + */ + public java.lang.String getAccessLevelFormat() { + return accessLevelFormat; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as + * `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` + * or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are + * returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent + * `CustomLevels`. + */ + public Get setAccessLevelFormat(java.lang.String accessLevelFormat) { + this.accessLevelFormat = accessLevelFormat; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List all Access Levels for an access policy. + * + * Create a request for the method "accessLevels.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Resource name for the access policy to list Access Levels from. + Format: + * `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to list Access Levels from. + Format: + * `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListAccessLevelsResponse.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to list Access Levels from. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy to list Access Levels from. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy to list Access Levels from. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression language, as + * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the + * format they were defined. + */ + @com.google.api.client.util.Key + private java.lang.String accessLevelFormat; + + /** Whether to return `BasicLevels` in the Cloud Common Expression language, as `CustomLevels`, rather + than as `BasicLevels`. Defaults to returning `AccessLevels` in the format they were defined. + */ + public java.lang.String getAccessLevelFormat() { + return accessLevelFormat; + } + + /** + * Whether to return `BasicLevels` in the Cloud Common Expression language, as + * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the + * format they were defined. + */ + public List setAccessLevelFormat(java.lang.String accessLevelFormat) { + this.accessLevelFormat = accessLevelFormat; + return this; + } + + /** + * Number of Access Levels to include in the list. Default 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Number of Access Levels to include in the list. Default 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Number of Access Levels to include in the list. Default 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Next page token for the next batch of Access Level instances. Defaults to the first page + * of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Next page token for the next batch of Access Level instances. Defaults to the first page of + results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Next page token for the next batch of Access Level instances. Defaults to the first page + * of results. + */ + 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); + } + } + /** + * Update an Access Level. The longrunning operation from this RPC will have a successful status + * once the changes to the Access Level have propagated to long-lasting storage. Access Levels + * containing errors will result in an error response for the first error encountered. + * + * Create a request for the method "accessLevels.patch". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Access Level. The `short_name` component + must begin with a letter + * and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AccessContextManagerRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Resource name for the Access Level. The `short_name` component + must begin with a letter + * and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.AccessLevel} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.AccessLevel content) { + super(AccessContextManager.this, "PATCH", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + } + + @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); + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with + * a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Access Level. The `short_name` component must begin with a letter + and only include alphanumeric and '_'. Format: + `accessPolicies/{policy_id}/accessLevels/{short_name}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with + * a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + */ + 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 " + + "^accessPolicies/[^/]+/accessLevels/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask to control which fields get updated. Must be non-empty. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the ServicePerimeters collection. + * + *The typical use is:
+ *
+ * {@code AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.ServicePerimeters.List request = accesscontextmanager.servicePerimeters().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public ServicePerimeters servicePerimeters() {
+ return new ServicePerimeters();
+ }
+
+ /**
+ * The "servicePerimeters" collection of methods.
+ */
+ public class ServicePerimeters {
+
+ /**
+ * Create an Service Perimeter. The longrunning operation from this RPC will have a successful
+ * status once the Service Perimeter has propagated to long-lasting storage. Service Perimeters
+ * containing errors will result in an error response for the first error encountered.
+ *
+ * Create a request for the method "servicePerimeters.create".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. Resource name for the access policy which owns this Service
+ Perimeter.
+ Format:
+ * `accessPolicies/{policy_id}`
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AccessContextManagerRequest{@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. Resource name for the access policy which owns this Service + Perimeter. + Format: + * `accessPolicies/{policy_id}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy which owns this Service Perimeter. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy which owns this Service Perimeter. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy which owns this Service Perimeter. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete an Service Perimeter by resource name. The longrunning operation from this RPC will have a + * successful status once the Service Perimeter has been removed from long-lasting storage. + * + * Create a request for the method "servicePerimeters.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + } + + @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. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Service Perimeter. + + Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` + */ + 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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get an Service Perimeter by resource name. + * + * Create a request for the method "servicePerimeters.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the Service Perimeter. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter.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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + } + + @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. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the Service Perimeter. + + Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Service Perimeter. + * + * Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` + */ + 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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List all Service Perimeters for an access policy. + * + * Create a request for the method "servicePerimeters.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Resource name for the access policy to list Service Perimeters from. + Format: + * `accessPolicies/{policy_id}` + * @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 AccessContextManagerRequest{@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. Resource name for the access policy to list Service Perimeters from. + Format: + * `accessPolicies/{policy_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListServicePerimetersResponse.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 " + + "^accessPolicies/[^/]+$"); + } + } + + @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. Resource name for the access policy to list Service Perimeters from. + * + * Format: `accessPolicies/{policy_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Resource name for the access policy to list Service Perimeters from. + + Format: `accessPolicies/{policy_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Resource name for the access policy to list Service Perimeters from. + * + * Format: `accessPolicies/{policy_id}` + */ + 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 " + + "^accessPolicies/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Number of Service Perimeters to include in the list. Default 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Number of Service Perimeters to include in the list. Default 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Number of Service Perimeters to include in the list. Default 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Next page token for the next batch of Service Perimeter instances. Defaults to the first + * page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Next page token for the next batch of Service Perimeter instances. Defaults to the first page of + results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Next page token for the next batch of Service Perimeter instances. Defaults to the first + * page of results. + */ + 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); + } + } + /** + * Update an Service Perimeter. The longrunning operation from this RPC will have a successful + * status once the changes to the Service Perimeter have propagated to long-lasting storage. Service + * Perimeter containing errors will result in an error response for the first error encountered. + * + * Create a request for the method "servicePerimeters.patch". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name for the ServicePerimeter. The `short_name` + component must begin with a + * letter and only include alphanumeric and '_'. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AccessContextManagerRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Resource name for the ServicePerimeter. The `short_name` + component must begin with a + * letter and only include alphanumeric and '_'. + Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.ServicePerimeter content) { + super(AccessContextManager.this, "PATCH", REST_PATH, content, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + } + + @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); + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin + * with a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a + letter and only include alphanumeric and '_'. Format: + `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the ServicePerimeter. The `short_name` component must begin + * with a letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/servicePerimeters/{short_name}` + */ + 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 " + + "^accessPolicies/[^/]+/servicePerimeters/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask to control which fields get updated. Must be non-empty. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask to control which fields get updated. Must be non-empty. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *
+ * {@code AccessContextManager accesscontextmanager = new AccessContextManager(...);}
+ * {@code AccessContextManager.Operations.List request = accesscontextmanager.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the accesscontextmanager server. After setting any
+ * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest}
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends AccessContextManagerRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.accesscontextmanager.v1.model.CancelOperationRequest content) { + super(AccessContextManager.this, "POST", REST_PATH, content, com.google.api.services.accesscontextmanager.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 " + + "^operations/.+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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 " + + "^operations/.+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 AccessContextManagerRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(AccessContextManager.this, "DELETE", REST_PATH, null, com.google.api.services.accesscontextmanager.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 " + + "^operations/.+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + 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 " + + "^operations/.+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation 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 AccessContextManagerRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.Operation.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 " + + "^operations/.+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation 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 " + + "^operations/.+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use different resource + * name schemes, such as `users/operations`. To override the binding, API services can add a binding + * such as `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, however overriding users + * must ensure the name binding is the parent resource, without the operations collection id. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the accesscontextmanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @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 AccessContextManagerRequest{@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 name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(AccessContextManager.this, "GET", REST_PATH, null, com.google.api.services.accesscontextmanager.v1.model.ListOperationsResponse.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 " + + "^operations$"); + } + } + + @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 name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + 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 " + + "^operations$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list 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 AccessContextManager}. + * + *+ * Implementation is not thread-safe. + *
+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + /** + * 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 AccessContextManagerRequestInitializer(KEY); + *+ * + *
+ * There is also a constructor to set both the key and userIp parameters: + *
+ * + *+ public static final GoogleClientRequestInitializer INITIALIZER = + new AccessContextManagerRequestInitializer(KEY, USER_IP); + *+ * + *
+ * If you want to implement custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer extends AccessContextManagerRequestInitializer {
+
+ {@literal @}Override
+ public void initializeAccessContextManagerRequest(AccessContextManagerRequest{@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 AccessContextManagerRequestInitializer {
+
+ public MyKeyRequestInitializer() {
+ super(KEY, USER_IP);
+ }
+
+ {@literal @}Override
+ public void initializeAccessContextManagerRequest(AccessContextManagerRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Subclasses should be thread-safe. + *
+ * + * @since 1.12 + */ +public class AccessContextManagerRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AccessContextManagerRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AccessContextManagerRequestInitializer(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 AccessContextManagerRequestInitializer(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); + initializeAccessContextManagerRequest((AccessContextManagerRequest>) request); + } + + /** + * Initializes AccessContextManager 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 initializeAccessContextManagerRequest(AccessContextManagerRequest> request) throws java.io.IOException { + } +} diff --git a/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManagerScopes.java b/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManagerScopes.java new file mode 100644 index 00000000000..a24cc91248f --- /dev/null +++ b/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/AccessContextManagerScopes.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.accesscontextmanager.v1; + +/** + * Available OAuth 2.0 scopes for use with the Access Context Manager API. + * + * @since 1.4 + */ +public class AccessContextManagerScopes { + + /** View and manage your data across Google Cloud Platform services. */ + 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 Access Context Manager 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 AccessLevel extends com.google.api.client.json.GenericJson { + + /** + * A `BasicLevel` composed of `Conditions`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BasicLevel basic; + + /** + * Output only. Time the `AccessLevel` was created in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Description of the `AccessLevel` and its use. Does not affect behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Human readable title. Must be unique within the Policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Time the `AccessLevel` was updated in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * A `BasicLevel` composed of `Conditions`. + * @return value or {@code null} for none + */ + public BasicLevel getBasic() { + return basic; + } + + /** + * A `BasicLevel` composed of `Conditions`. + * @param basic basic or {@code null} for none + */ + public AccessLevel setBasic(BasicLevel basic) { + this.basic = basic; + return this; + } + + /** + * Output only. Time the `AccessLevel` was created in UTC. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Time the `AccessLevel` was created in UTC. + * @param createTime createTime or {@code null} for none + */ + public AccessLevel setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Description of the `AccessLevel` and its use. Does not affect behavior. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Description of the `AccessLevel` and its use. Does not affect behavior. + * @param description description or {@code null} for none + */ + public AccessLevel setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name for the Access Level. The `short_name` component must begin with a + * letter and only include alphanumeric and '_'. Format: + * `accessPolicies/{policy_id}/accessLevels/{short_name}` + * @param name name or {@code null} for none + */ + public AccessLevel setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Human readable title. Must be unique within the Policy. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Human readable title. Must be unique within the Policy. + * @param title title or {@code null} for none + */ + public AccessLevel setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. Time the `AccessLevel` was updated in UTC. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Time the `AccessLevel` was updated in UTC. + * @param updateTime updateTime or {@code null} for none + */ + public AccessLevel setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public AccessLevel set(String fieldName, Object value) { + return (AccessLevel) super.set(fieldName, value); + } + + @Override + public AccessLevel clone() { + return (AccessLevel) super.clone(); + } + +} diff --git a/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/AccessPolicy.java b/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/AccessPolicy.java new file mode 100644 index 00000000000..6efa50a0759 --- /dev/null +++ b/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/AccessPolicy.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.accesscontextmanager.v1.model; + +/** + * `AccessPolicy` is a container for `AccessLevels` (which define the necessary attributes to use + * GCP services) and `ServicePerimeters` (which define regions of services able to freely pass data + * within a perimeter). An access policy is globally visible within an organization, and the + * restrictions it specifies apply to all projects within an organization. + * + *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 Access Context Manager 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 AccessPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. Time the `AccessPolicy` was created in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently + * immutable once created. Format: `organizations/{organization_id}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Required. Human readable title. Does not affect behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Time the `AccessPolicy` was updated in UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Time the `AccessPolicy` was created in UTC. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Time the `AccessPolicy` was created in UTC. + * @param createTime createTime or {@code null} for none + */ + public AccessPolicy setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` + * @param name name or {@code null} for none + */ + public AccessPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently + * immutable once created. Format: `organizations/{organization_id}` + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent of this `AccessPolicy` in the Cloud Resource Hierarchy. Currently + * immutable once created. Format: `organizations/{organization_id}` + * @param parent parent or {@code null} for none + */ + public AccessPolicy setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Required. Human readable title. Does not affect behavior. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Required. Human readable title. Does not affect behavior. + * @param title title or {@code null} for none + */ + public AccessPolicy setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. Time the `AccessPolicy` was updated in UTC. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Time the `AccessPolicy` was updated in UTC. + * @param updateTime updateTime or {@code null} for none + */ + public AccessPolicy setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public AccessPolicy set(String fieldName, Object value) { + return (AccessPolicy) super.set(fieldName, value); + } + + @Override + public AccessPolicy clone() { + return (AccessPolicy) super.clone(); + } + +} diff --git a/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/BasicLevel.java b/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/BasicLevel.java new file mode 100644 index 00000000000..061db767856 --- /dev/null +++ b/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/BasicLevel.java @@ -0,0 +1,100 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * `BasicLevel` is an `AccessLevel` using a set of recommended features. + * + *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 Access Context Manager 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 BasicLevel extends com.google.api.client.json.GenericJson { + + /** + * How the `conditions` list should be combined to determine if a request is granted this + * `AccessLevel`. If AND is used, each `Condition` in `conditions` must be satisfied for the + * `AccessLevel` to be applied. If OR is used, at least one `Condition` in `conditions` must be + * satisfied for the `AccessLevel` to be applied. Default behavior is AND. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String combiningFunction; + + /** + * Required. A list of requirements for the `AccessLevel` to be granted. + * 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 Access Context Manager 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 CancelOperationRequest extends com.google.api.client.json.GenericJson { + + @Override + public CancelOperationRequest set(String fieldName, Object value) { + return (CancelOperationRequest) super.set(fieldName, value); + } + + @Override + public CancelOperationRequest clone() { + return (CancelOperationRequest) super.clone(); + } + +} diff --git a/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/Condition.java b/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/Condition.java new file mode 100644 index 00000000000..dcca9056144 --- /dev/null +++ b/clients/1.28.0/google-api-services-accesscontextmanager/v1/com/google/api/services/accesscontextmanager/v1/model/Condition.java @@ -0,0 +1,202 @@ +/* + * 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.accesscontextmanager.v1.model; + +/** + * A condition necessary for an `AccessLevel` to be granted. The Condition is an AND over its + * fields. So a Condition is true if: 1) the request IP is from one of the listed subnetworks AND 2) + * the originating device complies with the listed device policy AND 3) all listed access levels are + * granted AND 4) the request was sent at a time allowed by the DateTimeRestriction. + * + *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 Access Context Manager 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 Condition extends com.google.api.client.json.GenericJson { + + /** + * Device specific restrictions, all restrictions must hold for the Condition to be true. If not + * specified, all devices are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DevicePolicy devicePolicy; + + /** + * CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a CIDR IP address + * block, the specified IP address portion must be properly truncated (i.e. all the host bits must + * be zero) or the input is considered malformed. For example, "192.0.2.0/24" is accepted but + * "192.0.2.1/24" is not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas + * "2001:db8::1/32" is not. The originating IP of a request must be in one of the listed subnets + * in order for this Condition to be true. If empty, all IP addresses are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List