Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TaskStateChange

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

A message representing a change in a task's state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1TaskStateChange

Returns a new instance of GoogleCloudAiplatformV1beta1TaskStateChange.



58743
58744
58745
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 58743

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

Instance Attribute Details

#new_stateString

Required. The new state of the task. Corresponds to the JSON property newState

Returns:

  • (String)


58741
58742
58743
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 58741

def new_state
  @new_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



58748
58749
58750
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 58748

def update!(**args)
  @new_state = args[:new_state] if args.key?(:new_state)
end