Struct gapi_grpc::google::iam::admin::v1::ListRolesRequest [−][src]
The request to get all roles defined under a resource.
Fields
parent: String
The parent
parameter’s value depends on the target resource for the
request, namely
roles
,
projects
, or
organizations
. Each
resource type’s parent
value format is described below:
-
roles.list()
: An empty string. This method doesn’t require a resource; it simply returns all predefined roles in Cloud IAM. Example request URL:https://iam.googleapis.com/v1/roles
-
projects.roles.list()
:projects/{PROJECT_ID}
. This method lists all project-level custom roles. Example request URL:https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles
-
organizations.roles.list()
:organizations/{ORGANIZATION_ID}
. This method lists all organization-level 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.
page_size: i32
Optional limit on the number of roles to include in the response.
The default is 300, and the maximum is 1,000.
page_token: String
Optional pagination token returned in an earlier ListRolesResponse.
view: i32
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.
show_deleted: bool
Include Roles that have been deleted.
Implementations
impl ListRolesRequest
[src][−]
pub fn view(&self) -> RoleView
[src][−]
Returns the enum value of view
, or the default if the field is set to an invalid enum value.
pub fn set_view(&mut self, value: RoleView)
[src][−]
Sets view
to the provided enum value.
Trait Implementations
impl Clone for ListRolesRequest
[src][+]
impl Debug for ListRolesRequest
[src][+]
impl Default for ListRolesRequest
[src][+]
impl Message for ListRolesRequest
[src][+]
impl PartialEq<ListRolesRequest> for ListRolesRequest
[src][+]
impl StructuralPartialEq for ListRolesRequest
[src]
Auto Trait Implementations
impl RefUnwindSafe for ListRolesRequest
impl Send for ListRolesRequest
impl Sync for ListRolesRequest
impl Unpin for ListRolesRequest
impl UnwindSafe for ListRolesRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,