Reference documentation and code samples for the Google Cloud Maintenance Api V1beta Client class Resource.
Resource contains information about the resource affected by maintenance.
Generated from protobuf message google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource
Namespace
Google \ Cloud \ Maintenance \ Api \ V1beta \ ResourceMaintenanceMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ resource_name |
string
Output only. Name is the reference to the consumer resource affected by the maintenance. Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-names |
↳ location |
string
Output only. The location of the resource. Format: |
↳ type |
string
Output only. The type of the resource. Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types Please note that not all the resource types will have their maintenances reported. |
getResourceName
Output only. Name is the reference to the consumer resource affected by the maintenance. Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-names
| Returns | |
|---|---|
| Type | Description |
string |
|
setResourceName
Output only. Name is the reference to the consumer resource affected by the maintenance. Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-names
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLocation
Output only. The location of the resource.
Format:
us-central1
| Returns | |
|---|---|
| Type | Description |
string |
|
setLocation
Output only. The location of the resource.
Format:
us-central1
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
Output only. The type of the resource.
Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types Please note that not all the resource types will have their maintenances reported.
| Returns | |
|---|---|
| Type | Description |
string |
|
setType
Output only. The type of the resource.
Available values can be found here: https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types Please note that not all the resource types will have their maintenances reported.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|