
    =                     >    S r SSKJr  SSKJr  SSKr " S S\5      rg)z
Kubernetes

No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.14.4

Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc            	          \ rS rSrSr SSSSSSSSS	.rS
SSSSSSSS	.r        S*S jr\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S  5       r\R                  S! 5       r\S" 5       r\R                  S# 5       rS$ rS% rS& rS' rS( rS)rg)+V1beta1Webhook   zk
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
z	list[str]/AdmissionregistrationV1beta1WebhookClientConfigstrV1LabelSelectorzlist[V1beta1RuleWithOperations]int)admission_review_versionsclient_configfailure_policynamenamespace_selectorrulesside_effectstimeout_secondsadmissionReviewVersionsclientConfigfailurePolicyr   namespaceSelectorr   sideEffectstimeoutSecondsNc	                    SU l         SU l        SU l        SU l        SU l        SU l        SU l        SU l        SU l        Ub  Xl	        X l
        Ub  X0l        X@l        Ub  XPl        Ub  X`l        Ub  Xpl        Ub  Xl        gg)z-
V1beta1Webhook - a model defined in Swagger
N)_admission_review_versions_client_config_failure_policy_name_namespace_selector_rules_side_effects_timeout_secondsdiscriminatorr   r   r   r   r   r   r   r   )	selfr   r   r   r   r   r   r   r   s	            ;lib/third_party/kubernetes/client/models/v1beta1_webhook.py__init__V1beta1Webhook.__init__4   s     '+D#DDDJ#DDKD DD ,'@$&!*I% 2j&", #    c                     U R                   $ )a  
Gets the admission_review_versions of this V1beta1Webhook.
AdmissionReviewVersions is an ordered list of preferred
`AdmissionReview` versions the Webhook expects. API server will try to
use first version in the list which it supports. If none of the versions
specified in this list supported by API server, validation will fail for
this object. If a persisted webhook configuration specifies allowed
versions and does not include any versions known to the API Server,
calls to the webhook will fail and be subject to the failure policy.
Default to `['v1beta1']`.

:return: The admission_review_versions of this V1beta1Webhook.
:rtype: list[str]
r   r$   s    r%   r   (V1beta1Webhook.admission_review_versionsZ   s      ***r(   c                     Xl         g)a  
Sets the admission_review_versions of this V1beta1Webhook.
AdmissionReviewVersions is an ordered list of preferred
`AdmissionReview` versions the Webhook expects. API server will try to
use first version in the list which it supports. If none of the versions
specified in this list supported by API server, validation will fail for
this object. If a persisted webhook configuration specifies allowed
versions and does not include any versions known to the API Server,
calls to the webhook will fail and be subject to the failure policy.
Default to `['v1beta1']`.

:param admission_review_versions: The admission_review_versions of this
V1beta1Webhook.
:type: list[str]
Nr*   )r$   r   s     r%   r   r,   l   s    $ '@#r(   c                     U R                   $ )z
Gets the client_config of this V1beta1Webhook.
ClientConfig defines how to communicate with the hook. Required

:return: The client_config of this V1beta1Webhook.
:rtype: AdmissionregistrationV1beta1WebhookClientConfig
)r   r+   s    r%   r   V1beta1Webhook.client_config   s     r(   c                 ,    Uc  [        S5      eXl        g)z
Sets the client_config of this V1beta1Webhook.
ClientConfig defines how to communicate with the hook. Required

:param client_config: The client_config of this V1beta1Webhook.
:type: AdmissionregistrationV1beta1WebhookClientConfig
Nz5Invalid value for `client_config`, must not be `None`)
ValueErrorr   )r$   r   s     r%   r   r/      s     NOO'r(   c                     U R                   $ )a  
Gets the failure_policy of this V1beta1Webhook.
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 V1beta1Webhook.
:rtype: str
r   r+   s    r%   r   V1beta1Webhook.failure_policy   s     r(   c                     Xl         g)a  
Sets the failure_policy of this V1beta1Webhook.
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 V1beta1Webhook.
:type: str
Nr3   )r$   r   s     r%   r   r4      s
     *r(   c                     U R                   $ )a/  
Gets the name of this V1beta1Webhook.
The name of the 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 V1beta1Webhook.
:rtype: str
)r   r+   s    r%   r   V1beta1Webhook.name   s     ::r(   c                 ,    Uc  [        S5      eXl        g)a2  
Sets the name of this V1beta1Webhook.
The name of the 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 V1beta1Webhook.
:type: str
Nz,Invalid value for `name`, must not be `None`)r1   r   )r$   r   s     r%   r   r7      s     |EFFJr(   c                     U R                   $ )a  
Gets the namespace_selector of this V1beta1Webhook.
NamespaceSelector decides whether to run the webhook on an object based
on whether the namespace for that object matches the selector. If the
object itself is a namespace, the matching is performed on
object.metadata.labels. If the object is another cluster scoped
resource, it never skips the webhook.  For example, to run the webhook
on any objects whose namespace is not associated with "runlevel" of
"0" or "1";  you will set the selector as follows:
"namespaceSelector": {   "matchExpressions": [     {       "key":
"runlevel",       "operator": "NotIn",       "values": [
"0",         "1"       ]     }   ] }  If instead you want to only
run the webhook on any objects whose namespace is associated with the
"environment" of "prod" or "staging"; you will set the selector as
follows: "namespaceSelector": {   "matchExpressions": [     {
"key": "environment",       "operator": "In",       "values":
[         "prod",         "staging"       ]     }   ] }  See
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
for more examples of label selectors.  Default to the empty
LabelSelector, which matches everything.

:return: The namespace_selector of this V1beta1Webhook.
:rtype: V1LabelSelector
r   r+   s    r%   r   !V1beta1Webhook.namespace_selector   s    4 ###r(   c                     Xl         g)a  
Sets the namespace_selector of this V1beta1Webhook.
NamespaceSelector decides whether to run the webhook on an object based
on whether the namespace for that object matches the selector. If the
object itself is a namespace, the matching is performed on
object.metadata.labels. If the object is another cluster scoped
resource, it never skips the webhook.  For example, to run the webhook
on any objects whose namespace is not associated with "runlevel" of
"0" or "1";  you will set the selector as follows:
"namespaceSelector": {   "matchExpressions": [     {       "key":
"runlevel",       "operator": "NotIn",       "values": [
"0",         "1"       ]     }   ] }  If instead you want to only
run the webhook on any objects whose namespace is associated with the
"environment" of "prod" or "staging"; you will set the selector as
follows: "namespaceSelector": {   "matchExpressions": [     {
"key": "environment",       "operator": "In",       "values":
[         "prod",         "staging"       ]     }   ] }  See
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
for more examples of label selectors.  Default to the empty
LabelSelector, which matches everything.

:param namespace_selector: The namespace_selector of this
V1beta1Webhook.
:type: V1LabelSelector
Nr:   )r$   r   s     r%   r   r;      s
    8  2r(   c                     U R                   $ )a  
Gets the rules of this V1beta1Webhook.
Rules describes what operations on what resources/subresources the
webhook cares about. The webhook cares about an operation if it matches
_any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and
MutatingAdmissionWebhooks from putting the cluster in a state which
cannot be recovered from without completely disabling the plugin,
ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never
called on admission requests for ValidatingWebhookConfiguration and
MutatingWebhookConfiguration objects.

:return: The rules of this V1beta1Webhook.
:rtype: list[V1beta1RuleWithOperations]
r    r+   s    r%   r   V1beta1Webhook.rules  s      ;;r(   c                     Xl         g)a  
Sets the rules of this V1beta1Webhook.
Rules describes what operations on what resources/subresources the
webhook cares about. The webhook cares about an operation if it matches
_any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and
MutatingAdmissionWebhooks from putting the cluster in a state which
cannot be recovered from without completely disabling the plugin,
ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never
called on admission requests for ValidatingWebhookConfiguration and
MutatingWebhookConfiguration objects.

:param rules: The rules of this V1beta1Webhook.
:type: list[V1beta1RuleWithOperations]
Nr>   )r$   r   s     r%   r   r?     s	    " Kr(   c                     U R                   $ )a+  
Gets the side_effects of this V1beta1Webhook.
SideEffects states whether this webhookk has side effects. Acceptable
values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects
MUST implement a reconciliation system, since a request may be rejected
by a future step in the admission change and the side effects therefore
need to be undone. Requests with the dryRun attribute will be
auto-rejected if they match a webhook with sideEffects == Unknown or
Some. Defaults to Unknown.

:return: The side_effects of this V1beta1Webhook.
:rtype: str
r!   r+   s    r%   r   V1beta1Webhook.side_effects0  s     r(   c                     Xl         g)a6  
Sets the side_effects of this V1beta1Webhook.
SideEffects states whether this webhookk has side effects. Acceptable
values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects
MUST implement a reconciliation system, since a request may be rejected
by a future step in the admission change and the side effects therefore
need to be undone. Requests with the dryRun attribute will be
auto-rejected if they match a webhook with sideEffects == Unknown or
Some. Defaults to Unknown.

:param side_effects: The side_effects of this V1beta1Webhook.
:type: str
NrB   )r$   r   s     r%   r   rC   A  s
      &r(   c                     U R                   $ )ah  
Gets the timeout_seconds of this V1beta1Webhook.
TimeoutSeconds specifies the timeout for this webhook. After the timeout
passes, the webhook call will be ignored or the API call will fail based
on the failure policy. The timeout value must be between 1 and 30
seconds. Default to 30 seconds.

:return: The timeout_seconds of this V1beta1Webhook.
:rtype: int
r"   r+   s    r%   r   V1beta1Webhook.timeout_secondsS  s        r(   c                     Xl         g)av  
Sets the timeout_seconds of this V1beta1Webhook.
TimeoutSeconds specifies the timeout for this webhook. After the timeout
passes, the webhook call will be ignored or the API call will fail based
on the failure policy. The timeout value must be between 1 and 30
seconds. Default to 30 seconds.

:param timeout_seconds: The timeout_seconds of this V1beta1Webhook.
:type: int
NrF   )r$   r   s     r%   r   rG   a  s
     ,r(   c                    0 n[        U R                  5       H  u  p#[        X5      n[        U[        5      (       a  [	        [        S U5      5      X'   M?  [        US5      (       a  UR                  5       X'   Md  [        U[        5      (       a(  [        [        S UR                  5       5      5      X'   M  XAU'   M     U$ )z(
Returns the model properties as a dict
c                 H    [        U S5      (       a  U R                  5       $ U $ )Nto_dicthasattrrK   )xs    r%   <lambda>(V1beta1Webhook.to_dict.<locals>.<lambda>z  s    I)>)>!))+EAEr(   rK   c                 ^    [        U S   S5      (       a  U S   U S   R                  5       4$ U $ )N   rK   r   rL   )items    r%   rO   rP     s9    47I.. #1gtAw'89 9489r(   )
r   swagger_typesgetattr
isinstancelistmaprM   rK   dictitems)r$   resultattr_values        r%   rK   V1beta1Webhook.to_dictp  s     FT//0d!e	E4	 	 EuMO5)$$}}eT""9:?++-IJ
 t 1 Mr(   c                 4    [        U R                  5       5      $ )z0
Returns the string representation of the model
)r   rK   r+   s    r%   to_strV1beta1Webhook.to_str  s     4<<>""r(   c                 "    U R                  5       $ )z
For `print` and `pprint`
)ra   r+   s    r%   __repr__V1beta1Webhook.__repr__  s     ;;=r(   c                 `    [        U[        5      (       d  gU R                  UR                  :H  $ )z(
Returns true if both objects are equal
F)rV   r   __dict__r$   others     r%   __eq__V1beta1Webhook.__eq__  s'     e^,,==ENN**r(   c                     X:X  + $ )z,
Returns true if both objects are not equal
 rh   s     r%   __ne__V1beta1Webhook.__ne__  s     r(   )r   r   r   r   r   r    r!   r"   r   r   r#   r   r   r   r   r   r   )NNNNNNNN)__name__
__module____qualname____firstlineno____doc__rT   attribute_mapr&   propertyr   setterr   r   r   r   r   r   r   rK   ra   rd   rj   rn   __static_attributes__rm   r(   r%   r   r      s    $/H-0	- $=%'/#)	- *.!""& #$-L + +" ##@ $@&   ( ( 
  
  * * 
 
 ;;  $ $6 2 2:  " 	<< $    & &" ! ! , ,.#+r(   r   )rt   pprintr   sixr   reobjectr   rm   r(   r%   <module>r}      s#   	   	NV Nr(   