# Compute Engine v1 API - Class PreviewFeaturesClientImpl (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class PreviewFeaturesClientImpl : PreviewFeaturesClient

Reference documentation and code samples for the Compute Engine v1 API class PreviewFeaturesClientImpl.

PreviewFeatures client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [PreviewFeaturesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient) \> PreviewFeaturesClientImpl

## Inherited Members

[PreviewFeaturesClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_DefaultEndpoint) [PreviewFeaturesClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_DefaultScopes) [PreviewFeaturesClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_ServiceMetadata) [PreviewFeaturesClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_CreateAsync_System_Threading_CancellationToken_) [PreviewFeaturesClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_Create) [PreviewFeaturesClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_ShutdownDefaultChannelsAsync) [PreviewFeaturesClient.GetAsync(GetPreviewFeatureRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_GetAsync_Google_Cloud_Compute_V1_GetPreviewFeatureRequest_System_Threading_CancellationToken_) [PreviewFeaturesClient.Get(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_Get_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [PreviewFeaturesClient.GetAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_GetAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [PreviewFeaturesClient.GetAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_GetAsync_System_String_System_String_System_Threading_CancellationToken_) [PreviewFeaturesClient.List(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_List_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [PreviewFeaturesClient.ListAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_ListAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [PreviewFeaturesClient.UpdateAsync(UpdatePreviewFeatureRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_UpdateAsync_Google_Cloud_Compute_V1_UpdatePreviewFeatureRequest_System_Threading_CancellationToken_) [PreviewFeaturesClient.PollOnceUpdate(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_PollOnceUpdate_System_String_Google_Api_Gax_Grpc_CallSettings_) [PreviewFeaturesClient.PollOnceUpdateAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_PollOnceUpdateAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [PreviewFeaturesClient.Update(string, string, PreviewFeature, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_Update_System_String_System_String_Google_Cloud_Compute_V1_PreviewFeature_Google_Api_Gax_Grpc_CallSettings_) [PreviewFeaturesClient.UpdateAsync(string, string, PreviewFeature, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_UpdateAsync_System_String_System_String_Google_Cloud_Compute_V1_PreviewFeature_Google_Api_Gax_Grpc_CallSettings_) [PreviewFeaturesClient.UpdateAsync(string, string, PreviewFeature, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_UpdateAsync_System_String_System_String_Google_Cloud_Compute_V1_PreviewFeature_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.Compute.V1.dll

## Remarks

The PreviewFeatures API.

## Constructors

### PreviewFeaturesClientImpl(PreviewFeaturesClient, PreviewFeaturesSettings, ILogger)

    public PreviewFeaturesClientImpl(PreviewFeatures.PreviewFeaturesClient grpcClient, PreviewFeaturesSettings settings, ILogger logger)

Constructs a client wrapper for the PreviewFeatures service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeatureshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeatures.PreviewFeaturesClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesSettings` The base [PreviewFeaturesSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override PreviewFeatures.PreviewFeaturesClient GrpcClient { get; }

The underlying gRPC PreviewFeatures client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeatureshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeatures.PreviewFeaturesClient` |   |

**Overrides** [PreviewFeaturesClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_GrpcClient)

### UpdateOperationsClient

    public override OperationsClient UpdateOperationsClient { get; }

The long-running operations client for `Update`.

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

**Overrides** [PreviewFeaturesClient.UpdateOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_UpdateOperationsClient)

## Methods

### Get(GetPreviewFeatureRequest, CallSettings)

    public override PreviewFeature Get(GetPreviewFeatureRequest request, CallSettings callSettings = null)

Returns the details of the given PreviewFeature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetPreviewFeatureRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeature` | The RPC response. |

**Overrides** [PreviewFeaturesClient.Get(GetPreviewFeatureRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_Get_Google_Cloud_Compute_V1_GetPreviewFeatureRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAsync(GetPreviewFeatureRequest, CallSettings)

    public override Task<PreviewFeature> GetAsync(GetPreviewFeatureRequest request, CallSettings callSettings = null)

Returns the details of the given PreviewFeature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.GetPreviewFeatureRequest` 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.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeature` | A Task containing the RPC response. |

**Overrides** [PreviewFeaturesClient.GetAsync(GetPreviewFeatureRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_GetAsync_Google_Cloud_Compute_V1_GetPreviewFeatureRequest_Google_Api_Gax_Grpc_CallSettings_)

### List(ListPreviewFeaturesRequest, CallSettings)

    public override PagedEnumerable<PreviewFeatureList, PreviewFeature> List(ListPreviewFeaturesRequest request, CallSettings callSettings = null)

Returns the details of the given PreviewFeature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListPreviewFeaturesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeatureListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeature` | A pageable sequence of [PreviewFeature](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeature) resources. |

**Overrides** [PreviewFeaturesClient.List(ListPreviewFeaturesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_List_Google_Cloud_Compute_V1_ListPreviewFeaturesRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAsync(ListPreviewFeaturesRequest, CallSettings)

    public override PagedAsyncEnumerable<PreviewFeatureList, PreviewFeature> ListAsync(ListPreviewFeaturesRequest request, CallSettings callSettings = null)

Returns the details of the given PreviewFeature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListPreviewFeaturesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeatureListhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeature` | A pageable asynchronous sequence of [PreviewFeature](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeature) resources. |

**Overrides** [PreviewFeaturesClient.ListAsync(ListPreviewFeaturesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_ListAsync_Google_Cloud_Compute_V1_ListPreviewFeaturesRequest_Google_Api_Gax_Grpc_CallSettings_)

### Update(UpdatePreviewFeatureRequest, CallSettings)

    public override Operation<Operation, Operation> Update(UpdatePreviewFeatureRequest request, CallSettings callSettings = null)

Patches the given PreviewFeature. This method is used to enable or disable
a PreviewFeature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.UpdatePreviewFeatureRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | The RPC response. |

**Overrides** [PreviewFeaturesClient.Update(UpdatePreviewFeatureRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_Update_Google_Cloud_Compute_V1_UpdatePreviewFeatureRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateAsync(UpdatePreviewFeatureRequest, CallSettings)

    public override Task<Operation<Operation, Operation>> UpdateAsync(UpdatePreviewFeatureRequest request, CallSettings callSettings = null)

Patches the given PreviewFeature. This method is used to enable or disable
a PreviewFeature.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.UpdatePreviewFeatureRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.Operation` | A Task containing the RPC response. |

**Overrides** [PreviewFeaturesClient.UpdateAsync(UpdatePreviewFeatureRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.PreviewFeaturesClient#Google_Cloud_Compute_V1_PreviewFeaturesClient_UpdateAsync_Google_Cloud_Compute_V1_UpdatePreviewFeatureRequest_Google_Api_Gax_Grpc_CallSettings_)