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 ddZ ddZ ddZ ddZ ddZdS)V1beta1IngressSpeczw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS) aH V1beta1IngressSpec - 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. V1beta1IngressBackendzlist[V1beta1IngressRule]zlist[V1beta1IngressTLS])backendrulestlsrrrN) swagger_types attribute_map_backend_rules_tls)selfrrrr^/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1beta1_ingress_spec.py__init__s   zV1beta1IngressSpec.__init__cCs|jS)a Gets the backend of this V1beta1IngressSpec. A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. :return: The backend of this V1beta1IngressSpec. :rtype: V1beta1IngressBackend )r )rrrrr1s zV1beta1IngressSpec.backendcCs ||_dS)a Sets the backend of this V1beta1IngressSpec. A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. :param backend: The backend of this V1beta1IngressSpec. :type: V1beta1IngressBackend N)r )rrrrrr<s cCs|jS)a) Gets the rules of this V1beta1IngressSpec. A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. :return: The rules of this V1beta1IngressSpec. :rtype: list[V1beta1IngressRule] )r )rrrrrHs zV1beta1IngressSpec.rulescCs ||_dS)a- Sets the rules of this V1beta1IngressSpec. A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. :param rules: The rules of this V1beta1IngressSpec. :type: list[V1beta1IngressRule] N)r )rrrrrrSs cCs|jS)a Gets the tls of this V1beta1IngressSpec. TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. :return: The tls of this V1beta1IngressSpec. :rtype: list[V1beta1IngressTLS] )r )rrrrr_s zV1beta1IngressSpec.tlscCs ||_dS)a Sets the tls of this V1beta1IngressSpec. TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. :param tls: The tls of this V1beta1IngressSpec. :type: list[V1beta1IngressTLS] N)r )rrrrrrjs 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,V1beta1IngressSpec.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrvs     zV1beta1IngressSpec.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1beta1IngressSpec.to_strcCs|jS)z* For `print` and `pprint` )r")rrrr__repr__szV1beta1IngressSpec.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1beta1IngressSpec.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr%rrr__ne__szV1beta1IngressSpec.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrrrr"r#r&r'rrrrrs      r)r+pprintrsixrreobjectrrrrr s