# Compute Engine v1 API - Class ImageFamilyViewsClient (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 abstract class ImageFamilyViewsClient

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

ImageFamilyViews client wrapper, for convenient use.

## Inheritance

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

## 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

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

## 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 ImageFamilyViews API.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the ImageFamilyViews service, which is a host of "compute.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 ImageFamilyViews 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 ImageFamilyViews scopes are:

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

### GrpcClient

    public virtual ImageFamilyViews.ImageFamilyViewsClient GrpcClient { get; }

The underlying gRPC ImageFamilyViews client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ImageFamilyViewshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ImageFamilyViews.ImageFamilyViewsClient` |   |

### 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 ImageFamilyViewsClient Create()

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

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

### CreateAsync(CancellationToken)

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

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

| **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.Compute.V1/latest/Google.Cloud.Compute.V1.ImageFamilyViewsClient` | The task representing the created [ImageFamilyViewsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ImageFamilyViewsClient). |

### Get(GetImageFamilyViewRequest, CallSettings)

    public virtual ImageFamilyView Get(GetImageFamilyViewRequest request, CallSettings callSettings = null)

Returns the latest image that is part of an image family, is not
deprecated and is rolled out in the specified zone.

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

**Example**

    // Create client
    ImageFamilyViewsClient imageFamilyViewsClient = ImageFamilyViewsClient.Create();
    // Initialize request argument(s)
    GetImageFamilyViewRequest request = new GetImageFamilyViewRequest
    {
        Zone = "",
        Project = "",
        Family = "",
    };
    // Make the request
    ImageFamilyView response = imageFamilyViewsClient.Get(request);

### Get(string, string, string, CallSettings)

    public virtual ImageFamilyView Get(string project, string zone, string family, CallSettings callSettings = null)

Returns the latest image that is part of an image family, is not
deprecated and is rolled out in the specified zone.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `zone` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the zone for this request. |
| `family` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the image family to search for. |
| `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.ImageFamilyView` | The RPC response. |

**Example**

    // Create client
    ImageFamilyViewsClient imageFamilyViewsClient = ImageFamilyViewsClient.Create();
    // Initialize request argument(s)
    string project = "";
    string zone = "";
    string family = "";
    // Make the request
    ImageFamilyView response = imageFamilyViewsClient.Get(project, zone, family);

### GetAsync(GetImageFamilyViewRequest, CallSettings)

    public virtual Task<ImageFamilyView> GetAsync(GetImageFamilyViewRequest request, CallSettings callSettings = null)

Returns the latest image that is part of an image family, is not
deprecated and is rolled out in the specified zone.

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

**Example**

    // Create client
    ImageFamilyViewsClient imageFamilyViewsClient = await ImageFamilyViewsClient.CreateAsync();
    // Initialize request argument(s)
    GetImageFamilyViewRequest request = new GetImageFamilyViewRequest
    {
        Zone = "",
        Project = "",
        Family = "",
    };
    // Make the request
    ImageFamilyView response = await imageFamilyViewsClient.GetAsync(request);

### GetAsync(GetImageFamilyViewRequest, CancellationToken)

    public virtual Task<ImageFamilyView> GetAsync(GetImageFamilyViewRequest request, CancellationToken cancellationToken)

Returns the latest image that is part of an image family, is not
deprecated and is rolled out in the specified zone.

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

**Example**

    // Create client
    ImageFamilyViewsClient imageFamilyViewsClient = await ImageFamilyViewsClient.CreateAsync();
    // Initialize request argument(s)
    GetImageFamilyViewRequest request = new GetImageFamilyViewRequest
    {
        Zone = "",
        Project = "",
        Family = "",
    };
    // Make the request
    ImageFamilyView response = await imageFamilyViewsClient.GetAsync(request);

### GetAsync(string, string, string, CallSettings)

    public virtual Task<ImageFamilyView> GetAsync(string project, string zone, string family, CallSettings callSettings = null)

Returns the latest image that is part of an image family, is not
deprecated and is rolled out in the specified zone.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `zone` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the zone for this request. |
| `family` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the image family to search for. |
| `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.ImageFamilyView` | A Task containing the RPC response. |

**Example**

    // Create client
    ImageFamilyViewsClient imageFamilyViewsClient = await ImageFamilyViewsClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string zone = "";
    string family = "";
    // Make the request
    ImageFamilyView response = await imageFamilyViewsClient.GetAsync(project, zone, family);

### GetAsync(string, string, string, CancellationToken)

    public virtual Task<ImageFamilyView> GetAsync(string project, string zone, string family, CancellationToken cancellationToken)

Returns the latest image that is part of an image family, is not
deprecated and is rolled out in the specified zone.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Project ID for this request. |
| `zone` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the zone for this request. |
| `family` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the image family to search for. |
| `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.Compute.V1/latest/Google.Cloud.Compute.V1.ImageFamilyView` | A Task containing the RPC response. |

**Example**

    // Create client
    ImageFamilyViewsClient imageFamilyViewsClient = await ImageFamilyViewsClient.CreateAsync();
    // Initialize request argument(s)
    string project = "";
    string zone = "";
    string family = "";
    // Make the request
    ImageFamilyView response = await imageFamilyViewsClient.GetAsync(project, zone, family);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ImageFamilyViewsClient#Google_Cloud_Compute_V1_ImageFamilyViewsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ImageFamilyViewsClient#Google_Cloud_Compute_V1_ImageFamilyViewsClient_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.Compute.V1/latest/Google.Cloud.Compute.V1.ImageFamilyViewsClient#Google_Cloud_Compute_V1_ImageFamilyViewsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ImageFamilyViewsClient#Google_Cloud_Compute_V1_ImageFamilyViewsClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.