kubernetes_asyncio.client.models.v1beta1_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.v1beta1_match_resources.V1beta1MatchResources(exclude_resource_rules=None, match_policy=None, namespace_selector=None, object_selector=None, resource_rules=None, local_vars_configuration=None)

Bases: object

NOTE: 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 V1beta1MatchResources. # noqa: E501

ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy 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 V1beta1MatchResources. # noqa: E501

Return type:

list[V1beta1NamedRuleWithOperations]

property match_policy

Gets the match_policy of this V1beta1MatchResources. # 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”], a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - 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”], a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to “Equivalent” # noqa: E501

Returns:

The match_policy of this V1beta1MatchResources. # noqa: E501

Return type:

str

property namespace_selector

Gets the namespace_selector of this V1beta1MatchResources. # noqa: E501

Returns:

The namespace_selector of this V1beta1MatchResources. # noqa: E501

Return type:

V1LabelSelector

property object_selector

Gets the object_selector of this V1beta1MatchResources. # noqa: E501

Returns:

The object_selector of this V1beta1MatchResources. # noqa: E501

Return type:

V1LabelSelector

openapi_types = {'exclude_resource_rules': 'list[V1beta1NamedRuleWithOperations]', 'match_policy': 'str', 'namespace_selector': 'V1LabelSelector', 'object_selector': 'V1LabelSelector', 'resource_rules': 'list[V1beta1NamedRuleWithOperations]'}
property resource_rules

Gets the resource_rules of this V1beta1MatchResources. # noqa: E501

ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. # noqa: E501

Returns:

The resource_rules of this V1beta1MatchResources. # noqa: E501

Return type:

list[V1beta1NamedRuleWithOperations]

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model