WriteLogEntriesRequest constructor

WriteLogEntriesRequest({
  1. String? logName,
  2. MonitoredResource? resource,
  3. Map<String, String>? labels,
  4. Iterable<LogEntry>? entries,
  5. bool? partialSuccess,
  6. bool? dryRun,
})

Implementation

factory WriteLogEntriesRequest({
  $core.String? logName,
  $3.MonitoredResource? resource,
  $core.Map<$core.String, $core.String>? labels,
  $core.Iterable<$4.LogEntry>? entries,
  $core.bool? partialSuccess,
  $core.bool? dryRun,
}) {
  final _result = create();
  if (logName != null) {
    _result.logName = logName;
  }
  if (resource != null) {
    _result.resource = resource;
  }
  if (labels != null) {
    _result.labels.addAll(labels);
  }
  if (entries != null) {
    _result.entries.addAll(entries);
  }
  if (partialSuccess != null) {
    _result.partialSuccess = partialSuccess;
  }
  if (dryRun != null) {
    _result.dryRun = dryRun;
  }
  return _result;
}