generated/google/apis/pubsub_v1beta2/classes.rb in google-api-client-0.9.pre2 vs generated/google/apis/pubsub_v1beta2/classes.rb in google-api-client-0.9.pre3
- old
+ new
@@ -383,16 +383,15 @@
# A topic resource.
class Topic
include Google::Apis::Core::Hashable
- # The name of the topic. It must have the format "projects/`project`/topics/`
- # topic`" for Google Cloud Pub/Sub API v1 and v1beta2. `topic` must start with a
- # letter, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-),
- # underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It
- # must be between 3 and 255 characters in length, and it must not start with "
- # goog".
+ # The name of the topic. It must have the format `"projects/`project`/topics/`
+ # topic`"`. ``topic`` must start with a letter, and contain only letters (`[A-Za-
+ # z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`),
+ # tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255
+ # characters in length, and it must not start with `"goog"`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
@@ -422,11 +421,12 @@
def update!(**args)
@messages = args[:messages] unless args[:messages].nil?
end
end
- # A message data and its attributes.
+ # A message data and its attributes. The message payload must not be empty; it
+ # must contain either a non-empty data field, or at least one attribute.
class Message
include Google::Apis::Core::Hashable
# The message payload. For JSON requests, the value of this field must be base64-
# encoded.
@@ -551,16 +551,16 @@
# A subscription resource.
class Subscription
include Google::Apis::Core::Hashable
- # The name of the subscription. It must have the format "projects/`project`/
- # subscriptions/`subscription`" for Google Cloud Pub/Sub API v1 and v1beta2. `
- # subscription` must start with a letter, and contain only letters ([A-Za-z]),
- # numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+)
- # or percent signs (%). It must be between 3 and 255 characters in length, and
- # it must not start with "goog".
+ # The name of the subscription. It must have the format `"projects/`project`/
+ # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and
+ # contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
+ # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%
+ # `). It must be between 3 and 255 characters in length, and it must not start
+ # with `"goog"`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The name of the topic from which this subscription is receiving messages. The
@@ -577,16 +577,16 @@
# This value is the maximum time after a subscriber receives a message before
# the subscriber should acknowledge the message. After message delivery but
# before the ack deadline expires and before the message is acknowledged, it is
# an outstanding message and will not be delivered again during that time (on a
# best-effort basis). For pull delivery this value is used as the initial value
- # for the ack deadline. It may be overridden for each message using its
- # corresponding ack_id by calling ModifyAckDeadline. For push delivery, this
- # value is also used to set the request timeout for the call to the push
- # endpoint. If the subscriber never acknowledges the message, the Pub/Sub system
- # will eventually redeliver the message. If this parameter is not set, the
- # default value of 60 seconds is used.
+ # for the ack deadline. To override this value for a given message, call
+ # ModifyAckDeadline with the corresponding ack_id. For push delivery, this value
+ # is also used to set the request timeout for the call to the push endpoint. If
+ # the subscriber never acknowledges the message, the Pub/Sub system will
+ # eventually redeliver the message. If this parameter is not set, the default
+ # value of 10 seconds is used.
# Corresponds to the JSON property `ackDeadlineSeconds`
# @return [Fixnum]
attr_accessor :ack_deadline_seconds
def initialize(**args)
@@ -783,10 +783,11 @@
# This ID can be used to acknowledge the received message.
# Corresponds to the JSON property `ackId`
# @return [String]
attr_accessor :ack_id
- # A message data and its attributes.
+ # A message data and its attributes. The message payload must not be empty; it
+ # must contain either a non-empty data field, or at least one attribute.
# Corresponds to the JSON property `message`
# @return [Google::Apis::PubsubV1beta2::Message]
attr_accessor :message
def initialize(**args)