run method
- @Deprecated('Not supported. Member documentation may have more information.')
- GoogleCloudChannelV1RunReportJobRequest request,
- String name, {
- String? $fields,
Begins generation of data for a given report.
The report identifier is a UID (for example, 613bf59q
). Possible error
codes: * PERMISSION_DENIED: The user doesn't have access to this report. *
INVALID_ARGUMENT: Required request parameters are missing or invalid. *
NOT_FOUND: The report identifier was not found. * INTERNAL: Any non-user
error related to a technical issue in the backend. Contact Cloud Channel
support. * UNKNOWN: Any non-user error related to a technical issue in the
backend. Contact Cloud Channel support. Return value: The ID of a
long-running operation. To get the results of the operation, call the
GetOperation method of CloudChannelOperationsService. The Operation
metadata contains an instance of OperationMetadata. To get the results of
report generation, call CloudChannelReportsService.FetchReportResults with
the RunReportJobResponse.report_job. Deprecated: Please use
Export Channel Services data to BigQuery
instead.
request
- The metadata request object.
Request parameters:
name
- Required. The report's resource name. Specifies the account and
report used to generate report data. The report_id identifier is a UID
(for example, 613bf59q
). Name uses the format:
accounts/{account_id}/reports/{report_id}
Value must have pattern ^accounts/\[^/\]+/reports/\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleLongrunningOperation.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
@core.Deprecated(
'Not supported. Member documentation may have more information.',
)
async.Future<GoogleLongrunningOperation> run(
GoogleCloudChannelV1RunReportJobRequest request,
core.String name, {
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':run';
final response_ = await _requester.request(
url_,
'POST',
body: body_,
queryParams: queryParams_,
);
return GoogleLongrunningOperation.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}