Google Cloud Assured Workloads V1beta1 Client - Class ResourceInfo (0.7.3)

Reference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class ResourceInfo.

Represent the resources that are children of this Workload.

Generated from protobuf message google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ resource_id int|string

Resource identifier. For a project this represents project_number.

↳ resource_type int

Indicates the type of resource.

getResourceId

Resource identifier.

For a project this represents project_number.

Returns
TypeDescription
int|string

setResourceId

Resource identifier.

For a project this represents project_number.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getResourceType

Indicates the type of resource.

Returns
TypeDescription
int

setResourceType

Indicates the type of resource.

Parameter
NameDescription
var int
Returns
TypeDescription
$this