kubernetes_asyncio.client.models.v1_cluster_role module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_cluster_role.V1ClusterRole(aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- property aggregation_rule
Gets the aggregation_rule of this V1ClusterRole. # noqa: E501
- Returns:
The aggregation_rule of this V1ClusterRole. # noqa: E501
- Return type:
- property api_version
Gets the api_version of this V1ClusterRole. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- Returns:
The api_version of this V1ClusterRole. # noqa: E501
- Return type:
str
- attribute_map = {'aggregation_rule': 'aggregationRule', 'api_version': 'apiVersion', 'kind': 'kind', 'metadata': 'metadata', 'rules': 'rules'}
- property kind
Gets the kind of this V1ClusterRole. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- Returns:
The kind of this V1ClusterRole. # noqa: E501
- Return type:
str
- property metadata
Gets the metadata of this V1ClusterRole. # noqa: E501
- Returns:
The metadata of this V1ClusterRole. # noqa: E501
- Return type:
- openapi_types = {'aggregation_rule': 'V1AggregationRule', 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'rules': 'list[V1PolicyRule]'}
- property rules
Gets the rules of this V1ClusterRole. # noqa: E501
Rules holds all the PolicyRules for this ClusterRole # noqa: E501
- Returns:
The rules of this V1ClusterRole. # noqa: E501
- Return type:
list[V1PolicyRule]
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model