Compute Engine v1 API - Class RegionZones.RegionZonesClient (3.0.0)

public class RegionZones.RegionZonesClient : ClientBase<RegionZones.RegionZonesClient>

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

Client for RegionZones

Inheritance

object > ClientBase > ClientBaseRegionZonesRegionZonesClient > RegionZones.RegionZonesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RegionZonesClient()

protected RegionZonesClient()

Protected parameterless constructor to allow creation of test doubles.

RegionZonesClient(CallInvoker)

public RegionZonesClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

RegionZonesClient(ChannelBase)

public RegionZonesClient(ChannelBase channel)

Creates a new client for RegionZones

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

RegionZonesClient(ClientBaseConfiguration)

protected RegionZonesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

List(ListRegionZonesRequest, CallOptions)

public virtual ZoneList List(ListRegionZonesRequest request, CallOptions options)

Retrieves the list of Zone resources under the specific region available to the specified project.

Parameters
Name Description
request ListRegionZonesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ZoneList

The response received from the server.

List(ListRegionZonesRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of Zone resources under the specific region available to the specified project.

Parameters
Name Description
request ListRegionZonesRequest

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
ZoneList

The response received from the server.

ListAsync(ListRegionZonesRequest, CallOptions)

public virtual AsyncUnaryCall<ZoneList> ListAsync(ListRegionZonesRequest request, CallOptions options)

Retrieves the list of Zone resources under the specific region available to the specified project.

Parameters
Name Description
request ListRegionZonesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallZoneList

The call object.

ListAsync(ListRegionZonesRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of Zone resources under the specific region available to the specified project.

Parameters
Name Description
request ListRegionZonesRequest

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
AsyncUnaryCallZoneList

The call object.

NewInstance(ClientBaseConfiguration)

protected override RegionZones.RegionZonesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RegionZonesRegionZonesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionZones.RegionZonesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)