Compute Engine v1 API - Class ZonesClientImpl (2.15.0)

public sealed class ZonesClientImpl : ZonesClient

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

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(ZonesClient, ZonesSettings, ILogger)

public ZonesClientImpl(Zones.ZonesClient grpcClient, ZonesSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientZonesZonesClient

The underlying gRPC client.

settingsZonesSettings

The base ZonesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Zones.ZonesClient GrpcClient { get; }

The underlying gRPC Zones client

Property Value
TypeDescription
ZonesZonesClient
Overrides

Methods

Get(GetZoneRequest, CallSettings)

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

Returns the specified Zone resource.

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.

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
TaskZone

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
PagedEnumerableZoneListZone

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
PagedAsyncEnumerableZoneListZone

A pageable asynchronous sequence of Zone resources.

Overrides