Class protos.google.cloud.kms.inventory.v1.KeyTrackingService (1.3.0)

Represents a KeyTrackingService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.kms.inventory.v1.KeyTrackingService

Package

@google-cloud/kms-inventory

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new KeyTrackingService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new KeyTrackingService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
KeyTrackingService

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

getProtectedResourcesSummary(request, callback)

public getProtectedResourcesSummary(request: google.cloud.kms.inventory.v1.IGetProtectedResourcesSummaryRequest, callback: google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummaryCallback): void;

Calls GetProtectedResourcesSummary.

Parameters
Name Description
request IGetProtectedResourcesSummaryRequest

GetProtectedResourcesSummaryRequest message or plain object

callback GetProtectedResourcesSummaryCallback

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

Returns
Type Description
void

getProtectedResourcesSummary(request)

public getProtectedResourcesSummary(request: google.cloud.kms.inventory.v1.IGetProtectedResourcesSummaryRequest): Promise<google.cloud.kms.inventory.v1.ProtectedResourcesSummary>;

Calls GetProtectedResourcesSummary.

Parameter
Name Description
request IGetProtectedResourcesSummaryRequest

GetProtectedResourcesSummaryRequest message or plain object

Returns
Type Description
Promise<google.cloud.kms.inventory.v1.ProtectedResourcesSummary>

Promise

searchProtectedResources(request, callback)

public searchProtectedResources(request: google.cloud.kms.inventory.v1.ISearchProtectedResourcesRequest, callback: google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResourcesCallback): void;

Calls SearchProtectedResources.

Parameters
Name Description
request ISearchProtectedResourcesRequest

SearchProtectedResourcesRequest message or plain object

callback SearchProtectedResourcesCallback

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

Returns
Type Description
void

searchProtectedResources(request)

public searchProtectedResources(request: google.cloud.kms.inventory.v1.ISearchProtectedResourcesRequest): Promise<google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>;

Calls SearchProtectedResources.

Parameter
Name Description
request ISearchProtectedResourcesRequest

SearchProtectedResourcesRequest message or plain object

Returns
Type Description
Promise<google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>

Promise