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.



53534
53535
53536
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53534

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)


53532
53533
53534
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53532

def new_state
  @new_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



53539
53540
53541
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53539

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