/** * 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 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. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; }
/** * Search for folders that match specific filter criteria. Search provides an eventually consistent * view of the folders a user has access to which meet the specified filter criteria. * * This will only return folders on which the caller has the permission * `resourcemanager.folders.get`. * * Create a request for the method "folders.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. * * @param content the {@link com.google.api.services.cloudresourcemanager.model.SearchFoldersRequest} * @return the request */ public Search search(com.google.api.services.cloudresourcemanager.model.SearchFoldersRequest content) throws java.io.IOException { Search result = new Search(content); initialize(result); return result; }
/** * Lists the Folders that are direct descendants of supplied parent resource. List provides a * strongly consistent view of the Folders underneath the specified parent resource. List returns * Folders sorted based upon the (ascending) lexical ordering of their display_name. The caller must * have `resourcemanager.folders.list` permission on the identified parent. * * Create a request for the method "folders.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; }
/** * 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 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 the operation documentation for * the appropriate value for this field. * @param content the {@link com.google.api.services.cloudresourcemanager.model.GetIamPolicyRequest} * @return the request */ public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.model.GetIamPolicyRequest content) throws java.io.IOException { GetIamPolicy result = new GetIamPolicy(resource, content); initialize(result); return result; }
/** * 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 cloudresourcemanager server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name The resource name of the Folder to retrieve. Must be of the form `folders/{folder_id}`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; }
/** * 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 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 the operation documentation for * the appropriate value for this field. * @param content the {@link com.google.api.services.cloudresourcemanager.model.SetIamPolicyRequest} * @return the request */ public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.cloudresourcemanager.model.SetIamPolicyRequest content) throws java.io.IOException { SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; }
/** * 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 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 the operation * documentation for the appropriate value for this field. * @param content the {@link com.google.api.services.cloudresourcemanager.model.TestIamPermissionsRequest} * @return the request */ public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.cloudresourcemanager.model.TestIamPermissionsRequest content) throws java.io.IOException { TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; }
/** * 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 cloudresourcemanager server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name the resource name of the Folder to be deleted. Must be of the form `folders/{folder_id}`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; }
/** * 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 cloudresourcemanager server. After setting any * optional parameters, call the {@link Undelete#execute()} method to invoke the remote operation. * * @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} * @return the request */ public Undelete undelete(java.lang.String name, com.google.api.services.cloudresourcemanager.model.UndeleteFolderRequest content) throws java.io.IOException { Undelete result = new Undelete(name, content); initialize(result); return result; }
/** * Moves a Folder under a new resource parent. Returns an Operation which can be used to track the * progress of the folder move workflow. Upon success the Operation.response field will be populated * with the moved Folder. Upon failure, a FolderOperationError categorizing the failure cause will * be returned - if the failure occurs synchronously then the FolderOperationError will be returned * via the Status.details field and if it occurs asynchronously then the FolderOperation will be * returned via the the Operation.error field. In addition, the Operation.metadata field will be * populated with a FolderOperation message as an aid to stateless clients. Folder moves will be * rejected if they violate either the naming, height or fanout constraints described in the * CreateFolder documentation. The caller must have `resourcemanager.folders.move` permission on the * folder's current and proposed new parent. * * Create a request for the method "folders.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 The resource name of the Folder to move. Must be of the form folders/{folder_id} * @param content the {@link com.google.api.services.cloudresourcemanager.model.MoveFolderRequest} * @return the request */ public Move move(java.lang.String name, com.google.api.services.cloudresourcemanager.model.MoveFolderRequest content) throws java.io.IOException { Move result = new Move(name, content); initialize(result); return result; }
/** * Updates a Folder, changing its display_name. Changes to the folder display_name will be rejected * if they violate either the display_name formatting rules or naming constraints described in the * CreateFolder documentation. * * The Folder's display name must start and end with a letter or digit, may contain letters, digits, * spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the * regular expression: [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. The caller must have * `resourcemanager.folders.update` permission on the identified folder. * * If the update fails due to the unique name constraint then a PreconditionFailure explaining this * violation will be returned in the Status.details field. * * Create a request for the method "folders.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 resource name of the Folder. Its format is `folders/{folder_id}`, for example: * "folders/1234". * @param content the {@link com.google.api.services.cloudresourcemanager.model.Folder} * @return the request */ public Patch patch(java.lang.String name, com.google.api.services.cloudresourcemanager.model.Folder content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; }
initialize(result); return result;