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

Message describing 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.



2228
2229
2230
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2228

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

Instance Attribute Details

#assetString

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

Returns:

  • (String)


2216
2217
2218
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2216

def asset
  @asset
end

#observedHash<String,String>

Details of the violation. Corresponds to the JSON property observed

Returns:

  • (Hash<String,String>)


2221
2222
2223
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2221

def observed
  @observed
end

#service_accountString

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

Returns:

  • (String)


2226
2227
2228
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2226

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2233
2234
2235
2236
2237
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2233

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