CloudCatalog

google.cloud.billing.v1. CloudCatalog

Represents a CloudCatalog

Constructor

new CloudCatalog(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new CloudCatalog 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

listServices(request, callback) → {undefined}

Calls ListServices.

Parameters:
Name Type Description
request google.cloud.billing.v1.IListServicesRequest

ListServicesRequest message or plain object

callback google.cloud.billing.v1.CloudCatalog.ListServicesCallback

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

Returns:
Type Description
undefined

listServices(request) → {Promise.<google.cloud.billing.v1.ListServicesResponse>}

Calls ListServices.

Parameters:
Name Type Description
request google.cloud.billing.v1.IListServicesRequest

ListServicesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.billing.v1.ListServicesResponse>

Promise

listSkus(request, callback) → {undefined}

Calls ListSkus.

Parameters:
Name Type Description
request google.cloud.billing.v1.IListSkusRequest

ListSkusRequest message or plain object

callback google.cloud.billing.v1.CloudCatalog.ListSkusCallback

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

Returns:
Type Description
undefined

listSkus(request) → {Promise.<google.cloud.billing.v1.ListSkusResponse>}

Calls ListSkus.

Parameters:
Name Type Description
request google.cloud.billing.v1.IListSkusRequest

ListSkusRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.billing.v1.ListSkusResponse>

Promise

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

Creates new CloudCatalog 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
CloudCatalog

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

Type Definitions

ListServicesCallback(error, responseopt)

Callback as used by listServices.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.v1.ListServicesResponse <optional>

ListServicesResponse

ListSkusCallback(error, responseopt)

Callback as used by listSkus.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.v1.ListSkusResponse <optional>

ListSkusResponse