/// <summary>
 /// Initializes a new instance of the V1CinderPersistentVolumeSource
 /// class.
 /// </summary>
 /// <param name="volumeID">volume id used to identify the volume in
 /// cinder More info:
 /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
 /// <param name="fsType">Filesystem type to mount. Must be a filesystem
 /// type supported by the host operating system. Examples: "ext4",
 /// "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
 /// More info:
 /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
 /// <param name="readOnlyProperty">Optional: Defaults to false
 /// (read/write). ReadOnly here will force the ReadOnly setting in
 /// VolumeMounts. More info:
 /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
 /// <param name="secretRef">Optional: points to a secret object
 /// containing parameters used to connect to OpenStack.</param>
 public V1CinderPersistentVolumeSource(string volumeID, string fsType = default(string), bool?readOnlyProperty = default(bool?), V1SecretReference secretRef = default(V1SecretReference))
 {
     FsType           = fsType;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     VolumeID         = volumeID;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the V1FlexPersistentVolumeSource
 /// class.
 /// </summary>
 /// <param name="driver">Driver is the name of the driver to use for
 /// this volume.</param>
 /// <param name="fsType">Filesystem type to mount. Must be a filesystem
 /// type supported by the host operating system. Ex. "ext4", "xfs",
 /// "ntfs". The default filesystem depends on FlexVolume
 /// script.</param>
 /// <param name="options">Optional: Extra command options if
 /// any.</param>
 /// <param name="readOnlyProperty">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 V1FlexPersistentVolumeSource(string driver, string fsType = default(string), IDictionary <string, string> options = default(IDictionary <string, string>), bool?readOnlyProperty = default(bool?), V1SecretReference secretRef = default(V1SecretReference))
 {
     Driver           = driver;
     FsType           = fsType;
     Options          = options;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V1CephFSPersistentVolumeSource
 /// 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</param>
 /// <param name="path">Optional: Used as the mounted root, rather than
 /// the full Ceph tree, default is /</param>
 /// <param name="readOnlyProperty">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 V1CephFSPersistentVolumeSource(IList <string> monitors, string path = default(string), bool?readOnlyProperty = default(bool?), string secretFile = default(string), V1SecretReference secretRef = default(V1SecretReference), string user = default(string))
 {
     Monitors         = monitors;
     Path             = path;
     ReadOnlyProperty = readOnlyProperty;
     SecretFile       = secretFile;
     SecretRef        = secretRef;
     User             = user;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V1CSIPersistentVolumeSource
 /// class.
 /// </summary>
 /// <param name="driver">Driver is the name of the driver to use for
 /// this volume. Required.</param>
 /// <param name="volumeHandle">VolumeHandle is the unique volume name
 /// returned by the CSI volume plugin’s CreateVolume to refer to the
 /// volume on all subsequent calls. Required.</param>
 /// <param name="controllerPublishSecretRef">ControllerPublishSecretRef
 /// is a reference to the secret object containing sensitive
 /// information to pass to the CSI driver to complete the CSI
 /// ControllerPublishVolume and ControllerUnpublishVolume calls. This
 /// field is optional, and may be empty if no secret is required. If
 /// the secret object contains more than one secret, all secrets are
 /// passed.</param>
 /// <param name="fsType">Filesystem type to mount. Must be a filesystem
 /// type supported by the host operating system. Ex. "ext4", "xfs",
 /// "ntfs".</param>
 /// <param name="nodePublishSecretRef">NodePublishSecretRef is a
 /// reference to the secret object containing sensitive information to
 /// pass to the CSI driver to complete the CSI NodePublishVolume and
 /// NodeUnpublishVolume calls. This field is optional, and may be empty
 /// if no secret is required. If the secret object contains more than
 /// one secret, all secrets are passed.</param>
 /// <param name="nodeStageSecretRef">NodeStageSecretRef is a reference
 /// to the secret object containing sensitive information to pass to
 /// the CSI driver to complete the CSI NodeStageVolume and
 /// NodeStageVolume and NodeUnstageVolume calls. This field is
 /// optional, and may be empty if no secret is required. If the secret
 /// object contains more than one secret, all secrets are
 /// passed.</param>
 /// <param name="readOnlyProperty">Optional: The value to pass to
 /// ControllerPublishVolumeRequest. Defaults to false
 /// (read/write).</param>
 /// <param name="volumeAttributes">Attributes of the volume to
 /// publish.</param>
 public V1CSIPersistentVolumeSource(string driver, string volumeHandle, V1SecretReference controllerPublishSecretRef = default(V1SecretReference), string fsType = default(string), V1SecretReference nodePublishSecretRef = default(V1SecretReference), V1SecretReference nodeStageSecretRef = default(V1SecretReference), bool?readOnlyProperty = default(bool?), IDictionary <string, string> volumeAttributes = default(IDictionary <string, string>))
 {
     ControllerPublishSecretRef = controllerPublishSecretRef;
     Driver = driver;
     FsType = fsType;
     NodePublishSecretRef = nodePublishSecretRef;
     NodeStageSecretRef   = nodeStageSecretRef;
     ReadOnlyProperty     = readOnlyProperty;
     VolumeAttributes     = volumeAttributes;
     VolumeHandle         = volumeHandle;
     CustomInit();
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the V1RBDPersistentVolumeSource
 /// class.
 /// </summary>
 /// <param name="image">The rados image name. 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</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: "ext4", "xfs", "ntfs". Implicitly
 /// inferred to be "ext4" if unspecified. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#rbd</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="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="readOnlyProperty">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 V1RBDPersistentVolumeSource(string image, IList <string> monitors, string fsType = default(string), string keyring = default(string), string pool = default(string), bool?readOnlyProperty = default(bool?), V1SecretReference secretRef = default(V1SecretReference), string user = default(string))
 {
     FsType           = fsType;
     Image            = image;
     Keyring          = keyring;
     Monitors         = monitors;
     Pool             = pool;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     User             = user;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V1ScaleIOPersistentVolumeSource
 /// class.
 /// </summary>
 /// <param name="gateway">The host address of the ScaleIO API
 /// Gateway.</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.</param>
 /// <param name="system">The name of the storage system as configured
 /// in ScaleIO.</param>
 /// <param name="fsType">Filesystem type to mount. Must be a filesystem
 /// type supported by the host operating system. Ex. "ext4", "xfs",
 /// "ntfs". Default is "xfs"</param>
 /// <param name="protectionDomain">The name of the ScaleIO Protection
 /// Domain for the configured storage.</param>
 /// <param name="readOnlyProperty">Defaults to false (read/write).
 /// ReadOnly here will force the ReadOnly setting in
 /// VolumeMounts.</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 ThickProvisioned or ThinProvisioned. Default is
 /// ThinProvisioned.</param>
 /// <param name="storagePool">The ScaleIO Storage Pool associated with
 /// the protection domain.</param>
 /// <param name="volumeName">The name of a volume already created in
 /// the ScaleIO system that is associated with this volume
 /// source.</param>
 public V1ScaleIOPersistentVolumeSource(string gateway, V1SecretReference secretRef, string system, string fsType = default(string), string protectionDomain = default(string), bool?readOnlyProperty = default(bool?), bool?sslEnabled = default(bool?), string storageMode = default(string), string storagePool = default(string), string volumeName = default(string))
 {
     FsType           = fsType;
     Gateway          = gateway;
     ProtectionDomain = protectionDomain;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     SslEnabled       = sslEnabled;
     StorageMode      = storageMode;
     StoragePool      = storagePool;
     System           = system;
     VolumeName       = volumeName;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V1ISCSIPersistentVolumeSource
 /// class.
 /// </summary>
 /// <param name="iqn">Target iSCSI Qualified Name.</param>
 /// <param name="lun">iSCSI Target Lun number.</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).</param>
 /// <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: "ext4", "xfs", "ntfs". Implicitly
 /// inferred to be "ext4" if unspecified. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#iscsi</param>
 /// <param name="initiatorName">Custom iSCSI Initiator Name. If
 /// initiatorName is specified with iscsiInterface simultaneously, new
 /// iSCSI interface &lt;target portal&gt;:&lt;volume name&gt; will be
 /// created for the connection.</param>
 /// <param name="iscsiInterface">iSCSI Interface Name that uses an
 /// iSCSI transport. Defaults to 'default' (tcp).</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="readOnlyProperty">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>
 public V1ISCSIPersistentVolumeSource(string iqn, int lun, string targetPortal, bool?chapAuthDiscovery = default(bool?), bool?chapAuthSession = default(bool?), string fsType = default(string), string initiatorName = default(string), string iscsiInterface = default(string), IList <string> portals = default(IList <string>), bool?readOnlyProperty = default(bool?), V1SecretReference secretRef = default(V1SecretReference))
 {
     ChapAuthDiscovery = chapAuthDiscovery;
     ChapAuthSession   = chapAuthSession;
     FsType            = fsType;
     InitiatorName     = initiatorName;
     Iqn              = iqn;
     IscsiInterface   = iscsiInterface;
     Lun              = lun;
     Portals          = portals;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     TargetPortal     = targetPortal;
     CustomInit();
 }