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

Returns:
Type Description
AssetService

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

analyzeIamPolicy(request, callback) → {undefined}

Calls AnalyzeIamPolicy.

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

AnalyzeIamPolicyRequest message or plain object

callback google.cloud.asset.v1.AssetService.AnalyzeIamPolicyCallback

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

Returns:
Type Description
undefined

analyzeIamPolicy(request) → {Promise.<google.cloud.asset.v1.AnalyzeIamPolicyResponse>}

Calls AnalyzeIamPolicy.

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

AnalyzeIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.AnalyzeIamPolicyResponse>

Promise

analyzeIamPolicyLongrunning(request, callback) → {undefined}

Calls AnalyzeIamPolicyLongrunning.

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

AnalyzeIamPolicyLongrunningRequest message or plain object

callback google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunningCallback

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

Returns:
Type Description
undefined

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

Calls AnalyzeIamPolicyLongrunning.

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

AnalyzeIamPolicyLongrunningRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

analyzeMove(request, callback) → {undefined}

Calls AnalyzeMove.

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

AnalyzeMoveRequest message or plain object

callback google.cloud.asset.v1.AssetService.AnalyzeMoveCallback

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

Returns:
Type Description
undefined

analyzeMove(request) → {Promise.<google.cloud.asset.v1.AnalyzeMoveResponse>}

Calls AnalyzeMove.

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

AnalyzeMoveRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.AnalyzeMoveResponse>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.asset.v1.BatchGetAssetsHistoryResponse>

Promise

batchGetEffectiveIamPolicies(request, callback) → {undefined}

Calls BatchGetEffectiveIamPolicies.

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

BatchGetEffectiveIamPoliciesRequest message or plain object

callback google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPoliciesCallback

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

Returns:
Type Description
undefined

batchGetEffectiveIamPolicies(request) → {Promise.<google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>}

Calls BatchGetEffectiveIamPolicies.

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

BatchGetEffectiveIamPoliciesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.asset.v1.Feed>

Promise

createSavedQuery(request, callback) → {undefined}

Calls CreateSavedQuery.

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

CreateSavedQueryRequest message or plain object

callback google.cloud.asset.v1.AssetService.CreateSavedQueryCallback

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

Returns:
Type Description
undefined

createSavedQuery(request) → {Promise.<google.cloud.asset.v1.SavedQuery>}

Calls CreateSavedQuery.

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

CreateSavedQueryRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.SavedQuery>

Promise

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

Returns:
Type Description
undefined

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

Calls DeleteFeed.

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

DeleteFeedRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteSavedQuery(request, callback) → {undefined}

Calls DeleteSavedQuery.

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

DeleteSavedQueryRequest message or plain object

callback google.cloud.asset.v1.AssetService.DeleteSavedQueryCallback

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

Returns:
Type Description
undefined

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

Calls DeleteSavedQuery.

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

DeleteSavedQueryRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

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

Returns:
Type Description
undefined

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

Calls ExportAssets.

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

ExportAssetsRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.asset.v1.Feed>

Promise

getSavedQuery(request, callback) → {undefined}

Calls GetSavedQuery.

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

GetSavedQueryRequest message or plain object

callback google.cloud.asset.v1.AssetService.GetSavedQueryCallback

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

Returns:
Type Description
undefined

getSavedQuery(request) → {Promise.<google.cloud.asset.v1.SavedQuery>}

Calls GetSavedQuery.

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

GetSavedQueryRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.SavedQuery>

Promise

listAssets(request, callback) → {undefined}

Calls ListAssets.

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

ListAssetsRequest message or plain object

callback google.cloud.asset.v1.AssetService.ListAssetsCallback

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

Returns:
Type Description
undefined

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

Calls ListAssets.

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

ListAssetsRequest message or plain object

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

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.asset.v1.ListFeedsResponse>

Promise

listSavedQueries(request, callback) → {undefined}

Calls ListSavedQueries.

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

ListSavedQueriesRequest message or plain object

callback google.cloud.asset.v1.AssetService.ListSavedQueriesCallback

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

Returns:
Type Description
undefined

listSavedQueries(request) → {Promise.<google.cloud.asset.v1.ListSavedQueriesResponse>}

Calls ListSavedQueries.

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

ListSavedQueriesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.ListSavedQueriesResponse>

Promise

queryAssets(request, callback) → {undefined}

Calls QueryAssets.

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

QueryAssetsRequest message or plain object

callback google.cloud.asset.v1.AssetService.QueryAssetsCallback

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

Returns:
Type Description
undefined

queryAssets(request) → {Promise.<google.cloud.asset.v1.QueryAssetsResponse>}

Calls QueryAssets.

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

QueryAssetsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.QueryAssetsResponse>

Promise

searchAllIamPolicies(request, callback) → {undefined}

Calls SearchAllIamPolicies.

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

SearchAllIamPoliciesRequest message or plain object

callback google.cloud.asset.v1.AssetService.SearchAllIamPoliciesCallback

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

Returns:
Type Description
undefined

searchAllIamPolicies(request) → {Promise.<google.cloud.asset.v1.SearchAllIamPoliciesResponse>}

Calls SearchAllIamPolicies.

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

SearchAllIamPoliciesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.SearchAllIamPoliciesResponse>

Promise

searchAllResources(request, callback) → {undefined}

Calls SearchAllResources.

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

SearchAllResourcesRequest message or plain object

callback google.cloud.asset.v1.AssetService.SearchAllResourcesCallback

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

Returns:
Type Description
undefined

searchAllResources(request) → {Promise.<google.cloud.asset.v1.SearchAllResourcesResponse>}

Calls SearchAllResources.

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

SearchAllResourcesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.SearchAllResourcesResponse>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.asset.v1.Feed>

Promise

updateSavedQuery(request, callback) → {undefined}

Calls UpdateSavedQuery.

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

UpdateSavedQueryRequest message or plain object

callback google.cloud.asset.v1.AssetService.UpdateSavedQueryCallback

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

Returns:
Type Description
undefined

updateSavedQuery(request) → {Promise.<google.cloud.asset.v1.SavedQuery>}

Calls UpdateSavedQuery.

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

UpdateSavedQueryRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.asset.v1.SavedQuery>

Promise

Type Definitions

AnalyzeIamPolicyCallback(error, responseopt)

Callback as used by analyzeIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

AnalyzeIamPolicyResponse

AnalyzeIamPolicyLongrunningCallback(error, responseopt)

Callback as used by analyzeIamPolicyLongrunning.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

AnalyzeMoveCallback(error, responseopt)

Callback as used by analyzeMove.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

AnalyzeMoveResponse

BatchGetAssetsHistoryCallback(error, responseopt)

Callback as used by batchGetAssetsHistory.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

BatchGetAssetsHistoryResponse

BatchGetEffectiveIamPoliciesCallback(error, responseopt)

Callback as used by batchGetEffectiveIamPolicies.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

BatchGetEffectiveIamPoliciesResponse

CreateFeedCallback(error, responseopt)

Callback as used by createFeed.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Feed

CreateSavedQueryCallback(error, responseopt)

Callback as used by createSavedQuery.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SavedQuery

DeleteFeedCallback(error, responseopt)

Callback as used by deleteFeed.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteSavedQueryCallback(error, responseopt)

Callback as used by deleteSavedQuery.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

ExportAssetsCallback(error, responseopt)

Callback as used by 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 getFeed.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Feed

GetSavedQueryCallback(error, responseopt)

Callback as used by getSavedQuery.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SavedQuery

ListAssetsCallback(error, responseopt)

Callback as used by listAssets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListAssetsResponse

ListFeedsCallback(error, responseopt)

Callback as used by listFeeds.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListFeedsResponse

ListSavedQueriesCallback(error, responseopt)

Callback as used by listSavedQueries.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListSavedQueriesResponse

QueryAssetsCallback(error, responseopt)

Callback as used by queryAssets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

QueryAssetsResponse

SearchAllIamPoliciesCallback(error, responseopt)

Callback as used by searchAllIamPolicies.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SearchAllIamPoliciesResponse

SearchAllResourcesCallback(error, responseopt)

Callback as used by searchAllResources.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SearchAllResourcesResponse

UpdateFeedCallback(error, responseopt)

Callback as used by updateFeed.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Feed

UpdateSavedQueryCallback(error, responseopt)

Callback as used by updateSavedQuery.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SavedQuery