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

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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this

getResourceType

Optional. Resource type that the orgpolicy is checked against.

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

Returns
TypeDescription
string

setResourceType

Optional. Resource type that the orgpolicy is checked against.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getViolationInfo

Optional. Policy violations

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setViolationInfo

Optional. Policy violations

Parameter
NameDescription
var array<Google\Cloud\Audit\ViolationInfo>
Returns
TypeDescription
$this