Regen APIs

This commit is contained in:
Thomas Coffee 2016-10-12 15:52:51 -07:00
parent 232553839e
commit 204359d4cb
61 changed files with 1609 additions and 589 deletions

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/ # @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1 module AdminDirectoryV1
VERSION = 'DirectoryV1' VERSION = 'DirectoryV1'
REVISION = '20160824' REVISION = '20161003'
# View and manage customer related information # View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'

View File

@ -574,6 +574,32 @@ module Google
end end
end end
# JSON request template for firing actions on ChromeOs Device in Directory
# Devices API.
class ChromeOsDeviceAction
include Google::Apis::Core::Hashable
# Action to be taken on the ChromeOs Device
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
#
# Corresponds to the JSON property `deprovisionReason`
# @return [String]
attr_accessor :deprovision_reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@deprovision_reason = args[:deprovision_reason] if args.key?(:deprovision_reason)
end
end
# JSON response template for List Chrome OS Devices operation in Directory API. # JSON response template for List Chrome OS Devices operation in Directory API.
class ChromeOsDevices class ChromeOsDevices
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1147,6 +1173,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :baseband_version attr_accessor :baseband_version
# Mobile Device Bootloader version (Read-only)
# Corresponds to the JSON property `bootloaderVersion`
# @return [String]
attr_accessor :bootloader_version
# Mobile Device Brand (Read-only)
# Corresponds to the JSON property `brand`
# @return [String]
attr_accessor :brand
# Mobile Device Build number (Read-only) # Mobile Device Build number (Read-only)
# Corresponds to the JSON property `buildNumber` # Corresponds to the JSON property `buildNumber`
# @return [String] # @return [String]
@ -1173,11 +1209,21 @@ module Google
# @return [String] # @return [String]
attr_accessor :device_id attr_accessor :device_id
# DevicePasswordStatus (Read-only)
# Corresponds to the JSON property `devicePasswordStatus`
# @return [String]
attr_accessor :device_password_status
# List of owner user's email addresses (Read-only) # List of owner user's email addresses (Read-only)
# Corresponds to the JSON property `email` # Corresponds to the JSON property `email`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :email attr_accessor :email
# Mobile Device Encryption Status (Read-only)
# Corresponds to the JSON property `encryptionStatus`
# @return [String]
attr_accessor :encryption_status
# ETag of the resource. # ETag of the resource.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# @return [String] # @return [String]
@ -1189,6 +1235,11 @@ module Google
# @return [DateTime] # @return [DateTime]
attr_accessor :first_sync attr_accessor :first_sync
# Mobile Device Hardware (Read-only)
# Corresponds to the JSON property `hardware`
# @return [String]
attr_accessor :hardware
# Mobile Device Hardware Id (Read-only) # Mobile Device Hardware Id (Read-only)
# Corresponds to the JSON property `hardwareId` # Corresponds to the JSON property `hardwareId`
# @return [String] # @return [String]
@ -1222,6 +1273,11 @@ module Google
attr_accessor :managed_account_is_on_owner_profile attr_accessor :managed_account_is_on_owner_profile
alias_method :managed_account_is_on_owner_profile?, :managed_account_is_on_owner_profile alias_method :managed_account_is_on_owner_profile?, :managed_account_is_on_owner_profile
# Mobile Device manufacturer (Read-only)
# Corresponds to the JSON property `manufacturer`
# @return [String]
attr_accessor :manufacturer
# Mobile Device MEID number (Read-only) # Mobile Device MEID number (Read-only)
# Corresponds to the JSON property `meid` # Corresponds to the JSON property `meid`
# @return [String] # @return [String]
@ -1252,11 +1308,26 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :other_accounts_info attr_accessor :other_accounts_info
# DMAgentPermission (Read-only)
# Corresponds to the JSON property `privilege`
# @return [String]
attr_accessor :privilege
# Mobile Device release version version (Read-only)
# Corresponds to the JSON property `releaseVersion`
# @return [String]
attr_accessor :release_version
# Unique identifier of Mobile Device (Read-only) # Unique identifier of Mobile Device (Read-only)
# Corresponds to the JSON property `resourceId` # Corresponds to the JSON property `resourceId`
# @return [String] # @return [String]
attr_accessor :resource_id attr_accessor :resource_id
# Mobile Device Security patch level (Read-only)
# Corresponds to the JSON property `securityPatchLevel`
# @return [String]
attr_accessor :security_patch_level
# Mobile Device SSN or Serial Number (Read-only) # Mobile Device SSN or Serial Number (Read-only)
# Corresponds to the JSON property `serialNumber` # Corresponds to the JSON property `serialNumber`
# @return [String] # @return [String]
@ -1303,27 +1374,36 @@ module Google
@adb_status = args[:adb_status] if args.key?(:adb_status) @adb_status = args[:adb_status] if args.key?(:adb_status)
@applications = args[:applications] if args.key?(:applications) @applications = args[:applications] if args.key?(:applications)
@baseband_version = args[:baseband_version] if args.key?(:baseband_version) @baseband_version = args[:baseband_version] if args.key?(:baseband_version)
@bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
@brand = args[:brand] if args.key?(:brand)
@build_number = args[:build_number] if args.key?(:build_number) @build_number = args[:build_number] if args.key?(:build_number)
@default_language = args[:default_language] if args.key?(:default_language) @default_language = args[:default_language] if args.key?(:default_language)
@developer_options_status = args[:developer_options_status] if args.key?(:developer_options_status) @developer_options_status = args[:developer_options_status] if args.key?(:developer_options_status)
@device_compromised_status = args[:device_compromised_status] if args.key?(:device_compromised_status) @device_compromised_status = args[:device_compromised_status] if args.key?(:device_compromised_status)
@device_id = args[:device_id] if args.key?(:device_id) @device_id = args[:device_id] if args.key?(:device_id)
@device_password_status = args[:device_password_status] if args.key?(:device_password_status)
@email = args[:email] if args.key?(:email) @email = args[:email] if args.key?(:email)
@encryption_status = args[:encryption_status] if args.key?(:encryption_status)
@etag = args[:etag] if args.key?(:etag) @etag = args[:etag] if args.key?(:etag)
@first_sync = args[:first_sync] if args.key?(:first_sync) @first_sync = args[:first_sync] if args.key?(:first_sync)
@hardware = args[:hardware] if args.key?(:hardware)
@hardware_id = args[:hardware_id] if args.key?(:hardware_id) @hardware_id = args[:hardware_id] if args.key?(:hardware_id)
@imei = args[:imei] if args.key?(:imei) @imei = args[:imei] if args.key?(:imei)
@kernel_version = args[:kernel_version] if args.key?(:kernel_version) @kernel_version = args[:kernel_version] if args.key?(:kernel_version)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@last_sync = args[:last_sync] if args.key?(:last_sync) @last_sync = args[:last_sync] if args.key?(:last_sync)
@managed_account_is_on_owner_profile = args[:managed_account_is_on_owner_profile] if args.key?(:managed_account_is_on_owner_profile) @managed_account_is_on_owner_profile = args[:managed_account_is_on_owner_profile] if args.key?(:managed_account_is_on_owner_profile)
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
@meid = args[:meid] if args.key?(:meid) @meid = args[:meid] if args.key?(:meid)
@model = args[:model] if args.key?(:model) @model = args[:model] if args.key?(:model)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@network_operator = args[:network_operator] if args.key?(:network_operator) @network_operator = args[:network_operator] if args.key?(:network_operator)
@os = args[:os] if args.key?(:os) @os = args[:os] if args.key?(:os)
@other_accounts_info = args[:other_accounts_info] if args.key?(:other_accounts_info) @other_accounts_info = args[:other_accounts_info] if args.key?(:other_accounts_info)
@privilege = args[:privilege] if args.key?(:privilege)
@release_version = args[:release_version] if args.key?(:release_version)
@resource_id = args[:resource_id] if args.key?(:resource_id) @resource_id = args[:resource_id] if args.key?(:resource_id)
@security_patch_level = args[:security_patch_level] if args.key?(:security_patch_level)
@serial_number = args[:serial_number] if args.key?(:serial_number) @serial_number = args[:serial_number] if args.key?(:serial_number)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile) @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)

