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

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

Capacity demand for a resource.

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

Namespace

Google \ Cloud \ CapacityPlanner \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id string

Output only. Identifier of resource demand.

↳ resource_container ResourceContainer

Required. The resource container associated with the demand.

↳ resource_id ResourceIdentifier

Required. Identifier of resource.

↳ location_id LocationIdentifier

Required. Identifier of location.

↳ state int

Output only. State of the resource demand.

↳ reporter User

Output only. User who reported the demand.

↳ create_time Google\Protobuf\Timestamp

Output only. Timestamp when the demand was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Timestamp when the demand was last updated.

↳ demand_values DemandValues

Required. The demand values associated with the resource.

↳ demand_metadata DemandMetadata

Optional. The metadata associated with the demand.

↳ child_resource_demands array<ChildResourceDemand>

Optional. The child resource demands associated with the resource.

getId

Output only. Identifier of resource demand.

Returns
Type Description
string

setId

Output only. Identifier of resource demand.

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceContainer

Required. The resource container associated with the demand.

Returns
Type Description
ResourceContainer|null

hasResourceContainer

clearResourceContainer

setResourceContainer

Required. The resource container associated with the demand.

Parameter
Name Description
var ResourceContainer
Returns
Type Description
$this

getResourceId

Required. Identifier of resource.

Returns
Type Description
ResourceIdentifier|null

hasResourceId

clearResourceId

setResourceId

Required. Identifier of resource.

Parameter
Name Description
var ResourceIdentifier
Returns
Type Description
$this

getLocationId

Required. Identifier of location.

Returns
Type Description
LocationIdentifier|null

hasLocationId

clearLocationId

setLocationId

Required. Identifier of location.

Parameter
Name Description
var LocationIdentifier
Returns
Type Description
$this

getState

Output only. State of the resource demand.

Returns
Type Description
int Enum of type State.

setState

Output only. State of the resource demand.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this

getReporter

Output only. User who reported the demand.

Returns
Type Description
User|null

hasReporter

clearReporter

setReporter

Output only. User who reported the demand.

Parameter
Name Description
var User
Returns
Type Description
$this

getCreateTime

Output only. Timestamp when the demand was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Timestamp when the demand was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. Timestamp when the demand was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Timestamp when the demand was last updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getDemandValues

Required. The demand values associated with the resource.

Returns
Type Description
DemandValues|null

hasDemandValues

clearDemandValues

setDemandValues

Required. The demand values associated with the resource.

Parameter
Name Description
var DemandValues
Returns
Type Description
$this

getDemandMetadata

Optional. The metadata associated with the demand.

Returns
Type Description
DemandMetadata|null

hasDemandMetadata

clearDemandMetadata

setDemandMetadata

Optional. The metadata associated with the demand.

Parameter
Name Description
var DemandMetadata
Returns
Type Description
$this

getChildResourceDemands

Optional. The child resource demands associated with the resource.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setChildResourceDemands

Optional. The child resource demands associated with the resource.

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