Compute Engine v1 API - Class Advice.AdviceBase (4.0.0)

[BindServiceMethod(typeof(Advice), "BindService")]
public abstract class Advice.AdviceBase

Reference documentation and code samples for the Compute Engine v1 API class Advice.AdviceBase.

Base class for server-side implementations of Advice

Inheritance

object > Advice.AdviceBase

Namespace

Google.Cloud.Compute.V1

Assembly

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 CalendarModeAdviceRpcRequest

The request received from the client.

context ServerCallContext

The 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 CapacityAdviceRpcRequest

The request received from the client.

context ServerCallContext

The 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 CapacityHistoryAdviceRequest

The request received from the client.

context ServerCallContext

The 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).