Class: Google::Apis::AndroiddeviceprovisioningV1::AndroidProvisioningPartnerService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::AndroiddeviceprovisioningV1::AndroidProvisioningPartnerService
- Defined in:
- generated/google/apis/androiddeviceprovisioning_v1/service.rb
Overview
Android Device Provisioning Partner API
Automates Android zero-touch enrollment for device resellers, customers, and EMMs.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#apply_customer_device_configuration(parent, customer_apply_configuration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Applies a Configuration to the device to register the device for zero-touch enrollment.
-
#claim_device(partner_id, claim_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse
Claims a device for a customer and adds it to zero-touch enrollment.
-
#claim_partner_device_async(partner_id, claim_devices_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Operation
Claims a batch of devices for a customer asynchronously.
-
#create_customer(parent, create_customer_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Company
Creates a customer for zero-touch enrollment.
-
#create_customer_configuration(parent, configuration_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Configuration
Creates a new configuration.
-
#delete_customer_configuration(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Deletes an unused configuration.
-
#find_partner_device_by_identifier(partner_id, find_devices_by_device_identifier_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierResponse
Finds devices by hardware identifiers, such as IMEI.
-
#find_partner_device_by_owner(partner_id, find_devices_by_owner_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerResponse
Finds devices claimed for customers.
-
#get_customer_configuration(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Configuration
Gets the details of a configuration.
-
#get_customer_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Device
Gets the details of a device.
-
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Operation
Gets the latest state of a long-running operation.
-
#get_partner_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Device
Gets a device.
-
#initialize ⇒ AndroidProvisioningPartnerService
constructor
A new instance of AndroidProvisioningPartnerService.
-
#list_customer_configurations(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::CustomerListConfigurationsResponse
Lists a customer's configurations.
-
#list_customer_devices(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::CustomerListDevicesResponse
Lists a customer's devices.
-
#list_customer_dpcs(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::CustomerListDpcsResponse
Lists the DPCs (device policy controllers) that support zero-touch enrollment.
-
#list_customers(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::CustomerListCustomersResponse
Lists the user's customer accounts.
-
#list_partner_customers(partner_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse
Lists the customers that are enrolled to the reseller identified by the
partnerId
argument. -
#metadata_partner_device(metadata_owner_id, device_id, update_device_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata
Updates reseller metadata associated with the device.
-
#patch_customer_configuration(name, configuration_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Configuration
Updates a configuration's field values.
-
#remove_customer_device_configuration(parent, customer_remove_configuration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Removes a configuration from device.
-
#unclaim_customer_device(parent, customer_unclaim_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Unclaims a device from a customer and removes it from zero-touch enrollment.
-
#unclaim_device(partner_id, unclaim_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Unclaims a device from a customer and removes it from zero-touch enrollment.
-
#unclaim_partner_device_async(partner_id, unclaim_devices_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Operation
Unclaims a batch of devices for a customer asynchronously.
-
#update_partner_device_metadata_async(partner_id, update_device_metadata_in_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Operation
Updates the reseller metadata attached to a batch of devices.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ AndroidProvisioningPartnerService
Returns a new instance of AndroidProvisioningPartnerService
46 47 48 49 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 46 def initialize super('https://androiddeviceprovisioning.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns 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.
44 45 46 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#apply_customer_device_configuration(parent, customer_apply_configuration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Applies a Configuration to the device to register the device for zero-touch enrollment. After applying a configuration to a device, the device automatically provisions itself on first boot, or next factory reset.
280 281 282 283 284 285 286 287 288 289 290 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 280 def apply_customer_device_configuration(parent, customer_apply_configuration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/devices:applyConfiguration', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerApplyConfigurationRequest::Representation command.request_object = customer_apply_configuration_request_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty 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 |
#claim_device(partner_id, claim_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse
Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.
587 588 589 590 591 592 593 594 595 596 597 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 587 def claim_device(partner_id, claim_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:claim', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceRequest::Representation command.request_object = claim_device_request_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse command.params['partnerId'] = partner_id unless partner_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#claim_partner_device_async(partner_id, claim_devices_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Operation
Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read Long‑running batch operations.
622 623 624 625 626 627 628 629 630 631 632 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 622 def claim_partner_device_async(partner_id, claim_devices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:claimAsync', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::ClaimDevicesRequest::Representation command.request_object = claim_devices_request_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Operation::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Operation command.params['partnerId'] = partner_id unless partner_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_customer(parent, create_customer_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Company
Creates a customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their zero-touch enrollment portal. The API doesn't notify the customer that they have access.
521 522 523 524 525 526 527 528 529 530 531 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 521 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', ) 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 |
#create_customer_configuration(parent, configuration_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Configuration
Creates a new configuration. Once created, a customer can apply the configuration to devices.
108 109 110 111 112 113 114 115 116 117 118 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 108 def create_customer_configuration(parent, configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/configurations', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation command.request_object = configuration_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Configuration 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 |
#delete_customer_configuration(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Deletes an unused configuration. The API call fails if the customer has devices with the configuration applied.
143 144 145 146 147 148 149 150 151 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 143 def delete_customer_configuration(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#find_partner_device_by_identifier(partner_id, find_devices_by_device_identifier_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierResponse
Finds devices by hardware identifiers, such as IMEI.
655 656 657 658 659 660 661 662 663 664 665 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 655 def find_partner_device_by_identifier(partner_id, find_devices_by_device_identifier_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:findByIdentifier', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierRequest::Representation command.request_object = find_devices_by_device_identifier_request_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierResponse::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierResponse command.params['partnerId'] = partner_id unless partner_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#find_partner_device_by_owner(partner_id, find_devices_by_owner_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerResponse
Finds devices claimed for customers. The results only contain devices
registered to the reseller that's identified by the partnerId
argument.
The customer's devices purchased from other resellers don't appear in the
results.
691 692 693 694 695 696 697 698 699 700 701 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 691 def find_partner_device_by_owner(partner_id, find_devices_by_owner_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:findByOwner', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerRequest::Representation command.request_object = find_devices_by_owner_request_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerResponse::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerResponse command.params['partnerId'] = partner_id unless partner_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_customer_configuration(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Configuration
Gets the details of a configuration.
174 175 176 177 178 179 180 181 182 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 174 def get_customer_configuration(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Configuration command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_customer_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Device
Gets the details of a device.
313 314 315 316 317 318 319 320 321 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 313 def get_customer_device(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Device::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Device command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Operation
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.
486 487 488 489 490 491 492 493 494 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 486 def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Operation::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_partner_device(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Device
Gets a device.
724 725 726 727 728 729 730 731 732 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 724 def get_partner_device(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Device::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Device command.params['name'] = name unless name.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_customer_configurations(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::CustomerListConfigurationsResponse
Lists a customer's configurations.
205 206 207 208 209 210 211 212 213 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 205 def list_customer_configurations(parent, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/configurations', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerListConfigurationsResponse::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::CustomerListConfigurationsResponse 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_customer_devices(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::CustomerListDevicesResponse
Lists a customer's devices.
349 350 351 352 353 354 355 356 357 358 359 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 349 def list_customer_devices(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/devices', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerListDevicesResponse::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::CustomerListDevicesResponse command.params['parent'] = parent unless parent.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['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_customer_dpcs(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::CustomerListDpcsResponse
Lists the DPCs (device policy controllers) that support zero-touch enrollment.
454 455 456 457 458 459 460 461 462 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 454 def list_customer_dpcs(parent, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/dpcs', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerListDpcsResponse::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::CustomerListDpcsResponse 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_customers(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::CustomerListCustomersResponse
Lists the user's customer accounts.
74 75 76 77 78 79 80 81 82 83 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 74 def list_customers(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/customers', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerListCustomersResponse::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::CustomerListCustomersResponse 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['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_partner_customers(partner_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse
Lists 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.
555 556 557 558 559 560 561 562 563 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 555 def list_partner_customers(partner_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/partners/{+partnerId}/customers', ) command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse command.params['partnerId'] = partner_id unless partner_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#metadata_partner_device(metadata_owner_id, device_id, update_device_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata
Updates reseller metadata associated with the device.
757 758 759 760 761 762 763 764 765 766 767 768 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 757 def (, device_id, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/partners/{+metadataOwnerId}/devices/{+deviceId}/metadata', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataRequest::Representation command.request_object = command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata command.params['metadataOwnerId'] = unless .nil? command.params['deviceId'] = device_id unless device_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_customer_configuration(name, configuration_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Configuration
Updates a configuration's field values.
243 244 245 246 247 248 249 250 251 252 253 254 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 243 def patch_customer_configuration(name, configuration_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation command.request_object = configuration_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Configuration command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_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 |
#remove_customer_device_configuration(parent, customer_remove_configuration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Removes a configuration from device.
383 384 385 386 387 388 389 390 391 392 393 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 383 def remove_customer_device_configuration(parent, customer_remove_configuration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/devices:removeConfiguration', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerRemoveConfigurationRequest::Representation command.request_object = customer_remove_configuration_request_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty 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 |
#unclaim_customer_device(parent, customer_unclaim_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Unclaims a device from a customer and removes it from zero-touch enrollment. After removing a device, a customer must contact their reseller to register the device into zero-touch enrollment again.
420 421 422 423 424 425 426 427 428 429 430 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 420 def unclaim_customer_device(parent, customer_unclaim_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/devices:unclaim', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerUnclaimDeviceRequest::Representation command.request_object = customer_unclaim_device_request_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty 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 |
#unclaim_device(partner_id, unclaim_device_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Empty
Unclaims a device from a customer and removes it from zero-touch enrollment.
792 793 794 795 796 797 798 799 800 801 802 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 792 def unclaim_device(partner_id, unclaim_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:unclaim', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::UnclaimDeviceRequest::Representation command.request_object = unclaim_device_request_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty command.params['partnerId'] = partner_id unless partner_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#unclaim_partner_device_async(partner_id, unclaim_devices_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Operation
Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read Long‑running batch operations.
827 828 829 830 831 832 833 834 835 836 837 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 827 def unclaim_partner_device_async(partner_id, unclaim_devices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:unclaimAsync', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::UnclaimDevicesRequest::Representation command.request_object = unclaim_devices_request_object command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Operation::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Operation command.params['partnerId'] = partner_id unless partner_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_partner_device_metadata_async(partner_id, update_device_metadata_in_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AndroiddeviceprovisioningV1::Operation
Updates the reseller metadata attached to a batch of devices. This method
updates devices asynchronously and returns an Operation
that can be used
to track progress. Read Long‑running batch
operations.
863 864 865 866 867 868 869 870 871 872 873 |
# File 'generated/google/apis/androiddeviceprovisioning_v1/service.rb', line 863 def (partner_id, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:updateMetadataAsync', ) command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataInBatchRequest::Representation command.request_object = command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Operation::Representation command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Operation command.params['partnerId'] = partner_id unless partner_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |