Instance constructor

Instance({
  1. String? name,
  2. VmImage? vmImage,
  3. ContainerImage? containerImage,
  4. String? postStartupScript,
  5. String? proxyUri,
  6. String? serviceAccount,
  7. String? machineType,
  8. Instance_AcceleratorConfig? acceleratorConfig,
  9. Instance_State? state,
  10. bool? installGpuDriver,
  11. String? customGpuDriverPath,
  12. bool? noPublicIp,
  13. bool? noProxyAccess,
  14. String? network,
  15. String? subnet,
  16. Map<String, String>? labels,
  17. Map<String, String>? metadata,
  18. Timestamp? createTime,
  19. Timestamp? updateTime,
  20. Iterable<Instance_Disk>? disks,
  21. Iterable<Instance_UpgradeHistoryEntry>? upgradeHistory,
  22. Instance_ShieldedInstanceConfig? shieldedInstanceConfig,
  23. Iterable<String>? serviceAccountScopes,
  24. Iterable<String>? tags,
  25. Instance_NicType? nicType,
  26. ReservationAffinity? reservationAffinity,
  27. String? creator,
  28. bool? canIpForward,
})

Implementation

factory Instance({
  $core.String? name,
  VmImage? vmImage,
  ContainerImage? containerImage,
  $core.String? postStartupScript,
  $core.String? proxyUri,
  $core.String? serviceAccount,
  $core.String? machineType,
  Instance_AcceleratorConfig? acceleratorConfig,
  Instance_State? state,
  $core.bool? installGpuDriver,
  $core.String? customGpuDriverPath,
  $core.bool? noPublicIp,
  $core.bool? noProxyAccess,
  $core.String? network,
  $core.String? subnet,
  $core.Map<$core.String, $core.String>? labels,
  $core.Map<$core.String, $core.String>? metadata,
  $2.Timestamp? createTime,
  $2.Timestamp? updateTime,
  $core.Iterable<Instance_Disk>? disks,
  $core.Iterable<Instance_UpgradeHistoryEntry>? upgradeHistory,
  Instance_ShieldedInstanceConfig? shieldedInstanceConfig,
  $core.Iterable<$core.String>? serviceAccountScopes,
  $core.Iterable<$core.String>? tags,
  Instance_NicType? nicType,
  ReservationAffinity? reservationAffinity,
  $core.String? creator,
  $core.bool? canIpForward,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (vmImage != null) {
    $result.vmImage = vmImage;
  }
  if (containerImage != null) {
    $result.containerImage = containerImage;
  }
  if (postStartupScript != null) {
    $result.postStartupScript = postStartupScript;
  }
  if (proxyUri != null) {
    $result.proxyUri = proxyUri;
  }
  if (serviceAccount != null) {
    $result.serviceAccount = serviceAccount;
  }
  if (machineType != null) {
    $result.machineType = machineType;
  }
  if (acceleratorConfig != null) {
    $result.acceleratorConfig = acceleratorConfig;
  }
  if (state != null) {
    $result.state = state;
  }
  if (installGpuDriver != null) {
    $result.installGpuDriver = installGpuDriver;
  }
  if (customGpuDriverPath != null) {
    $result.customGpuDriverPath = customGpuDriverPath;
  }
  if (noPublicIp != null) {
    $result.noPublicIp = noPublicIp;
  }
  if (noProxyAccess != null) {
    $result.noProxyAccess = noProxyAccess;
  }
  if (network != null) {
    $result.network = network;
  }
  if (subnet != null) {
    $result.subnet = subnet;
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (metadata != null) {
    $result.metadata.addAll(metadata);
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (disks != null) {
    $result.disks.addAll(disks);
  }
  if (upgradeHistory != null) {
    $result.upgradeHistory.addAll(upgradeHistory);
  }
  if (shieldedInstanceConfig != null) {
    $result.shieldedInstanceConfig = shieldedInstanceConfig;
  }
  if (serviceAccountScopes != null) {
    $result.serviceAccountScopes.addAll(serviceAccountScopes);
  }
  if (tags != null) {
    $result.tags.addAll(tags);
  }
  if (nicType != null) {
    $result.nicType = nicType;
  }
  if (reservationAffinity != null) {
    $result.reservationAffinity = reservationAffinity;
  }
  if (creator != null) {
    $result.creator = creator;
  }
  if (canIpForward != null) {
    $result.canIpForward = canIpForward;
  }
  return $result;
}