Autogenerated update (2017-11-14)

Update:
- androidenterprise_v1
- cloudtasks_v2beta2
- proximitybeacon_v1beta1
- storagetransfer_v1
This commit is contained in:
Google APIs 2017-11-14 00:35:29 +00:00
parent 8ed99b7132
commit 6bf3f7d0bc
13 changed files with 362 additions and 134 deletions

View File

@ -5265,6 +5265,11 @@
"/androidenterprise:v1/AuthenticationToken/token": token
"/androidenterprise:v1/CollectionViewersListResponse": list_collection_viewers_response
"/androidenterprise:v1/CollectionsListResponse": list_collections_response
"/androidenterprise:v1/ConfigurationVariables": configuration_variables
"/androidenterprise:v1/ConfigurationVariables/kind": kind
"/androidenterprise:v1/ConfigurationVariables/mcmId": mcm_id
"/androidenterprise:v1/ConfigurationVariables/variableSet": variable_set
"/androidenterprise:v1/ConfigurationVariables/variableSet/variable_set": variable_set
"/androidenterprise:v1/Device": device
"/androidenterprise:v1/Device/androidId": android_id
"/androidenterprise:v1/Device/kind": kind
@ -5336,6 +5341,7 @@
"/androidenterprise:v1/LocalizedText/locale": locale
"/androidenterprise:v1/LocalizedText/text": text
"/androidenterprise:v1/ManagedConfiguration": managed_configuration
"/androidenterprise:v1/ManagedConfiguration/configurationVariables": configuration_variables
"/androidenterprise:v1/ManagedConfiguration/kind": kind
"/androidenterprise:v1/ManagedConfiguration/managedProperty": managed_property
"/androidenterprise:v1/ManagedConfiguration/managedProperty/managed_property": managed_property
@ -5348,6 +5354,16 @@
"/androidenterprise:v1/ManagedConfigurationsForUserListResponse/kind": kind
"/androidenterprise:v1/ManagedConfigurationsForUserListResponse/managedConfigurationForUser": managed_configuration_for_user
"/androidenterprise:v1/ManagedConfigurationsForUserListResponse/managedConfigurationForUser/managed_configuration_for_user": managed_configuration_for_user
"/androidenterprise:v1/ManagedConfigurationsSettings": managed_configurations_settings
"/androidenterprise:v1/ManagedConfigurationsSettings/kind": kind
"/androidenterprise:v1/ManagedConfigurationsSettings/managedProperty": managed_property
"/androidenterprise:v1/ManagedConfigurationsSettings/managedProperty/managed_property": managed_property
"/androidenterprise:v1/ManagedConfigurationsSettings/mcmId": mcm_id
"/androidenterprise:v1/ManagedConfigurationsSettings/name": name
"/androidenterprise:v1/ManagedConfigurationsSettingsListResponse": managed_configurations_settings_list_response
"/androidenterprise:v1/ManagedConfigurationsSettingsListResponse/kind": kind
"/androidenterprise:v1/ManagedConfigurationsSettingsListResponse/managedConfigurationsSettings": managed_configurations_settings
"/androidenterprise:v1/ManagedConfigurationsSettingsListResponse/managedConfigurationsSettings/managed_configurations_setting": managed_configurations_setting
"/androidenterprise:v1/ManagedProperty": managed_property
"/androidenterprise:v1/ManagedProperty/key": key
"/androidenterprise:v1/ManagedProperty/valueBool": value_bool
@ -5515,6 +5531,10 @@
"/androidenterprise:v1/UsersListResponse/kind": kind
"/androidenterprise:v1/UsersListResponse/user": user
"/androidenterprise:v1/UsersListResponse/user/user": user
"/androidenterprise:v1/VariableSet": variable_set
"/androidenterprise:v1/VariableSet/kind": kind
"/androidenterprise:v1/VariableSet/placeholder": placeholder
"/androidenterprise:v1/VariableSet/userValue": user_value
"/androidenterprise:v1/androidenterprise.collectionviewers.delete": delete_collection_viewer
"/androidenterprise:v1/androidenterprise.collectionviewers.get": get_collection_viewer
"/androidenterprise:v1/androidenterprise.collectionviewers.list": list_collection_viewers
@ -5669,6 +5689,9 @@
"/androidenterprise:v1/androidenterprise.managedconfigurationsforuser.update/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.managedconfigurationsforuser.update/managedConfigurationForUserId": managed_configuration_for_user_id
"/androidenterprise:v1/androidenterprise.managedconfigurationsforuser.update/userId": user_id
"/androidenterprise:v1/androidenterprise.managedconfigurationssettings.list": list_managedconfigurationssettings
"/androidenterprise:v1/androidenterprise.managedconfigurationssettings.list/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.managedconfigurationssettings.list/productId": product_id
"/androidenterprise:v1/androidenterprise.permissions.get": get_permission
"/androidenterprise:v1/androidenterprise.permissions.get/language": language
"/androidenterprise:v1/androidenterprise.permissions.get/permissionId": permission_id
@ -53810,6 +53833,7 @@
"/proximitybeacon:v1beta1/AdvertisedId/type": type
"/proximitybeacon:v1beta1/AttachmentInfo": attachment_info
"/proximitybeacon:v1beta1/AttachmentInfo/data": data
"/proximitybeacon:v1beta1/AttachmentInfo/maxDistanceMeters": max_distance_meters
"/proximitybeacon:v1beta1/AttachmentInfo/namespacedType": namespaced_type
"/proximitybeacon:v1beta1/Beacon": beacon
"/proximitybeacon:v1beta1/Beacon/advertisedId": advertised_id

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20171025'
REVISION = '20171108'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -409,6 +409,41 @@ module Google
end
end
# A configuration variables resource contains the managed configuration settings
# ID to be applied to a single user, as well as the variable set that is
# attributed to the user. The variable set will be used to replace placeholders
# in the managed configuration settings.
class ConfigurationVariables
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#configurationVariables".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The ID of the managed configurations settings.
# Corresponds to the JSON property `mcmId`
# @return [String]
attr_accessor :mcm_id
# The variable set that is attributed to the user.
# Corresponds to the JSON property `variableSet`
# @return [Array<Google::Apis::AndroidenterpriseV1::VariableSet>]
attr_accessor :variable_set
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@mcm_id = args[:mcm_id] if args.key?(:mcm_id)
@variable_set = args[:variable_set] if args.key?(:variable_set)
end
end
# A Devices resource represents a mobile device managed by the EMM and belonging
# to a specific enterprise user.
# This collection cannot be modified via the API. It is automatically populated
@ -1027,12 +1062,20 @@ module Google
end
end
# A managed configuration resource contains the set of managed properties that
# have been configured for an Android app. The app's developer would have
# defined configurable properties in the managed configurations schema.
# A managed configuration resource contains the set of managed properties
# defined by the app developer in the app's managed configurations schema, as
# well as any configuration variables defined for the user.
class ManagedConfiguration
include Google::Apis::Core::Hashable
# A configuration variables resource contains the managed configuration settings
# ID to be applied to a single user, as well as the variable set that is
# attributed to the user. The variable set will be used to replace placeholders
# in the managed configuration settings.
# Corresponds to the JSON property `configurationVariables`
# @return [Google::Apis::AndroidenterpriseV1::ConfigurationVariables]
attr_accessor :configuration_variables
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#managedConfiguration".
# Corresponds to the JSON property `kind`
@ -1056,6 +1099,7 @@ module Google
# Update properties of this object
def update!(**args)
@configuration_variables = args[:configuration_variables] if args.key?(:configuration_variables)
@kind = args[:kind] if args.key?(:kind)
@managed_property = args[:managed_property] if args.key?(:managed_property)
@product_id = args[:product_id] if args.key?(:product_id)
@ -1114,6 +1158,74 @@ module Google
end
end
# A managed configurations settings resource contains the set of managed
# properties that have been configured for an Android app to be applied to a set
# of users. The app's developer would have defined configurable properties in
# the managed configurations schema.
class ManagedConfigurationsSettings
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#managedConfigurationsSettings".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The set of managed properties for this configuration.
# Corresponds to the JSON property `managedProperty`
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
attr_accessor :managed_property
# The ID of the managed configurations settings.
# Corresponds to the JSON property `mcmId`
# @return [String]
attr_accessor :mcm_id
# The name of the managed configurations settings.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@managed_property = args[:managed_property] if args.key?(:managed_property)
@mcm_id = args[:mcm_id] if args.key?(:mcm_id)
@name = args[:name] if args.key?(:name)
end
end
# The managed configurations settings for a product.
class ManagedConfigurationsSettingsListResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#managedConfigurationsSettingsListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A managed configurations settings for an app that may be assigned to a group
# of users in an enterprise.
# Corresponds to the JSON property `managedConfigurationsSettings`
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettings>]
attr_accessor :managed_configurations_settings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@managed_configurations_settings = args[:managed_configurations_settings] if args.key?(:managed_configurations_settings)
end
end
# A managed property of a managed configuration. The property must match one of
# the properties in the app restrictions schema of the product. Exactly one of
# the value fields must be populated, and it must match the property's type in
@ -2389,6 +2501,41 @@ module Google
@user = args[:user] if args.key?(:user)
end
end
# A variable set is a key-value pair of EMM-provided placeholders and its
# corresponding value, which is attributed to a user. For example, $FIRSTNAME
# could be a placeholder, and its value could be Alice. Placeholders should
# start with a '$' sign and should be alphanumeric only.
class VariableSet
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#variableSet".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The placeholder string; defined by EMM.
# Corresponds to the JSON property `placeholder`
# @return [String]
attr_accessor :placeholder
# The value of the placeholder, specific to the user.
# Corresponds to the JSON property `userValue`
# @return [String]
attr_accessor :user_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@placeholder = args[:placeholder] if args.key?(:placeholder)
@user_value = args[:user_value] if args.key?(:user_value)
end
end
end
end
end

