Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class DataSourceGcpResource.
DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource
Generated from protobuf message google.cloud.backupdr.v1.DataSourceGcpResource
Namespace
Google \ Cloud \ BackupDR \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ gcp_resourcename |
string
Output only. Full resource pathname URL of the source Google Cloud resource. |
↳ location |
string
Location of the resource:
|
↳ type |
string
The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance. |
↳ compute_instance_datasource_properties |
Google\Cloud\BackupDR\V1\ComputeInstanceDataSourceProperties
ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level. |
getGcpResourcename
Output only. Full resource pathname URL of the source Google Cloud resource.
Returns | |
---|---|
Type | Description |
string |
setGcpResourcename
Output only. Full resource pathname URL of the source Google Cloud resource.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLocation
Location of the resource:
Returns | |
---|---|
Type | Description |
string |
setLocation
Location of the resource:
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getType
The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
Returns | |
---|---|
Type | Description |
string |
setType
The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getComputeInstanceDatasourceProperties
ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
Returns | |
---|---|
Type | Description |
Google\Cloud\BackupDR\V1\ComputeInstanceDataSourceProperties|null |
hasComputeInstanceDatasourceProperties
setComputeInstanceDatasourceProperties
ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\BackupDR\V1\ComputeInstanceDataSourceProperties
|
Returns | |
---|---|
Type | Description |
$this |
getGcpResourceProperties
Returns | |
---|---|
Type | Description |
string |