View File

@ -82,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ChromeOsDeviceAction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ChromeOsDevices class ChromeOsDevices
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -512,6 +518,14 @@ module Google
end end
end end
class ChromeOsDeviceAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :deprovision_reason, as: 'deprovisionReason'
end
end
class ChromeOsDevices class ChromeOsDevices
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -659,15 +673,20 @@ module Google
collection :applications, as: 'applications', class: Google::Apis::AdminDirectoryV1::MobileDevice::Application, decorator: Google::Apis::AdminDirectoryV1::MobileDevice::Application::Representation collection :applications, as: 'applications', class: Google::Apis::AdminDirectoryV1::MobileDevice::Application, decorator: Google::Apis::AdminDirectoryV1::MobileDevice::Application::Representation
property :baseband_version, as: 'basebandVersion' property :baseband_version, as: 'basebandVersion'
property :bootloader_version, as: 'bootloaderVersion'
property :brand, as: 'brand'
property :build_number, as: 'buildNumber' property :build_number, as: 'buildNumber'
property :default_language, as: 'defaultLanguage' property :default_language, as: 'defaultLanguage'
property :developer_options_status, as: 'developerOptionsStatus' property :developer_options_status, as: 'developerOptionsStatus'
property :device_compromised_status, as: 'deviceCompromisedStatus' property :device_compromised_status, as: 'deviceCompromisedStatus'
property :device_id, as: 'deviceId' property :device_id, as: 'deviceId'
property :device_password_status, as: 'devicePasswordStatus'
collection :email, as: 'email' collection :email, as: 'email'
property :encryption_status, as: 'encryptionStatus'
property :etag, as: 'etag' property :etag, as: 'etag'
property :first_sync, as: 'firstSync', type: DateTime property :first_sync, as: 'firstSync', type: DateTime
property :hardware, as: 'hardware'
property :hardware_id, as: 'hardwareId' property :hardware_id, as: 'hardwareId'
property :imei, as: 'imei' property :imei, as: 'imei'
property :kernel_version, as: 'kernelVersion' property :kernel_version, as: 'kernelVersion'
@ -675,13 +694,17 @@ module Google
property :last_sync, as: 'lastSync', type: DateTime property :last_sync, as: 'lastSync', type: DateTime
property :managed_account_is_on_owner_profile, as: 'managedAccountIsOnOwnerProfile' property :managed_account_is_on_owner_profile, as: 'managedAccountIsOnOwnerProfile'
property :manufacturer, as: 'manufacturer'
property :meid, as: 'meid' property :meid, as: 'meid'
property :model, as: 'model' property :model, as: 'model'
collection :name, as: 'name' collection :name, as: 'name'
property :network_operator, as: 'networkOperator' property :network_operator, as: 'networkOperator'
property :os, as: 'os' property :os, as: 'os'
collection :other_accounts_info, as: 'otherAccountsInfo' collection :other_accounts_info, as: 'otherAccountsInfo'
property :privilege, as: 'privilege'
property :release_version, as: 'releaseVersion'
property :resource_id, as: 'resourceId' property :resource_id, as: 'resourceId'
property :security_patch_level, as: 'securityPatchLevel'
property :serial_number, as: 'serialNumber' property :serial_number, as: 'serialNumber'
property :status, as: 'status' property :status, as: 'status'
property :supports_work_profile, as: 'supportsWorkProfile' property :supports_work_profile, as: 'supportsWorkProfile'

