Autogenerated update (2018-03-27)

Update:
- adexchangebuyer2_v2beta1
- androidenterprise_v1
- language_v1
- language_v1beta2
- script_v1
- speech_v1
- youtubereporting_v1
This commit is contained in:
Google APIs 2018-03-27 00:35:45 +00:00
parent a7b3825916
commit 513d8c10ae
16 changed files with 76 additions and 27 deletions

View File

@ -5578,6 +5578,9 @@
"/androidenterprise:v1/LocalizedText": localized_text
"/androidenterprise:v1/LocalizedText/locale": locale
"/androidenterprise:v1/LocalizedText/text": text
"/androidenterprise:v1/MaintenanceWindow": maintenance_window
"/androidenterprise:v1/MaintenanceWindow/durationMs": duration_ms
"/androidenterprise:v1/MaintenanceWindow/startTimeAfterMidnightMs": start_time_after_midnight_ms
"/androidenterprise:v1/ManagedConfiguration": managed_configuration
"/androidenterprise:v1/ManagedConfiguration/configurationVariables": configuration_variables
"/androidenterprise:v1/ManagedConfiguration/kind": kind
@ -5654,6 +5657,7 @@
"/androidenterprise:v1/Permission/permissionId": permission_id
"/androidenterprise:v1/Policy": policy
"/androidenterprise:v1/Policy/autoUpdatePolicy": auto_update_policy
"/androidenterprise:v1/Policy/maintenanceWindow": maintenance_window
"/androidenterprise:v1/Policy/productAvailabilityPolicy": product_availability_policy
"/androidenterprise:v1/Policy/productPolicy": product_policy
"/androidenterprise:v1/Policy/productPolicy/product_policy": product_policy

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20180312'
REVISION = '20180325'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -872,12 +872,6 @@ module Google
# @return [String]
attr_accessor :environment
# DEPRECATED: use repeated formats field instead.
# The format on which to filter; optional.
# Corresponds to the JSON property `format`
# @return [String]
attr_accessor :format
# The list of formats on which to filter; may be empty. The filters
# represented by multiple formats are ORed together (i.e. if non-empty,
# results must match any one of the formats).
@ -947,7 +941,6 @@ module Google
@creative_id = args[:creative_id] if args.key?(:creative_id)
@deal_id = args[:deal_id] if args.key?(:deal_id)
@environment = args[:environment] if args.key?(:environment)
@format = args[:format] if args.key?(:format)
@formats = args[:formats] if args.key?(:formats)
@name = args[:name] if args.key?(:name)
@platforms = args[:platforms] if args.key?(:platforms)

View File

@ -570,7 +570,6 @@ module Google
property :creative_id, as: 'creativeId'
property :deal_id, :numeric_string => true, as: 'dealId'
property :environment, as: 'environment'
property :format, as: 'format'
collection :formats, as: 'formats'
property :name, as: 'name'
collection :platforms, as: 'platforms'

View File

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

View File

@ -1066,6 +1066,34 @@ module Google
end
end
# Maintenance window for managed Google Play Accounts. This allows Play store to
# update the apps on the foreground in the designated window.
class MaintenanceWindow
include Google::Apis::Core::Hashable
# Duration of the maintenance window, in milliseconds. The duration must be
# between 30 minutes and 24 hours (inclusive).
# Corresponds to the JSON property `durationMs`
# @return [Fixnum]
attr_accessor :duration_ms
# Start time of the maintenance window, in milliseconds after midnight on the
# device. Windows can span midnight.
# Corresponds to the JSON property `startTimeAfterMidnightMs`
# @return [Fixnum]
attr_accessor :start_time_after_midnight_ms
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration_ms = args[:duration_ms] if args.key?(:duration_ms)
@start_time_after_midnight_ms = args[:start_time_after_midnight_ms] if args.key?(:start_time_after_midnight_ms)
end
end
# 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.
@ -1599,6 +1627,12 @@ module Google
# @return [String]
attr_accessor :auto_update_policy
# Maintenance window for managed Google Play Accounts. This allows Play store to
# update the apps on the foreground in the designated window.
# Corresponds to the JSON property `maintenanceWindow`
# @return [Google::Apis::AndroidenterpriseV1::MaintenanceWindow]
attr_accessor :maintenance_window
# The availability granted to the device for the specified products. "all" gives
# the device access to all products, regardless of approval status. "allApproved"
# entitles the device to access all products that are approved for the
@ -1624,6 +1658,7 @@ module Google
# Update properties of this object
def update!(**args)
@auto_update_policy = args[:auto_update_policy] if args.key?(:auto_update_policy)
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
@product_availability_policy = args[:product_availability_policy] if args.key?(:product_availability_policy)
@product_policy = args[:product_policy] if args.key?(:product_policy)
end

View File

