Instance constructor
Instance({
- String? name,
- String? displayName,
- String? uid,
- Timestamp? createTime,
- Timestamp? updateTime,
- Timestamp? deleteTime,
- Map<
String, String> ? labels, - Instance_State? state,
- Instance_InstanceType? instanceType,
- Instance_MachineConfig? machineConfig,
- Instance_AvailabilityType? availabilityType,
- String? gceZone,
- Map<
String, String> ? databaseFlags, - Instance_ReadPoolConfig? readPoolConfig,
- String? ipAddress,
- bool? reconciling,
- String? etag,
- Map<
String, String> ? annotations, - Instance_Node? writableNode,
- Iterable<
Instance_Node> ? nodes, - 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;
}