google-api-ruby-client/generated/google/apis/pubsub_v1/representations.rb

324 lines
10 KiB
Ruby
Raw Normal View History

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-03-27 22:14:47 +00:00
class Binding
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-03-27 22:14:47 +00:00
class ListTopicsResponse
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-03-27 22:14:47 +00:00
class AcknowledgeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
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-02-13 23:28:52 +00:00
class ListTopicSubscriptionsResponse
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-02-13 23:28:52 +00:00
class PullResponse
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-02-13 23:28:52 +00:00
class ReceivedMessage
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-02-13 23:28:52 +00:00
class PushConfig
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-02-13 23:28:52 +00:00
class TestIamPermissionsResponse
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-02-13 23:28:52 +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-02-13 23:28:52 +00:00
class ListSubscriptionsResponse
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-02-13 23:28:52 +00:00
class PublishRequest
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-02-13 23:28:52 +00:00
class PublishResponse
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-02-13 23:28:52 +00:00
class Subscription
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-02-13 23:28:52 +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-03-27 22:14:47 +00:00
class Policy
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-03-27 22:14:47 +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-02-13 23:28:52 +00:00
class ModifyAckDeadlineRequest
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2015-12-03 01:10:07 +00:00
end
2017-02-13 23:28:52 +00:00
class SetIamPolicyRequest
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2015-12-03 01:10:07 +00:00
2017-03-10 21:11:09 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-12-03 01:10:07 +00:00
end
2017-02-13 23:28:52 +00:00
class Message
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2015-12-03 01:10:07 +00:00
end
2017-02-13 23:28:52 +00:00
class ModifyPushConfigRequest
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-02-13 23:28:52 +00:00
2017-03-10 21:11:09 +00:00
include Google::Apis::Core::JsonObjectSupport
2015-12-03 01:10:07 +00:00
end
2017-02-13 23:28:52 +00:00
class Binding
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
2015-12-03 01:10:07 +00:00
end
2017-03-27 22:14:47 +00:00
class ListTopicsResponse
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-27 22:14:47 +00:00
property :next_page_token, as: 'nextPageToken'
collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
2015-12-03 01:10:07 +00:00
end
end
2017-03-27 22:14:47 +00:00
class AcknowledgeRequest
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-27 22:14:47 +00:00
collection :ack_ids, as: 'ackIds'
2015-12-03 01:10:07 +00:00
end
end
2017-03-27 22:14:47 +00:00
class Empty
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
2017-02-13 23:28:52 +00:00
class ListTopicSubscriptionsResponse
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
property :next_page_token, as: 'nextPageToken'
collection :subscriptions, as: 'subscriptions'
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class PullResponse
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class ReceivedMessage
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
property :ack_id, as: 'ackId'
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class PushConfig
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
property :push_endpoint, as: 'pushEndpoint'
hash :attributes, as: 'attributes'
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class TestIamPermissionsResponse
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
collection :permissions, as: 'permissions'
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class PullRequest
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
property :return_immediately, as: 'returnImmediately'
property :max_messages, as: 'maxMessages'
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class ListSubscriptionsResponse
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
2017-03-27 22:14:47 +00:00
property :next_page_token, as: 'nextPageToken'
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class PublishRequest
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class PublishResponse
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
collection :message_ids, as: 'messageIds'
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class Subscription
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-27 22:14:47 +00:00
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
2017-02-13 23:28:52 +00:00
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
property :name, as: 'name'
property :topic, as: 'topic'
2015-12-03 01:10:07 +00:00
end
end
2017-02-13 23:28:52 +00:00
class TestIamPermissionsRequest
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-02-13 23:28:52 +00:00
collection :permissions, as: 'permissions'
2015-12-03 01:10:07 +00:00
end
end
2017-03-27 22:14:47 +00:00
class Policy
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-27 22:14:47 +00:00
property :version, as: 'version'
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
2015-12-03 01:10:07 +00:00
end
end
2017-03-27 22:14:47 +00:00
class Topic
2015-12-03 01:10:07 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-27 22:14:47 +00:00
property :name, as: 'name'
2017-03-10 21:11:09 +00:00
end
end
class ModifyAckDeadlineRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
2017-03-27 22:14:47 +00:00
collection :ack_ids, as: 'ackIds'
2017-03-10 21:11:09 +00:00
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
end
end
class Message
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-27 22:14:47 +00:00
property :publish_time, as: 'publishTime'
2017-03-10 21:11:09 +00:00
property :data, :base64 => true, as: 'data'
hash :attributes, as: 'attributes'
property :message_id, as: 'messageId'
end
end
class ModifyPushConfigRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
end
end
2015-12-03 01:10:07 +00:00
end
end
end