Google Cloud Security Center Management V1 Client - Class SimulatedResource (0.1.0)

Reference documentation and code samples for the Google Cloud Security Center Management 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.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

Namespace

Google \ Cloud \ SecurityCenterManagement \ V1 \ SimulateSecurityHealthAnalyticsCustomModuleRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ resource_type string

Required. The type of the resource, for example, compute.googleapis.com/Disk.

↳ 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
TypeDescription
string

setResourceType

Required. The type of the resource, for example, compute.googleapis.com/Disk.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceData

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

Returns
TypeDescription
Google\Protobuf\Struct|null

hasResourceData

clearResourceData

setResourceData

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

Parameter
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this

getIamPolicyData

Optional. A representation of the IAM policy.

Returns
TypeDescription
Google\Cloud\Iam\V1\Policy|null

hasIamPolicyData

clearIamPolicyData

setIamPolicyData

Optional. A representation of the IAM policy.

Parameter
NameDescription
var Google\Cloud\Iam\V1\Policy
Returns
TypeDescription
$this