Class protos.google.cloud.asset.v1.AssetService (5.5.0)

Represents an AssetService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.asset.v1.AssetService

Package

@google-cloud/asset

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new AssetService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

analyzeIamPolicy(request, callback)

public analyzeIamPolicy(request: google.cloud.asset.v1.IAnalyzeIamPolicyRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeIamPolicyCallback): void;

Calls AnalyzeIamPolicy.

Parameters
NameDescription
request IAnalyzeIamPolicyRequest

AnalyzeIamPolicyRequest message or plain object

callback AnalyzeIamPolicyCallback

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

Returns
TypeDescription
void

analyzeIamPolicy(request)

public analyzeIamPolicy(request: google.cloud.asset.v1.IAnalyzeIamPolicyRequest): Promise<google.cloud.asset.v1.AnalyzeIamPolicyResponse>;

Calls AnalyzeIamPolicy.

Parameter
NameDescription
request IAnalyzeIamPolicyRequest

AnalyzeIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.AnalyzeIamPolicyResponse>

Promise

analyzeIamPolicyLongrunning(request, callback)

public analyzeIamPolicyLongrunning(request: google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunningCallback): void;

Calls AnalyzeIamPolicyLongrunning.

Parameters
NameDescription
request IAnalyzeIamPolicyLongrunningRequest

AnalyzeIamPolicyLongrunningRequest message or plain object

callback AnalyzeIamPolicyLongrunningCallback

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

Returns
TypeDescription
void

analyzeIamPolicyLongrunning(request)

public analyzeIamPolicyLongrunning(request: google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest): Promise<google.longrunning.Operation>;

Calls AnalyzeIamPolicyLongrunning.

Parameter
NameDescription
request IAnalyzeIamPolicyLongrunningRequest

AnalyzeIamPolicyLongrunningRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

analyzeMove(request, callback)

public analyzeMove(request: google.cloud.asset.v1.IAnalyzeMoveRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeMoveCallback): void;

Calls AnalyzeMove.

Parameters
NameDescription
request IAnalyzeMoveRequest

AnalyzeMoveRequest message or plain object

callback AnalyzeMoveCallback

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

Returns
TypeDescription
void

analyzeMove(request)

public analyzeMove(request: google.cloud.asset.v1.IAnalyzeMoveRequest): Promise<google.cloud.asset.v1.AnalyzeMoveResponse>;

Calls AnalyzeMove.

Parameter
NameDescription
request IAnalyzeMoveRequest

AnalyzeMoveRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.AnalyzeMoveResponse>

Promise

analyzeOrgPolicies(request, callback)

public analyzeOrgPolicies(request: google.cloud.asset.v1.IAnalyzeOrgPoliciesRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeOrgPoliciesCallback): void;

Calls AnalyzeOrgPolicies.

Parameters
NameDescription
request IAnalyzeOrgPoliciesRequest

AnalyzeOrgPoliciesRequest message or plain object

callback AnalyzeOrgPoliciesCallback

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

Returns
TypeDescription
void

analyzeOrgPolicies(request)

public analyzeOrgPolicies(request: google.cloud.asset.v1.IAnalyzeOrgPoliciesRequest): Promise<google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>;

Calls AnalyzeOrgPolicies.

Parameter
NameDescription
request IAnalyzeOrgPoliciesRequest

AnalyzeOrgPoliciesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>

Promise

analyzeOrgPolicyGovernedAssets(request, callback)

public analyzeOrgPolicyGovernedAssets(request: google.cloud.asset.v1.IAnalyzeOrgPolicyGovernedAssetsRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedAssetsCallback): void;

Calls AnalyzeOrgPolicyGovernedAssets.

Parameters
NameDescription
request IAnalyzeOrgPolicyGovernedAssetsRequest

AnalyzeOrgPolicyGovernedAssetsRequest message or plain object

callback AnalyzeOrgPolicyGovernedAssetsCallback

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

Returns
TypeDescription
void

analyzeOrgPolicyGovernedAssets(request)

public analyzeOrgPolicyGovernedAssets(request: google.cloud.asset.v1.IAnalyzeOrgPolicyGovernedAssetsRequest): Promise<google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>;

Calls AnalyzeOrgPolicyGovernedAssets.

Parameter
NameDescription
request IAnalyzeOrgPolicyGovernedAssetsRequest

AnalyzeOrgPolicyGovernedAssetsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>

Promise

analyzeOrgPolicyGovernedContainers(request, callback)

public analyzeOrgPolicyGovernedContainers(request: google.cloud.asset.v1.IAnalyzeOrgPolicyGovernedContainersRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedContainersCallback): void;