View File

@ -198,6 +198,45 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Take action on Chrome OS Device
# @param [String] customer_id
# Immutable id of the Google Apps account
# @param [String] resource_id
# Immutable id of Chrome OS Device
# @param [Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction] chrome_os_device_action_object
# @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 action_chromeosdevice(customer_id, resource_id, chrome_os_device_action_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'customer/{customerId}/devices/chromeos/{resourceId}/action', options)
command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction::Representation
command.request_object = chrome_os_device_action_object
command.params['customerId'] = customer_id unless customer_id.nil?
command.params['resourceId'] = resource_id unless resource_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
# Retrieve Chrome OS Device # Retrieve Chrome OS Device
# @param [String] customer_id # @param [String] customer_id
# Immutable id of the Google Apps account # Immutable id of the Google Apps account

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/adsense/management/ # @see https://developers.google.com/adsense/management/
module AdsenseV1_4 module AdsenseV1_4
VERSION = 'V1_4' VERSION = 'V1_4'
REVISION = '20161003' REVISION = '20161011'
# View and manage your AdSense data # View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/ # @see https://developers.google.com/adsense/host/
module AdsensehostV4_1 module AdsensehostV4_1
VERSION = 'V4_1' VERSION = 'V4_1'
REVISION = '20161003' REVISION = '20161011'
# View and manage your AdSense host data and associated accounts # View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/ # @see https://developers.google.com/analytics/devguides/reporting/core/v4/
module AnalyticsreportingV4 module AnalyticsreportingV4
VERSION = 'V4' VERSION = 'V4'
REVISION = '20160926' REVISION = '20161011'
# View your Google Analytics data # View your Google Analytics data
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly' AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'

View File

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

View File

@ -42,6 +42,69 @@ module Google
end end
end end
# A token authorizing an administrator to access an iframe.
class AdministratorWebToken
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#administratorWebToken".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# An opaque token to be passed to the Play front-end to generate an iframe.
# Corresponds to the JSON property `token`
# @return [String]
attr_accessor :token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@token = args[:token] if args.key?(:token)
end
end
# Specification for a token used to generate iframes. The token specifies what
# data the admin is allowed to modify and the URI the iframe is allowed to
# communiate with.
class AdministratorWebTokenSpec
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#administratorWebTokenSpec".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may
# not be hosted at other URIs. This URI must be https.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# The list of permissions the admin is granted within the iframe. The admin will
# only be allowed to view an iframe if they have all of the permissions
# associated with it.
# Corresponds to the JSON property `permission`
# @return [Array<String>]
attr_accessor :permission
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@parent = args[:parent] if args.key?(:parent)
@permission = args[:permission] if args.key?(:permission)
end
end
# Represents the list of app restrictions available to be pre-configured for the # Represents the list of app restrictions available to be pre-configured for the
# product. # product.
class AppRestrictionsSchema class AppRestrictionsSchema
@ -1949,6 +2012,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Sets a store layout type. If set to "custom", "homepageId" must be specified.
# If set to "basic", the layout will consist of all approved apps accessible by
# the user, split in pages of 100 each; in this case, "homepageId" must not be
# specified. The "basic" setting takes precedence over any existing collections
# setup for this enterprise (if any). Should the enterprise use
# collectionViewers for controlling access rights, these will still be respected.
# Corresponds to the JSON property `storeLayoutType`
# @return [String]
attr_accessor :store_layout_type
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1957,6 +2030,7 @@ module Google
def update!(**args) def update!(**args)
@homepage_id = args[:homepage_id] if args.key?(:homepage_id) @homepage_id = args[:homepage_id] if args.key?(:homepage_id)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@store_layout_type = args[:store_layout_type] if args.key?(:store_layout_type)
end end
end end

View File

@ -28,6 +28,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AdministratorWebToken
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AdministratorWebTokenSpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppRestrictionsSchema class AppRestrictionsSchema
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -389,6 +401,23 @@ module Google
end end
end end
class AdministratorWebToken
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :token, as: 'token'
end
end
class AdministratorWebTokenSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :parent, as: 'parent'
collection :permission, as: 'permission'
end
end
class AppRestrictionsSchema class AppRestrictionsSchema
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -893,6 +922,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :homepage_id, as: 'homepageId' property :homepage_id, as: 'homepageId'
property :kind, as: 'kind' property :kind, as: 'kind'
property :store_layout_type, as: 'storeLayoutType'
end end
end end

View File

