Skip to content

Commit

Permalink
Autogenerated update (2018-10-04)
Browse files Browse the repository at this point in the history
Update:
- admin_directory_v1
- androidpublisher_v2
- androidpublisher_v3
- content_v2
- content_v2sandbox
- dlp_v2
- language_v1
- language_v1beta1
- language_v1beta2
- testing_v1
- videointelligence_v1
- videointelligence_v1beta2
  • Loading branch information
googleapis-publisher committed Oct 4, 2018
1 parent 6773823 commit 4693389
Show file tree
Hide file tree
Showing 30 changed files with 2,996 additions and 345 deletions.
253 changes: 253 additions & 0 deletions api_names_out.yaml

Large diffs are not rendered by default.

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 = '20180911'
REVISION = '20180917'

# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
Expand Down
155 changes: 155 additions & 0 deletions generated/google/apis/admin_directory_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,11 @@ class ChromeOsDevice
# @return [String]
attr_accessor :boot_mode

# Reports of CPU utilization and temperature (Read-only)
# Corresponds to the JSON property `cpuStatusReports`
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport>]
attr_accessor :cpu_status_reports

# List of device files to download (Read-only)
# Corresponds to the JSON property `deviceFiles`
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile>]
Expand All @@ -635,6 +640,11 @@ class ChromeOsDevice
# @return [String]
attr_accessor :device_id

# Reports of disk space and other info about mounted/connected volumes.
# Corresponds to the JSON property `diskVolumeReports`
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::DiskVolumeReport>]
attr_accessor :disk_volume_reports

# ETag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
Expand Down Expand Up @@ -727,6 +737,16 @@ class ChromeOsDevice
# @return [DateTime]
attr_accessor :support_end_date

# Reports of amounts of available RAM memory (Read-only)
# Corresponds to the JSON property `systemRamFreeReports`
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::SystemRamFreeReport>]
attr_accessor :system_ram_free_reports

# Total RAM on the device [in bytes] (Read-only)
# Corresponds to the JSON property `systemRamTotal`
# @return [Fixnum]
attr_accessor :system_ram_total

# Trusted Platform Module (TPM) (Read-only)
# Corresponds to the JSON property `tpmVersionInfo`
# @return [Google::Apis::AdminDirectoryV1::ChromeOsDevice::TpmVersionInfo]
Expand All @@ -749,8 +769,10 @@ def update!(**args)
@annotated_location = args[:annotated_location] if args.key?(:annotated_location)
@annotated_user = args[:annotated_user] if args.key?(:annotated_user)
@boot_mode = args[:boot_mode] if args.key?(:boot_mode)
@cpu_status_reports = args[:cpu_status_reports] if args.key?(:cpu_status_reports)
@device_files = args[:device_files] if args.key?(:device_files)
@device_id = args[:device_id] if args.key?(:device_id)
@disk_volume_reports = args[:disk_volume_reports] if args.key?(:disk_volume_reports)
@etag = args[:etag] if args.key?(:etag)
@ethernet_mac_address = args[:ethernet_mac_address] if args.key?(:ethernet_mac_address)
@firmware_version = args[:firmware_version] if args.key?(:firmware_version)
Expand All @@ -769,6 +791,8 @@ def update!(**args)
@serial_number = args[:serial_number] if args.key?(:serial_number)
@status = args[:status] if args.key?(:status)
@support_end_date = args[:support_end_date] if args.key?(:support_end_date)
@system_ram_free_reports = args[:system_ram_free_reports] if args.key?(:system_ram_free_reports)
@system_ram_total = args[:system_ram_total] if args.key?(:system_ram_total)
@tpm_version_info = args[:tpm_version_info] if args.key?(:tpm_version_info)
@will_auto_renew = args[:will_auto_renew] if args.key?(:will_auto_renew)
end
Expand Down Expand Up @@ -798,6 +822,62 @@ def update!(**args)
end
end

#
class CpuStatusReport
include Google::Apis::Core::Hashable

# List of CPU temperature samples.
# Corresponds to the JSON property `cpuTemperatureInfo`
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport::CpuTemperatureInfo>]
attr_accessor :cpu_temperature_info

#
# Corresponds to the JSON property `cpuUtilizationPercentageInfo`
# @return [Array<Fixnum>]
attr_accessor :cpu_utilization_percentage_info

# Date and time the report was received.
# Corresponds to the JSON property `reportTime`
# @return [DateTime]
attr_accessor :report_time

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@cpu_temperature_info = args[:cpu_temperature_info] if args.key?(:cpu_temperature_info)
@cpu_utilization_percentage_info = args[:cpu_utilization_percentage_info] if args.key?(:cpu_utilization_percentage_info)
@report_time = args[:report_time] if args.key?(:report_time)
end

#
class CpuTemperatureInfo
include Google::Apis::Core::Hashable

# CPU label
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label

# Temperature in Celsius degrees.
# Corresponds to the JSON property `temperature`
# @return [Fixnum]
attr_accessor :temperature

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@temperature = args[:temperature] if args.key?(:temperature)
end
end
end

#
class DeviceFile
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -835,6 +915,56 @@ def update!(**args)
end
end

#
class DiskVolumeReport
include Google::Apis::Core::Hashable

# Disk volumes
# Corresponds to the JSON property `volumeInfo`
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::DiskVolumeReport::VolumeInfo>]
attr_accessor :volume_info

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@volume_info = args[:volume_info] if args.key?(:volume_info)
end