View File

@ -94,6 +94,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ConfigurationVariables
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -208,6 +214,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ManagedConfigurationsSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedConfigurationsSettingsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedProperty
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -400,6 +418,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VariableSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Administrator
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -507,6 +531,16 @@ module Google
end
end
class ConfigurationVariables
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :mcm_id, as: 'mcmId'
collection :variable_set, as: 'variableSet', class: Google::Apis::AndroidenterpriseV1::VariableSet, decorator: Google::Apis::AndroidenterpriseV1::VariableSet::Representation
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -660,6 +694,8 @@ module Google
class ManagedConfiguration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :configuration_variables, as: 'configurationVariables', class: Google::Apis::AndroidenterpriseV1::ConfigurationVariables, decorator: Google::Apis::AndroidenterpriseV1::ConfigurationVariables::Representation
property :kind, as: 'kind'
collection :managed_property, as: 'managedProperty', class: Google::Apis::AndroidenterpriseV1::ManagedProperty, decorator: Google::Apis::AndroidenterpriseV1::ManagedProperty::Representation
@ -685,6 +721,26 @@ module Google
end
end
class ManagedConfigurationsSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :managed_property, as: 'managedProperty', class: Google::Apis::AndroidenterpriseV1::ManagedProperty, decorator: Google::Apis::AndroidenterpriseV1::ManagedProperty::Representation
property :mcm_id, as: 'mcmId'
property :name, as: 'name'
end
end
class ManagedConfigurationsSettingsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :managed_configurations_settings, as: 'managedConfigurationsSettings', class: Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettings, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettings::Representation
end
end
class ManagedProperty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1016,6 +1072,15 @@ module Google
end
end
class VariableSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :placeholder, as: 'placeholder'
property :user_value, as: 'userValue'
end
end
end
end
end

