GetFunctionResult.fromMap constructor

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

Implementation

factory GetFunctionResult.fromMap(Map<String, dynamic> map) {
  return GetFunctionResult(
    availableMemoryMb: map['availableMemoryMb'] as int,
    buildEnvironmentVariables: (map['buildEnvironmentVariables'] as Map).cast<String, String>(),
    buildId: map['buildId'] as String,
    buildName: map['buildName'] as String,
    buildWorkerPool: map['buildWorkerPool'] as String,
    description: map['description'] as String,
    dockerRegistry: map['dockerRegistry'] as String,
    dockerRepository: map['dockerRepository'] as String,
    entryPoint: map['entryPoint'] as String,
    environmentVariables: (map['environmentVariables'] as Map).cast<String, String>(),
    eventTrigger: EventTriggerResponse.fromMap((map['eventTrigger']! as Map).cast<String, dynamic>()),
    httpsTrigger: HttpsTriggerResponse.fromMap((map['httpsTrigger']! as Map).cast<String, dynamic>()),
    ingressSettings: map['ingressSettings'] as String,
    kmsKeyName: map['kmsKeyName'] as String,
    labels: (map['labels'] as Map).cast<String, String>(),
    maxInstances: map['maxInstances'] as int,
    minInstances: map['minInstances'] as int,
    name: map['name'] as String,
    network: map['network'] as String,
    runtime: map['runtime'] as String,
    secretEnvironmentVariables: pulumi.Input.decodeList<SecretEnvVarResponse>(map['secretEnvironmentVariables']!, (value) => SecretEnvVarResponse.fromMap((value as Map).cast<String, dynamic>())),
    secretVolumes: pulumi.Input.decodeList<SecretVolumeResponse>(map['secretVolumes']!, (value) => SecretVolumeResponse.fromMap((value as Map).cast<String, dynamic>())),
    serviceAccountEmail: map['serviceAccountEmail'] as String,
    sourceArchiveUrl: map['sourceArchiveUrl'] as String,
    sourceRepository: SourceRepositoryResponse.fromMap((map['sourceRepository']! as Map).cast<String, dynamic>()),
    sourceToken: map['sourceToken'] as String,
    sourceUploadUrl: map['sourceUploadUrl'] as String,
    status: map['status'] as String,
    timeout: map['timeout'] as String,
    updateTime: map['updateTime'] as String,
    versionId: map['versionId'] as String,
    vpcConnector: map['vpcConnector'] as String,
    vpcConnectorEgressSettings: map['vpcConnectorEgressSettings'] as String,
  );
}