ProjectsResourceApi class

Constructors

ProjectsResourceApi(ApiRequester client)

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clearOrgPolicy(ClearOrgPolicyRequest request, String resource, { String $fields }) → Future<Empty>
Clears a Policy from a resource. [...]
create(Project request, { String $fields }) → Future<Operation>
Request that a new Project be created. The result is an Operation which can be used to track the creation process. It is automatically deleted after a few hours, so there is no need to call DeleteOperation. [...]
delete(String projectId, { String $fields }) → Future<Empty>
Marks the Project identified by the specified project_id (for example, my-project-123) for deletion. This method will only affect the Project if it has a lifecycle state of ACTIVE. [...]
get(String projectId, { String $fields }) → Future<Project>
Retrieves the Project identified by the specified project_id (for example, my-project-123). [...]
getAncestry(GetAncestryRequest request, String projectId, { String $fields }) → Future<GetAncestryResponse>
Gets a list of ancestors in the resource hierarchy for the Project identified by the specified project_id (for example, my-project-123). [...]
getEffectiveOrgPolicy(GetEffectiveOrgPolicyRequest request, String resource, { String $fields }) → Future<OrgPolicy>
Gets the effective Policy on a resource. This is the result of merging Policies in the resource hierarchy. The returned Policy will not have an etagset because it is a computed Policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. [...]
getIamPolicy(GetIamPolicyRequest request, String resource, { String $fields }) → Future<Policy>
Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist. [...]
getOrgPolicy(GetOrgPolicyRequest request, String resource, { String $fields }) → Future<OrgPolicy>
Gets a Policy on a resource. [...]
list({String pageToken, int pageSize, String filter, String $fields }) → Future<ListProjectsResponse>
Lists Projects that are visible to the user and satisfy the specified filter. 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. [...]
listAvailableOrgPolicyConstraints(ListAvailableOrgPolicyConstraintsRequest request, String resource, { String $fields }) → Future<ListAvailableOrgPolicyConstraintsResponse>
Lists Constraints that could be applied on the specified resource. [...]
listOrgPolicies(ListOrgPoliciesRequest request, String resource, { String $fields }) → Future<ListOrgPoliciesResponse>
Lists all the Policies set for a particular resource. [...]
setIamPolicy(SetIamPolicyRequest request, String resource, { String $fields }) → Future<Policy>
Sets the IAM access control policy for the specified Project. Overwrites any existing policy. [...]
setOrgPolicy(SetOrgPolicyRequest request, String resource, { String $fields }) → Future<OrgPolicy>
Updates the specified Policy on the resource. Creates a new Policy for that Constraint on the resource if one does not exist. [...]
testIamPermissions(TestIamPermissionsRequest request, String resource, { String $fields }) → Future<TestIamPermissionsResponse>
Returns permissions that a caller has on the specified Project. [...]
undelete(UndeleteProjectRequest request, String projectId, { String $fields }) → Future<Empty>
Restores the Project identified by the specified project_id (for example, my-project-123). 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. [...]
update(Project request, String projectId, { String $fields }) → Future<Project>
Updates the attributes of the Project identified by the specified project_id (for example, my-project-123). [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited