# Capacity Planner V1BETA API - Class Google::Cloud::CapacityPlanner::V1beta::Allocation (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.

Repesents Allocation which is part of aggregated
reservations data response of "QueryReservations".

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allocation

    def allocation() -> ::String

**Returns**

- (::String) --- The reservation resource name.

### #allocation=

    def allocation=(value) -> ::String

**Parameter**

- **value** (::String) --- The reservation resource name.
**Returns**

- (::String) --- The reservation resource name.

### #auto_delete_time

    def auto_delete_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Protobuf-Timestamp)) --- Absolute time in future when the reservation will be auto-deleted by Compute Engine.

### #auto_delete_time=

    def auto_delete_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Protobuf-Timestamp)) --- Absolute time in future when the reservation will be auto-deleted by Compute Engine.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Protobuf-Timestamp)) --- Absolute time in future when the reservation will be auto-deleted by Compute Engine.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Protobuf-Timestamp)) --- The creation timestamp for this allocation.

### #create_time=

    def create_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Protobuf-Timestamp)) --- The creation timestamp for this allocation.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Protobuf-Timestamp)) --- The creation timestamp for this allocation.

### #description

    def description() -> ::String

**Returns**

- (::String) --- A description while creating reservation.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- A description while creating reservation.
**Returns**

- (::String) --- A description while creating reservation.

### #id

    def id() -> ::Integer

**Returns**

- (::Integer) --- The unique identifier for the resource. This identifier is defined by the server.

### #id=

    def id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The unique identifier for the resource. This identifier is defined by the server.
**Returns**

- (::Integer) --- The unique identifier for the resource. This identifier is defined by the server.

### #owner_project_id

    def owner_project_id() -> ::String

**Returns**

- (::String)

### #owner_project_id=

    def owner_project_id=(value) -> ::String

**Parameter**

- **value** (::String)
**Returns**

- (::String)

### #share_settings

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

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-ShareSettings)) --- Specify share-settings to create a shared reservation.

### #share_settings=

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

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-ShareSettings)) --- Specify share-settings to create a shared reservation.
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::ShareSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-ShareSettings)) --- Specify share-settings to create a shared reservation.

### #specific_allocation

    def specific_allocation() -> ::Google::Cloud::CapacityPlanner::V1beta::Allocation::SpecificSKUAllocation

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::SpecificSKUAllocation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-SpecificSKUAllocation)) --- Reservation for instances with specific machine shapes.

### #specific_allocation=

    def specific_allocation=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::Allocation::SpecificSKUAllocation

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::SpecificSKUAllocation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-SpecificSKUAllocation)) --- Reservation for instances with specific machine shapes.
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::SpecificSKUAllocation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-SpecificSKUAllocation)) --- Reservation for instances with specific machine shapes.

### #status

    def status() -> ::Google::Cloud::CapacityPlanner::V1beta::Allocation::Status

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-Status)) --- The status of the reservation.

### #status=

    def status=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::Allocation::Status

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-Status)) --- The status of the reservation.
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::Allocation::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Allocation-Status)) --- The status of the reservation.

### #zone

    def zone() -> ::String

**Returns**

- (::String) --- Zone in which the reservation resides.

### #zone=

    def zone=(value) -> ::String

**Parameter**

- **value** (::String) --- Zone in which the reservation resides.
**Returns**

- (::String) --- Zone in which the reservation resides.