Instance constructor

Instance({
  1. String? name,
  2. String? description,
  3. Instance_Type? type,
  4. bool? enableStackdriverLogging,
  5. bool? enableStackdriverMonitoring,
  6. bool? privateInstance,
  7. NetworkConfig? networkConfig,
  8. Map<String, String>? labels,
  9. Map<String, String>? options,
  10. Timestamp? createTime,
  11. Timestamp? updateTime,
  12. Instance_State? state,
  13. String? stateMessage,
  14. String? serviceEndpoint,
  15. String? zone,
  16. String? version,
  17. String? serviceAccount,
  18. String? displayName,
  19. Iterable<Version>? availableVersion,
  20. String? apiEndpoint,
  21. String? gcsBucket,
  22. Iterable<Accelerator>? accelerators,
  23. String? p4ServiceAccount,
  24. String? tenantProjectId,
  25. String? dataprocServiceAccount,
  26. bool? enableRbac,
  27. CryptoKeyConfig? cryptoKeyConfig,
  28. Iterable<Instance_DisabledReason>? disabledReason,
  29. EventPublishConfig? eventPublishConfig,
  30. 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;
}