Calls AnalyzeOrgPolicyGovernedContainers.

Parameters
NameDescription
request IAnalyzeOrgPolicyGovernedContainersRequest

AnalyzeOrgPolicyGovernedContainersRequest message or plain object

callback AnalyzeOrgPolicyGovernedContainersCallback

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

Returns
TypeDescription
void

analyzeOrgPolicyGovernedContainers(request)

public analyzeOrgPolicyGovernedContainers(request: google.cloud.asset.v1.IAnalyzeOrgPolicyGovernedContainersRequest): Promise<google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>;

Calls AnalyzeOrgPolicyGovernedContainers.

Parameter
NameDescription
request IAnalyzeOrgPolicyGovernedContainersRequest

AnalyzeOrgPolicyGovernedContainersRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>

Promise

batchGetAssetsHistory(request, callback)

public batchGetAssetsHistory(request: google.cloud.asset.v1.IBatchGetAssetsHistoryRequest, callback: google.cloud.asset.v1.AssetService.BatchGetAssetsHistoryCallback): void;

Calls BatchGetAssetsHistory.

Parameters
NameDescription
request IBatchGetAssetsHistoryRequest

BatchGetAssetsHistoryRequest message or plain object

callback BatchGetAssetsHistoryCallback

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

Returns
TypeDescription
void

batchGetAssetsHistory(request)

public batchGetAssetsHistory(request: google.cloud.asset.v1.IBatchGetAssetsHistoryRequest): Promise<google.cloud.asset.v1.BatchGetAssetsHistoryResponse>;

Calls BatchGetAssetsHistory.

Parameter
NameDescription
request IBatchGetAssetsHistoryRequest

BatchGetAssetsHistoryRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.BatchGetAssetsHistoryResponse>

Promise

batchGetEffectiveIamPolicies(request, callback)

public batchGetEffectiveIamPolicies(request: google.cloud.asset.v1.IBatchGetEffectiveIamPoliciesRequest, callback: google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPoliciesCallback): void;

Calls BatchGetEffectiveIamPolicies.

Parameters
NameDescription
request IBatchGetEffectiveIamPoliciesRequest

BatchGetEffectiveIamPoliciesRequest message or plain object

callback BatchGetEffectiveIamPoliciesCallback

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

Returns
TypeDescription
void

batchGetEffectiveIamPolicies(request)

public batchGetEffectiveIamPolicies(request: google.cloud.asset.v1.IBatchGetEffectiveIamPoliciesRequest): Promise<google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>;

Calls BatchGetEffectiveIamPolicies.

Parameter
NameDescription
request IBatchGetEffectiveIamPoliciesRequest

BatchGetEffectiveIamPoliciesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AssetService;

Creates new AssetService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
AssetService

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

createFeed(request, callback)

public createFeed(request: google.cloud.asset.v1.ICreateFeedRequest, callback: google.cloud.asset.v1.AssetService.CreateFeedCallback): void;

Calls CreateFeed.

Parameters
NameDescription
request ICreateFeedRequest

CreateFeedRequest message or plain object

callback CreateFeedCallback

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

Returns
TypeDescription
void

createFeed(request)

public createFeed(request: google.cloud.asset.v1.ICreateFeedRequest): Promise<google.cloud.asset.v1.Feed>;

Calls CreateFeed.

Parameter
NameDescription
request ICreateFeedRequest

CreateFeedRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.Feed>

Promise

createSavedQuery(request, callback)

public createSavedQuery(request: google.cloud.asset.v1.ICreateSavedQueryRequest, callback: google.cloud.asset.v1.AssetService.CreateSavedQueryCallback): void;

Calls CreateSavedQuery.

Parameters
NameDescription
request ICreateSavedQueryRequest

CreateSavedQueryRequest message or plain object

callback CreateSavedQueryCallback

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

Returns
TypeDescription
void

createSavedQuery(request)

public createSavedQuery(request: google.cloud.asset.v1.ICreateSavedQueryRequest): Promise<google.cloud.asset.v1.SavedQuery>;

Calls CreateSavedQuery.

Parameter
NameDescription
request ICreateSavedQueryRequest

CreateSavedQueryRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.SavedQuery>

Promise

deleteFeed(request, callback)

public deleteFeed(request: google.cloud.asset.v1.IDeleteFeedRequest, callback: google.cloud.asset.v1.AssetService.DeleteFeedCallback): void;

Calls DeleteFeed.

Parameters
NameDescription
request IDeleteFeedRequest

DeleteFeedRequest message or plain object

callback DeleteFeedCallback

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

Returns
TypeDescription
void

