Compute Engine v1 API - Class ImageFamilyViews.ImageFamilyViewsClient (2.15.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ImageFamilyViewsClient(ChannelBase)

public ImageFamilyViewsClient(ChannelBase channel)

Creates a new client for ImageFamilyViews

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ImageFamilyViewsClient(ClientBaseConfiguration)

protected ImageFamilyViewsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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
NameDescription
requestGetImageFamilyViewRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetImageFamilyViewRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetImageFamilyViewRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetImageFamilyViewRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallImageFamilyView

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
ImageFamilyViewsImageFamilyViewsClient
Overrides