View File

@ -1848,8 +1848,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds or updates a per-user managed configuration for an app for the specified
# user. This method supports patch semantics.
# Adds or updates the managed configuration settings for an app for the
# specified user. If you support the Managed configurations iframe, you can
# apply managed configurations to a user by specifying an mcmId and its
# associated configuration variables (if any) in the request. Alternatively, all
# EMMs can apply managed configurations by passing a list of managed properties.
# This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@ -1894,8 +1898,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds or updates a per-user managed configuration for an app for the specified
# user.
# Adds or updates the managed configuration settings for an app for the
# specified user. If you support the Managed configurations iframe, you can
# apply managed configurations to a user by specifying an mcmId and its
# associated configuration variables (if any) in the request. Alternatively, all
# EMMs can apply managed configurations by passing a list of managed properties.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@ -1940,6 +1947,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists all the managed configurations settings for the specified app. Only the
# ID and the name is set.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] product_id
# The ID of the product for which the managed configurations settings applies to.
# @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::AndroidenterpriseV1::ManagedConfigurationsSettingsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettingsListResponse]
#
# @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_managedconfigurationssettings(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettingsListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettingsListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_id.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
# Retrieves details of an Android app permission for display to an enterprise
# admin.
# @param [String] permission_id

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/cloud-tasks/
module CloudtasksV2beta2
VERSION = 'V2beta2'
REVISION = '20171106'
REVISION = '20171110'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -130,8 +130,6 @@ module Google
# The app's request handler for the task's target URL must be able to handle
# HTTP requests with this http_method, otherwise the task attempt will fail
# with error code 405 (Method Not Allowed). See
# the Request-Line is not allowed for the resource identified by the
# Request-URI". See
# [Writing a push task request handler](/appengine/docs/java/taskqueue/push/
# creating-handlers#writing_a_push_task_request_handler)
# and the documentation for the request handlers in the language your app is
@ -250,8 +248,8 @@ module Google
class AppEngineRouting
include Google::Apis::Core::Hashable
# Output only.
# The host that the task is sent to. For more information, see
# Output only. The host that the task is sent to.
# For more information, see
# [How Requests are Routed](/appengine/docs/standard/python/how-requests-are-
# routed).
# The host is constructed as:
@ -410,8 +408,7 @@ module Google
class AttemptStatus
include Google::Apis::Core::Hashable
# Output only.
# The time that this attempt was dispatched.
# Output only. The time that this attempt was dispatched.
# `dispatch_time` will be truncated to the nearest microsecond.
# Corresponds to the JSON property `dispatchTime`
# @return [String]
@ -460,15 +457,13 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::Status]
attr_accessor :response_status
# Output only.
# The time that this attempt response was received.
# Output only. The time that this attempt response was received.
# `response_time` will be truncated to the nearest microsecond.
# Corresponds to the JSON property `responseTime`
# @return [String]
attr_accessor :response_time
# Output only.
# The time that this attempt was scheduled.
# Output only. The time that this attempt was scheduled.
# `schedule_time` will be truncated to the nearest microsecond.
# Corresponds to the JSON property `scheduleTime`
# @return [String]
@ -848,9 +843,14 @@ module Google
# @return [String]
attr_accessor :payload
# A meta-data tag for this task.
# This value is used by CloudTasks.PullTasks calls when
# PullTasksRequest.filter is `tag=<tag>`.
# The task's tag.
# Tags allow similar tasks to be processed in a batch. If you label
# tasks with a tag, your task worker can pull tasks
# with the same tag using PullTasksRequest.filter. For example,
# if you want to aggregate the events associated with a specific
# user once a day, you could tag tasks with the user ID.
# The task's tag can only be set when the
# task is created.
# The tag must be less than 500 bytes.
# Corresponds to the JSON property `tag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -1055,13 +1055,10 @@ module Google
# The queue name.
# The queue name must have the following format:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# * `PROJECT_ID` can contain uppercase and lowercase letters,
# numbers, hyphens, colons, and periods; that is, it must match
# the regular expression: `[a-zA-Z\\d-:\\.]+`.
# * `QUEUE_ID` can contain uppercase and lowercase letters,
# numbers, and hyphens; that is, it must match the regular
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
# characters.
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# Caller-specified and required in CreateQueueRequest, after which
# it becomes output only.
# Corresponds to the JSON property `name`
@ -1078,9 +1075,9 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::PullTarget]
attr_accessor :pull_target
# Output only.
# The last time this queue was purged. All tasks that were
# created before this time were purged.
# Output only. The last time this queue was purged.
# All tasks that were created before this time
# were purged.
# A queue can be purged using CloudTasks.PurgeQueue, the
# [App Engine Task Queue SDK, or the Cloud Console](/appengine/docs/standard/
# python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue)
@ -1091,8 +1088,7 @@ module Google
# @return [String]
attr_accessor :purge_time
# Output only.
# The state of the queue.
# Output only. The state of the queue.
# `queue_state` can only be changed by called
# CloudTasks.PauseQueue, CloudTasks.ResumeQueue, or uploading
# [queue.yaml](/appengine/docs/python/config/queueref).
@ -1138,12 +1134,12 @@ module Google
class RateLimits
include Google::Apis::Core::Hashable
# Output only.
# The max burst size limits how fast the queue is processed when
# many tasks are in the queue and the rate is high. This field
# allows the queue to have a high rate so processing starts shortly
# after a task is enqueued, but still limits resource usage when
# many tasks are enqueued in a short period of time.
# Output only. The max burst size.
# Max burst size limits how fast the queue is processed when many
# tasks are in the queue and the rate is high. This field allows
# the queue to have a high rate so processing starts shortly after
# a task is enqueued, but still limits resource usage when many
# tasks are enqueued in a short period of time.
# * For App Engine queues, if
# RateLimits.max_tasks_dispatched_per_second is 1, this
# field is 10; otherwise this field is
@ -1544,8 +1540,7 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::AppEngineTaskTarget]
attr_accessor :app_engine_task_target
# Output only.
# The time that the task was created.
# Output only. The time that the task was created.
# `create_time` will be truncated to the nearest second.
# Corresponds to the JSON property `createTime`
# @return [String]
@ -1554,17 +1549,12 @@ module Google
# The task name.
# The task name must have the following format:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# * `PROJECT_ID` can contain uppercase and lowercase letters,
# numbers, hyphens, colons, and periods; that is, it must match
# the regular expression: `[a-zA-Z\\d-:\\.]+`.
# * `QUEUE_ID` can contain uppercase and lowercase letters,
# numbers, and hyphens; that is, it must match the regular
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
# characters.
# * `TASK_ID` contain uppercase and lowercase letters, numbers,
# underscores, and hyphens; that is, it must match the regular
# expression: `[a-zA-Z\\d_-]+`. The maximum length is 500
# characters.
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), or underscores (_). The maximum length is 500 characters.
# Optionally caller-specified in CreateTaskRequest.
# Corresponds to the JSON property `name`
# @return [String]
@ -1599,9 +1589,8 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::TaskStatus]
attr_accessor :task_status
# Output only.
# The view specifies which subset of the Task has been
# returned.
# Output only. The view specifies which subset of the Task has
# been returned.
# Corresponds to the JSON property `view`
# @return [String]
attr_accessor :view
@ -1628,15 +1617,14 @@ module Google
class TaskStatus
include Google::Apis::Core::Hashable
# Output only.
# The number of attempts dispatched. This count includes tasks which have
# been dispatched but haven't received a response.
# Output only. The number of attempts dispatched.
# This count includes tasks which have been dispatched but haven't
# received a response.
# Corresponds to the JSON property `attemptDispatchCount`
# @return [Fixnum]
attr_accessor :attempt_dispatch_count
# Output only.
# The number of attempts which have received a response.
# Output only. The number of attempts which have received a response.
# This field is not calculated for
# [pull tasks](google.cloud.tasks.v2beta2.PullTaskTarget).
# Corresponds to the JSON property `attemptResponseCount`

