Reference documentation and code samples for the Compute V1 Client class FutureResourcesSpec.
Specification of resources to be created at some time in the future within an optionally specified set of locations, and within the specified time range.
Generated from protobuf message google.cloud.compute.v1.FutureResourcesSpec
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ deployment_type |
string
Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE. Check the DeploymentType enum for the list of possible values. |
↳ location_policy |
FutureResourcesSpecLocationPolicy
Optional location policy allowing to exclude some zone(s) in which the resources must not be created. |
↳ target_resources |
FutureResourcesSpecTargetResources
Specification of the reserved resources. |
↳ time_range_spec |
FlexibleTimeRange
Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use. |
getDeploymentType
Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE.
Check the DeploymentType enum for the list of possible values.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasDeploymentType
clearDeploymentType
setDeploymentType
Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE.
Check the DeploymentType enum for the list of possible values.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLocationPolicy
Optional location policy allowing to exclude some zone(s) in which the resources must not be created.
| Returns | |
|---|---|
| Type | Description |
FutureResourcesSpecLocationPolicy|null |
|
hasLocationPolicy
clearLocationPolicy
setLocationPolicy
Optional location policy allowing to exclude some zone(s) in which the resources must not be created.
| Parameter | |
|---|---|
| Name | Description |
var |
FutureResourcesSpecLocationPolicy
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargetResources
Specification of the reserved resources.
| Returns | |
|---|---|
| Type | Description |
FutureResourcesSpecTargetResources|null |
|
hasTargetResources
clearTargetResources
setTargetResources
Specification of the reserved resources.
| Parameter | |
|---|---|
| Name | Description |
var |
FutureResourcesSpecTargetResources
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTimeRangeSpec
Specification of a time range in which the resources may be created.
The time range specifies start of resource use and planned end of resource use.
| Returns | |
|---|---|
| Type | Description |
FlexibleTimeRange|null |
|
hasTimeRangeSpec
clearTimeRangeSpec
setTimeRangeSpec
Specification of a time range in which the resources may be created.
The time range specifies start of resource use and planned end of resource use.
| Parameter | |
|---|---|
| Name | Description |
var |
FlexibleTimeRange
|
| Returns | |
|---|---|
| Type | Description |
$this |
|