kubernetes_asyncio.client.models.v1_resource_rule 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_resource_rule.V1ResourceRule(api_groups=None, resource_names=None, resources=None, verbs=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 api_groups
Gets the api_groups of this V1ResourceRule. # noqa: E501
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. “*” means all. # noqa: E501
- Returns:
The api_groups of this V1ResourceRule. # noqa: E501
- Return type:
list[str]
- attribute_map = {'api_groups': 'apiGroups', 'resource_names': 'resourceNames', 'resources': 'resources', 'verbs': 'verbs'}
- openapi_types = {'api_groups': 'list[str]', 'resource_names': 'list[str]', 'resources': 'list[str]', 'verbs': 'list[str]'}
- property resource_names
Gets the resource_names of this V1ResourceRule. # noqa: E501
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. “*” means all. # noqa: E501
- Returns:
The resource_names of this V1ResourceRule. # noqa: E501
- Return type:
list[str]
- property resources
Gets the resources of this V1ResourceRule. # noqa: E501
Resources is a list of resources this rule applies to. “*” means all in the specified apiGroups. “*/foo” represents the subresource ‘foo’ for all resources in the specified apiGroups. # noqa: E501
- Returns:
The resources of this V1ResourceRule. # noqa: E501
- Return type:
list[str]
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model
- property verbs
Gets the verbs of this V1ResourceRule. # noqa: E501
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. “*” means all. # noqa: E501
- Returns:
The verbs of this V1ResourceRule. # noqa: E501
- Return type:
list[str]