[−][src]Struct k8s_openapi::api::rbac::v1alpha1::ClusterRole
ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
Fields
aggregation_rule: Option<AggregationRule>
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
metadata: Option<ObjectMeta>
Standard object's metadata.
rules: Vec<PolicyRule>
Rules holds all the PolicyRules for this ClusterRole
Methods
impl ClusterRole
[src]
pub fn create_cluster_role(
body: &ClusterRole,
optional: CreateClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateClusterRoleResponse>), RequestError>
[src]
body: &ClusterRole,
optional: CreateClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateClusterRoleResponse>), RequestError>
create a ClusterRole
Use the returned crate::ResponseBody
<
CreateClusterRoleResponse
>
constructor, or CreateClusterRoleResponse
directly, to parse the HTTP response.
Arguments
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl ClusterRole
[src]
pub fn delete_cluster_role(
name: &str,
optional: DeleteClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteClusterRoleResponse>), RequestError>
[src]
name: &str,
optional: DeleteClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteClusterRoleResponse>), RequestError>
delete a ClusterRole
Use the returned crate::ResponseBody
<
DeleteClusterRoleResponse
>
constructor, or DeleteClusterRoleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the ClusterRole
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl ClusterRole
[src]
pub fn delete_collection_cluster_role(
optional: DeleteCollectionClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionClusterRoleResponse>), RequestError>
[src]
optional: DeleteCollectionClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionClusterRoleResponse>), RequestError>
delete collection of ClusterRole
Use the returned crate::ResponseBody
<
DeleteCollectionClusterRoleResponse
>
constructor, or DeleteCollectionClusterRoleResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl ClusterRole
[src]
pub fn list_cluster_role(
optional: ListClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListClusterRoleResponse>), RequestError>
[src]
optional: ListClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListClusterRoleResponse>), RequestError>
list or watch objects of kind ClusterRole
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListClusterRoleResponse
>
constructor, or ListClusterRoleResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl ClusterRole
[src]
pub fn patch_cluster_role(
name: &str,
body: &Patch,
optional: PatchClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchClusterRoleResponse>), RequestError>
[src]
name: &str,
body: &Patch,
optional: PatchClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchClusterRoleResponse>), RequestError>
partially update the specified ClusterRole
Use the returned crate::ResponseBody
<
PatchClusterRoleResponse
>
constructor, or PatchClusterRoleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the ClusterRole
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl ClusterRole
[src]
pub fn read_cluster_role(
name: &str,
optional: ReadClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadClusterRoleResponse>), RequestError>
[src]
name: &str,
optional: ReadClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadClusterRoleResponse>), RequestError>
read the specified ClusterRole
Use the returned crate::ResponseBody
<
ReadClusterRoleResponse
>
constructor, or ReadClusterRoleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the ClusterRole
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl ClusterRole
[src]
pub fn replace_cluster_role(
name: &str,
body: &ClusterRole,
optional: ReplaceClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceClusterRoleResponse>), RequestError>
[src]
name: &str,
body: &ClusterRole,
optional: ReplaceClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceClusterRoleResponse>), RequestError>
replace the specified ClusterRole
Use the returned crate::ResponseBody
<
ReplaceClusterRoleResponse
>
constructor, or ReplaceClusterRoleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the ClusterRole
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl ClusterRole
[src]
pub fn watch_cluster_role(
optional: WatchClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchClusterRoleResponse>), RequestError>
[src]
optional: WatchClusterRoleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchClusterRoleResponse>), RequestError>
list or watch objects of kind ClusterRole
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchClusterRoleResponse
>
constructor, or WatchClusterRoleResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for ClusterRole
[src]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for ClusterRole
[src]
impl Clone for ClusterRole
[src]
fn clone(&self) -> ClusterRole
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<ClusterRole> for ClusterRole
[src]
fn eq(&self, other: &ClusterRole) -> bool
[src]
fn ne(&self, other: &ClusterRole) -> bool
[src]
impl Default for ClusterRole
[src]
fn default() -> ClusterRole
[src]
impl Debug for ClusterRole
[src]
impl Serialize for ClusterRole
[src]
impl<'de> Deserialize<'de> for ClusterRole
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ClusterRole
impl Sync for ClusterRole
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,