kubernetes_asyncio.client.models.v1_policy_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_policy_rule.V1PolicyRule(api_groups=None, non_resource_urls=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 V1PolicyRule. # 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. “” represents the core API group and “*” represents all API groups. # noqa: E501
- Returns:
The api_groups of this V1PolicyRule. # noqa: E501
- Return type:
list[str]
- attribute_map = {'api_groups': 'apiGroups', 'non_resource_urls': 'nonResourceURLs', 'resource_names': 'resourceNames', 'resources': 'resources', 'verbs': 'verbs'}
- property non_resource_urls
Gets the non_resource_urls of this V1PolicyRule. # noqa: E501
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as “pods” or “secrets”) or non-resource URL paths (such as “/api”), but not both. # noqa: E501
- Returns:
The non_resource_urls of this V1PolicyRule. # noqa: E501
- Return type:
list[str]
- openapi_types = {'api_groups': 'list[str]', 'non_resource_urls': 'list[str]', 'resource_names': 'list[str]', 'resources': 'list[str]', 'verbs': 'list[str]'}
- property resource_names
Gets the resource_names of this V1PolicyRule. # noqa: E501
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501
- Returns:
The resource_names of this V1PolicyRule. # noqa: E501
- Return type:
list[str]
- property resources
Gets the resources of this V1PolicyRule. # noqa: E501
Resources is a list of resources this rule applies to. ‘*’ represents all resources. # noqa: E501
- Returns:
The resources of this V1PolicyRule. # 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 V1PolicyRule. # noqa: E501
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. ‘*’ represents all verbs. # noqa: E501
- Returns:
The verbs of this V1PolicyRule. # noqa: E501
- Return type:
list[str]