Reference documentation and code samples for the Google Cloud Security Center Management V1 Client class SimulatedResource.
Manually constructed information about a resource.
Generated from protobuf message google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Namespace
Google \ Cloud \ SecurityCenterManagement \ 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. If the custom module evaluates only the IAM allow policy, then you can omit this field. |
↳ iam_policy_data |
Google\Cloud\Iam\V1\Policy
Optional. A representation of the IAM allow policy. If the custom module evaluates only the resource data, then you can omit this field. |
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.
If the custom module evaluates only the IAM allow policy, then you can omit this field.
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.
If the custom module evaluates only the IAM allow policy, then you can omit this field.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Struct
|
Returns | |
---|---|
Type | Description |
$this |
getIamPolicyData
Optional. A representation of the IAM allow policy.
If the custom module evaluates only the resource data, then you can omit this field.
Returns | |
---|---|
Type | Description |
Google\Cloud\Iam\V1\Policy|null |
hasIamPolicyData
clearIamPolicyData
setIamPolicyData
Optional. A representation of the IAM allow policy.
If the custom module evaluates only the resource data, then you can omit this field.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Iam\V1\Policy
|
Returns | |
---|---|
Type | Description |
$this |