Class: Google::Apis::BatchV1::JobNotification
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::JobNotification
- 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
Notification configurations.
Instance Attribute Summary collapse
-
#message ⇒ Google::Apis::BatchV1::Message
Message details.
-
#pubsub_topic ⇒ String
The Pub/Sub topic where notifications like the job state changes will be published.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobNotification
constructor
A new instance of JobNotification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobNotification
Returns a new instance of JobNotification.
1003 1004 1005 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1003 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message ⇒ Google::Apis::BatchV1::Message
Message details. Describe the attribute that a message should have. Without
specified message attributes, no message will be sent by default.
Corresponds to the JSON property message
993 994 995 |
# File 'lib/google/apis/batch_v1/classes.rb', line 993 def @message end |
#pubsub_topic ⇒ 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`.
Corresponds to the JSON propertypubsubTopic`
1001 1002 1003 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1001 def pubsub_topic @pubsub_topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1008 1009 1010 1011 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1008 def update!(**args) @message = args[:message] if args.key?(:message) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) end |