Class: Google::Apis::WorkloadmanagerV1::Execution
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::Execution
- 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
-
#end_time ⇒ String
Output only.
-
#evaluation_id ⇒ String
Output only.
-
#external_data_sources ⇒ Array<Google::Apis::WorkloadmanagerV1::ExternalDataSources>
Optional.
-
#inventory_time ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs Corresponds to the JSON property
labels. -
#name ⇒ String
The name of execution resource.
-
#run_type ⇒ String
type represent whether the execution executed directly by user or scheduled according evaluation.schedule field.
-
#start_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Execution
constructor
A new instance of Execution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Execution
Returns a new instance of Execution.
342 343 344 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 342 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
Output only. [Output only] End time stamp
Corresponds to the JSON property endTime
298 299 300 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 298 def end_time @end_time end |
#evaluation_id ⇒ String
Output only. [Output only] Evaluation ID
Corresponds to the JSON property evaluationId
303 304 305 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 303 def evaluation_id @evaluation_id end |
#external_data_sources ⇒ Array<Google::Apis::WorkloadmanagerV1::ExternalDataSources>
Optional. External data sources
Corresponds to the JSON property externalDataSources
308 309 310 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 308 def external_data_sources @external_data_sources end |
#inventory_time ⇒ String
Output only. [Output only] Inventory time stamp
Corresponds to the JSON property inventoryTime
313 314 315 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 313 def inventory_time @inventory_time end |
#labels ⇒ Hash<String,String>
Labels as key value pairs
Corresponds to the JSON property labels
318 319 320 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 318 def labels @labels end |
#name ⇒ String
The name of execution resource. The format is projects/project/locations/
location/evaluations/evaluation/executions/execution
Corresponds to the JSON property name
324 325 326 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 324 def name @name end |
#run_type ⇒ String
type represent whether the execution executed directly by user or scheduled
according evaluation.schedule field.
Corresponds to the JSON property runType
330 331 332 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 330 def run_type @run_type end |
#start_time ⇒ String
Output only. [Output only] Start time stamp
Corresponds to the JSON property startTime
335 336 337 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 335 def start_time @start_time end |
#state ⇒ String
Output only. [Output only] State
Corresponds to the JSON property state
340 341 342 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 340 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
347 348 349 350 351 352 353 354 355 356 357 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 347 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) @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 |