From 5a8b6453f139b30088f0975dd8e5609b804353e8 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Thu, 17 Sep 2026 18:17:35 -0700 Subject: [PATCH] chore: regenerate cloudresourcemanager client --- .../v3/2.0.0/README.md | 4 +- .../v3/CloudResourceManager.java | 7837 +++++++++++------ .../v3/model/CapabilityConfig.java | 293 + .../model/ListCapabilityConfigsResponse.java | 112 + .../v3/2.0.0/pom.xml | 4 +- .../v3/README.md | 4 +- 6 files changed, 5648 insertions(+), 2606 deletions(-) create mode 100644 clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/model/CapabilityConfig.java create mode 100644 clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/model/ListCapabilityConfigsResponse.java diff --git a/clients/google-api-services-cloudresourcemanager/v3/2.0.0/README.md b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/README.md index c32d16a6835..6b79f72df3b 100644 --- a/clients/google-api-services-cloudresourcemanager/v3/2.0.0/README.md +++ b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudresourcemanager - v3-rev20260820-2.0.0 + v3-rev20260909-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudresourcemanager:v3-rev20260820-2.0.0' + implementation 'com.google.apis:google-api-services-cloudresourcemanager:v3-rev20260909-2.0.0' } ``` diff --git a/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/CloudResourceManager.java b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/CloudResourceManager.java index 7573a7e4c8f..e49c3c10178 100644 --- a/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/CloudResourceManager.java +++ b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/CloudResourceManager.java @@ -2461,1181 +2461,1156 @@ public Patch set(String parameterName, Object value) { } } - } - - /** - * An accessor for creating requests from the Liens collection. - * - *

The typical use is:

