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

The callInvoker to use to make remote calls.

RegionZonesClient(ChannelBase)

public RegionZonesClient(ChannelBase channel)

Creates a new client for RegionZones

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

RegionZonesClient(ClientBaseConfiguration)

protected RegionZonesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

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
AsyncUnaryCallZoneList

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
RegionZonesRegionZonesClient
Overrides