ComputeEngineTargetDefaults constructor
ComputeEngineTargetDefaults({
- String? vmName,
- String? targetProject,
- String? zone,
- String? machineTypeSeries,
- String? machineType,
- Iterable<
String> ? networkTags, - Iterable<
NetworkInterface> ? networkInterfaces, - String? serviceAccount,
- ComputeEngineDiskType? diskType,
- Map<
String, String> ? labels, - ComputeEngineLicenseType? licenseType,
- AppliedLicense? appliedLicense,
- ComputeScheduling? computeScheduling,
- bool? secureBoot,
- ComputeEngineBootOption? bootOption,
- Map<
String, String> ? metadata, - Iterable<
String> ? additionalLicenses, - 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;
}