# 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 TaskqueueV1beta1 class Task class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class TaskQueue class Representation < Google::Apis::Core::JsonRepresentation; end class Acl class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Stats class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end include Google::Apis::Core::JsonObjectSupport end class Tasks class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Tasks2 class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Task # @private class Representation < Google::Apis::Core::JsonRepresentation property :enqueue_timestamp, :numeric_string => true, as: 'enqueueTimestamp' property :id, as: 'id' property :kind, as: 'kind' property :lease_timestamp, :numeric_string => true, as: 'leaseTimestamp' property :payload_base64, as: 'payloadBase64' property :queue_name, as: 'queueName' end end class TaskQueue # @private class Representation < Google::Apis::Core::JsonRepresentation property :acl, as: 'acl', class: Google::Apis::TaskqueueV1beta1::TaskQueue::Acl, decorator: Google::Apis::TaskqueueV1beta1::TaskQueue::Acl::Representation property :id, as: 'id' property :kind, as: 'kind' property :max_leases, as: 'maxLeases' property :stats, as: 'stats', class: Google::Apis::TaskqueueV1beta1::TaskQueue::Stats, decorator: Google::Apis::TaskqueueV1beta1::TaskQueue::Stats::Representation end class Acl # @private class Representation < Google::Apis::Core::JsonRepresentation collection :admin_emails, as: 'adminEmails' collection :consumer_emails, as: 'consumerEmails' collection :producer_emails, as: 'producerEmails' end end class Stats # @private class Representation < Google::Apis::Core::JsonRepresentation property :leased_last_hour, :numeric_string => true, as: 'leasedLastHour' property :leased_last_minute, :numeric_string => true, as: 'leasedLastMinute' property :oldest_task, :numeric_string => true, as: 'oldestTask' property :total_tasks, as: 'totalTasks' end end end class Tasks # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::TaskqueueV1beta1::Task, decorator: Google::Apis::TaskqueueV1beta1::Task::Representation property :kind, as: 'kind' end end class Tasks2 # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::TaskqueueV1beta1::Task, decorator: Google::Apis::TaskqueueV1beta1::Task::Representation property :kind, as: 'kind' end end end end end