Class: Google::Apis::BatchV1::Message

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

Overview

Message details. Describe the attribute that a message should have. Without specified message attributes, no message will be sent by default.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Message

Returns a new instance of Message.



1238
1239
1240
# File 'lib/google/apis/batch_v1/classes.rb', line 1238

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

Instance Attribute Details

#new_job_stateString

The new job state. Corresponds to the JSON property newJobState

Returns:

  • (String)


1226
1227
1228
# File 'lib/google/apis/batch_v1/classes.rb', line 1226

def new_job_state
  @new_job_state
end

#new_task_stateString

The new task state. Corresponds to the JSON property newTaskState

Returns:

  • (String)


1231
1232
1233
# File 'lib/google/apis/batch_v1/classes.rb', line 1231

def new_task_state
  @new_task_state
end

#typeString

The message type. Corresponds to the JSON property type

Returns:

  • (String)


1236
1237
1238
# File 'lib/google/apis/batch_v1/classes.rb', line 1236

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1243
1244
1245
1246
1247
# File 'lib/google/apis/batch_v1/classes.rb', line 1243

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