Skip to content

Commit

Permalink
Regen APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoffee-google committed Oct 12, 2016
1 parent 2325538 commit 204359d
Show file tree
Hide file tree
Showing 61 changed files with 1,607 additions and 587 deletions.
760 changes: 426 additions & 334 deletions api_names_out.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion generated/google/apis/adexchangebuyer_v1_4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://developers.google.com/ad-exchange/buyer-rest
module AdexchangebuyerV1_4
VERSION = 'V1_4'
REVISION = '20161003'
REVISION = '20161006'

# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/admin_directory_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20160824'
REVISION = '20161003'

# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
Expand Down
80 changes: 80 additions & 0 deletions generated/google/apis/admin_directory_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,32 @@ def update!(**args)
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.
class ChromeOsDevices
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -1147,6 +1173,16 @@ class MobileDevice
# @return [String]
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)
# Corresponds to the JSON property `buildNumber`
# @return [String]
Expand All @@ -1173,11 +1209,21 @@ class MobileDevice
# @return [String]
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)
# Corresponds to the JSON property `email`
# @return [Array<String>]
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.
# Corresponds to the JSON property `etag`
# @return [String]
Expand All @@ -1189,6 +1235,11 @@ class MobileDevice
# @return [DateTime]
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)
# Corresponds to the JSON property `hardwareId`
# @return [String]
Expand Down Expand Up @@ -1222,6 +1273,11 @@ class MobileDevice
attr_accessor :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)
# Corresponds to the JSON property `meid`
# @return [String]
Expand Down Expand Up @@ -1252,11 +1308,26 @@ class MobileDevice
# @return [Array<String>]
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)
# Corresponds to the JSON property `resourceId`
# @return [String]
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)
# Corresponds to the JSON property `serialNumber`
# @return [String]
Expand Down Expand Up @@ -1303,27 +1374,36 @@ def update!(**args)
@adb_status = args[:adb_status] if args.key?(:adb_status)
@applications = args[:applications] if args.key?(:applications)
@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)
@default_language = args[:default_language] if args.key?(:default_language)
@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_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)
@encryption_status = args[:encryption_status] if args.key?(:encryption_status)
@etag = args[:etag] if args.key?(:etag)
@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)
@imei = args[:imei] if args.key?(:imei)
@kernel_version = args[:kernel_version] if args.key?(:kernel_version)
@kind = args[:kind] if args.key?(:kind)
@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)
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
@meid = args[:meid] if args.key?(:meid)
@model = args[:model] if args.key?(:model)
@name = args[:name] if args.key?(:name)
@network_operator = args[:network_operator] if args.key?(:network_operator)
@os = args[:os] if args.key?(:os)
@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)
@security_patch_level = args[:security_patch_level] if args.key?(:security_patch_level)
@serial_number = args[:serial_number] if args.key?(:serial_number)
@status = args[:status] if args.key?(:status)
@supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
Expand Down
23 changes: 23 additions & 0 deletions generated/google/apis/admin_directory_v1/representations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class ChromeOsDeviceAction
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ChromeOsDevices
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -512,6 +518,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ChromeOsDeviceAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :deprovision_reason, as: 'deprovisionReason'
end
end

class ChromeOsDevices
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -659,29 +673,38 @@ class Representation < Google::Apis::Core::JsonRepresentation
collection :applications, as: 'applications', class: Google::Apis::AdminDirectoryV1::MobileDevice::Application, decorator: Google::Apis::AdminDirectoryV1::MobileDevice::Application::Representation

property :baseband_version, as: 'basebandVersion'
property :bootloader_version, as: 'bootloaderVersion'
property :brand, as: 'brand'
property :build_number, as: 'buildNumber'
property :default_language, as: 'defaultLanguage'
property :developer_options_status, as: 'developerOptionsStatus'
property :device_compromised_status, as: 'deviceCompromisedStatus'
property :device_id, as: 'deviceId'
property :device_password_status, as: 'devicePasswordStatus'
collection :email, as: 'email'
property :encryption_status, as: 'encryptionStatus'
property :etag, as: 'etag'
property :first_sync, as: 'firstSync', type: DateTime

property :hardware, as: 'hardware'
property :hardware_id, as: 'hardwareId'
property :imei, as: 'imei'
property :kernel_version, as: 'kernelVersion'
property :kind, as: 'kind'
property :last_sync, as: 'lastSync', type: DateTime

property :managed_account_is_on_owner_profile, as: 'managedAccountIsOnOwnerProfile'
property :manufacturer, as: 'manufacturer'
property :meid, as: 'meid'
property :model, as: 'model'
collection :name, as: 'name'
property :network_operator, as: 'networkOperator'
property :os, as: 'os'
collection :other_accounts_info, as: 'otherAccountsInfo'
property :privilege, as: 'privilege'
property :release_version, as: 'releaseVersion'
property :resource_id, as: 'resourceId'
property :security_patch_level, as: 'securityPatchLevel'
property :serial_number, as: 'serialNumber'
property :status, as: 'status'
property :supports_work_profile, as: 'supportsWorkProfile'
Expand Down
39 changes: 39 additions & 0 deletions generated/google/apis/admin_directory_v1/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,45 @@ def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: ni
execute_or_queue_command(command, &block)
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
# @param [String] customer_id
# Immutable id of the Google Apps account
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/adsense_v1_4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20161003'
REVISION = '20161011'

# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/adsensehost_v4_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
REVISION = '20161003'
REVISION = '20161011'

# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/analyticsreporting_v4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
module AnalyticsreportingV4
VERSION = 'V4'
REVISION = '20160926'
REVISION = '20161011'

# View your Google Analytics data
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidenterprise_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20160928'
REVISION = '20161005'

# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
Expand Down
Loading

0 comments on commit 204359d

Please sign in to comment.