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@seZdZdZd!ddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ eddZ e jddZ eddZ e jddZ ddZ ddZddZddZdd ZdS)"V1CephFSVolumeSourcezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsPddddddd|_dddd d d d|_||_||_||_||_||_||_d S) aJ V1CephFSVolumeSource - 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. z list[str]strboolV1LocalObjectReference)monitorspath read_only secret_file secret_refuserrr readOnlyZ secretFileZ secretRefr N) swagger_types attribute_map _monitors_path _read_only _secret_file _secret_ref_user)selfrr r r r r rb/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_ceph_fs_volume_source.py__init__s$   zV1CephFSVolumeSource.__init__cCs|jS)a, Gets the monitors of this V1CephFSVolumeSource. Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :return: The monitors of this V1CephFSVolumeSource. :rtype: list[str] )r)rrrrr:s zV1CephFSVolumeSource.monitorscCs|dkrtd||_dS)a3 Sets the monitors of this V1CephFSVolumeSource. Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :param monitors: The monitors of this V1CephFSVolumeSource. :type: list[str] Nz0Invalid value for `monitors`, must not be `None`) ValueErrorr)rrrrrrEs cCs|jS)z Gets the path of this V1CephFSVolumeSource. Optional: Used as the mounted root, rather than the full Ceph tree, default is / :return: The path of this V1CephFSVolumeSource. :rtype: str )r)rrrrr Ss zV1CephFSVolumeSource.pathcCs ||_dS)z Sets the path of this V1CephFSVolumeSource. Optional: Used as the mounted root, rather than the full Ceph tree, default is / :param path: The path of this V1CephFSVolumeSource. :type: str N)r)rr rrrr ^s cCs|jS)a^ Gets the read_only of this V1CephFSVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :return: The read_only of this V1CephFSVolumeSource. :rtype: bool )r)rrrrr js zV1CephFSVolumeSource.read_onlycCs ||_dS)af Sets the read_only of this V1CephFSVolumeSource. Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :param read_only: The read_only of this V1CephFSVolumeSource. :type: bool N)r)rr rrrr us cCs|jS)aP Gets the secret_file of this V1CephFSVolumeSource. Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :return: The secret_file of this V1CephFSVolumeSource. :rtype: str )r)rrrrr s z V1CephFSVolumeSource.secret_filecCs ||_dS)aZ Sets the secret_file of this V1CephFSVolumeSource. Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :param secret_file: The secret_file of this V1CephFSVolumeSource. :type: str N)r)rr rrrr s cCs|jS)ac Gets the secret_ref of this V1CephFSVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :return: The secret_ref of this V1CephFSVolumeSource. :rtype: V1LocalObjectReference )r)rrrrr s zV1CephFSVolumeSource.secret_refcCs ||_dS)al Sets the secret_ref of this V1CephFSVolumeSource. Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :param secret_ref: The secret_ref of this V1CephFSVolumeSource. :type: V1LocalObjectReference N)r)rr rrrr s cCs|jS)a" Gets the user of this V1CephFSVolumeSource. Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :return: The user of this V1CephFSVolumeSource. :rtype: str )r)rrrrr s zV1CephFSVolumeSource.usercCs ||_dS)a% Sets the user of this V1CephFSVolumeSource. Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it :param user: The user of this V1CephFSVolumeSource. :type: str 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.V1CephFSVolumeSource.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rrgetattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     zV1CephFSVolumeSource.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1CephFSVolumeSource.to_strcCs|jS)z* For `print` and `pprint` )r,)rrrr__repr__szV1CephFSVolumeSource.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r#r__dict__)rotherrrr__eq__s zV1CephFSVolumeSource.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr/rrr__ne__szV1CephFSVolumeSource.__ne__)NNNNNN)__name__ __module__ __qualname____doc__rpropertyrsetterr r r r r rr,r-r0r1rrrrrs& "        r)r5pprintrsixrreobjectrrrrr s