/** * The resource name of the Folder to retrieve. Must be of the form `folders/{folder_id}`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^folders/[^/]+$"); } this.name = name; return this; }
/** * The resource name of the Folder to undelete. Must be of the form `folders/{folder_id}`. */ 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 " + "^folders/[^/]+$"); } this.name = name; return this; }
/** The name of the operation resource. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^operations/.+$"); } this.name = name; return this; }
/** * REQUIRED: The resource for which the policy is being requested. See the operation * documentation 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 " + "^folders/[^/]+$"); } this.resource = resource; return this; }
/** * Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for * example: "folders/1234". */ 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 " + "^folders/[^/]+$"); } this.name = name; return this; }
/** * the resource name of the Folder to be deleted. Must be of the form `folders/{folder_id}`. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^folders/[^/]+$"); } this.name = name; return this; }
/** * The resource name of the Folder to move. Must be of the form folders/{folder_id} */ 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 " + "^folders/[^/]+$"); } this.name = name; return this; }
/** * REQUIRED: The resource for which the policy is being specified. See the operation * documentation 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 " + "^folders/[^/]+$"); } this.resource = resource; return this; }
/** * REQUIRED: The resource for which the policy detail is being requested. See the operation * documentation 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 " + "^folders/[^/]+$"); } this.resource = resource; return this; }
/** * Retrieves a Folder identified by the supplied resource name. Valid Folder resource names have * the format `folders/{folder_id}` (for example, `folders/1234`). The caller must have * `resourcemanager.folders.get` permission on the identified folder. * * Create a request for the method "folders.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. * <p> {@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor. </p> * * @param name The resource name of the Folder to retrieve. Must be of the form `folders/{folder_id}`. * @since 1.13 */ protected Get(java.lang.String name) { super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.model.Folder.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/[^/]+$"); } }
/** * Sets the access control policy on a Folder, replacing any existing policy. The `resource` field * should be the Folder's resource name, e.g. "folders/1234". The caller must have * `resourcemanager.folders.setIamPolicy` permission on the identified folder. * * Create a request for the method "folders.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. <p> {@link * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor. </p> * * @param resource REQUIRED: The resource for which the policy is being specified. See the operation documentation for * the appropriate value for this field. * @param content the {@link com.google.api.services.cloudresourcemanager.model.SetIamPolicyRequest} * @since 1.13 */ protected SetIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.model.SetIamPolicyRequest content) { super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.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 " + "^folders/[^/]+$"); } }
/** * Gets the latest state of a long-running operation. Clients can use this method to poll the * operation result at intervals as recommended by the API service. * * Create a request for the method "operations.get". * * This request holds the parameters needed by the the cloudresourcemanager server. After setting * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * <p> {@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor. </p> * * @param name The name of the operation resource. * @since 1.13 */ protected Get(java.lang.String name) { super(CloudResourceManager.this, "GET", REST_PATH, null, com.google.api.services.cloudresourcemanager.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^operations/.+$"); } }
/** * Requests deletion of a Folder. The Folder is moved into the DELETE_REQUESTED state immediately, * and is deleted approximately 30 days later. This method may only be called on an empty Folder * in the ACTIVE state, where a Folder is empty if it doesn't contain any Folders or Projects in * the ACTIVE state. The caller must have `resourcemanager.folders.delete` permission on the * identified folder. * * Create a request for the method "folders.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. <p> {@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor. </p> * * @param name the resource name of the Folder to be deleted. Must be of the form `folders/{folder_id}`. * @since 1.13 */ protected Delete(java.lang.String name) { super(CloudResourceManager.this, "DELETE", REST_PATH, null, com.google.api.services.cloudresourcemanager.model.Folder.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/[^/]+$"); } }
/** * Returns permissions that a caller has on the specified Folder. The `resource` field should be * the Folder's resource name, e.g. "folders/1234". * * There are no permissions required for making this API call. * * Create a request for the method "folders.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. <p> {@link TestIamPermissions#initialize(com.google.api.client.googleapis.ser * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately * after invoking the constructor. </p> * * @param resource REQUIRED: The resource for which the policy detail is being requested. See the operation * documentation for the appropriate value for this field. * @param content the {@link com.google.api.services.cloudresourcemanager.model.TestIamPermissionsRequest} * @since 1.13 */ protected TestIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.model.TestIamPermissionsRequest content) { super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.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 " + "^folders/[^/]+$"); } }
super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.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 " +
/** * Gets the access control policy for a Folder. The returned policy may be empty if no such policy * or resource exists. The `resource` field should be the Folder's resource name, e.g. * "folders/1234". The caller must have `resourcemanager.folders.getIamPolicy` permission on the * identified folder. * * Create a request for the method "folders.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. <p> {@link * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor. </p> * * @param resource REQUIRED: The resource for which the policy is being requested. See the operation documentation for * the appropriate value for this field. * @param content the {@link com.google.api.services.cloudresourcemanager.model.GetIamPolicyRequest} * @since 1.13 */ protected GetIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.model.GetIamPolicyRequest content) { super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.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 " + "^folders/[^/]+$"); } }
/** * Cancels the deletion request for a Folder. This method may only be called on a Folder in the * DELETE_REQUESTED state. In order to succeed, the Folder's parent must be in the ACTIVE state. * In addition, reintroducing the folder into the tree must not violate folder naming, height and * fanout constraints described in the CreateFolder documentation. The caller must have * `resourcemanager.folders.undelete` permission on the identified folder. * * Create a request for the method "folders.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. <p> {@link * Undelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor. </p> * * @param name The resource name of the Folder to undelete. Must be of the form `folders/{folder_id}`. * @param content the {@link com.google.api.services.cloudresourcemanager.model.UndeleteFolderRequest} * @since 1.13 */ protected Undelete(java.lang.String name, com.google.api.services.cloudresourcemanager.model.UndeleteFolderRequest content) { super(CloudResourceManager.this, "POST", REST_PATH, content, com.google.api.services.cloudresourcemanager.model.Folder.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/[^/]+$"); } }
super(CloudResourceManager.this, "PATCH", REST_PATH, content, com.google.api.services.cloudresourcemanager.model.Folder.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 " +