# Compute Engine v1 API - Class NetworkProfilesClientImpl (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 NetworkProfilesClientImpl : NetworkProfilesClient

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

NetworkProfiles client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[NetworkProfilesClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_DefaultEndpoint) [NetworkProfilesClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_DefaultScopes) [NetworkProfilesClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_ServiceMetadata) [NetworkProfilesClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_CreateAsync_System_Threading_CancellationToken_) [NetworkProfilesClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_Create) [NetworkProfilesClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_ShutdownDefaultChannelsAsync) [NetworkProfilesClient.GetAsync(GetNetworkProfileRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_GetAsync_Google_Cloud_Compute_V1_GetNetworkProfileRequest_System_Threading_CancellationToken_) [NetworkProfilesClient.Get(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_Get_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [NetworkProfilesClient.GetAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_GetAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [NetworkProfilesClient.GetAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_GetAsync_System_String_System_String_System_Threading_CancellationToken_) [NetworkProfilesClient.List(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_List_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [NetworkProfilesClient.ListAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesClient#Google_Cloud_Compute_V1_NetworkProfilesClient_ListAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [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 NetworkProfiles API.

## Constructors

### NetworkProfilesClientImpl(NetworkProfilesClient, NetworkProfilesSettings, ILogger)

    public NetworkProfilesClientImpl(NetworkProfiles.NetworkProfilesClient grpcClient, NetworkProfilesSettings settings, ILogger logger)

Constructs a client wrapper for the NetworkProfiles 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.NetworkProfileshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfiles.NetworkProfilesClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesSettings` The base [NetworkProfilesSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfilesSettings) 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 NetworkProfiles.NetworkProfilesClient GrpcClient { get; }

The underlying gRPC NetworkProfiles client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfileshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfiles.NetworkProfilesClient` |   |

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

## Methods

### Get(GetNetworkProfileRequest, CallSettings)

    public override NetworkProfile Get(GetNetworkProfileRequest request, CallSettings callSettings = null)

Returns the specified network profile.

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

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

### GetAsync(GetNetworkProfileRequest, CallSettings)

    public override Task<NetworkProfile> GetAsync(GetNetworkProfileRequest request, CallSettings callSettings = null)

Returns the specified network profile.

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

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

### List(ListNetworkProfilesRequest, CallSettings)

    public override PagedEnumerable<NetworkProfilesListResponse, NetworkProfile> List(ListNetworkProfilesRequest request, CallSettings callSettings = null)

Retrieves a list of network profiles available to the specified
project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListNetworkProfilesRequest` 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.NetworkProfilesListResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfile` | A pageable sequence of [NetworkProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfile) resources. |

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

### ListAsync(ListNetworkProfilesRequest, CallSettings)

    public override PagedAsyncEnumerable<NetworkProfilesListResponse, NetworkProfile> ListAsync(ListNetworkProfilesRequest request, CallSettings callSettings = null)

Retrieves a list of network profiles available to the specified
project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ListNetworkProfilesRequest` 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.NetworkProfilesListResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfile` | A pageable asynchronous sequence of [NetworkProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.NetworkProfile) resources. |

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