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)V1EnvVarzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS)a> V1EnvVar - 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. strV1EnvVarSource)namevalue value_fromrrZ valueFromN) swagger_types attribute_map_name_value _value_from)selfrrr rT/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_env_var.py__init__s   zV1EnvVar.__init__cCs|jS)z Gets the name of this V1EnvVar. Name of the environment variable. Must be a C_IDENTIFIER. :return: The name of this V1EnvVar. :rtype: str )r )rrrrr1s z V1EnvVar.namecCs|dkrtd||_dS)z Sets the name of this V1EnvVar. Name of the environment variable. Must be a C_IDENTIFIER. :param name: The name of this V1EnvVar. :type: str Nz,Invalid value for `name`, must not be `None`) ValueErrorr )rrrrrr<s cCs|jS)a  Gets the value of this V1EnvVar. Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". :return: The value of this V1EnvVar. :rtype: str )r )rrrrrJs zV1EnvVar.valuecCs ||_dS)a$ Sets the value of this V1EnvVar. Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". :param value: The value of this V1EnvVar. :type: str N)r )rrrrrrUs cCs|jS)z Gets the value_from of this V1EnvVar. Source for the environment variable's value. Cannot be used if value is not empty. :return: The value_from of this V1EnvVar. :rtype: V1EnvVarSource )r)rrrrr as zV1EnvVar.value_fromcCs ||_dS)z Sets the value_from of this V1EnvVar. Source for the environment variable's value. Cannot be used if value is not empty. :param value_from: The value_from of this V1EnvVar. :type: V1EnvVarSource N)r)rr rrrr ls 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"V1EnvVar.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_rrrrrxs     zV1EnvVar.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1EnvVar.to_strcCs|jS)z* For `print` and `pprint` )r#)rrrr__repr__szV1EnvVar.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1EnvVar.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr&rrr__ne__szV1EnvVar.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr rr#r$r'r(rrrrrs      r)r,pprintrsixrreobjectrrrrr s