@ -745,6 +745,47 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns a unique token to access an embeddable UI. To generate a web UI, pass
# the generated token into the Play for Work javascript API. Each token may only
# be used to start one UI session. See the javascript API documentation for
# further information.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec] administrator_web_token_spec_object
# @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::AdministratorWebToken] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::AdministratorWebToken]
#
# @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 create_enterprise_web_token(enterprise_id, administrator_web_token_spec_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/{enterpriseId}/createWebToken', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec::Representation
command.request_object = administrator_web_token_spec_object
command.response_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebToken::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::AdministratorWebToken
command.params['enterpriseId'] = enterprise_id unless enterprise_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
# Deletes the binding between the EMM and enterprise. This is now deprecated; # Deletes the binding between the EMM and enterprise. This is now deprecated;
# use this to unenroll customers that were previously enrolled with the 'insert' # use this to unenroll customers that were previously enrolled with the 'insert'
# call, then enroll them again with the 'enroll' call. # call, then enroll them again with the 'enroll' call.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher # @see https://developers.google.com/android-publisher
module AndroidpublisherV2 module AndroidpublisherV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160817' REVISION = '20161004'
# View and manage your Google Play Developer account # View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/ # @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta5 module AppengineV1beta5
VERSION = 'V1beta5' VERSION = 'V1beta5'
REVISION = '20160802' REVISION = '20161012'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1616,7 +1616,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The cononical id for this location. For example: `"us-east1"`. # The canonical id for this location. For example: `"us-east1"`.
# Corresponds to the JSON property `locationId` # Corresponds to the JSON property `locationId`
# @return [String] # @return [String]
attr_accessor :location_id attr_accessor :location_id

View File

@ -118,6 +118,42 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates application parameters.
# @param [String] apps_id
# Part of `name`. Name of the application to update. Example: `apps/myapp`.
# @param [Google::Apis::AppengineV1beta5::Application] application_object
# @param [String] mask
# Standard field mask for the set of fields to be updated.
# @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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Operation]
#
# @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 patch_app(apps_id, application_object = nil, mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta5/apps/{appsId}', options)
command.request_representation = Google::Apis::AppengineV1beta5::Application::Representation
command.request_object = application_object
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['mask'] = mask unless mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this method # Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service. # to poll the operation result at intervals as recommended by the API service.
# @param [String] apps_id # @param [String] apps_id

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/ # @see https://cloud.google.com/bigquery/
module BigqueryV2 module BigqueryV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160922' REVISION = '20161001'
# View and manage your data in Google BigQuery # View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -2758,8 +2758,8 @@ module Google
attr_accessor :name attr_accessor :name
# [Required] The field data type. Possible values include STRING, BYTES, INTEGER, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
# FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field # FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, or RECORD (where RECORD
# contains a nested schema). # indicates that the field contains a nested schema).
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/books/docs/v1/getting_started # @see https://developers.google.com/books/docs/v1/getting_started
module BooksV1 module BooksV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160823' REVISION = '20161005'
# Manage your books # Manage your books
AUTH_BOOKS = 'https://www.googleapis.com/auth/books' AUTH_BOOKS = 'https://www.googleapis.com/auth/books'

View File

@ -2413,7 +2413,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# # Series info list. The client always expects this element in the JSON output,
# hence declared here as OutputAlways.
# Corresponds to the JSON property `series` # Corresponds to the JSON property `series`
# @return [Array<Google::Apis::BooksV1::Series::Series>] # @return [Array<Google::Apis::BooksV1::Series::Series>]
attr_accessor :series attr_accessor :series

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp # @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3 module CalendarV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20160927' REVISION = '20161004'
# Manage your calendars # Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/classroom/ # @see https://developers.google.com/classroom/
module ClassroomV1 module ClassroomV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160816' REVISION = '20161006'
# View instructions for teacher-assigned work in your Google Classroom classes # View instructions for teacher-assigned work in your Google Classroom classes
AUTH_CLASSROOM_COURSE_WORK_READONLY = 'https://www.googleapis.com/auth/classroom.course-work.readonly' AUTH_CLASSROOM_COURSE_WORK_READONLY = 'https://www.googleapis.com/auth/classroom.course-work.readonly'

View File

@ -129,6 +129,12 @@ module Google
# @return [Array<Google::Apis::ClassroomV1::CourseMaterialSet>] # @return [Array<Google::Apis::ClassroomV1::CourseMaterialSet>]
attr_accessor :course_material_sets attr_accessor :course_material_sets
# Whether or not guardian notifications are enabled for this course. Read-only.
# Corresponds to the JSON property `guardiansEnabled`
# @return [Boolean]
attr_accessor :guardians_enabled
alias_method :guardians_enabled?, :guardians_enabled
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -151,6 +157,7 @@ module Google
@course_group_email = args[:course_group_email] if args.key?(:course_group_email) @course_group_email = args[:course_group_email] if args.key?(:course_group_email)
@teacher_folder = args[:teacher_folder] if args.key?(:teacher_folder) @teacher_folder = args[:teacher_folder] if args.key?(:teacher_folder)
@course_material_sets = args[:course_material_sets] if args.key?(:course_material_sets) @course_material_sets = args[:course_material_sets] if args.key?(:course_material_sets)
@guardians_enabled = args[:guardians_enabled] if args.key?(:guardians_enabled)
end end
end end

View File

@ -301,6 +301,7 @@ module Google
collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation
property :guardians_enabled, as: 'guardiansEnabled'
end end
end end

View File

