Autogenerated update (2017-09-05)

Update:
- androiddeviceprovisioning_v1
- androidenterprise_v1
- cloudfunctions_v1
- cloudfunctions_v1beta2
- servicemanagement_v1
- serviceuser_v1
This commit is contained in:
Google APIs committed 2017-09-05 00:36:10 +00:00
1 parent d6eb6def76
commit 7ffbcd94e2
18 files changed
+179 -457

No files matched your search

@@ -31,12 +31,12 @@ module Google
# @return [Fixnum]
attr_accessor :customer_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# Section to claim
# The section to claim.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
@@ -57,13 +57,13 @@ module Google
class ClaimDeviceResponse
include Google::Apis::Core::Hashable
# the device id of the claimed device.
# The device ID of the claimed device.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# the resource name of the device in
# 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
# The resource name of the device in the format
# `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
# Corresponds to the JSON property `deviceName`
# @return [String]
attr_accessor :device_name
@@ -83,7 +83,7 @@ module Google
class ClaimDevicesRequest
include Google::Apis::Core::Hashable
# list of claims.
# List of claims.
# Corresponds to the JSON property `claims`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim>]
attr_accessor :claims
@@ -102,31 +102,32 @@ module Google
class Company
include Google::Apis::Core::Hashable
# Admin email.
# Admins will be able to operate on the portal.
# This field is a WRITE-only field at creation time.
# Admin emails.
# Admins are able to operate on the portal.
# This field is a write-only field at creation time.
# Corresponds to the JSON property `adminEmails`
# @return [Array<String>]
attr_accessor :admin_emails
# company id
# Company ID.
# Corresponds to the JSON property `companyId`
# @return [Fixnum]
attr_accessor :company_id
# company name
# Company name.
# Corresponds to the JSON property `companyName`
# @return [String]
attr_accessor :company_name
# REST Resource name.
# The API resource name of the company in the format
# `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Owner email.
# Owner is able to operate on the portal, and modify admins and other owners.
# This field is a WRITE-only field at creation time.
# Owner emails.
# Owners are able to operate on the portal, and modify admins or other
# owners. This field is a write-only field at creation time.
# Corresponds to the JSON property `ownerEmails`
# @return [Array<String>]
attr_accessor :owner_emails
@@ -145,11 +146,30 @@ module Google
end
end
# Device
# Request message to create a customer.
class CreateCustomerRequest
include Google::Apis::Core::Hashable
# Company
# Corresponds to the JSON property `customer`
# @return [Google::Apis::AndroiddeviceprovisioningV1::Company]
attr_accessor :customer
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer = args[:customer] if args.key?(:customer)
end
end
# An Android device.
class Device
include Google::Apis::Core::Hashable
# claims
# Claims.
# Corresponds to the JSON property `claims`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim>]
attr_accessor :claims
@@ -160,22 +180,22 @@ module Google
# @return [String]
attr_accessor :configuration
# Device id
# Device ID.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
# Resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
# Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@@ -195,16 +215,16 @@ module Google
end
end
# containing the necessary info about a claim for a partner.
# Information about a device claimed for a partner.
class DeviceClaim
include Google::Apis::Core::Hashable
# owner id
# Owner ID.
# Corresponds to the JSON property `ownerCompanyId`
# @return [Fixnum]
attr_accessor :owner_company_id
# section type.
# Section type of the device claim.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
@@ -220,11 +240,11 @@ module Google
end
end
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
class DeviceIdentifier
include Google::Apis::Core::Hashable
# IMEI
# IMEI number.
# Corresponds to the JSON property `imei`
# @return [String]
attr_accessor :imei
@@ -236,12 +256,12 @@ module Google
# @return [String]
attr_accessor :manufacturer
# MEID
# MEID number.
# Corresponds to the JSON property `meid`
# @return [String]
attr_accessor :meid
# Serial number (optional)
# Serial number (optional).
# Corresponds to the JSON property `serialNumber`
# @return [String]
attr_accessor :serial_number
@@ -259,7 +279,7 @@ module Google
end
end
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
class DeviceMetadata
include Google::Apis::Core::Hashable
@@ -313,8 +333,8 @@ module Google
class DevicesLongRunningOperationResponse
include Google::Apis::Core::Hashable
# processing status for each device.
# One PerDeviceStatus per device. The order is the same as in your requests.
# Processing status for each device.
# One `PerDeviceStatus` per device. The order is the same as in your requests.
# Corresponds to the JSON property `perDeviceStatus`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice>]
attr_accessor :per_device_status
@@ -358,7 +378,7 @@ module Google
class FindDevicesByDeviceIdentifierRequest
include Google::Apis::Core::Hashable
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@@ -368,7 +388,7 @@ module Google
# @return [Fixnum]
attr_accessor :limit
# Page token
# Page token.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
@@ -394,7 +414,7 @@ module Google
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
attr_accessor :devices
# Page token of next page
# Page token of the next page.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@@ -414,7 +434,7 @@ module Google
class FindDevicesByOwnerRequest
include Google::Apis::Core::Hashable
# List of customer ids to search for.
# List of customer IDs to search for.
# Corresponds to the JSON property `customerId`
# @return [Array<Fixnum>]
attr_accessor :customer_id
@@ -424,7 +444,7 @@ module Google
# @return [Fixnum]
attr_accessor :limit
# Page token
# Page token.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
@@ -456,7 +476,7 @@ module Google
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
attr_accessor :devices
# Page token of next page
# Page token of the next page.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@@ -621,22 +641,22 @@ module Google
class PartnerClaim
include Google::Apis::Core::Hashable
# customer id to claim for.
# Customer ID to claim for.
# Corresponds to the JSON property `customerId`
# @return [Fixnum]
attr_accessor :customer_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
# section type to claim.
# Section type to claim.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
@@ -658,17 +678,17 @@ module Google
class PartnerUnclaim
include Google::Apis::Core::Hashable
# device id of the device.
# Device ID of the device.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# section type to unclaim.
# Section type to unclaim.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
@@ -689,7 +709,7 @@ module Google
class PerDeviceStatusInBatch
include Google::Apis::Core::Hashable
# device id of the device if process succeeds.
# Device ID of the device if process succeeds.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
@@ -699,7 +719,7 @@ module Google
# @return [String]
attr_accessor :error_identifier
# Error message
# Error message.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message
@@ -798,12 +818,12 @@ module Google
class UnclaimDeviceRequest
include Google::Apis::Core::Hashable
# The device id returned by ClaimDevice.
# The device ID returned by `ClaimDevice`.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@@ -829,7 +849,7 @@ module Google
class UnclaimDevicesRequest
include Google::Apis::Core::Hashable
# list of unclaims.
# List of devices to unclaim.
# Corresponds to the JSON property `unclaims`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim>]
attr_accessor :unclaims
@@ -848,7 +868,7 @@ module Google
class UpdateDeviceMetadataInBatchRequest
include Google::Apis::Core::Hashable
# list of metadata updates.
# List of metadata updates.
# Corresponds to the JSON property `updates`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments>]
attr_accessor :updates
@@ -867,7 +887,7 @@ module Google
class UpdateDeviceMetadataRequest
include Google::Apis::Core::Hashable
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
@@ -886,17 +906,17 @@ module Google
class UpdateMetadataArguments
include Google::Apis::Core::Hashable
# device id of the device.
# Device ID of the device.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# DeviceIdentifiers identifies an unique device.
# Identifies a unique device.
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# A key value pair of the device metadata.
# A key-value pair of the device metadata.
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
@@ -46,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateCustomerRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -221,6 +227,14 @@ module Google
end
end
class CreateCustomerRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -80,9 +80,46 @@ module Google
execute_or_queue_command(command, &block)
end
# List all the customers that has delegates some role to this customer.
# A customer for Zero Touch Provisioning will be created.
# After a Customer is created, their admins and owners will be able to manage
# devices on partner.android.com/zerotouch or via their API.
# @param [String] parent
# The parent resource in format `partners/[PARTNER_ID]'.
# @param [Google::Apis::AndroiddeviceprovisioningV1::CreateCustomerRequest] create_customer_request_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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Company] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroiddeviceprovisioningV1::Company]
#
# @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_customer(parent, create_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/customers', options)
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::CreateCustomerRequest::Representation
command.request_object = create_customer_request_object
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Company
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List the customers that are enrolled to the reseller identified by the
# `partnerId` argument. This list includes customers that the reseller
# created and customers that enrolled themselves using the portal.
# @param [Fixnum] partner_id
# the id of the partner.
# The ID of the partner.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -112,7 +149,7 @@ module Google
# Claim the device identified by device identifier.
# @param [Fixnum] partner_id
# Id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceRequest] claim_device_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -143,9 +180,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Claim devices asynchronously
# Claim devices asynchronously.
# @param [Fixnum] partner_id
# partner id.
# Partner ID.
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDevicesRequest] claim_devices_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -178,7 +215,7 @@ module Google
# Find devices by device identifier.
# @param [Fixnum] partner_id
# id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierRequest] find_devices_by_device_identifier_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -211,7 +248,7 @@ module Google
# Find devices by ownership.
# @param [Fixnum] partner_id
# id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerRequest] find_devices_by_owner_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -242,9 +279,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Get a device
# Get a device.
# @param [String] name
# resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
# Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -272,11 +309,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Update the metadata
# Update the metadata.
# @param [Fixnum] metadata_owner_id
# The owner of the newly set metadata. Should be partner id itself.
# The owner of the newly set metadata. Set this to the partner ID.
# @param [Fixnum] device_id
# id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataRequest] update_device_metadata_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -308,9 +345,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Unclaim the device identified by device_id or identifier.
# Unclaim the device identified by the `device_id` or the `deviceIdentifier`.
# @param [Fixnum] partner_id
# Id of the partner.
# ID of the partner.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDeviceRequest] unclaim_device_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -341,9 +378,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Unclaim devices asynchronously
# Unclaim devices asynchronously.
# @param [Fixnum] partner_id
# partner id.
# Partner ID.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDevicesRequest] unclaim_devices_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -376,7 +413,7 @@ module Google
# Set metadata in batch asynchronously.
# @param [Fixnum] partner_id
# partner id.
# Partner ID.
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataInBatchRequest] update_device_metadata_in_batch_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.