Class: Google::Apis::WorkloadmanagerV1::Execution

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 Execution object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Execution

Returns a new instance of Execution.



291
292
293
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 291

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

Instance Attribute Details

#end_timeString

Output only. [Output only] End time stamp Corresponds to the JSON property endTime

Returns:

  • (String)


232
233
234
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 232

def end_time
  @end_time
end

#evaluation_idString

Output only. [Output only] Evaluation ID Corresponds to the JSON property evaluationId

Returns:

  • (String)


237
238
239
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 237

def evaluation_id
  @evaluation_id
end

#external_data_sourcesArray<Google::Apis::WorkloadmanagerV1::ExternalDataSources>

Optional. External data sources Corresponds to the JSON property externalDataSources



242
243
244
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 242

def external_data_sources
  @external_data_sources
end

#inventory_timeString

Output only. [Output only] Inventory time stamp Corresponds to the JSON property inventoryTime

Returns:

  • (String)


247
248
249
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 247

def inventory_time
  @inventory_time
end

#labelsHash<String,String>

Labels as key value pairs Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


252
253
254
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 252

def labels
  @labels
end

#nameString

The name of execution resource. The format is projects/project/locations/ location/evaluations/evaluation/executions/execution Corresponds to the JSON property name

Returns:

  • (String)


258
259
260
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 258

def name
  @name
end

#noticesArray<Google::Apis::WorkloadmanagerV1::Notice>

Output only. Additional information generated by the execution Corresponds to the JSON property notices



263
264
265
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 263

def notices
  @notices
end

#result_summaryGoogle::Apis::WorkloadmanagerV1::Summary

Message for execution summary Corresponds to the JSON property resultSummary



268
269
270
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 268

def result_summary
  @result_summary
end

#rule_resultsArray<Google::Apis::WorkloadmanagerV1::RuleExecutionResult>

Output only. execution result summary per rule Corresponds to the JSON property ruleResults



273
274
275
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 273

def rule_results
  @rule_results
end

#run_typeString

type represent whether the execution executed directly by user or scheduled according evaluation.schedule field. Corresponds to the JSON property runType

Returns:

  • (String)


279
280
281
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 279

def run_type
  @run_type
end

#start_timeString

Output only. [Output only] Start time stamp Corresponds to the JSON property startTime

Returns:

  • (String)


284
285
286
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 284

def start_time
  @start_time
end

#stateString

Output only. [Output only] State Corresponds to the JSON property state

Returns:

  • (String)


289
290
291
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 289

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



296
297
298
299
300
301
302
303
304
305
306
307
308
309
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 296

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @evaluation_id = args[:evaluation_id] if args.key?(:evaluation_id)
  @external_data_sources = args[:external_data_sources] if args.key?(:external_data_sources)
  @inventory_time = args[:inventory_time] if args.key?(:inventory_time)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @notices = args[:notices] if args.key?(:notices)
  @result_summary = args[:result_summary] if args.key?(:result_summary)
  @rule_results = args[:rule_results] if args.key?(:rule_results)
  @run_type = args[:run_type] if args.key?(:run_type)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
end