AssetService

google.cloud.asset.v1. 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

batchGetAssetsHistory(request, callback) → {undefined}

Calls BatchGetAssetsHistory.

Parameters:
Name Type Description
request google.cloud.asset.v1.IBatchGetAssetsHistoryRequest

BatchGetAssetsHistoryRequest message or plain object

callback google.cloud.asset.v1.AssetService.BatchGetAssetsHistoryCallback

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

batchGetAssetsHistory(request) → {Promise.<google.cloud.asset.v1.BatchGetAssetsHistoryResponse>}

Calls BatchGetAssetsHistory.

Parameters:
Name Type Description
request google.cloud.asset.v1.IBatchGetAssetsHistoryRequest

BatchGetAssetsHistoryRequest message or plain object

createFeed(request, callback) → {undefined}

Calls CreateFeed.

Parameters:
Name Type Description
request google.cloud.asset.v1.ICreateFeedRequest

CreateFeedRequest message or plain object

callback google.cloud.asset.v1.AssetService.CreateFeedCallback

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

createFeed(request) → {Promise.<google.cloud.asset.v1.Feed>}

Calls CreateFeed.

Parameters:
Name Type Description
request google.cloud.asset.v1.ICreateFeedRequest

CreateFeedRequest message or plain object

deleteFeed(request, callback) → {undefined}

Calls DeleteFeed.

Parameters:
Name Type Description
request google.cloud.asset.v1.IDeleteFeedRequest

DeleteFeedRequest message or plain object

callback google.cloud.asset.v1.AssetService.DeleteFeedCallback

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

deleteFeed(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteFeed.

Parameters:
Name Type Description
request google.cloud.asset.v1.IDeleteFeedRequest

DeleteFeedRequest message or plain object

exportAssets(request, callback) → {undefined}

Calls ExportAssets.

Parameters:
Name Type Description
request google.cloud.asset.v1.IExportAssetsRequest

ExportAssetsRequest message or plain object

callback google.cloud.asset.v1.AssetService.ExportAssetsCallback

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

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

Calls ExportAssets.

Parameters:
Name Type Description
request google.cloud.asset.v1.IExportAssetsRequest

ExportAssetsRequest message or plain object

getFeed(request, callback) → {undefined}

Calls GetFeed.

Parameters:
Name Type Description
request google.cloud.asset.v1.IGetFeedRequest

GetFeedRequest message or plain object

callback google.cloud.asset.v1.AssetService.GetFeedCallback

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

getFeed(request) → {Promise.<google.cloud.asset.v1.Feed>}

Calls GetFeed.

Parameters:
Name Type Description
request google.cloud.asset.v1.IGetFeedRequest

GetFeedRequest message or plain object

listFeeds(request, callback) → {undefined}

Calls ListFeeds.

Parameters:
Name Type Description
request google.cloud.asset.v1.IListFeedsRequest

ListFeedsRequest message or plain object

callback google.cloud.asset.v1.AssetService.ListFeedsCallback

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

listFeeds(request) → {Promise.<google.cloud.asset.v1.ListFeedsResponse>}

Calls ListFeeds.

Parameters:
Name Type Description
request google.cloud.asset.v1.IListFeedsRequest

ListFeedsRequest message or plain object

updateFeed(request, callback) → {undefined}

Calls UpdateFeed.

Parameters:
Name Type Description
request google.cloud.asset.v1.IUpdateFeedRequest

UpdateFeedRequest message or plain object

callback google.cloud.asset.v1.AssetService.UpdateFeedCallback

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

updateFeed(request) → {Promise.<google.cloud.asset.v1.Feed>}

Calls UpdateFeed.

Parameters:
Name Type Description
request google.cloud.asset.v1.IUpdateFeedRequest

UpdateFeedRequest message or plain object

Type Definitions

BatchGetAssetsHistoryCallback(error, responseopt)

Callback as used by google.cloud.asset.v1.AssetService#batchGetAssetsHistory.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.asset.v1.BatchGetAssetsHistoryResponse <optional>

BatchGetAssetsHistoryResponse

CreateFeedCallback(error, responseopt)

Callback as used by google.cloud.asset.v1.AssetService#createFeed.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.asset.v1.Feed <optional>

Feed

DeleteFeedCallback(error, responseopt)

Callback as used by google.cloud.asset.v1.AssetService#deleteFeed.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

ExportAssetsCallback(error, responseopt)

Callback as used by google.cloud.asset.v1.AssetService#exportAssets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetFeedCallback(error, responseopt)

Callback as used by google.cloud.asset.v1.AssetService#getFeed.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.asset.v1.Feed <optional>

Feed

ListFeedsCallback(error, responseopt)

Callback as used by google.cloud.asset.v1.AssetService#listFeeds.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.asset.v1.ListFeedsResponse <optional>

ListFeedsResponse

UpdateFeedCallback(error, responseopt)

Callback as used by google.cloud.asset.v1.AssetService#updateFeed.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.asset.v1.Feed <optional>

Feed