Ejemplo n.º 1
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: https://kubernetes.io/docs/concepts/storage/volumes#rbd.</param>
 /// <param name="Image">The rados image name. More info: https://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: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.</param>
 /// <param name="Monitors">A collection of Ceph monitors. More info: https://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: https://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: https://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: https://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: https://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;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1ISCSIVolumeSource" /> class.
 /// </summary>
 /// <param name="ChapAuthDiscovery">whether support iSCSI Discovery CHAP authentication.</param>
 /// <param name="ChapAuthSession">whether support iSCSI Session CHAP authentication.</param>
 /// <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: https://kubernetes.io/docs/concepts/storage/volumes#iscsi.</param>
 /// <param name="Iqn">Target iSCSI Qualified Name. (required).</param>
 /// <param name="IscsiInterface">Optional: Defaults to &#39;default&#39; (tcp). iSCSI interface name that uses an iSCSI transport..</param>
 /// <param name="Lun">iSCSI target lun number. (required).</param>
 /// <param name="Portals">iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)..</param>
 /// <param name="_ReadOnly">ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false..</param>
 /// <param name="SecretRef">CHAP secret for iSCSI target and initiator authentication.</param>
 /// <param name="TargetPortal">iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). (required).</param>
 public V1ISCSIVolumeSource(bool?ChapAuthDiscovery = default(bool?), bool?ChapAuthSession = default(bool?), string FsType = default(string), string Iqn = default(string), string IscsiInterface = default(string), int?Lun = default(int?), List <string> Portals = default(List <string>), bool?_ReadOnly = default(bool?), V1LocalObjectReference SecretRef = default(V1LocalObjectReference), string TargetPortal = default(string))
 {
     // to ensure "Iqn" is required (not null)
     if (Iqn == null)
     {
         throw new InvalidDataException("Iqn is a required property for V1ISCSIVolumeSource and cannot be null");
     }
     else
     {
         this.Iqn = Iqn;
     }
     // to ensure "Lun" is required (not null)
     if (Lun == null)
     {
         throw new InvalidDataException("Lun is a required property for V1ISCSIVolumeSource and cannot be null");
     }
     else
     {
         this.Lun = Lun;
     }
     // to ensure "TargetPortal" is required (not null)
     if (TargetPortal == null)
     {
         throw new InvalidDataException("TargetPortal is a required property for V1ISCSIVolumeSource and cannot be null");
     }
     else
     {
         this.TargetPortal = TargetPortal;
     }
     this.ChapAuthDiscovery = ChapAuthDiscovery;
     this.ChapAuthSession   = ChapAuthSession;
     this.FsType            = FsType;
     this.IscsiInterface    = IscsiInterface;
     this.Portals           = Portals;
     this._ReadOnly         = _ReadOnly;
     this.SecretRef         = SecretRef;
 }
Ejemplo n.º 3
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;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1StorageOSVolumeSource" /> class.
 /// </summary>
 /// <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;. Implicitly inferred to be \&quot;ext4\&quot; if unspecified..</param>
 /// <param name="_ReadOnly">Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts..</param>
 /// <param name="SecretRef">SecretRef specifies the secret to use for obtaining the StorageOS API credentials.  If not specified, default values will be attempted..</param>
 /// <param name="VolumeName">VolumeName is the human-readable name of the StorageOS volume.  Volume names are only unique within a namespace..</param>
 /// <param name="VolumeNamespace">VolumeNamespace specifies the scope of the volume within StorageOS.  If no namespace is specified then the Pod&#39;s namespace will be used.  This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \&quot;default\&quot; if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created..</param>
 public V1StorageOSVolumeSource(string FsType = default(string), bool?_ReadOnly = default(bool?), V1LocalObjectReference SecretRef = default(V1LocalObjectReference), string VolumeName = default(string), string VolumeNamespace = default(string))
 {
     this.FsType          = FsType;
     this._ReadOnly       = _ReadOnly;
     this.SecretRef       = SecretRef;
     this.VolumeName      = VolumeName;
     this.VolumeNamespace = VolumeNamespace;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1ScaleIOVolumeSource" /> class.
 /// </summary>
 /// <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;. Implicitly inferred to be \&quot;ext4\&quot; if unspecified..</param>
 /// <param name="Gateway">The host address of the ScaleIO API Gateway. (required).</param>
 /// <param name="ProtectionDomain">The name of the Protection Domain for the configured storage (defaults to \&quot;default\&quot;)..</param>
 /// <param name="_ReadOnly">Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts..</param>
 /// <param name="SecretRef">SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. (required).</param>
 /// <param name="SslEnabled">Flag to enable/disable SSL communication with Gateway, default false.</param>
 /// <param name="StorageMode">Indicates whether the storage for a volume should be thick or thin (defaults to \&quot;thin\&quot;)..</param>
 /// <param name="StoragePool">The Storage Pool associated with the protection domain (defaults to \&quot;default\&quot;)..</param>
 /// <param name="System">The name of the storage system as configured in ScaleIO. (required).</param>
 /// <param name="VolumeName">The name of a volume already created in the ScaleIO system that is associated with this volume source..</param>
 public V1ScaleIOVolumeSource(string FsType = default(string), string Gateway = default(string), string ProtectionDomain = default(string), bool?_ReadOnly = default(bool?), V1LocalObjectReference SecretRef = default(V1LocalObjectReference), bool?SslEnabled = default(bool?), string StorageMode = default(string), string StoragePool = default(string), string System = default(string), string VolumeName = default(string))
 {
     // to ensure "Gateway" is required (not null)
     if (Gateway == null)
     {
         throw new InvalidDataException("Gateway is a required property for V1ScaleIOVolumeSource and cannot be null");
     }
     else
     {
         this.Gateway = Gateway;
     }
     // to ensure "SecretRef" is required (not null)
     if (SecretRef == null)
     {
         throw new InvalidDataException("SecretRef is a required property for V1ScaleIOVolumeSource and cannot be null");
     }
     else
     {
         this.SecretRef = SecretRef;
     }
     // to ensure "System" is required (not null)
     if (System == null)
     {
         throw new InvalidDataException("System is a required property for V1ScaleIOVolumeSource and cannot be null");
     }
     else
     {
         this.System = System;
     }
     this.FsType           = FsType;
     this.ProtectionDomain = ProtectionDomain;
     this._ReadOnly        = _ReadOnly;
     this.SslEnabled       = SslEnabled;
     this.StorageMode      = StorageMode;
     this.StoragePool      = StoragePool;
     this.VolumeName       = VolumeName;
 }
Ejemplo n.º 6
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: https://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: https://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: https://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: https://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: https://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;
 }