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)V1EnvVarSourcezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<ddddd|_dddd d|_||_||_||_||_d S) aD V1EnvVarSource - 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. V1ConfigMapKeySelectorV1ObjectFieldSelectorV1ResourceFieldSelectorV1SecretKeySelector)config_map_key_ref field_refresource_field_refsecret_key_refZconfigMapKeyReffieldRefresourceFieldRefZ secretKeyRefN) swagger_types attribute_map_config_map_key_ref _field_ref_resource_field_ref_secret_key_ref)selfr r r r r[/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_env_var_source.py__init__s   zV1EnvVarSource.__init__cCs|jS)z Gets the config_map_key_ref of this V1EnvVarSource. Selects a key of a ConfigMap. :return: The config_map_key_ref of this V1EnvVarSource. :rtype: V1ConfigMapKeySelector )r)rrrrr 4s z!V1EnvVarSource.config_map_key_refcCs ||_dS)z Sets the config_map_key_ref of this V1EnvVarSource. Selects a key of a ConfigMap. :param config_map_key_ref: The config_map_key_ref of this V1EnvVarSource. :type: V1ConfigMapKeySelector N)r)rr rrrr ?s cCs|jS)aV Gets the field_ref of this V1EnvVarSource. Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. :return: The field_ref of this V1EnvVarSource. :rtype: V1ObjectFieldSelector )r)rrrrr Ks zV1EnvVarSource.field_refcCs ||_dS)a^ Sets the field_ref of this V1EnvVarSource. Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. :param field_ref: The field_ref of this V1EnvVarSource. :type: V1ObjectFieldSelector N)r)rr rrrr Vs cCs|jS)aU Gets the resource_field_ref of this V1EnvVarSource. Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. :return: The resource_field_ref of this V1EnvVarSource. :rtype: V1ResourceFieldSelector )r)rrrrr bs z!V1EnvVarSource.resource_field_refcCs ||_dS)af Sets the resource_field_ref of this V1EnvVarSource. Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. :param resource_field_ref: The resource_field_ref of this V1EnvVarSource. :type: V1ResourceFieldSelector N)r)rr rrrr ms cCs|jS)z Gets the secret_key_ref of this V1EnvVarSource. Selects a key of a secret in the pod's namespace :return: The secret_key_ref of this V1EnvVarSource. :rtype: V1SecretKeySelector )r)rrrrr ys zV1EnvVarSource.secret_key_refcCs ||_dS)z Sets the secret_key_ref of this V1EnvVarSource. Selects a key of a secret in the pod's namespace :param secret_key_ref: The secret_key_ref of this V1EnvVarSource. :type: V1SecretKeySelector 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)xrrrsz(V1EnvVarSource.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rrgetattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     zV1EnvVarSource.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1EnvVarSource.to_strcCs|jS)z* For `print` and `pprint` )r))rrrr__repr__szV1EnvVarSource.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r r__dict__)rotherrrr__eq__s zV1EnvVarSource.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr,rrr__ne__szV1EnvVarSource.__ne__)NNNN)__name__ __module__ __qualname____doc__rpropertyr setterr r r rr)r*r-r.rrrrrs       r)r2pprintrsixrreobjectrrrrr s