deleteFeed(request)

public deleteFeed(request: google.cloud.asset.v1.IDeleteFeedRequest): Promise<google.protobuf.Empty>;

Calls DeleteFeed.

Parameter
NameDescription
request IDeleteFeedRequest

DeleteFeedRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteSavedQuery(request, callback)

public deleteSavedQuery(request: google.cloud.asset.v1.IDeleteSavedQueryRequest, callback: google.cloud.asset.v1.AssetService.DeleteSavedQueryCallback): void;

Calls DeleteSavedQuery.

Parameters
NameDescription
request IDeleteSavedQueryRequest

DeleteSavedQueryRequest message or plain object

callback DeleteSavedQueryCallback

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

Returns
TypeDescription
void

deleteSavedQuery(request)

public deleteSavedQuery(request: google.cloud.asset.v1.IDeleteSavedQueryRequest): Promise<google.protobuf.Empty>;

Calls DeleteSavedQuery.

Parameter
NameDescription
request IDeleteSavedQueryRequest

DeleteSavedQueryRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

exportAssets(request, callback)

public exportAssets(request: google.cloud.asset.v1.IExportAssetsRequest, callback: google.cloud.asset.v1.AssetService.ExportAssetsCallback): void;

Calls ExportAssets.

Parameters
NameDescription
request IExportAssetsRequest

ExportAssetsRequest message or plain object

callback ExportAssetsCallback

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

Returns
TypeDescription
void

exportAssets(request)

public exportAssets(request: google.cloud.asset.v1.IExportAssetsRequest): Promise<google.longrunning.Operation>;

Calls ExportAssets.

Parameter
NameDescription
request IExportAssetsRequest

ExportAssetsRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getFeed(request, callback)

public getFeed(request: google.cloud.asset.v1.IGetFeedRequest, callback: google.cloud.asset.v1.AssetService.GetFeedCallback): void;

Calls GetFeed.

Parameters
NameDescription
request IGetFeedRequest

GetFeedRequest message or plain object

callback GetFeedCallback

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

Returns
TypeDescription
void

getFeed(request)

public getFeed(request: google.cloud.asset.v1.IGetFeedRequest): Promise<google.cloud.asset.v1.Feed>;

Calls GetFeed.

Parameter
NameDescription
request IGetFeedRequest

GetFeedRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.Feed>

Promise

getSavedQuery(request, callback)

public getSavedQuery(request: google.cloud.asset.v1.IGetSavedQueryRequest, callback: google.cloud.asset.v1.AssetService.GetSavedQueryCallback): void;

Calls GetSavedQuery.

Parameters
NameDescription
request IGetSavedQueryRequest

GetSavedQueryRequest message or plain object

callback GetSavedQueryCallback

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

Returns
TypeDescription
void

getSavedQuery(request)

public getSavedQuery(request: google.cloud.asset.v1.IGetSavedQueryRequest): Promise<google.cloud.asset.v1.SavedQuery>;

Calls GetSavedQuery.

Parameter
NameDescription
request IGetSavedQueryRequest

GetSavedQueryRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.SavedQuery>

Promise

listAssets(request, callback)

public listAssets(request: google.cloud.asset.v1.IListAssetsRequest, callback: google.cloud.asset.v1.AssetService.ListAssetsCallback): void;

Calls ListAssets.

Parameters
NameDescription
request IListAssetsRequest

ListAssetsRequest message or plain object

callback ListAssetsCallback

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

Returns
TypeDescription
void

listAssets(request)

public listAssets(request: google.cloud.asset.v1.IListAssetsRequest): Promise<google.cloud.asset.v1.ListAssetsResponse>;

Calls ListAssets.

Parameter
NameDescription
request IListAssetsRequest

ListAssetsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.ListAssetsResponse>

Promise

listFeeds(request, callback)

public listFeeds(request: google.cloud.asset.v1.IListFeedsRequest, callback: google.cloud.asset.v1.AssetService.ListFeedsCallback): void;

Calls ListFeeds.

Parameters
NameDescription
request IListFeedsRequest

ListFeedsRequest message or plain object

callback ListFeedsCallback

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

Returns
TypeDescription
void

listFeeds(request)

public listFeeds(request: google.cloud.asset.v1.IListFeedsRequest): Promise<google.cloud.asset.v1.ListFeedsResponse>;

Calls ListFeeds.

Parameter
NameDescription
request IListFeedsRequest

ListFeedsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.ListFeedsResponse>

Promise

listSavedQueries(request, callback)

public listSavedQueries(request: google.cloud.asset.v1.IListSavedQueriesRequest, callback: google.cloud.asset.v1.AssetService.ListSavedQueriesCallback): void;

