Instance constructor
Instance({
- String? name,
- String? description,
- Instance_Type? type,
- bool? enableStackdriverLogging,
- bool? enableStackdriverMonitoring,
- bool? privateInstance,
- NetworkConfig? networkConfig,
- Map<
String, String> ? labels, - Map<
String, String> ? options, - Timestamp? createTime,
- Timestamp? updateTime,
- Instance_State? state,
- String? stateMessage,
- String? serviceEndpoint,
- String? zone,
- String? version,
- String? serviceAccount,
- String? displayName,
- Iterable<
Version> ? availableVersion, - String? apiEndpoint,
- String? gcsBucket,
- Iterable<
Accelerator> ? accelerators, - String? p4ServiceAccount,
- String? tenantProjectId,
- String? dataprocServiceAccount,
- bool? enableRbac,
- CryptoKeyConfig? cryptoKeyConfig,
- Iterable<
Instance_DisabledReason> ? disabledReason, - EventPublishConfig? eventPublishConfig,
- bool? enableZoneSeparation,
Implementation
factory Instance({
$core.String? name,
$core.String? description,
Instance_Type? type,
$core.bool? enableStackdriverLogging,
$core.bool? enableStackdriverMonitoring,
$core.bool? privateInstance,
NetworkConfig? networkConfig,
$core.Map<$core.String, $core.String>? labels,
$core.Map<$core.String, $core.String>? options,
$2.Timestamp? createTime,
$2.Timestamp? updateTime,
Instance_State? state,
$core.String? stateMessage,
$core.String? serviceEndpoint,
$core.String? zone,
$core.String? version,
$core.String? serviceAccount,
$core.String? displayName,
$core.Iterable<Version>? availableVersion,
$core.String? apiEndpoint,
$core.String? gcsBucket,
$core.Iterable<Accelerator>? accelerators,
$core.String? p4ServiceAccount,
$core.String? tenantProjectId,
$core.String? dataprocServiceAccount,
$core.bool? enableRbac,
CryptoKeyConfig? cryptoKeyConfig,
$core.Iterable<Instance_DisabledReason>? disabledReason,
EventPublishConfig? eventPublishConfig,
$core.bool? enableZoneSeparation,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (description != null) {
$result.description = description;
}
if (type != null) {
$result.type = type;
}
if (enableStackdriverLogging != null) {
$result.enableStackdriverLogging = enableStackdriverLogging;
}
if (enableStackdriverMonitoring != null) {
$result.enableStackdriverMonitoring = enableStackdriverMonitoring;
}
if (privateInstance != null) {
$result.privateInstance = privateInstance;
}
if (networkConfig != null) {
$result.networkConfig = networkConfig;
}
if (labels != null) {
$result.labels.addAll(labels);
}
if (options != null) {
$result.options.addAll(options);
}
if (createTime != null) {
$result.createTime = createTime;
}
if (updateTime != null) {
$result.updateTime = updateTime;
}
if (state != null) {
$result.state = state;
}
if (stateMessage != null) {
$result.stateMessage = stateMessage;
}
if (serviceEndpoint != null) {
$result.serviceEndpoint = serviceEndpoint;
}
if (zone != null) {
$result.zone = zone;
}
if (version != null) {
$result.version = version;
}
if (serviceAccount != null) {
$result.serviceAccount = serviceAccount;
}
if (displayName != null) {
$result.displayName = displayName;
}
if (availableVersion != null) {
$result.availableVersion.addAll(availableVersion);
}
if (apiEndpoint != null) {
$result.apiEndpoint = apiEndpoint;
}
if (gcsBucket != null) {
$result.gcsBucket = gcsBucket;
}
if (accelerators != null) {
$result.accelerators.addAll(accelerators);
}
if (p4ServiceAccount != null) {
$result.p4ServiceAccount = p4ServiceAccount;
}
if (tenantProjectId != null) {
$result.tenantProjectId = tenantProjectId;
}
if (dataprocServiceAccount != null) {
$result.dataprocServiceAccount = dataprocServiceAccount;
}
if (enableRbac != null) {
$result.enableRbac = enableRbac;
}
if (cryptoKeyConfig != null) {
$result.cryptoKeyConfig = cryptoKeyConfig;
}
if (disabledReason != null) {
$result.disabledReason.addAll(disabledReason);
}
if (eventPublishConfig != null) {
$result.eventPublishConfig = eventPublishConfig;
}
if (enableZoneSeparation != null) {
$result.enableZoneSeparation = enableZoneSeparation;
}
return $result;
}