2015-12-03 01:10:07 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module PubsubV1
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class AcknowledgeRequest
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Binding
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class CreateSnapshotRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-01-31 00:37:48 +00:00
|
|
|
class DeadLetterPolicy
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-06-05 00:39:06 +00:00
|
|
|
class DetachSubscriptionResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Empty
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2018-11-11 00:36:53 +00:00
|
|
|
class ExpirationPolicy
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
class Expr
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class ListSnapshotsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListSubscriptionsResponse
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class ListTopicSnapshotsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListTopicSubscriptionsResponse
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListTopicsResponse
|
2017-05-26 16:44:32 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-06-14 00:37:43 +00:00
|
|
|
class MessageStoragePolicy
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ModifyAckDeadlineRequest
|
2017-05-26 16:44:32 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
class ModifyPushConfigRequest
|
2017-05-26 16:44:32 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-03-22 00:36:45 +00:00
|
|
|
class OidcToken
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Policy
|
2017-05-26 16:44:32 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PublishRequest
|
2017-05-26 16:44:32 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PublishResponse
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Message
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PullRequest
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PullResponse
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PushConfig
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
class ReceivedMessage
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-06-13 00:38:22 +00:00
|
|
|
class RetryPolicy
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class SeekRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class SeekResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class SetIamPolicyRequest
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class Snapshot
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Subscription
|
2017-03-27 22:14:47 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class TestIamPermissionsRequest
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class TestIamPermissionsResponse
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Topic
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class UpdateSnapshotRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class UpdateSubscriptionRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2018-07-04 00:36:45 +00:00
|
|
|
class UpdateTopicRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class AcknowledgeRequest
|
2017-06-02 06:11:31 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :ack_ids, as: 'ackIds'
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Binding
|
2017-06-02 06:11:31 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2018-08-22 21:14:52 +00:00
|
|
|
property :condition, as: 'condition', class: Google::Apis::PubsubV1::Expr, decorator: Google::Apis::PubsubV1::Expr::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :members, as: 'members'
|
|
|
|
property :role, as: 'role'
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class CreateSnapshotRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2018-07-04 00:36:45 +00:00
|
|
|
hash :labels, as: 'labels'
|
2017-12-02 00:36:26 +00:00
|
|
|
property :subscription, as: 'subscription'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-01-31 00:37:48 +00:00
|
|
|
class DeadLetterPolicy
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :dead_letter_topic, as: 'deadLetterTopic'
|
|
|
|
property :max_delivery_attempts, as: 'maxDeliveryAttempts'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-05 00:39:06 +00:00
|
|
|
class DetachSubscriptionResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Empty
|
2017-06-02 06:11:31 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2018-11-11 00:36:53 +00:00
|
|
|
class ExpirationPolicy
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :ttl, as: 'ttl'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
class Expr
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :expression, as: 'expression'
|
|
|
|
property :location, as: 'location'
|
|
|
|
property :title, as: 'title'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class ListSnapshotsResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :snapshots, as: 'snapshots', class: Google::Apis::PubsubV1::Snapshot, decorator: Google::Apis::PubsubV1::Snapshot::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListSubscriptionsResponse
|
2017-06-02 06:11:31 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class ListTopicSnapshotsResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :snapshots, as: 'snapshots'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListTopicSubscriptionsResponse
|
2017-06-02 06:11:31 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :subscriptions, as: 'subscriptions'
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListTopicsResponse
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
|
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2019-06-14 00:37:43 +00:00
|
|
|
class MessageStoragePolicy
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :allowed_persistence_regions, as: 'allowedPersistenceRegions'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ModifyAckDeadlineRequest
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
|
|
|
collection :ack_ids, as: 'ackIds'
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
class ModifyPushConfigRequest
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-07-12 20:10:42 +00:00
|
|
|
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
2017-06-02 06:11:31 +00:00
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2019-03-22 00:36:45 +00:00
|
|
|
class OidcToken
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :audience, as: 'audience'
|
|
|
|
property :service_account_email, as: 'serviceAccountEmail'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Policy
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
|
|
|
|
|
|
|
|
property :etag, :base64 => true, as: 'etag'
|
|
|
|
property :version, as: 'version'
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PublishRequest
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
|
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PublishResponse
|
2017-04-03 20:18:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :message_ids, as: 'messageIds'
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Message
|
2017-04-03 20:18:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
hash :attributes, as: 'attributes'
|
|
|
|
property :data, :base64 => true, as: 'data'
|
|
|
|
property :message_id, as: 'messageId'
|
|
|
|
property :publish_time, as: 'publishTime'
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PullRequest
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :max_messages, as: 'maxMessages'
|
|
|
|
property :return_immediately, as: 'returnImmediately'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PullResponse
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
|
|
|
|
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class PushConfig
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
hash :attributes, as: 'attributes'
|
2019-03-22 00:36:45 +00:00
|
|
|
property :oidc_token, as: 'oidcToken', class: Google::Apis::PubsubV1::OidcToken, decorator: Google::Apis::PubsubV1::OidcToken::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :push_endpoint, as: 'pushEndpoint'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
class ReceivedMessage
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-07-12 20:10:42 +00:00
|
|
|
property :ack_id, as: 'ackId'
|
2020-01-31 00:37:48 +00:00
|
|
|
property :delivery_attempt, as: 'deliveryAttempt'
|
2017-07-12 20:10:42 +00:00
|
|
|
property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2020-06-13 00:38:22 +00:00
|
|
|
class RetryPolicy
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :maximum_backoff, as: 'maximumBackoff'
|
|
|
|
property :minimum_backoff, as: 'minimumBackoff'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class SeekRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :snapshot, as: 'snapshot'
|
|
|
|
property :time, as: 'time'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class SeekResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class SetIamPolicyRequest
|
2017-03-27 22:14:47 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
class Snapshot
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :expire_time, as: 'expireTime'
|
2018-07-04 00:36:45 +00:00
|
|
|
hash :labels, as: 'labels'
|
2017-12-02 00:36:26 +00:00
|
|
|
property :name, as: 'name'
|
|
|
|
property :topic, as: 'topic'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Subscription
|
2015-12-03 01:10:07 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
2020-01-31 00:37:48 +00:00
|
|
|
property :dead_letter_policy, as: 'deadLetterPolicy', class: Google::Apis::PubsubV1::DeadLetterPolicy, decorator: Google::Apis::PubsubV1::DeadLetterPolicy::Representation
|
|
|
|
|
2018-11-11 00:36:53 +00:00
|
|
|
property :expiration_policy, as: 'expirationPolicy', class: Google::Apis::PubsubV1::ExpirationPolicy, decorator: Google::Apis::PubsubV1::ExpirationPolicy::Representation
|
|
|
|
|
2020-05-08 00:38:01 +00:00
|
|
|
property :filter, as: 'filter'
|
2018-07-04 00:36:45 +00:00
|
|
|
hash :labels, as: 'labels'
|
2017-12-02 00:36:26 +00:00
|
|
|
property :message_retention_duration, as: 'messageRetentionDuration'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :name, as: 'name'
|
|
|
|
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
|
|
|
|
2017-12-02 00:36:26 +00:00
|
|
|
property :retain_acked_messages, as: 'retainAckedMessages'
|
2020-06-13 00:38:22 +00:00
|
|
|
property :retry_policy, as: 'retryPolicy', class: Google::Apis::PubsubV1::RetryPolicy, decorator: Google::Apis::PubsubV1::RetryPolicy::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :topic, as: 'topic'
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class TestIamPermissionsRequest
|
2015-12-03 01:10:07 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :permissions, as: 'permissions'
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class TestIamPermissionsResponse
|
2015-12-03 01:10:07 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :permissions, as: 'permissions'
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Topic
|
2015-12-03 01:10:07 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2019-06-14 00:37:43 +00:00
|
|
|
property :kms_key_name, as: 'kmsKeyName'
|
2018-07-04 00:36:45 +00:00
|
|
|
hash :labels, as: 'labels'
|
2019-06-14 00:37:43 +00:00
|
|
|
property :message_storage_policy, as: 'messageStoragePolicy', class: Google::Apis::PubsubV1::MessageStoragePolicy, decorator: Google::Apis::PubsubV1::MessageStoragePolicy::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :name, as: 'name'
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
2017-12-02 00:36:26 +00:00
|
|
|
|
|
|
|
class UpdateSnapshotRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :snapshot, as: 'snapshot', class: Google::Apis::PubsubV1::Snapshot, decorator: Google::Apis::PubsubV1::Snapshot::Representation
|
|
|
|
|
|
|
|
property :update_mask, as: 'updateMask'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class UpdateSubscriptionRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :subscription, as: 'subscription', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
|
|
|
|
|
|
|
|
property :update_mask, as: 'updateMask'
|
|
|
|
end
|
|
|
|
end
|
2018-07-04 00:36:45 +00:00
|
|
|
|
|
|
|
class UpdateTopicRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :topic, as: 'topic', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
|
|
|
|
|
|
|
|
property :update_mask, as: 'updateMask'
|
|
|
|
end
|
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|