@ -43,7 +43,7 @@ module Google
attr_accessor :quota_user attr_accessor :quota_user
def initialize def initialize
super('https://classroom.googleapis.com/', '') super('https://prod-day0-classroom.sandbox.googleapis.com/', '')
end end
# Creates a course. The user specified in `ownerId` is the owner of the created # Creates a course. The user specified in `ownerId` is the owner of the created
@ -249,6 +249,8 @@ module Google
# identifier. The identifier can be one of the following: * the numeric # identifier. The identifier can be one of the following: * the numeric
# identifier for the user * the email address of the user * the string literal `" # identifier for the user * the email address of the user * the string literal `"
# me"`, indicating the requesting user # me"`, indicating the requesting user
# @param [Array<String>, String] course_states
# Restricts returned courses to those in one of the specified states
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of items to return. Zero or unspecified indicates that the # Maximum number of items to return. Zero or unspecified indicates that the
# server may assign a maximum. The server may return fewer than the specified # server may assign a maximum. The server may return fewer than the specified
@ -274,12 +276,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_courses(student_id: nil, teacher_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_courses(student_id: nil, teacher_id: nil, course_states: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/courses', options) command = make_simple_command(:get, 'v1/courses', options)
command.response_representation = Google::Apis::ClassroomV1::ListCoursesResponse::Representation command.response_representation = Google::Apis::ClassroomV1::ListCoursesResponse::Representation
command.response_class = Google::Apis::ClassroomV1::ListCoursesResponse command.response_class = Google::Apis::ClassroomV1::ListCoursesResponse
command.query['studentId'] = student_id unless student_id.nil? command.query['studentId'] = student_id unless student_id.nil?
command.query['teacherId'] = teacher_id unless teacher_id.nil? command.query['teacherId'] = teacher_id unless teacher_id.nil?
command.query['courseStates'] = course_states unless course_states.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -1277,18 +1280,21 @@ module Google
# to view, filtered by the parameters provided. This method returns the # to view, filtered by the parameters provided. This method returns the
# following error codes: * `PERMISSION_DENIED` if a `student_id` is specified, # following error codes: * `PERMISSION_DENIED` if a `student_id` is specified,
# and the requesting user is not permitted to view guardian invitations for that # and the requesting user is not permitted to view guardian invitations for that
# student, if guardians are not enabled for the domain in question, or for other # student, if `"-"` is specified as the `student_id` and the user is not a
# access errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its # domain administrator, if guardians are not enabled for the domain in question,
# format cannot be recognized (it is not an email address, nor a `student_id` # or for other access errors. * `INVALID_ARGUMENT` if a `student_id` is
# from the API, nor the literal string `me`). May also be returned if an invalid # specified, but its format cannot be recognized (it is not an email address,
# `page_token` or `state` is provided. * `NOT_FOUND` if a `student_id` is # nor a `student_id` from the API, nor the literal string `me`). May also be
# specified, and its format can be recognized, but Classroom has no record of # returned if an invalid `page_token` or `state` is provided. * `NOT_FOUND` if a
# that student. # `student_id` is specified, and its format can be recognized, but Classroom has
# no record of that student.
# @param [String] student_id # @param [String] student_id
# The ID of the student whose guardian invitations are to be returned. The # The ID of the student whose guardian invitations are to be returned. The
# identifier can be one of the following: * the numeric identifier for the user * # identifier can be one of the following: * the numeric identifier for the user *
# the email address of the user * the string literal `"me"`, indicating the # the email address of the user * the string literal `"me"`, indicating the
# requesting user # requesting user * the string literal `"-"`, indicating that results should be
# returned for all students that the requesting user is permitted to view
# guardian invitations.
# @param [String] invited_email_address # @param [String] invited_email_address
# If specified, only results with the specified `invited_email_address` will be # If specified, only results with the specified `invited_email_address` will be
# returned. # returned.
@ -1485,10 +1491,13 @@ module Google
end end
# Returns a list of guardians that the requesting user is permitted to view, # Returns a list of guardians that the requesting user is permitted to view,
# restricted to those that match the request. This method returns the following # restricted to those that match the request. To list guardians for any student
# error codes: * `PERMISSION_DENIED` if a `student_id` is specified, and the # that the requesting user may view guardians for, use the literal character `-`
# requesting user is not permitted to view guardian information for that student, # for the student ID. This method returns the following error codes: * `
# if guardians are not enabled for the domain in question, if the ` # PERMISSION_DENIED` if a `student_id` is specified, and the requesting user is
# not permitted to view guardian information for that student, if `"-"` is
# specified as the `student_id` and the user is not a domain administrator, if
# guardians are not enabled for the domain in question, if the `
# invited_email_address` filter is set by a user who is not a domain # invited_email_address` filter is set by a user who is not a domain
# administrator, or for other access errors. * `INVALID_ARGUMENT` if a ` # administrator, or for other access errors. * `INVALID_ARGUMENT` if a `
# student_id` is specified, but its format cannot be recognized (it is not an # student_id` is specified, but its format cannot be recognized (it is not an
@ -1500,7 +1509,8 @@ module Google
# Filter results by the student who the guardian is linked to. The identifier # Filter results by the student who the guardian is linked to. The identifier
# can be one of the following: * the numeric identifier for the user * the email # can be one of the following: * the numeric identifier for the user * the email
# address of the user * the string literal `"me"`, indicating the requesting # address of the user * the string literal `"me"`, indicating the requesting
# user # user * the string literal `"-"`, indicating that results should be returned
# for all students that the requesting user has access to view.
# @param [String] invited_email_address # @param [String] invited_email_address
# Filter results by the email address that the original invitation was sent to, # Filter results by the email address that the original invitation was sent to,
# resulting in this guardian link. This filter can only be used by domain # resulting in this guardian link. This filter can only be used by domain

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/container-builder/docs/ # @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1 module CloudbuildV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20161004' REVISION = '20161012'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3648,7 +3648,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :archive_size_bytes attr_accessor :archive_size_bytes
# Creation timestamp in RFC3339 text format. # [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp` # Corresponds to the JSON property `creationTimestamp`
# @return [String] # @return [String]
attr_accessor :creation_timestamp attr_accessor :creation_timestamp
@ -4352,8 +4352,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# The action to perform in case of zone failure (set only for Regional instance # The action to perform in case of zone failure. Only one value is supported,
# group managers). # NO_FAILOVER. The default is NO_FAILOVER.
# Corresponds to the JSON property `failoverAction` # Corresponds to the JSON property `failoverAction`
# @return [String] # @return [String]
attr_accessor :failover_action attr_accessor :failover_action
@ -4483,7 +4483,7 @@ module Google
# [Output Only] The number of instances that the managed instance group will # [Output Only] The number of instances that the managed instance group will
# attempt to create. The group attempts to create each instance only once. If # attempt to create. The group attempts to create each instance only once. If
# the group fails to create any of these instances, it decreases the group's # the group fails to create any of these instances, it decreases the group's
# target_size value accordingly. # targetSize value accordingly.
# Corresponds to the JSON property `creatingWithoutRetries` # Corresponds to the JSON property `creatingWithoutRetries`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :creating_without_retries attr_accessor :creating_without_retries
@ -4648,7 +4648,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] The URL for this resource type. The server generates this URL. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -8172,7 +8172,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -8541,7 +8541,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next attr_accessor :next
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -10551,7 +10551,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -10600,7 +10600,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -11302,7 +11302,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link

View File

@ -1107,10 +1107,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the entire content of the BackendService resource. There are several # Updates the specified BackendService resource with the data included in the
# restrictions and guidelines to keep in mind when updating a backend service. # request. There are several restrictions and guidelines to keep in mind when
# Read Restrictions and Guidelines for more information. This method supports # updating a backend service. Read Restrictions and Guidelines for more
# patch semantics. # information. This method supports patch semantics.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] backend_service # @param [String] backend_service
@ -1192,9 +1192,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the entire content of the BackendService resource. There are several # Updates the specified BackendService resource with the data included in the
# restrictions and guidelines to keep in mind when updating a backend service. # request. There are several restrictions and guidelines to keep in mind when
# Read Restrictions and Guidelines for more information. # updating a backend service. Read Restrictions and Guidelines for more
# information.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] backend_service # @param [String] backend_service
@ -8494,10 +8495,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update the entire content of the regional BackendService resource. There are # Updates the specified regional BackendService resource with the data included
# several restrictions and guidelines to keep in mind when updating a backend # in the request. There are several restrictions and guidelines to keep in mind
# service. Read Restrictions and Guidelines for more information. This method # when updating a backend service. Read Restrictions and Guidelines for more
# supports patch semantics. # information. This method supports patch semantics.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] region # @param [String] region
@ -8585,9 +8586,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update the entire content of the regional BackendService resource. There are # Updates the specified regional BackendService resource with the data included
# several restrictions and guidelines to keep in mind when updating a backend # in the request. There are several restrictions and guidelines to keep in mind
# service. Read Restrictions and Guidelines for more information. # when updating a backend service. Read Restrictions and Guidelines for more
# information.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] region # @param [String] region
@ -10256,8 +10258,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the entire content of the Router resource. This method supports patch # Updates the specified Router resource with the data included in the request.
# semantics. # This method supports patch semantics.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] region # @param [String] region
@ -10390,7 +10392,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the entire content of the Router resource. # Updates the specified Router resource with the data included in the request.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] region # @param [String] region
@ -13949,8 +13951,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the entire content of the UrlMap resource. This method supports patch # Updates the specified UrlMap resource with the data included in the request.
# semantics. # This method supports patch semantics.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] url_map # @param [String] url_map
@ -14032,7 +14034,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the entire content of the UrlMap resource. # Updates the specified UrlMap resource with the data included in the request.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] url_map # @param [String] url_map

View File

@ -3321,7 +3321,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :archive_size_bytes attr_accessor :archive_size_bytes
# Creation timestamp in RFC3339 text format. # [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp` # Corresponds to the JSON property `creationTimestamp`
# @return [String] # @return [String]
attr_accessor :creation_timestamp attr_accessor :creation_timestamp
@ -4093,7 +4093,7 @@ module Google
# [Output Only] The number of instances that the managed instance group will # [Output Only] The number of instances that the managed instance group will
# attempt to create. The group attempts to create each instance only once. If # attempt to create. The group attempts to create each instance only once. If
# the group fails to create any of these instances, it decreases the group's # the group fails to create any of these instances, it decreases the group's
# target_size value accordingly. # targetSize value accordingly.
# Corresponds to the JSON property `creatingWithoutRetries` # Corresponds to the JSON property `creatingWithoutRetries`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :creating_without_retries attr_accessor :creating_without_retries
@ -4228,7 +4228,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] The URL for this resource type. The server generates this URL. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -7287,7 +7287,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -7650,7 +7650,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -9609,7 +9609,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -9658,7 +9658,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
@ -10321,7 +10321,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dataflow # @see https://cloud.google.com/dataflow
module DataflowV1b3 module DataflowV1b3
VERSION = 'V1b3' VERSION = 'V1b3'
REVISION = '20160923' REVISION = '20161004'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

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

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/bid-manager/ # @see https://developers.google.com/bid-manager/
module DoubleclickbidmanagerV1 module DoubleclickbidmanagerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160927' REVISION = '20161010'
end end
end end
end end

