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

CapacityPlanView contains the capacity plan key and the time series views.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #key

    def key() -> ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanKey

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-CapacityPlanKey)) --- Required. The capacity plan key associated with the capacity plan view.

### #key=

    def key=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanKey

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-CapacityPlanKey)) --- Required. The capacity plan key associated with the capacity plan view.
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-CapacityPlanKey)) --- Required. The capacity plan key associated with the capacity plan view.

### #time_series_views

    def time_series_views() -> ::Array<::Google::Cloud::CapacityPlanner::V1beta::TimeSeriesView>

**Returns**

- (::Array\<[::Google::Cloud::CapacityPlanner::V1beta::TimeSeriesView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-TimeSeriesView)\>) --- Required. The time series views associated with the capacity plan view.

### #time_series_views=

    def time_series_views=(value) -> ::Array<::Google::Cloud::CapacityPlanner::V1beta::TimeSeriesView>

**Parameter**

- **value** (::Array\<[::Google::Cloud::CapacityPlanner::V1beta::TimeSeriesView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-TimeSeriesView)\>) --- Required. The time series views associated with the capacity plan view.
**Returns**

- (::Array\<[::Google::Cloud::CapacityPlanner::V1beta::TimeSeriesView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-TimeSeriesView)\>) --- Required. The time series views associated with the capacity plan view.