Autogenerated update (2017-08-26)

Add:
- adexchangebuyer_v1_2
- adexchangebuyer_v1_3
- adexchangeseller_v1
- adexchangeseller_v1_1
- analytics_v2_4
- androidpublisher_v1
- androidpublisher_v1_1
- appengine_v1alpha
- appengine_v1beta
- appengine_v1beta4
- appengine_v1beta5
- blogger_v2
- cloudfunctions_v1beta2
- cloudresourcemanager_v2beta1
- clouduseraccounts_alpha
- clouduseraccounts_vm_beta
- compute_alpha
- container_v1beta1
- content_v2sandbox
- dataproc_v1beta2
- datastore_v1beta3
- deploymentmanager_alpha
- deploymentmanager_v2beta
- fusiontables_v1
- genomics_v1alpha2
- language_v1beta2
- ml_v1beta1
- oauth2_v1
- pagespeedonline_v1
- prediction_v1_2
- prediction_v1_3
- prediction_v1_4
- prediction_v1_5
- pubsub_v1beta1a
- pubsub_v1beta2
- replicapool_v1beta1
- resourceviews_v1beta1
- runtimeconfig_v1beta1
- sqladmin_v1beta3
- storage_v1beta1
- storage_v1beta2
- taskqueue_v1beta1
- toolresults_v1beta3firstparty
- youtube_analytics_v1beta1

Update:
- admin_directory_v1
- cloudresourcemanager_v1beta1
- cloudtrace_v1
- dfareporting_v2_7
- dns_v2beta1
- drive_v2
- language_v1beta1
- logging_v2beta1
- speech_v1beta1
This commit is contained in:
Google APIs committed 2017-08-26 01:31:01 +00:00
1 parent 4759ffb5dd
commit 0b77e757ad
206 files changed
+173753 -4252

No files matched your search

