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.



63729
63730
63731
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63729

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)


63727
63728
63729
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63727

def new_state
  @new_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



63734
63735
63736
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63734

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