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

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 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
TypeDescription
void

analyzeIamPolicy(request)

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

Calls AnalyzeIamPolicy.

Parameter
NameDescription
request google.cloud.asset.v1.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 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
TypeDescription
void

analyzeIamPolicyLongrunning(request)

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

Calls AnalyzeIamPolicyLongrunning.

Parameter
NameDescription
request google.cloud.asset.v1.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 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
TypeDescription
void

analyzeMove(request)

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

Calls AnalyzeMove.

Parameter
NameDescription
request google.cloud.asset.v1.IAnalyzeMoveRequest

AnalyzeMoveRequest message or plain object

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

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 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
TypeDescription
void

batchGetAssetsHistory(request)

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

Calls BatchGetAssetsHistory.

Parameter
NameDescription
request google.cloud.asset.v1.IBatchGetAssetsHistoryRequest

BatchGetAssetsHistoryRequest message or plain object

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

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

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

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

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

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

searchAllResources(request)

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

Calls SearchAllResources.

Parameter
NameDescription
request google.cloud.asset.v1.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 google.cloud.asset.v1.AssetService.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