[BindServiceMethod(typeof(Advice), "BindService")]
public abstract class Advice.AdviceBaseReference documentation and code samples for the Compute Engine v1 API class Advice.AdviceBase.
Base class for server-side implementations of Advice
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
CalendarMode(CalendarModeAdviceRpcRequest, ServerCallContext)
public virtual Task<CalendarModeAdviceResponse> CalendarMode(CalendarModeAdviceRpcRequest request, ServerCallContext context)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 received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCalendarModeAdviceResponse |
The response to send back to the client (wrapped by a task). |
Capacity(CapacityAdviceRpcRequest, ServerCallContext)
public virtual Task<CapacityAdviceResponse> Capacity(CapacityAdviceRpcRequest request, ServerCallContext context)Advice on making real-time decisions (such as choosing zone or machine types) during deployment to maximize your chances of obtaining capacity.
| Parameters | |
|---|---|
| Name | Description |
request |
CapacityAdviceRpcRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCapacityAdviceResponse |
The response to send back to the client (wrapped by a task). |
CapacityHistory(CapacityHistoryAdviceRequest, ServerCallContext)
public virtual Task<CapacityHistoryResponse> CapacityHistory(CapacityHistoryAdviceRequest request, ServerCallContext context)Gets the capacity history.
| Parameters | |
|---|---|
| Name | Description |
request |
CapacityHistoryAdviceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCapacityHistoryResponse |
The response to send back to the client (wrapped by a task). |