Class: Google::Apis::BatchV1::Message
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::Message
- 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
-
#new_job_state ⇒ String
The new job state.
-
#new_task_state ⇒ String
The new task state.
-
#type ⇒ String
The message type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Message
constructor
A new instance of Message.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Message
Returns a new instance of Message.
1311 1312 1313 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1311 def initialize(**args) update!(**args) end |
Instance Attribute Details
#new_job_state ⇒ String
The new job state.
Corresponds to the JSON property newJobState
1299 1300 1301 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1299 def new_job_state @new_job_state end |
#new_task_state ⇒ String
The new task state.
Corresponds to the JSON property newTaskState
1304 1305 1306 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1304 def new_task_state @new_task_state end |
#type ⇒ String
The message type.
Corresponds to the JSON property type
1309 1310 1311 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1309 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1316 1317 1318 1319 1320 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1316 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 |