Google Cloud Assured Workloads V1 Client - Class ResourceInfo (1.1.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Assured Workloads V1 Client class ResourceInfo.
Represent the resources that are children of this Workload.
Generated from protobuf message google.cloud.assuredworkloads.v1.Workload.ResourceInfo
Namespace
Google \ Cloud \ AssuredWorkloads \ V1 \ WorkloadMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Type | Description |
int|string |
|
setResourceId
Resource identifier.
For a project this represents project_number.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResourceType
Indicates the type of resource.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ResourceType. |
setResourceType
Indicates the type of resource.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ResourceType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|