# Capacity Planner V1BETA API - Class Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings (v0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Capacity Planner V1BETA API class Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings.

The share setting for reservation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #projects

    def projects() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- 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.

### #projects=

    def projects=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- 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**

- (::Array\<::String\>) --- 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.

### #share_type

    def share_type() -> ::Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings::ShareType

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings::ShareType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-ShareSettings-ShareType)) --- Type of sharing for this shared-reservation

### #share_type=

    def share_type=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings::ShareType

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings::ShareType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-ShareSettings-ShareType)) --- Type of sharing for this shared-reservation
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings::ShareType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-ShareSettings-ShareType)) --- Type of sharing for this shared-reservation