ComputeEngineTargetDefaults constructor

ComputeEngineTargetDefaults({
  1. String? vmName,
  2. String? targetProject,
  3. String? zone,
  4. String? machineTypeSeries,
  5. String? machineType,
  6. Iterable<String>? networkTags,
  7. Iterable<NetworkInterface>? networkInterfaces,
  8. String? serviceAccount,
  9. ComputeEngineDiskType? diskType,
  10. Map<String, String>? labels,
  11. ComputeEngineLicenseType? licenseType,
  12. AppliedLicense? appliedLicense,
  13. ComputeScheduling? computeScheduling,
  14. bool? secureBoot,
  15. ComputeEngineBootOption? bootOption,
  16. Map<String, String>? metadata,
  17. Iterable<String>? additionalLicenses,
  18. String? hostname,
})

Implementation

factory ComputeEngineTargetDefaults({
  $core.String? vmName,
  $core.String? targetProject,
  $core.String? zone,
  $core.String? machineTypeSeries,
  $core.String? machineType,
  $core.Iterable<$core.String>? networkTags,
  $core.Iterable<NetworkInterface>? networkInterfaces,
  $core.String? serviceAccount,
  ComputeEngineDiskType? diskType,
  $core.Map<$core.String, $core.String>? labels,
  ComputeEngineLicenseType? licenseType,
  AppliedLicense? appliedLicense,
  ComputeScheduling? computeScheduling,
  $core.bool? secureBoot,
  ComputeEngineBootOption? bootOption,
  $core.Map<$core.String, $core.String>? metadata,
  $core.Iterable<$core.String>? additionalLicenses,
  $core.String? hostname,
}) {
  final $result = create();
  if (vmName != null) {
    $result.vmName = vmName;
  }
  if (targetProject != null) {
    $result.targetProject = targetProject;
  }
  if (zone != null) {
    $result.zone = zone;
  }
  if (machineTypeSeries != null) {
    $result.machineTypeSeries = machineTypeSeries;
  }
  if (machineType != null) {
    $result.machineType = machineType;
  }
  if (networkTags != null) {
    $result.networkTags.addAll(networkTags);
  }
  if (networkInterfaces != null) {
    $result.networkInterfaces.addAll(networkInterfaces);
  }
  if (serviceAccount != null) {
    $result.serviceAccount = serviceAccount;
  }
  if (diskType != null) {
    $result.diskType = diskType;
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (licenseType != null) {
    $result.licenseType = licenseType;
  }
  if (appliedLicense != null) {
    $result.appliedLicense = appliedLicense;
  }
  if (computeScheduling != null) {
    $result.computeScheduling = computeScheduling;
  }
  if (secureBoot != null) {
    $result.secureBoot = secureBoot;
  }
  if (bootOption != null) {
    $result.bootOption = bootOption;
  }
  if (metadata != null) {
    $result.metadata.addAll(metadata);
  }
  if (additionalLicenses != null) {
    $result.additionalLicenses.addAll(additionalLicenses);
  }
  if (hostname != null) {
    $result.hostname = hostname;
  }
  return $result;
}