Roles
class Roles extends Resource (View source)
The "roles" collection of methods.
Typical usage is:
$iamService = new Google\Service\Iam(...);
$roles = $iamService->roles;
Methods
Lists every predefined Role that IAM supports, or every custom role that is defined for an organization or project. (roles.listRoles)
Lists roles that can be granted on a Google Cloud resource. A role is grantable if the IAM policy for the resource can contain bindings to the role. (roles.queryGrantableRoles)
Details
Role
get(string $name, array $optParams = [])
Gets the definition of a Role. (roles.get)
ListRolesResponse
listRoles(array $optParams = [])
Lists every predefined Role that IAM supports, or every custom role that is defined for an organization or project. (roles.listRoles)
QueryGrantableRolesResponse
queryGrantableRoles(QueryGrantableRolesRequest $postBody, array $optParams = [])
Lists roles that can be granted on a Google Cloud resource. A role is grantable if the IAM policy for the resource can contain bindings to the role. (roles.queryGrantableRoles)