Пример #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// Iok8sapicorev1StorageOSVolumeSource class.
 /// </summary>
 /// <param name="fsType">Filesystem type to mount. Must be a filesystem
 /// type supported by the host operating system. Ex. "ext4", "xfs",
 /// "ntfs". Implicitly inferred to be "ext4" if unspecified.</param>
 /// <param name="readOnlyProperty">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'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 "default" if you are not using namespaces within StorageOS.
 /// Namespaces that do not pre-exist within StorageOS will be
 /// created.</param>
 public Iok8sapicorev1StorageOSVolumeSource(string fsType = default(string), bool?readOnlyProperty = default(bool?), Iok8sapicorev1LocalObjectReference secretRef = default(Iok8sapicorev1LocalObjectReference), string volumeName = default(string), string volumeNamespace = default(string))
 {
     FsType           = fsType;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     VolumeName       = volumeName;
     VolumeNamespace  = volumeNamespace;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Iok8sapicorev1FlexVolumeSource
 /// 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 Iok8sapicorev1FlexVolumeSource(string driver, string fsType = default(string), IDictionary <string, string> options = default(IDictionary <string, string>), bool?readOnlyProperty = default(bool?), Iok8sapicorev1LocalObjectReference secretRef = default(Iok8sapicorev1LocalObjectReference))
 {
     Driver           = driver;
     FsType           = fsType;
     Options          = options;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Iok8sapicorev1CephFSVolumeSource
 /// 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 Iok8sapicorev1CephFSVolumeSource(IList <string> monitors, string path = default(string), bool?readOnlyProperty = default(bool?), string secretFile = default(string), Iok8sapicorev1LocalObjectReference secretRef = default(Iok8sapicorev1LocalObjectReference), string user = default(string))
 {
     Monitors         = monitors;
     Path             = path;
     ReadOnlyProperty = readOnlyProperty;
     SecretFile       = secretFile;
     SecretRef        = secretRef;
     User             = user;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Iok8sapicorev1RBDVolumeSource
 /// 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 Iok8sapicorev1RBDVolumeSource(string image, IList <string> monitors, string fsType = default(string), string keyring = default(string), string pool = default(string), bool?readOnlyProperty = default(bool?), Iok8sapicorev1LocalObjectReference secretRef = default(Iok8sapicorev1LocalObjectReference), string user = default(string))
 {
     FsType           = fsType;
     Image            = image;
     Keyring          = keyring;
     Monitors         = monitors;
     Pool             = pool;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     User             = user;
     CustomInit();
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the Iok8sapicorev1ScaleIOVolumeSource
 /// 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". Implicitly inferred to be "ext4" if unspecified.</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.</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 Iok8sapicorev1ScaleIOVolumeSource(string gateway, Iok8sapicorev1LocalObjectReference 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 Iok8sapicorev1ISCSIVolumeSource
 /// 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 Iok8sapicorev1ISCSIVolumeSource(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?), Iok8sapicorev1LocalObjectReference secretRef = default(Iok8sapicorev1LocalObjectReference))
 {
     ChapAuthDiscovery = chapAuthDiscovery;
     ChapAuthSession   = chapAuthSession;
     FsType            = fsType;
     InitiatorName     = initiatorName;
     Iqn              = iqn;
     IscsiInterface   = iscsiInterface;
     Lun              = lun;
     Portals          = portals;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     TargetPortal     = targetPortal;
     CustomInit();
 }