Compute Engine v1 API - Class AdviceClientImpl (3.22.0)

public sealed class AdviceClientImpl : AdviceClient

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

Advice client wrapper implementation, for convenient use.

Inheritance

object > AdviceClient > AdviceClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The Advice API.

Constructors

AdviceClientImpl(AdviceClient, AdviceSettings, ILogger)

public AdviceClientImpl(Advice.AdviceClient grpcClient, AdviceSettings settings, ILogger logger)

Constructs a client wrapper for the Advice service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient AdviceAdviceClient

The underlying gRPC client.

settings AdviceSettings

The base AdviceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Advice.AdviceClient GrpcClient { get; }

The underlying gRPC Advice client

Property Value
Type Description
AdviceAdviceClient
Overrides

Methods

CalendarMode(CalendarModeAdviceRpcRequest, CallSettings)

public override CalendarModeAdviceResponse CalendarMode(CalendarModeAdviceRpcRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CalendarModeAdviceResponse

The RPC response.

Overrides

CalendarModeAsync(CalendarModeAdviceRpcRequest, CallSettings)

public override Task<CalendarModeAdviceResponse> CalendarModeAsync(CalendarModeAdviceRpcRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCalendarModeAdviceResponse

A Task containing the RPC response.

Overrides