AssetService

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

createFeed(request, callback) → {undefined}

Calls CreateFeed.

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

CreateFeedRequest message or plain object

callback google.cloud.asset.v1p2beta1.AssetService.CreateFeedCallback

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

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

Calls CreateFeed.

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

CreateFeedRequest message or plain object

deleteFeed(request, callback) → {undefined}

Calls DeleteFeed.

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

DeleteFeedRequest message or plain object

callback google.cloud.asset.v1p2beta1.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.v1p2beta1.IDeleteFeedRequest

DeleteFeedRequest message or plain object

getFeed(request, callback) → {undefined}

Calls GetFeed.

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

GetFeedRequest message or plain object

callback google.cloud.asset.v1p2beta1.AssetService.GetFeedCallback

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

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

Calls GetFeed.

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

GetFeedRequest message or plain object

listFeeds(request, callback) → {undefined}

Calls ListFeeds.

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

ListFeedsRequest message or plain object

callback google.cloud.asset.v1p2beta1.AssetService.ListFeedsCallback

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

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

Calls ListFeeds.

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

ListFeedsRequest message or plain object

updateFeed(request, callback) → {undefined}

Calls UpdateFeed.

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

UpdateFeedRequest message or plain object

callback google.cloud.asset.v1p2beta1.AssetService.UpdateFeedCallback

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

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

Calls UpdateFeed.

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

UpdateFeedRequest message or plain object

Type Definitions

CreateFeedCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Feed

DeleteFeedCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetFeedCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Feed

ListFeedsCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListFeedsResponse

UpdateFeedCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Feed