# Confidential Computing v1alpha1 API - Class ConfidentialComputingClient (1.0.0-alpha06)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-alpha06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient)
- [1.0.0-alpha05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/1.0.0-alpha05/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient)

    public abstract class ConfidentialComputingClient

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

ConfidentialComputing client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ConfidentialComputingClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[ConfidentialComputingClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClientImpl)

## Namespace

[Google.Cloud.ConfidentialComputing.V1Alpha1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1)

## Assembly

Google.Cloud.ConfidentialComputing.V1Alpha1.dll

## Remarks

Service describing handlers for resources

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the ConfidentialComputing service, which is a host of
"confidentialcomputing.googleapis.com" and a port of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default ConfidentialComputing scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default ConfidentialComputing scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

<br />

### GrpcClient

    public virtual ConfidentialComputing.ConfidentialComputingClient GrpcClient { get; }

The underlying gRPC ConfidentialComputing client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputinghttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputing.ConfidentialComputingClient` |   |

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static ConfidentialComputingClient Create()

Synchronously creates a [ConfidentialComputingClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient) using the default credentials, endpoint
and settings. To specify custom credentials or other settings, use
[ConfidentialComputingClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient` | The created [ConfidentialComputingClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient). |

### CreateAsync(CancellationToken)

    public static Task<ConfidentialComputingClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [ConfidentialComputingClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient) using the default credentials, endpoint
