Class: Google::Apis::WorkloadmanagerV1::ViolationDetails
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::ViolationDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
The violation in an evaluation result.
Instance Attribute Summary collapse
-
#asset ⇒ String
The name of the asset.
-
#observed ⇒ Hash<String,String>
Details of the violation.
-
#rule_output ⇒ Array<Google::Apis::WorkloadmanagerV1::RuleOutput>
Output only.
-
#service_account ⇒ String
The service account associated with the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ViolationDetails
constructor
A new instance of ViolationDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ViolationDetails
Returns a new instance of ViolationDetails.
4021 4022 4023 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4021 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset ⇒ String
The name of the asset.
Corresponds to the JSON property asset
4004 4005 4006 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4004 def asset @asset end |
#observed ⇒ Hash<String,String>
Details of the violation.
Corresponds to the JSON property observed
4009 4010 4011 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4009 def observed @observed end |
#rule_output ⇒ Array<Google::Apis::WorkloadmanagerV1::RuleOutput>
Output only. The rule output of the violation.
Corresponds to the JSON property ruleOutput
4014 4015 4016 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4014 def rule_output @rule_output end |
#service_account ⇒ String
The service account associated with the resource.
Corresponds to the JSON property serviceAccount
4019 4020 4021 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4019 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4026 4027 4028 4029 4030 4031 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4026 def update!(**args) @asset = args[:asset] if args.key?(:asset) @observed = args[:observed] if args.key?(:observed) @rule_output = args[:rule_output] if args.key?(:rule_output) @service_account = args[:service_account] if args.key?(:service_account) end |