- *
-   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
-   *   {@code CloudResourceManager.Liens.List request = cloudresourcemanager.liens().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Liens liens() { - return new Liens(); - } - - /** - * The "liens" collection of methods. - */ - public class Liens { - /** - * Create a Lien which applies to the resource denoted by the `parent` field. Callers of this method - * will require permission on the `parent` resource. For example, applying to `projects/1234` - * requires permission `resourcemanager.projects.updateLiens`. NOTE: Some resources may limit the - * number of Liens which may be applied. - * - * Create a request for the method "liens.create". + * An accessor for creating requests from the CapabilityConfigs collection. * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+     *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+     *   {@code CloudResourceManager.CapabilityConfigs.List request = cloudresourcemanager.capabilityConfigs().list(parameters ...)}
+     * 
* - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Lien} - * @return the request + * @return the resource collection */ - public Create create(com.google.api.services.cloudresourcemanager.v3.model.Lien content) throws java.io.IOException { - Create result = new Create(content); - initialize(result); - return result; + public CapabilityConfigs capabilityConfigs() { + return new CapabilityConfigs(); } - public class Create extends CloudResourceManagerRequest { - - private static final String REST_PATH = "v3/liens"; + /** + * The "capabilityConfigs" collection of methods. + */ + public class CapabilityConfigs { /** - * Create a Lien which applies to the resource denoted by the `parent` field. Callers of this - * method will require permission on the `parent` resource. For example, applying to - * `projects/1234` requires permission `resourcemanager.projects.updateLiens`. NOTE: Some - * resources may limit the number of Liens which may be applied. + * Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a + * CapabilityConfig triggers the creation of a Management Project if one is not supplied. * - * Create a request for the method "liens.create". + * Create a request for the method "capabilityConfigs.create". * - * This request holds the parameters needed by the the cloudresourcemanager 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.

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Lien} - * @since 1.13 + * @param parent Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @return the request */ - protected Create(com.google.api.services.cloudresourcemanager.v3.model.Lien content) { - super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Lien.class); + public Create create(java.lang.String parent, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Create extends CloudResourceManagerRequest { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v3/{+parent}/capabilityConfigs"; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+$"); - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a + * CapabilityConfig triggers the creation of a Management Project if one is not supplied. + * + * Create a request for the method "capabilityConfigs.create". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+$"); + } + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Delete a Lien by `name`. Callers of this method will require permission on the `parent` resource. - * For example, a Lien with a `parent` of `projects/1234` requires permission - * `resourcemanager.projects.updateLiens`. - * - * Create a request for the method "liens.delete". - * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name/identifier of the Lien to delete. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - public class Delete extends CloudResourceManagerRequest { + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - private static final String REST_PATH = "v3/{+name}"; + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^liens/.*$"); + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource under which the CapabilityConfig will be created. Format: + `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + */ + 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 " + + "^folders/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The user-assigned ID for the CapabilityConfig, which will become the final + * component of the CapabilityConfig's resource name. Must be unique within the parent + * resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start + * with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + */ + @com.google.api.client.util.Key + private java.lang.String capabilityConfigId; + + /** Required. The user-assigned ID for the CapabilityConfig, which will become the final component of + the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 + lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are + prohibited. Example: `my-capability-config-123` + */ + public java.lang.String getCapabilityConfigId() { + return capabilityConfigId; + } + + /** + * Required. The user-assigned ID for the CapabilityConfig, which will become the final + * component of the CapabilityConfig's resource name. Must be unique within the parent + * resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start + * with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + */ + public Create setCapabilityConfigId(java.lang.String capabilityConfigId) { + this.capabilityConfigId = capabilityConfigId; + return this; + } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } /** - * Delete a Lien by `name`. Callers of this method will require permission on the `parent` - * resource. For example, a Lien with a `parent` of `projects/1234` requires permission - * `resourcemanager.projects.updateLiens`. + * Deletes the CapabilityConfig identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). * - * Create a request for the method "liens.delete". + * Create a request for the method "capabilityConfigs.delete". * - * This request holds the parameters needed by the the cloudresourcemanager 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.

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name/identifier of the Lien to delete. - * @since 1.13 + * @param name Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @return the request */ - protected Delete(java.lang.String name) { - super(CloudResourceManager.this, "DELETE", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^liens/.*$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Delete extends CloudResourceManagerRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v3/{+name}"; - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/capabilityConfigs/[^/]+$"); - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** + * Deletes the CapabilityConfig identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.delete". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudResourceManager.this, "DELETE", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/capabilityConfigs/[^/]+$"); + } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** Required. The name/identifier of the Lien to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Required. The name/identifier of the Lien to delete. - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** Required. The name/identifier of the Lien to delete. */ - 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 " + - "^liens/.*$"); + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieve a Lien by `name`. Callers of this method will require permission on the `parent` - * resource. For example, a Lien with a `parent` of `projects/1234` requires permission - * `resourcemanager.projects.get` - * - * Create a request for the method "liens.get". - * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name/identifier of the Lien. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class Get extends CloudResourceManagerRequest { + /** + * Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v3/{+name}"; + /** Required. The name of the CapabilityConfig to delete. Format: + `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^liens/.*$"); + /** + * Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + 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 " + + "^folders/[^/]+/capabilityConfigs/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Retrieve a Lien by `name`. Callers of this method will require permission on the `parent` - * resource. For example, a Lien with a `parent` of `projects/1234` requires permission - * `resourcemanager.projects.get` + * Retrieves the Capability Config identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). * - * Create a request for the method "liens.get". + * Create a request for the method "capabilityConfigs.get". * - * This request holds the parameters needed by the the cloudresourcemanager 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.

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name/identifier of the Lien. - * @since 1.13 + * @param name Required. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + * @return the request */ - protected Get(java.lang.String name) { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Lien.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 " + - "^liens/.*$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Get extends CloudResourceManagerRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v3/{+name}"; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/capabilityConfigs/[^/]+$"); - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** + * Retrieves the Capability Config identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.get". + * + * This request holds the parameters needed by the the cloudresourcemanager 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. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig.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 " + + "^folders/[^/]+/capabilityConfigs/[^/]+$"); + } + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** Required. The name/identifier of the Lien. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Required. The name/identifier of the Lien. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Required. The name/identifier of the Lien. */ - 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 " + - "^liens/.*$"); + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * List all Liens applied to the `parent` resource. Callers of this method will require permission - * on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires - * permission `resourcemanager.projects.get`. - * - * Create a request for the method "liens.list". - * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @return the request - */ - public List list() throws java.io.IOException { - List result = new List(); - initialize(result); - return result; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - public class List extends CloudResourceManagerRequest { + /** + * Required. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v3/liens"; + /** Required. The name of the CapabilityConfig to retrieve. Format: + `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + `folders/123456789/capabilityConfigs/my-capability-config` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + */ + 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 " + + "^folders/[^/]+/capabilityConfigs/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * List all Liens applied to the `parent` resource. Callers of this method will require permission - * on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires - * permission `resourcemanager.projects.get`. + * Lists CapabilityConfigs that are direct children of the specified organization, folder or project + * resource. * - * Create a request for the method "liens.list". + * Create a request for the method "capabilityConfigs.list". * - * This request holds the parameters needed by the the cloudresourcemanager 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.

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @since 1.13 + * @param parent Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` + * @return the request */ - protected List() { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.ListLiensResponse.class); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class List extends CloudResourceManagerRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v3/{+parent}/capabilityConfigs"; - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * Lists CapabilityConfigs that are direct children of the specified organization, folder or + * project resource. + * + * Create a request for the method "capabilityConfigs.list". + * + * This request holds the parameters needed by the the cloudresourcemanager 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 name of the parent resource whose CapabilityConfigs are being listed. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.ListCapabilityConfigsResponse.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 " + + "^folders/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * The maximum number of items to return. This is a suggestion for the server. The server can - * return fewer liens than requested. If unspecified, server picks an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** The maximum number of items to return. This is a suggestion for the server. The server can return - fewer liens than requested. If unspecified, server picks an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * The maximum number of items to return. This is a suggestion for the server. The server can - * return fewer liens than requested. If unspecified, server picks an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** The `next_page_token` value returned from a previous List request, if any. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** The `next_page_token` value returned from a previous List request, if any. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The `next_page_token` value returned from a previous List request, if any. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The name of the resource to list all attached Liens. For example, - * `projects/1234`. (google.api.field_policy).resource_type annotation is not set since the - * parent depends on the meta api implementation. This field could be a project or other sub - * project resources. - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** + * Required. The name of the parent resource whose CapabilityConfigs are being listed. + * Format: `organizations/{organization_id}` or `folders/{folder_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Required. The name of the resource to list all attached Liens. For example, `projects/1234`. - (google.api.field_policy).resource_type annotation is not set since the parent depends on the meta - api implementation. This field could be a project or other sub project resources. - */ - public java.lang.String getParent() { - return parent; - } + /** Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: + `organizations/{organization_id}` or `folders/{folder_id}` + */ + public java.lang.String getParent() { + return parent; + } - /** - * Required. The name of the resource to list all attached Liens. For example, - * `projects/1234`. (google.api.field_policy).resource_type annotation is not set since the - * parent depends on the meta api implementation. This field could be a project or other sub - * project resources. - */ - public List setParent(java.lang.String parent) { - this.parent = parent; - return this; - } + /** + * Required. The name of the parent resource whose CapabilityConfigs are being listed. + * Format: `organizations/{organization_id}` or `folders/{folder_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 " + + "^folders/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** + * Optional. The maximum number of CapabilityConfigs to return in the response. The service + * may return fewer CapabilityConfigs than requested. If unspecified, at most 100 + * CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be + * coerced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - } + /** Optional. The maximum number of CapabilityConfigs to return in the response. The service may return + fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be + returned. The maximum value is 100; values above 100 will be coerced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** - * An accessor for creating requests from the Locations collection. - * - *

The typical use is:

- *
-   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
-   *   {@code CloudResourceManager.Locations.List request = cloudresourcemanager.locations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Locations locations() { - return new Locations(); - } + /** + * Optional. The maximum number of CapabilityConfigs to return in the response. The service + * may return fewer CapabilityConfigs than requested. If unspecified, at most 100 + * CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be + * coerced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * The "locations" collection of methods. - */ - public class Locations { + /** + * Optional. A pagination token received from a previous call to `ListCapabilityConfigs` + * that indicates from where listing should continue. Provide this to retrieve the + * subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * An accessor for creating requests from the EffectiveTagBindingCollections collection. - * - *

The typical use is:

- *
-     *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
-     *   {@code CloudResourceManager.EffectiveTagBindingCollections.List request = cloudresourcemanager.effectiveTagBindingCollections().list(parameters ...)}
-     * 
- * - * @return the resource collection - */ - public EffectiveTagBindingCollections effectiveTagBindingCollections() { - return new EffectiveTagBindingCollections(); - } + /** Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that + indicates from where listing should continue. Provide this to retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** - * The "effectiveTagBindingCollections" collection of methods. - */ - public class EffectiveTagBindingCollections { + /** + * Optional. A pagination token received from a previous call to `ListCapabilityConfigs` + * that indicates from where listing should continue. Provide this to retrieve the + * subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Returns effective tag bindings on a GCP resource. + * Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the + * specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * - * Create a request for the method "effectiveTagBindingCollections.get". + * Create a request for the method "capabilityConfigs.patch". * * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The full name of the EffectiveTagBindingCollection in format: - * `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where - * the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings - * are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourceman - * ager.googleapis.com%2fprojects%2f123" + * @param name Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Patch patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Get extends CloudResourceManagerRequest { + public class Patch extends CloudResourceManagerRequest { private static final String REST_PATH = "v3/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^locations/[^/]+/effectiveTagBindingCollections/[^/]+$"); + java.util.regex.Pattern.compile("^folders/[^/]+/capabilityConfigs/[^/]+$"); /** - * Returns effective tag bindings on a GCP resource. + * Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the + * specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * - * Create a request for the method "effectiveTagBindingCollections.get". + * Create a request for the method "capabilityConfigs.patch". * * This request holds the parameters needed by the the cloudresourcemanager 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.

+ * 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. The full name of the EffectiveTagBindingCollection in format: - * `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where - * the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings - * are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourceman - * ager.googleapis.com%2fprojects%2f123" + * @param name Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} * @since 1.13 */ - protected Get(java.lang.String name) { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.EffectiveTagBindingCollection.class); + protected Patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) { + super(CloudResourceManager.this, "PATCH", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^locations/[^/]+/effectiveTagBindingCollections/[^/]+$"); + "^folders/[^/]+/capabilityConfigs/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @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); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. The full name of the EffectiveTagBindingCollection in format: - * `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where - * the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings - * are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcema - * nager.googleapis.com%2fprojects%2f123" + * Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The full name of the EffectiveTagBindingCollection in format: - `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where the - encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. - E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fp - rojects%2f123" + /** Identifier. The unique resource name of the CapabilityConfig. Format: + `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + `projects/{project}/capabilityConfigs/{capabilityConfig}` */ public java.lang.String getName() { return name; } /** - * Required. The full name of the EffectiveTagBindingCollection in format: - * `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where - * the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings - * are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcema - * nager.googleapis.com%2fprojects%2f123" + * Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` */ - public Get setName(java.lang.String name) { + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^locations/[^/]+/effectiveTagBindingCollections/[^/]+$"); + "^folders/[^/]+/capabilityConfigs/[^/]+$"); } this.name = name; return this; } + /** Optional. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } } + } + + /** + * An accessor for creating requests from the Liens collection. + * + *

The typical use is:

+ *
+   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+   *   {@code CloudResourceManager.Liens.List request = cloudresourcemanager.liens().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Liens liens() { + return new Liens(); + } + + /** + * The "liens" collection of methods. + */ + public class Liens { + /** - * An accessor for creating requests from the TagBindingCollections collection. + * Create a Lien which applies to the resource denoted by the `parent` field. Callers of this method + * will require permission on the `parent` resource. For example, applying to `projects/1234` + * requires permission `resourcemanager.projects.updateLiens`. NOTE: Some resources may limit the + * number of Liens which may be applied. * - *

The typical use is:

- *
-     *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
-     *   {@code CloudResourceManager.TagBindingCollections.List request = cloudresourcemanager.tagBindingCollections().list(parameters ...)}
-     * 
+ * Create a request for the method "liens.create". * - * @return the resource collection + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Lien} + * @return the request */ - public TagBindingCollections tagBindingCollections() { - return new TagBindingCollections(); + public Create create(com.google.api.services.cloudresourcemanager.v3.model.Lien content) throws java.io.IOException { + Create result = new Create(content); + initialize(result); + return result; } - /** - * The "tagBindingCollections" collection of methods. - */ - public class TagBindingCollections { + public class Create extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/liens"; /** - * Returns tag bindings directly attached to a GCP resource. + * Create a Lien which applies to the resource denoted by the `parent` field. Callers of this + * method will require permission on the `parent` resource. For example, applying to + * `projects/1234` requires permission `resourcemanager.projects.updateLiens`. NOTE: Some + * resources may limit the number of Liens which may be applied. * - * Create a request for the method "tagBindingCollections.get". + * Create a request for the method "liens.create". * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the cloudresourcemanager 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 name Required. The full name of the TagBindingCollection in format: - * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the - * enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are - * bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleap - * is.com%2fprojects%2f123" - * @return the request + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Lien} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Create(com.google.api.services.cloudresourcemanager.v3.model.Lien content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Lien.class); } - public class Get extends CloudResourceManagerRequest { - - private static final String REST_PATH = "v3/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^locations/[^/]+/tagBindingCollections/[^/]+$"); - - /** - * Returns tag bindings directly attached to a GCP resource. - * - * Create a request for the method "tagBindingCollections.get". - * - * This request holds the parameters needed by the the cloudresourcemanager 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. The full name of the TagBindingCollection in format: - * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the - * enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are - * bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleap - * is.com%2fprojects%2f123" - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection.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 " + - "^locations/[^/]+/tagBindingCollections/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @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); - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete a Lien by `name`. Callers of this method will require permission on the `parent` resource. + * For example, a Lien with a `parent` of `projects/1234` requires permission + * `resourcemanager.projects.updateLiens`. + * + * Create a request for the method "liens.delete". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name/identifier of the Lien to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** - * Required. The full name of the TagBindingCollection in format: - * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the - * enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are - * bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googlea - * pis.com%2fprojects%2f123" - */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Delete extends CloudResourceManagerRequest { - /** Required. The full name of the TagBindingCollection in format: - `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the enoded-full- - resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. - "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v3/{+name}"; - /** - * Required. The full name of the TagBindingCollection in format: - * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the - * enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are - * bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googlea - * pis.com%2fprojects%2f123" - */ - 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 " + - "^locations/[^/]+/tagBindingCollections/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^liens/.*$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Updates tag bindings directly attached to a GCP resource. Update_mask can be kept empty or "*". + * Delete a Lien by `name`. Callers of this method will require permission on the `parent` + * resource. For example, a Lien with a `parent` of `projects/1234` requires permission + * `resourcemanager.projects.updateLiens`. * - * Create a request for the method "tagBindingCollections.patch". + * Create a request for the method "liens.delete". * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the cloudresourcemanager 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 Identifier. The name of the TagBindingCollection, following the convention: - * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the - * encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings - * are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapi - * s.com%2fprojects%2f123" - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection} - * @return the request + * @param name Required. The name/identifier of the Lien to delete. + * @since 1.13 */ - public Patch patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(CloudResourceManager.this, "DELETE", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^liens/.*$"); + } } - public class Patch extends CloudResourceManagerRequest { - - private static final String REST_PATH = "v3/{+name}"; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^locations/[^/]+/tagBindingCollections/[^/]+$"); + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - /** - * Updates tag bindings directly attached to a GCP resource. Update_mask can be kept empty or "*". - * - * Create a request for the method "tagBindingCollections.patch". - * - * This request holds the parameters needed by the the cloudresourcemanager server. After setting - * any optional parameters, call the {@link Patch#execute()} method to invoke the remote - * operation.

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

- * - * @param name Identifier. The name of the TagBindingCollection, following the convention: - * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the - * encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings - * are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapi - * s.com%2fprojects%2f123" - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection content) { - super(CloudResourceManager.this, "PATCH", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^locations/[^/]+/tagBindingCollections/[^/]+$"); - } - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + /** Required. The name/identifier of the Lien to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + /** Required. The name/identifier of the Lien to delete. + */ + public java.lang.String getName() { + return name; + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + /** Required. The name/identifier of the Lien to delete. */ + 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 " + + "^liens/.*$"); } + this.name = name; + return this; + } - /** - * Identifier. The name of the TagBindingCollection, following the convention: - * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the - * encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings - * are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleap - * is.com%2fprojects%2f123" - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The name of the TagBindingCollection, following the convention: - `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the encoded-full- - resource-name is the UTF-8 encoded name of the GCP resource the TagBindings are bound to. - "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The name of the TagBindingCollection, following the convention: - * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the - * encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings - * are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleap - * is.com%2fprojects%2f123" - */ - 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 " + - "^locations/[^/]+/tagBindingCollections/[^/]+$"); - } - this.name = name; - return this; - } - - /** Optional. An update mask to selectively update fields. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. An update mask to selectively update fields. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Optional. An update mask to selectively update fields. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } - } - } - - /** - * An accessor for creating requests from the Operations collection. - * - *

The typical use is:

- *
-   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
-   *   {@code CloudResourceManager.Operations.List request = cloudresourcemanager.operations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Operations operations() { - return new Operations(); - } - - /** - * The "operations" collection of methods. - */ - public class Operations { - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Retrieve a Lien by `name`. Callers of this method will require permission on the `parent` + * resource. For example, a Lien with a `parent` of `projects/1234` requires permission + * `resourcemanager.projects.get` * - * Create a request for the method "operations.get". + * Create a request for the method "liens.get". * * This request holds the parameters needed by the cloudresourcemanager server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param name Required. The name/identifier of the Lien. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -3644,18 +3619,19 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends CloudResourceManagerRequest { + public class Get extends CloudResourceManagerRequest { private static final String REST_PATH = "v3/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^operations/.*$"); + java.util.regex.Pattern.compile("^liens/.*$"); /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Retrieve a Lien by `name`. Callers of this method will require permission on the `parent` + * resource. For example, a Lien with a `parent` of `projects/1234` requires permission + * `resourcemanager.projects.get` * - * Create a request for the method "operations.get". + * Create a request for the method "liens.get". * * This request holds the parameters needed by the the cloudresourcemanager server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. @@ -3663,16 +3639,16 @@ public class Get extends CloudResourceManagerRequest * - * @param name The name of the operation resource. + * @param name Required. The name/identifier of the Lien. * @since 1.13 */ protected Get(java.lang.String name) { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Lien.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^operations/.*$"); + "^liens/.*$"); } } @@ -3741,22 +3717,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** Required. The name/identifier of the Lien. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The name/identifier of the Lien. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** Required. The name/identifier of the Lien. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^operations/.*$"); + "^liens/.*$"); } this.name = name; return this; @@ -3767,79 +3743,45 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Organizations collection. - * - *

The typical use is:

- *
-   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
-   *   {@code CloudResourceManager.Organizations.List request = cloudresourcemanager.organizations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Organizations organizations() { - return new Organizations(); - } - - /** - * The "organizations" collection of methods. - */ - public class Organizations { - /** - * Fetches an organization resource identified by the specified resource name. + * List all Liens applied to the `parent` resource. Callers of this method will require permission + * on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires + * permission `resourcemanager.projects.get`. * - * Create a request for the method "organizations.get". + * Create a request for the method "liens.list". * * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the Organization to fetch. This is the organization's relative path - * in the API, formatted as "organizations/[organizationId]". For example, - * "organizations/1234". * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public List list() throws java.io.IOException { + List result = new List(); initialize(result); return result; } - public class Get extends CloudResourceManagerRequest { - - private static final String REST_PATH = "v3/{+name}"; + public class List extends CloudResourceManagerRequest { - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+$"); + private static final String REST_PATH = "v3/liens"; /** - * Fetches an organization resource identified by the specified resource name. + * List all Liens applied to the `parent` resource. Callers of this method will require permission + * on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires + * permission `resourcemanager.projects.get`. * - * Create a request for the method "organizations.get". + * Create a request for the method "liens.list". * * This request holds the parameters needed by the the cloudresourcemanager server. After setting - * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. *

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

* - * @param name Required. The resource name of the Organization to fetch. This is the organization's relative path - * in the API, formatted as "organizations/[organizationId]". For example, - * "organizations/1234". * @since 1.13 */ - protected Get(java.lang.String name) { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Organization.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 " + - "^organizations/[^/]+$"); - } + protected List() { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.ListLiensResponse.class); } @Override @@ -3853,1038 +3795,891 @@ 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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Organization to fetch. This is the organization's - * relative path in the API, formatted as "organizations/[organizationId]". For example, - * "organizations/1234". + * The maximum number of items to return. This is a suggestion for the server. The server can + * return fewer liens than requested. If unspecified, server picks an appropriate default. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.Integer pageSize; - /** Required. The resource name of the Organization to fetch. This is the organization's relative path - in the API, formatted as "organizations/[organizationId]". For example, "organizations/1234". + /** The maximum number of items to return. This is a suggestion for the server. The server can return + fewer liens than requested. If unspecified, server picks an appropriate default. */ - public java.lang.String getName() { - return name; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Required. The resource name of the Organization to fetch. This is the organization's - * relative path in the API, formatted as "organizations/[organizationId]". For example, - * "organizations/1234". + * The maximum number of items to return. This is a suggestion for the server. The server can + * return fewer liens than requested. If unspecified, server picks an appropriate default. */ - 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 " + - "^organizations/[^/]+$"); - } - this.name = name; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for an organization resource. The policy may be empty if no such - * policy or resource exists. The `resource` field should be the organization's resource name, for - * example: "organizations/123". Authorization requires the IAM permission - * `resourcemanager.organizations.getIamPolicy` on the specified organization. - * - * Create a request for the method "organizations.getIamPolicy". - * - * This request holds the parameters needed by the cloudresourcemanager 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. - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.GetIamPolicyRequest} - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.GetIamPolicyRequest content) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class GetIamPolicy extends CloudResourceManagerRequest { - - private static final String REST_PATH = "v3/{+resource}:getIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+$"); - - /** - * Gets the access control policy for an organization resource. The policy may be empty if no such - * policy or resource exists. The `resource` field should be the organization's resource name, for - * example: "organizations/123". Authorization requires the IAM permission - * `resourcemanager.organizations.getIamPolicy` on the specified organization. - * - * Create a request for the method "organizations.getIamPolicy". - * - * This request holds the parameters needed by the the cloudresourcemanager 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. - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.GetIamPolicyRequest} - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.GetIamPolicyRequest content) { - super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^organizations/[^/]+$"); - } - } - - @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); + /** The `next_page_token` value returned from a previous List request, if any. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The `next_page_token` value returned from a previous List request, if any. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + /** The `next_page_token` value returned from a previous List request, if any. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } /** - * 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. The name of the resource to list all attached Liens. For example, + * `projects/1234`. (google.api.field_policy).resource_type annotation is not set since the + * parent depends on the meta api implementation. This field could be a project or other sub + * project resources. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String parent; - /** 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. The name of the resource to list all attached Liens. For example, `projects/1234`. + (google.api.field_policy).resource_type annotation is not set since the parent depends on the meta + api implementation. This field could be a project or other sub project resources. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParent() { + return parent; } /** - * 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. The name of the resource to list all attached Liens. For example, + * `projects/1234`. (google.api.field_policy).resource_type annotation is not set since the + * parent depends on the meta api implementation. This field could be a project or other sub + * project resources. */ - 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 " + - "^organizations/[^/]+$"); - } - this.resource = resource; + public List setParent(java.lang.String parent) { + this.parent = parent; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Locations collection. + * + *

The typical use is:

+ *
+   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+   *   {@code CloudResourceManager.Locations.List request = cloudresourcemanager.locations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + /** - * Searches organization resources that are visible to the user and satisfy the specified filter. - * This method returns organizations in an unspecified order. New organizations do not necessarily - * appear at the end of the results, and may take a small amount of time to appear. Search will only - * return organizations on which the user has the permission `resourcemanager.organizations.get` or - * has super admin privileges. - * - * Create a request for the method "organizations.search". + * An accessor for creating requests from the EffectiveTagBindingCollections collection. * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+     *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+     *   {@code CloudResourceManager.EffectiveTagBindingCollections.List request = cloudresourcemanager.effectiveTagBindingCollections().list(parameters ...)}
+     * 
* - * @return the request + * @return the resource collection */ - public Search search() throws java.io.IOException { - Search result = new Search(); - initialize(result); - return result; + public EffectiveTagBindingCollections effectiveTagBindingCollections() { + return new EffectiveTagBindingCollections(); } - public class Search extends CloudResourceManagerRequest { - - private static final String REST_PATH = "v3/organizations:search"; + /** + * The "effectiveTagBindingCollections" collection of methods. + */ + public class EffectiveTagBindingCollections { /** - * Searches organization resources that are visible to the user and satisfy the specified filter. - * This method returns organizations in an unspecified order. New organizations do not necessarily - * appear at the end of the results, and may take a small amount of time to appear. Search will - * only return organizations on which the user has the permission - * `resourcemanager.organizations.get` or has super admin privileges. + * Returns effective tag bindings on a GCP resource. * - * Create a request for the method "organizations.search". + * Create a request for the method "effectiveTagBindingCollections.get". * - * This request holds the parameters needed by the the cloudresourcemanager server. After setting - * any optional parameters, call the {@link Search#execute()} method to invoke the remote - * operation.

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

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @since 1.13 + * @param name Required. The full name of the EffectiveTagBindingCollection in format: + * `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where + * the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings + * are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourceman + * ager.googleapis.com%2fprojects%2f123" + * @return the request */ - protected Search() { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.SearchOrganizationsResponse.class); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class Get extends CloudResourceManagerRequest { - @Override - public Search set$Xgafv(java.lang.String $Xgafv) { - return (Search) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v3/{+name}"; - @Override - public Search setAccessToken(java.lang.String accessToken) { - return (Search) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+/effectiveTagBindingCollections/[^/]+$"); - @Override - public Search setAlt(java.lang.String alt) { - return (Search) super.setAlt(alt); - } + /** + * Returns effective tag bindings on a GCP resource. + * + * Create a request for the method "effectiveTagBindingCollections.get". + * + * This request holds the parameters needed by the the cloudresourcemanager 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. The full name of the EffectiveTagBindingCollection in format: + * `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where + * the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings + * are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourceman + * ager.googleapis.com%2fprojects%2f123" + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.EffectiveTagBindingCollection.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 " + + "^locations/[^/]+/effectiveTagBindingCollections/[^/]+$"); + } + } - @Override - public Search setCallback(java.lang.String callback) { - return (Search) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Search setFields(java.lang.String fields) { - return (Search) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Search setKey(java.lang.String key) { - return (Search) super.setKey(key); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Search setOauthToken(java.lang.String oauthToken) { - return (Search) super.setOauthToken(oauthToken); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Search setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Search) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Search setQuotaUser(java.lang.String quotaUser) { - return (Search) super.setQuotaUser(quotaUser); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Search setUploadType(java.lang.String uploadType) { - return (Search) super.setUploadType(uploadType); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Search setUploadProtocol(java.lang.String uploadProtocol) { - return (Search) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** - * Optional. The maximum number of organizations to return in the response. The server can - * return fewer organizations than requested. If unspecified, server picks an appropriate - * default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** Optional. The maximum number of organizations to return in the response. The server can return - fewer organizations than requested. If unspecified, server picks an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** - * Optional. The maximum number of organizations to return in the response. The server can - * return fewer organizations than requested. If unspecified, server picks an appropriate - * default. - */ - public Search setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * Optional. A pagination token returned from a previous call to `SearchOrganizations` that - * indicates from where listing should continue. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** Optional. A pagination token returned from a previous call to `SearchOrganizations` that indicates - from where listing should continue. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. A pagination token returned from a previous call to `SearchOrganizations` that - * indicates from where listing should continue. - */ - public Search setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * Required. The full name of the EffectiveTagBindingCollection in format: + * `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where + * the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings + * are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcema + * nager.googleapis.com%2fprojects%2f123" + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Optional. An optional query string used to filter the Organizations to return in the - * response. Query rules are case-insensitive. ``` | Field | Description | - * |------------------|--------------------------------------------| | directoryCustomerId, - * owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by - * domain. | ``` Organizations may be queried by `directoryCustomerId` or by `domain`, where - * the domain is a G Suite domain, for example: * Query `directorycustomerid:123456789` - * returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * - * Query `domain:google.com` returns Organization resources corresponding to the domain - * `google.com`. - */ - @com.google.api.client.util.Key - private java.lang.String query; + /** Required. The full name of the EffectiveTagBindingCollection in format: + `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where the + encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. + E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fp + rojects%2f123" + */ + public java.lang.String getName() { + return name; + } - /** Optional. An optional query string used to filter the Organizations to return in the response. - Query rules are case-insensitive. ``` | Field | Description | - |------------------|--------------------------------------------| | directoryCustomerId, - owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by domain. | ``` - Organizations may be queried by `directoryCustomerId` or by `domain`, where the domain is a G Suite - domain, for example: * Query `directorycustomerid:123456789` returns Organization resources with - `owner.directory_customer_id` equal to `123456789`. * Query `domain:google.com` returns - Organization resources corresponding to the domain `google.com`. - */ - public java.lang.String getQuery() { - return query; - } + /** + * Required. The full name of the EffectiveTagBindingCollection in format: + * `locations/{location}/effectiveTagBindingCollections/{encoded-full-resource-name}` where + * the encoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings + * are bound to. E.g. "locations/global/effectiveTagBindingCollections/%2f%2fcloudresourcema + * nager.googleapis.com%2fprojects%2f123" + */ + 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 " + + "^locations/[^/]+/effectiveTagBindingCollections/[^/]+$"); + } + this.name = name; + return this; + } - /** - * Optional. An optional query string used to filter the Organizations to return in the - * response. Query rules are case-insensitive. ``` | Field | Description | - * |------------------|--------------------------------------------| | directoryCustomerId, - * owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by - * domain. | ``` Organizations may be queried by `directoryCustomerId` or by `domain`, where - * the domain is a G Suite domain, for example: * Query `directorycustomerid:123456789` - * returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * - * Query `domain:google.com` returns Organization resources corresponding to the domain - * `google.com`. - */ - public Search setQuery(java.lang.String query) { - this.query = query; - return this; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } - @Override - public Search set(String parameterName, Object value) { - return (Search) super.set(parameterName, value); - } } /** - * Sets the access control policy on an organization resource. Replaces any existing policy. The - * `resource` field should be the organization's resource name, for example: "organizations/123". - * Authorization requires the IAM permission `resourcemanager.organizations.setIamPolicy` on the - * specified organization. - * - * Create a request for the method "organizations.setIamPolicy". + * An accessor for creating requests from the TagBindingCollections collection. * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation. + *

The typical use is:

+ *
+     *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+     *   {@code CloudResourceManager.TagBindingCollections.List request = cloudresourcemanager.tagBindingCollections().list(parameters ...)}
+     * 
* - * @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.cloudresourcemanager.v3.model.SetIamPolicyRequest} - * @return the request + * @return the resource collection */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; + public TagBindingCollections tagBindingCollections() { + return new TagBindingCollections(); } - public class SetIamPolicy extends CloudResourceManagerRequest { - - private static final String REST_PATH = "v3/{+resource}:setIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+$"); + /** + * The "tagBindingCollections" collection of methods. + */ + public class TagBindingCollections { /** - * Sets the access control policy on an organization resource. Replaces any existing policy. The - * `resource` field should be the organization's resource name, for example: "organizations/123". - * Authorization requires the IAM permission `resourcemanager.organizations.setIamPolicy` on the - * specified organization. + * Returns tag bindings directly attached to a GCP resource. * - * Create a request for the method "organizations.setIamPolicy". + * Create a request for the method "tagBindingCollections.get". * - * This request holds the parameters needed by the the cloudresourcemanager 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.

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional 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.cloudresourcemanager.v3.model.SetIamPolicyRequest} - * @since 1.13 + * @param name Required. The full name of the TagBindingCollection in format: + * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the + * enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are + * bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleap + * is.com%2fprojects%2f123" + * @return the request */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.SetIamPolicyRequest content) { - super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^organizations/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } + public class Get extends CloudResourceManagerRequest { - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v3/{+name}"; - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+/tagBindingCollections/[^/]+$"); - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } + /** + * Returns tag bindings directly attached to a GCP resource. + * + * Create a request for the method "tagBindingCollections.get". + * + * This request holds the parameters needed by the the cloudresourcemanager 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. The full name of the TagBindingCollection in format: + * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the + * enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are + * bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleap + * is.com%2fprojects%2f123" + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection.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 " + + "^locations/[^/]+/tagBindingCollections/[^/]+$"); + } + } - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * 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; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** 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; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * 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 " + - "^organizations/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.resource = resource; - return this; - } - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns the permissions that a caller has on the specified organization. The `resource` field - * should be the organization's resource name, for example: "organizations/123". There are no - * permissions required for making this API call. - * - * Create a request for the method "organizations.testIamPermissions". - * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class TestIamPermissions extends CloudResourceManagerRequest { + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v3/{+resource}:testIamPermissions"; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+$"); + /** + * Required. The full name of the TagBindingCollection in format: + * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the + * enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are + * bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googlea + * pis.com%2fprojects%2f123" + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Returns the permissions that a caller has on the specified organization. The `resource` field - * should be the organization's resource name, for example: "organizations/123". There are no - * permissions required for making this API call. - * - * Create a request for the method "organizations.testIamPermissions". - * - * This request holds the parameters needed by the the cloudresourcemanager 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.ser - * vices.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.cloudresourcemanager.v3.model.TestIamPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest content) { - super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^organizations/[^/]+$"); + /** Required. The full name of the TagBindingCollection in format: + `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the enoded-full- + resource-name is the UTF-8 encoded name of the resource the TagBindings are bound to. E.g. + "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" + */ + public java.lang.String getName() { + return name; } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } + /** + * Required. The full name of the TagBindingCollection in format: + * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the + * enoded-full-resource-name is the UTF-8 encoded name of the resource the TagBindings are + * bound to. E.g. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googlea + * pis.com%2fprojects%2f123" + */ + 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 " + + "^locations/[^/]+/tagBindingCollections/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + /** + * Updates tag bindings directly attached to a GCP resource. Update_mask can be kept empty or "*". + * + * Create a request for the method "tagBindingCollections.patch". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The name of the TagBindingCollection, following the convention: + * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the + * encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings + * are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapi + * s.com%2fprojects%2f123" + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; } - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } + public class Patch extends CloudResourceManagerRequest { - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } + private static final String REST_PATH = "v3/{+name}"; - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+/tagBindingCollections/[^/]+$"); - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } + /** + * Updates tag bindings directly attached to a GCP resource. Update_mask can be kept empty or "*". + * + * Create a request for the method "tagBindingCollections.patch". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Identifier. The name of the TagBindingCollection, following the convention: + * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the + * encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings + * are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapi + * s.com%2fprojects%2f123" + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.TagBindingCollection content) { + super(CloudResourceManager.this, "PATCH", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/tagBindingCollections/[^/]+$"); + } + } - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** - * 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; + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^organizations/[^/]+$"); + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } - this.resource = resource; - return this; - } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + @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); + } - /** - * An accessor for creating requests from the Projects collection. - * - *

The typical use is:

- *
-   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
-   *   {@code CloudResourceManager.Projects.List request = cloudresourcemanager.projects().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Projects projects() { - return new Projects(); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** - * The "projects" collection of methods. - */ - public class Projects { + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** - * Request that a new project be created. The result is an `Operation` which can be used to track - * the creation process. This process usually takes a few seconds, but can sometimes take much - * longer. The tracking `Operation` is automatically deleted after a few hours, so there is no need - * to call `DeleteOperation`. - * - * Create a request for the method "projects.create". - * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Project} - * @return the request - */ - public Create create(com.google.api.services.cloudresourcemanager.v3.model.Project content) throws java.io.IOException { - Create result = new Create(content); - initialize(result); - return result; - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - public class Create extends CloudResourceManagerRequest { - - private static final String REST_PATH = "v3/projects"; - - /** - * Request that a new project be created. The result is an `Operation` which can be used to track - * the creation process. This process usually takes a few seconds, but can sometimes take much - * longer. The tracking `Operation` is automatically deleted after a few hours, so there is no - * need to call `DeleteOperation`. - * - * Create a request for the method "projects.create". - * - * This request holds the parameters needed by the the cloudresourcemanager 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 content the {@link com.google.api.services.cloudresourcemanager.v3.model.Project} - * @since 1.13 - */ - protected Create(com.google.api.services.cloudresourcemanager.v3.model.Project content) { - super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + /** + * Identifier. The name of the TagBindingCollection, following the convention: + * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the + * encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings + * are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleap + * is.com%2fprojects%2f123" + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + /** Identifier. The name of the TagBindingCollection, following the convention: + `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the encoded-full- + resource-name is the UTF-8 encoded name of the GCP resource the TagBindings are bound to. + "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%2fprojects%2f123" + */ + public java.lang.String getName() { + return name; + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * Identifier. The name of the TagBindingCollection, following the convention: + * `locations/{location}/tagBindingCollections/{encoded-full-resource-name}` where the + * encoded-full-resource-name is the UTF-8 encoded name of the GCP resource the TagBindings + * are bound to. "locations/global/tagBindingCollections/%2f%2fcloudresourcemanager.googleap + * is.com%2fprojects%2f123" + */ + 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 " + + "^locations/[^/]+/tagBindingCollections/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + /** Optional. An update mask to selectively update fields. */ + @com.google.api.client.util.Key + private String updateMask; - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + /** Optional. An update mask to selectively update fields. + */ + public String getUpdateMask() { + return updateMask; + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + /** Optional. An update mask to selectively update fields. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } } - @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); - } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+   *   {@code CloudResourceManager.Operations.List request = cloudresourcemanager.operations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + /** + * The "operations" collection of methods. + */ + public class Operations { - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } /** - * Marks the project identified by the specified `name` (for example, `projects/415104041262`) for - * deletion. This method will only affect the project if it has a lifecycle state of ACTIVE. This - * method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts - * at an unspecified time, at which point the Project is no longer accessible. Until the deletion - * completes, you can check the lifecycle state checked by retrieving the project with GetProject, - * and the project remains visible to ListProjects. However, you cannot update the project. After - * the deletion completes, the project is not retrievable by the GetProject, ListProjects, and - * SearchProjects methods. The caller must have `resourcemanager.projects.delete` permissions for - * this project. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "projects.delete". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Project (for example, `projects/415104041262`). + * @param name The name of the operation resource. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Delete extends CloudResourceManagerRequest { + public class Get extends CloudResourceManagerRequest { private static final String REST_PATH = "v3/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + java.util.regex.Pattern.compile("^operations/.*$"); /** - * Marks the project identified by the specified `name` (for example, `projects/415104041262`) for - * deletion. This method will only affect the project if it has a lifecycle state of ACTIVE. This - * method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion - * starts at an unspecified time, at which point the Project is no longer accessible. Until the - * deletion completes, you can check the lifecycle state checked by retrieving the project with - * GetProject, and the project remains visible to ListProjects. However, you cannot update the - * project. After the deletion completes, the project is not retrievable by the GetProject, - * ListProjects, and SearchProjects methods. The caller must have - * `resourcemanager.projects.delete` permissions for this project. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "projects.delete". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the the cloudresourcemanager 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.

+ * 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. The name of the Project (for example, `projects/415104041262`). + * @param name The name of the operation resource. * @since 1.13 */ - protected Delete(java.lang.String name) { - super(CloudResourceManager.this, "DELETE", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + protected Get(java.lang.String name) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+$"); + "^operations/.*$"); } } @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** Required. The name of the Project (for example, `projects/415104041262`). */ + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Project (for example, `projects/415104041262`). + /** The name of the operation resource. */ public java.lang.String getName() { return name; } - /** Required. The name of the Project (for example, `projects/415104041262`). */ - public Delete setName(java.lang.String name) { + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+$"); + "^operations/.*$"); } this.name = name; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Organizations collection. + * + *

The typical use is:

+ *
+   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+   *   {@code CloudResourceManager.Organizations.List request = cloudresourcemanager.organizations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Organizations organizations() { + return new Organizations(); + } + + /** + * The "organizations" collection of methods. + */ + public class Organizations { + /** - * Retrieves the project identified by the specified `name` (for example, `projects/415104041262`). - * The caller must have `resourcemanager.projects.get` permission for this project. + * Fetches an organization resource identified by the specified resource name. * - * Create a request for the method "projects.get". + * Create a request for the method "organizations.get". * * This request holds the parameters needed by the cloudresourcemanager server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the project (for example, `projects/415104041262`). + * @param name Required. The resource name of the Organization to fetch. This is the organization's relative path + * in the API, formatted as "organizations/[organizationId]". For example, + * "organizations/1234". * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -4893,19 +4688,17 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends CloudResourceManagerRequest { + public class Get extends CloudResourceManagerRequest { private static final String REST_PATH = "v3/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + java.util.regex.Pattern.compile("^organizations/[^/]+$"); /** - * Retrieves the project identified by the specified `name` (for example, - * `projects/415104041262`). The caller must have `resourcemanager.projects.get` permission for - * this project. + * Fetches an organization resource identified by the specified resource name. * - * Create a request for the method "projects.get". + * Create a request for the method "organizations.get". * * This request holds the parameters needed by the the cloudresourcemanager server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. @@ -4913,16 +4706,18 @@ public class Get extends CloudResourceManagerRequest * - * @param name Required. The name of the project (for example, `projects/415104041262`). + * @param name Required. The resource name of the Organization to fetch. This is the organization's relative path + * in the API, formatted as "organizations/[organizationId]". For example, + * "organizations/1234". * @since 1.13 */ protected Get(java.lang.String name) { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Project.class); + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Organization.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/[^/]+$"); + "^organizations/[^/]+$"); } } @@ -4991,22 +4786,31 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the project (for example, `projects/415104041262`). */ + /** + * Required. The resource name of the Organization to fetch. This is the organization's + * relative path in the API, formatted as "organizations/[organizationId]". For example, + * "organizations/1234". + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the project (for example, `projects/415104041262`). + /** Required. The resource name of the Organization to fetch. This is the organization's relative path + in the API, formatted as "organizations/[organizationId]". For example, "organizations/1234". */ public java.lang.String getName() { return name; } - /** Required. The name of the project (for example, `projects/415104041262`). */ + /** + * Required. The resource name of the Organization to fetch. This is the organization's + * relative path in the API, formatted as "organizations/[organizationId]". For example, + * "organizations/1234". + */ 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/[^/]+$"); + "^organizations/[^/]+$"); } this.name = name; return this; @@ -5018,11 +4822,12 @@ public Get set(String parameterName, Object value) { } } /** - * Returns the IAM access control policy for the specified project, in the format - * `projects/{ProjectIdOrNumber}` e.g. projects/123. Permission is denied if the policy or the - * resource do not exist. + * Gets the access control policy for an organization resource. The policy may be empty if no such + * policy or resource exists. The `resource` field should be the organization's resource name, for + * example: "organizations/123". Authorization requires the IAM permission + * `resourcemanager.organizations.getIamPolicy` on the specified organization. * - * Create a request for the method "projects.getIamPolicy". + * Create a request for the method "organizations.getIamPolicy". * * This request holds the parameters needed by the cloudresourcemanager server. After setting any * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote @@ -5045,14 +4850,15 @@ public class GetIamPolicy extends CloudResourceManagerRequest { + public class Search extends CloudResourceManagerRequest { - private static final String REST_PATH = "v3/projects"; + private static final String REST_PATH = "v3/organizations:search"; /** - * Lists projects that are direct children of the specified folder or organization resource. - * `list()` provides a strongly consistent view of the projects underneath the specified parent - * resource. `list()` returns projects sorted based upon the (ascending) lexical ordering of their - * `display_name`. The caller must have `resourcemanager.projects.list` permission on the - * identified parent. + * Searches organization resources that are visible to the user and satisfy the specified filter. + * This method returns organizations in an unspecified order. New organizations do not necessarily + * appear at the end of the results, and may take a small amount of time to appear. Search will + * only return organizations on which the user has the permission + * `resourcemanager.organizations.get` or has super admin privileges. * - * Create a request for the method "projects.list". + * Create a request for the method "organizations.search". * * This request holds the parameters needed by the the cloudresourcemanager 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.

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

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

* * @since 1.13 */ - protected List() { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.ListProjectsResponse.class); + protected Search() { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.SearchOrganizationsResponse.class); } @Override @@ -5223,676 +5029,2628 @@ 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 Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); } /** - * Optional. The maximum number of projects to return in the response. The server can return - * fewer projects than requested. If unspecified, server picks an appropriate default. + * Optional. The maximum number of organizations to return in the response. The server can + * return fewer organizations than requested. If unspecified, server picks an appropriate + * default. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The maximum number of projects to return in the response. The server can return fewer - projects than requested. If unspecified, server picks an appropriate default. + /** Optional. The maximum number of organizations to return in the response. The server can return + fewer organizations than requested. If unspecified, server picks an appropriate default. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * Optional. The maximum number of projects to return in the response. The server can return - * fewer projects than requested. If unspecified, server picks an appropriate default. + * Optional. The maximum number of organizations to return in the response. The server can + * return fewer organizations than requested. If unspecified, server picks an appropriate + * default. */ - public List setPageSize(java.lang.Integer pageSize) { + public Search setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A pagination token returned from a previous call to ListProjects that indicates - * from where listing should continue. + * Optional. A pagination token returned from a previous call to `SearchOrganizations` that + * indicates from where listing should continue. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A pagination token returned from a previous call to ListProjects that indicates from - where listing should continue. + /** Optional. A pagination token returned from a previous call to `SearchOrganizations` that indicates + from where listing should continue. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A pagination token returned from a previous call to ListProjects that indicates - * from where listing should continue. + * Optional. A pagination token returned from a previous call to `SearchOrganizations` that + * indicates from where listing should continue. */ - public List setPageToken(java.lang.String pageToken) { + public Search setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } /** - * Required. The name of the parent resource whose projects are being listed. Only children of - * this parent resource are listed; descendants are not listed. If the parent is a folder, use - * the value `folders/{folder_id}`. If the parent is an organization, use the value - * `organizations/{org_id}`. + * Optional. An optional query string used to filter the Organizations to return in the + * response. Query rules are case-insensitive. ``` | Field | Description | + * |------------------|--------------------------------------------| | directoryCustomerId, + * owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by + * domain. | ``` Organizations may be queried by `directoryCustomerId` or by `domain`, where + * the domain is a G Suite domain, for example: * Query `directorycustomerid:123456789` + * returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * + * Query `domain:google.com` returns Organization resources corresponding to the domain + * `google.com`. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String query; - /** Required. The name of the parent resource whose projects are being listed. Only children of this - parent resource are listed; descendants are not listed. If the parent is a folder, use the value - `folders/{folder_id}`. If the parent is an organization, use the value `organizations/{org_id}`. + /** Optional. An optional query string used to filter the Organizations to return in the response. + Query rules are case-insensitive. ``` | Field | Description | + |------------------|--------------------------------------------| | directoryCustomerId, + owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by domain. | ``` + Organizations may be queried by `directoryCustomerId` or by `domain`, where the domain is a G Suite + domain, for example: * Query `directorycustomerid:123456789` returns Organization resources with + `owner.directory_customer_id` equal to `123456789`. * Query `domain:google.com` returns + Organization resources corresponding to the domain `google.com`. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getQuery() { + return query; } /** - * Required. The name of the parent resource whose projects are being listed. Only children of - * this parent resource are listed; descendants are not listed. If the parent is a folder, use - * the value `folders/{folder_id}`. If the parent is an organization, use the value - * `organizations/{org_id}`. - */ - public List setParent(java.lang.String parent) { - this.parent = parent; - return this; - } - - /** - * Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. - * Normally only `ACTIVE` projects are returned. - */ - @com.google.api.client.util.Key - private java.lang.Boolean showDeleted; - - /** Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. Normally - only `ACTIVE` projects are returned. - */ - public java.lang.Boolean getShowDeleted() { - return showDeleted; - } - - /** - * Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. - * Normally only `ACTIVE` projects are returned. + * Optional. An optional query string used to filter the Organizations to return in the + * response. Query rules are case-insensitive. ``` | Field | Description | + * |------------------|--------------------------------------------| | directoryCustomerId, + * owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by + * domain. | ``` Organizations may be queried by `directoryCustomerId` or by `domain`, where + * the domain is a G Suite domain, for example: * Query `directorycustomerid:123456789` + * returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * + * Query `domain:google.com` returns Organization resources corresponding to the domain + * `google.com`. */ - public List setShowDeleted(java.lang.Boolean showDeleted) { - this.showDeleted = showDeleted; + public Search setQuery(java.lang.String query) { + this.query = query; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Search set(String parameterName, Object value) { + return (Search) super.set(parameterName, value); } } /** - * Move a project to another place in your resource hierarchy, under a new resource parent. Returns - * an operation which can be used to track the process of the project move workflow. Upon success, - * the `Operation.response` field will be populated with the moved project. The caller must have - * `resourcemanager.projects.move` permission on the project, on the project's current and proposed - * new parent. If project has no current parent, or it currently does not have an associated - * organization resource, you will also need the `resourcemanager.projects.setIamPolicy` permission - * in the project. + * Sets the access control policy on an organization resource. Replaces any existing policy. The + * `resource` field should be the organization's resource name, for example: "organizations/123". + * Authorization requires the IAM permission `resourcemanager.organizations.setIamPolicy` on the + * specified organization. * - * Create a request for the method "projects.move". + * Create a request for the method "organizations.setIamPolicy". * * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Move#execute()} method to invoke the remote operation. + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation. * - * @param name Required. The name of the project to move. - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.MoveProjectRequest} + * @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.cloudresourcemanager.v3.model.SetIamPolicyRequest} * @return the request */ - public Move move(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.MoveProjectRequest content) throws java.io.IOException { - Move result = new Move(name, content); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class Move extends CloudResourceManagerRequest { + public class SetIamPolicy extends CloudResourceManagerRequest { - private static final String REST_PATH = "v3/{+name}:move"; + private static final String REST_PATH = "v3/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+$"); /** - * Move a project to another place in your resource hierarchy, under a new resource parent. - * Returns an operation which can be used to track the process of the project move workflow. Upon - * success, the `Operation.response` field will be populated with the moved project. The caller - * must have `resourcemanager.projects.move` permission on the project, on the project's current - * and proposed new parent. If project has no current parent, or it currently does not have an - * associated organization resource, you will also need the - * `resourcemanager.projects.setIamPolicy` permission in the project. + * Sets the access control policy on an organization resource. Replaces any existing policy. The + * `resource` field should be the organization's resource name, for example: "organizations/123". + * Authorization requires the IAM permission `resourcemanager.organizations.setIamPolicy` on the + * specified organization. * - * Create a request for the method "projects.move". + * Create a request for the method "organizations.setIamPolicy". * * This request holds the parameters needed by the the cloudresourcemanager server. After setting - * any optional parameters, call the {@link Move#execute()} method to invoke the remote operation. - *

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

+ * 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 name Required. The name of the project to move. - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.MoveProjectRequest} + * @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.cloudresourcemanager.v3.model.SetIamPolicyRequest} * @since 1.13 */ - protected Move(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.MoveProjectRequest content) { - super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.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.cloudresourcemanager.v3.model.SetIamPolicyRequest content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^organizations/[^/]+$"); } } @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the project to move. */ + /** + * 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. The name of the project to move. + /** 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. The name of the project to move. */ - public Move setName(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. + */ + 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 " + - "^projects/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^organizations/[^/]+$"); } - this.name = name; + this.resource = resource; return this; } @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Updates the `display_name` and labels of the project identified by the specified `name` (for - * example, `projects/415104041262`). Deleting all labels requires an update mask for labels field. - * The caller must have `resourcemanager.projects.update` permission for this project. + * Returns the permissions that a caller has on the specified organization. The `resource` field + * should be the organization's resource name, for example: "organizations/123". There are no + * permissions required for making this API call. * - * Create a request for the method "projects.patch". + * Create a request for the method "organizations.testIamPermissions". * * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation. * - * @param name Output only. The unique resource name of the project. It is an int64 generated number prefixed by - * "projects/". Example: `projects/415104041262` - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Project} + * @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.cloudresourcemanager.v3.model.TestIamPermissionsRequest} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.Project content) throws java.io.IOException { - Patch result = new Patch(name, content); + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } - public class Patch extends CloudResourceManagerRequest { + public class TestIamPermissions extends CloudResourceManagerRequest { - private static final String REST_PATH = "v3/{+name}"; + private static final String REST_PATH = "v3/{+resource}:testIamPermissions"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+$"); /** - * Updates the `display_name` and labels of the project identified by the specified `name` (for - * example, `projects/415104041262`). Deleting all labels requires an update mask for labels - * field. The caller must have `resourcemanager.projects.update` permission for this project. + * Returns the permissions that a caller has on the specified organization. The `resource` field + * should be the organization's resource name, for example: "organizations/123". There are no + * permissions required for making this API call. * - * Create a request for the method "projects.patch". + * Create a request for the method "organizations.testIamPermissions". * * This request holds the parameters needed by the the cloudresourcemanager 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.

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

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

* - * @param name Output only. The unique resource name of the project. It is an int64 generated number prefixed by - * "projects/". Example: `projects/415104041262` - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Project} + * @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.cloudresourcemanager.v3.model.TestIamPermissionsRequest} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.Project content) { - super(CloudResourceManager.this, "PATCH", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected TestIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+$"); - } - } + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^organizations/[^/]+$"); + } + } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** - * Output only. The unique resource name of the project. It is an int64 generated number - * prefixed by "projects/". Example: `projects/415104041262` + * 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 name; + private java.lang.String resource; - /** Output only. The unique resource name of the project. It is an int64 generated number prefixed by - "projects/". Example: `projects/415104041262` + /** 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 getName() { - return name; + public java.lang.String getResource() { + return resource; } /** - * Output only. The unique resource name of the project. It is an int64 generated number - * prefixed by "projects/". Example: `projects/415104041262` + * 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 Patch setName(java.lang.String name) { + public TestIamPermissions 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 " + - "^projects/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^organizations/[^/]+$"); } - this.name = name; - return this; - } - - /** Optional. An update mask to selectively update fields. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. An update mask to selectively update fields. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Optional. An update mask to selectively update fields. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + this.resource = resource; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + /** - * Search for projects that the caller has the `resourcemanager.projects.get` permission on, and - * also satisfy the specified query. This method returns projects in an unspecified order. This - * method is eventually consistent with project mutations; this means that a newly created project - * may not appear in the results or recent updates to an existing project may not be reflected in - * the results. To retrieve the latest state of a project, use the GetProject method. - * - * Create a request for the method "projects.search". + * An accessor for creating requests from the CapabilityConfigs collection. * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+     *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+     *   {@code CloudResourceManager.CapabilityConfigs.List request = cloudresourcemanager.capabilityConfigs().list(parameters ...)}
+     * 
* - * @return the request + * @return the resource collection */ - public Search search() throws java.io.IOException { - Search result = new Search(); - initialize(result); - return result; + public CapabilityConfigs capabilityConfigs() { + return new CapabilityConfigs(); } - public class Search extends CloudResourceManagerRequest { - - private static final String REST_PATH = "v3/projects:search"; + /** + * The "capabilityConfigs" collection of methods. + */ + public class CapabilityConfigs { /** - * Search for projects that the caller has the `resourcemanager.projects.get` permission on, and - * also satisfy the specified query. This method returns projects in an unspecified order. This - * method is eventually consistent with project mutations; this means that a newly created project - * may not appear in the results or recent updates to an existing project may not be reflected in - * the results. To retrieve the latest state of a project, use the GetProject method. + * Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a + * CapabilityConfig triggers the creation of a Management Project if one is not supplied. * - * Create a request for the method "projects.search". + * Create a request for the method "capabilityConfigs.create". * - * This request holds the parameters needed by the the cloudresourcemanager server. After setting - * any optional parameters, call the {@link Search#execute()} method to invoke the remote - * operation.

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

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @since 1.13 + * @param parent Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @return the request */ - protected Search() { - super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.SearchProjectsResponse.class); + public Create create(java.lang.String parent, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Create extends CloudResourceManagerRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v3/{+parent}/capabilityConfigs"; - @Override - public Search set$Xgafv(java.lang.String $Xgafv) { - return (Search) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+$"); - @Override - public Search setAccessToken(java.lang.String accessToken) { - return (Search) super.setAccessToken(accessToken); - } + /** + * Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a + * CapabilityConfig triggers the creation of a Management Project if one is not supplied. + * + * Create a request for the method "capabilityConfigs.create". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + } - @Override - public Search setAlt(java.lang.String alt) { - return (Search) super.setAlt(alt); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Search setCallback(java.lang.String callback) { - return (Search) super.setCallback(callback); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Search setFields(java.lang.String fields) { - return (Search) super.setFields(fields); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Search setKey(java.lang.String key) { - return (Search) super.setKey(key); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Search setOauthToken(java.lang.String oauthToken) { - return (Search) super.setOauthToken(oauthToken); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Search setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Search) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Search setQuotaUser(java.lang.String quotaUser) { - return (Search) super.setQuotaUser(quotaUser); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Search setUploadType(java.lang.String uploadType) { - return (Search) super.setUploadType(uploadType); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Search setUploadProtocol(java.lang.String uploadProtocol) { - return (Search) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** - * Optional. The maximum number of projects to return in the response. The server can return - * fewer projects than requested. If unspecified, server picks an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** Optional. The maximum number of projects to return in the response. The server can return fewer - projects than requested. If unspecified, server picks an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource under which the CapabilityConfig will be created. Format: + `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + */ + 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 " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The user-assigned ID for the CapabilityConfig, which will become the final + * component of the CapabilityConfig's resource name. Must be unique within the parent + * resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start + * with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + */ + @com.google.api.client.util.Key + private java.lang.String capabilityConfigId; + + /** Required. The user-assigned ID for the CapabilityConfig, which will become the final component of + the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 + lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are + prohibited. Example: `my-capability-config-123` + */ + public java.lang.String getCapabilityConfigId() { + return capabilityConfigId; + } + + /** + * Required. The user-assigned ID for the CapabilityConfig, which will become the final + * component of the CapabilityConfig's resource name. Must be unique within the parent + * resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start + * with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + */ + public Create setCapabilityConfigId(java.lang.String capabilityConfigId) { + this.capabilityConfigId = capabilityConfigId; + return this; + } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } /** - * Optional. The maximum number of projects to return in the response. The server can return - * fewer projects than requested. If unspecified, server picks an appropriate default. + * Deletes the CapabilityConfig identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.delete". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @return the request */ - public Search setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - /** - * Optional. A pagination token returned from a previous call to ListProjects that indicates - * from where listing should continue. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + public class Delete extends CloudResourceManagerRequest { - /** Optional. A pagination token returned from a previous call to ListProjects that indicates from - where listing should continue. - */ - public java.lang.String getPageToken() { - return pageToken; - } + private static final String REST_PATH = "v3/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/capabilityConfigs/[^/]+$"); + + /** + * Deletes the CapabilityConfig identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.delete". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudResourceManager.this, "DELETE", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/capabilityConfigs/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the CapabilityConfig to delete. Format: + `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + 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 " + + "^organizations/[^/]+/capabilityConfigs/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Optional. A pagination token returned from a previous call to ListProjects that indicates - * from where listing should continue. + * Retrieves the Capability Config identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.get". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + * @return the request */ - public Search setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * Optional. A query string for searching for projects that the caller has - * `resourcemanager.projects.get` permission to. If multiple fields are included in the query, - * then it will return results that match any of the fields. Some eligible fields are: ``` | - * Field | Description | - * |-------------------------|----------------------------------------------| | displayName, - * name | Filters by displayName. | | parent | Project's parent (for example: folders/123, - * organizations). Prefer parent field over parent.type and parent.id.| | parent.type | - * Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: - * 123) | | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by - * state. | | labels | Filters by label name or value. | | labels.\ (where *key* is the name - * of a label) | Filters by label name.| ``` Search expressions are case insensitive. Some - * examples queries: ``` | Query | Description | - * |------------------|-----------------------------------------------------| | name:how* | - * The project's name starts with "how". | | name:Howl | The project's name is `Howl` or - * `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | - * labels.color:* | The project has the label `color`. | | labels.color:red | The project's - * label `color` has the value `red`. | | labels.color:red labels.size:big | The project's - * label `color` has the value `red` or its label `size` has the value `big`. | ``` If no - * query is specified, the call will return projects for which the user has the - * `resourcemanager.projects.get` permission. - */ - @com.google.api.client.util.Key - private java.lang.String query; + public class Get extends CloudResourceManagerRequest { - /** Optional. A query string for searching for projects that the caller has - `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it - will return results that match any of the fields. Some eligible fields are: ``` | Field | - Description | |-------------------------|----------------------------------------------| | - displayName, name | Filters by displayName. | | parent | Project's parent (for example: - folders/123, organizations). Prefer parent field over parent.type and parent.id.| | parent.type | - Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: 123) | - | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by state. | | labels | - Filters by label name or value. | | labels.\ (where *key* is the name of a label) | Filters by - label name.| ``` Search expressions are case insensitive. Some examples queries: ``` | Query | - Description | |------------------|-----------------------------------------------------| | - name:how* | The project's name starts with "how". | | name:Howl | The project's name is `Howl` or - `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | - labels.color:* | The project has the label `color`. | | labels.color:red | The project's label - `color` has the value `red`. | | labels.color:red labels.size:big | The project's label `color` has - the value `red` or its label `size` has the value `big`. | ``` If no query is specified, the call - will return projects for which the user has the `resourcemanager.projects.get` permission. - */ - public java.lang.String getQuery() { - return query; - } + private static final String REST_PATH = "v3/{+name}"; - /** - * Optional. A query string for searching for projects that the caller has - * `resourcemanager.projects.get` permission to. If multiple fields are included in the query, - * then it will return results that match any of the fields. Some eligible fields are: ``` | - * Field | Description | - * |-------------------------|----------------------------------------------| | displayName, - * name | Filters by displayName. | | parent | Project's parent (for example: folders/123, - * organizations). Prefer parent field over parent.type and parent.id.| | parent.type | + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/capabilityConfigs/[^/]+$"); + + /** + * Retrieves the Capability Config identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.get". + * + * This request holds the parameters needed by the the cloudresourcemanager 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. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig.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 " + + "^organizations/[^/]+/capabilityConfigs/[^/]+$"); + } + } + + @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. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the CapabilityConfig to retrieve. Format: + `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + `folders/123456789/capabilityConfigs/my-capability-config` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + */ + 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 " + + "^organizations/[^/]+/capabilityConfigs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists CapabilityConfigs that are direct children of the specified organization, folder or project + * resource. + * + * Create a request for the method "capabilityConfigs.list". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: + * `organizations/{organization_id}` or `folders/{folder_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 CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+parent}/capabilityConfigs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+$"); + + /** + * Lists CapabilityConfigs that are direct children of the specified organization, folder or + * project resource. + * + * Create a request for the method "capabilityConfigs.list". + * + * This request holds the parameters needed by the the cloudresourcemanager 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 name of the parent resource whose CapabilityConfigs are being listed. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.ListCapabilityConfigsResponse.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 " + + "^organizations/[^/]+$"); + } + } + + @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 name of the parent resource whose CapabilityConfigs are being listed. + * Format: `organizations/{organization_id}` or `folders/{folder_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: + `organizations/{organization_id}` or `folders/{folder_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The name of the parent resource whose CapabilityConfigs are being listed. + * Format: `organizations/{organization_id}` or `folders/{folder_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 " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The maximum number of CapabilityConfigs to return in the response. The service + * may return fewer CapabilityConfigs than requested. If unspecified, at most 100 + * CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be + * coerced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of CapabilityConfigs to return in the response. The service may return + fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be + returned. The maximum value is 100; values above 100 will be coerced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of CapabilityConfigs to return in the response. The service + * may return fewer CapabilityConfigs than requested. If unspecified, at most 100 + * CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be + * coerced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A pagination token received from a previous call to `ListCapabilityConfigs` + * that indicates from where listing should continue. Provide this to retrieve the + * subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that + indicates from where listing should continue. Provide this to retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A pagination token received from a previous call to `ListCapabilityConfigs` + * that indicates from where listing should continue. Provide this to retrieve the + * subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the + * specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.patch". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/capabilityConfigs/[^/]+$"); + + /** + * Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the + * specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.patch". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) { + super(CloudResourceManager.this, "PATCH", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/capabilityConfigs/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique resource name of the CapabilityConfig. Format: + `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + 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 " + + "^organizations/[^/]+/capabilityConfigs/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+   *   {@code CloudResourceManager.Projects.List request = cloudresourcemanager.projects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + + /** + * Request that a new project be created. The result is an `Operation` which can be used to track + * the creation process. This process usually takes a few seconds, but can sometimes take much + * longer. The tracking `Operation` is automatically deleted after a few hours, so there is no need + * to call `DeleteOperation`. + * + * Create a request for the method "projects.create". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Project} + * @return the request + */ + public Create create(com.google.api.services.cloudresourcemanager.v3.model.Project content) throws java.io.IOException { + Create result = new Create(content); + initialize(result); + return result; + } + + public class Create extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/projects"; + + /** + * Request that a new project be created. The result is an `Operation` which can be used to track + * the creation process. This process usually takes a few seconds, but can sometimes take much + * longer. The tracking `Operation` is automatically deleted after a few hours, so there is no + * need to call `DeleteOperation`. + * + * Create a request for the method "projects.create". + * + * This request holds the parameters needed by the the cloudresourcemanager 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 content the {@link com.google.api.services.cloudresourcemanager.v3.model.Project} + * @since 1.13 + */ + protected Create(com.google.api.services.cloudresourcemanager.v3.model.Project content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Marks the project identified by the specified `name` (for example, `projects/415104041262`) for + * deletion. This method will only affect the project if it has a lifecycle state of ACTIVE. This + * method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts + * at an unspecified time, at which point the Project is no longer accessible. Until the deletion + * completes, you can check the lifecycle state checked by retrieving the project with GetProject, + * and the project remains visible to ListProjects. However, you cannot update the project. After + * the deletion completes, the project is not retrievable by the GetProject, ListProjects, and + * SearchProjects methods. The caller must have `resourcemanager.projects.delete` permissions for + * this project. + * + * Create a request for the method "projects.delete". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Project (for example, `projects/415104041262`). + * @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 CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Marks the project identified by the specified `name` (for example, `projects/415104041262`) for + * deletion. This method will only affect the project if it has a lifecycle state of ACTIVE. This + * method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion + * starts at an unspecified time, at which point the Project is no longer accessible. Until the + * deletion completes, you can check the lifecycle state checked by retrieving the project with + * GetProject, and the project remains visible to ListProjects. However, you cannot update the + * project. After the deletion completes, the project is not retrievable by the GetProject, + * ListProjects, and SearchProjects methods. The caller must have + * `resourcemanager.projects.delete` permissions for this project. + * + * Create a request for the method "projects.delete". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. The name of the Project (for example, `projects/415104041262`). + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudResourceManager.this, "DELETE", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the Project (for example, `projects/415104041262`). */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Project (for example, `projects/415104041262`). + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the Project (for example, `projects/415104041262`). */ + 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves the project identified by the specified `name` (for example, `projects/415104041262`). + * The caller must have `resourcemanager.projects.get` permission for this project. + * + * Create a request for the method "projects.get". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the project (for example, `projects/415104041262`). + * @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 CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Retrieves the project identified by the specified `name` (for example, + * `projects/415104041262`). The caller must have `resourcemanager.projects.get` permission for + * this project. + * + * Create a request for the method "projects.get". + * + * This request holds the parameters needed by the the cloudresourcemanager 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. The name of the project (for example, `projects/415104041262`). + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Project.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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. The name of the project (for example, `projects/415104041262`). */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the project (for example, `projects/415104041262`). + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the project (for example, `projects/415104041262`). */ + 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns the IAM access control policy for the specified project, in the format + * `projects/{ProjectIdOrNumber}` e.g. projects/123. Permission is denied if the policy or the + * resource do not exist. + * + * Create a request for the method "projects.getIamPolicy". + * + * This request holds the parameters needed by the cloudresourcemanager 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. + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.GetIamPolicyRequest} + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.GetIamPolicyRequest content) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class GetIamPolicy extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Returns the IAM access control policy for the specified project, in the format + * `projects/{ProjectIdOrNumber}` e.g. projects/123. Permission is denied if the policy or the + * resource do not exist. + * + * Create a request for the method "projects.getIamPolicy". + * + * This request holds the parameters needed by the the cloudresourcemanager 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. + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.GetIamPolicyRequest} + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.GetIamPolicyRequest content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @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/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Lists projects that are direct children of the specified folder or organization resource. + * `list()` provides a strongly consistent view of the projects underneath the specified parent + * resource. `list()` returns projects sorted based upon the (ascending) lexical ordering of their + * `display_name`. The caller must have `resourcemanager.projects.list` permission on the identified + * parent. + * + * Create a request for the method "projects.list". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/projects"; + + /** + * Lists projects that are direct children of the specified folder or organization resource. + * `list()` provides a strongly consistent view of the projects underneath the specified parent + * resource. `list()` returns projects sorted based upon the (ascending) lexical ordering of their + * `display_name`. The caller must have `resourcemanager.projects.list` permission on the + * identified parent. + * + * Create a request for the method "projects.list". + * + * This request holds the parameters needed by the the cloudresourcemanager 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.

+ * + * @since 1.13 + */ + protected List() { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.ListProjectsResponse.class); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. The maximum number of projects to return in the response. The server can return + * fewer projects than requested. If unspecified, server picks an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of projects to return in the response. The server can return fewer + projects than requested. If unspecified, server picks an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of projects to return in the response. The server can return + * fewer projects than requested. If unspecified, server picks an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A pagination token returned from a previous call to ListProjects that indicates + * from where listing should continue. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A pagination token returned from a previous call to ListProjects that indicates from + where listing should continue. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A pagination token returned from a previous call to ListProjects that indicates + * from where listing should continue. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Required. The name of the parent resource whose projects are being listed. Only children of + * this parent resource are listed; descendants are not listed. If the parent is a folder, use + * the value `folders/{folder_id}`. If the parent is an organization, use the value + * `organizations/{org_id}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the parent resource whose projects are being listed. Only children of this + parent resource are listed; descendants are not listed. If the parent is a folder, use the value + `folders/{folder_id}`. If the parent is an organization, use the value `organizations/{org_id}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The name of the parent resource whose projects are being listed. Only children of + * this parent resource are listed; descendants are not listed. If the parent is a folder, use + * the value `folders/{folder_id}`. If the parent is an organization, use the value + * `organizations/{org_id}`. + */ + public List setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. + * Normally only `ACTIVE` projects are returned. + */ + @com.google.api.client.util.Key + private java.lang.Boolean showDeleted; + + /** Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. Normally + only `ACTIVE` projects are returned. + */ + public java.lang.Boolean getShowDeleted() { + return showDeleted; + } + + /** + * Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. + * Normally only `ACTIVE` projects are returned. + */ + public List setShowDeleted(java.lang.Boolean showDeleted) { + this.showDeleted = showDeleted; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Move a project to another place in your resource hierarchy, under a new resource parent. Returns + * an operation which can be used to track the process of the project move workflow. Upon success, + * the `Operation.response` field will be populated with the moved project. The caller must have + * `resourcemanager.projects.move` permission on the project, on the project's current and proposed + * new parent. If project has no current parent, or it currently does not have an associated + * organization resource, you will also need the `resourcemanager.projects.setIamPolicy` permission + * in the project. + * + * Create a request for the method "projects.move". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Move#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the project to move. + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.MoveProjectRequest} + * @return the request + */ + public Move move(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.MoveProjectRequest content) throws java.io.IOException { + Move result = new Move(name, content); + initialize(result); + return result; + } + + public class Move extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+name}:move"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Move a project to another place in your resource hierarchy, under a new resource parent. + * Returns an operation which can be used to track the process of the project move workflow. Upon + * success, the `Operation.response` field will be populated with the moved project. The caller + * must have `resourcemanager.projects.move` permission on the project, on the project's current + * and proposed new parent. If project has no current parent, or it currently does not have an + * associated organization resource, you will also need the + * `resourcemanager.projects.setIamPolicy` permission in the project. + * + * Create a request for the method "projects.move". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Move#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The name of the project to move. + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.MoveProjectRequest} + * @since 1.13 + */ + protected Move(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.MoveProjectRequest content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); + } + + @Override + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); + } + + @Override + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); + } + + @Override + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); + } + + @Override + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); + } + + @Override + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); + } + + @Override + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); + } + + @Override + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); + } + + @Override + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); + } + + @Override + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); + } + + @Override + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the project to move. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the project to move. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the project to move. */ + public Move setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); + } + } + /** + * Updates the `display_name` and labels of the project identified by the specified `name` (for + * example, `projects/415104041262`). Deleting all labels requires an update mask for labels field. + * The caller must have `resourcemanager.projects.update` permission for this project. + * + * Create a request for the method "projects.patch". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Output only. The unique resource name of the project. It is an int64 generated number prefixed by + * "projects/". Example: `projects/415104041262` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Project} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.Project content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Updates the `display_name` and labels of the project identified by the specified `name` (for + * example, `projects/415104041262`). Deleting all labels requires an update mask for labels + * field. The caller must have `resourcemanager.projects.update` permission for this project. + * + * Create a request for the method "projects.patch". + * + * This request holds the parameters needed by the the cloudresourcemanager 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 Output only. The unique resource name of the project. It is an int64 generated number prefixed by + * "projects/". Example: `projects/415104041262` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.Project} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.Project content) { + super(CloudResourceManager.this, "PATCH", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Output only. The unique resource name of the project. It is an int64 generated number + * prefixed by "projects/". Example: `projects/415104041262` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Output only. The unique resource name of the project. It is an int64 generated number prefixed by + "projects/". Example: `projects/415104041262` + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The unique resource name of the project. It is an int64 generated number + * prefixed by "projects/". Example: `projects/415104041262` + */ + 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. An update mask to selectively update fields. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. An update mask to selectively update fields. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. An update mask to selectively update fields. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Search for projects that the caller has the `resourcemanager.projects.get` permission on, and + * also satisfy the specified query. This method returns projects in an unspecified order. This + * method is eventually consistent with project mutations; this means that a newly created project + * may not appear in the results or recent updates to an existing project may not be reflected in + * the results. To retrieve the latest state of a project, use the GetProject method. + * + * Create a request for the method "projects.search". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. + * + * @return the request + */ + public Search search() throws java.io.IOException { + Search result = new Search(); + initialize(result); + return result; + } + + public class Search extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/projects:search"; + + /** + * Search for projects that the caller has the `resourcemanager.projects.get` permission on, and + * also satisfy the specified query. This method returns projects in an unspecified order. This + * method is eventually consistent with project mutations; this means that a newly created project + * may not appear in the results or recent updates to an existing project may not be reflected in + * the results. To retrieve the latest state of a project, use the GetProject method. + * + * Create a request for the method "projects.search". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Search#execute()} method to invoke the remote + * operation.

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

+ * + * @since 1.13 + */ + protected Search() { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.SearchProjectsResponse.class); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); + } + + @Override + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); + } + + @Override + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); + } + + @Override + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); + } + + @Override + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); + } + + @Override + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); + } + + @Override + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); + } + + @Override + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); + } + + @Override + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); + } + + @Override + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); + } + + @Override + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. The maximum number of projects to return in the response. The server can return + * fewer projects than requested. If unspecified, server picks an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of projects to return in the response. The server can return fewer + projects than requested. If unspecified, server picks an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of projects to return in the response. The server can return + * fewer projects than requested. If unspecified, server picks an appropriate default. + */ + public Search setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A pagination token returned from a previous call to ListProjects that indicates + * from where listing should continue. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A pagination token returned from a previous call to ListProjects that indicates from + where listing should continue. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A pagination token returned from a previous call to ListProjects that indicates + * from where listing should continue. + */ + public Search setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. A query string for searching for projects that the caller has + * `resourcemanager.projects.get` permission to. If multiple fields are included in the query, + * then it will return results that match any of the fields. Some eligible fields are: ``` | + * Field | Description | + * |-------------------------|----------------------------------------------| | displayName, + * name | Filters by displayName. | | parent | Project's parent (for example: folders/123, + * organizations). Prefer parent field over parent.type and parent.id.| | parent.type | + * Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: + * 123) | | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by + * state. | | labels | Filters by label name or value. | | labels.\ (where *key* is the name + * of a label) | Filters by label name.| ``` Search expressions are case insensitive. Some + * examples queries: ``` | Query | Description | + * |------------------|-----------------------------------------------------| | name:how* | + * The project's name starts with "how". | | name:Howl | The project's name is `Howl` or + * `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | + * labels.color:* | The project has the label `color`. | | labels.color:red | The project's + * label `color` has the value `red`. | | labels.color:red labels.size:big | The project's + * label `color` has the value `red` or its label `size` has the value `big`. | ``` If no + * query is specified, the call will return projects for which the user has the + * `resourcemanager.projects.get` permission. + */ + @com.google.api.client.util.Key + private java.lang.String query; + + /** Optional. A query string for searching for projects that the caller has + `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it + will return results that match any of the fields. Some eligible fields are: ``` | Field | + Description | |-------------------------|----------------------------------------------| | + displayName, name | Filters by displayName. | | parent | Project's parent (for example: + folders/123, organizations). Prefer parent field over parent.type and parent.id.| | parent.type | + Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: 123) | + | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by state. | | labels | + Filters by label name or value. | | labels.\ (where *key* is the name of a label) | Filters by + label name.| ``` Search expressions are case insensitive. Some examples queries: ``` | Query | + Description | |------------------|-----------------------------------------------------| | + name:how* | The project's name starts with "how". | | name:Howl | The project's name is `Howl` or + `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | + labels.color:* | The project has the label `color`. | | labels.color:red | The project's label + `color` has the value `red`. | | labels.color:red labels.size:big | The project's label `color` has + the value `red` or its label `size` has the value `big`. | ``` If no query is specified, the call + will return projects for which the user has the `resourcemanager.projects.get` permission. + */ + public java.lang.String getQuery() { + return query; + } + + /** + * Optional. A query string for searching for projects that the caller has + * `resourcemanager.projects.get` permission to. If multiple fields are included in the query, + * then it will return results that match any of the fields. Some eligible fields are: ``` | + * Field | Description | + * |-------------------------|----------------------------------------------| | displayName, + * name | Filters by displayName. | | parent | Project's parent (for example: folders/123, + * organizations). Prefer parent field over parent.type and parent.id.| | parent.type | * Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: * 123) | | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by * state. | | labels | Filters by label name or value. | | labels.\ (where *key* is the name @@ -5907,490 +7665,1369 @@ public java.lang.String getQuery() { * query is specified, the call will return projects for which the user has the * `resourcemanager.projects.get` permission. */ - public Search setQuery(java.lang.String query) { - this.query = query; + public Search setQuery(java.lang.String query) { + this.query = query; + return this; + } + + @Override + public Search set(String parameterName, Object value) { + return (Search) super.set(parameterName, value); + } + } + /** + * Sets the IAM access control policy for the specified project, in the format + * `projects/{ProjectIdOrNumber}` e.g. projects/123. CAUTION: This method will replace the existing + * policy, and cannot be used to append additional IAM settings. Note: Removing service accounts + * from policies or changing their roles can render services completely inoperable. It is important + * to understand how the service account is being used before removing or updating its roles. The + * following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` + * and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner role can be + * granted to a `user`, `serviceAccount`, or a group that is part of an organization. For example, + * group@myownpersonaldomain.com could be added as an owner to a project in the + * myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service + * accounts can be made owners of a project directly without any restrictions. However, to be added + * as an owner, a user must be invited using the Cloud Platform console and must accept the + * invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be + * granted the owner role using the Cloud Platform Console and must explicitly accept the + * invitation. + Invitations to grant the owner role cannot be sent using `setIamPolicy()`; they + * must be sent only using the Cloud Platform Console. + If the project is not part of an + * organization, there must be at least one owner who has accepted the Terms of Service (ToS) + * agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from the + * policy will fail. This restriction also applies to legacy projects that no longer have owners who + * have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting + * owner is rectified. If the project is part of an organization, you can remove all owners, + * potentially making the organization inaccessible. + * + * Create a request for the method "projects.setIamPolicy". + * + * This request holds the parameters needed by the cloudresourcemanager 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.cloudresourcemanager.v3.model.SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Sets the IAM access control policy for the specified project, in the format + * `projects/{ProjectIdOrNumber}` e.g. projects/123. CAUTION: This method will replace the + * existing policy, and cannot be used to append additional IAM settings. Note: Removing service + * accounts from policies or changing their roles can render services completely inoperable. It is + * important to understand how the service account is being used before removing or updating its + * roles. The following constraints apply when using `setIamPolicy()`: + Project does not support + * `allUsers` and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner + * role can be granted to a `user`, `serviceAccount`, or a group that is part of an organization. + * For example, group@myownpersonaldomain.com could be added as an owner to a project in the + * myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service + * accounts can be made owners of a project directly without any restrictions. However, to be + * added as an owner, a user must be invited using the Cloud Platform console and must accept the + * invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be + * granted the owner role using the Cloud Platform Console and must explicitly accept the + * invitation. + Invitations to grant the owner role cannot be sent using `setIamPolicy()`; they + * must be sent only using the Cloud Platform Console. + If the project is not part of an + * organization, there must be at least one owner who has accepted the Terms of Service (ToS) + * agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from + * the policy will fail. This restriction also applies to legacy projects that no longer have + * owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a + * ToS-accepting owner is rectified. If the project is part of an organization, you can remove all + * owners, potentially making the organization inaccessible. + * + * Create a request for the method "projects.setIamPolicy". + * + * This request holds the parameters needed by the the cloudresourcemanager 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.cloudresourcemanager.v3.model.SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.SetIamPolicyRequest content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @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/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified project, in the format + * `projects/{ProjectIdOrNumber}` e.g. projects/123.. + * + * Create a request for the method "projects.testIamPermissions". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified project, in the format + * `projects/{ProjectIdOrNumber}` e.g. projects/123.. + * + * Create a request for the method "projects.testIamPermissions". + * + * This request holds the parameters needed by the the cloudresourcemanager 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.ser + * vices.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.cloudresourcemanager.v3.model.TestIamPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Restores the project identified by the specified `name` (for example, `projects/415104041262`). + * You can only use this method for a project that has a lifecycle state of DELETE_REQUESTED. After + * deletion starts, the project cannot be restored. The caller must have + * `resourcemanager.projects.undelete` permission for this project. + * + * Create a request for the method "projects.undelete". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Undelete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the project (for example, `projects/415104041262`). Required. + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.UndeleteProjectRequest} + * @return the request + */ + public Undelete undelete(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.UndeleteProjectRequest content) throws java.io.IOException { + Undelete result = new Undelete(name, content); + initialize(result); + return result; + } + + public class Undelete extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+name}:undelete"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Restores the project identified by the specified `name` (for example, `projects/415104041262`). + * You can only use this method for a project that has a lifecycle state of DELETE_REQUESTED. + * After deletion starts, the project cannot be restored. The caller must have + * `resourcemanager.projects.undelete` permission for this project. + * + * Create a request for the method "projects.undelete". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Undelete#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. The name of the project (for example, `projects/415104041262`). Required. + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.UndeleteProjectRequest} + * @since 1.13 + */ + protected Undelete(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.UndeleteProjectRequest content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public Undelete set$Xgafv(java.lang.String $Xgafv) { + return (Undelete) super.set$Xgafv($Xgafv); + } + + @Override + public Undelete setAccessToken(java.lang.String accessToken) { + return (Undelete) super.setAccessToken(accessToken); + } + + @Override + public Undelete setAlt(java.lang.String alt) { + return (Undelete) super.setAlt(alt); + } + + @Override + public Undelete setCallback(java.lang.String callback) { + return (Undelete) super.setCallback(callback); + } + + @Override + public Undelete setFields(java.lang.String fields) { + return (Undelete) super.setFields(fields); + } + + @Override + public Undelete setKey(java.lang.String key) { + return (Undelete) super.setKey(key); + } + + @Override + public Undelete setOauthToken(java.lang.String oauthToken) { + return (Undelete) super.setOauthToken(oauthToken); + } + + @Override + public Undelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Undelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Undelete setQuotaUser(java.lang.String quotaUser) { + return (Undelete) super.setQuotaUser(quotaUser); + } + + @Override + public Undelete setUploadType(java.lang.String uploadType) { + return (Undelete) super.setUploadType(uploadType); + } + + @Override + public Undelete setUploadProtocol(java.lang.String uploadProtocol) { + return (Undelete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the project (for example, `projects/415104041262`). Required. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the project (for example, `projects/415104041262`). Required. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the project (for example, `projects/415104041262`). Required. */ + public Undelete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + this.name = name; return this; } @Override - public Search set(String parameterName, Object value) { - return (Search) super.set(parameterName, value); + public Undelete set(String parameterName, Object value) { + return (Undelete) super.set(parameterName, value); } } + /** - * Sets the IAM access control policy for the specified project, in the format - * `projects/{ProjectIdOrNumber}` e.g. projects/123. CAUTION: This method will replace the existing - * policy, and cannot be used to append additional IAM settings. Note: Removing service accounts - * from policies or changing their roles can render services completely inoperable. It is important - * to understand how the service account is being used before removing or updating its roles. The - * following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` - * and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner role can be - * granted to a `user`, `serviceAccount`, or a group that is part of an organization. For example, - * group@myownpersonaldomain.com could be added as an owner to a project in the - * myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service - * accounts can be made owners of a project directly without any restrictions. However, to be added - * as an owner, a user must be invited using the Cloud Platform console and must accept the - * invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be - * granted the owner role using the Cloud Platform Console and must explicitly accept the - * invitation. + Invitations to grant the owner role cannot be sent using `setIamPolicy()`; they - * must be sent only using the Cloud Platform Console. + If the project is not part of an - * organization, there must be at least one owner who has accepted the Terms of Service (ToS) - * agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from the - * policy will fail. This restriction also applies to legacy projects that no longer have owners who - * have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting - * owner is rectified. If the project is part of an organization, you can remove all owners, - * potentially making the organization inaccessible. + * An accessor for creating requests from the CapabilityConfigs collection. * - * Create a request for the method "projects.setIamPolicy". - * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation. + *

