ServiceConfig constructor

ServiceConfig({
  1. String? name,
  2. String? title,
  3. Iterable<Api>? apis,
  4. Documentation? documentation,
  5. Quota? quota,
  6. Authentication? authentication,
  7. Usage? usage,
  8. Iterable<Endpoint>? endpoints,
  9. Iterable<MonitoredResourceDescriptor>? monitoredResources,
  10. Monitoring? monitoring,
})

Implementation

factory ServiceConfig({
  $core.String? name,
  $core.String? title,
  $core.Iterable<$0.Api>? apis,
  $1.Documentation? documentation,
  $2.Quota? quota,
  $3.Authentication? authentication,
  $4.Usage? usage,
  $core.Iterable<$5.Endpoint>? endpoints,
  $core.Iterable<$6.MonitoredResourceDescriptor>? monitoredResources,
  $7.Monitoring? monitoring,
}) {
  final result = create();
  if (name != null) result.name = name;
  if (title != null) result.title = title;
  if (apis != null) result.apis.addAll(apis);
  if (documentation != null) result.documentation = documentation;
  if (quota != null) result.quota = quota;
  if (authentication != null) result.authentication = authentication;
  if (usage != null) result.usage = usage;
  if (endpoints != null) result.endpoints.addAll(endpoints);
  if (monitoredResources != null)
    result.monitoredResources.addAll(monitoredResources);
  if (monitoring != null) result.monitoring = monitoring;
  return result;
}