View File

@ -91,8 +91,10 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :file_types attr_accessor :file_types
# IDs of the specified filter type used to filter entities to fetch. If omitted, # The IDs of the specified filter type. This is used to filter entities to fetch.
# all the entities will be returned. # At least one ID must be specified. Only one ID is allowed for the
# ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter types
# all IDs must be from the same Advertiser.
# Corresponds to the JSON property `filterIds` # Corresponds to the JSON property `filterIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :filter_ids attr_accessor :filter_ids

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/doubleclick-search/ # @see https://developers.google.com/doubleclick-search/
module DoubleclicksearchV2 module DoubleclicksearchV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160927' REVISION = '20161005'
# View and manage your advertising data in DoubleClick Search # View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV2 module DriveV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160922' REVISION = '20161006'
# View and manage the files in your Google Drive # View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -2491,6 +2491,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The page token for the next page of revisions. This field will be absent if
# the end of the revisions list has been reached. If the token is rejected for
# any reason, it should be discarded and pagination should be restarted from the
# first page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A link back to this list. # A link back to this list.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
@ -2505,6 +2513,7 @@ module Google
@etag = args[:etag] if args.key?(:etag) @etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items) @items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
end end
end end

View File

@ -853,6 +853,7 @@ module Google
collection :items, as: 'items', class: Google::Apis::DriveV2::Revision, decorator: Google::Apis::DriveV2::Revision::Representation collection :items, as: 'items', class: Google::Apis::DriveV2::Revision, decorator: Google::Apis::DriveV2::Revision::Representation
property :kind, as: 'kind' property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
end end
end end