@ -196,6 +196,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class MaintenanceWindow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedConfiguration
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -705,6 +711,14 @@ module Google
end
end
class MaintenanceWindow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration_ms, :numeric_string => true, as: 'durationMs'
property :start_time_after_midnight_ms, :numeric_string => true, as: 'startTimeAfterMidnightMs'
end
end
class ManagedConfiguration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -854,6 +868,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_update_policy, as: 'autoUpdatePolicy'
property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::AndroidenterpriseV1::MaintenanceWindow, decorator: Google::Apis::AndroidenterpriseV1::MaintenanceWindow::Representation
property :product_availability_policy, as: 'productAvailabilityPolicy'
collection :product_policy, as: 'productPolicy', class: Google::Apis::AndroidenterpriseV1::ProductPolicy, decorator: Google::Apis::AndroidenterpriseV1::ProductPolicy::Representation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/
module LanguageV1
VERSION = 'V1'
REVISION = '20180221'
REVISION = '20180322'
# Apply machine learning models to reveal the structure and meaning of text
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'

View File

@ -348,7 +348,8 @@ module Google
# @return [Float]
attr_accessor :confidence
# The name of the category representing the document.
# The name of the category representing the document, from the [predefined
# taxonomy](/natural-language/docs/categories).
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/
module LanguageV1beta2
VERSION = 'V1beta2'
REVISION = '20180221'
REVISION = '20180322'
# Apply machine learning models to reveal the structure and meaning of text
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'

View File

@ -349,7 +349,8 @@ module Google
# @return [Float]
attr_accessor :confidence
# The name of the category representing the document.
# The name of the category representing the document, from the [predefined
# taxonomy](/natural-language/docs/categories).
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

View File

@ -18,14 +18,14 @@ require 'google/apis/script_v1/representations.rb'
module Google
module Apis
# Google Apps Script API
# Apps Script API
#
# An API for managing and executing Google Apps Script projects.
#
# @see https://developers.google.com/apps-script/api/
module ScriptV1
VERSION = 'V1'
REVISION = '20180305'
REVISION = '20180323'
# Read, send, delete, and manage your email
AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module ScriptV1
# Google Apps Script API
# Apps Script API
#
# An API for managing and executing Google Apps Script projects.
#

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech/
module SpeechV1
VERSION = 'V1'
REVISION = '20180312'
REVISION = '20180326'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -301,7 +301,7 @@ module Google
class RecognizeResponse
include Google::Apis::Core::Hashable
# *Output-only* Sequential list of transcription results corresponding to
# Output only. Sequential list of transcription results corresponding to
# sequential portions of audio.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
@ -346,7 +346,7 @@ module Google
class SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
# *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
# Output only. The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
# correct. This field is set only for the top alternative of a non-streaming
# result or, of a streaming result where `is_final=true`.
@ -357,12 +357,12 @@ module Google
# @return [Float]
attr_accessor :confidence
# *Output-only* Transcript text representing the words that the user spoke.
# Output only. Transcript text representing the words that the user spoke.
# Corresponds to the JSON property `transcript`
# @return [String]
attr_accessor :transcript
# *Output-only* A list of word-specific information for each recognized word.
# Output only. A list of word-specific information for each recognized word.
# Corresponds to the JSON property `words`
# @return [Array<Google::Apis::SpeechV1::WordInfo>]
attr_accessor :words
@ -383,7 +383,7 @@ module Google
class SpeechRecognitionResult
include Google::Apis::Core::Hashable
# *Output-only* May contain one or more recognition hypotheses (up to the
# Output only. May contain one or more recognition hypotheses (up to the
# maximum specified in `max_alternatives`).
# These alternatives are ordered in terms of accuracy, with the top (first)
# alternative being the most probable, as ranked by the recognizer.
@ -477,7 +477,7 @@ module Google
class WordInfo
include Google::Apis::Core::Hashable
# *Output-only* Time offset relative to the beginning of the audio,
# Output only. Time offset relative to the beginning of the audio,
# and corresponding to the end of the spoken word.
# This field is only set if `enable_word_time_offsets=true` and only
# in the top hypothesis.
@ -487,7 +487,7 @@ module Google
# @return [String]
attr_accessor :end_time
# *Output-only* Time offset relative to the beginning of the audio,
# Output only. Time offset relative to the beginning of the audio,
# and corresponding to the start of the spoken word.
# This field is only set if `enable_word_time_offsets=true` and only
# in the top hypothesis.
@ -497,7 +497,7 @@ module Google
# @return [String]
attr_accessor :start_time
# *Output-only* The word corresponding to this set of information.
# Output only. The word corresponding to this set of information.
# Corresponds to the JSON property `word`
# @return [String]
attr_accessor :word

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/youtube/reporting/v1/reports/
module YoutubereportingV1
VERSION = 'V1'
REVISION = '20180109'
REVISION = '20180325'
# View monetary and non-monetary YouTube Analytics reports for your YouTube content
AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'