From 51e3ed079e0c22c601707f60949f58c93025374a Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Wed, 21 Oct 2026 18:06:35 -0700 Subject: [PATCH] chore: regenerate beyondcorp client --- .../v1/2.0.0/README.md | 4 +- .../services/beyondcorp/v1/BeyondCorp.java | 1475 +--- ...orpAppconnectorsV1ReportStatusRequest.java | 138 - .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- .../v1alpha/2.0.0/README.md | 4 +- .../beyondcorp/v1alpha/BeyondCorp.java | 6707 ++++++----------- ...pconnectorsV1alphaReportStatusRequest.java | 138 - .../v1alpha/model/ReportStatusRequest.java | 138 - .../v1alpha/2.0.0/pom.xml | 4 +- .../v1alpha/README.md | 4 +- 11 files changed, 2257 insertions(+), 6363 deletions(-) delete mode 100644 clients/google-api-services-beyondcorp/v1/2.0.0/com/google/api/services/beyondcorp/v1/model/GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest.java delete mode 100644 clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/model/GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest.java delete mode 100644 clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/model/ReportStatusRequest.java diff --git a/clients/google-api-services-beyondcorp/v1/2.0.0/README.md b/clients/google-api-services-beyondcorp/v1/2.0.0/README.md index 4383f698d7b..88ad8f61224 100644 --- a/clients/google-api-services-beyondcorp/v1/2.0.0/README.md +++ b/clients/google-api-services-beyondcorp/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-beyondcorp - v1-rev20261007-2.0.0 + v1-rev20261014-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-beyondcorp:v1-rev20261007-2.0.0' + implementation 'com.google.apis:google-api-services-beyondcorp:v1-rev20261014-2.0.0' } ``` diff --git a/clients/google-api-services-beyondcorp/v1/2.0.0/com/google/api/services/beyondcorp/v1/BeyondCorp.java b/clients/google-api-services-beyondcorp/v1/2.0.0/com/google/api/services/beyondcorp/v1/BeyondCorp.java index 6308951f8c8..30cff421e96 100644 --- a/clients/google-api-services-beyondcorp/v1/2.0.0/com/google/api/services/beyondcorp/v1/BeyondCorp.java +++ b/clients/google-api-services-beyondcorp/v1/2.0.0/com/google/api/services/beyondcorp/v1/BeyondCorp.java @@ -1276,235 +1276,6 @@ public AppConnections appConnections() { */ public class AppConnections { - /** - * Creates a new AppConnection in a given project and location. - * - * Create a request for the method "appConnections.create". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource project name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1AppConnection} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1AppConnection content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends BeyondCorpRequest { - - private static final String REST_PATH = "v1/{+parent}/appConnections"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates a new AppConnection in a given project and location. - * - * Create a request for the method "appConnections.create". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

- * - * @param parent Required. The resource project name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1AppConnection} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1AppConnection content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource project name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource project name of the AppConnection location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource project name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_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 " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. User-settable AppConnection resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - @com.google.api.client.util.Key - private java.lang.String appConnectionId; - - /** Optional. User-settable AppConnection resource ID. * Must start with a letter. * Must contain - between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public java.lang.String getAppConnectionId() { - return appConnectionId; - } - - /** - * Optional. User-settable AppConnection resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public Create setAppConnectionId(java.lang.String appConnectionId) { - this.appConnectionId = appConnectionId; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients from - * accidentally creating duplicate commitments. The request ID must be a valid UUID with - * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if the original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with - the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients from - * accidentally creating duplicate commitments. The request ID must be a valid UUID with - * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Create setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } /** * Deletes a single AppConnection. * @@ -2294,325 +2065,75 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single AppConnection. + * Resolves AppConnections details for a given AppConnector. An internal method called by a + * connector to find AppConnections to connect to. * - * Create a request for the method "appConnections.patch". + * Create a request for the method "appConnections.resolve". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Resolve#execute()} method to invoke the remote operation. * - * @param name Required. Unique resource name of the AppConnection. The name is ignored when creating a - * AppConnection. - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1AppConnection} + * @param parent Required. The resource name of the AppConnection location using the form: + * `projects/{project_id}/locations/{location_id}` * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1AppConnection content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Resolve resolve(java.lang.String parent) throws java.io.IOException { + Resolve result = new Resolve(parent); initialize(result); return result; } - public class Patch extends BeyondCorpRequest { + public class Resolve extends BeyondCorpRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/appConnections:resolve"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Updates the parameters of a single AppConnection. + * Resolves AppConnections details for a given AppConnector. An internal method called by a + * connector to find AppConnections to connect to. * - * Create a request for the method "appConnections.patch". + * Create a request for the method "appConnections.resolve". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Resolve#execute()} method to invoke the remote operation. *

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

