Struct google_api_proto::google::iam::admin::v1::ListRolesRequest
source · pub struct ListRolesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub view: i32,
pub show_deleted: bool,
}
Expand description
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§
Trait Implementations§
source§impl Clone for ListRolesRequest
impl Clone for ListRolesRequest
source§fn clone(&self) -> ListRolesRequest
fn clone(&self) -> ListRolesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListRolesRequest
impl Debug for ListRolesRequest
source§impl Default for ListRolesRequest
impl Default for ListRolesRequest
source§impl Message for ListRolesRequest
impl Message for ListRolesRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ListRolesRequest
impl PartialEq for ListRolesRequest
source§fn eq(&self, other: &ListRolesRequest) -> bool
fn eq(&self, other: &ListRolesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListRolesRequest
Auto Trait Implementations§
impl Freeze for ListRolesRequest
impl RefUnwindSafe for ListRolesRequest
impl Send for ListRolesRequest
impl Sync for ListRolesRequest
impl Unpin for ListRolesRequest
impl UnwindSafe for ListRolesRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request