The typical use is:

+ *
+     *   {@code CloudResourceManager cloudresourcemanager = new CloudResourceManager(...);}
+     *   {@code CloudResourceManager.CapabilityConfigs.List request = cloudresourcemanager.capabilityConfigs().list(parameters ...)}
+     * 
* - * @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.cloudresourcemanager.v3.model.SetIamPolicyRequest} - * @return the request + * @return the resource collection */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; + public CapabilityConfigs capabilityConfigs() { + return new CapabilityConfigs(); } - public class SetIamPolicy extends CloudResourceManagerRequest { + /** + * The "capabilityConfigs" collection of methods. + */ + public class CapabilityConfigs { + + /** + * Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a + * CapabilityConfig triggers the creation of a Management Project if one is not supplied. + * + * Create a request for the method "capabilityConfigs.create". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+parent}/capabilityConfigs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a + * CapabilityConfig triggers the creation of a Management Project if one is not supplied. + * + * Create a request for the method "capabilityConfigs.create". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) { + super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource under which the CapabilityConfig will be created. Format: + `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource under which the CapabilityConfig will be created. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` or `projects/{project_number}` + */ + 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/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The user-assigned ID for the CapabilityConfig, which will become the final + * component of the CapabilityConfig's resource name. Must be unique within the parent + * resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start + * with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + */ + @com.google.api.client.util.Key + private java.lang.String capabilityConfigId; + + /** Required. The user-assigned ID for the CapabilityConfig, which will become the final component of + the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30 + lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are + prohibited. Example: `my-capability-config-123` + */ + public java.lang.String getCapabilityConfigId() { + return capabilityConfigId; + } + + /** + * Required. The user-assigned ID for the CapabilityConfig, which will become the final + * component of the CapabilityConfig's resource name. Must be unique within the parent + * resource. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start + * with a letter. Trailing hyphens are prohibited. Example: `my-capability-config-123` + */ + public Create setCapabilityConfigId(java.lang.String capabilityConfigId) { + this.capabilityConfigId = capabilityConfigId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the CapabilityConfig identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.delete". + * + * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @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 CloudResourceManagerRequest { + + private static final String REST_PATH = "v3/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/capabilityConfigs/[^/]+$"); + + /** + * Deletes the CapabilityConfig identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.delete". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudResourceManager.this, "DELETE", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/capabilityConfigs/[^/]+$"); + } + } + + @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); + } - private static final String REST_PATH = "v3/{+resource}:setIamPolicy"; + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the CapabilityConfig to delete. Format: + `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the CapabilityConfig to delete. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + 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/[^/]+/capabilityConfigs/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Sets the IAM access control policy for the specified project, in the format - * `projects/{ProjectIdOrNumber}` e.g. projects/123. CAUTION: This method will replace the - * existing policy, and cannot be used to append additional IAM settings. Note: Removing service - * accounts from policies or changing their roles can render services completely inoperable. It is - * important to understand how the service account is being used before removing or updating its - * roles. The following constraints apply when using `setIamPolicy()`: + Project does not support - * `allUsers` and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner - * role can be granted to a `user`, `serviceAccount`, or a group that is part of an organization. - * For example, group@myownpersonaldomain.com could be added as an owner to a project in the - * myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service - * accounts can be made owners of a project directly without any restrictions. However, to be - * added as an owner, a user must be invited using the Cloud Platform console and must accept the - * invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be - * granted the owner role using the Cloud Platform Console and must explicitly accept the - * invitation. + Invitations to grant the owner role cannot be sent using `setIamPolicy()`; they - * must be sent only using the Cloud Platform Console. + If the project is not part of an - * organization, there must be at least one owner who has accepted the Terms of Service (ToS) - * agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from - * the policy will fail. This restriction also applies to legacy projects that no longer have - * owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a - * ToS-accepting owner is rectified. If the project is part of an organization, you can remove all - * owners, potentially making the organization inaccessible. + * Retrieves the Capability Config identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). * - * Create a request for the method "projects.setIamPolicy". + * Create a request for the method "capabilityConfigs.get". * - * This request holds the parameters needed by the the cloudresourcemanager 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.

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional 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.cloudresourcemanager.v3.model.SetIamPolicyRequest} - * @since 1.13 + * @param name Required. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + * @return the request */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.SetIamPolicyRequest content) { - super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } + public class Get extends CloudResourceManagerRequest { - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v3/{+name}"; - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/capabilityConfigs/[^/]+$"); - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } + /** + * Retrieves the Capability Config identified by the specified `name` (for example, + * `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.get". + * + * This request holds the parameters needed by the the cloudresourcemanager 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. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig.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/[^/]+/capabilityConfigs/[^/]+$"); + } + } - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * 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; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** 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; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * 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/[^/]+$"); + @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); } - this.resource = resource; - return this; - } - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified project, in the format - * `projects/{ProjectIdOrNumber}` e.g. projects/123.. - * - * Create a request for the method "projects.testIamPermissions". - * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - public class TestIamPermissions extends CloudResourceManagerRequest { + /** + * Required. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v3/{+resource}:testIamPermissions"; + /** Required. The name of the CapabilityConfig to retrieve. Format: + `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + `folders/123456789/capabilityConfigs/my-capability-config` + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + /** + * Required. The name of the CapabilityConfig to retrieve. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` Example: + * `folders/123456789/capabilityConfigs/my-capability-config` + */ + 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/[^/]+/capabilityConfigs/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Returns permissions that a caller has on the specified project, in the format - * `projects/{ProjectIdOrNumber}` e.g. projects/123.. + * Lists CapabilityConfigs that are direct children of the specified organization, folder or project + * resource. * - * Create a request for the method "projects.testIamPermissions". + * Create a request for the method "capabilityConfigs.list". * - * This request holds the parameters needed by the the cloudresourcemanager 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.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link List#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.cloudresourcemanager.v3.model.TestIamPermissionsRequest} - * @since 1.13 + * @param parent Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` + * @return the request */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsRequest content) { - super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+$"); - } + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } + public class List extends CloudResourceManagerRequest { - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v3/{+parent}/capabilityConfigs"; - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } + /** + * Lists CapabilityConfigs that are direct children of the specified organization, folder or + * project resource. + * + * Create a request for the method "capabilityConfigs.list". + * + * This request holds the parameters needed by the the cloudresourcemanager 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 name of the parent resource whose CapabilityConfigs are being listed. Format: + * `organizations/{organization_id}` or `folders/{folder_id}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.v3.model.ListCapabilityConfigsResponse.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/[^/]+$"); + } + } - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * 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; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+$"); + @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 name of the parent resource whose CapabilityConfigs are being listed. + * Format: `organizations/{organization_id}` or `folders/{folder_id}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the parent resource whose CapabilityConfigs are being listed. Format: + `organizations/{organization_id}` or `folders/{folder_id}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The name of the parent resource whose CapabilityConfigs are being listed. + * Format: `organizations/{organization_id}` or `folders/{folder_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/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The maximum number of CapabilityConfigs to return in the response. The service + * may return fewer CapabilityConfigs than requested. If unspecified, at most 100 + * CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be + * coerced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of CapabilityConfigs to return in the response. The service may return + fewer CapabilityConfigs than requested. If unspecified, at most 100 CapabilityConfigs will be + returned. The maximum value is 100; values above 100 will be coerced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - this.resource = resource; - return this; - } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Restores the project identified by the specified `name` (for example, `projects/415104041262`). - * You can only use this method for a project that has a lifecycle state of DELETE_REQUESTED. After - * deletion starts, the project cannot be restored. The caller must have - * `resourcemanager.projects.undelete` permission for this project. - * - * Create a request for the method "projects.undelete". - * - * This request holds the parameters needed by the cloudresourcemanager server. After setting any - * optional parameters, call the {@link Undelete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the project (for example, `projects/415104041262`). Required. - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.UndeleteProjectRequest} - * @return the request - */ - public Undelete undelete(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.UndeleteProjectRequest content) throws java.io.IOException { - Undelete result = new Undelete(name, content); - initialize(result); - return result; - } + /** + * Optional. The maximum number of CapabilityConfigs to return in the response. The service + * may return fewer CapabilityConfigs than requested. If unspecified, at most 100 + * CapabilityConfigs will be returned. The maximum value is 100; values above 100 will be + * coerced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - public class Undelete extends CloudResourceManagerRequest { + /** + * Optional. A pagination token received from a previous call to `ListCapabilityConfigs` + * that indicates from where listing should continue. Provide this to retrieve the + * subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - private static final String REST_PATH = "v3/{+name}:undelete"; + /** Optional. A pagination token received from a previous call to `ListCapabilityConfigs` that + indicates from where listing should continue. Provide this to retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + /** + * Optional. A pagination token received from a previous call to `ListCapabilityConfigs` + * that indicates from where listing should continue. Provide this to retrieve the + * subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Restores the project identified by the specified `name` (for example, `projects/415104041262`). - * You can only use this method for a project that has a lifecycle state of DELETE_REQUESTED. - * After deletion starts, the project cannot be restored. The caller must have - * `resourcemanager.projects.undelete` permission for this project. + * Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the + * specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). * - * Create a request for the method "projects.undelete". + * Create a request for the method "capabilityConfigs.patch". * - * This request holds the parameters needed by the the cloudresourcemanager server. After setting - * any optional parameters, call the {@link Undelete#execute()} method to invoke the remote - * operation.

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

