Compute Engine v1 API - Class ImageFamilyViews.ImageFamilyViewsClient (2.17.0)

public class ImageFamilyViews.ImageFamilyViewsClient : ClientBase<ImageFamilyViews.ImageFamilyViewsClient>

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

Client for ImageFamilyViews

Inheritance

object > ClientBase > ClientBaseImageFamilyViewsImageFamilyViewsClient > ImageFamilyViews.ImageFamilyViewsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ImageFamilyViewsClient()

protected ImageFamilyViewsClient()

Protected parameterless constructor to allow creation of test doubles.

ImageFamilyViewsClient(CallInvoker)

public ImageFamilyViewsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ImageFamilyViewsClient(ChannelBase)

public ImageFamilyViewsClient(ChannelBase channel)

Creates a new client for ImageFamilyViews

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ImageFamilyViewsClient(ClientBaseConfiguration)

protected ImageFamilyViewsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

Get(GetImageFamilyViewRequest, CallOptions)

public virtual ImageFamilyView Get(GetImageFamilyViewRequest request, CallOptions options)

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 GetImageFamilyViewRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ImageFamilyView

The response received from the server.

Get(GetImageFamilyViewRequest, Metadata, DateTime?, CancellationToken)

public virtual ImageFamilyView Get(GetImageFamilyViewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetImageFamilyViewRequest

The request to send to the server.

headers Metadata

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

deadline System.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
ImageFamilyView

The response received from the server.

GetAsync(GetImageFamilyViewRequest, CallOptions)

public virtual AsyncUnaryCall<ImageFamilyView> GetAsync(GetImageFamilyViewRequest request, CallOptions options)

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 GetImageFamilyViewRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallImageFamilyView

The call object.

GetAsync(GetImageFamilyViewRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ImageFamilyView> GetAsync(GetImageFamilyViewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetImageFamilyViewRequest

The request to send to the server.

headers Metadata

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

deadline System.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
AsyncUnaryCallImageFamilyView

The call object.

NewInstance(ClientBaseConfiguration)

protected override ImageFamilyViews.ImageFamilyViewsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ImageFamilyViewsImageFamilyViewsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.ImageFamilyViews.ImageFamilyViewsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)