Compute Engine v1 API - Class ImageViews.ImageViewsClient (4.0.0)

public class ImageViews.ImageViewsClient : ClientBase<ImageViews.ImageViewsClient>

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

Client for ImageViews

Inheritance

object > ClientBase > ClientBaseImageViewsImageViewsClient > ImageViews.ImageViewsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ImageViewsClient()

protected ImageViewsClient()

Protected parameterless constructor to allow creation of test doubles.

ImageViewsClient(CallInvoker)

public ImageViewsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ImageViewsClient(ChannelBase)

public ImageViewsClient(ChannelBase channel)

Creates a new client for ImageViews

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ImageViewsClient(ClientBaseConfiguration)

protected ImageViewsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

Get(GetImageViewRequest, CallOptions)

public virtual ImageView Get(GetImageViewRequest request, CallOptions options)

Returns the specified global ImageView resource, with a regional context.

Parameters
Name Description
request GetImageViewRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ImageView

The response received from the server.

Get(GetImageViewRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified global ImageView resource, with a regional context.

Parameters
Name Description
request GetImageViewRequest

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
ImageView

The response received from the server.

GetAsync(GetImageViewRequest, CallOptions)

public virtual AsyncUnaryCall<ImageView> GetAsync(GetImageViewRequest request, CallOptions options)

Returns the specified global ImageView resource, with a regional context.

Parameters
Name Description
request GetImageViewRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallImageView

The call object.

GetAsync(GetImageViewRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified global ImageView resource, with a regional context.

Parameters
Name Description
request GetImageViewRequest

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
AsyncUnaryCallImageView

The call object.

List(ListImageViewsRequest, CallOptions)

public virtual ImageViewsListResponse List(ListImageViewsRequest request, CallOptions options)

Returns a list of global ImageView resources, with a regional context.

Parameters
Name Description
request ListImageViewsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ImageViewsListResponse

The response received from the server.

List(ListImageViewsRequest, Metadata, DateTime?, CancellationToken)

public virtual ImageViewsListResponse List(ListImageViewsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns a list of global ImageView resources, with a regional context.

Parameters
Name Description
request ListImageViewsRequest

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
ImageViewsListResponse

The response received from the server.

ListAsync(ListImageViewsRequest, CallOptions)

public virtual AsyncUnaryCall<ImageViewsListResponse> ListAsync(ListImageViewsRequest request, CallOptions options)

Returns a list of global ImageView resources, with a regional context.

Parameters
Name Description
request ListImageViewsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallImageViewsListResponse

The call object.

ListAsync(ListImageViewsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ImageViewsListResponse> ListAsync(ListImageViewsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns a list of global ImageView resources, with a regional context.

Parameters
Name Description
request ListImageViewsRequest

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
AsyncUnaryCallImageViewsListResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override ImageViews.ImageViewsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ImageViewsImageViewsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.ImageViews.ImageViewsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)