ConoHaNet.Objects.BlockStorage.CreateCloudBlockStorageVolumeDetails.CreateCloudBlockStorageVolumeDetails C# (CSharp) Method

CreateCloudBlockStorageVolumeDetails() public method

Initializes a new instance of the CreateCloudBlockStorageVolumeDetails class.
If is less than or equal to zero.
public CreateCloudBlockStorageVolumeDetails ( int size, string sourceVolumeId, string description, string name, string snapshotId, string volumeType, string imageRef ) : System
size int The size of the volume in GB.
sourceVolumeId string
description string A description of the volume.
name string The name of the volume.
snapshotId string The snapshot from which to create a volume. The value should be or obtained from Snapshot.Id.
volumeType string The type of volume to create. If not defined, then the default is used. The value should be or obtained from VolumeType.Id.
imageRef string
return System
        public CreateCloudBlockStorageVolumeDetails(int size, string sourceVolumeId, string description, string name, string snapshotId, string volumeType, string imageRef)
        {
            if (size <= 0)
                throw new ArgumentOutOfRangeException("size");

            SourceVolumeId = sourceVolumeId;
            Size = size;
            Description = description;
            Name = name;
            SnapshotId = snapshotId;
            VolumeType = volumeType;
            ImageRef = imageRef;
        }
    }
CreateCloudBlockStorageVolumeDetails