* - * @param name Required. Unique resource name of the AppConnection. The name is ignored when creating a - * AppConnection. - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1AppConnection} + * @param parent Required. The resource name of the AppConnection location using the form: + * `projects/{project_id}/locations/{location_id}` * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1AppConnection content) { - super(BeyondCorp.this, "PATCH", REST_PATH, content, com.google.api.services.beyondcorp.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Resolve(java.lang.String parent) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Resolve set$Xgafv(java.lang.String $Xgafv) { + return (Resolve) super.set$Xgafv($Xgafv); } @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. Unique resource name of the AppConnection. The name is ignored when creating - * a AppConnection. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Unique resource name of the AppConnection. The name is ignored when creating a - AppConnection. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Unique resource name of the AppConnection. The name is ignored when creating - * a AppConnection. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$"); - } - this.name = name; - return this; - } - - /** Optional. If set as true, will create the resource if it is not found. */ - @com.google.api.client.util.Key - private java.lang.Boolean allowMissing; - - /** Optional. If set as true, will create the resource if it is not found. - */ - public java.lang.Boolean getAllowMissing() { - return allowMissing; - } - - /** Optional. If set as true, will create the resource if it is not found. */ - public Patch setAllowMissing(java.lang.Boolean allowMissing) { - this.allowMissing = allowMissing; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients from - * accidentally creating duplicate commitments. The request ID must be a valid UUID with - * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if the original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with - the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients from - * accidentally creating duplicate commitments. The request ID must be a valid UUID with - * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.AppConnection]: * `labels` * `display_name` * `application_endpoint` * - * `connectors` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements - of the repeated paths field may only include these fields from [BeyondCorp.AppConnection]: * - `labels` * `display_name` * `application_endpoint` * `connectors` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.AppConnection]: * `labels` * `display_name` * `application_endpoint` * - * `connectors` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Patch setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Resolves AppConnections details for a given AppConnector. An internal method called by a - * connector to find AppConnections to connect to. - * - * Create a request for the method "appConnections.resolve". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Resolve#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @return the request - */ - public Resolve resolve(java.lang.String parent) throws java.io.IOException { - Resolve result = new Resolve(parent); - initialize(result); - return result; - } - - public class Resolve extends BeyondCorpRequest { - - private static final String REST_PATH = "v1/{+parent}/appConnections:resolve"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Resolves AppConnections details for a given AppConnector. An internal method called by a - * connector to find AppConnections to connect to. - * - * Create a request for the method "appConnections.resolve". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Resolve#execute()} method to invoke the remote operation. - *

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

- * - * @param parent Required. The resource name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @since 1.13 - */ - protected Resolve(java.lang.String parent) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Resolve set$Xgafv(java.lang.String $Xgafv) { - return (Resolve) super.set$Xgafv($Xgafv); - } - - @Override - public Resolve setAccessToken(java.lang.String accessToken) { - return (Resolve) super.setAccessToken(accessToken); + public Resolve setAccessToken(java.lang.String accessToken) { + return (Resolve) super.setAccessToken(accessToken); } @Override @@ -3090,277 +2611,48 @@ public AppConnectors appConnectors() { public class AppConnectors { /** - * Creates a new AppConnector in a given project and location. + * Deletes a single AppConnector. * - * Create a request for the method "appConnectors.create". + * Create a request for the method "appConnectors.delete". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param parent Required. The resource project name of the AppConnector location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1AppConnector} + * @param name Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}` * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1AppConnector content) throws java.io.IOException { - Create result = new Create(parent, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Create extends BeyondCorpRequest { + public class Delete extends BeyondCorpRequest { - private static final String REST_PATH = "v1/{+parent}/appConnectors"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); /** - * Creates a new AppConnector in a given project and location. + * Deletes a single AppConnector. * - * Create a request for the method "appConnectors.create". + * Create a request for the method "appConnectors.delete". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

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

* - * @param parent Required. The resource project name of the AppConnector location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1AppConnector} + * @param name Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}` * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1AppConnector content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource project name of the AppConnector location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource project name of the AppConnector location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource project name of the AppConnector location using the form: - * `projects/{project_id}/locations/{location_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 " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. User-settable AppConnector resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - @com.google.api.client.util.Key - private java.lang.String appConnectorId; - - /** Optional. User-settable AppConnector resource ID. * Must start with a letter. * Must contain - between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public java.lang.String getAppConnectorId() { - return appConnectorId; - } - - /** - * Optional. User-settable AppConnector resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public Create setAppConnectorId(java.lang.String appConnectorId) { - this.appConnectorId = appConnectorId; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Create setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single AppConnector. - * - * Create a request for the method "appConnectors.delete". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. BeyondCorp AppConnector name using the form: - * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_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 BeyondCorpRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); - - /** - * Deletes a single AppConnector. - * - * Create a request for the method "appConnectors.delete". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. BeyondCorp AppConnector name using the form: - * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Delete(java.lang.String name) { + super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1.model.GoogleLongrunningOperation.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 " + @@ -4107,438 +3399,66 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single AppConnector. + * Gets instance configuration for a given AppConnector. An internal method called by a AppConnector + * to get its container config. * - * Create a request for the method "appConnectors.patch". + * Create a request for the method "appConnectors.resolveInstanceConfig". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link ResolveInstanceConfig#execute()} method to invoke the remote + * operation. * - * @param name Required. Unique resource name of the AppConnector. The name is ignored when creating a - * AppConnector. - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1AppConnector} + * @param appConnector Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1AppConnector content) throws java.io.IOException { - Patch result = new Patch(name, content); + public ResolveInstanceConfig resolveInstanceConfig(java.lang.String appConnector) throws java.io.IOException { + ResolveInstanceConfig result = new ResolveInstanceConfig(appConnector); initialize(result); return result; } - public class Patch extends BeyondCorpRequest { + public class ResolveInstanceConfig extends BeyondCorpRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+appConnector}:resolveInstanceConfig"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern APP_CONNECTOR_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); /** - * Updates the parameters of a single AppConnector. + * Gets instance configuration for a given AppConnector. An internal method called by a + * AppConnector to get its container config. * - * Create a request for the method "appConnectors.patch". + * Create a request for the method "appConnectors.resolveInstanceConfig". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

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

+ * optional parameters, call the {@link ResolveInstanceConfig#execute()} method to invoke the + * remote operation.

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

* - * @param name Required. Unique resource name of the AppConnector. The name is ignored when creating a - * AppConnector. - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1AppConnector} + * @param appConnector Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1AppConnector content) { - super(BeyondCorp.this, "PATCH", REST_PATH, content, com.google.api.services.beyondcorp.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected ResolveInstanceConfig(java.lang.String appConnector) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponse.class); + this.appConnector = com.google.api.client.util.Preconditions.checkNotNull(appConnector, "Required parameter appConnector must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(APP_CONNECTOR_PATTERN.matcher(appConnector).matches(), + "Parameter appConnector must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @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. Unique resource name of the AppConnector. The name is ignored when creating a - * AppConnector. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Unique resource name of the AppConnector. The name is ignored when creating a - AppConnector. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Unique resource name of the AppConnector. The name is ignored when creating a - * AppConnector. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.AppConnector]: * `labels` * `display_name` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements - of the repeated paths field may only include these fields from [BeyondCorp.AppConnector]: * - `labels` * `display_name` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.AppConnector]: * `labels` * `display_name` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Patch setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Report status for a given connector. - * - * Create a request for the method "appConnectors.reportStatus". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link ReportStatus#execute()} method to invoke the remote operation. - * - * @param appConnector Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector}` - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest} - * @return the request - */ - public ReportStatus reportStatus(java.lang.String appConnector, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest content) throws java.io.IOException { - ReportStatus result = new ReportStatus(appConnector, content); - initialize(result); - return result; - } - - public class ReportStatus extends BeyondCorpRequest { - - private static final String REST_PATH = "v1/{+appConnector}:reportStatus"; - - private final java.util.regex.Pattern APP_CONNECTOR_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); - - /** - * Report status for a given connector. - * - * Create a request for the method "appConnectors.reportStatus". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link ReportStatus#execute()} method to invoke the remote - * operation.

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

- * - * @param appConnector Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector}` - * @param content the {@link com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest} - * @since 1.13 - */ - protected ReportStatus(java.lang.String appConnector, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1.model.GoogleLongrunningOperation.class); - this.appConnector = com.google.api.client.util.Preconditions.checkNotNull(appConnector, "Required parameter appConnector must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(APP_CONNECTOR_PATTERN.matcher(appConnector).matches(), - "Parameter appConnector must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); - } - } - - @Override - public ReportStatus set$Xgafv(java.lang.String $Xgafv) { - return (ReportStatus) super.set$Xgafv($Xgafv); - } - - @Override - public ReportStatus setAccessToken(java.lang.String accessToken) { - return (ReportStatus) super.setAccessToken(accessToken); - } - - @Override - public ReportStatus setAlt(java.lang.String alt) { - return (ReportStatus) super.setAlt(alt); - } - - @Override - public ReportStatus setCallback(java.lang.String callback) { - return (ReportStatus) super.setCallback(callback); - } - - @Override - public ReportStatus setFields(java.lang.String fields) { - return (ReportStatus) super.setFields(fields); - } - - @Override - public ReportStatus setKey(java.lang.String key) { - return (ReportStatus) super.setKey(key); - } - - @Override - public ReportStatus setOauthToken(java.lang.String oauthToken) { - return (ReportStatus) super.setOauthToken(oauthToken); - } - - @Override - public ReportStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReportStatus) super.setPrettyPrint(prettyPrint); - } - - @Override - public ReportStatus setQuotaUser(java.lang.String quotaUser) { - return (ReportStatus) super.setQuotaUser(quotaUser); - } - - @Override - public ReportStatus setUploadType(java.lang.String uploadType) { - return (ReportStatus) super.setUploadType(uploadType); - } - - @Override - public ReportStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (ReportStatus) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector}` - */ - @com.google.api.client.util.Key - private java.lang.String appConnector; - - /** Required. BeyondCorp Connector name using the form: - `projects/{project_id}/locations/{location_id}/connectors/{connector}` - */ - public java.lang.String getAppConnector() { - return appConnector; - } - - /** - * Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector}` - */ - public ReportStatus setAppConnector(java.lang.String appConnector) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(APP_CONNECTOR_PATTERN.matcher(appConnector).matches(), - "Parameter appConnector must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); - } - this.appConnector = appConnector; - return this; - } - - @Override - public ReportStatus set(String parameterName, Object value) { - return (ReportStatus) super.set(parameterName, value); - } - } - /** - * Gets instance configuration for a given AppConnector. An internal method called by a AppConnector - * to get its container config. - * - * Create a request for the method "appConnectors.resolveInstanceConfig". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link ResolveInstanceConfig#execute()} method to invoke the remote - * operation. - * - * @param appConnector Required. BeyondCorp AppConnector name using the form: - * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` - * @return the request - */ - public ResolveInstanceConfig resolveInstanceConfig(java.lang.String appConnector) throws java.io.IOException { - ResolveInstanceConfig result = new ResolveInstanceConfig(appConnector); - initialize(result); - return result; - } - - public class ResolveInstanceConfig extends BeyondCorpRequest { - - private static final String REST_PATH = "v1/{+appConnector}:resolveInstanceConfig"; - - private final java.util.regex.Pattern APP_CONNECTOR_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); - - /** - * Gets instance configuration for a given AppConnector. An internal method called by a - * AppConnector to get its container config. - * - * Create a request for the method "appConnectors.resolveInstanceConfig". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link ResolveInstanceConfig#execute()} method to invoke the - * remote operation.

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

- * - * @param appConnector Required. BeyondCorp AppConnector name using the form: - * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` - * @since 1.13 - */ - protected ResolveInstanceConfig(java.lang.String appConnector) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1.model.GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponse.class); - this.appConnector = com.google.api.client.util.Preconditions.checkNotNull(appConnector, "Required parameter appConnector must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(APP_CONNECTOR_PATTERN.matcher(appConnector).matches(), - "Parameter appConnector must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); - } - } - - @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(); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override @@ -4949,235 +3869,6 @@ public AppGateways appGateways() { */ public class AppGateways { - /** - * Creates a new AppGateway in a given project and location. - * - * Create a request for the method "appGateways.create". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource project name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1.model.AppGateway} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.beyondcorp.v1.model.AppGateway content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends BeyondCorpRequest { - - private static final String REST_PATH = "v1/{+parent}/appGateways"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates a new AppGateway in a given project and location. - * - * Create a request for the method "appGateways.create". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

- * - * @param parent Required. The resource project name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1.model.AppGateway} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.beyondcorp.v1.model.AppGateway content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource project name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource project name of the AppGateway location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource project name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_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 " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. User-settable AppGateway resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - @com.google.api.client.util.Key - private java.lang.String appGatewayId; - - /** Optional. User-settable AppGateway resource ID. * Must start with a letter. * Must contain between - 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public java.lang.String getAppGatewayId() { - return appGatewayId; - } - - /** - * Optional. User-settable AppGateway resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public Create setAppGatewayId(java.lang.String appGatewayId) { - this.appGatewayId = appGatewayId; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Create setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } /** * Deletes a single AppGateway. * diff --git a/clients/google-api-services-beyondcorp/v1/2.0.0/com/google/api/services/beyondcorp/v1/model/GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest.java b/clients/google-api-services-beyondcorp/v1/2.0.0/com/google/api/services/beyondcorp/v1/model/GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest.java deleted file mode 100644 index 21385e6b478..00000000000 --- a/clients/google-api-services-beyondcorp/v1/2.0.0/com/google/api/services/beyondcorp/v1/model/GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.beyondcorp.v1.model; - -/** - * Request report the connector status. - * - *

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 BeyondCorp 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 GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so that if - * you must retry your request, the server will know to ignore the request if it has already been - * completed. The server will guarantee that for at least 60 minutes since the first request. For - * example, consider a situation where you make an initial request and the request times out. If - * you make the request again with the same request ID, the server can check if original operation - * with the same request ID was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. The request ID must be a valid UUID - * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** - * Required. Resource info of the connector. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudBeyondcorpAppconnectorsV1ResourceInfo resourceInfo; - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the resource - * in any way. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so that if - * you must retry your request, the server will know to ignore the request if it has already been - * completed. The server will guarantee that for at least 60 minutes since the first request. For - * example, consider a situation where you make an initial request and the request times out. If - * you make the request again with the same request ID, the server can check if original operation - * with the same request ID was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. The request ID must be a valid UUID - * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @return value or {@code null} for none - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so that if - * you must retry your request, the server will know to ignore the request if it has already been - * completed. The server will guarantee that for at least 60 minutes since the first request. For - * example, consider a situation where you make an initial request and the request times out. If - * you make the request again with the same request ID, the server can check if original operation - * with the same request ID was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. The request ID must be a valid UUID - * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param requestId requestId or {@code null} for none - */ - public GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Required. Resource info of the connector. - * @return value or {@code null} for none - */ - public GoogleCloudBeyondcorpAppconnectorsV1ResourceInfo getResourceInfo() { - return resourceInfo; - } - - /** - * Required. Resource info of the connector. - * @param resourceInfo resourceInfo or {@code null} for none - */ - public GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest setResourceInfo(GoogleCloudBeyondcorpAppconnectorsV1ResourceInfo resourceInfo) { - this.resourceInfo = resourceInfo; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the resource - * in any way. - * @return value or {@code null} for none - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the resource - * in any way. - * @param validateOnly validateOnly or {@code null} for none - */ - public GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest set(String fieldName, Object value) { - return (GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest clone() { - return (GoogleCloudBeyondcorpAppconnectorsV1ReportStatusRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-beyondcorp/v1/2.0.0/pom.xml b/clients/google-api-services-beyondcorp/v1/2.0.0/pom.xml index 7742132970a..83c7c11b8d5 100644 --- a/clients/google-api-services-beyondcorp/v1/2.0.0/pom.xml +++ b/clients/google-api-services-beyondcorp/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-beyondcorp - v1-rev20261007-2.0.0 - BeyondCorp API v1-rev20261007-2.0.0 + v1-rev20261014-2.0.0 + BeyondCorp API v1-rev20261014-2.0.0 jar 2011 diff --git a/clients/google-api-services-beyondcorp/v1/README.md b/clients/google-api-services-beyondcorp/v1/README.md index 4383f698d7b..88ad8f61224 100644 --- a/clients/google-api-services-beyondcorp/v1/README.md +++ b/clients/google-api-services-beyondcorp/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-beyondcorp - v1-rev20261007-2.0.0 + v1-rev20261014-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-beyondcorp:v1-rev20261007-2.0.0' + implementation 'com.google.apis:google-api-services-beyondcorp:v1-rev20261014-2.0.0' } ``` diff --git a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/README.md b/clients/google-api-services-beyondcorp/v1alpha/2.0.0/README.md index dcc9c89405f..d458e76cada 100644 --- a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-beyondcorp/v1alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-beyondcorp - v1alpha-rev20261007-2.0.0 + v1alpha-rev20261014-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-beyondcorp:v1alpha-rev20261007-2.0.0' + implementation 'com.google.apis:google-api-services-beyondcorp:v1alpha-rev20261014-2.0.0' } ``` diff --git a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/BeyondCorp.java b/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/BeyondCorp.java index 4577908dc7d..e481295e8f4 100644 --- a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/BeyondCorp.java +++ b/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/BeyondCorp.java @@ -3283,235 +3283,6 @@ public AppConnections appConnections() { */ public class AppConnections { - /** - * Creates a new AppConnection in a given project and location. - * - * Create a request for the method "appConnections.create". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource project name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+parent}/appConnections"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates a new AppConnection in a given project and location. - * - * Create a request for the method "appConnections.create". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

- * - * @param parent Required. The resource project name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource project name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource project name of the AppConnection location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource project name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_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 " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. User-settable AppConnection resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - @com.google.api.client.util.Key - private java.lang.String appConnectionId; - - /** Optional. User-settable AppConnection resource ID. * Must start with a letter. * Must contain - between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public java.lang.String getAppConnectionId() { - return appConnectionId; - } - - /** - * Optional. User-settable AppConnection resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public Create setAppConnectionId(java.lang.String appConnectionId) { - this.appConnectionId = appConnectionId; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients from - * accidentally creating duplicate commitments. The request ID must be a valid UUID with - * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if the original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with - the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients from - * accidentally creating duplicate commitments. The request ID must be a valid UUID with - * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Create setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } /** * Deletes a single AppConnection. * @@ -4301,320 +4072,70 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single AppConnection. + * Resolves AppConnections details for a given AppConnector. An internal method called by a + * connector to find AppConnections to connect to. * - * Create a request for the method "appConnections.patch". + * Create a request for the method "appConnections.resolve". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Resolve#execute()} method to invoke the remote operation. * - * @param name Required. Unique resource name of the AppConnection. The name is ignored when creating a - * AppConnection. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection} + * @param parent Required. The resource name of the AppConnection location using the form: + * `projects/{project_id}/locations/{location_id}` * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Resolve resolve(java.lang.String parent) throws java.io.IOException { + Resolve result = new Resolve(parent); initialize(result); return result; } - public class Patch extends BeyondCorpRequest { + public class Resolve extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+name}"; + private static final String REST_PATH = "v1alpha/{+parent}/appConnections:resolve"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Updates the parameters of a single AppConnection. + * Resolves AppConnections details for a given AppConnector. An internal method called by a + * connector to find AppConnections to connect to. * - * Create a request for the method "appConnections.patch". + * Create a request for the method "appConnections.resolve". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Resolve#execute()} method to invoke the remote operation. *

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

* - * @param name Required. Unique resource name of the AppConnection. The name is ignored when creating a - * AppConnection. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection} + * @param parent Required. The resource name of the AppConnection location using the form: + * `projects/{project_id}/locations/{location_id}` * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection content) { - super(BeyondCorp.this, "PATCH", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Resolve(java.lang.String parent) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @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. Unique resource name of the AppConnection. The name is ignored when creating - * a AppConnection. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Unique resource name of the AppConnection. The name is ignored when creating a - AppConnection. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Unique resource name of the AppConnection. The name is ignored when creating - * a AppConnection. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnections/[^/]+$"); - } - this.name = name; - return this; - } - - /** Optional. If set as true, will create the resource if it is not found. */ - @com.google.api.client.util.Key - private java.lang.Boolean allowMissing; - - /** Optional. If set as true, will create the resource if it is not found. - */ - public java.lang.Boolean getAllowMissing() { - return allowMissing; - } - - /** Optional. If set as true, will create the resource if it is not found. */ - public Patch setAllowMissing(java.lang.Boolean allowMissing) { - this.allowMissing = allowMissing; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients from - * accidentally creating duplicate commitments. The request ID must be a valid UUID with - * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if the original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with - the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients from - * accidentally creating duplicate commitments. The request ID must be a valid UUID with - * the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.AppConnection]: * `labels` * `display_name` * `application_endpoint` * - * `connectors` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements - of the repeated paths field may only include these fields from [BeyondCorp.AppConnection]: * - `labels` * `display_name` * `application_endpoint` * `connectors` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.AppConnection]: * `labels` * `display_name` * `application_endpoint` * - * `connectors` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Patch setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Resolves AppConnections details for a given AppConnector. An internal method called by a - * connector to find AppConnections to connect to. - * - * Create a request for the method "appConnections.resolve". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Resolve#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @return the request - */ - public Resolve resolve(java.lang.String parent) throws java.io.IOException { - Resolve result = new Resolve(parent); - initialize(result); - return result; - } - - public class Resolve extends BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+parent}/appConnections:resolve"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Resolves AppConnections details for a given AppConnector. An internal method called by a - * connector to find AppConnections to connect to. - * - * Create a request for the method "appConnections.resolve". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Resolve#execute()} method to invoke the remote operation. - *

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

- * - * @param parent Required. The resource name of the AppConnection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @since 1.13 - */ - protected Resolve(java.lang.String parent) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Resolve set$Xgafv(java.lang.String $Xgafv) { - return (Resolve) super.set$Xgafv($Xgafv); + public Resolve set$Xgafv(java.lang.String $Xgafv) { + return (Resolve) super.set$Xgafv($Xgafv); } @Override @@ -5097,277 +4618,48 @@ public AppConnectors appConnectors() { public class AppConnectors { /** - * Creates a new AppConnector in a given project and location. + * Deletes a single AppConnector. * - * Create a request for the method "appConnectors.create". + * Create a request for the method "appConnectors.delete". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param parent Required. The resource project name of the AppConnector location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector} + * @param name Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}` * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector content) throws java.io.IOException { - Create result = new Create(parent, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Create extends BeyondCorpRequest { + public class Delete extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+parent}/appConnectors"; + private static final String REST_PATH = "v1alpha/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); /** - * Creates a new AppConnector in a given project and location. + * Deletes a single AppConnector. * - * Create a request for the method "appConnectors.create". + * Create a request for the method "appConnectors.delete". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

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

* - * @param parent Required. The resource project name of the AppConnector location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector} + * @param name Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}` * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource project name of the AppConnector location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource project name of the AppConnector location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource project name of the AppConnector location using the form: - * `projects/{project_id}/locations/{location_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 " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. User-settable AppConnector resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - @com.google.api.client.util.Key - private java.lang.String appConnectorId; - - /** Optional. User-settable AppConnector resource ID. * Must start with a letter. * Must contain - between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public java.lang.String getAppConnectorId() { - return appConnectorId; - } - - /** - * Optional. User-settable AppConnector resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public Create setAppConnectorId(java.lang.String appConnectorId) { - this.appConnectorId = appConnectorId; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Create setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single AppConnector. - * - * Create a request for the method "appConnectors.delete". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. BeyondCorp AppConnector name using the form: - * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_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 BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); - - /** - * Deletes a single AppConnector. - * - * Create a request for the method "appConnectors.delete". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. BeyondCorp AppConnector name using the form: - * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Delete(java.lang.String name) { + super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.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 " + @@ -6114,1474 +5406,1463 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single AppConnector. + * Gets instance configuration for a given AppConnector. An internal method called by a AppConnector + * to get its container config. * - * Create a request for the method "appConnectors.patch". + * Create a request for the method "appConnectors.resolveInstanceConfig". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link ResolveInstanceConfig#execute()} method to invoke the remote + * operation. * - * @param name Required. Unique resource name of the AppConnector. The name is ignored when creating a - * AppConnector. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector} + * @param appConnector Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector content) throws java.io.IOException { - Patch result = new Patch(name, content); + public ResolveInstanceConfig resolveInstanceConfig(java.lang.String appConnector) throws java.io.IOException { + ResolveInstanceConfig result = new ResolveInstanceConfig(appConnector); initialize(result); return result; } - public class Patch extends BeyondCorpRequest { + public class ResolveInstanceConfig extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+name}"; + private static final String REST_PATH = "v1alpha/{+appConnector}:resolveInstanceConfig"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern APP_CONNECTOR_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); /** - * Updates the parameters of a single AppConnector. + * Gets instance configuration for a given AppConnector. An internal method called by a + * AppConnector to get its container config. * - * Create a request for the method "appConnectors.patch". + * Create a request for the method "appConnectors.resolveInstanceConfig". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

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

+ * optional parameters, call the {@link ResolveInstanceConfig#execute()} method to invoke the + * remote operation.

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

* - * @param name Required. Unique resource name of the AppConnector. The name is ignored when creating a - * AppConnector. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector} + * @param appConnector Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector content) { - super(BeyondCorp.this, "PATCH", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected ResolveInstanceConfig(java.lang.String appConnector) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse.class); + this.appConnector = com.google.api.client.util.Preconditions.checkNotNull(appConnector, "Required parameter appConnector must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(APP_CONNECTOR_PATTERN.matcher(appConnector).matches(), + "Parameter appConnector must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); } } @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); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public ResolveInstanceConfig set$Xgafv(java.lang.String $Xgafv) { + return (ResolveInstanceConfig) super.set$Xgafv($Xgafv); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public ResolveInstanceConfig setAccessToken(java.lang.String accessToken) { + return (ResolveInstanceConfig) super.setAccessToken(accessToken); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public ResolveInstanceConfig setAlt(java.lang.String alt) { + return (ResolveInstanceConfig) super.setAlt(alt); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public ResolveInstanceConfig setCallback(java.lang.String callback) { + return (ResolveInstanceConfig) super.setCallback(callback); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public ResolveInstanceConfig setFields(java.lang.String fields) { + return (ResolveInstanceConfig) super.setFields(fields); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public ResolveInstanceConfig setKey(java.lang.String key) { + return (ResolveInstanceConfig) super.setKey(key); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public ResolveInstanceConfig setOauthToken(java.lang.String oauthToken) { + return (ResolveInstanceConfig) super.setOauthToken(oauthToken); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Unique resource name of the AppConnector. The name is ignored when creating a - * AppConnector. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Unique resource name of the AppConnector. The name is ignored when creating a - AppConnector. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Unique resource name of the AppConnector. The name is ignored when creating a - * AppConnector. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; + public ResolveInstanceConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResolveInstanceConfig) super.setPrettyPrint(prettyPrint); } - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; + @Override + public ResolveInstanceConfig setQuotaUser(java.lang.String quotaUser) { + return (ResolveInstanceConfig) super.setQuotaUser(quotaUser); } - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.AppConnector]: * `labels` * `display_name` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements - of the repeated paths field may only include these fields from [BeyondCorp.AppConnector]: * - `labels` * `display_name` - */ - public String getUpdateMask() { - return updateMask; + @Override + public ResolveInstanceConfig setUploadType(java.lang.String uploadType) { + return (ResolveInstanceConfig) super.setUploadType(uploadType); } - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.AppConnector]: * `labels` * `display_name` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; + @Override + public ResolveInstanceConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (ResolveInstanceConfig) super.setUploadProtocol(uploadProtocol); } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` */ @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + private java.lang.String appConnector; - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. + /** Required. BeyondCorp AppConnector name using the form: + `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.String getAppConnector() { + return appConnector; } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Required. BeyondCorp AppConnector name using the form: + * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` */ - public Patch setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + public ResolveInstanceConfig setAppConnector(java.lang.String appConnector) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(APP_CONNECTOR_PATTERN.matcher(appConnector).matches(), + "Parameter appConnector must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); + } + this.appConnector = appConnector; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public ResolveInstanceConfig set(String parameterName, Object value) { + return (ResolveInstanceConfig) super.set(parameterName, value); } } /** - * Report status for a given connector. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "appConnectors.reportStatus". + * Create a request for the method "appConnectors.setIamPolicy". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link ReportStatus#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param appConnector Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest} + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} * @return the request */ - public ReportStatus reportStatus(java.lang.String appConnector, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest content) throws java.io.IOException { - ReportStatus result = new ReportStatus(appConnector, content); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class ReportStatus extends BeyondCorpRequest { + public class SetIamPolicy extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+appConnector}:reportStatus"; + private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern APP_CONNECTOR_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); /** - * Report status for a given connector. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "appConnectors.reportStatus". + * Create a request for the method "appConnectors.setIamPolicy". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link ReportStatus#execute()} method to invoke the remote + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote * operation.

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

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

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

+ * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

* - * @param appConnector Required. BeyondCorp AppConnector name using the form: - * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest} * @since 1.13 */ - protected ResolveInstanceConfig(java.lang.String appConnector) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse.class); - this.appConnector = com.google.api.client.util.Preconditions.checkNotNull(appConnector, "Required parameter appConnector must be specified."); + protected TestIamPermissions(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest content) { + super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(APP_CONNECTOR_PATTERN.matcher(appConnector).matches(), - "Parameter appConnector must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); } } @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 ResolveInstanceConfig set$Xgafv(java.lang.String $Xgafv) { - return (ResolveInstanceConfig) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ResolveInstanceConfig setAccessToken(java.lang.String accessToken) { - return (ResolveInstanceConfig) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ResolveInstanceConfig setAlt(java.lang.String alt) { - return (ResolveInstanceConfig) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ResolveInstanceConfig setCallback(java.lang.String callback) { - return (ResolveInstanceConfig) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ResolveInstanceConfig setFields(java.lang.String fields) { - return (ResolveInstanceConfig) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ResolveInstanceConfig setKey(java.lang.String key) { - return (ResolveInstanceConfig) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ResolveInstanceConfig setOauthToken(java.lang.String oauthToken) { - return (ResolveInstanceConfig) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ResolveInstanceConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ResolveInstanceConfig) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ResolveInstanceConfig setQuotaUser(java.lang.String quotaUser) { - return (ResolveInstanceConfig) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ResolveInstanceConfig setUploadType(java.lang.String uploadType) { - return (ResolveInstanceConfig) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ResolveInstanceConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (ResolveInstanceConfig) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** - * Required. BeyondCorp AppConnector name using the form: - * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String appConnector; + private java.lang.String resource; - /** Required. BeyondCorp AppConnector name using the form: - `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getAppConnector() { - return appConnector; + public java.lang.String getResource() { + return resource; } /** - * Required. BeyondCorp AppConnector name using the form: - * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector}` + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public ResolveInstanceConfig setAppConnector(java.lang.String appConnector) { + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(APP_CONNECTOR_PATTERN.matcher(appConnector).matches(), - "Parameter appConnector must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); } - this.appConnector = appConnector; + this.resource = resource; return this; } @Override - public ResolveInstanceConfig set(String parameterName, Object value) { - return (ResolveInstanceConfig) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the AppGateways collection. + * + *

The typical use is:

+ *
+       *   {@code BeyondCorp beyondcorp = new BeyondCorp(...);}
+       *   {@code BeyondCorp.AppGateways.List request = beyondcorp.appGateways().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AppGateways appGateways() { + return new AppGateways(); + } + + /** + * The "appGateways" collection of methods. + */ + public class AppGateways { + /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Deletes a single AppGateway. * - * Create a request for the method "appConnectors.setIamPolicy". + * Create a request for the method "appGateways.delete". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} + * @param name Required. BeyondCorp AppGateway name using the form: + * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class SetIamPolicy extends BeyondCorpRequest { + public class Delete extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; + private static final String REST_PATH = "v1alpha/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Deletes a single AppGateway. * - * Create a request for the method "appConnectors.setIamPolicy". + * Create a request for the method "appGateways.delete". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation.

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

+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

* - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} + * @param name Required. BeyondCorp AppGateway name using the form: + * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` * @since 1.13 */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Delete(java.lang.String name) { + super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. BeyondCorp AppGateway name using the form: + * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. BeyondCorp AppGateway name using the form: + `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. BeyondCorp AppGateway name using the form: + * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` */ - public SetIamPolicy setResource(java.lang.String resource) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); } - this.resource = resource; + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. If set, validates request by executing a dry-run which would not alter the + * resource in any way. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If set, validates request by executing a dry-run which would not alter the resource in + any way. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If set, validates request by executing a dry-run which would not alter the + * resource in any way. + */ + public Delete setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. + * Gets details of a single AppGateway. * - * Create a request for the method "appConnectors.testIamPermissions". + * Create a request for the method "appGateways.get". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest} + * @param name Required. BeyondCorp AppGateway name using the form: + * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class TestIamPermissions extends BeyondCorpRequest { + public class Get extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+resource}:testIamPermissions"; + private static final String REST_PATH = "v1alpha/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This - * operation is designed to be used for building permission-aware UIs and command-line tools, not - * for authorization checking. This operation may "fail open" without warning. + * Gets details of a single AppGateway. * - * Create a request for the method "appConnectors.testIamPermissions". + * Create a request for the method "appGateways.get". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest} + * @param name Required. BeyondCorp AppGateway name using the form: + * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` * @since 1.13 */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Get(java.lang.String name) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.AppGateway.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + 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: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. BeyondCorp AppGateway name using the form: + * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. BeyondCorp AppGateway name using the form: + `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. BeyondCorp AppGateway name using the form: + * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` */ - public TestIamPermissions setResource(java.lang.String resource) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appConnectors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); } - this.resource = resource; + this.name = name; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the AppGateways collection. - * - *

The typical use is:

- *
-       *   {@code BeyondCorp beyondcorp = new BeyondCorp(...);}
-       *   {@code BeyondCorp.AppGateways.List request = beyondcorp.appGateways().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public AppGateways appGateways() { - return new AppGateways(); - } - - /** - * The "appGateways" collection of methods. - */ - public class AppGateways { - /** - * Creates a new AppGateway in a given project and location. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "appGateways.create". + * Create a request for the method "appGateways.getIamPolicy". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * - * @param parent Required. The resource project name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.AppGateway} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.AppGateway content) throws java.io.IOException { - Create result = new Create(parent, content); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class Create extends BeyondCorpRequest { + public class GetIamPolicy extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+parent}/appGateways"; + private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); /** - * Creates a new AppGateway in a given project and location. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "appGateways.create". + * Create a request for the method "appGateways.getIamPolicy". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

+ * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

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

* - * @param parent Required. The resource project name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.AppGateway} + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.AppGateway content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource project name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource project name of the AppGateway location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource project name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_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 " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } - /** - * Optional. User-settable AppGateway resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - @com.google.api.client.util.Key - private java.lang.String appGatewayId; - - /** Optional. User-settable AppGateway resource ID. * Must start with a letter. * Must contain between - 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public java.lang.String getAppGatewayId() { - return appGatewayId; + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } - /** - * Optional. User-settable AppGateway resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public Create setAppGatewayId(java.lang.String appGatewayId) { - this.appGatewayId = appGatewayId; - return this; + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); + } + this.resource = resource; return this; } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public Create setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Deletes a single AppGateway. + * Lists AppGateways in a given project and location. * - * Create a request for the method "appGateways.delete". + * Create a request for the method "appGateways.list". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. BeyondCorp AppGateway name using the form: - * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` + * @param parent Required. The resource name of the AppGateway location using the form: + * `projects/{project_id}/locations/{location_id}` * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends BeyondCorpRequest { + public class List extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+name}"; + private static final String REST_PATH = "v1alpha/{+parent}/appGateways"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Deletes a single AppGateway. + * Lists AppGateways in a given project and location. * - * Create a request for the method "appGateways.delete". + * Create a request for the method "appGateways.list". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* - * @param name Required. BeyondCorp AppGateway name using the form: - * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` + * @param parent Required. The resource name of the AppGateway location using the form: + * `projects/{project_id}/locations/{location_id}` * @since 1.13 */ - protected Delete(java.lang.String name) { - super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.ListAppGatewaysResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + 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. BeyondCorp AppGateway name using the form: - * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` + * Required. The resource name of the AppGateway location using the form: + * `projects/{project_id}/locations/{location_id}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. BeyondCorp AppGateway name using the form: - `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` + /** Required. The resource name of the AppGateway location using the form: + `projects/{project_id}/locations/{location_id}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. BeyondCorp AppGateway name using the form: - * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` + * Required. The resource name of the AppGateway location using the form: + * `projects/{project_id}/locations/{location_id}` */ - public Delete setName(java.lang.String name) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** Optional. A filter specifying constraints of a list operation. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A filter specifying constraints of a list operation. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. A filter specifying constraints of a list operation. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * Optional. Specifies the ordering of results. See [Sorting + * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more + * information. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes after the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** Optional. Specifies the ordering of results. See [Sorting + order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * Optional. Specifies the ordering of results. See [Sorting + * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more + * information. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Optional. The maximum number of items to return. If not specified, a default value of + * 50 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's next_page_token to + * determine if there are more instances left to be queried. */ @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + private java.lang.Integer pageSize; - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. + /** Optional. The maximum number of items to return. If not specified, a default value of 50 will be + used by the service. Regardless of the page_size value, the response may include a partial list and + a caller should only rely on response's next_page_token to determine if there are more instances + left to be queried. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Optional. The maximum number of items to return. If not specified, a default value of + * 50 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's next_page_token to + * determine if there are more instances left to be queried. */ - public Delete setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous ListAppGatewaysRequest, if + * any. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous ListAppGatewaysRequest, if any. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous ListAppGatewaysRequest, if + * any. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Gets details of a single AppGateway. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "appGateways.get". + * Create a request for the method "appGateways.setIamPolicy". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param name Required. BeyondCorp AppGateway name using the form: - * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class Get extends BeyondCorpRequest { + public class SetIamPolicy extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+name}"; + private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); /** - * Gets details of a single AppGateway. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "appGateways.get". + * Create a request for the method "appGateways.setIamPolicy". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

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

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

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

+ * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

* - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. + * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest} * @since 1.13 */ - protected GetIamPolicy(java.lang.String resource) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); + protected TestIamPermissions(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest content) { + super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsResponse.class); this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), @@ -7591,79 +6872,69 @@ protected GetIamPolicy(java.lang.String resource) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource + * REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; - /** REQUIRED: The resource for which the policy is being requested. See [Resource + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ @@ -7672,11 +6943,11 @@ public java.lang.String getResource() { } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource + * REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ - public GetIamPolicy setResource(java.lang.String resource) { + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -7686,100 +6957,84 @@ public GetIamPolicy setResource(java.lang.String resource) { return this; } - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } + } + /** + * An accessor for creating requests from the ApplicationDomains collection. + * + *

The typical use is:

+ *
+       *   {@code BeyondCorp beyondcorp = new BeyondCorp(...);}
+       *   {@code BeyondCorp.ApplicationDomains.List request = beyondcorp.applicationDomains().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public ApplicationDomains applicationDomains() { + return new ApplicationDomains(); + } + + /** + * The "applicationDomains" collection of methods. + */ + public class ApplicationDomains { - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } /** - * Lists AppGateways in a given project and location. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "appGateways.list". + * Create a request for the method "applicationDomains.getIamPolicy". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class List extends BeyondCorpRequest { + public class GetIamPolicy extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+parent}/appGateways"; + private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/applicationDomains/[^/]+$"); /** - * Lists AppGateways in a given project and location. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "appGateways.list". + * Create a request for the method "applicationDomains.getIamPolicy". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

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

* - * @param parent Required. The resource name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. * @since 1.13 */ - protected List(java.lang.String parent) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.ListAppGatewaysResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/applicationDomains/[^/]+$"); } } @@ -7794,218 +7049,172 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String resource; - /** Required. The resource name of the AppGateway location using the form: - `projects/{project_id}/locations/{location_id}` + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getResource() { + return resource; } /** - * Required. The resource name of the AppGateway location using the form: - * `projects/{project_id}/locations/{location_id}` + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public List setParent(java.lang.String parent) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/applicationDomains/[^/]+$"); } - this.parent = parent; - return this; - } - - /** Optional. A filter specifying constraints of a list operation. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter specifying constraints of a list operation. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. A filter specifying constraints of a list operation. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + this.resource = resource; return this; } /** - * Optional. Specifies the ordering of results. See [Sorting - * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more - * information. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - /** Optional. Specifies the ordering of results. See [Sorting - order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information. + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } /** - * Optional. Specifies the ordering of results. See [Sorting - * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more - * information. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 50 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's next_page_token to - * determine if there are more instances left to be queried. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of items to return. If not specified, a default value of 50 will be - used by the service. Regardless of the page_size value, the response may include a partial list and - a caller should only rely on response's next_page_token to determine if there are more instances - left to be queried. - */ - public java.lang.Integer getPageSize() { - return pageSize; + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } - - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 50 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's next_page_token to - * determine if there are more instances left to be queried. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. The next_page_token value returned from a previous ListAppGatewaysRequest, if - * any. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. The next_page_token value returned from a previous ListAppGatewaysRequest, if any. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. The next_page_token value returned from a previous ListAppGatewaysRequest, if - * any. - */ - 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); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "appGateways.setIamPolicy". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "applicationDomains.setIamPolicy". + * + * This request holds the parameters needed by the beyondcorp server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } public class SetIamPolicy extends BeyondCorpRequest { private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/applicationDomains/[^/]+$"); /** * Sets the access control policy on the specified resource. Replaces any existing policy. Can * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "appGateways.setIamPolicy". + * Create a request for the method "applicationDomains.setIamPolicy". * * This request holds the parameters needed by the the beyondcorp server. After setting any * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote @@ -8025,7 +7234,7 @@ protected SetIamPolicy(java.lang.String resource, com.google.api.services.beyond if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/applicationDomains/[^/]+$"); } } @@ -8109,7 +7318,7 @@ public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/applicationDomains/[^/]+$"); } this.resource = resource; return this; @@ -8126,7 +7335,7 @@ public SetIamPolicy set(String parameterName, Object value) { * designed to be used for building permission-aware UIs and command-line tools, not for * authorization checking. This operation may "fail open" without warning. * - * Create a request for the method "appGateways.testIamPermissions". + * Create a request for the method "applicationDomains.testIamPermissions". * * This request holds the parameters needed by the beyondcorp server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. @@ -8148,7 +7357,7 @@ public class TestIamPermissions extends BeyondCorpRequestThe typical use is:

*
        *   {@code BeyondCorp beyondcorp = new BeyondCorp(...);}
-       *   {@code BeyondCorp.ApplicationDomains.List request = beyondcorp.applicationDomains().list(parameters ...)}
+       *   {@code BeyondCorp.Applications.List request = beyondcorp.applications().list(parameters ...)}
        * 
* * @return the resource collection */ - public ApplicationDomains applicationDomains() { - return new ApplicationDomains(); + public Applications applications() { + return new Applications(); } /** - * The "applicationDomains" collection of methods. + * The "applications" collection of methods. */ - public class ApplicationDomains { + public class Applications { /** * Gets the access control policy for a resource. Returns an empty policy if the resource exists and * does not have a policy set. * - * Create a request for the method "applicationDomains.getIamPolicy". + * Create a request for the method "applications.getIamPolicy". * * This request holds the parameters needed by the beyondcorp server. After setting any optional * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. @@ -8318,13 +7527,13 @@ public class GetIamPolicy extends BeyondCorpRequestThe typical use is:

*
        *   {@code BeyondCorp beyondcorp = new BeyondCorp(...);}
-       *   {@code BeyondCorp.Applications.List request = beyondcorp.applications().list(parameters ...)}
+       *   {@code BeyondCorp.Connections.List request = beyondcorp.connections().list(parameters ...)}
        * 
* * @return the resource collection */ - public Applications applications() { - return new Applications(); + public Connections connections() { + return new Connections(); } /** - * The "applications" collection of methods. + * The "connections" collection of methods. */ - public class Applications { + public class Connections { /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. + * Deletes a single Connection. * - * Create a request for the method "applications.getIamPolicy". + * Create a request for the method "connections.delete". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class GetIamPolicy extends BeyondCorpRequest { + public class Delete extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; + private static final String REST_PATH = "v1alpha/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/applications/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * Deletes a single Connection. * - * Create a request for the method "applications.getIamPolicy". + * Create a request for the method "connections.delete". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote - * operation.

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

+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

* - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` * @since 1.13 */ - protected GetIamPolicy(java.lang.String resource) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Delete(java.lang.String name) { + super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/applications/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. BeyondCorp Connector name using the form: + `projects/{project_id}/locations/{location_id}/connections/{connection_id}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` */ - public GetIamPolicy setResource(java.lang.String resource) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/applications/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); } - this.resource = resource; + this.name = name; return this; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + @com.google.api.client.util.Key + private java.lang.String requestId; - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. If set, validates request by executing a dry-run which would not alter the + * resource in any way. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If set, validates request by executing a dry-run which would not alter the resource in + any way. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If set, validates request by executing a dry-run which would not alter the + * resource in any way. + */ + public Delete setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Gets details of a single Connection. * - * Create a request for the method "applications.setIamPolicy". + * Create a request for the method "connections.get". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} + * @param name Required. BeyondCorp Connection name using the form: + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class SetIamPolicy extends BeyondCorpRequest { + public class Get extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; + private static final String REST_PATH = "v1alpha/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/applications/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Gets details of a single Connection. * - * Create a request for the method "applications.setIamPolicy". + * Create a request for the method "connections.get". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation.

{@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} + * @param name Required. BeyondCorp Connection name using the form: + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` * @since 1.13 */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Get(java.lang.String name) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.Connection.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/applications/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + 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: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. BeyondCorp Connection name using the form: + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. BeyondCorp Connection name using the form: + `projects/{project_id}/locations/{location_id}/connections/{connection_id}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. BeyondCorp Connection name using the form: + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` */ - public SetIamPolicy setResource(java.lang.String resource) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/applications/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); } - this.resource = resource; + this.name = name; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - * Create a request for the method "applications.testIamPermissions". + * Create a request for the method "connections.getIamPolicy". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class TestIamPermissions extends BeyondCorpRequest { + public class GetIamPolicy extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+resource}:testIamPermissions"; + private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/applications/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This - * operation is designed to be used for building permission-aware UIs and command-line tools, not - * for authorization checking. This operation may "fail open" without warning. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - * Create a request for the method "applications.testIamPermissions". + * Create a request for the method "connections.getIamPolicy". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

+ * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

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

* - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsRequest content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1TestIamPermissionsResponse.class); + protected GetIamPolicy(java.lang.String resource) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/applications/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ @@ -9288,67 +8507,87 @@ public java.lang.String getResource() { } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ - public TestIamPermissions setResource(java.lang.String resource) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/applications/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); } this.resource = resource; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - } - /** - * An accessor for creating requests from the Connections collection. - * - *

The typical use is:

- *
-       *   {@code BeyondCorp beyondcorp = new BeyondCorp(...);}
-       *   {@code BeyondCorp.Connections.List request = beyondcorp.connections().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Connections connections() { - return new Connections(); - } + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } - /** - * The "connections" collection of methods. - */ - public class Connections { + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** - * Creates a new Connection in a given project and location. + * Lists Connections in a given project and location. * - * Create a request for the method "connections.create". + * Create a request for the method "connections.list". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The resource project name of the connection location using the form: + * @param parent Required. The resource name of the connection location using the form: * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.Connection} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.Connection content) throws java.io.IOException { - Create result = new Create(parent, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Create extends BeyondCorpRequest { + public class List extends BeyondCorpRequest { private static final String REST_PATH = "v1alpha/{+parent}/connections"; @@ -9356,23 +8595,21 @@ public class Create extends BeyondCorpRequest {@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* - * @param parent Required. The resource project name of the connection location using the form: + * @param parent Required. The resource name of the connection location using the form: * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.Connection} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.Connection content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); + protected List(java.lang.String parent) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.ListConnectionsResponse.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(), @@ -9382,2091 +8619,244 @@ protected Create(java.lang.String parent, com.google.api.services.beyondcorp.v1a } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** - * Required. The resource project name of the connection location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** Required. The resource project name of the connection location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource project name of the connection location using the form: - * `projects/{project_id}/locations/{location_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 " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. User-settable connection resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - @com.google.api.client.util.Key - private java.lang.String connectionId; - - /** Optional. User-settable connection resource ID. * Must start with a letter. * Must contain between - 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public java.lang.String getConnectionId() { - return connectionId; - } - - /** - * Optional. User-settable connection resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public Create setConnectionId(java.lang.String connectionId) { - this.connectionId = connectionId; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Create setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single Connection. - * - * Create a request for the method "connections.delete". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connections/{connection_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 BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - - /** - * Deletes a single Connection. - * - * Create a request for the method "connections.delete". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - } - } - - @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. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. BeyondCorp Connector name using the form: - `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connections/{connection_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 " + - "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes after the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Delete setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets details of a single Connection. - * - * Create a request for the method "connections.get". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. BeyondCorp Connection name using the form: - * `projects/{project_id}/locations/{location_id}/connections/{connection_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 BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - - /** - * Gets details of a single Connection. - * - * Create a request for the method "connections.get". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name Required. BeyondCorp Connection name using the form: - * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.Connection.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - } - } - - @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. BeyondCorp Connection name using the form: - * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. BeyondCorp Connection name using the form: - `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. BeyondCorp Connection name using the form: - * `projects/{project_id}/locations/{location_id}/connections/{connection_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 " + - "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. - * - * Create a request for the method "connections.getIamPolicy". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. - * - * Create a request for the method "connections.getIamPolicy". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote - * operation.

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

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

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

- * - * @param parent Required. The resource name of the connection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.ListConnectionsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the connection location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the connection location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the connection location using the form: - * `projects/{project_id}/locations/{location_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 " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** Optional. A filter specifying constraints of a list operation. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter specifying constraints of a list operation. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. A filter specifying constraints of a list operation. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. Specifies the ordering of results. See [Sorting - * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more - * information. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. Specifies the ordering of results. See [Sorting - order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. Specifies the ordering of results. See [Sorting - * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more - * information. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 50 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's next_page_token to - * determine if there are more instances left to be queried. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of items to return. If not specified, a default value of 50 will be - used by the service. Regardless of the page_size value, the response may include a partial list and - a caller should only rely on response's next_page_token to determine if there are more instances - left to be queried. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 50 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's next_page_token to - * determine if there are more instances left to be queried. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. The next_page_token value returned from a previous ListConnectionsRequest, if - * any. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. The next_page_token value returned from a previous ListConnectionsRequest, if any. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. The next_page_token value returned from a previous ListConnectionsRequest, if - * any. - */ - 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); - } - } - /** - * Updates the parameters of a single Connection. - * - * Create a request for the method "connections.patch". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Required. Unique resource name of the connection. The name is ignored when creating a connection. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.Connection} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.beyondcorp.v1alpha.model.Connection content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - - /** - * Updates the parameters of a single Connection. - * - * Create a request for the method "connections.patch". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. Unique resource name of the connection. The name is ignored when creating a connection. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.Connection} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.beyondcorp.v1alpha.model.Connection content) { - super(BeyondCorp.this, "PATCH", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - } - } - - @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. Unique resource name of the connection. The name is ignored when creating a - * connection. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Unique resource name of the connection. The name is ignored when creating a connection. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. Unique resource name of the connection. The name is ignored when creating a - * connection. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - } - this.name = name; - return this; - } - - /** Optional. If set as true, will create the resource if it is not found. */ - @com.google.api.client.util.Key - private java.lang.Boolean allowMissing; - - /** Optional. If set as true, will create the resource if it is not found. - */ - public java.lang.Boolean getAllowMissing() { - return allowMissing; - } - - /** Optional. If set as true, will create the resource if it is not found. */ - public Patch setAllowMissing(java.lang.Boolean allowMissing) { - this.allowMissing = allowMissing; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.Connection]: * `labels` * `display_name` * `application_endpoint` * - * `connectors` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements - of the repeated paths field may only include these fields from [BeyondCorp.Connection]: * `labels` - * `display_name` * `application_endpoint` * `connectors` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.Connection]: * `labels` * `display_name` * `application_endpoint` * - * `connectors` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Patch setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Resolves connections details for a given connector. An internal method called by a connector to - * find connections to connect to. - * - * Create a request for the method "connections.resolve". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Resolve#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the connection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @return the request - */ - public Resolve resolve(java.lang.String parent) throws java.io.IOException { - Resolve result = new Resolve(parent); - initialize(result); - return result; - } - - public class Resolve extends BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+parent}/connections:resolve"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Resolves connections details for a given connector. An internal method called by a connector to - * find connections to connect to. - * - * Create a request for the method "connections.resolve". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Resolve#execute()} method to invoke the remote operation. - *

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

- * - * @param parent Required. The resource name of the connection location using the form: - * `projects/{project_id}/locations/{location_id}` - * @since 1.13 - */ - protected Resolve(java.lang.String parent) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.ResolveConnectionsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Resolve set$Xgafv(java.lang.String $Xgafv) { - return (Resolve) super.set$Xgafv($Xgafv); - } - - @Override - public Resolve setAccessToken(java.lang.String accessToken) { - return (Resolve) super.setAccessToken(accessToken); - } - - @Override - public Resolve setAlt(java.lang.String alt) { - return (Resolve) super.setAlt(alt); - } - - @Override - public Resolve setCallback(java.lang.String callback) { - return (Resolve) super.setCallback(callback); - } - - @Override - public Resolve setFields(java.lang.String fields) { - return (Resolve) super.setFields(fields); - } - - @Override - public Resolve setKey(java.lang.String key) { - return (Resolve) super.setKey(key); - } - - @Override - public Resolve setOauthToken(java.lang.String oauthToken) { - return (Resolve) super.setOauthToken(oauthToken); - } - - @Override - public Resolve setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resolve) super.setPrettyPrint(prettyPrint); - } - - @Override - public Resolve setQuotaUser(java.lang.String quotaUser) { - return (Resolve) super.setQuotaUser(quotaUser); - } - - @Override - public Resolve setUploadType(java.lang.String uploadType) { - return (Resolve) super.setUploadType(uploadType); - } - - @Override - public Resolve setUploadProtocol(java.lang.String uploadProtocol) { - return (Resolve) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the connection location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the connection location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the connection location using the form: - * `projects/{project_id}/locations/{location_id}` - */ - public Resolve setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Required. BeyondCorp Connector name of the connector associated with those connections - * using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` - */ - @com.google.api.client.util.Key - private java.lang.String connectorId; - - /** Required. BeyondCorp Connector name of the connector associated with those connections using the - form: `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` - */ - public java.lang.String getConnectorId() { - return connectorId; - } - - /** - * Required. BeyondCorp Connector name of the connector associated with those connections - * using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` - */ - public Resolve setConnectorId(java.lang.String connectorId) { - this.connectorId = connectorId; - return this; - } - - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 50 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's next_page_token to - * determine if there are more instances left to be queried. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of items to return. If not specified, a default value of 50 will be - used by the service. Regardless of the page_size value, the response may include a partial list and - a caller should only rely on response's next_page_token to determine if there are more instances - left to be queried. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 50 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's next_page_token to - * determine if there are more instances left to be queried. - */ - public Resolve setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. The next_page_token value returned from a previous - * ResolveConnectionsResponse, if any. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. The next_page_token value returned from a previous ResolveConnectionsResponse, if any. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. The next_page_token value returned from a previous - * ResolveConnectionsResponse, if any. - */ - public Resolve setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public Resolve set(String parameterName, Object value) { - return (Resolve) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "connections.setIamPolicy". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "connections.setIamPolicy". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation.

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

- * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - - } - /** - * An accessor for creating requests from the Connectors collection. - * - *

The typical use is:

- *
-       *   {@code BeyondCorp beyondcorp = new BeyondCorp(...);}
-       *   {@code BeyondCorp.Connectors.List request = beyondcorp.connectors().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Connectors connectors() { - return new Connectors(); - } - - /** - * The "connectors" collection of methods. - */ - public class Connectors { - - /** - * Creates a new Connector in a given project and location. - * - * Create a request for the method "connectors.create". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource project name of the connector location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.Connector} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.Connector content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+parent}/connectors"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates a new Connector in a given project and location. - * - * Create a request for the method "connectors.create". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

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

- * - * @param parent Required. The resource project name of the connector location using the form: - * `projects/{project_id}/locations/{location_id}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.Connector} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.beyondcorp.v1alpha.model.Connector content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource project name of the connector location using the form: + * Required. The resource name of the connection location using the form: * `projects/{project_id}/locations/{location_id}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource project name of the connector location using the form: - `projects/{project_id}/locations/{location_id}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource project name of the connector location using the form: - * `projects/{project_id}/locations/{location_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 " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. User-settable connector resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - @com.google.api.client.util.Key - private java.lang.String connectorId; - - /** Optional. User-settable connector resource ID. * Must start with a letter. * Must contain between - 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public java.lang.String getConnectorId() { - return connectorId; - } - - /** - * Optional. User-settable connector resource ID. * Must start with a letter. * Must - * contain between 4-63 characters from `/a-z-/`. * Must end with a number or a letter. - */ - public Create setConnectorId(java.lang.String connectorId) { - this.connectorId = connectorId; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. - */ - public Create setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single Connector. - * - * Create a request for the method "connectors.delete". - * - * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_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 BeyondCorpRequest { - - private static final String REST_PATH = "v1alpha/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); - - /** - * Deletes a single Connector. - * - * Create a request for the method "connectors.delete". - * - * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); - } - } - - @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); + /** Required. The resource name of the connection location using the form: + `projects/{project_id}/locations/{location_id}` + */ + public java.lang.String getParent() { + return parent; } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + /** + * Required. The resource name of the connection location using the form: + * `projects/{project_id}/locations/{location_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 " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** Optional. A filter specifying constraints of a list operation. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** Optional. A filter specifying constraints of a list operation. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + /** Optional. A filter specifying constraints of a list operation. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } /** - * Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + * Optional. Specifies the ordering of results. See [Sorting + * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more + * information. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String orderBy; - /** Required. BeyondCorp Connector name using the form: - `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + /** Optional. Specifies the ordering of results. See [Sorting + order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information. */ - public java.lang.String getName() { - return name; + public java.lang.String getOrderBy() { + return orderBy; } /** - * Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + * Optional. Specifies the ordering of results. See [Sorting + * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more + * information. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); - } - this.name = name; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * Optional. The maximum number of items to return. If not specified, a default value of + * 50 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's next_page_token to + * determine if there are more instances left to be queried. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Integer pageSize; - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes after the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** Optional. The maximum number of items to return. If not specified, a default value of 50 will be + used by the service. Regardless of the page_size value, the response may include a partial list and + a caller should only rely on response's next_page_token to determine if there are more instances + left to be queried. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * Optional. The maximum number of items to return. If not specified, a default value of + * 50 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's next_page_token to + * determine if there are more instances left to be queried. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Optional. The next_page_token value returned from a previous ListConnectionsRequest, if + * any. */ @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + private java.lang.String pageToken; - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. + /** Optional. The next_page_token value returned from a previous ListConnectionsRequest, if any. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.String getPageToken() { + return pageToken; } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Optional. The next_page_token value returned from a previous ListConnectionsRequest, if + * any. */ - public Delete setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Gets details of a single Connector. + * Resolves connections details for a given connector. An internal method called by a connector to + * find connections to connect to. * - * Create a request for the method "connectors.get". + * Create a request for the method "connections.resolve". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Resolve#execute()} method to invoke the remote operation. * - * @param name Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + * @param parent Required. The resource name of the connection location using the form: + * `projects/{project_id}/locations/{location_id}` * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Resolve resolve(java.lang.String parent) throws java.io.IOException { + Resolve result = new Resolve(parent); initialize(result); return result; } - public class Get extends BeyondCorpRequest { + public class Resolve extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+name}"; + private static final String REST_PATH = "v1alpha/{+parent}/connections:resolve"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Gets details of a single Connector. + * Resolves connections details for a given connector. An internal method called by a connector to + * find connections to connect to. * - * Create a request for the method "connectors.get". + * Create a request for the method "connections.resolve". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * optional parameters, call the {@link Resolve#execute()} method to invoke the remote operation. + *

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

* - * @param name Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + * @param parent Required. The resource name of the connection location using the form: + * `projects/{project_id}/locations/{location_id}` * @since 1.13 */ - protected Get(java.lang.String name) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.Connector.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Resolve(java.lang.String parent) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.ResolveConnectionsResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @@ -11481,221 +8871,289 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Resolve set$Xgafv(java.lang.String $Xgafv) { + return (Resolve) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Resolve setAccessToken(java.lang.String accessToken) { + return (Resolve) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Resolve setAlt(java.lang.String alt) { + return (Resolve) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Resolve setCallback(java.lang.String callback) { + return (Resolve) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Resolve setFields(java.lang.String fields) { + return (Resolve) super.setFields(fields); + } + + @Override + public Resolve setKey(java.lang.String key) { + return (Resolve) super.setKey(key); + } + + @Override + public Resolve setOauthToken(java.lang.String oauthToken) { + return (Resolve) super.setOauthToken(oauthToken); + } + + @Override + public Resolve setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resolve) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resolve setQuotaUser(java.lang.String quotaUser) { + return (Resolve) super.setQuotaUser(quotaUser); + } + + @Override + public Resolve setUploadType(java.lang.String uploadType) { + return (Resolve) super.setUploadType(uploadType); + } + + @Override + public Resolve setUploadProtocol(java.lang.String uploadProtocol) { + return (Resolve) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the connection location using the form: + * `projects/{project_id}/locations/{location_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the connection location using the form: + `projects/{project_id}/locations/{location_id}` + */ + public java.lang.String getParent() { + return parent; } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + /** + * Required. The resource name of the connection location using the form: + * `projects/{project_id}/locations/{location_id}` + */ + public Resolve setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** + * Required. BeyondCorp Connector name of the connector associated with those connections + * using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + */ + @com.google.api.client.util.Key + private java.lang.String connectorId; - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** Required. BeyondCorp Connector name of the connector associated with those connections using the + form: `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + */ + public java.lang.String getConnectorId() { + return connectorId; } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** + * Required. BeyondCorp Connector name of the connector associated with those connections + * using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + */ + public Resolve setConnectorId(java.lang.String connectorId) { + this.connectorId = connectorId; + return this; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Optional. The maximum number of items to return. If not specified, a default value of + * 50 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's next_page_token to + * determine if there are more instances left to be queried. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of items to return. If not specified, a default value of 50 will be + used by the service. Regardless of the page_size value, the response may include a partial list and + a caller should only rely on response's next_page_token to determine if there are more instances + left to be queried. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * Optional. The maximum number of items to return. If not specified, a default value of + * 50 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's next_page_token to + * determine if there are more instances left to be queried. + */ + public Resolve setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } /** - * Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + * Optional. The next_page_token value returned from a previous + * ResolveConnectionsResponse, if any. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String pageToken; - /** Required. BeyondCorp Connector name using the form: - `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + /** Optional. The next_page_token value returned from a previous ResolveConnectionsResponse, if any. */ - public java.lang.String getName() { - return name; + public java.lang.String getPageToken() { + return pageToken; } /** - * Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` + * Optional. The next_page_token value returned from a previous + * ResolveConnectionsResponse, if any. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); - } - this.name = name; + public Resolve setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Resolve set(String parameterName, Object value) { + return (Resolve) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "connectors.getIamPolicy". + * Create a request for the method "connections.setIamPolicy". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. + * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class GetIamPolicy extends BeyondCorpRequest { + public class SetIamPolicy extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; + private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "connectors.getIamPolicy". + * Create a request for the method "connections.setIamPolicy". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote * operation.

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

* - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. + * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest} * @since 1.13 */ - protected GetIamPolicy(java.lang.String resource) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); + protected SetIamPolicy(java.lang.String resource, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) { + super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource + * REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; - /** REQUIRED: The resource for which the policy is being requested. See [Resource + /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ @@ -11704,326 +9162,270 @@ public java.lang.String getResource() { } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource + * REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ - public GetIamPolicy setResource(java.lang.String resource) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/connections/[^/]+$"); } this.resource = resource; return this; } - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Connectors collection. + * + *

The typical use is:

+ *
+       *   {@code BeyondCorp beyondcorp = new BeyondCorp(...);}
+       *   {@code BeyondCorp.Connectors.List request = beyondcorp.connectors().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Connectors connectors() { + return new Connectors(); + } + + /** + * The "connectors" collection of methods. + */ + public class Connectors { + /** - * Lists Connectors in a given project and location. + * Deletes a single Connector. * - * Create a request for the method "connectors.list". + * Create a request for the method "connectors.delete". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the connector location using the form: - * `projects/{project_id}/locations/{location_id}` + * @param name Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class List extends BeyondCorpRequest { + public class Delete extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+parent}/connectors"; + private static final String REST_PATH = "v1alpha/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); /** - * Lists Connectors in a given project and location. + * Deletes a single Connector. * - * Create a request for the method "connectors.list". + * Create a request for the method "connectors.delete". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

* - * @param parent Required. The resource name of the connector location using the form: - * `projects/{project_id}/locations/{location_id}` + * @param name Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` * @since 1.13 */ - protected List(java.lang.String parent) { - super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.ListConnectorsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Delete(java.lang.String name) { + super(BeyondCorp.this, "DELETE", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); } } @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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the connector location using the form: - * `projects/{project_id}/locations/{location_id}` + * Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the connector location using the form: - `projects/{project_id}/locations/{location_id}` + /** Required. BeyondCorp Connector name using the form: + `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the connector location using the form: - * `projects/{project_id}/locations/{location_id}` + * Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` */ - public List setParent(java.lang.String parent) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); } - this.parent = parent; - return this; - } - - /** Optional. A filter specifying constraints of a list operation. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter specifying constraints of a list operation. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. A filter specifying constraints of a list operation. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. Specifies the ordering of results. See [Sorting - * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more - * information. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. Specifies the ordering of results. See [Sorting - order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. Specifies the ordering of results. See [Sorting - * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more - * information. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + this.name = name; return this; } /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 50 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's next_page_token to - * determine if there are more instances left to be queried. + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String requestId; - /** Optional. The maximum number of items to return. If not specified, a default value of 50 will be - used by the service. Regardless of the page_size value, the response may include a partial list and - a caller should only rely on response's next_page_token to determine if there are more instances - left to be queried. + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getRequestId() { + return requestId; } /** - * Optional. The maximum number of items to return. If not specified, a default value of - * 50 will be used by the service. Regardless of the page_size value, the response may - * include a partial list and a caller should only rely on response's next_page_token to - * determine if there are more instances left to be queried. + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } /** - * Optional. The next_page_token value returned from a previous ListConnectorsRequest, if - * any. + * Optional. If set, validates request by executing a dry-run which would not alter the + * resource in any way. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Boolean validateOnly; - /** Optional. The next_page_token value returned from a previous ListConnectorsRequest, if any. + /** Optional. If set, validates request by executing a dry-run which would not alter the resource in + any way. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Boolean getValidateOnly() { + return validateOnly; } /** - * Optional. The next_page_token value returned from a previous ListConnectorsRequest, if - * any. + * Optional. If set, validates request by executing a dry-run which would not alter the + * resource in any way. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public Delete setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates the parameters of a single Connector. + * Gets details of a single Connector. * - * Create a request for the method "connectors.patch". + * Create a request for the method "connectors.get". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. Unique resource name of the connector. The name is ignored when creating a connector. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.Connector} + * @param name Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.beyondcorp.v1alpha.model.Connector content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Patch extends BeyondCorpRequest { + public class Get extends BeyondCorpRequest { private static final String REST_PATH = "v1alpha/{+name}"; @@ -12031,22 +9433,21 @@ public class Patch extends BeyondCorpRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name Required. Unique resource name of the connector. The name is ignored when creating a connector. - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.Connector} + * @param name Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.beyondcorp.v1alpha.model.Connector content) { - super(BeyondCorp.this, "PATCH", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); + protected Get(java.lang.String name) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.Connector.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(), @@ -12056,78 +9457,89 @@ protected Patch(java.lang.String name, com.google.api.services.beyondcorp.v1alph } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + 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. Unique resource name of the connector. The name is ignored when creating a - * connector. + * Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Unique resource name of the connector. The name is ignored when creating a connector. + /** Required. BeyondCorp Connector name using the form: + `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` */ public java.lang.String getName() { return name; } /** - * Required. Unique resource name of the connector. The name is ignored when creating a - * connector. + * Required. BeyondCorp Connector name using the form: + * `projects/{project_id}/locations/{location_id}/connectors/{connector_id}` */ - public Patch setName(java.lang.String name) { + 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 " + @@ -12137,241 +9549,446 @@ public Patch setName(java.lang.String name) { return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "connectors.getIamPolicy". + * + * This request holds the parameters needed by the beyondcorp server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends BeyondCorpRequest { + + private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + * Create a request for the method "connectors.getIamPolicy". + * + * This request holds the parameters needed by the the beyondcorp server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

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

+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String requestId; + protected GetIamPolicy(java.lang.String resource) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + } + } - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes since the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * since the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.Connector]: * `labels` * `display_name` + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String resource; - /** Required. Mask of fields to update. At least one path must be supplied in this field. The elements - of the repeated paths field may only include these fields from [BeyondCorp.Connector]: * `labels` * - `display_name` + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getResource() { + return resource; } /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields from - * [BeyondCorp.Connector]: * `labels` * `display_name` + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + } + this.resource = resource; return this; } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - /** Optional. If set, validates request by executing a dry-run which would not alter the resource in - any way. + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } /** - * Optional. If set, validates request by executing a dry-run which would not alter the - * resource in any way. + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ - public Patch setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Report status for a given connector. + * Lists Connectors in a given project and location. * - * Create a request for the method "connectors.reportStatus". + * Create a request for the method "connectors.list". * * This request holds the parameters needed by the beyondcorp server. After setting any optional - * parameters, call the {@link ReportStatus#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param connector Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.ReportStatusRequest} + * @param parent Required. The resource name of the connector location using the form: + * `projects/{project_id}/locations/{location_id}` * @return the request */ - public ReportStatus reportStatus(java.lang.String connector, com.google.api.services.beyondcorp.v1alpha.model.ReportStatusRequest content) throws java.io.IOException { - ReportStatus result = new ReportStatus(connector, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class ReportStatus extends BeyondCorpRequest { + public class List extends BeyondCorpRequest { - private static final String REST_PATH = "v1alpha/{+connector}:reportStatus"; + private static final String REST_PATH = "v1alpha/{+parent}/connectors"; - private final java.util.regex.Pattern CONNECTOR_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Report status for a given connector. + * Lists Connectors in a given project and location. * - * Create a request for the method "connectors.reportStatus". + * Create a request for the method "connectors.list". * * This request holds the parameters needed by the the beyondcorp server. After setting any - * optional parameters, call the {@link ReportStatus#execute()} method to invoke the remote - * operation.

{@link - * ReportStatus#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* - * @param connector Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector}` - * @param content the {@link com.google.api.services.beyondcorp.v1alpha.model.ReportStatusRequest} + * @param parent Required. The resource name of the connector location using the form: + * `projects/{project_id}/locations/{location_id}` * @since 1.13 */ - protected ReportStatus(java.lang.String connector, com.google.api.services.beyondcorp.v1alpha.model.ReportStatusRequest content) { - super(BeyondCorp.this, "POST", REST_PATH, content, com.google.api.services.beyondcorp.v1alpha.model.GoogleLongrunningOperation.class); - this.connector = com.google.api.client.util.Preconditions.checkNotNull(connector, "Required parameter connector must be specified."); + protected List(java.lang.String parent) { + super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.ListConnectorsResponse.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(CONNECTOR_PATTERN.matcher(connector).matches(), - "Parameter connector must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public ReportStatus set$Xgafv(java.lang.String $Xgafv) { - return (ReportStatus) super.set$Xgafv($Xgafv); + 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 ReportStatus setAccessToken(java.lang.String accessToken) { - return (ReportStatus) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ReportStatus setAlt(java.lang.String alt) { - return (ReportStatus) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ReportStatus setCallback(java.lang.String callback) { - return (ReportStatus) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ReportStatus setFields(java.lang.String fields) { - return (ReportStatus) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ReportStatus setKey(java.lang.String key) { - return (ReportStatus) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ReportStatus setOauthToken(java.lang.String oauthToken) { - return (ReportStatus) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ReportStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReportStatus) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ReportStatus setQuotaUser(java.lang.String quotaUser) { - return (ReportStatus) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ReportStatus setUploadType(java.lang.String uploadType) { - return (ReportStatus) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public ReportStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (ReportStatus) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector}` + * Required. The resource name of the connector location using the form: + * `projects/{project_id}/locations/{location_id}` */ @com.google.api.client.util.Key - private java.lang.String connector; + private java.lang.String parent; - /** Required. BeyondCorp Connector name using the form: - `projects/{project_id}/locations/{location_id}/connectors/{connector}` + /** Required. The resource name of the connector location using the form: + `projects/{project_id}/locations/{location_id}` */ - public java.lang.String getConnector() { - return connector; + public java.lang.String getParent() { + return parent; } /** - * Required. BeyondCorp Connector name using the form: - * `projects/{project_id}/locations/{location_id}/connectors/{connector}` + * Required. The resource name of the connector location using the form: + * `projects/{project_id}/locations/{location_id}` */ - public ReportStatus setConnector(java.lang.String connector) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONNECTOR_PATTERN.matcher(connector).matches(), - "Parameter connector must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/connectors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.connector = connector; + this.parent = parent; + return this; + } + + /** Optional. A filter specifying constraints of a list operation. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A filter specifying constraints of a list operation. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. A filter specifying constraints of a list operation. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Specifies the ordering of results. See [Sorting + * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more + * information. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Specifies the ordering of results. See [Sorting + order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Specifies the ordering of results. See [Sorting + * order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more + * information. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of items to return. If not specified, a default value of + * 50 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's next_page_token to + * determine if there are more instances left to be queried. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of items to return. If not specified, a default value of 50 will be + used by the service. Regardless of the page_size value, the response may include a partial list and + a caller should only rely on response's next_page_token to determine if there are more instances + left to be queried. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of items to return. If not specified, a default value of + * 50 will be used by the service. Regardless of the page_size value, the response may + * include a partial list and a caller should only rely on response's next_page_token to + * determine if there are more instances left to be queried. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous ListConnectorsRequest, if + * any. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous ListConnectorsRequest, if any. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous ListConnectorsRequest, if + * any. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public ReportStatus set(String parameterName, Object value) { - return (ReportStatus) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** diff --git a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/model/GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest.java b/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/model/GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest.java deleted file mode 100644 index 4204298edc1..00000000000 --- a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/model/GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.beyondcorp.v1alpha.model; - -/** - * Request report the connector status. - * - *

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 BeyondCorp 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 GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so that if - * you must retry your request, the server will know to ignore the request if it has already been - * completed. The server will guarantee that for at least 60 minutes since the first request. For - * example, consider a situation where you make an initial request and the request times out. If - * you make the request again with the same request ID, the server can check if original operation - * with the same request ID was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. The request ID must be a valid UUID - * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** - * Required. Resource info of the connector. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudBeyondcorpAppconnectorsV1alphaResourceInfo resourceInfo; - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the resource - * in any way. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so that if - * you must retry your request, the server will know to ignore the request if it has already been - * completed. The server will guarantee that for at least 60 minutes since the first request. For - * example, consider a situation where you make an initial request and the request times out. If - * you make the request again with the same request ID, the server can check if original operation - * with the same request ID was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. The request ID must be a valid UUID - * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @return value or {@code null} for none - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so that if - * you must retry your request, the server will know to ignore the request if it has already been - * completed. The server will guarantee that for at least 60 minutes since the first request. For - * example, consider a situation where you make an initial request and the request times out. If - * you make the request again with the same request ID, the server can check if original operation - * with the same request ID was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. The request ID must be a valid UUID - * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param requestId requestId or {@code null} for none - */ - public GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Required. Resource info of the connector. - * @return value or {@code null} for none - */ - public GoogleCloudBeyondcorpAppconnectorsV1alphaResourceInfo getResourceInfo() { - return resourceInfo; - } - - /** - * Required. Resource info of the connector. - * @param resourceInfo resourceInfo or {@code null} for none - */ - public GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest setResourceInfo(GoogleCloudBeyondcorpAppconnectorsV1alphaResourceInfo resourceInfo) { - this.resourceInfo = resourceInfo; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the resource - * in any way. - * @return value or {@code null} for none - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the resource - * in any way. - * @param validateOnly validateOnly or {@code null} for none - */ - public GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest set(String fieldName, Object value) { - return (GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest clone() { - return (GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/model/ReportStatusRequest.java b/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/model/ReportStatusRequest.java deleted file mode 100644 index 0f39f6136d2..00000000000 --- a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/com/google/api/services/beyondcorp/v1alpha/model/ReportStatusRequest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.beyondcorp.v1alpha.model; - -/** - * Request report the connector status. - * - *

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 BeyondCorp 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 ReportStatusRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so that if - * you must retry your request, the server will know to ignore the request if it has already been - * completed. The server will guarantee that for at least 60 minutes since the first request. For - * example, consider a situation where you make an initial request and the request times out. If - * you make the request again with the same request ID, the server can check if original operation - * with the same request ID was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. The request ID must be a valid UUID - * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** - * Required. Resource info of the connector. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceInfo resourceInfo; - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the resource - * in any way. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so that if - * you must retry your request, the server will know to ignore the request if it has already been - * completed. The server will guarantee that for at least 60 minutes since the first request. For - * example, consider a situation where you make an initial request and the request times out. If - * you make the request again with the same request ID, the server can check if original operation - * with the same request ID was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. The request ID must be a valid UUID - * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @return value or {@code null} for none - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so that if - * you must retry your request, the server will know to ignore the request if it has already been - * completed. The server will guarantee that for at least 60 minutes since the first request. For - * example, consider a situation where you make an initial request and the request times out. If - * you make the request again with the same request ID, the server can check if original operation - * with the same request ID was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. The request ID must be a valid UUID - * with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param requestId requestId or {@code null} for none - */ - public ReportStatusRequest setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Required. Resource info of the connector. - * @return value or {@code null} for none - */ - public ResourceInfo getResourceInfo() { - return resourceInfo; - } - - /** - * Required. Resource info of the connector. - * @param resourceInfo resourceInfo or {@code null} for none - */ - public ReportStatusRequest setResourceInfo(ResourceInfo resourceInfo) { - this.resourceInfo = resourceInfo; - return this; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the resource - * in any way. - * @return value or {@code null} for none - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** - * Optional. If set, validates request by executing a dry-run which would not alter the resource - * in any way. - * @param validateOnly validateOnly or {@code null} for none - */ - public ReportStatusRequest setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public ReportStatusRequest set(String fieldName, Object value) { - return (ReportStatusRequest) super.set(fieldName, value); - } - - @Override - public ReportStatusRequest clone() { - return (ReportStatusRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/pom.xml b/clients/google-api-services-beyondcorp/v1alpha/2.0.0/pom.xml index ebc3ba28e74..561779c19e7 100644 --- a/clients/google-api-services-beyondcorp/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-beyondcorp/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-beyondcorp - v1alpha-rev20261007-2.0.0 - BeyondCorp API v1alpha-rev20261007-2.0.0 + v1alpha-rev20261014-2.0.0 + BeyondCorp API v1alpha-rev20261014-2.0.0 jar 2011 diff --git a/clients/google-api-services-beyondcorp/v1alpha/README.md b/clients/google-api-services-beyondcorp/v1alpha/README.md index dcc9c89405f..d458e76cada 100644 --- a/clients/google-api-services-beyondcorp/v1alpha/README.md +++ b/clients/google-api-services-beyondcorp/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-beyondcorp - v1alpha-rev20261007-2.0.0 + v1alpha-rev20261014-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-beyondcorp:v1alpha-rev20261007-2.0.0' + implementation 'com.google.apis:google-api-services-beyondcorp:v1alpha-rev20261014-2.0.0' } ```