Calls ListSavedQueries.

Parameters
NameDescription
request IListSavedQueriesRequest

ListSavedQueriesRequest message or plain object

callback ListSavedQueriesCallback

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

Returns
TypeDescription
void

listSavedQueries(request)

public listSavedQueries(request: google.cloud.asset.v1.IListSavedQueriesRequest): Promise<google.cloud.asset.v1.ListSavedQueriesResponse>;

Calls ListSavedQueries.

Parameter
NameDescription
request IListSavedQueriesRequest

ListSavedQueriesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.ListSavedQueriesResponse>

Promise

queryAssets(request, callback)

public queryAssets(request: google.cloud.asset.v1.IQueryAssetsRequest, callback: google.cloud.asset.v1.AssetService.QueryAssetsCallback): void;

Calls QueryAssets.

Parameters
NameDescription
request IQueryAssetsRequest

QueryAssetsRequest message or plain object

callback QueryAssetsCallback

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

Returns
TypeDescription
void

queryAssets(request)

public queryAssets(request: google.cloud.asset.v1.IQueryAssetsRequest): Promise<google.cloud.asset.v1.QueryAssetsResponse>;

Calls QueryAssets.

Parameter
NameDescription
request IQueryAssetsRequest

QueryAssetsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.QueryAssetsResponse>

Promise

searchAllIamPolicies(request, callback)

public searchAllIamPolicies(request: google.cloud.asset.v1.ISearchAllIamPoliciesRequest, callback: google.cloud.asset.v1.AssetService.SearchAllIamPoliciesCallback): void;

Calls SearchAllIamPolicies.

Parameters
NameDescription
request ISearchAllIamPoliciesRequest

SearchAllIamPoliciesRequest message or plain object

callback SearchAllIamPoliciesCallback

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

Returns
TypeDescription
void

searchAllIamPolicies(request)

public searchAllIamPolicies(request: google.cloud.asset.v1.ISearchAllIamPoliciesRequest): Promise<google.cloud.asset.v1.SearchAllIamPoliciesResponse>;

Calls SearchAllIamPolicies.

Parameter
NameDescription
request ISearchAllIamPoliciesRequest

SearchAllIamPoliciesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.SearchAllIamPoliciesResponse>

Promise

searchAllResources(request, callback)

public searchAllResources(request: google.cloud.asset.v1.ISearchAllResourcesRequest, callback: google.cloud.asset.v1.AssetService.SearchAllResourcesCallback): void;

Calls SearchAllResources.

Parameters
NameDescription
request ISearchAllResourcesRequest

SearchAllResourcesRequest message or plain object

callback SearchAllResourcesCallback

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

Returns
TypeDescription
void

searchAllResources(request)

public searchAllResources(request: google.cloud.asset.v1.ISearchAllResourcesRequest): Promise<google.cloud.asset.v1.SearchAllResourcesResponse>;

Calls SearchAllResources.

Parameter
NameDescription
request ISearchAllResourcesRequest

SearchAllResourcesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.SearchAllResourcesResponse>

Promise

updateFeed(request, callback)

public updateFeed(request: google.cloud.asset.v1.IUpdateFeedRequest, callback: google.cloud.asset.v1.AssetService.UpdateFeedCallback): void;

Calls UpdateFeed.

Parameters
NameDescription
request IUpdateFeedRequest

UpdateFeedRequest message or plain object

callback UpdateFeedCallback

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

Returns
TypeDescription
void

updateFeed(request)

public updateFeed(request: google.cloud.asset.v1.IUpdateFeedRequest): Promise<google.cloud.asset.v1.Feed>;

Calls UpdateFeed.

Parameter
NameDescription
request IUpdateFeedRequest

UpdateFeedRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.Feed>

Promise

updateSavedQuery(request, callback)

public updateSavedQuery(request: google.cloud.asset.v1.IUpdateSavedQueryRequest, callback: google.cloud.asset.v1.AssetService.UpdateSavedQueryCallback): void;

Calls UpdateSavedQuery.

Parameters
NameDescription
request IUpdateSavedQueryRequest

UpdateSavedQueryRequest message or plain object

callback UpdateSavedQueryCallback

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

Returns
TypeDescription
void

updateSavedQuery(request)

public updateSavedQuery(request: google.cloud.asset.v1.IUpdateSavedQueryRequest): Promise<google.cloud.asset.v1.SavedQuery>;

Calls UpdateSavedQuery.

Parameter
NameDescription
request IUpdateSavedQueryRequest

UpdateSavedQueryRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1.SavedQuery>

Promise