Class ZonesClientImpl (1.1.0)

public sealed class ZonesClientImpl : ZonesClient

Zones client wrapper implementation, for convenient use.

Inheritance

Object > ZonesClient > ZonesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The Zones API.

Constructors

ZonesClientImpl(Zones.ZonesClient, ZonesSettings)

public ZonesClientImpl(Zones.ZonesClient grpcClient, ZonesSettings settings)

Constructs a client wrapper for the Zones service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientZones.ZonesClient

The underlying gRPC client.

settingsZonesSettings

The base ZonesSettings used within this client.

Properties

GrpcClient

public override Zones.ZonesClient GrpcClient { get; }

The underlying gRPC Zones client

Property Value
TypeDescription
Zones.ZonesClient
Overrides

Methods

Get(GetZoneRequest, CallSettings)

public override Zone Get(GetZoneRequest request, CallSettings callSettings = null)

Returns the specified Zone resource. Gets a list of available zones by making a list() request.

Parameters
NameDescription
requestGetZoneRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Zone

The RPC response.

Overrides

GetAsync(GetZoneRequest, CallSettings)

public override Task<Zone> GetAsync(GetZoneRequest request, CallSettings callSettings = null)

Returns the specified Zone resource. Gets a list of available zones by making a list() request.

Parameters
NameDescription
requestGetZoneRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Zone>

A Task containing the RPC response.

Overrides

List(ListZonesRequest, CallSettings)

public override PagedEnumerable<ZoneList, Zone> List(ListZonesRequest request, CallSettings callSettings = null)

Retrieves the list of Zone resources available to the specified project.

Parameters
NameDescription
requestListZonesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ZoneList, Zone>

A pageable sequence of Zone resources.

Overrides

ListAsync(ListZonesRequest, CallSettings)

public override PagedAsyncEnumerable<ZoneList, Zone> ListAsync(ListZonesRequest request, CallSettings callSettings = null)

Retrieves the list of Zone resources available to the specified project.

Parameters
NameDescription
requestListZonesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ZoneList, Zone>

A pageable asynchronous sequence of Zone resources.

Overrides