+ * This request holds the parameters needed by the cloudresourcemanager server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the project (for example, `projects/415104041262`). Required. - * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.UndeleteProjectRequest} - * @since 1.13 + * @param name Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @return the request */ - protected Undelete(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.UndeleteProjectRequest content) { - super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+$"); - } + public Patch patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; } - @Override - public Undelete set$Xgafv(java.lang.String $Xgafv) { - return (Undelete) super.set$Xgafv($Xgafv); - } + public class Patch extends CloudResourceManagerRequest { - @Override - public Undelete setAccessToken(java.lang.String accessToken) { - return (Undelete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v3/{+name}"; - @Override - public Undelete setAlt(java.lang.String alt) { - return (Undelete) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/capabilityConfigs/[^/]+$"); - @Override - public Undelete setCallback(java.lang.String callback) { - return (Undelete) super.setCallback(callback); - } + /** + * Updates the `display_name`, `types` and `boundaries` of the CapabilityConfig identified by the + * specified `name` (for example, `folders/123456789/capabilityConfigs/my-capability-config`). + * + * Create a request for the method "capabilityConfigs.patch". + * + * This request holds the parameters needed by the the cloudresourcemanager server. After setting + * any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @param content the {@link com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.cloudresourcemanager.v3.model.CapabilityConfig content) { + super(CloudResourceManager.this, "PATCH", REST_PATH, content, com.google.api.services.cloudresourcemanager.v3.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/capabilityConfigs/[^/]+$"); + } + } - @Override - public Undelete setFields(java.lang.String fields) { - return (Undelete) super.setFields(fields); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Undelete setKey(java.lang.String key) { - return (Undelete) super.setKey(key); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Undelete setOauthToken(java.lang.String oauthToken) { - return (Undelete) super.setOauthToken(oauthToken); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Undelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Undelete) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Undelete setQuotaUser(java.lang.String quotaUser) { - return (Undelete) super.setQuotaUser(quotaUser); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Undelete setUploadType(java.lang.String uploadType) { - return (Undelete) super.setUploadType(uploadType); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Undelete setUploadProtocol(java.lang.String uploadProtocol) { - return (Undelete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** Required. The name of the project (for example, `projects/415104041262`). Required. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the project (for example, `projects/415104041262`). Required. - */ - public java.lang.String getName() { - return name; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** Required. The name of the project (for example, `projects/415104041262`). Required. */ - public Undelete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+$"); + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Undelete set(String parameterName, Object value) { - return (Undelete) super.set(parameterName, value); + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique resource name of the CapabilityConfig. Format: + `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + */ + 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/[^/]+/capabilityConfigs/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } } - } + } } /** diff --git a/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/model/CapabilityConfig.java b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/model/CapabilityConfig.java new file mode 100644 index 00000000000..e868782ffda --- /dev/null +++ b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/model/CapabilityConfig.java @@ -0,0 +1,293 @@ +/* + * 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.cloudresourcemanager.v3.model; + +/** + * A CapabilityConfig allows managing experiences like applications and agents on a logical + * administrative perimeter of Projects (Boundary). + * + *

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 Cloud Resource Manager API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CapabilityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of Boundaries associated with this CapabilityConfig. Format: + * `organizations/{organization}/boundaries/{boundary}` or, + * `folders/{folder}/boundaries/{boundary}` or, `projects/{project}/boundaries/{boundary}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List boundaries; + + /** + * Output only. The creation time of the CapabilityConfig. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Human-readable non-unique display name of the CapabilityConfig. When present it must + * be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, + * numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My + * Capability Config` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * This checksum is computed by the server based on the value of other fields, and may be sent on + * update and delete requests to ensure the client has an up-to-date value before proceeding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Immutable. The Management Project associated with this CapabilityConfig. If not + * provided during creation, a management project will be automatically created. Cannot be + * modified after creation. Format: `projects/{project_number}` Example: `projects/123456789012` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String managementProject; + + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The lifecycle state of the CapabilityConfig. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Required. The CapabilityConfig types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List types; + + /** + * Output only. The most recent time this CapabilityConfig was modified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. The list of Boundaries associated with this CapabilityConfig. Format: + * `organizations/{organization}/boundaries/{boundary}` or, + * `folders/{folder}/boundaries/{boundary}` or, `projects/{project}/boundaries/{boundary}` + * @return value or {@code null} for none + */ + public java.util.List getBoundaries() { + return boundaries; + } + + /** + * Optional. The list of Boundaries associated with this CapabilityConfig. Format: + * `organizations/{organization}/boundaries/{boundary}` or, + * `folders/{folder}/boundaries/{boundary}` or, `projects/{project}/boundaries/{boundary}` + * @param boundaries boundaries or {@code null} for none + */ + public CapabilityConfig setBoundaries(java.util.List boundaries) { + this.boundaries = boundaries; + return this; + } + + /** + * Output only. The creation time of the CapabilityConfig. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The creation time of the CapabilityConfig. + * @param createTime createTime or {@code null} for none + */ + public CapabilityConfig setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Human-readable non-unique display name of the CapabilityConfig. When present it must + * be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, + * numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My + * Capability Config` + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Human-readable non-unique display name of the CapabilityConfig. When present it must + * be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, + * numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My + * Capability Config` + * @param displayName displayName or {@code null} for none + */ + public CapabilityConfig setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * This checksum is computed by the server based on the value of other fields, and may be sent on + * update and delete requests to ensure the client has an up-to-date value before proceeding. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * This checksum is computed by the server based on the value of other fields, and may be sent on + * update and delete requests to ensure the client has an up-to-date value before proceeding. + * @param etag etag or {@code null} for none + */ + public CapabilityConfig setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Immutable. The Management Project associated with this CapabilityConfig. If not + * provided during creation, a management project will be automatically created. Cannot be + * modified after creation. Format: `projects/{project_number}` Example: `projects/123456789012` + * @return value or {@code null} for none + */ + public java.lang.String getManagementProject() { + return managementProject; + } + + /** + * Optional. Immutable. The Management Project associated with this CapabilityConfig. If not + * provided during creation, a management project will be automatically created. Cannot be + * modified after creation. Format: `projects/{project_number}` Example: `projects/123456789012` + * @param managementProject managementProject or {@code null} for none + */ + public CapabilityConfig setManagementProject(java.lang.String managementProject) { + this.managementProject = managementProject; + return this; + } + + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique resource name of the CapabilityConfig. Format: + * `organizations/{organization}/capabilityConfigs/{capabilityConfig}` or, + * `folders/{folder}/capabilityConfigs/{capabilityConfig}` or, + * `projects/{project}/capabilityConfigs/{capabilityConfig}` + * @param name name or {@code null} for none + */ + public CapabilityConfig setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The lifecycle state of the CapabilityConfig. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The lifecycle state of the CapabilityConfig. + * @param state state or {@code null} for none + */ + public CapabilityConfig setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Required. The CapabilityConfig types. + * @return value or {@code null} for none + */ + public java.util.List getTypes() { + return types; + } + + /** + * Required. The CapabilityConfig types. + * @param types types or {@code null} for none + */ + public CapabilityConfig setTypes(java.util.List types) { + this.types = types; + return this; + } + + /** + * Output only. The most recent time this CapabilityConfig was modified. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The most recent time this CapabilityConfig was modified. + * @param updateTime updateTime or {@code null} for none + */ + public CapabilityConfig setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public CapabilityConfig set(String fieldName, Object value) { + return (CapabilityConfig) super.set(fieldName, value); + } + + @Override + public CapabilityConfig clone() { + return (CapabilityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/model/ListCapabilityConfigsResponse.java b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/model/ListCapabilityConfigsResponse.java new file mode 100644 index 00000000000..cefb5b0456e --- /dev/null +++ b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/com/google/api/services/cloudresourcemanager/v3/model/ListCapabilityConfigsResponse.java @@ -0,0 +1,112 @@ +/* + * 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.cloudresourcemanager.v3.model; + +/** + * A page of the response received from the ListCapabilityConfigs method. A paginated response where + * more pages are available has `next_page_token` set. This token can be used in a subsequent + * request to retrieve the next page. NOTE: A response may contain fewer elements than the request + * `page_size` and still have a `next_page_token`. + * + *

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 Cloud Resource Manager API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListCapabilityConfigsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of CapabilityConfigs under the parent. This list can be paginated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List capabilityConfigs; + + static { + // hack to force ProGuard to consider CapabilityConfig used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(CapabilityConfig.class); + } + + /** + * Pagination token. If the result set is too large to fit in a single response, this token is + * returned. It encodes the position of the current result cursor. Feeding this value into a new + * list request with the `page_token` parameter gives the next page of the results. When + * `next_page_token` is not filled in, there is no next page and the list returned is the last + * page in the result set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of CapabilityConfigs under the parent. This list can be paginated. + * @return value or {@code null} for none + */ + public java.util.List getCapabilityConfigs() { + return capabilityConfigs; + } + + /** + * The list of CapabilityConfigs under the parent. This list can be paginated. + * @param capabilityConfigs capabilityConfigs or {@code null} for none + */ + public ListCapabilityConfigsResponse setCapabilityConfigs(java.util.List capabilityConfigs) { + this.capabilityConfigs = capabilityConfigs; + return this; + } + + /** + * Pagination token. If the result set is too large to fit in a single response, this token is + * returned. It encodes the position of the current result cursor. Feeding this value into a new + * list request with the `page_token` parameter gives the next page of the results. When + * `next_page_token` is not filled in, there is no next page and the list returned is the last + * page in the result set. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Pagination token. If the result set is too large to fit in a single response, this token is + * returned. It encodes the position of the current result cursor. Feeding this value into a new + * list request with the `page_token` parameter gives the next page of the results. When + * `next_page_token` is not filled in, there is no next page and the list returned is the last + * page in the result set. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListCapabilityConfigsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListCapabilityConfigsResponse set(String fieldName, Object value) { + return (ListCapabilityConfigsResponse) super.set(fieldName, value); + } + + @Override + public ListCapabilityConfigsResponse clone() { + return (ListCapabilityConfigsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudresourcemanager/v3/2.0.0/pom.xml b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/pom.xml index 915784e4cb1..248e66f974a 100644 --- a/clients/google-api-services-cloudresourcemanager/v3/2.0.0/pom.xml +++ b/clients/google-api-services-cloudresourcemanager/v3/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-cloudresourcemanager - v3-rev20260820-2.0.0 - Cloud Resource Manager API v3-rev20260820-2.0.0 + v3-rev20260909-2.0.0 + Cloud Resource Manager API v3-rev20260909-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudresourcemanager/v3/README.md b/clients/google-api-services-cloudresourcemanager/v3/README.md index c32d16a6835..6b79f72df3b 100644 --- a/clients/google-api-services-cloudresourcemanager/v3/README.md +++ b/clients/google-api-services-cloudresourcemanager/v3/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudresourcemanager - v3-rev20260820-2.0.0 + v3-rev20260909-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudresourcemanager:v3-rev20260820-2.0.0' + implementation 'com.google.apis:google-api-services-cloudresourcemanager:v3-rev20260909-2.0.0' } ```