CloudChannelReportsService

google.cloud.channel.v1. CloudChannelReportsService

Represents a CloudChannelReportsService

Constructor

new CloudChannelReportsService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new CloudChannelReportsService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

fetchReportResults(request, callback) → {undefined}

Calls FetchReportResults.

Parameters:
Name Type Description
request google.cloud.channel.v1.IFetchReportResultsRequest

FetchReportResultsRequest message or plain object

callback google.cloud.channel.v1.CloudChannelReportsService.FetchReportResultsCallback

Node-style callback called with the error, if any, and FetchReportResultsResponse

Returns:
Type Description
undefined

fetchReportResults(request) → {Promise.<google.cloud.channel.v1.FetchReportResultsResponse>}

Calls FetchReportResults.

Parameters:
Name Type Description
request google.cloud.channel.v1.IFetchReportResultsRequest

FetchReportResultsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.channel.v1.FetchReportResultsResponse>

Promise

listReports(request, callback) → {undefined}

Calls ListReports.

Parameters:
Name Type Description
request google.cloud.channel.v1.IListReportsRequest

ListReportsRequest message or plain object

callback google.cloud.channel.v1.CloudChannelReportsService.ListReportsCallback

Node-style callback called with the error, if any, and ListReportsResponse

Returns:
Type Description
undefined

listReports(request) → {Promise.<google.cloud.channel.v1.ListReportsResponse>}

Calls ListReports.

Parameters:
Name Type Description
request google.cloud.channel.v1.IListReportsRequest

ListReportsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.channel.v1.ListReportsResponse>

Promise

runReportJob(request, callback) → {undefined}

Calls RunReportJob.

Parameters:
Name Type Description
request google.cloud.channel.v1.IRunReportJobRequest

RunReportJobRequest message or plain object

callback google.cloud.channel.v1.CloudChannelReportsService.RunReportJobCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

runReportJob(request) → {Promise.<google.longrunning.Operation>}

Calls RunReportJob.

Parameters:
Name Type Description
request google.cloud.channel.v1.IRunReportJobRequest

RunReportJobRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {CloudChannelReportsService}

Creates new CloudChannelReportsService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
CloudChannelReportsService

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

FetchReportResultsCallback(error, responseopt)

Callback as used by fetchReportResults.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.channel.v1.FetchReportResultsResponse <optional>

FetchReportResultsResponse

ListReportsCallback(error, responseopt)

Callback as used by listReports.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.channel.v1.ListReportsResponse <optional>

ListReportsResponse

RunReportJobCallback(error, responseopt)

Callback as used by runReportJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation