3 fY@s8dZddlmZddlmZddlZGdddeZdS)z Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git )pformat) iteritemsNc@seZdZdZdddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ ddZ ddZ ddZ ddZddZdS)V1alpha1ExternalAdmissionHookzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<ddddd|_ddddd|_||_||_||_||_d S) aS V1alpha1ExternalAdmissionHook - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. !V1alpha1AdmissionHookClientConfigstrz list[V1alpha1RuleWithOperations]) client_configfailure_policynamerulesZ clientConfigZ failurePolicyr r N) swagger_types attribute_map_client_config_failure_policy_name_rules)selfrrr r rj/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1alpha1_external_admission_hook.py__init__s   z&V1alpha1ExternalAdmissionHook.__init__cCs|jS)a Gets the client_config of this V1alpha1ExternalAdmissionHook. ClientConfig defines how to communicate with the hook. Required :return: The client_config of this V1alpha1ExternalAdmissionHook. :rtype: V1alpha1AdmissionHookClientConfig )r )rrrrr4s z+V1alpha1ExternalAdmissionHook.client_configcCs|dkrtd||_dS)a  Sets the client_config of this V1alpha1ExternalAdmissionHook. ClientConfig defines how to communicate with the hook. Required :param client_config: The client_config of this V1alpha1ExternalAdmissionHook. :type: V1alpha1AdmissionHookClientConfig Nz5Invalid value for `client_config`, must not be `None`) ValueErrorr )rrrrrr?s cCs|jS)aG Gets the failure_policy of this V1alpha1ExternalAdmissionHook. FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. :return: The failure_policy of this V1alpha1ExternalAdmissionHook. :rtype: str )r)rrrrrMs z,V1alpha1ExternalAdmissionHook.failure_policycCs ||_dS)aT Sets the failure_policy of this V1alpha1ExternalAdmissionHook. FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. :param failure_policy: The failure_policy of this V1alpha1ExternalAdmissionHook. :type: str N)r)rrrrrrXs cCs|jS)a~ Gets the name of this V1alpha1ExternalAdmissionHook. The name of the external admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. :return: The name of this V1alpha1ExternalAdmissionHook. :rtype: str )r)rrrrr ds z"V1alpha1ExternalAdmissionHook.namecCs|dkrtd||_dS)a Sets the name of this V1alpha1ExternalAdmissionHook. The name of the external admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. :param name: The name of this V1alpha1ExternalAdmissionHook. :type: str Nz,Invalid value for `name`, must not be `None`)rr)rr rrrr os cCs|jS)aZ Gets the rules of this V1alpha1ExternalAdmissionHook. Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. :return: The rules of this V1alpha1ExternalAdmissionHook. :rtype: list[V1alpha1RuleWithOperations] )r)rrrrr }s z#V1alpha1ExternalAdmissionHook.rulescCs ||_dS)a^ Sets the rules of this V1alpha1ExternalAdmissionHook. Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. :param rules: The rules of this V1alpha1ExternalAdmissionHook. :type: list[V1alpha1RuleWithOperations] N)r)rr rrrr s cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr)xrrrsz7V1alpha1ExternalAdmissionHook.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     z%V1alpha1ExternalAdmissionHook.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strsz$V1alpha1ExternalAdmissionHook.to_strcCs|jS)z* For `print` and `pprint` )r&)rrrr__repr__sz&V1alpha1ExternalAdmissionHook.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s z$V1alpha1ExternalAdmissionHook.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr)rrr__ne__sz$V1alpha1ExternalAdmissionHook.__ne__)NNNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr r rr&r'r*r+rrrrrs       r)r/pprintrsixrreobjectrrrrr s