AiEndpointWithModelGardenDeploymentModelConfigContainerSpecLivenessProbe.fromMap constructor
AiEndpointWithModelGardenDeploymentModelConfigContainerSpecLivenessProbe.fromMap()
Implementation
factory AiEndpointWithModelGardenDeploymentModelConfigContainerSpecLivenessProbe.fromMap(Map<String, dynamic> map) {
return AiEndpointWithModelGardenDeploymentModelConfigContainerSpecLivenessProbe(
exec: (() { final guardedValue = map['exec']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiEndpointWithModelGardenDeploymentModelConfigContainerSpecLivenessProbeExec.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
failureThreshold: (() { final guardedValue = map['failureThreshold']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
grpc: (() { final guardedValue = map['grpc']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiEndpointWithModelGardenDeploymentModelConfigContainerSpecLivenessProbeGrpc.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
httpGet: (() { final guardedValue = map['httpGet']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiEndpointWithModelGardenDeploymentModelConfigContainerSpecLivenessProbeHttpGet.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
initialDelaySeconds: (() { final guardedValue = map['initialDelaySeconds']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
periodSeconds: (() { final guardedValue = map['periodSeconds']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
successThreshold: (() { final guardedValue = map['successThreshold']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
tcpSocket: (() { final guardedValue = map['tcpSocket']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiEndpointWithModelGardenDeploymentModelConfigContainerSpecLivenessProbeTcpSocket.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
timeoutSeconds: (() { final guardedValue = map['timeoutSeconds']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
);
}