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.
Namespace
Google.Cloud.Compute.V1Assembly
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 |
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. |
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. |
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. |
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. |