Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class TargetResourceConfig.
TargetResourceConfig contains either the name of the target_resource or contains the config to create a new target_resource.
Generated from protobuf message google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig
Namespace
Google \ Cloud \ CloudSecurityCompliance \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ existing_target_resource |
string
Optional. CRM node in format organizations/{organization}, folders/{folder}, or projects/{project} |
↳ target_resource_creation_config |
TargetResourceCreationConfig
Optional. Config to create a new resource and use that as the target_resource for deployment. |
getExistingTargetResource
Optional. CRM node in format organizations/{organization}, folders/{folder}, or projects/{project}
| Returns | |
|---|---|
| Type | Description |
string |
|
hasExistingTargetResource
setExistingTargetResource
Optional. CRM node in format organizations/{organization}, folders/{folder}, or projects/{project}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargetResourceCreationConfig
Optional. Config to create a new resource and use that as the target_resource for deployment.
| Returns | |
|---|---|
| Type | Description |
TargetResourceCreationConfig|null |
|
hasTargetResourceCreationConfig
setTargetResourceCreationConfig
Optional. Config to create a new resource and use that as the target_resource for deployment.
| Parameter | |
|---|---|
| Name | Description |
var |
TargetResourceCreationConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResourceConfig
| Returns | |
|---|---|
| Type | Description |
string |
|