OrganizationsRoles
class OrganizationsRoles extends Resource (View source)
The "roles" collection of methods.
Typical usage is:
$iamService = new Google\Service\Iam(...);
$roles = $iamService->organizations_roles;
Methods
Creates a new custom Role. (roles.create)
Deletes a custom Role. When you delete a custom role, the following changes occur immediately: You cannot bind a principal to the custom role in an IAM Policy. Existing bindings to the custom role are not changed, but they have no effect. By default, the response from ListRoles does not include the custom role. You have 7 days to undelete the custom role. After 7 days, the following changes occur: The custom role is permanently deleted and cannot be recovered. * If an IAM policy contains a binding to the custom role, the binding is permanently removed. (roles.delete)
Lists every predefined Role that IAM supports, or every custom role that is defined for an organization or project. (roles.listOrganizationsRoles)
Undeletes a custom Role. (roles.undelete)
Details
Role
create(string $parent, CreateRoleRequest $postBody, array $optParams = [])
Creates a new custom Role. (roles.create)
Role
delete(string $name, array $optParams = [])
Deletes a custom Role. When you delete a custom role, the following changes occur immediately: You cannot bind a principal to the custom role in an IAM Policy. Existing bindings to the custom role are not changed, but they have no effect. By default, the response from ListRoles does not include the custom role. You have 7 days to undelete the custom role. After 7 days, the following changes occur: The custom role is permanently deleted and cannot be recovered. * If an IAM policy contains a binding to the custom role, the binding is permanently removed. (roles.delete)
Role
get(string $name, array $optParams = [])
Gets the definition of a Role. (roles.get)
ListRolesResponse
listOrganizationsRoles(string $parent, array $optParams = [])
Lists every predefined Role that IAM supports, or every custom role that is defined for an organization or project. (roles.listOrganizationsRoles)
Role
patch(string $name, Role $postBody, array $optParams = [])
Updates the definition of a custom Role. (roles.patch)
Role
undelete(string $name, UndeleteRoleRequest $postBody, array $optParams = [])
Undeletes a custom Role. (roles.undelete)