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
Message describing 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.
-
#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.
1972 1973 1974 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1972 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset ⇒ String
The name of the asset.
Corresponds to the JSON property asset
1960 1961 1962 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1960 def asset @asset end |
#observed ⇒ Hash<String,String>
Details of the violation.
Corresponds to the JSON property observed
1965 1966 1967 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1965 def observed @observed end |
#service_account ⇒ String
The service account associated with the resource.
Corresponds to the JSON property serviceAccount
1970 1971 1972 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1970 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1977 1978 1979 1980 1981 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1977 def update!(**args) @asset = args[:asset] if args.key?(:asset) @observed = args[:observed] if args.key?(:observed) @service_account = args[:service_account] if args.key?(:service_account) end |