kubernetes_asyncio.client.models.v1alpha1_match_resources 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.v1alpha1_match_resources.V1alpha1MatchResources(exclude_resource_rules=None, match_policy=None, namespace_selector=None, object_selector=None, resource_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.
- attribute_map = {'exclude_resource_rules': 'excludeResourceRules', 'match_policy': 'matchPolicy', 'namespace_selector': 'namespaceSelector', 'object_selector': 'objectSelector', 'resource_rules': 'resourceRules'}
- property exclude_resource_rules
Gets the exclude_resource_rules of this V1alpha1MatchResources. # noqa: E501
ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) # noqa: E501
- Returns:
The exclude_resource_rules of this V1alpha1MatchResources. # noqa: E501
- Return type:
- property match_policy
Gets the match_policy of this V1alpha1MatchResources. # noqa: E501
matchPolicy defines how the “MatchResources” list is used to match incoming requests. Allowed values are “Exact” or “Equivalent”. - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but “rules” only included apiGroups:[“apps”], apiVersions:[“v1”], resources: [“deployments”], the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and “rules” only included apiGroups:[“apps”], apiVersions:[“v1”], resources: [“deployments”], the admission policy does consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. Defaults to “Equivalent” # noqa: E501
- Returns:
The match_policy of this V1alpha1MatchResources. # noqa: E501
- Return type:
str
- property namespace_selector
Gets the namespace_selector of this V1alpha1MatchResources. # noqa: E501
- Returns:
The namespace_selector of this V1alpha1MatchResources. # noqa: E501
- Return type:
- property object_selector
Gets the object_selector of this V1alpha1MatchResources. # noqa: E501
- Returns:
The object_selector of this V1alpha1MatchResources. # noqa: E501
- Return type:
- openapi_types = {'exclude_resource_rules': 'list[V1alpha1NamedRuleWithOperations]', 'match_policy': 'str', 'namespace_selector': 'V1LabelSelector', 'object_selector': 'V1LabelSelector', 'resource_rules': 'list[V1alpha1NamedRuleWithOperations]'}
- property resource_rules
Gets the resource_rules of this V1alpha1MatchResources. # noqa: E501
ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. # noqa: E501
- Returns:
The resource_rules of this V1alpha1MatchResources. # noqa: E501
- Return type:
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model