kubernetes.client.models.v1_validating_admission_policy_spec 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_validating_admission_policy_spec.V1ValidatingAdmissionPolicySpec(*, audit_annotations: List[V1AuditAnnotation] | None = None, failure_policy: Annotated[str, Strict(strict=True)] | None = None, match_conditions: List[V1MatchCondition] | None = None, match_constraints: V1MatchResources | None = None, param_kind: V1ParamKind | None = None, validations: List[V1Validation] | None = None, variables: List[V1Variable] | None = None)¶
Bases:
BaseModelValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
- 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.
- attribute_map: ClassVar[Dict[str, str]] = {'audit_annotations': 'auditAnnotations', 'failure_policy': 'failurePolicy', 'match_conditions': 'matchConditions', 'match_constraints': 'matchConstraints', 'param_kind': 'paramKind', 'validations': 'validations', 'variables': 'variables'}¶
- audit_annotations: List[V1AuditAnnotation] | None¶
- failure_policy: StrictStr | None¶
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None¶
Create an instance of V1ValidatingAdmissionPolicySpec from a dict
- classmethod from_json(json_str: str) Self | None¶
Create an instance of V1ValidatingAdmissionPolicySpec from a JSON string
- match_conditions: List[V1MatchCondition] | None¶
- match_constraints: V1MatchResources | 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].
- openapi_types: ClassVar[Dict[str, str]] = {'audit_annotations': 'List[V1AuditAnnotation]', 'failure_policy': 'str', 'match_conditions': 'List[V1MatchCondition]', 'match_constraints': 'V1MatchResources', 'param_kind': 'V1ParamKind', 'validations': 'List[V1Validation]', 'variables': 'List[V1Variable]'}¶
- param_kind: V1ParamKind | 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
- validations: List[V1Validation] | None¶
- variables: List[V1Variable] | None¶