View File

@ -2620,6 +2620,11 @@ module Google
# Lists a file's revisions. # Lists a file's revisions.
# @param [String] file_id # @param [String] file_id
# The ID of the file. # The ID of the file.
# @param [Fixnum] max_results
# Maximum number of revisions to return.
# @param [String] page_token
# Page token for revisions. To get the next page of results, set this parameter
# to the value of "nextPageToken" from the previous response.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2641,11 +2646,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_revisions(file_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'files/{fileId}/revisions', options) command = make_simple_command(:get, 'files/{fileId}/revisions', options)
command.response_representation = Google::Apis::DriveV2::RevisionList::Representation command.response_representation = Google::Apis::DriveV2::RevisionList::Representation
command.response_class = Google::Apis::DriveV2::RevisionList command.response_class = Google::Apis::DriveV2::RevisionList
command.params['fileId'] = file_id unless file_id.nil? command.params['fileId'] = file_id unless file_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV3 module DriveV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20160922' REVISION = '20161006'
# View and manage the files in your Google Drive # View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -1471,6 +1471,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The page token for the next page of revisions. This will be absent if the end
# of the revisions list has been reached.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The full list of revisions. # The full list of revisions.
# Corresponds to the JSON property `revisions` # Corresponds to the JSON property `revisions`
# @return [Array<Google::Apis::DriveV3::Revision>] # @return [Array<Google::Apis::DriveV3::Revision>]
@ -1483,6 +1489,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@revisions = args[:revisions] if args.key?(:revisions) @revisions = args[:revisions] if args.key?(:revisions)
end end
end end

View File

@ -522,6 +522,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind' property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :revisions, as: 'revisions', class: Google::Apis::DriveV3::Revision, decorator: Google::Apis::DriveV3::Revision::Representation collection :revisions, as: 'revisions', class: Google::Apis::DriveV3::Revision, decorator: Google::Apis::DriveV3::Revision::Representation
end end

View File

@ -1460,6 +1460,11 @@ module Google
# Lists a file's revisions. # Lists a file's revisions.
# @param [String] file_id # @param [String] file_id
# The ID of the file. # The ID of the file.
# @param [Fixnum] page_size
# The maximum number of revisions to return per page.
# @param [String] page_token
# The token for continuing a previous list request on the next page. This should
# be set to the value of 'nextPageToken' from the previous response.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1481,11 +1486,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_revisions(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'files/{fileId}/revisions', options) command = make_simple_command(:get, 'files/{fileId}/revisions', options)
command.response_representation = Google::Apis::DriveV3::RevisionList::Representation command.response_representation = Google::Apis::DriveV3::RevisionList::Representation
command.response_class = Google::Apis::DriveV3::RevisionList command.response_class = Google::Apis::DriveV3::RevisionList
command.params['fileId'] = file_id unless file_id.nil? command.params['fileId'] = file_id unless file_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics/ # @see https://cloud.google.com/genomics/
module GenomicsV1 module GenomicsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160929' REVISION = '20161010'
# View and manage your data in Google BigQuery # View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/ # @see https://cloud.google.com/natural-language/
module LanguageV1beta1 module LanguageV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20160922' REVISION = '20161006'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/ # @see https://cloud.google.com/monitoring/api/
module MonitoringV3 module MonitoringV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20160927' REVISION = '20161010'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/domains/ # @see https://developers.google.com/+/domains/
module PlusDomainsV1 module PlusDomainsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20161001' REVISION = '20161011'
# View your circles and the people and pages in them # View your circles and the people and pages in them
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/api/ # @see https://developers.google.com/+/api/
module PlusV1 module PlusV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20161001' REVISION = '20161011'
# Know the list of people in your circles, your age range, and language # Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/ # @see https://developers.google.com/sheets/
module SheetsV4 module SheetsV4
VERSION = 'V4' VERSION = 'V4'
REVISION = '20161004' REVISION = '20161006'
# View the files in your Google Drive # View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly' AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'

View File

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

View File

