Instance constructor

Instance({
  1. String? name,
  2. String? displayName,
  3. String? uid,
  4. Timestamp? createTime,
  5. Timestamp? updateTime,
  6. Timestamp? deleteTime,
  7. Map<String, String>? labels,
  8. Instance_State? state,
  9. Instance_InstanceType? instanceType,
  10. Instance_MachineConfig? machineConfig,
  11. Instance_AvailabilityType? availabilityType,
  12. String? gceZone,
  13. Map<String, String>? databaseFlags,
  14. Instance_ReadPoolConfig? readPoolConfig,
  15. String? ipAddress,
  16. bool? reconciling,
  17. String? etag,
  18. Map<String, String>? annotations,
  19. Instance_Node? writableNode,
  20. Iterable<Instance_Node>? nodes,
  21. Instance_QueryInsightsInstanceConfig? queryInsightsConfig,
})

Implementation

factory Instance({
  $core.String? name,
  $core.String? displayName,
  $core.String? uid,
  $2.Timestamp? createTime,
  $2.Timestamp? updateTime,
  $2.Timestamp? deleteTime,
  $core.Map<$core.String, $core.String>? labels,
  Instance_State? state,
  Instance_InstanceType? instanceType,
  Instance_MachineConfig? machineConfig,
  Instance_AvailabilityType? availabilityType,
  $core.String? gceZone,
  $core.Map<$core.String, $core.String>? databaseFlags,
  Instance_ReadPoolConfig? readPoolConfig,
  $core.String? ipAddress,
  $core.bool? reconciling,
  $core.String? etag,
  $core.Map<$core.String, $core.String>? annotations,
  Instance_Node? writableNode,
  $core.Iterable<Instance_Node>? nodes,
  Instance_QueryInsightsInstanceConfig? queryInsightsConfig,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (deleteTime != null) {
    $result.deleteTime = deleteTime;
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (state != null) {
    $result.state = state;
  }
  if (instanceType != null) {
    $result.instanceType = instanceType;
  }
  if (machineConfig != null) {
    $result.machineConfig = machineConfig;
  }
  if (availabilityType != null) {
    $result.availabilityType = availabilityType;
  }
  if (gceZone != null) {
    $result.gceZone = gceZone;
  }
  if (databaseFlags != null) {
    $result.databaseFlags.addAll(databaseFlags);
  }
  if (readPoolConfig != null) {
    $result.readPoolConfig = readPoolConfig;
  }
  if (ipAddress != null) {
    $result.ipAddress = ipAddress;
  }
  if (reconciling != null) {
    $result.reconciling = reconciling;
  }
  if (etag != null) {
    $result.etag = etag;
  }
  if (annotations != null) {
    $result.annotations.addAll(annotations);
  }
  if (writableNode != null) {
    $result.writableNode = writableNode;
  }
  if (nodes != null) {
    $result.nodes.addAll(nodes);
  }
  if (queryInsightsConfig != null) {
    $result.queryInsightsConfig = queryInsightsConfig;
  }
  return $result;
}