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

hasResourceContainer

clearResourceContainer

setResourceContainer

Required. The resource container associated with the demand.

Parameter
Name
Description
Returns
Type
Description
$this

getResourceId

Required. Identifier of resource.

Returns
Type
Description

hasResourceId

clearResourceId

setResourceId

Required. Identifier of resource.

Parameter
Name
Description
Returns
Type
Description
$this

getLocationId

Required. Identifier of location.

Returns
Type
Description

hasLocationId

clearLocationId

setLocationId

Required. Identifier of location.

Parameter
Name
Description
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
Returns
Type
Description
$this

getCreateTime

Output only. Timestamp when the demand was created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. Timestamp when the demand was created.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. Timestamp when the demand was last updated.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Timestamp when the demand was last updated.

Parameter
Name
Description
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
Returns
Type
Description
$this

Optional. The metadata associated with the demand.

Returns
Type
Description

Optional. The metadata associated with the demand.

Parameter
Name
Description
Returns
Type
Description
$this

getChildResourceDemands

Optional. The child resource demands associated with the resource.

Returns
Type
Description

setChildResourceDemands

Optional. The child resource demands associated with the resource.

Parameter
Name
Description
var
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: