GetSnapshotComputeBetaResult.fromMap constructor
GetSnapshotComputeBetaResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetSnapshotComputeBetaResult.fromMap(Map<String, dynamic> map) {
return GetSnapshotComputeBetaResult(
architecture: map['architecture'] as String,
autoCreated: map['autoCreated'] as bool,
chainName: map['chainName'] as String,
creationSizeBytes: map['creationSizeBytes'] as String,
creationTimestamp: map['creationTimestamp'] as String,
description: map['description'] as String,
diskSizeGb: map['diskSizeGb'] as String,
downloadBytes: map['downloadBytes'] as String,
enableConfidentialCompute: map['enableConfidentialCompute'] as bool,
guestFlush: map['guestFlush'] as bool,
guestOsFeatures: pulumi.Input.decodeList<GuestOsFeatureResponseComputeBeta>(map['guestOsFeatures']!, (value) => GuestOsFeatureResponseComputeBeta.fromMap((value 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>(),
locationHint: map['locationHint'] as String,
name: map['name'] as String,
satisfiesPzs: map['satisfiesPzs'] as bool,
selfLink: map['selfLink'] as String,
snapshotEncryptionKey: CustomerEncryptionKeyResponseComputeBeta.fromMap((map['snapshotEncryptionKey']! as Map).cast<String, dynamic>()),
snapshotType: map['snapshotType'] as String,
sourceDisk: map['sourceDisk'] as String,
sourceDiskEncryptionKey: CustomerEncryptionKeyResponseComputeBeta.fromMap((map['sourceDiskEncryptionKey']! as Map).cast<String, dynamic>()),
sourceDiskForRecoveryCheckpoint: map['sourceDiskForRecoveryCheckpoint'] as String,
sourceDiskId: map['sourceDiskId'] as String,
sourceInstantSnapshot: map['sourceInstantSnapshot'] as String,
sourceInstantSnapshotEncryptionKey: CustomerEncryptionKeyResponseComputeBeta.fromMap((map['sourceInstantSnapshotEncryptionKey']! as Map).cast<String, dynamic>()),
sourceInstantSnapshotId: map['sourceInstantSnapshotId'] as String,
sourceSnapshotSchedulePolicy: map['sourceSnapshotSchedulePolicy'] as String,
sourceSnapshotSchedulePolicyId: map['sourceSnapshotSchedulePolicyId'] as String,
status: map['status'] as String,
storageBytes: map['storageBytes'] as String,
storageBytesStatus: map['storageBytesStatus'] as String,
storageLocations: (map['storageLocations'] as List).cast<String>(),
userLicenses: (map['userLicenses'] as List).cast<String>(),
);
}