@ -286,8 +286,7 @@ module Google
# [Optional] The language of the supplied audio as a BCP-47 language tag. # [Optional] The language of the supplied audio as a BCP-47 language tag.
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt # Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
# If omitted, defaults to "en-US". See # If omitted, defaults to "en-US". See
# [Language Support](https://cloud.google.com/speech/docs/best-practices# # [Language Support](https://cloud.google.com/speech/docs/languages)
# language_support)
# for a list of the currently supported language codes. # for a list of the currently supported language codes.
# Corresponds to the JSON property `languageCode` # Corresponds to the JSON property `languageCode`
# @return [String] # @return [String]
@ -412,6 +411,25 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# `SyncRecognizeResponse` is the only message returned to the client by # `SyncRecognizeResponse` is the only message returned to the client by
# `SyncRecognize`. It contains the result as zero or more sequential # `SyncRecognize`. It contains the result as zero or more sequential
# `SpeechRecognitionResult` messages. # `SpeechRecognitionResult` messages.
@ -434,25 +452,6 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Provides "hints" to the speech recognizer to favor specific words and phrases # Provides "hints" to the speech recognizer to favor specific words and phrases
# in the results. # in the results.
class SpeechContext class SpeechContext

View File

@ -76,13 +76,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SyncRecognizeResponse class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Empty class SyncRecognizeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -183,6 +183,12 @@ module Google
end end
end end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SyncRecognizeResponse class SyncRecognizeResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -191,12 +197,6 @@ module Google
end end
end end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SpeechContext class SpeechContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -46,70 +46,6 @@ module Google
super('https://speech.googleapis.com/', '') super('https://speech.googleapis.com/', '')
end end
# Perform synchronous speech-recognition: receive results after all audio
# has been sent and processed.
# @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
# @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.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1beta1::SyncRecognizeResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1beta1::SyncRecognizeResponse]
#
# @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 sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
command.request_object = sync_recognize_request_object
command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Perform asynchronous speech-recognition: receive results via the
# google.longrunning.Operations interface. Returns either an
# `Operation.error` or an `Operation.response` which contains
# an `AsyncRecognizeResponse` message.
# @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object
# @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.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1beta1::Operation]
#
# @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 async_recognize_speech(async_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
command.request_object = async_recognize_request_object
command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1beta1::Operation
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API # method to poll the operation result at intervals as recommended by the API
# service. # service.
@ -190,7 +126,10 @@ module Google
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or # Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the # other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. # operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
# @param [Google::Apis::SpeechV1beta1::CancelOperationRequest] cancel_operation_request_object # @param [Google::Apis::SpeechV1beta1::CancelOperationRequest] cancel_operation_request_object
@ -256,6 +195,70 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Perform synchronous speech-recognition: receive results after all audio
# has been sent and processed.
# @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
# @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.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1beta1::SyncRecognizeResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1beta1::SyncRecognizeResponse]
#
# @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 sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
command.request_object = sync_recognize_request_object
command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Perform asynchronous speech-recognition: receive results via the
# google.longrunning.Operations interface. Returns either an
# `Operation.error` or an `Operation.response` which contains
# an `AsyncRecognizeResponse` message.
# @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object
# @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.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1beta1::Operation]
#
# @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 async_recognize_speech(async_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
command.request_object = async_recognize_request_object
command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1beta1::Operation
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/sql/docs/reference/latest # @see https://cloud.google.com/sql/docs/reference/latest
module SqladminV1beta4 module SqladminV1beta4
VERSION = 'V1beta4' VERSION = 'V1beta4'
REVISION = '20160907' REVISION = '20161005'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -389,6 +389,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :backend_type attr_accessor :backend_type
# Connection name of the Cloud SQL instance used in connection strings.
# Corresponds to the JSON property `connectionName`
# @return [String]
attr_accessor :connection_name
# The current disk usage of the instance in bytes. This property has been # The current disk usage of the instance in bytes. This property has been
# deprecated. Users should use the "cloudsql.googleapis.com/database/disk/ # deprecated. Users should use the "cloudsql.googleapis.com/database/disk/
# bytes_used" metric in Cloud Monitoring API instead. Please see https://groups. # bytes_used" metric in Cloud Monitoring API instead. Please see https://groups.
@ -530,6 +535,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@backend_type = args[:backend_type] if args.key?(:backend_type) @backend_type = args[:backend_type] if args.key?(:backend_type)
@connection_name = args[:connection_name] if args.key?(:connection_name)
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size) @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
@database_version = args[:database_version] if args.key?(:database_version) @database_version = args[:database_version] if args.key?(:database_version)
@etag = args[:etag] if args.key?(:etag) @etag = args[:etag] if args.key?(:etag)

View File

@ -409,6 +409,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :backend_type, as: 'backendType' property :backend_type, as: 'backendType'
property :connection_name, as: 'connectionName'
property :current_disk_size, as: 'currentDiskSize' property :current_disk_size, as: 'currentDiskSize'
property :database_version, as: 'databaseVersion' property :database_version, as: 'databaseVersion'
property :etag, as: 'etag' property :etag, as: 'etag'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1 module VisionV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160822' REVISION = '20161005'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/ # @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1 module YoutubePartnerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160927' REVISION = '20161004'
# View and manage your assets and associated content on YouTube # View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'

View File

@ -15,7 +15,7 @@
module Google module Google
module Apis module Apis
# Client library version # Client library version
VERSION = '0.9.16' VERSION = '0.9.17'
# Current operating system # Current operating system
# @private # @private