3 fYs@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 ddZ ddZ ddZ ddZ ddZdS)V1alpha1Initializerzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS)aI V1alpha1Initializer - 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. strzlist[V1alpha1Rule])failure_policynamerules failurePolicyrrN) swagger_types attribute_map_failure_policy_name_rules)selfrrrr^/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1alpha1_initializer.py__init__s   zV1alpha1Initializer.__init__cCs|jS)a Gets the failure_policy of this V1alpha1Initializer. FailurePolicy defines what happens if the responsible initializer controller fails to takes action. Allowed values are Ignore, or Fail. If "Ignore" is set, initializer is removed from the initializers list of an object if the timeout is reached; If "Fail" is set, admissionregistration returns timeout error if the timeout is reached. :return: The failure_policy of this V1alpha1Initializer. :rtype: str )r )rrrrr1s z"V1alpha1Initializer.failure_policycCs ||_dS)a Sets the failure_policy of this V1alpha1Initializer. FailurePolicy defines what happens if the responsible initializer controller fails to takes action. Allowed values are Ignore, or Fail. If "Ignore" is set, initializer is removed from the initializers list of an object if the timeout is reached; If "Fail" is set, admissionregistration returns timeout error if the timeout is reached. :param failure_policy: The failure_policy of this V1alpha1Initializer. :type: str N)r )rrrrrr<s cCs|jS)a Gets the name of this V1alpha1Initializer. Name is the identifier of the initializer. It will be added to the object that needs to be initialized. Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where "alwayspullimages" is the name of the webhook, and kubernetes.io is the name of the organization. Required :return: The name of this V1alpha1Initializer. :rtype: str )r )rrrrrHs zV1alpha1Initializer.namecCs|dkrtd||_dS)a Sets the name of this V1alpha1Initializer. Name is the identifier of the initializer. It will be added to the object that needs to be initialized. Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where "alwayspullimages" is the name of the webhook, and kubernetes.io is the name of the organization. Required :param name: The name of this V1alpha1Initializer. :type: str Nz,Invalid value for `name`, must not be `None`) ValueErrorr )rrrrrrSs cCs|jS)a[ Gets the rules of this V1alpha1Initializer. Rules describes what resources/subresources the initializer cares about. The initializer cares about an operation if it matches _any_ Rule. Rule.Resources must not include subresources. :return: The rules of this V1alpha1Initializer. :rtype: list[V1alpha1Rule] )r)rrrrras zV1alpha1Initializer.rulescCs ||_dS)a_ Sets the rules of this V1alpha1Initializer. Rules describes what resources/subresources the initializer cares about. The initializer cares about an operation if it matches _any_ Rule. Rule.Resources must not include subresources. :param rules: The rules of this V1alpha1Initializer. :type: list[V1alpha1Rule] N)r)rrrrrrls 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)xrrrsz-V1alpha1Initializer.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrxs     zV1alpha1Initializer.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1alpha1Initializer.to_strcCs|jS)z* For `print` and `pprint` )r$)rrrr__repr__szV1alpha1Initializer.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1alpha1Initializer.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr'rrr__ne__szV1alpha1Initializer.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrrrr$r%r(r)rrrrrs      r)r-pprintrsixrreobjectrrrrr s