Class: Google::Apis::ServicecontrolV1::OrgPolicyViolationInfo
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV1::OrgPolicyViolationInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicecontrol_v1/classes.rb,
lib/google/apis/servicecontrol_v1/representations.rb,
lib/google/apis/servicecontrol_v1/representations.rb
Overview
Represents OrgPolicy Violation information.
Instance Attribute Summary collapse
-
#payload ⇒ Hash<String,Object>
Optional.
-
#resource_tags ⇒ Hash<String,String>
Optional.
-
#resource_type ⇒ String
Optional.
-
#violation_info ⇒ Array<Google::Apis::ServicecontrolV1::ViolationInfo>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrgPolicyViolationInfo
constructor
A new instance of OrgPolicyViolationInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrgPolicyViolationInfo
Returns a new instance of OrgPolicyViolationInfo.
1542 1543 1544 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 1542 def initialize(**args) update!(**args) end |
Instance Attribute Details
#payload ⇒ Hash<String,Object>
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.
Corresponds to the JSON property payload
1520 1521 1522 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 1520 def payload @payload end |
#resource_tags ⇒ Hash<String,String>
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.
Corresponds to the JSON property resourceTags
1529 1530 1531 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 1529 def @resource_tags end |
#resource_type ⇒ String
Optional. Resource type that the orgpolicy is checked against. Example:
compute.googleapis.com/Instance, store.googleapis.com/bucket
Corresponds to the JSON property resourceType
1535 1536 1537 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 1535 def resource_type @resource_type end |
#violation_info ⇒ Array<Google::Apis::ServicecontrolV1::ViolationInfo>
Optional. Policy violations
Corresponds to the JSON property violationInfo
1540 1541 1542 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 1540 def violation_info @violation_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1547 1548 1549 1550 1551 1552 |
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 1547 def update!(**args) @payload = args[:payload] if args.key?(:payload) @resource_tags = args[:resource_tags] if args.key?(:resource_tags) @resource_type = args[:resource_type] if args.key?(:resource_type) @violation_info = args[:violation_info] if args.key?(:violation_info) end |