VolumeArgs class
The set of arguments for Volume. The set of arguments for Volume.
Constructors
-
VolumeArgs({Input<
VolumeBackupConfig?> ? backupConfig, Input<List< ? blockDevices, Input<VolumeBlockDevice> ?>VolumeCacheParameters?> ? cacheParameters, required Input<String> capacityGib, Input<String?> ? deletionPolicy, Input<String?> ? description, Input<VolumeExportPolicy?> ? exportPolicy, Input<VolumeHybridReplicationParameters?> ? hybridReplicationParameters, Input<bool?> ? kerberosEnabled, Input<Map< ? labels, Input<String, String> ?>bool?> ? largeCapacity, Input<VolumeLargeCapacityConfig?> ? largeCapacityConfig, required Input<String> location, Input<bool?> ? multipleEndpoints, Input<String?> ? name, Input<String?> ? project, required Input<List< protocols, Input<String> >VolumeRestoreParameters?> ? restoreParameters, Input<List< ? restrictedActions, Input<String> ?>String?> ? securityStyle, Input<List< ? smbSettings, Input<String> ?>bool?> ? snapshotDirectory, Input<VolumeSnapshotPolicy?> ? snapshotPolicy, required Input<String> storagePool, Input<double?> ? throughputMibps, Input<VolumeTieringPolicy?> ? tieringPolicy, Input<String?> ? unixPermissions}) -
Creates a new VolumeArgs.
backupConfigBackup configuration for the volume.blockDevicesBlock device represents the device(s) which are stored in the block volume.cacheParametersCache parameters for the volume.capacityGibCapacity of the volume (in GiB).deletionPolicyPolicy to determine if the volume should be deleted forcefully.descriptionAn optional description of this resource.exportPolicyExport policy of the volume for NFSV3 and/or NFSV4.1 access. hybridReplicationParameters Volume migration andkerberosEnabledFlag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).labelsLabels as key value pairs. Example:{ "owner": "Bob", "department": "finance", "purpose": "testing" }.largeCapacityOptional. Flag indicating if the volume will be a large capacity volume or a regular volume.largeCapacityConfigConfiguration for a Large Capacity Volume. A Large Capacity VolumelocationName of the pool location. Usually a region name, expect for some STANDARD service level pools which require a zone name.multipleEndpointsOptional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints.nameThe name of the volume. Needs to be unique per location.projectThe ID of the project in which the resource belongs.protocolsThe protocol of the volume. Allowed combinations are['NFSV3'],['NFSV4'],['SMB'],['NFSV3', 'NFSV4'],['SMB', 'NFSV3']and['SMB', 'NFSV4'].restoreParametersUsed to create this volume from a snapshot (= cloning) or an backup.restrictedActionsList of actions that are restricted on this volume.securityStyleSecurity Style of the Volume. Use UNIX to use UNIX or NFSV4 ACLs for file permissions.shareNameShare name (SMB) or export path (NFS) of the volume. Needs to be unique per location.smbSettingsSettings for volumes with SMB access.snapshotDirectoryIf enabled, a NFS volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots. Will enable "Previous Versions" support for SMB.snapshotPolicySnapshot policy defines the schedule for automatic snapshot creation.storagePoolName of the storage pool to create the volume in. Pool needs enough spare capacity to accommodate the volume.throughputMibpsOptional. Custom Performance Total Throughput of the pool (in MiB/s).tieringPolicyTiering policy for the volume.unixPermissionsUnix permission the mount point will be created with. Default is 0770. Applicable for UNIX security style volumes only.const -
VolumeArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
backupConfig
→ Input<
VolumeBackupConfig?> ? -
Backup configuration for the volume.
Structure is documented below.
final
-
blockDevices
→ Input<
List< ?VolumeBlockDevice> ?> -
Block device represents the device(s) which are stored in the block volume.
Currently, only one block device is permitted per Volume.
Structure is documented below.
final
-
cacheParameters
→ Input<
VolumeCacheParameters?> ? -
Cache parameters for the volume.
Structure is documented below.
final
-
capacityGib
→ Input<
String> -
Capacity of the volume (in GiB).
final
-
deletionPolicy
→ Input<
String?> ? -
Policy to determine if the volume should be deleted forcefully.
Volumes may have nested snapshot resources. Deleting such a volume will fail.
Setting this parameter to FORCE will delete volumes including nested snapshots.
final
-
description
→ Input<
String?> ? -
An optional description of this resource.
final
-
exportPolicy
→ Input<
VolumeExportPolicy?> ? -
Export policy of the volume for NFSV3 and/or NFSV4.1 access.
Structure is documented below.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hybridReplicationParameters
→ Input<
VolumeHybridReplicationParameters?> ? -
Volume migration and
external replication
are two types of Hybrid Replication. This parameter block specifies the parameters for a hybrid replication.
Structure is documented below.
final
-
kerberosEnabled
→ Input<
bool?> ? -
Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).
final
-
labels
→ Input<
Map< ?String, String> ?> -
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.final -
largeCapacity
→ Input<
bool?> ? -
Optional. Flag indicating if the volume will be a large capacity volume or a regular volume.
final
-
largeCapacityConfig
→ Input<
VolumeLargeCapacityConfig?> ? -
Configuration for a Large Capacity Volume. A Large Capacity Volume
supports sizes ranging from 12 TiB to 20 PiB, it is composed of multiple
internal constituents, and must be created in a large capacity pool.
Structure is documented below.
final
-
location
→ Input<
String> -
Name of the pool location. Usually a region name, expect for some STANDARD service level pools which require a zone name.
final
-
multipleEndpoints
→ Input<
bool?> ? -
Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints.
Only the volume with largeCapacity will be allowed to have multiple endpoints.
final
-
name
→ Input<
String?> ? -
The name of the volume. Needs to be unique per location.
final
-
project
→ Input<
String?> ? -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
final
-
protocols
→ Input<
List< String> > -
The protocol of the volume. Allowed combinations are
['NFSV3'],['NFSV4'],['SMB'],['NFSV3', 'NFSV4'],['SMB', 'NFSV3']and['SMB', 'NFSV4']. Each value may be one of:NFSV3,NFSV4,SMB,ISCSI.final -
restoreParameters
→ Input<
VolumeRestoreParameters?> ? -
Used to create this volume from a snapshot (= cloning) or an backup.
Structure is documented below.
final
-
restrictedActions
→ Input<
List< ?String> ?> -
List of actions that are restricted on this volume.
Each value may be one of:
DELETE.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
securityStyle
→ Input<
String?> ? -
Security Style of the Volume. Use UNIX to use UNIX or NFSV4 ACLs for file permissions.
Use NTFS to use NTFS ACLs for file permissions. Can only be set for volumes which use SMB together with NFS as protocol.
Possible values are:
NTFS,UNIX.final -
Share name (SMB) or export path (NFS) of the volume. Needs to be unique per location.
final
-
smbSettings
→ Input<
List< ?String> ?> -
Settings for volumes with SMB access.
Each value may be one of:
ENCRYPT_DATA,BROWSABLE,CHANGE_NOTIFY,NON_BROWSABLE,OPLOCKS,SHOW_SNAPSHOT,SHOW_PREVIOUS_VERSIONS,ACCESS_BASED_ENUMERATION,CONTINUOUSLY_AVAILABLE.final -
snapshotDirectory
→ Input<
bool?> ? -
If enabled, a NFS volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots. Will enable "Previous Versions" support for SMB.
final
-
snapshotPolicy
→ Input<
VolumeSnapshotPolicy?> ? -
Snapshot policy defines the schedule for automatic snapshot creation.
To disable automatic snapshot creation you have to remove the whole snapshotPolicy block.
Structure is documented below.
final
-
storagePool
→ Input<
String> -
Name of the storage pool to create the volume in. Pool needs enough spare capacity to accommodate the volume.
final
-
throughputMibps
→ Input<
double?> ? -
Optional. Custom Performance Total Throughput of the pool (in MiB/s).
final
-
tieringPolicy
→ Input<
VolumeTieringPolicy?> ? -
Tiering policy for the volume.
Structure is documented below.
final
-
unixPermissions
→ Input<
String?> ? -
Unix permission the mount point will be created with. Default is 0770. Applicable for UNIX security style volumes only.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited