GetImageComputeBetaResult.fromMap constructor

GetImageComputeBetaResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetImageComputeBetaResult.fromMap(Map<String, dynamic> map) {
  return GetImageComputeBetaResult(
    architecture: map['architecture'] as String,
    archiveSizeBytes: map['archiveSizeBytes'] as String,
    creationTimestamp: map['creationTimestamp'] as String,
    deprecated: DeprecationStatusResponseComputeBeta.fromMap((map['deprecated']! as Map).cast<String, dynamic>()),
    description: map['description'] as String,
    diskSizeGb: map['diskSizeGb'] as String,
    enableConfidentialCompute: map['enableConfidentialCompute'] as bool,
    family: map['family'] as String,
    guestOsFeatures: pulumi.Input.decodeList<GuestOsFeatureResponseComputeBeta>(map['guestOsFeatures']!, (value) => GuestOsFeatureResponseComputeBeta.fromMap((value as Map).cast<String, dynamic>())),
    imageEncryptionKey: CustomerEncryptionKeyResponseComputeBeta.fromMap((map['imageEncryptionKey']! as Map).cast<String, dynamic>()),
    kind: map['kind'] as String,
    labelFingerprint: map['labelFingerprint'] as String,
    labels: (map['labels'] as Map).cast<String, String>(),
    licenseCodes: (map['licenseCodes'] as List).cast<String>(),
    licenses: (map['licenses'] as List).cast<String>(),
    locked: map['locked'] as bool,
    name: map['name'] as String,
    rawDisk: ImageRawDiskResponseComputeBeta.fromMap((map['rawDisk']! as Map).cast<String, dynamic>()),
    rolloutOverride: RolloutPolicyResponseComputeBeta.fromMap((map['rolloutOverride']! as Map).cast<String, dynamic>()),
    satisfiesPzs: map['satisfiesPzs'] as bool,
    selfLink: map['selfLink'] as String,
    shieldedInstanceInitialState: InitialStateConfigResponseComputeBeta.fromMap((map['shieldedInstanceInitialState']! as Map).cast<String, dynamic>()),
    sourceDisk: map['sourceDisk'] as String,
    sourceDiskEncryptionKey: CustomerEncryptionKeyResponseComputeBeta.fromMap((map['sourceDiskEncryptionKey']! as Map).cast<String, dynamic>()),
    sourceDiskId: map['sourceDiskId'] as String,
    sourceImage: map['sourceImage'] as String,
    sourceImageEncryptionKey: CustomerEncryptionKeyResponseComputeBeta.fromMap((map['sourceImageEncryptionKey']! as Map).cast<String, dynamic>()),
    sourceImageId: map['sourceImageId'] as String,
    sourceSnapshot: map['sourceSnapshot'] as String,
    sourceSnapshotEncryptionKey: CustomerEncryptionKeyResponseComputeBeta.fromMap((map['sourceSnapshotEncryptionKey']! as Map).cast<String, dynamic>()),
    sourceSnapshotId: map['sourceSnapshotId'] as String,
    sourceType: map['sourceType'] as String,
    status: map['status'] as String,
    storageLocations: (map['storageLocations'] as List).cast<String>(),
    userLicenses: (map['userLicenses'] as List).cast<String>(),
  );
}