Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1CephFSVolumeSource" /> class.
 /// </summary>
 /// <param name="Monitors">Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it (required).</param>
 /// <param name="Path">Optional: Used as the mounted root, rather than the full Ceph tree, default is /.</param>
 /// <param name="_ReadOnly">Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it.</param>
 /// <param name="SecretFile">Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it.</param>
 /// <param name="SecretRef">Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it.</param>
 /// <param name="User">Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it.</param>
 public V1CephFSVolumeSource(List <string> Monitors = default(List <string>), string Path = default(string), bool?_ReadOnly = default(bool?), string SecretFile = default(string), V1LocalObjectReference SecretRef = default(V1LocalObjectReference), string User = default(string))
 {
     // to ensure "Monitors" is required (not null)
     if (Monitors == null)
     {
         throw new InvalidDataException("Monitors is a required property for V1CephFSVolumeSource and cannot be null");
     }
     else
     {
         this.Monitors = Monitors;
     }
     this.Path       = Path;
     this._ReadOnly  = _ReadOnly;
     this.SecretFile = SecretFile;
     this.SecretRef  = SecretRef;
     this.User       = User;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1FlexVolumeSource" /> class.
 /// </summary>
 /// <param name="Driver">Driver is the name of the driver to use for this volume. (required).</param>
 /// <param name="FsType">Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \&quot;ext4\&quot;, \&quot;xfs\&quot;, \&quot;ntfs\&quot;. The default filesystem depends on FlexVolume script..</param>
 /// <param name="Options">Optional: Extra command options if any..</param>
 /// <param name="_ReadOnly">Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts..</param>
 /// <param name="SecretRef">Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts..</param>
 public V1FlexVolumeSource(string Driver = default(string), string FsType = default(string), Dictionary <string, string> Options = default(Dictionary <string, string>), bool?_ReadOnly = default(bool?), V1LocalObjectReference SecretRef = default(V1LocalObjectReference))
 {
     // to ensure "Driver" is required (not null)
     if (Driver == null)
     {
         throw new InvalidDataException("Driver is a required property for V1FlexVolumeSource and cannot be null");
     }
     else
     {
         this.Driver = Driver;
     }
     this.FsType    = FsType;
     this.Options   = Options;
     this._ReadOnly = _ReadOnly;
     this.SecretRef = SecretRef;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1RBDVolumeSource" /> class.
 /// </summary>
 /// <param name="FsType">Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \&quot;ext4\&quot;, \&quot;xfs\&quot;, \&quot;ntfs\&quot;. Implicitly inferred to be \&quot;ext4\&quot; if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#rbd.</param>
 /// <param name="Image">The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it (required).</param>
 /// <param name="Keyring">Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.</param>
 /// <param name="Monitors">A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it (required).</param>
 /// <param name="Pool">The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it..</param>
 /// <param name="_ReadOnly">ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.</param>
 /// <param name="SecretRef">SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.</param>
 /// <param name="User">The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.</param>
 public V1RBDVolumeSource(string FsType = default(string), string Image = default(string), string Keyring = default(string), List <string> Monitors = default(List <string>), string Pool = default(string), bool?_ReadOnly = default(bool?), V1LocalObjectReference SecretRef = default(V1LocalObjectReference), string User = default(string))
 {
     // to ensure "Image" is required (not null)
     if (Image == null)
     {
         throw new InvalidDataException("Image is a required property for V1RBDVolumeSource and cannot be null");
     }
     else
     {
         this.Image = Image;
     }
     // to ensure "Monitors" is required (not null)
     if (Monitors == null)
     {
         throw new InvalidDataException("Monitors is a required property for V1RBDVolumeSource and cannot be null");
     }
     else
     {
         this.Monitors = Monitors;
     }
     this.FsType    = FsType;
     this.Keyring   = Keyring;
     this.Pool      = Pool;
     this._ReadOnly = _ReadOnly;
     this.SecretRef = SecretRef;
     this.User      = User;
 }