#
class VolumeInfo
include Google::Apis::Core::Hashable

# Free disk space [in bytes]
# Corresponds to the JSON property `storageFree`
# @return [Fixnum]
attr_accessor :storage_free

# Total disk space [in bytes]
# Corresponds to the JSON property `storageTotal`
# @return [Fixnum]
attr_accessor :storage_total

# Volume id
# Corresponds to the JSON property `volumeId`
# @return [String]
attr_accessor :volume_id

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@storage_free = args[:storage_free] if args.key?(:storage_free)
@storage_total = args[:storage_total] if args.key?(:storage_total)
@volume_id = args[:volume_id] if args.key?(:volume_id)
end
end
end

#
class RecentUser
include Google::Apis::Core::Hashable
Expand All @@ -860,6 +990,31 @@ def update!(**args)
end
end

#
class SystemRamFreeReport
include Google::Apis::Core::Hashable

# Date and time the report was received.
# Corresponds to the JSON property `reportTime`
# @return [DateTime]
attr_accessor :report_time

#
# Corresponds to the JSON property `systemRamFreeInfo`
# @return [Array<Fixnum>]
attr_accessor :system_ram_free_info

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@report_time = args[:report_time] if args.key?(:report_time)
@system_ram_free_info = args[:system_ram_free_info] if args.key?(:system_ram_free_info)
end
end

# Trusted Platform Module (TPM) (Read-only)
class TpmVersionInfo
include Google::Apis::Core::Hashable
Expand Down
82 changes: 82 additions & 0 deletions generated/google/apis/admin_directory_v1/representations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,48 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Expand Down Expand Up @@ -649,9 +679,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :annotated_location, as: 'annotatedLocation'
property :annotated_user, as: 'annotatedUser'
property :boot_mode, as: 'bootMode'
collection :cpu_status_reports, as: 'cpuStatusReports', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport::Representation

collection :device_files, as: 'deviceFiles', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile::Representation

property :device_id, as: 'deviceId'
collection :disk_volume_reports, as: 'diskVolumeReports', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DiskVolumeReport, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DiskVolumeReport::Representation

property :etag, as: 'etag'
property :ethernet_mac_address, as: 'ethernetMacAddress'
property :firmware_version, as: 'firmwareVersion'
Expand All @@ -674,6 +708,9 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status'
property :support_end_date, as: 'supportEndDate', type: DateTime

collection :system_ram_free_reports, as: 'systemRamFreeReports', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::SystemRamFreeReport, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::SystemRamFreeReport::Representation

property :system_ram_total, :numeric_string => true, as: 'systemRamTotal'
property :tpm_version_info, as: 'tpmVersionInfo', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::TpmVersionInfo, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::TpmVersionInfo::Representation

property :will_auto_renew, as: 'willAutoRenew'
Expand All @@ -688,6 +725,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class CpuStatusReport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :cpu_temperature_info, as: 'cpuTemperatureInfo', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport::CpuTemperatureInfo, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport::CpuTemperatureInfo::Representation

collection :cpu_utilization_percentage_info, as: 'cpuUtilizationPercentageInfo'
property :report_time, as: 'reportTime', type: DateTime

end

class CpuTemperatureInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :temperature, as: 'temperature'
end
end
end

class DeviceFile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand All @@ -699,6 +755,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class DiskVolumeReport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :volume_info, as: 'volumeInfo', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DiskVolumeReport::VolumeInfo, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DiskVolumeReport::VolumeInfo::Representation

end

class VolumeInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :storage_free, :numeric_string => true, as: 'storageFree'
property :storage_total, :numeric_string => true, as: 'storageTotal'
property :volume_id, as: 'volumeId'
end
end
end

class RecentUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand All @@ -707,6 +780,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class SystemRamFreeReport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :report_time, as: 'reportTime', type: DateTime

collection :system_ram_free_info, as: 'systemRamFreeInfo'
end
end

class TpmVersionInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidpublisher_v2.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-publisher
module AndroidpublisherV2
VERSION = 'V2'
REVISION = '20180827'
REVISION = '20181002'

# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
Expand Down
6 changes: 5 additions & 1 deletion generated/google/apis/androidpublisher_v2/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,9 @@ def list_edit_bundles(package_name, edit_id, fields: nil, quota_user: nil, user_
# spiffygame".
# @param [String] edit_id
# Unique identifier for this edit.
# @param [Boolean] ack_bundle_installation_warning
# Must be set to true if the bundle installation may trigger a warning on user
# devices (i.e. if installation size may be over a threshold, typically 100 MB).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -701,7 +704,7 @@ def list_edit_bundles(package_name, edit_id, fields: nil, quota_user: nil, user_
# @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 upload_edit_bundle(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
def upload_edit_bundle(package_name, edit_id, ack_bundle_installation_warning: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, '{packageName}/edits/{editId}/bundles', options)
else
Expand All @@ -713,6 +716,7 @@ def upload_edit_bundle(package_name, edit_id, fields: nil, quota_user: nil, user
command.response_class = Google::Apis::AndroidpublisherV2::Bundle
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.query['ackBundleInstallationWarning'] = ack_bundle_installation_warning unless ack_bundle_installation_warning.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?
Expand Down
Loading

0 comments on commit 4693389

Please sign in to comment.