public sealed class ZonesClientImpl : ZonesClient
Zones client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
grpcClient | Zones.ZonesClient The underlying gRPC client. |
settings | ZonesSettings The base ZonesSettings used within this client. |
Properties
GrpcClient
public override Zones.ZonesClient GrpcClient { get; }
The underlying gRPC Zones client
Property Value | |
---|---|
Type | Description |
Zones.ZonesClient |
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 | |
---|---|
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. Gets a list of available zones by making a list() request.
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 |
Task<Zone> | 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 |
PagedEnumerable<ZoneList, Zone> | 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 |
PagedAsyncEnumerable<ZoneList, Zone> | A pageable asynchronous sequence of Zone resources. |