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 \ AuditMethods
__construct
Constructor.
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
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.
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.
$this
getResourceType
Optional. Resource type that the orgpolicy is checked against.
Example: compute.googleapis.com/Instance, store.googleapis.com/bucket
string
setResourceType
Optional. Resource type that the orgpolicy is checked against.
Example: compute.googleapis.com/Instance, store.googleapis.com/bucket
var
string
$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.
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.
$this
getViolationInfo
Optional. Policy violations
setViolationInfo
Optional. Policy violations
$this