ImageComputeV1Args class
The set of arguments for Image. The set of arguments for Image.
Constructors
-
ImageComputeV1Args({Input<
ImageArchitectureComputeV1> ? architecture, Input<String> ? archiveSizeBytes, Input<DeprecationStatusComputeV1> ? deprecated, Input<String> ? description, Input<String> ? diskSizeGb, Input<String> ? family, Input<bool> ? forceCreate, Input<List< ? guestOsFeatures, Input<GuestOsFeatureComputeV1> >CustomerEncryptionKeyComputeV1> ? imageEncryptionKey, Input<Map< ? labels, Input<String, String> >List< ? licenseCodes, Input<String> >List< ? licenses, Input<String> >String> ? name, Input<String> ? project, Input<ImageRawDiskComputeV1> ? rawDisk, Input<String> ? requestId, Input<InitialStateConfigComputeV1> ? shieldedInstanceInitialState, Input<String> ? sourceDisk, Input<CustomerEncryptionKeyComputeV1> ? sourceDiskEncryptionKey, Input<String> ? sourceImage, Input<CustomerEncryptionKeyComputeV1> ? sourceImageEncryptionKey, Input<String> ? sourceSnapshot, Input<CustomerEncryptionKeyComputeV1> ? sourceSnapshotEncryptionKey, Input<ImageSourceTypeComputeV1> ? sourceType, Input<List< ? storageLocations})String> > -
Creates a new ImageComputeV1Args.
architectureThe architecture of the image. Valid values are ARM64 or X86_64.archiveSizeBytesSize of the image tar.gz archive stored in Google Cloud Storage (in bytes).deprecatedThe deprecation status associated with this image.descriptionAn optional description of this resource. Provide this property when you create the resource.diskSizeGbSize of the image when restored onto a persistent disk (in GB).familyThe name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.forceCreateForce image creation if true.guestOsFeaturesA list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.imageEncryptionKeyEncrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later.labelsLabels to apply to this image. These can be later modified by the setLabels method.licenseCodesInteger license codes indicating which licenses are attached to this image.licensesAny applicable license URI.nameName of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression[a-z]([-a-z0-9]*[a-z0-9])?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.projectOptional.rawDiskThe parameters of the raw disk image.requestIdAn optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).shieldedInstanceInitialStateSet the secure boot keys of shielded instance.sourceDiskURL of the source disk used to create this image. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URLsourceDiskEncryptionKeyThe customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.sourceImageURL of the source image used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - projects/project_id/global/images/image_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URLsourceImageEncryptionKeyThe customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.sourceSnapshotURL of the source snapshot used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URLsourceSnapshotEncryptionKeyThe customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.sourceTypeThe type of the image used to create this disk. The default and only valid value is RAW.storageLocationsCloud Storage bucket storage location of the image (regional or multi-regional).const -
ImageComputeV1Args.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
architecture
→ Input<
ImageArchitectureComputeV1> ? -
The architecture of the image. Valid values are ARM64 or X86_64.
final
-
archiveSizeBytes
→ Input<
String> ? -
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
final
-
deprecated
→ Input<
DeprecationStatusComputeV1> ? -
The deprecation status associated with this image.
final
-
description
→ Input<
String> ? -
An optional description of this resource. Provide this property when you create the resource.
final
-
diskSizeGb
→ Input<
String> ? -
Size of the image when restored onto a persistent disk (in GB).
final
-
family
→ Input<
String> ? -
The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.
final
-
forceCreate
→ Input<
bool> ? -
Force image creation if true.
final
-
guestOsFeatures
→ Input<
List< ?GuestOsFeatureComputeV1> > -
A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
imageEncryptionKey
→ Input<
CustomerEncryptionKeyComputeV1> ? -
Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later.
final
-
labels
→ Input<
Map< ?String, String> > -
Labels to apply to this image. These can be later modified by the setLabels method.
final
-
licenseCodes
→ Input<
List< ?String> > -
Integer license codes indicating which licenses are attached to this image.
final
-
licenses
→ Input<
List< ?String> > -
Any applicable license URI.
final
-
name
→ Input<
String> ? -
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.final -
project
→ Input<
String> ? -
final
-
rawDisk
→ Input<
ImageRawDiskComputeV1> ? -
The parameters of the raw disk image.
final
-
requestId
→ Input<
String> ? -
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shieldedInstanceInitialState
→ Input<
InitialStateConfigComputeV1> ? -
Set the secure boot keys of shielded instance.
final
-
sourceDisk
→ Input<
String> ? -
URL of the source disk used to create this image. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
final
-
sourceDiskEncryptionKey
→ Input<
CustomerEncryptionKeyComputeV1> ? -
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
final
-
sourceImage
→ Input<
String> ? -
URL of the source image used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - projects/project_id/global/images/image_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
final
-
sourceImageEncryptionKey
→ Input<
CustomerEncryptionKeyComputeV1> ? -
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
final
-
sourceSnapshot
→ Input<
String> ? -
URL of the source snapshot used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
final
-
sourceSnapshotEncryptionKey
→ Input<
CustomerEncryptionKeyComputeV1> ? -
The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
final
-
sourceType
→ Input<
ImageSourceTypeComputeV1> ? -
The type of the image used to create this disk. The default and only valid value is RAW.
final
-
storageLocations
→ Input<
List< ?String> > -
Cloud Storage bucket storage location of the image (regional or multi-regional).
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