Confidential Computing v1alpha1 API - Class ConfidentialComputing.ConfidentialComputingClient (1.0.0-alpha05)

public class ConfidentialComputing.ConfidentialComputingClient : ClientBase<ConfidentialComputing.ConfidentialComputingClient>

Reference documentation and code samples for the Confidential Computing v1alpha1 API class ConfidentialComputing.ConfidentialComputingClient.

Client for ConfidentialComputing

Inheritance

object > ClientBase > ClientBaseConfidentialComputingConfidentialComputingClient > ConfidentialComputing.ConfidentialComputingClient

Namespace

Google.Cloud.ConfidentialComputing.V1Alpha1

Assembly

Google.Cloud.ConfidentialComputing.V1Alpha1.dll

Constructors

ConfidentialComputingClient()

protected ConfidentialComputingClient()

Protected parameterless constructor to allow creation of test doubles.

ConfidentialComputingClient(CallInvoker)

public ConfidentialComputingClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ConfidentialComputingClient(ChannelBase)

public ConfidentialComputingClient(ChannelBase channel)

Creates a new client for ConfidentialComputing

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ConfidentialComputingClient(ClientBaseConfiguration)

protected ConfidentialComputingClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateChallenge(CreateChallengeRequest, CallOptions)

public virtual Challenge CreateChallenge(CreateChallengeRequest request, CallOptions options)

Creates a new Challenge in a given project and location.

Parameters
Name Description
request CreateChallengeRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Challenge

The response received from the server.

CreateChallenge(CreateChallengeRequest, Metadata, DateTime?, CancellationToken)

public virtual Challenge CreateChallenge(CreateChallengeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new Challenge in a given project and location.

Parameters
Name Description
request CreateChallengeRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Challenge

The response received from the server.

CreateChallengeAsync(CreateChallengeRequest, CallOptions)

public virtual AsyncUnaryCall<Challenge> CreateChallengeAsync(CreateChallengeRequest request, CallOptions options)

Creates a new Challenge in a given project and location.

Parameters
Name Description
request CreateChallengeRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallChallenge

The call object.

CreateChallengeAsync(CreateChallengeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Challenge> CreateChallengeAsync(CreateChallengeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new Challenge in a given project and location.

Parameters
Name Description
request CreateChallengeRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallChallenge

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

NewInstance(ClientBaseConfiguration)

protected override ConfidentialComputing.ConfidentialComputingClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ConfidentialComputingConfidentialComputingClient
Overrides

VerifyAttestation(VerifyAttestationRequest, CallOptions)

public virtual VerifyAttestationResponse VerifyAttestation(VerifyAttestationRequest request, CallOptions options)

Verifies the provided attestation info, returning a signed OIDC token.

Parameters
Name Description
request VerifyAttestationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
VerifyAttestationResponse

The response received from the server.

VerifyAttestation(VerifyAttestationRequest, Metadata, DateTime?, CancellationToken)

public virtual VerifyAttestationResponse VerifyAttestation(VerifyAttestationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Verifies the provided attestation info, returning a signed OIDC token.

Parameters
Name Description
request VerifyAttestationRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
VerifyAttestationResponse

The response received from the server.

VerifyAttestationAsync(VerifyAttestationRequest, CallOptions)

public virtual AsyncUnaryCall<VerifyAttestationResponse> VerifyAttestationAsync(VerifyAttestationRequest request, CallOptions options)

Verifies the provided attestation info, returning a signed OIDC token.

Parameters
Name Description
request VerifyAttestationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallVerifyAttestationResponse

The call object.

VerifyAttestationAsync(VerifyAttestationRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<VerifyAttestationResponse> VerifyAttestationAsync(VerifyAttestationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Verifies the provided attestation info, returning a signed OIDC token.

Parameters
Name Description
request VerifyAttestationRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallVerifyAttestationResponse

The call object.