Class: Google::Cloud::Scheduler::V1beta1::PubsubTarget

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/scheduler/v1beta1/target.rb

Overview

Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.

Defined Under Namespace

Classes: AttributesEntry

Instance Attribute Summary collapse

Instance Attribute Details

#attributes::Google::Protobuf::Map{::String => ::String}

Returns Attributes for PubsubMessage.

Pubsub message must contain either non-empty data, or at least one attribute.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    Attributes for PubsubMessage.

    Pubsub message must contain either non-empty data, or at least one attribute.



210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'proto_docs/google/cloud/scheduler/v1beta1/target.rb', line 210

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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AttributesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#data::String

Returns The message payload for PubsubMessage.

Pubsub message must contain either non-empty data, or at least one attribute.

Returns:

  • (::String)

    The message payload for PubsubMessage.

    Pubsub message must contain either non-empty data, or at least one attribute.



210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'proto_docs/google/cloud/scheduler/v1beta1/target.rb', line 210

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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AttributesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#topic_name::String

Returns Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by Pub/Sub's PublishRequest.name, for example projects/PROJECT_ID/topics/TOPIC_ID.

The topic must be in the same project as the Cloud Scheduler job.

Returns:

  • (::String)

    Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by Pub/Sub's PublishRequest.name, for example projects/PROJECT_ID/topics/TOPIC_ID.

    The topic must be in the same project as the Cloud Scheduler job.



210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'proto_docs/google/cloud/scheduler/v1beta1/target.rb', line 210

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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AttributesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end