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

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

The identifier for a Google Cloud Platform resource.

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

Namespace

Google \ Cloud \ CapacityPlanner \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ service_name string
↳ resource_name string
↳ resource_attributes array<ResourceAttribute>

getServiceName

Generated from protobuf field string service_name = 1;

Returns
Type Description
string

setServiceName

Generated from protobuf field string service_name = 1;

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceName

Generated from protobuf field string resource_name = 2;

Returns
Type Description
string

setResourceName

Generated from protobuf field string resource_name = 2;

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceAttributes

Generated from protobuf field repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setResourceAttributes

Generated from protobuf field repeated .google.cloud.capacityplanner.v1beta.ResourceAttribute resource_attributes = 3;

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