Class: Google::Cloud::Batch::V1::JobNotification

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/batch/v1/job.rb

Overview

Notification configurations.

Defined Under Namespace

Modules: Type Classes: Message

Instance Attribute Summary collapse

Instance Attribute Details

#message::Google::Cloud::Batch::V1::JobNotification::Message

Returns The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.

Returns:



221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 221

class JobNotification
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Message details.
  # Describe the attribute that a message should have.
  # Without specified message attributes, no message will be sent by default.
  # @!attribute [rw] type
  #   @return [::Google::Cloud::Batch::V1::JobNotification::Type]
  #     The message type.
  # @!attribute [rw] new_job_state
  #   @return [::Google::Cloud::Batch::V1::JobStatus::State]
  #     The new job state.
  # @!attribute [rw] new_task_state
  #   @return [::Google::Cloud::Batch::V1::TaskStatus::State]
  #     The new task state.
  class Message
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The message type.
  module Type
    # Unspecified.
    TYPE_UNSPECIFIED = 0

    # Notify users that the job state has changed.
    JOB_STATE_CHANGED = 1

    # Notify users that the task state has changed.
    TASK_STATE_CHANGED = 2
  end
end

#pubsub_topic::String

Returns The Pub/Sub topic where notifications like the job state changes will be published. This topic exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: projects/{project}/topics/{topic}.

Returns:

  • (::String)

    The Pub/Sub topic where notifications like the job state changes will be published. This topic exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: projects/{project}/topics/{topic}.



221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 221

class JobNotification
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Message details.
  # Describe the attribute that a message should have.
  # Without specified message attributes, no message will be sent by default.
  # @!attribute [rw] type
  #   @return [::Google::Cloud::Batch::V1::JobNotification::Type]
  #     The message type.
  # @!attribute [rw] new_job_state
  #   @return [::Google::Cloud::Batch::V1::JobStatus::State]
  #     The new job state.
  # @!attribute [rw] new_task_state
  #   @return [::Google::Cloud::Batch::V1::TaskStatus::State]
  #     The new task state.
  class Message
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The message type.
  module Type
    # Unspecified.
    TYPE_UNSPECIFIED = 0

    # Notify users that the job state has changed.
    JOB_STATE_CHANGED = 1

    # Notify users that the task state has changed.
    TASK_STATE_CHANGED = 2
  end
end