GetDiskComputeBetaResult.fromMap constructor

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

Implementation

factory GetDiskComputeBetaResult.fromMap(Map<String, dynamic> map) {
  return GetDiskComputeBetaResult(
    architecture: map['architecture'] as String,
    asyncPrimaryDisk: DiskAsyncReplicationResponseComputeBeta.fromMap((map['asyncPrimaryDisk']! as Map).cast<String, dynamic>()),
    asyncSecondaryDisks: (map['asyncSecondaryDisks'] as Map).cast<String, String>(),
    creationTimestamp: map['creationTimestamp'] as String,
    description: map['description'] as String,
    diskEncryptionKey: CustomerEncryptionKeyResponseComputeBeta.fromMap((map['diskEncryptionKey']! as Map).cast<String, dynamic>()),
    enableConfidentialCompute: map['enableConfidentialCompute'] as bool,
    eraseWindowsVssSignature: map['eraseWindowsVssSignature'] as bool,
    guestOsFeatures: pulumi.Input.decodeList<GuestOsFeatureResponseComputeBeta>(map['guestOsFeatures']!, (value) => GuestOsFeatureResponseComputeBeta.fromMap((value as Map).cast<String, dynamic>())),
    interface: map['interface'] as String,
    kind: map['kind'] as String,
    labelFingerprint: map['labelFingerprint'] as String,
    labels: (map['labels'] as Map).cast<String, String>(),
    lastAttachTimestamp: map['lastAttachTimestamp'] as String,
    lastDetachTimestamp: map['lastDetachTimestamp'] as String,
    licenseCodes: (map['licenseCodes'] as List).cast<String>(),
    licenses: (map['licenses'] as List).cast<String>(),
    locationHint: map['locationHint'] as String,
    locked: map['locked'] as bool,
    multiWriter: map['multiWriter'] as bool,
    name: map['name'] as String,
    options: map['options'] as String,
    params: DiskParamsResponseComputeBeta.fromMap((map['params']! as Map).cast<String, dynamic>()),
    physicalBlockSizeBytes: map['physicalBlockSizeBytes'] as String,
    provisionedIops: map['provisionedIops'] as String,
    provisionedThroughput: map['provisionedThroughput'] as String,
    region: map['region'] as String,
    replicaZones: (map['replicaZones'] as List).cast<String>(),
    resourcePolicies: (map['resourcePolicies'] as List).cast<String>(),
    resourceStatus: DiskResourceStatusResponseComputeBeta.fromMap((map['resourceStatus']! as Map).cast<String, dynamic>()),
    satisfiesPzs: map['satisfiesPzs'] as bool,
    selfLink: map['selfLink'] as String,
    sizeGb: map['sizeGb'] as String,
    sourceConsistencyGroupPolicy: map['sourceConsistencyGroupPolicy'] as String,
    sourceConsistencyGroupPolicyId: map['sourceConsistencyGroupPolicyId'] as String,
    sourceDisk: map['sourceDisk'] as String,
    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,
    sourceInstantSnapshot: map['sourceInstantSnapshot'] as String,
    sourceInstantSnapshotId: map['sourceInstantSnapshotId'] as String,
    sourceSnapshot: map['sourceSnapshot'] as String,
    sourceSnapshotEncryptionKey: CustomerEncryptionKeyResponseComputeBeta.fromMap((map['sourceSnapshotEncryptionKey']! as Map).cast<String, dynamic>()),
    sourceSnapshotId: map['sourceSnapshotId'] as String,
    sourceStorageObject: map['sourceStorageObject'] as String,
    status: map['status'] as String,
    storageType: map['storageType'] as String,
    type: map['type'] as String,
    userLicenses: (map['userLicenses'] as List).cast<String>(),
    users: (map['users'] as List).cast<String>(),
    zone: map['zone'] as String,
  );
}