KMS Inventory v1 API - Class KeyTrackingService.KeyTrackingServiceClient (1.0.0)

public class KeyTrackingService.KeyTrackingServiceClient : ClientBase<KeyTrackingService.KeyTrackingServiceClient>

Reference documentation and code samples for the KMS Inventory v1 API class KeyTrackingService.KeyTrackingServiceClient.

Client for KeyTrackingService

Inheritance

object > ClientBase > ClientBaseKeyTrackingServiceKeyTrackingServiceClient > KeyTrackingService.KeyTrackingServiceClient

Namespace

Google.Cloud.Kms.Inventory.V1

Assembly

Google.Cloud.Kms.Inventory.V1.dll

Constructors

KeyTrackingServiceClient()

protected KeyTrackingServiceClient()

Protected parameterless constructor to allow creation of test doubles.

KeyTrackingServiceClient(CallInvoker)

public KeyTrackingServiceClient(CallInvoker callInvoker)

Creates a new client for KeyTrackingService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

KeyTrackingServiceClient(ChannelBase)

public KeyTrackingServiceClient(ChannelBase channel)

Creates a new client for KeyTrackingService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

KeyTrackingServiceClient(ClientBaseConfiguration)

protected KeyTrackingServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

GetProtectedResourcesSummary(GetProtectedResourcesSummaryRequest, CallOptions)

public virtual ProtectedResourcesSummary GetProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request, CallOptions options)

Returns aggregate information about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed.

Parameters
NameDescription
requestGetProtectedResourcesSummaryRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ProtectedResourcesSummary

The response received from the server.

GetProtectedResourcesSummary(GetProtectedResourcesSummaryRequest, Metadata, DateTime?, CancellationToken)

public virtual ProtectedResourcesSummary GetProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns aggregate information about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed.

Parameters
NameDescription
requestGetProtectedResourcesSummaryRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ProtectedResourcesSummary

The response received from the server.

GetProtectedResourcesSummaryAsync(GetProtectedResourcesSummaryRequest, CallOptions)

public virtual AsyncUnaryCall<ProtectedResourcesSummary> GetProtectedResourcesSummaryAsync(GetProtectedResourcesSummaryRequest request, CallOptions options)

Returns aggregate information about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed.

Parameters
NameDescription
requestGetProtectedResourcesSummaryRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallProtectedResourcesSummary

The call object.

GetProtectedResourcesSummaryAsync(GetProtectedResourcesSummaryRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ProtectedResourcesSummary> GetProtectedResourcesSummaryAsync(GetProtectedResourcesSummaryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns aggregate information about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed.

Parameters
NameDescription
requestGetProtectedResourcesSummaryRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallProtectedResourcesSummary

The call object.

NewInstance(ClientBaseConfiguration)

protected override KeyTrackingService.KeyTrackingServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
KeyTrackingServiceKeyTrackingServiceClient
Overrides

SearchProtectedResources(SearchProtectedResourcesRequest, CallOptions)

public virtual SearchProtectedResourcesResponse SearchProtectedResources(SearchProtectedResourcesRequest request, CallOptions options)

Returns metadata about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization.

Parameters
NameDescription
requestSearchProtectedResourcesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SearchProtectedResourcesResponse

The response received from the server.

SearchProtectedResources(SearchProtectedResourcesRequest, Metadata, DateTime?, CancellationToken)

public virtual SearchProtectedResourcesResponse SearchProtectedResources(SearchProtectedResourcesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns metadata about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization.

Parameters
NameDescription
requestSearchProtectedResourcesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SearchProtectedResourcesResponse

The response received from the server.

SearchProtectedResourcesAsync(SearchProtectedResourcesRequest, CallOptions)

public virtual AsyncUnaryCall<SearchProtectedResourcesResponse> SearchProtectedResourcesAsync(SearchProtectedResourcesRequest request, CallOptions options)

Returns metadata about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization.

Parameters
NameDescription
requestSearchProtectedResourcesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallSearchProtectedResourcesResponse

The call object.

SearchProtectedResourcesAsync(SearchProtectedResourcesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SearchProtectedResourcesResponse> SearchProtectedResourcesAsync(SearchProtectedResourcesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns metadata about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization.

Parameters
NameDescription
requestSearchProtectedResourcesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallSearchProtectedResourcesResponse

The call object.