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

Returns:
Type Description
AssetService

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

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.asset.v1p5beta1.ListAssetsResponse>

Promise

Type Definitions

ListAssetsCallback(error, responseopt)

Callback as used by listAssets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListAssetsResponse