Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class ShareSettings.
The share setting for reservation.
Generated from protobuf message google.cloud.capacityplanner.v1beta.Allocation.ShareSettings
Namespace
Google \ Cloud \ CapacityPlanner \ V1beta \ AllocationMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ share_type |
int
Type of sharing for this shared-reservation |
↳ projects |
array
A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. |
getShareType
Type of sharing for this shared-reservation
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ShareType. |
setShareType
Type of sharing for this shared-reservation
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ShareType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProjects
A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setProjects
A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|