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 violdation in execution result

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ViolationDetails

Returns a new instance of ViolationDetails.



1405
1406
1407
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1405

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

Instance Attribute Details

#assetString

the name of asset Corresponds to the JSON property asset

Returns:

  • (String)


1393
1394
1395
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1393

def asset
  @asset
end

#observedHash<String,String>

observed Corresponds to the JSON property observed

Returns:

  • (Hash<String,String>)


1398
1399
1400
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1398

def observed
  @observed
end

#service_accountString

the service account associate with resource Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1403
1404
1405
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1403

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1410
1411
1412
1413
1414
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1410

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