Instance constructor
Instance({
- String? name,
- VmImage? vmImage,
- ContainerImage? containerImage,
- String? postStartupScript,
- String? proxyUri,
- String? serviceAccount,
- String? machineType,
- Instance_AcceleratorConfig? acceleratorConfig,
- Instance_State? state,
- bool? installGpuDriver,
- String? customGpuDriverPath,
- bool? noPublicIp,
- bool? noProxyAccess,
- String? network,
- String? subnet,
- Map<
String, String> ? labels, - Map<
String, String> ? metadata, - Timestamp? createTime,
- Timestamp? updateTime,
- Iterable<
Instance_Disk> ? disks, - Iterable<
Instance_UpgradeHistoryEntry> ? upgradeHistory, - Instance_ShieldedInstanceConfig? shieldedInstanceConfig,
- Iterable<
String> ? serviceAccountScopes, - Iterable<
String> ? tags, - Instance_NicType? nicType,
- ReservationAffinity? reservationAffinity,
- String? creator,
- 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;
}