Google Cloud Capacity Planner V1beta Client - Class CapacityPlanView (0.1.0)

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class CapacityPlanView.

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

Generated from protobuf message google.cloud.capacityplanner.v1beta.CapacityPlanView

Namespace

Google \ Cloud \ CapacityPlanner \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key CapacityPlanKey

Required. The capacity plan key associated with the capacity plan view.

↳ time_series_views array<TimeSeriesView>

Required. The time series views associated with the capacity plan view.

getKey

Required. The capacity plan key associated with the capacity plan view.

Returns
Type Description
CapacityPlanKey|null

hasKey

clearKey

setKey

Required. The capacity plan key associated with the capacity plan view.

Parameter
Name Description
var CapacityPlanKey
Returns
Type Description
$this

getTimeSeriesViews

Required. The time series views associated with the capacity plan view.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTimeSeriesViews

Required. The time series views associated with the capacity plan view.

Parameter
Name Description
var array<TimeSeriesView>
Returns
Type Description
$this