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.



61802
61803
61804
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 61802

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)


61800
61801
61802
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 61800

def new_state
  @new_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



61807
61808
61809
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 61807

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