Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
use Google\Service\AndroidProvisioningPartner\CustomerListCustomersResponse;
/**
* The "customers" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $customers = $androiddeviceprovisioningService->customers;
* </code>
*/
class Customers extends \Google\Service\Resource
{
/**
* Lists the user's customer accounts. (customers.listCustomers)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Required. The maximum number of customers to show in
* a page of results. A number between 1 and 100 (inclusive).
* @opt_param string pageToken A token specifying which result page to return.
* This field has custom validations in ListCustomersRequestValidator
* @return CustomerListCustomersResponse
* @throws \Google\Service\Exception
*/
public function listCustomers($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], CustomerListCustomersResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customers::class, 'Google_Service_AndroidProvisioningPartner_Resource_Customers');
@@ -0,0 +1,127 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
use Google\Service\AndroidProvisioningPartner\AndroiddeviceprovisioningEmpty;
use Google\Service\AndroidProvisioningPartner\Configuration;
use Google\Service\AndroidProvisioningPartner\CustomerListConfigurationsResponse;
/**
* The "configurations" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $configurations = $androiddeviceprovisioningService->customers_configurations;
* </code>
*/
class CustomersConfigurations extends \Google\Service\Resource
{
/**
* Creates a new configuration. Once created, a customer can apply the
* configuration to devices. (configurations.create)
*
* @param string $parent Required. The customer that manages the configuration.
* An API resource name in the format `customers/[CUSTOMER_ID]`. This field has
* custom validation in CreateConfigurationRequestValidator
* @param Configuration $postBody
* @param array $optParams Optional parameters.
* @return Configuration
* @throws \Google\Service\Exception
*/
public function create($parent, Configuration $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Configuration::class);
}
/**
* Deletes an unused configuration. The API call fails if the customer has
* devices with the configuration applied. (configurations.delete)
*
* @param string $name Required. The configuration to delete. An API resource
* name in the format
* `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. If the
* configuration is applied to any devices, the API call fails.
* @param array $optParams Optional parameters.
* @return AndroiddeviceprovisioningEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AndroiddeviceprovisioningEmpty::class);
}
/**
* Gets the details of a configuration. (configurations.get)
*
* @param string $name Required. The configuration to get. An API resource name
* in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`.
* @param array $optParams Optional parameters.
* @return Configuration
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Configuration::class);
}
/**
* Lists a customer's configurations.
* (configurations.listCustomersConfigurations)
*
* @param string $parent Required. The customer that manages the listed
* configurations. An API resource name in the format `customers/[CUSTOMER_ID]`.
* @param array $optParams Optional parameters.
* @return CustomerListConfigurationsResponse
* @throws \Google\Service\Exception
*/
public function listCustomersConfigurations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], CustomerListConfigurationsResponse::class);
}
/**
* Updates a configuration's field values. (configurations.patch)
*
* @param string $name Output only. The API resource name in the format
* `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by the
* server.
* @param Configuration $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The field mask applied to the target
* `Configuration` before updating the fields. To learn more about using field
* masks, read [FieldMask](/protocol-
* buffers/docs/reference/google.protobuf#fieldmask) in the Protocol Buffers
* documentation.
* @return Configuration
* @throws \Google\Service\Exception
*/
public function patch($name, Configuration $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Configuration::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersConfigurations::class, 'Google_Service_AndroidProvisioningPartner_Resource_CustomersConfigurations');
@@ -0,0 +1,127 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
use Google\Service\AndroidProvisioningPartner\AndroiddeviceprovisioningEmpty;
use Google\Service\AndroidProvisioningPartner\CustomerApplyConfigurationRequest;
use Google\Service\AndroidProvisioningPartner\CustomerListDevicesResponse;
use Google\Service\AndroidProvisioningPartner\CustomerRemoveConfigurationRequest;
use Google\Service\AndroidProvisioningPartner\CustomerUnclaimDeviceRequest;
use Google\Service\AndroidProvisioningPartner\Device;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $devices = $androiddeviceprovisioningService->customers_devices;
* </code>
*/
class CustomersDevices extends \Google\Service\Resource
{
/**
* 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.
* (devices.applyConfiguration)
*
* @param string $parent Required. The customer managing the device. An API
* resource name in the format `customers/[CUSTOMER_ID]`.
* @param CustomerApplyConfigurationRequest $postBody
* @param array $optParams Optional parameters.
* @return AndroiddeviceprovisioningEmpty
* @throws \Google\Service\Exception
*/
public function applyConfiguration($parent, CustomerApplyConfigurationRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('applyConfiguration', [$params], AndroiddeviceprovisioningEmpty::class);
}
/**
* Gets the details of a device. (devices.get)
*
* @param string $name Required. The device to get. An API resource name in the
* format `customers/[CUSTOMER_ID]/devices/[DEVICE_ID]`.
* @param array $optParams Optional parameters.
* @return Device
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Device::class);
}
/**
* Lists a customer's devices. (devices.listCustomersDevices)
*
* @param string $parent Required. The customer managing the devices. An API
* resource name in the format `customers/[CUSTOMER_ID]`.
* @param array $optParams Optional parameters.
*
* @opt_param string pageSize Required. The maximum number of devices to show in
* a page of results. Must be between 1 and 100 inclusive.
* @opt_param string pageToken A token specifying which result page to return.
* @return CustomerListDevicesResponse
* @throws \Google\Service\Exception
*/
public function listCustomersDevices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], CustomerListDevicesResponse::class);
}
/**
* Removes a configuration from device. (devices.removeConfiguration)
*
* @param string $parent Required. The customer managing the device in the
* format `customers/[CUSTOMER_ID]`.
* @param CustomerRemoveConfigurationRequest $postBody
* @param array $optParams Optional parameters.
* @return AndroiddeviceprovisioningEmpty
* @throws \Google\Service\Exception
*/
public function removeConfiguration($parent, CustomerRemoveConfigurationRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('removeConfiguration', [$params], AndroiddeviceprovisioningEmpty::class);
}
/**
* 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. (devices.unclaim)
*
* @param string $parent Required. The customer managing the device. An API
* resource name in the format `customers/[CUSTOMER_ID]`.
* @param CustomerUnclaimDeviceRequest $postBody
* @param array $optParams Optional parameters.
* @return AndroiddeviceprovisioningEmpty
* @throws \Google\Service\Exception
*/
public function unclaim($parent, CustomerUnclaimDeviceRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unclaim', [$params], AndroiddeviceprovisioningEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersDevices::class, 'Google_Service_AndroidProvisioningPartner_Resource_CustomersDevices');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
use Google\Service\AndroidProvisioningPartner\CustomerListDpcsResponse;
/**
* The "dpcs" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $dpcs = $androiddeviceprovisioningService->customers_dpcs;
* </code>
*/
class CustomersDpcs extends \Google\Service\Resource
{
/**
* Lists the DPCs (device policy controllers) that support zero-touch
* enrollment. (dpcs.listCustomersDpcs)
*
* @param string $parent Required. The customer that can use the DPCs in
* configurations. An API resource name in the format `customers/[CUSTOMER_ID]`.
* @param array $optParams Optional parameters.
* @return CustomerListDpcsResponse
* @throws \Google\Service\Exception
*/
public function listCustomersDpcs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], CustomerListDpcsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersDpcs::class, 'Google_Service_AndroidProvisioningPartner_Resource_CustomersDpcs');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
use Google\Service\AndroidProvisioningPartner\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $operations = $androiddeviceprovisioningService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* 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. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_AndroidProvisioningPartner_Resource_Operations');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
/**
* The "partners" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $partners = $androiddeviceprovisioningService->partners;
* </code>
*/
class Partners extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Partners::class, 'Google_Service_AndroidProvisioningPartner_Resource_Partners');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
use Google\Service\AndroidProvisioningPartner\Company;
use Google\Service\AndroidProvisioningPartner\CreateCustomerRequest;
use Google\Service\AndroidProvisioningPartner\ListCustomersResponse;
/**
* The "customers" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $customers = $androiddeviceprovisioningService->partners_customers;
* </code>
*/
class PartnersCustomers extends \Google\Service\Resource
{
/**
* 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 customer
* receives an email that welcomes them to zero-touch enrollment and explains
* how to sign into the portal. (customers.create)
*
* @param string $parent Required. The parent resource ID in the format
* `partners/[PARTNER_ID]` that identifies the reseller.
* @param CreateCustomerRequest $postBody
* @param array $optParams Optional parameters.
* @return Company
* @throws \Google\Service\Exception
*/
public function create($parent, CreateCustomerRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Company::class);
}
/**
* 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.
* (customers.listPartnersCustomers)
*
* @param string $partnerId Required. The ID of the reseller partner.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of results to be returned. If not
* specified or 0, all the records are returned.
* @opt_param string pageToken A token identifying a page of results returned by
* the server.
* @return ListCustomersResponse
* @throws \Google\Service\Exception
*/
public function listPartnersCustomers($partnerId, $optParams = [])
{
$params = ['partnerId' => $partnerId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCustomersResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnersCustomers::class, 'Google_Service_AndroidProvisioningPartner_Resource_PartnersCustomers');
@@ -0,0 +1,219 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
use Google\Service\AndroidProvisioningPartner\AndroiddeviceprovisioningEmpty;
use Google\Service\AndroidProvisioningPartner\ClaimDeviceRequest;
use Google\Service\AndroidProvisioningPartner\ClaimDeviceResponse;
use Google\Service\AndroidProvisioningPartner\ClaimDevicesRequest;
use Google\Service\AndroidProvisioningPartner\Device;
use Google\Service\AndroidProvisioningPartner\DeviceMetadata;
use Google\Service\AndroidProvisioningPartner\FindDevicesByDeviceIdentifierRequest;
use Google\Service\AndroidProvisioningPartner\FindDevicesByDeviceIdentifierResponse;
use Google\Service\AndroidProvisioningPartner\FindDevicesByOwnerRequest;
use Google\Service\AndroidProvisioningPartner\FindDevicesByOwnerResponse;
use Google\Service\AndroidProvisioningPartner\GetDeviceSimLockStateRequest;
use Google\Service\AndroidProvisioningPartner\GetDeviceSimLockStateResponse;
use Google\Service\AndroidProvisioningPartner\Operation;
use Google\Service\AndroidProvisioningPartner\UnclaimDeviceRequest;
use Google\Service\AndroidProvisioningPartner\UnclaimDevicesRequest;
use Google\Service\AndroidProvisioningPartner\UpdateDeviceMetadataInBatchRequest;
use Google\Service\AndroidProvisioningPartner\UpdateDeviceMetadataRequest;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $devices = $androiddeviceprovisioningService->partners_devices;
* </code>
*/
class PartnersDevices extends \Google\Service\Resource
{
/**
* 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.
* (devices.claim)
*
* @param string $partnerId Required. The ID of the reseller partner.
* @param ClaimDeviceRequest $postBody
* @param array $optParams Optional parameters.
* @return ClaimDeviceResponse
* @throws \Google\Service\Exception
*/
public function claim($partnerId, ClaimDeviceRequest $postBody, $optParams = [])
{
$params = ['partnerId' => $partnerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('claim', [$params], ClaimDeviceResponse::class);
}
/**
* Claims a batch of devices for a customer asynchronously. Adds the devices to
* zero-touch enrollment. To learn more, read [Long‑running batch
* operations](/zero-touch/guides/how-it-works#operations). (devices.claimAsync)
*
* @param string $partnerId Required. The ID of the reseller partner.
* @param ClaimDevicesRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function claimAsync($partnerId, ClaimDevicesRequest $postBody, $optParams = [])
{
$params = ['partnerId' => $partnerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('claimAsync', [$params], Operation::class);
}
/**
* Finds devices by hardware identifiers, such as IMEI.
* (devices.findByIdentifier)
*
* @param string $partnerId Required. The ID of the reseller partner.
* @param FindDevicesByDeviceIdentifierRequest $postBody
* @param array $optParams Optional parameters.
* @return FindDevicesByDeviceIdentifierResponse
* @throws \Google\Service\Exception
*/
public function findByIdentifier($partnerId, FindDevicesByDeviceIdentifierRequest $postBody, $optParams = [])
{
$params = ['partnerId' => $partnerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('findByIdentifier', [$params], FindDevicesByDeviceIdentifierResponse::class);
}
/**
* 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. (devices.findByOwner)
*
* @param string $partnerId Required. The ID of the reseller partner.
* @param FindDevicesByOwnerRequest $postBody
* @param array $optParams Optional parameters.
* @return FindDevicesByOwnerResponse
* @throws \Google\Service\Exception
*/
public function findByOwner($partnerId, FindDevicesByOwnerRequest $postBody, $optParams = [])
{
$params = ['partnerId' => $partnerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('findByOwner', [$params], FindDevicesByOwnerResponse::class);
}
/**
* Gets a device. (devices.get)
*
* @param string $name Required. The device API resource name in the format
* `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
* @param array $optParams Optional parameters.
* @return Device
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Device::class);
}
/**
* Gets a device's SIM lock state. (devices.getSimLockState)
*
* @param string $partnerId Required. The ID of the partner.
* @param GetDeviceSimLockStateRequest $postBody
* @param array $optParams Optional parameters.
* @return GetDeviceSimLockStateResponse
* @throws \Google\Service\Exception
*/
public function getSimLockState($partnerId, GetDeviceSimLockStateRequest $postBody, $optParams = [])
{
$params = ['partnerId' => $partnerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getSimLockState', [$params], GetDeviceSimLockStateResponse::class);
}
/**
* Updates reseller metadata associated with the device. Android devices only.
* (devices.metadata)
*
* @param string $metadataOwnerId Required. The owner of the newly set metadata.
* Set this to the partner ID.
* @param string $deviceId Required. The ID of the device.
* @param UpdateDeviceMetadataRequest $postBody
* @param array $optParams Optional parameters.
* @return DeviceMetadata
* @throws \Google\Service\Exception
*/
public function metadata($metadataOwnerId, $deviceId, UpdateDeviceMetadataRequest $postBody, $optParams = [])
{
$params = ['metadataOwnerId' => $metadataOwnerId, 'deviceId' => $deviceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('metadata', [$params], DeviceMetadata::class);
}
/**
* Unclaims a device from a customer and removes it from zero-touch enrollment.
* (devices.unclaim)
*
* @param string $partnerId Required. The ID of the reseller partner.
* @param UnclaimDeviceRequest $postBody
* @param array $optParams Optional parameters.
* @return AndroiddeviceprovisioningEmpty
* @throws \Google\Service\Exception
*/
public function unclaim($partnerId, UnclaimDeviceRequest $postBody, $optParams = [])
{
$params = ['partnerId' => $partnerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unclaim', [$params], AndroiddeviceprovisioningEmpty::class);
}
/**
* Unclaims a batch of devices for a customer asynchronously. Removes the
* devices from zero-touch enrollment. To learn more, read [Long‑running batch
* operations](/zero-touch/guides/how-it-works#operations).
* (devices.unclaimAsync)
*
* @param string $partnerId Required. The reseller partner ID.
* @param UnclaimDevicesRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function unclaimAsync($partnerId, UnclaimDevicesRequest $postBody, $optParams = [])
{
$params = ['partnerId' => $partnerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unclaimAsync', [$params], Operation::class);
}
/**
* 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](/zero-touch/guides/how-
* it-works#operations). Android Devices only. (devices.updateMetadataAsync)
*
* @param string $partnerId Required. The reseller partner ID.
* @param UpdateDeviceMetadataInBatchRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateMetadataAsync($partnerId, UpdateDeviceMetadataInBatchRequest $postBody, $optParams = [])
{
$params = ['partnerId' => $partnerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateMetadataAsync', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnersDevices::class, 'Google_Service_AndroidProvisioningPartner_Resource_PartnersDevices');
@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
use Google\Service\AndroidProvisioningPartner\ListVendorsResponse;
/**
* The "vendors" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $vendors = $androiddeviceprovisioningService->partners_vendors;
* </code>
*/
class PartnersVendors extends \Google\Service\Resource
{
/**
* Lists the vendors of the partner. (vendors.listPartnersVendors)
*
* @param string $parent Required. The resource name in the format
* `partners/[PARTNER_ID]`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of results to be returned.
* @opt_param string pageToken A token identifying a page of results returned by
* the server.
* @return ListVendorsResponse
* @throws \Google\Service\Exception
*/
public function listPartnersVendors($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVendorsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnersVendors::class, 'Google_Service_AndroidProvisioningPartner_Resource_PartnersVendors');
@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 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.
*/
namespace Google\Service\AndroidProvisioningPartner\Resource;
use Google\Service\AndroidProvisioningPartner\ListVendorCustomersResponse;
/**
* The "customers" collection of methods.
* Typical usage is:
* <code>
* $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
* $customers = $androiddeviceprovisioningService->partners_vendors_customers;
* </code>
*/
class PartnersVendorsCustomers extends \Google\Service\Resource
{
/**
* Lists the customers of the vendor. (customers.listPartnersVendorsCustomers)
*
* @param string $parent Required. The resource name in the format
* `partners/[PARTNER_ID]/vendors/[VENDOR_ID]`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of results to be returned.
* @opt_param string pageToken A token identifying a page of results returned by
* the server.
* @return ListVendorCustomersResponse
* @throws \Google\Service\Exception
*/
public function listPartnersVendorsCustomers($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVendorCustomersResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnersVendorsCustomers::class, 'Google_Service_AndroidProvisioningPartner_Resource_PartnersVendorsCustomers');