GetInstanceTemplateDisk constructor

const GetInstanceTemplateDisk({
  1. required Input<String> architecture,
  2. required Input<bool> autoDelete,
  3. required Input<bool> boot,
  4. required Input<String> deviceName,
  5. required Input<List<GetInstanceTemplateDiskDiskEncryptionKey>> diskEncryptionKeys,
  6. required Input<String> diskName,
  7. required Input<int> diskSizeGb,
  8. required Input<String> diskType,
  9. required Input<List<String>> guestOsFeatures,
  10. required Input<String> interface,
  11. required Input<Map<String, String>> labels,
  12. required Input<String> mode,
  13. required Input<int> provisionedIops,
  14. required Input<int> provisionedThroughput,
  15. required Input<Map<String, String>> resourceManagerTags,
  16. required Input<List<String>> resourcePolicies,
  17. required Input<String> source,
  18. required Input<String> sourceImage,
  19. required Input<List<GetInstanceTemplateDiskSourceImageEncryptionKey>> sourceImageEncryptionKeys,
  20. required Input<String> sourceSnapshot,
  21. required Input<List<GetInstanceTemplateDiskSourceSnapshotEncryptionKey>> sourceSnapshotEncryptionKeys,
  22. required Input<String> storagePool,
  23. required Input<String> type,
})

Creates a new GetInstanceTemplateDisk. architecture The architecture of the image. Allowed values are ARM64 or X86_64. autoDelete Whether or not the disk should be auto-deleted. boot Indicates that this is a boot disk. deviceName A unique device name that is reflected into the diskEncryptionKeys Encrypts or decrypts a disk using a customer-supplied encryption key. diskName Name of the disk. When not provided, this defaults diskSizeGb The size of the image in gigabytes. If not diskType The GCE disk type. Such as "pd-ssd", "local-ssd", guestOsFeatures A list of features to enable on the guest operating system. Applicable only for bootable images. interface Specifies the disk interface to use for attaching this disk, labels (Optional) A set of ket/value label pairs to assign to disk created from mode The mode in which to attach this disk, either READ_WRITE provisionedIops Indicates how many IOPS to provision for the disk. This provisionedThroughput Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation. resourceManagerTags A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty. resourcePolicies (Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported. source The name (not self_link) sourceImage The image from which to sourceImageEncryptionKeys The customer-supplied encryption key of the source sourceSnapshot The source snapshot to create this disk. When creating sourceSnapshotEncryptionKeys The customer-supplied encryption key of the source snapshot. storagePool The selfLink or ID of the Storage Pool to create this disk in. type The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

Implementation

const GetInstanceTemplateDisk({
  required this.architecture,
  required this.autoDelete,
  required this.boot,
  required this.deviceName,
  required this.diskEncryptionKeys,
  required this.diskName,
  required this.diskSizeGb,
  required this.diskType,
  required this.guestOsFeatures,
  required this.interface,
  required this.labels,
  required this.mode,
  required this.provisionedIops,
  required this.provisionedThroughput,
  required this.resourceManagerTags,
  required this.resourcePolicies,
  required this.source,
  required this.sourceImage,
  required this.sourceImageEncryptionKeys,
  required this.sourceSnapshot,
  required this.sourceSnapshotEncryptionKeys,
  required this.storagePool,
  required this.type,
});