GoogleCloudAiplatformV1NotebookRuntimeTemplate.fromJson constructor
GoogleCloudAiplatformV1NotebookRuntimeTemplate.fromJson(
- Map json_
Implementation
GoogleCloudAiplatformV1NotebookRuntimeTemplate.fromJson(core.Map json_)
: this(
createTime: json_['createTime'] as core.String?,
dataPersistentDiskSpec:
json_.containsKey('dataPersistentDiskSpec')
? GoogleCloudAiplatformV1PersistentDiskSpec.fromJson(
json_['dataPersistentDiskSpec']
as core.Map<core.String, core.dynamic>,
)
: null,
description: json_['description'] as core.String?,
displayName: json_['displayName'] as core.String?,
encryptionSpec:
json_.containsKey('encryptionSpec')
? GoogleCloudAiplatformV1EncryptionSpec.fromJson(
json_['encryptionSpec']
as core.Map<core.String, core.dynamic>,
)
: null,
etag: json_['etag'] as core.String?,
eucConfig:
json_.containsKey('eucConfig')
? GoogleCloudAiplatformV1NotebookEucConfig.fromJson(
json_['eucConfig'] as core.Map<core.String, core.dynamic>,
)
: null,
idleShutdownConfig:
json_.containsKey('idleShutdownConfig')
? GoogleCloudAiplatformV1NotebookIdleShutdownConfig.fromJson(
json_['idleShutdownConfig']
as core.Map<core.String, core.dynamic>,
)
: null,
isDefault: json_['isDefault'] as core.bool?,
labels: (json_['labels'] as core.Map<core.String, core.dynamic>?)?.map(
(key, value) => core.MapEntry(key, value as core.String),
),
machineSpec:
json_.containsKey('machineSpec')
? GoogleCloudAiplatformV1MachineSpec.fromJson(
json_['machineSpec'] as core.Map<core.String, core.dynamic>,
)
: null,
name: json_['name'] as core.String?,
networkSpec:
json_.containsKey('networkSpec')
? GoogleCloudAiplatformV1NetworkSpec.fromJson(
json_['networkSpec'] as core.Map<core.String, core.dynamic>,
)
: null,
networkTags:
(json_['networkTags'] as core.List?)
?.map((value) => value as core.String)
.toList(),
notebookRuntimeType: json_['notebookRuntimeType'] as core.String?,
reservationAffinity:
json_.containsKey('reservationAffinity')
? GoogleCloudAiplatformV1NotebookReservationAffinity.fromJson(
json_['reservationAffinity']
as core.Map<core.String, core.dynamic>,
)
: null,
serviceAccount: json_['serviceAccount'] as core.String?,
shieldedVmConfig:
json_.containsKey('shieldedVmConfig')
? GoogleCloudAiplatformV1ShieldedVmConfig.fromJson(
json_['shieldedVmConfig']
as core.Map<core.String, core.dynamic>,
)
: null,
softwareConfig:
json_.containsKey('softwareConfig')
? GoogleCloudAiplatformV1NotebookSoftwareConfig.fromJson(
json_['softwareConfig']
as core.Map<core.String, core.dynamic>,
)
: null,
updateTime: json_['updateTime'] as core.String?,
);