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.



182
183
184
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 182

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)


143
144
145
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 143

def end_time
  @end_time
end

#evaluation_idString

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

Returns:

  • (String)


148
149
150
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 148

def evaluation_id
  @evaluation_id
end

#inventory_timeString

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

Returns:

  • (String)


153
154
155
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 153

def inventory_time
  @inventory_time
end

#labelsHash<String,String>

Labels as key value pairs Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


158
159
160
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 158

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)


164
165
166
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 164

def name
  @name
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)


170
171
172
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 170

def run_type
  @run_type
end

#start_timeString

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

Returns:

  • (String)


175
176
177
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 175

def start_time
  @start_time
end

#stateString

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

Returns:

  • (String)


180
181
182
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 180

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



187
188
189
190
191
192
193
194
195
196
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 187

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @evaluation_id = args[:evaluation_id] if args.key?(:evaluation_id)
  @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