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.



62414
62415
62416
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62414

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)


62412
62413
62414
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62412

def new_state
  @new_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



62419
62420
62421
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62419

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