View File

@ -343,13 +343,10 @@ module Google
# The queue name.
# The queue name must have the following format:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# * `PROJECT_ID` can contain uppercase and lowercase letters,
# numbers, hyphens, colons, and periods; that is, it must match
# the regular expression: `[a-zA-Z\\d-:\\.]+`.
# * `QUEUE_ID` can contain uppercase and lowercase letters,
# numbers, and hyphens; that is, it must match the regular
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
# characters.
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# Caller-specified and required in CreateQueueRequest, after which
# it becomes output only.
# @param [Google::Apis::CloudtasksV2beta2::Queue] queue_object
@ -598,6 +595,10 @@ module Google
# PullTasksResponse. After the task is acknowledged, it will
# not be returned by a later CloudTasks.PullTasks,
# CloudTasks.GetTask, or CloudTasks.ListTasks.
# To acknowledge multiple tasks at the same time, use
# [HTTP batching](/storage/docs/json_api/v1/how-tos/batch)
# or the batching documentation for your client library, for example
# https://developers.google.com/api-client-library/python/guide/batch.
# @param [String] name
# Required.
# The task name. For example:

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/beacons/proximity/
module ProximitybeaconV1beta1
VERSION = 'V1beta1'
REVISION = '20171017'
REVISION = '20171112'
# View and modify your beacons
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'

