Compute Engine v1 API - Class ZonesClientImpl (3.0.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
Name Description
grpcClient ZonesZonesClient

The underlying gRPC client.

settings ZonesSettings

The base ZonesSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Zones.ZonesClient GrpcClient { get; }

The underlying gRPC Zones client

Property Value
Type Description
ZonesZonesClient
Overrides

Methods

Get(GetZoneRequest, CallSettings)

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

Returns the specified Zone resource.

Parameters
Name Description
request GetZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Zone

The RPC response.

Overrides

GetAsync(GetZoneRequest, CallSettings)

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

Returns the specified Zone resource.

Parameters
Name Description
request GetZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request ListZonesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request ListZonesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableZoneListZone

A pageable asynchronous sequence of Zone resources.

Overrides