GetImageComputeV1Result constructor

const GetImageComputeV1Result({
  1. required String architecture,
  2. required String archiveSizeBytes,
  3. required String creationTimestamp,
  4. required DeprecationStatusResponseComputeV1 deprecated,
  5. required String description,
  6. required String diskSizeGb,
  7. required String family,
  8. required List<GuestOsFeatureResponseComputeV1> guestOsFeatures,
  9. required CustomerEncryptionKeyResponseComputeV1 imageEncryptionKey,
  10. required String kind,
  11. required String labelFingerprint,
  12. required Map<String, String> labels,
  13. required List<String> licenseCodes,
  14. required List<String> licenses,
  15. required String name,
  16. required ImageRawDiskResponseComputeV1 rawDisk,
  17. required bool satisfiesPzs,
  18. required String selfLink,
  19. required InitialStateConfigResponseComputeV1 shieldedInstanceInitialState,
  20. required String sourceDisk,
  21. required CustomerEncryptionKeyResponseComputeV1 sourceDiskEncryptionKey,
  22. required String sourceDiskId,
  23. required String sourceImage,
  24. required CustomerEncryptionKeyResponseComputeV1 sourceImageEncryptionKey,
  25. required String sourceImageId,
  26. required String sourceSnapshot,
  27. required CustomerEncryptionKeyResponseComputeV1 sourceSnapshotEncryptionKey,
  28. required String sourceSnapshotId,
  29. required String sourceType,
  30. required String status,
  31. required List<String> storageLocations,
})

Creates a new GetImageComputeV1Result. architecture The architecture of the image. Valid values are ARM64 or X86_64. archiveSizeBytes Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). creationTimestamp Creation timestamp in RFC3339 text format. deprecated The deprecation status associated with this image. description An optional description of this resource. Provide this property when you create the resource. diskSizeGb Size of the image when restored onto a persistent disk (in GB). family 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. guestOsFeatures 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. imageEncryptionKey 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. kind Type of the resource. Always compute#image for images. labelFingerprint A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an image. labels Labels to apply to this image. These can be later modified by the setLabels method. licenseCodes Integer license codes indicating which licenses are attached to this image. licenses Any applicable license URI. name 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. rawDisk The parameters of the raw disk image. satisfiesPzs Reserved for future use. selfLink Server-defined URL for the resource. shieldedInstanceInitialState Set the secure boot keys of shielded instance. sourceDisk 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 sourceDiskEncryptionKey The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. sourceDiskId The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name. sourceImage 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 sourceImageEncryptionKey The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. sourceImageId The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name. sourceSnapshot 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 sourceSnapshotEncryptionKey The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. sourceSnapshotId The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name. sourceType The type of the image used to create this disk. The default and only valid value is RAW. status The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. storageLocations Cloud Storage bucket storage location of the image (regional or multi-regional).

Implementation

const GetImageComputeV1Result({
  required this.architecture,
  required this.archiveSizeBytes,
  required this.creationTimestamp,
  required this.deprecated,
  required this.description,
  required this.diskSizeGb,
  required this.family,
  required this.guestOsFeatures,
  required this.imageEncryptionKey,
  required this.kind,
  required this.labelFingerprint,
  required this.labels,
  required this.licenseCodes,
  required this.licenses,
  required this.name,
  required this.rawDisk,
  required this.satisfiesPzs,
  required this.selfLink,
  required this.shieldedInstanceInitialState,
  required this.sourceDisk,
  required this.sourceDiskEncryptionKey,
  required this.sourceDiskId,
  required this.sourceImage,
  required this.sourceImageEncryptionKey,
  required this.sourceImageId,
  required this.sourceSnapshot,
  required this.sourceSnapshotEncryptionKey,
  required this.sourceSnapshotId,
  required this.sourceType,
  required this.status,
  required this.storageLocations,
});