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

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

The id for a Google Cloud Platform resource key.

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

Namespace

Google \ Cloud \ CapacityPlanner \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ resource_code string

Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.

↳ resource_id ResourceIdentifier

Required. Id of the resource.

getResourceCode

Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.

Returns
Type Description
string

hasResourceCode

setResourceCode

Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceId

Required. Id of the resource.

Returns
Type Description
ResourceIdentifier|null

hasResourceId

clearResourceId

setResourceId

Required. Id of the resource.

Parameter
Name Description
var ResourceIdentifier
Returns
Type Description
$this

getDemandFields

Returns
Type Description
string