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)V1GitRepoVolumeSourcezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS)aK V1GitRepoVolumeSource - 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. str) directory repositoryrevisionrrrN) swagger_types attribute_map _directory _repository _revision)selfrrrrc/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_git_repo_volume_source.py__init__s   zV1GitRepoVolumeSource.__init__cCs|jS)a Gets the directory of this V1GitRepoVolumeSource. Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. :return: The directory of this V1GitRepoVolumeSource. :rtype: str )r )rrrrr1s zV1GitRepoVolumeSource.directorycCs ||_dS)a Sets the directory of this V1GitRepoVolumeSource. Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. :param directory: The directory of this V1GitRepoVolumeSource. :type: str N)r )rrrrrr<s cCs|jS)z Gets the repository of this V1GitRepoVolumeSource. Repository URL :return: The repository of this V1GitRepoVolumeSource. :rtype: str )r )rrrrrHs z V1GitRepoVolumeSource.repositorycCs|dkrtd||_dS)z Sets the repository of this V1GitRepoVolumeSource. Repository URL :param repository: The repository of this V1GitRepoVolumeSource. :type: str Nz2Invalid value for `repository`, must not be `None`) ValueErrorr )rrrrrrSs cCs|jS)z Gets the revision of this V1GitRepoVolumeSource. Commit hash for the specified revision. :return: The revision of this V1GitRepoVolumeSource. :rtype: str )r )rrrrras zV1GitRepoVolumeSource.revisioncCs ||_dS)z Sets the revision of this V1GitRepoVolumeSource. Commit hash for the specified revision. :param revision: The revision of this V1GitRepoVolumeSource. :type: str 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/V1GitRepoVolumeSource.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrxs     zV1GitRepoVolumeSource.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1GitRepoVolumeSource.to_strcCs|jS)z* For `print` and `pprint` )r#)rrrr__repr__szV1GitRepoVolumeSource.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1GitRepoVolumeSource.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr&rrr__ne__szV1GitRepoVolumeSource.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrrrr#r$r'r(rrrrrs      r)r,pprintrsixrreobjectrrrrr s