google-api-ruby-client/generated/google/apis/androiddeviceprovisioning_v1/representations.rb

448 lines
17 KiB
Ruby

# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AndroiddeviceprovisioningV1
class ClaimDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClaimDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClaimDevicesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Company
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceClaim
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceIdentifier
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DevicesLongRunningOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DevicesLongRunningOperationResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FindDevicesByDeviceIdentifierRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FindDevicesByDeviceIdentifierResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FindDevicesByOwnerRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FindDevicesByOwnerResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCustomersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationPerDevice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PartnerClaim
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PartnerUnclaim
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PerDeviceStatusInBatch
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnclaimDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnclaimDevicesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateDeviceMetadataInBatchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateDeviceMetadataRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateMetadataArguments
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClaimDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer_id, :numeric_string => true, as: 'customerId'
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
property :section_type, as: 'sectionType'
end
end
class ClaimDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, :numeric_string => true, as: 'deviceId'
property :device_name, as: 'deviceName'
end
end
class ClaimDevicesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :claims, as: 'claims', class: Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim::Representation
end
end
class Company
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :admin_emails, as: 'adminEmails'
property :company_id, :numeric_string => true, as: 'companyId'
property :company_name, as: 'companyName'
property :name, as: 'name'
collection :owner_emails, as: 'ownerEmails'
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :claims, as: 'claims', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim::Representation
property :configuration, as: 'configuration'
property :device_id, :numeric_string => true, as: 'deviceId'
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation
property :name, as: 'name'
end
end
class DeviceClaim
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :owner_company_id, :numeric_string => true, as: 'ownerCompanyId'
property :section_type, as: 'sectionType'
end
end
class DeviceIdentifier
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :imei, as: 'imei'
property :manufacturer, as: 'manufacturer'
property :meid, as: 'meid'
property :serial_number, as: 'serialNumber'
end
end
class DeviceMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :entries, as: 'entries'
end
end
class DevicesLongRunningOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :devices_count, as: 'devicesCount'
property :processing_status, as: 'processingStatus'
property :progress, as: 'progress'
end
end
class DevicesLongRunningOperationResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :per_device_status, as: 'perDeviceStatus', class: Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice, decorator: Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice::Representation
property :success_count, as: 'successCount'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class FindDevicesByDeviceIdentifierRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
property :limit, :numeric_string => true, as: 'limit'
property :page_token, as: 'pageToken'
end
end
class FindDevicesByDeviceIdentifierResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :devices, as: 'devices', class: Google::Apis::AndroiddeviceprovisioningV1::Device, decorator: Google::Apis::AndroiddeviceprovisioningV1::Device::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class FindDevicesByOwnerRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :customer_id, as: 'customerId'
property :limit, :numeric_string => true, as: 'limit'
property :page_token, as: 'pageToken'
property :section_type, as: 'sectionType'
end
end
class FindDevicesByOwnerResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :devices, as: 'devices', class: Google::Apis::AndroiddeviceprovisioningV1::Device, decorator: Google::Apis::AndroiddeviceprovisioningV1::Device::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListCustomersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :customers, as: 'customers', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::AndroiddeviceprovisioningV1::Status, decorator: Google::Apis::AndroiddeviceprovisioningV1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class OperationPerDevice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :claim, as: 'claim', class: Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim::Representation
property :result, as: 'result', class: Google::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch, decorator: Google::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch::Representation
property :unclaim, as: 'unclaim', class: Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim::Representation
property :update_metadata, as: 'updateMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments, decorator: Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments::Representation
end
end
class PartnerClaim
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer_id, :numeric_string => true, as: 'customerId'
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation
property :section_type, as: 'sectionType'
end
end
class PartnerUnclaim
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, :numeric_string => true, as: 'deviceId'
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
property :section_type, as: 'sectionType'
end
end
class PerDeviceStatusInBatch
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, :numeric_string => true, as: 'deviceId'
property :error_identifier, as: 'errorIdentifier'
property :error_message, as: 'errorMessage'
property :status, as: 'status'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class UnclaimDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, :numeric_string => true, as: 'deviceId'
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
property :section_type, as: 'sectionType'
end
end
class UnclaimDevicesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :unclaims, as: 'unclaims', class: Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim::Representation
end
end
class UpdateDeviceMetadataInBatchRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :updates, as: 'updates', class: Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments, decorator: Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments::Representation
end
end
class UpdateDeviceMetadataRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation
end
end
class UpdateMetadataArguments
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, :numeric_string => true, as: 'deviceId'
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation
end
end
end
end
end