DedicatedResources constructor
DedicatedResources({
- MachineSpec? machineSpec,
- int? minReplicaCount,
- int? maxReplicaCount,
- Iterable<
AutoscalingMetricSpec> ? autoscalingMetricSpecs,
Implementation
factory DedicatedResources({
MachineSpec? machineSpec,
$core.int? minReplicaCount,
$core.int? maxReplicaCount,
$core.Iterable<AutoscalingMetricSpec>? autoscalingMetricSpecs,
}) {
final $result = create();
if (machineSpec != null) {
$result.machineSpec = machineSpec;
}
if (minReplicaCount != null) {
$result.minReplicaCount = minReplicaCount;
}
if (maxReplicaCount != null) {
$result.maxReplicaCount = maxReplicaCount;
}
if (autoscalingMetricSpecs != null) {
$result.autoscalingMetricSpecs.addAll(autoscalingMetricSpecs);
}
return $result;
}