Common Protos for Google Cloud APIs Client - Class OrgPolicyViolationInfo (0.5.1)

Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class OrgPolicyViolationInfo.

Represents OrgPolicy Violation information.

Generated from protobuf message google.cloud.audit.OrgPolicyViolationInfo

Namespace

Google \ Cloud \ Audit

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ payload Google\Protobuf\Struct

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.

↳ resource_type string

Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket

↳ resource_tags array|Google\Protobuf\Internal\MapField

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests. Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

↳ violation_info array<Google\Cloud\Audit\ViolationInfo>

Optional. Policy violations

getPayload

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.

Returns
Type Description
Google\Protobuf\Struct|null

hasPayload

clearPayload

setPayload

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this

getResourceType

Optional. Resource type that the orgpolicy is checked against.

Example: compute.googleapis.com/Instance, store.googleapis.com/bucket

Returns
Type Description
string

setResourceType

Optional. Resource type that the orgpolicy is checked against.

Example: compute.googleapis.com/Instance, store.googleapis.com/bucket

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceTags

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

Returns
Type Description
Google\Protobuf\Internal\MapField

setResourceTags

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getViolationInfo

Optional. Policy violations

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setViolationInfo

Optional. Policy violations

Parameter
Name Description
var array<Google\Cloud\Audit\ViolationInfo>
Returns
Type Description
$this