@@ -0,0 +1,242 @@
# 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
include Google::Apis::Core::Hashable
# Time (in seconds since the epoch) at which the task was enqueued.
# Corresponds to the JSON property `enqueueTimestamp`
# @return [Fixnum]
attr_accessor :enqueue_timestamp
# Name of the task.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The kind of object returned, in this case set to task.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Time (in seconds since the epoch) at which the task lease will expire. This
# value is 0 if the task isnt currently leased out to a worker.
# Corresponds to the JSON property `leaseTimestamp`
# @return [Fixnum]
attr_accessor :lease_timestamp
# A bag of bytes which is the task payload. The payload on the JSON side is
# always Base64 encoded.
# Corresponds to the JSON property `payloadBase64`
# @return [String]
attr_accessor :payload_base64
# Name of the queue that the task is in.
# Corresponds to the JSON property `queueName`
# @return [String]
attr_accessor :queue_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enqueue_timestamp = args[:enqueue_timestamp] if args.key?(:enqueue_timestamp)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@lease_timestamp = args[:lease_timestamp] if args.key?(:lease_timestamp)
@payload_base64 = args[:payload_base64] if args.key?(:payload_base64)
@queue_name = args[:queue_name] if args.key?(:queue_name)
end
end
#
class TaskQueue
include Google::Apis::Core::Hashable
# ACLs that are applicable to this TaskQueue object.
# Corresponds to the JSON property `acl`
# @return [Google::Apis::TaskqueueV1beta1::TaskQueue::Acl]
attr_accessor :acl
# Name of the taskqueue.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The kind of REST object returned, in this case taskqueue.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The number of times we should lease out tasks before giving up on them. If
# unset we lease them out forever until a worker deletes the task.
# Corresponds to the JSON property `maxLeases`
# @return [Fixnum]
attr_accessor :max_leases
# Statistics for the TaskQueue object in question.
# Corresponds to the JSON property `stats`
# @return [Google::Apis::TaskqueueV1beta1::TaskQueue::Stats]
attr_accessor :stats
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@acl = args[:acl] if args.key?(:acl)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@max_leases = args[:max_leases] if args.key?(:max_leases)
@stats = args[:stats] if args.key?(:stats)
end
# ACLs that are applicable to this TaskQueue object.
class Acl
include Google::Apis::Core::Hashable
# Email addresses of users who are "admins" of the TaskQueue. This means they
# can control the queue, eg set ACLs for the queue.
# Corresponds to the JSON property `adminEmails`
# @return [Array<String>]
attr_accessor :admin_emails
# Email addresses of users who can "consume" tasks from the TaskQueue. This
# means they can Dequeue and Delete tasks from the queue.
# Corresponds to the JSON property `consumerEmails`
# @return [Array<String>]
attr_accessor :consumer_emails
# Email addresses of users who can "produce" tasks into the TaskQueue. This
# means they can Insert tasks into the queue.
# Corresponds to the JSON property `producerEmails`
# @return [Array<String>]
attr_accessor :producer_emails
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@admin_emails = args[:admin_emails] if args.key?(:admin_emails)
@consumer_emails = args[:consumer_emails] if args.key?(:consumer_emails)
@producer_emails = args[:producer_emails] if args.key?(:producer_emails)
end
end
# Statistics for the TaskQueue object in question.
class Stats
include Google::Apis::Core::Hashable
# Number of tasks leased in the last hour.
# Corresponds to the JSON property `leasedLastHour`
# @return [Fixnum]
attr_accessor :leased_last_hour
# Number of tasks leased in the last minute.
# Corresponds to the JSON property `leasedLastMinute`
# @return [Fixnum]
attr_accessor :leased_last_minute
# The timestamp (in seconds since the epoch) of the oldest unfinished task.
# Corresponds to the JSON property `oldestTask`
# @return [Fixnum]
attr_accessor :oldest_task
# Number of tasks in the queue.
# Corresponds to the JSON property `totalTasks`
# @return [Fixnum]
attr_accessor :total_tasks
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@leased_last_hour = args[:leased_last_hour] if args.key?(:leased_last_hour)
@leased_last_minute = args[:leased_last_minute] if args.key?(:leased_last_minute)
@oldest_task = args[:oldest_task] if args.key?(:oldest_task)
@total_tasks = args[:total_tasks] if args.key?(:total_tasks)
end
end
end
#
class Tasks
include Google::Apis::Core::Hashable
# The actual list of tasks returned as a result of the lease operation.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::TaskqueueV1beta1::Task>]
attr_accessor :items
# The kind of object returned, a list of tasks.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class Tasks2
include Google::Apis::Core::Hashable
# The actual list of tasks currently active in the TaskQueue.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::TaskqueueV1beta1::Task>]
attr_accessor :items
# The kind of object returned, a list of tasks.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
end
end
end
@@ -0,0 +1,124 @@
# 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
@@ -0,0 +1,269 @@
# 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 '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
# TaskQueue API
#
# Accesses a Google App Engine Pull Task Queue over REST.
#
# @example
# require 'google/apis/taskqueue_v1beta1'
#
# Taskqueue = Google::Apis::TaskqueueV1beta1 # Alias the module
# service = Taskqueue::TaskqueueService.new
#
# @see https://developers.google.com/appengine/docs/python/taskqueue/rest
class TaskqueueService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'taskqueue/v1beta1/projects/')
@batch_path = 'batch'
end
# Get detailed information about a TaskQueue.
# @param [String] project
# The project under which the queue lies.
# @param [String] taskqueue
# The id of the taskqueue to get the properties of.
# @param [Boolean] get_stats
# Whether to get stats. Optional.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TaskqueueV1beta1::TaskQueue] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TaskqueueV1beta1::TaskQueue]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_taskqueue(project, taskqueue, get_stats: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/taskqueues/{taskqueue}', options)
command.response_representation = Google::Apis::TaskqueueV1beta1::TaskQueue::Representation
command.response_class = Google::Apis::TaskqueueV1beta1::TaskQueue
command.params['project'] = project unless project.nil?
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
command.query['getStats'] = get_stats unless get_stats.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Delete a task from a TaskQueue.
# @param [String] project
# The project under which the queue lies.
# @param [String] taskqueue
# The taskqueue to delete a task from.
# @param [String] task
# The id of the task to delete.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_task(project, taskqueue, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/taskqueues/{taskqueue}/tasks/{task}', options)
command.params['project'] = project unless project.nil?
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
command.params['task'] = task unless task.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Get a particular task from a TaskQueue.
# @param [String] project
# The project under which the queue lies.
# @param [String] taskqueue
# The taskqueue in which the task belongs.
# @param [String] task
# The task to get properties of.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TaskqueueV1beta1::Task] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TaskqueueV1beta1::Task]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_task(project, taskqueue, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/taskqueues/{taskqueue}/tasks/{task}', options)
command.response_representation = Google::Apis::TaskqueueV1beta1::Task::Representation
command.response_class = Google::Apis::TaskqueueV1beta1::Task
command.params['project'] = project unless project.nil?
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
command.params['task'] = task unless task.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lease 1 or more tasks from a TaskQueue.
# @param [String] project
# The project under which the queue lies.
# @param [String] taskqueue
# The taskqueue to lease a task from.
# @param [Fixnum] num_tasks
# The number of tasks to lease.
# @param [Fixnum] lease_secs
# The lease in seconds.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TaskqueueV1beta1::Tasks] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TaskqueueV1beta1::Tasks]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def lease_task(project, taskqueue, num_tasks, lease_secs, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/taskqueues/{taskqueue}/tasks/lease', options)
command.response_representation = Google::Apis::TaskqueueV1beta1::Tasks::Representation
command.response_class = Google::Apis::TaskqueueV1beta1::Tasks
command.params['project'] = project unless project.nil?
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
command.query['leaseSecs'] = lease_secs unless lease_secs.nil?
command.query['numTasks'] = num_tasks unless num_tasks.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# List Tasks in a TaskQueue
# @param [String] project
# The project under which the queue lies.
# @param [String] taskqueue
# The id of the taskqueue to list tasks from.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TaskqueueV1beta1::Tasks2] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TaskqueueV1beta1::Tasks2]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_tasks(project, taskqueue, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/taskqueues/{taskqueue}/tasks', options)
command.response_representation = Google::Apis::TaskqueueV1beta1::Tasks2::Representation
command.response_class = Google::Apis::TaskqueueV1beta1::Tasks2
command.params['project'] = project unless project.nil?
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end