Service constructor
Service({
- String? name,
- String? title,
- Iterable<
Api> ? apis, - Iterable<
Type> ? types, - Iterable<
Enum> ? enums, - Documentation? documentation,
- Backend? backend,
- Http? http,
- Quota? quota,
- Authentication? authentication,
- Context? context,
- Usage? usage,
- Iterable<
Endpoint> ? endpoints, - UInt32Value? configVersion,
- Control? control,
- String? producerProjectId,
- Iterable<
LogDescriptor> ? logs, - Iterable<
MetricDescriptor> ? metrics, - Iterable<
MonitoredResourceDescriptor> ? monitoredResources, - Billing? billing,
- Logging? logging,
- Monitoring? monitoring,
- SystemParameters? systemParameters,
- String? id,
- SourceInfo? sourceInfo,
Implementation
factory Service({
$core.String? name,
$core.String? title,
$core.Iterable<$33.Api>? apis,
$core.Iterable<$32.Type>? types,
$core.Iterable<$32.Enum>? enums,
$34.Documentation? documentation,
$35.Backend? backend,
$24.Http? http,
$36.Quota? quota,
$37.Authentication? authentication,
$38.Context? context,
$39.Usage? usage,
$core.Iterable<$40.Endpoint>? endpoints,
$41.UInt32Value? configVersion,
$42.Control? control,
$core.String? producerProjectId,
$core.Iterable<$43.LogDescriptor>? logs,
$core.Iterable<$44.MetricDescriptor>? metrics,
$core.Iterable<$45.MonitoredResourceDescriptor>? monitoredResources,
$46.Billing? billing,
$47.Logging? logging,
$48.Monitoring? monitoring,
$49.SystemParameters? systemParameters,
$core.String? id,
$50.SourceInfo? sourceInfo,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (title != null) {
$result.title = title;
}
if (apis != null) {
$result.apis.addAll(apis);
}
if (types != null) {
$result.types.addAll(types);
}
if (enums != null) {
$result.enums.addAll(enums);
}
if (documentation != null) {
$result.documentation = documentation;
}
if (backend != null) {
$result.backend = backend;
}
if (http != null) {
$result.http = http;
}
if (quota != null) {
$result.quota = quota;
}
if (authentication != null) {
$result.authentication = authentication;
}
if (context != null) {
$result.context = context;
}
if (usage != null) {
$result.usage = usage;
}
if (endpoints != null) {
$result.endpoints.addAll(endpoints);
}
if (configVersion != null) {
$result.configVersion = configVersion;
}
if (control != null) {
$result.control = control;
}
if (producerProjectId != null) {
$result.producerProjectId = producerProjectId;
}
if (logs != null) {
$result.logs.addAll(logs);
}
if (metrics != null) {
$result.metrics.addAll(metrics);
}
if (monitoredResources != null) {
$result.monitoredResources.addAll(monitoredResources);
}
if (billing != null) {
$result.billing = billing;
}
if (logging != null) {
$result.logging = logging;
}
if (monitoring != null) {
$result.monitoring = monitoring;
}
if (systemParameters != null) {
$result.systemParameters = systemParameters;
}
if (id != null) {
$result.id = id;
}
if (sourceInfo != null) {
$result.sourceInfo = sourceInfo;
}
return $result;
}