and settings. To specify custom credentials or other settings, use
[ConfidentialComputingClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient` | The task representing the created [ConfidentialComputingClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient). |

### CreateChallenge(LocationName, Challenge, CallSettings)

    public virtual Challenge CreateChallenge(LocationName parent, Challenge challenge, CallSettings callSettings = null)

Creates a new Challenge in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The resource name of the location where the Challenge will be used, in the format `projects/*/locations/*`. |
| `challenge` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` | The RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = ConfidentialComputingClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Challenge challenge = new Challenge();
    // Make the request
    Challenge response = confidentialComputingClient.CreateChallenge(parent, challenge);

### CreateChallenge(CreateChallengeRequest, CallSettings)

    public virtual Challenge CreateChallenge(CreateChallengeRequest request, CallSettings callSettings = null)

Creates a new Challenge in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.CreateChallengeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` | The RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = ConfidentialComputingClient.Create();
    // Initialize request argument(s)
    CreateChallengeRequest request = new CreateChallengeRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Challenge = new Challenge(),
    };
    // Make the request
    Challenge response = confidentialComputingClient.CreateChallenge(request);

### CreateChallenge(string, Challenge, CallSettings)

    public virtual Challenge CreateChallenge(string parent, Challenge challenge, CallSettings callSettings = null)

Creates a new Challenge in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the location where the Challenge will be used, in the format `projects/*/locations/*`. |
| `challenge` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` | The RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = ConfidentialComputingClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Challenge challenge = new Challenge();
    // Make the request
    Challenge response = confidentialComputingClient.CreateChallenge(parent, challenge);

### CreateChallengeAsync(LocationName, Challenge, CallSettings)

    public virtual Task<Challenge> CreateChallengeAsync(LocationName parent, Challenge challenge, CallSettings callSettings = null)

Creates a new Challenge in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The resource name of the location where the Challenge will be used, in the format `projects/*/locations/*`. |
| `challenge` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` | A Task containing the RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Challenge challenge = new Challenge();
    // Make the request
    Challenge response = await confidentialComputingClient.CreateChallengeAsync(parent, challenge);

### CreateChallengeAsync(LocationName, Challenge, CancellationToken)

    public virtual Task<Challenge> CreateChallengeAsync(LocationName parent, Challenge challenge, CancellationToken cancellationToken)

Creates a new Challenge in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The resource name of the location where the Challenge will be used, in the format `projects/*/locations/*`. |
| `challenge` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` | A Task containing the RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Challenge challenge = new Challenge();
    // Make the request
    Challenge response = await confidentialComputingClient.CreateChallengeAsync(parent, challenge);

### CreateChallengeAsync(CreateChallengeRequest, CallSettings)

    public virtual Task<Challenge> CreateChallengeAsync(CreateChallengeRequest request, CallSettings callSettings = null)

Creates a new Challenge in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.CreateChallengeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` | A Task containing the RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync();
    // Initialize request argument(s)
    CreateChallengeRequest request = new CreateChallengeRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Challenge = new Challenge(),
    };
    // Make the request
    Challenge response = await confidentialComputingClient.CreateChallengeAsync(request);

### CreateChallengeAsync(CreateChallengeRequest, CancellationToken)

    public virtual Task<Challenge> CreateChallengeAsync(CreateChallengeRequest request, CancellationToken cancellationToken)

Creates a new Challenge in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.CreateChallengeRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` | A Task containing the RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync();
    // Initialize request argument(s)
    CreateChallengeRequest request = new CreateChallengeRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Challenge = new Challenge(),
    };
    // Make the request
    Challenge response = await confidentialComputingClient.CreateChallengeAsync(request);

### CreateChallengeAsync(string, Challenge, CallSettings)

    public virtual Task<Challenge> CreateChallengeAsync(string parent, Challenge challenge, CallSettings callSettings = null)

Creates a new Challenge in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the location where the Challenge will be used, in the format `projects/*/locations/*`. |
| `challenge` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` | A Task containing the RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Challenge challenge = new Challenge();
    // Make the request
    Challenge response = await confidentialComputingClient.CreateChallengeAsync(parent, challenge);

### CreateChallengeAsync(string, Challenge, CancellationToken)

    public virtual Task<Challenge> CreateChallengeAsync(string parent, Challenge challenge, CancellationToken cancellationToken)

Creates a new Challenge in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the location where the Challenge will be used, in the format `projects/*/locations/*`. |
| `challenge` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.Challenge` | A Task containing the RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Challenge challenge = new Challenge();
    // Make the request
    Challenge response = await confidentialComputingClient.CreateChallengeAsync(parent, challenge);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient#Google_Cloud_ConfidentialComputing_V1Alpha1_ConfidentialComputingClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient#Google_Cloud_ConfidentialComputing_V1Alpha1_ConfidentialComputingClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient#Google_Cloud_ConfidentialComputing_V1Alpha1_ConfidentialComputingClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.ConfidentialComputingClient#Google_Cloud_ConfidentialComputing_V1Alpha1_ConfidentialComputingClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### VerifyAttestation(VerifyAttestationRequest, CallSettings)

    public virtual VerifyAttestationResponse VerifyAttestation(VerifyAttestationRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.VerifyAttestationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.VerifyAttestationResponse` | The RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = ConfidentialComputingClient.Create();
    // Initialize request argument(s)
    VerifyAttestationRequest request = new VerifyAttestationRequest
    {
        ChallengeAsChallengeName = ChallengeName.FromProjectLocationUuid("[PROJECT]", "[LOCATION]", "[UUID]"),
        GcpCredentials = new GcpCredentials(),
        TpmAttestation = new TpmAttestation(),
    };
    // Make the request
    VerifyAttestationResponse response = confidentialComputingClient.VerifyAttestation(request);

### VerifyAttestationAsync(VerifyAttestationRequest, CallSettings)

    public virtual Task<VerifyAttestationResponse> VerifyAttestationAsync(VerifyAttestationRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.VerifyAttestationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.VerifyAttestationResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync();
    // Initialize request argument(s)
    VerifyAttestationRequest request = new VerifyAttestationRequest
    {
        ChallengeAsChallengeName = ChallengeName.FromProjectLocationUuid("[PROJECT]", "[LOCATION]", "[UUID]"),
        GcpCredentials = new GcpCredentials(),
        TpmAttestation = new TpmAttestation(),
    };
    // Make the request
    VerifyAttestationResponse response = await confidentialComputingClient.VerifyAttestationAsync(request);

### VerifyAttestationAsync(VerifyAttestationRequest, CancellationToken)

    public virtual Task<VerifyAttestationResponse> VerifyAttestationAsync(VerifyAttestationRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.VerifyAttestationRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1Alpha1/latest/Google.Cloud.ConfidentialComputing.V1Alpha1.VerifyAttestationResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync();
    // Initialize request argument(s)
    VerifyAttestationRequest request = new VerifyAttestationRequest
    {
        ChallengeAsChallengeName = ChallengeName.FromProjectLocationUuid("[PROJECT]", "[LOCATION]", "[UUID]"),
        GcpCredentials = new GcpCredentials(),
        TpmAttestation = new TpmAttestation(),
    };
    // Make the request
    VerifyAttestationResponse response = await confidentialComputingClient.VerifyAttestationAsync(request);