google.iam.admin.v1.ListRolesRequest
*/
class ListRolesRequest extends \Google\Protobuf\Internal\Message
{
/**
* The `parent` parameter's value depends on the target resource for the
* request, namely
* [`roles`](/iam/reference/rest/v1/roles),
* [`projects`](/iam/reference/rest/v1/projects.roles), or
* [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
* resource type's `parent` value format is described below:
* * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
* This method doesn't require a resource; it simply returns all
* [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
* Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles`
* * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
* `projects/{PROJECT_ID}`. This method lists all project-level
* [custom roles](/iam/docs/understanding-custom-roles).
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
* * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
* `organizations/{ORGANIZATION_ID}`. This method lists all
* organization-level [custom roles](/iam/docs/understanding-custom-roles).
* Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
* Note: Wildcard (*) values are invalid; you must specify a complete project
* ID or organization ID.
*
* Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = {
*/
private $parent = '';
/**
* Optional limit on the number of roles to include in the response.
*
* Generated from protobuf field int32 page_size = 2;
*/
private $page_size = 0;
/**
* Optional pagination token returned in an earlier ListRolesResponse.
*
* Generated from protobuf field string page_token = 3;
*/
private $page_token = '';
/**
* Optional view for the returned Role objects. When `FULL` is specified,
* the `includedPermissions` field is returned, which includes a list of all
* permissions in the role. The default value is `BASIC`, which does not
* return the `includedPermissions` field.
*
* Generated from protobuf field .google.iam.admin.v1.RoleView view = 4;
*/
private $view = 0;
/**
* Include Roles that have been deleted.
*
* Generated from protobuf field bool show_deleted = 6;
*/
private $show_deleted = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $parent
* The `parent` parameter's value depends on the target resource for the
* request, namely
* [`roles`](/iam/reference/rest/v1/roles),
* [`projects`](/iam/reference/rest/v1/projects.roles), or
* [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
* resource type's `parent` value format is described below:
* * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
* This method doesn't require a resource; it simply returns all
* [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
* Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles`
* * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
* `projects/{PROJECT_ID}`. This method lists all project-level
* [custom roles](/iam/docs/understanding-custom-roles).
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
* * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
* `organizations/{ORGANIZATION_ID}`. This method lists all
* organization-level [custom roles](/iam/docs/understanding-custom-roles).
* Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
* Note: Wildcard (*) values are invalid; you must specify a complete project
* ID or organization ID.
* @type int $page_size
* Optional limit on the number of roles to include in the response.
* @type string $page_token
* Optional pagination token returned in an earlier ListRolesResponse.
* @type int $view
* Optional view for the returned Role objects. When `FULL` is specified,
* the `includedPermissions` field is returned, which includes a list of all
* permissions in the role. The default value is `BASIC`, which does not
* return the `includedPermissions` field.
* @type bool $show_deleted
* Include Roles that have been deleted.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Iam\Admin\V1\Iam::initOnce();
parent::__construct($data);
}
/**
* The `parent` parameter's value depends on the target resource for the
* request, namely
* [`roles`](/iam/reference/rest/v1/roles),
* [`projects`](/iam/reference/rest/v1/projects.roles), or
* [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
* resource type's `parent` value format is described below:
* * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
* This method doesn't require a resource; it simply returns all
* [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
* Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles`
* * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
* `projects/{PROJECT_ID}`. This method lists all project-level
* [custom roles](/iam/docs/understanding-custom-roles).
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
* * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
* `organizations/{ORGANIZATION_ID}`. This method lists all
* organization-level [custom roles](/iam/docs/understanding-custom-roles).
* Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
* Note: Wildcard (*) values are invalid; you must specify a complete project
* ID or organization ID.
*
* Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = {
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* The `parent` parameter's value depends on the target resource for the
* request, namely
* [`roles`](/iam/reference/rest/v1/roles),
* [`projects`](/iam/reference/rest/v1/projects.roles), or
* [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
* resource type's `parent` value format is described below:
* * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
* This method doesn't require a resource; it simply returns all
* [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
* Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles`
* * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
* `projects/{PROJECT_ID}`. This method lists all project-level
* [custom roles](/iam/docs/understanding-custom-roles).
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
* * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
* `organizations/{ORGANIZATION_ID}`. This method lists all
* organization-level [custom roles](/iam/docs/understanding-custom-roles).
* Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
* Note: Wildcard (*) values are invalid; you must specify a complete project
* ID or organization ID.
*
* Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = {
* @param string $var
* @return $this
*/
public function setParent($var)
{
GPBUtil::checkString($var, True);
$this->parent = $var;
return $this;
}
/**
* Optional limit on the number of roles to include in the response.
*
* Generated from protobuf field int32 page_size = 2;
* @return int
*/
public function getPageSize()
{
return $this->page_size;
}
/**
* Optional limit on the number of roles to include in the response.
*
* Generated from protobuf field int32 page_size = 2;
* @param int $var
* @return $this
*/
public function setPageSize($var)
{
GPBUtil::checkInt32($var);
$this->page_size = $var;
return $this;
}
/**
* Optional pagination token returned in an earlier ListRolesResponse.
*
* Generated from protobuf field string page_token = 3;
* @return string
*/
public function getPageToken()
{
return $this->page_token;
}
/**
* Optional pagination token returned in an earlier ListRolesResponse.
*
* Generated from protobuf field string page_token = 3;
* @param string $var
* @return $this
*/
public function setPageToken($var)
{
GPBUtil::checkString($var, True);
$this->page_token = $var;
return $this;
}
/**
* Optional view for the returned Role objects. When `FULL` is specified,
* the `includedPermissions` field is returned, which includes a list of all
* permissions in the role. The default value is `BASIC`, which does not
* return the `includedPermissions` field.
*
* Generated from protobuf field .google.iam.admin.v1.RoleView view = 4;
* @return int
*/
public function getView()
{
return $this->view;
}
/**
* Optional view for the returned Role objects. When `FULL` is specified,
* the `includedPermissions` field is returned, which includes a list of all
* permissions in the role. The default value is `BASIC`, which does not
* return the `includedPermissions` field.
*
* Generated from protobuf field .google.iam.admin.v1.RoleView view = 4;
* @param int $var
* @return $this
*/
public function setView($var)
{
GPBUtil::checkEnum($var, \Google\Iam\Admin\V1\RoleView::class);
$this->view = $var;
return $this;
}
/**
* Include Roles that have been deleted.
*
* Generated from protobuf field bool show_deleted = 6;
* @return bool
*/
public function getShowDeleted()
{
return $this->show_deleted;
}
/**
* Include Roles that have been deleted.
*
* Generated from protobuf field bool show_deleted = 6;
* @param bool $var
* @return $this
*/
public function setShowDeleted($var)
{
GPBUtil::checkBool($var);
$this->show_deleted = $var;
return $this;
}
}