kubernetes.client.models.v1_mutating_webhook module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class kubernetes.client.models.v1_mutating_webhook.V1MutatingWebhook(*, admission_review_versions: List[Annotated[str, Strict(strict=True)]], client_config: AdmissionregistrationV1WebhookClientConfig, failure_policy: Annotated[str, Strict(strict=True)] | None = None, match_conditions: List[V1MatchCondition] | None = None, match_policy: Annotated[str, Strict(strict=True)] | None = None, name: Annotated[str, Strict(strict=True)], namespace_selector: V1LabelSelector | None = None, object_selector: V1LabelSelector | None = None, reinvocation_policy: Annotated[str, Strict(strict=True)] | None = None, rules: List[V1RuleWithOperations] | None = None, side_effects: Annotated[str, Strict(strict=True)], timeout_seconds: Annotated[int, Strict(strict=True)] | None = None)

Bases: BaseModel

MutatingWebhook describes an admission webhook and the resources and operations it applies to.

Attributes:
openapi_types (dict): The key is attribute name

and the value is attribute type.

attribute_map (dict): The key is attribute name

and the value is json key in definition.

admission_review_versions: List[StrictStr]
attribute_map: ClassVar[Dict[str, str]] = {'admission_review_versions': 'admissionReviewVersions', 'client_config': 'clientConfig', 'failure_policy': 'failurePolicy', 'match_conditions': 'matchConditions', 'match_policy': 'matchPolicy', 'name': 'name', 'namespace_selector': 'namespaceSelector', 'object_selector': 'objectSelector', 'reinvocation_policy': 'reinvocationPolicy', 'rules': 'rules', 'side_effects': 'sideEffects', 'timeout_seconds': 'timeoutSeconds'}
client_config: AdmissionregistrationV1WebhookClientConfig
failure_policy: StrictStr | None
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1MutatingWebhook from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1MutatingWebhook from a JSON string

match_conditions: List[V1MatchCondition] | None
match_policy: StrictStr | None
model_config = {'extra': 'forbid', 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: StrictStr
namespace_selector: V1LabelSelector | None
object_selector: V1LabelSelector | None
openapi_types: ClassVar[Dict[str, str]] = {'admission_review_versions': 'List[str]', 'client_config': 'AdmissionregistrationV1WebhookClientConfig', 'failure_policy': 'str', 'match_conditions': 'List[V1MatchCondition]', 'match_policy': 'str', 'name': 'str', 'namespace_selector': 'V1LabelSelector', 'object_selector': 'V1LabelSelector', 'reinvocation_policy': 'str', 'rules': 'List[V1RuleWithOperations]', 'side_effects': 'str', 'timeout_seconds': 'int'}
reinvocation_policy: StrictStr | None
rules: List[V1RuleWithOperations] | None
side_effects: StrictStr
timeout_seconds: StrictInt | None
to_dict(serialize: bool = False) Dict[str, Any]

Return all declared model fields using public or wire names.

to_json() str

Returns the JSON representation of the model using alias

to_str() str

Returns the string representation of the model