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

A collection of data points that describes the time-varying values of a
resource. A time series is identified by its ID.
Next : 13

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cloud_resource_type

    def cloud_resource_type() -> ::String

**Returns**

- (::String) --- The resource for the time series values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu", "gce-tpu" and "gce-vm".

### #cloud_resource_type=

    def cloud_resource_type=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource for the time series values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu", "gce-tpu" and "gce-vm".
**Returns**

- (::String) --- The resource for the time series values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu", "gce-tpu" and "gce-vm".

### #confidential_mode

    def confidential_mode() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. The confidential mode for disk.

### #confidential_mode=

    def confidential_mode=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. The confidential mode for disk.
**Returns**

- (::Boolean) --- Optional. The confidential mode for disk.

### #disk_type

    def disk_type() -> ::String

**Returns**

- (::String) --- The disk type for the time series values to return.

### #disk_type=

    def disk_type=(value) -> ::String

**Parameter**

- **value** (::String) --- The disk type for the time series values to return.
**Returns**

- (::String) --- The disk type for the time series values to return.

### #gpu_type

    def gpu_type() -> ::String

**Returns**

- (::String) --- The GPU type of the time series.

### #gpu_type=

    def gpu_type=(value) -> ::String

**Parameter**

- **value** (::String) --- The GPU type of the time series.
**Returns**

- (::String) --- The GPU type of the time series.

### #is_spot

    def is_spot() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. The location of the usage data in time series.

### #is_spot=

    def is_spot=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. The location of the usage data in time series.
**Returns**

- (::Boolean) --- Optional. The location of the usage data in time series.

### #location

    def location() -> ::String

**Returns**

- (::String) --- Optional. The location of the usage data in time series.

### #location=

    def location=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The location of the usage data in time series.
**Returns**

- (::String) --- Optional. The location of the usage data in time series.

### #location_type

    def location_type() -> ::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-TimeSeries-LocationType)) --- Required. The type of location that the time series is summarizing.

### #location_type=

    def location_type=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-TimeSeries-LocationType)) --- Required. The type of location that the time series is summarizing.
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-TimeSeries-LocationType)) --- Required. The type of location that the time series is summarizing.

### #machine_family

    def machine_family() -> ::String

**Returns**

- (::String) --- The machine family for the time series values to return. Possible values include "n1" and "n2d".

### #machine_family=

    def machine_family=(value) -> ::String

**Parameter**

- **value** (::String) --- The machine family for the time series values to return. Possible values include "n1" and "n2d".
**Returns**

- (::String) --- The machine family for the time series values to return. Possible values include "n1" and "n2d".

### #machine_shape

    def machine_shape() -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::MachineShape](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-MachineShape)) --- The machine shape of the time series.

### #machine_shape=

    def machine_shape=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::MachineShape](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-MachineShape)) --- The machine shape of the time series.
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::MachineShape](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-MachineShape)) --- The machine shape of the time series.

### #points

    def points() -> ::Array<::Google::Cloud::CapacityPlanner::V1beta::Point>

**Returns**

- (::Array\<[::Google::Cloud::CapacityPlanner::V1beta::Point](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Point)\>) --- The data points of this time series. When listing time series, points are returned in chronological order.

### #points=

    def points=(value) -> ::Array<::Google::Cloud::CapacityPlanner::V1beta::Point>

**Parameter**

- **value** (::Array\<[::Google::Cloud::CapacityPlanner::V1beta::Point](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Point)\>) --- The data points of this time series. When listing time series, points are returned in chronological order.
**Returns**

- (::Array\<[::Google::Cloud::CapacityPlanner::V1beta::Point](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-Point)\>) --- The data points of this time series. When listing time series, points are returned in chronological order.

### #tpu_type

    def tpu_type() -> ::String

**Returns**

- (::String) --- The TPU type of the time series.

### #tpu_type=

    def tpu_type=(value) -> ::String

**Parameter**

- **value** (::String) --- The TPU type of the time series.
**Returns**

- (::String) --- The TPU type of the time series.

### #unit

    def unit() -> ::String

**Returns**

- (::String) --- The units in which the values are reported.

### #unit=

    def unit=(value) -> ::String

**Parameter**

- **value** (::String) --- The units in which the values are reported.
**Returns**

- (::String) --- The units in which the values are reported.