Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class SimulatedResource.
Manually constructed resource name. If the custom module evaluates against
only the resource data, you can omit the iam_policy_data
field. If it
evaluates only the iam_policy_data
field, you can omit the resource data.
Generated from protobuf message google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Namespace
Google \ Cloud \ SecurityCenter \ V1 \ SimulateSecurityHealthAnalyticsCustomModuleRequestMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ resource_type |
string
Required. The type of the resource, for example, |
↳ resource_data |
Google\Protobuf\Struct
Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format. |
↳ iam_policy_data |
Google\Cloud\Iam\V1\Policy
Optional. A representation of the IAM policy. |
getResourceType
Required. The type of the resource, for example,
compute.googleapis.com/Disk
.
Returns | |
---|---|
Type | Description |
string |
setResourceType
Required. The type of the resource, for example,
compute.googleapis.com/Disk
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getResourceData
Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Struct|null |
hasResourceData
clearResourceData
setResourceData
Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Struct
|
Returns | |
---|---|
Type | Description |
$this |
getIamPolicyData
Optional. A representation of the IAM policy.
Returns | |
---|---|
Type | Description |
Google\Cloud\Iam\V1\Policy|null |
hasIamPolicyData
clearIamPolicyData
setIamPolicyData
Optional. A representation of the IAM policy.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Iam\V1\Policy
|
Returns | |
---|---|
Type | Description |
$this |