View File

@ -66,6 +66,21 @@ module Google
# @return [String]
attr_accessor :data
# The distance away from the beacon at which this attachment should be
# delivered to a mobile app.
# Setting this to a value greater than zero indicates that the app should
# behave as if the beacon is "seen" when the mobile device is less than this
# distance away from the beacon.
# Different attachments on the same beacon can have different max distances.
# Note that even though this value is expressed with fractional meter
# precision, real-world behavior is likley to be much less precise than one
# meter, due to the nature of current Bluetooth radio technology.
# Optional. When not set or zero, the attachment should be delivered at the
# beacon's outer limit of detection.
# Corresponds to the JSON property `maxDistanceMeters`
# @return [Float]
attr_accessor :max_distance_meters
# Specifies what kind of attachment this is. Tells a client how to
# interpret the `data` field. Format is <var>namespace/type</var>, for
# example <code>scrupulous-wombat-12345/welcome-message</code>
@ -80,6 +95,7 @@ module Google
# Update properties of this object
def update!(**args)
@data = args[:data] if args.key?(:data)
@max_distance_meters = args[:max_distance_meters] if args.key?(:max_distance_meters)
@namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
end
end
@ -152,36 +168,6 @@ module Google
# specified otherwise, this must conform to the
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
# standard</a>. Values must be within normalized ranges.
# Example of normalization code in Python:
# def NormalizeLongitude(longitude):
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
# q, r = divmod(longitude, 360.0)
# if r > 180.0 or (r == 180.0 and q <= -1.0):
# return r - 360.0
# return r
# def NormalizeLatLng(latitude, longitude):
# """Wraps decimal degrees latitude and longitude to
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
# r = latitude % 360.0
# if r <= 90.0:
# return r, NormalizeLongitude(longitude)
# elif r >= 270.0:
# return r - 360, NormalizeLongitude(longitude)
# else:
# return 180 - r, NormalizeLongitude(longitude + 180.0)
# assert 180.0 == NormalizeLongitude(180.0)
# assert -180.0 == NormalizeLongitude(-180.0)
# assert -179.0 == NormalizeLongitude(181.0)
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
# Corresponds to the JSON property `latLng`
# @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
attr_accessor :lat_lng
@ -662,36 +648,6 @@ module Google
# specified otherwise, this must conform to the
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
# standard</a>. Values must be within normalized ranges.
# Example of normalization code in Python:
# def NormalizeLongitude(longitude):
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
# q, r = divmod(longitude, 360.0)
# if r > 180.0 or (r == 180.0 and q <= -1.0):
# return r - 360.0
# return r
# def NormalizeLatLng(latitude, longitude):
# """Wraps decimal degrees latitude and longitude to
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
# r = latitude % 360.0
# if r <= 90.0:
# return r, NormalizeLongitude(longitude)
# elif r >= 270.0:
# return r - 360, NormalizeLongitude(longitude)
# else:
# return 180 - r, NormalizeLongitude(longitude + 180.0)
# assert 180.0 == NormalizeLongitude(180.0)
# assert -180.0 == NormalizeLongitude(-180.0)
# assert -179.0 == NormalizeLongitude(181.0)
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
class LatLng
include Google::Apis::Core::Hashable

View File

@ -160,6 +160,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data, :base64 => true, as: 'data'
property :max_distance_meters, as: 'maxDistanceMeters'
property :namespaced_type, as: 'namespacedType'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/storage/transfer
module StoragetransferV1
VERSION = 'V1'
REVISION = '20170918'
REVISION = '20171109'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -719,8 +719,8 @@ module Google
attr_accessor :bytes_failed_to_delete_from_sink
# Bytes found in the data source that are scheduled to be transferred,
# which will be copied, excluded based on conditions, or skipped due to
# failures.
# excluding any that are filtered based on object conditions or skipped due
# to sync.
# Corresponds to the JSON property `bytesFoundFromSource`
# @return [Fixnum]
attr_accessor :bytes_found_from_source
@ -762,8 +762,8 @@ module Google
attr_accessor :objects_failed_to_delete_from_sink
# Objects found in the data source that are scheduled to be transferred,
# which will be copied, excluded based on conditions, or skipped due to
# failures.
# excluding any that are filtered based on object conditions or skipped due
# to sync.
# Corresponds to the JSON property `objectsFoundFromSource`
# @return [Fixnum]
attr_accessor :objects_found_from_source