Class: Google::Apis::WorkloadmanagerV1::ViolationDetails

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ViolationDetails

Returns a new instance of ViolationDetails.



4018
4019
4020
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4018

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#assetString

The name of the asset. Corresponds to the JSON property asset

Returns:

  • (String)


4001
4002
4003
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4001

def asset
  @asset
end

#observedHash<String,String>

Details of the violation. Corresponds to the JSON property observed

Returns:

  • (Hash<String,String>)


4006
4007
4008
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4006

def observed
  @observed
end

#rule_outputArray<Google::Apis::WorkloadmanagerV1::RuleOutput>

Output only. The rule output of the violation. Corresponds to the JSON property ruleOutput



4011
4012
4013
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4011

def rule_output
  @rule_output
end

#service_accountString

The service account associated with the resource. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


4016
4017
4018
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4016

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4023
4024
4025
4026
4027
4028
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4023

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