Class AdviceResource
The "advice" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class AdviceResource
Constructors
AdviceResource(IClientService)
Constructs a new resource.
Declaration
public AdviceResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
CalendarMode(CalendarModeAdviceRequest, string, string)
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.
Declaration
public virtual AdviceResource.CalendarModeRequest CalendarMode(CalendarModeAdviceRequest body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| CalendarModeAdviceRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| AdviceResource.CalendarModeRequest |
CalendarModeExtension(CalendarModeExtensionAdviceRequest, string, string)
Advise on whether extending an existing Future Reservation is possible based on the desired extension end time. If capacity is not available for the entire requested duration, the method will recommend the longest possible extension.
Declaration
public virtual AdviceResource.CalendarModeExtensionRequest CalendarModeExtension(CalendarModeExtensionAdviceRequest body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| CalendarModeExtensionAdviceRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| AdviceResource.CalendarModeExtensionRequest |
Capacity(CapacityAdviceRequest, string, string)
Advice on making real-time decisions (such as choosing zone or machine types) during deployment to maximize your chances of obtaining capacity.
Declaration
public virtual AdviceResource.CapacityRequest Capacity(CapacityAdviceRequest body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| CapacityAdviceRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| AdviceResource.CapacityRequest |
CapacityHistory(CapacityHistoryRequest, string, string)
Gets the capacity history.
Declaration
public virtual AdviceResource.CapacityHistoryRequest CapacityHistory(CapacityHistoryRequest body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| CapacityHistoryRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| AdviceResource.CapacityHistoryRequest |