Reference documentation and code samples for the Compute V1 Client class FutureResourcesRecommendation.
Recommendation for single resources specification, to be created in the future.
Generated from protobuf message google.cloud.compute.v1.FutureResourcesRecommendation
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ end_time |
string
|
↳ location |
string
The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details. |
↳ other_locations |
array|Google\Protobuf\Internal\MapField
List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status. |
↳ recommendation_id |
string
Unique id of the recommendation, a UUID string generated by the API. |
↳ recommendation_type |
string
Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values. |
↳ start_time |
string
|
getEndTime
Generated from protobuf field optional string end_time = 114938801;
| Returns | |
|---|---|
| Type | Description |
string |
|
hasEndTime
clearEndTime
setEndTime
Generated from protobuf field optional string end_time = 114938801;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLocation
The advised location for resource usage. When a zone, in format 'zones/'.
If not set, it means that no location is recommended - see other_locations for details.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasLocation
clearLocation
setLocation
The advised location for resource usage. When a zone, in format 'zones/'.
If not set, it means that no location is recommended - see other_locations for details.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOtherLocations
List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'.
The values are status information indicating the recommendation status.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setOtherLocations
List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'.
The values are status information indicating the recommendation status.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRecommendationId
Unique id of the recommendation, a UUID string generated by the API.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasRecommendationId
clearRecommendationId
setRecommendationId
Unique id of the recommendation, a UUID string generated by the API.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRecommendationType
Type of recommendation. Currently only FUTURE_RESERVATION is supported.
Check the RecommendationType enum for the list of possible values.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasRecommendationType
clearRecommendationType
setRecommendationType
Type of recommendation. Currently only FUTURE_RESERVATION is supported.
Check the RecommendationType enum for the list of possible values.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStartTime
Generated from protobuf field optional string start_time = 37467274;
| Returns | |
|---|---|
| Type | Description |
string |
|
hasStartTime
clearStartTime
setStartTime
Generated from protobuf field optional string start_time = 37467274;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|