kubernetes_asyncio.client.models.v1_resource_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_resource_policy_rule.V1ResourcePolicyRule(api_groups=None, cluster_scope=None, namespaces=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 V1ResourcePolicyRule. # noqa: E501
apiGroups is a list of matching API groups and may not be empty. “*” matches all API groups and, if present, must be the only entry. Required. # noqa: E501
- Returns:
The api_groups of this V1ResourcePolicyRule. # noqa: E501
- Return type:
list[str]
- attribute_map = {'api_groups': 'apiGroups', 'cluster_scope': 'clusterScope', 'namespaces': 'namespaces', 'resources': 'resources', 'verbs': 'verbs'}
- property cluster_scope
Gets the cluster_scope of this V1ResourcePolicyRule. # noqa: E501
clusterScope indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the namespaces field must contain a non-empty list. # noqa: E501
- Returns:
The cluster_scope of this V1ResourcePolicyRule. # noqa: E501
- Return type:
bool
- property namespaces
Gets the namespaces of this V1ResourcePolicyRule. # noqa: E501
namespaces is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains “*”. Note that “*” matches any specified namespace but does not match a request that _does not specify_ a namespace (see the clusterScope field for that). This list may be empty, but only if clusterScope is true. # noqa: E501
- Returns:
The namespaces of this V1ResourcePolicyRule. # noqa: E501
- Return type:
list[str]
- openapi_types = {'api_groups': 'list[str]', 'cluster_scope': 'bool', 'namespaces': 'list[str]', 'resources': 'list[str]', 'verbs': 'list[str]'}
- property resources
Gets the resources of this V1ResourcePolicyRule. # noqa: E501
resources is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ “services”, “nodes/status” ]. This list may not be empty. “*” matches all resources and, if present, must be the only entry. Required. # noqa: E501
- Returns:
The resources of this V1ResourcePolicyRule. # 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 V1ResourcePolicyRule. # noqa: E501
verbs is a list of matching verbs and may not be empty. “*” matches all verbs and, if present, must be the only entry. Required. # noqa: E501
- Returns:
The verbs of this V1ResourcePolicyRule. # noqa: E501
- Return type:
list[str]