- 3.22.0 (latest)
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
public class Advice.AdviceClient : ClientBase<Advice.AdviceClient>Reference documentation and code samples for the Compute Engine v1 API class Advice.AdviceClient.
Client for Advice
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
AdviceClient()
protected AdviceClient()Protected parameterless constructor to allow creation of test doubles.
AdviceClient(CallInvoker)
public AdviceClient(CallInvoker callInvoker)Creates a new client for Advice that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
AdviceClient(ChannelBase)
public AdviceClient(ChannelBase channel)Creates a new client for Advice
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
AdviceClient(ClientBaseConfiguration)
protected AdviceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
CalendarMode(CalendarModeAdviceRpcRequest, CallOptions)
public virtual CalendarModeAdviceResponse CalendarMode(CalendarModeAdviceRpcRequest request, CallOptions options)Advise how, where and when to create the requested amount of instances with specified accelerators, within the specified time and location limits. The method recommends creating future reservations for the requested resources.
| Parameters | |
|---|---|
| Name | Description |
request |
CalendarModeAdviceRpcRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
CalendarModeAdviceResponse |
The response received from the server. |
CalendarMode(CalendarModeAdviceRpcRequest, Metadata, DateTime?, CancellationToken)
public virtual CalendarModeAdviceResponse CalendarMode(CalendarModeAdviceRpcRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Advise how, where and when to create the requested amount of instances with specified accelerators, within the specified time and location limits. The method recommends creating future reservations for the requested resources.
| Parameters | |
|---|---|
| Name | Description |
request |
CalendarModeAdviceRpcRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
CalendarModeAdviceResponse |
The response received from the server. |
CalendarModeAsync(CalendarModeAdviceRpcRequest, CallOptions)
public virtual AsyncUnaryCall<CalendarModeAdviceResponse> CalendarModeAsync(CalendarModeAdviceRpcRequest request, CallOptions options)Advise how, where and when to create the requested amount of instances with specified accelerators, within the specified time and location limits. The method recommends creating future reservations for the requested resources.
| Parameters | |
|---|---|
| Name | Description |
request |
CalendarModeAdviceRpcRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallCalendarModeAdviceResponse |
The call object. |
CalendarModeAsync(CalendarModeAdviceRpcRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<CalendarModeAdviceResponse> CalendarModeAsync(CalendarModeAdviceRpcRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Advise how, where and when to create the requested amount of instances with specified accelerators, within the specified time and location limits. The method recommends creating future reservations for the requested resources.
| Parameters | |
|---|---|
| Name | Description |
request |
CalendarModeAdviceRpcRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallCalendarModeAdviceResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override Advice.AdviceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
AdviceAdviceClient |
|