AssetService

google.cloud.asset.v1p5beta1. AssetService

Represents an AssetService

Constructor

new AssetService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

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

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

listAssets(request, callback) → {undefined}

Calls ListAssets.

Parameters:
Name Type Description
request google.cloud.asset.v1p5beta1.IListAssetsRequest

ListAssetsRequest message or plain object

callback google.cloud.asset.v1p5beta1.AssetService.ListAssetsCallback

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

listAssets(request) → {Promise.<google.cloud.asset.v1p5beta1.ListAssetsResponse>}

Calls ListAssets.

Parameters:
Name Type Description
request google.cloud.asset.v1p5beta1.IListAssetsRequest

ListAssetsRequest message or plain object

Type Definitions

ListAssetsCallback(error, responseopt)

Callback as used by google.cloud.asset.v1p5beta1.AssetService#listAssets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.asset.v1p5beta1.ListAssetsResponse <optional>

ListAssetsResponse