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

View File

@@ -0,0 +1,25 @@
<?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;
class AndroiddeviceprovisioningEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroiddeviceprovisioningEmpty::class, 'Google_Service_AndroidProvisioningPartner_AndroiddeviceprovisioningEmpty');

View File

@@ -0,0 +1,166 @@
<?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;
class ClaimDeviceRequest extends \Google\Model
{
/**
* @var string
*/
public $configurationId;
/**
* @var string
*/
public $customerId;
protected $deviceIdentifierType = DeviceIdentifier::class;
protected $deviceIdentifierDataType = '';
protected $deviceMetadataType = DeviceMetadata::class;
protected $deviceMetadataDataType = '';
/**
* @var string
*/
public $googleWorkspaceCustomerId;
/**
* @var string
*/
public $preProvisioningToken;
/**
* @var string
*/
public $sectionType;
/**
* @var string
*/
public $simlockProfileId;
/**
* @param string
*/
public function setConfigurationId($configurationId)
{
$this->configurationId = $configurationId;
}
/**
* @return string
*/
public function getConfigurationId()
{
return $this->configurationId;
}
/**
* @param string
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* @param DeviceIdentifier
*/
public function setDeviceIdentifier(DeviceIdentifier $deviceIdentifier)
{
$this->deviceIdentifier = $deviceIdentifier;
}
/**
* @return DeviceIdentifier
*/
public function getDeviceIdentifier()
{
return $this->deviceIdentifier;
}
/**
* @param DeviceMetadata
*/
public function setDeviceMetadata(DeviceMetadata $deviceMetadata)
{
$this->deviceMetadata = $deviceMetadata;
}
/**
* @return DeviceMetadata
*/
public function getDeviceMetadata()
{
return $this->deviceMetadata;
}
/**
* @param string
*/
public function setGoogleWorkspaceCustomerId($googleWorkspaceCustomerId)
{
$this->googleWorkspaceCustomerId = $googleWorkspaceCustomerId;
}
/**
* @return string
*/
public function getGoogleWorkspaceCustomerId()
{
return $this->googleWorkspaceCustomerId;
}
/**
* @param string
*/
public function setPreProvisioningToken($preProvisioningToken)
{
$this->preProvisioningToken = $preProvisioningToken;
}
/**
* @return string
*/
public function getPreProvisioningToken()
{
return $this->preProvisioningToken;
}
/**
* @param string
*/
public function setSectionType($sectionType)
{
$this->sectionType = $sectionType;
}
/**
* @return string
*/
public function getSectionType()
{
return $this->sectionType;
}
/**
* @param string
*/
public function setSimlockProfileId($simlockProfileId)
{
$this->simlockProfileId = $simlockProfileId;
}
/**
* @return string
*/
public function getSimlockProfileId()
{
return $this->simlockProfileId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClaimDeviceRequest::class, 'Google_Service_AndroidProvisioningPartner_ClaimDeviceRequest');

View File

@@ -0,0 +1,62 @@
<?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;
class ClaimDeviceResponse extends \Google\Model
{
/**
* @var string
*/
public $deviceId;
/**
* @var string
*/
public $deviceName;
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* @param string
*/
public function setDeviceName($deviceName)
{
$this->deviceName = $deviceName;
}
/**
* @return string
*/
public function getDeviceName()
{
return $this->deviceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClaimDeviceResponse::class, 'Google_Service_AndroidProvisioningPartner_ClaimDeviceResponse');

View File

@@ -0,0 +1,43 @@
<?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;
class ClaimDevicesRequest extends \Google\Collection
{
protected $collection_key = 'claims';
protected $claimsType = PartnerClaim::class;
protected $claimsDataType = 'array';
/**
* @param PartnerClaim[]
*/
public function setClaims($claims)
{
$this->claims = $claims;
}
/**
* @return PartnerClaim[]
*/
public function getClaims()
{
return $this->claims;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClaimDevicesRequest::class, 'Google_Service_AndroidProvisioningPartner_ClaimDevicesRequest');

View File

@@ -0,0 +1,187 @@
<?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;
class Company extends \Google\Collection
{
protected $collection_key = 'ownerEmails';
/**
* @var string[]
*/
public $adminEmails;
/**
* @var string
*/
public $companyId;
/**
* @var string
*/
public $companyName;
protected $googleWorkspaceAccountType = GoogleWorkspaceAccount::class;
protected $googleWorkspaceAccountDataType = '';
/**
* @var string
*/
public $languageCode;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $ownerEmails;
/**
* @var bool
*/
public $skipWelcomeEmail;
/**
* @var string
*/
public $termsStatus;
/**
* @param string[]
*/
public function setAdminEmails($adminEmails)
{
$this->adminEmails = $adminEmails;
}
/**
* @return string[]
*/
public function getAdminEmails()
{
return $this->adminEmails;
}
/**
* @param string
*/
public function setCompanyId($companyId)
{
$this->companyId = $companyId;
}
/**
* @return string
*/
public function getCompanyId()
{
return $this->companyId;
}
/**
* @param string
*/
public function setCompanyName($companyName)
{
$this->companyName = $companyName;
}
/**
* @return string
*/
public function getCompanyName()
{
return $this->companyName;
}
/**
* @param GoogleWorkspaceAccount
*/
public function setGoogleWorkspaceAccount(GoogleWorkspaceAccount $googleWorkspaceAccount)
{
$this->googleWorkspaceAccount = $googleWorkspaceAccount;
}
/**
* @return GoogleWorkspaceAccount
*/
public function getGoogleWorkspaceAccount()
{
return $this->googleWorkspaceAccount;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setOwnerEmails($ownerEmails)
{
$this->ownerEmails = $ownerEmails;
}
/**
* @return string[]
*/
public function getOwnerEmails()
{
return $this->ownerEmails;
}
/**
* @param bool
*/
public function setSkipWelcomeEmail($skipWelcomeEmail)
{
$this->skipWelcomeEmail = $skipWelcomeEmail;
}
/**
* @return bool
*/
public function getSkipWelcomeEmail()
{
return $this->skipWelcomeEmail;
}
/**
* @param string
*/
public function setTermsStatus($termsStatus)
{
$this->termsStatus = $termsStatus;
}
/**
* @return string
*/
public function getTermsStatus()
{
return $this->termsStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Company::class, 'Google_Service_AndroidProvisioningPartner_Company');

View File

@@ -0,0 +1,224 @@
<?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;
class Configuration extends \Google\Model
{
/**
* @var string
*/
public $companyName;
/**
* @var string
*/
public $configurationId;
/**
* @var string
*/
public $configurationName;
/**
* @var string
*/
public $contactEmail;
/**
* @var string
*/
public $contactPhone;
/**
* @var string
*/
public $customMessage;
/**
* @var string
*/
public $dpcExtras;
/**
* @var string
*/
public $dpcResourcePath;
/**
* @var string
*/
public $forcedResetTime;
/**
* @var bool
*/
public $isDefault;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setCompanyName($companyName)
{
$this->companyName = $companyName;
}
/**
* @return string
*/
public function getCompanyName()
{
return $this->companyName;
}
/**
* @param string
*/
public function setConfigurationId($configurationId)
{
$this->configurationId = $configurationId;
}
/**
* @return string
*/
public function getConfigurationId()
{
return $this->configurationId;
}
/**
* @param string
*/
public function setConfigurationName($configurationName)
{
$this->configurationName = $configurationName;
}
/**
* @return string
*/
public function getConfigurationName()
{
return $this->configurationName;
}
/**
* @param string
*/
public function setContactEmail($contactEmail)
{
$this->contactEmail = $contactEmail;
}
/**
* @return string
*/
public function getContactEmail()
{
return $this->contactEmail;
}
/**
* @param string
*/
public function setContactPhone($contactPhone)
{
$this->contactPhone = $contactPhone;
}
/**
* @return string
*/
public function getContactPhone()
{
return $this->contactPhone;
}
/**
* @param string
*/
public function setCustomMessage($customMessage)
{
$this->customMessage = $customMessage;
}
/**
* @return string
*/
public function getCustomMessage()
{
return $this->customMessage;
}
/**
* @param string
*/
public function setDpcExtras($dpcExtras)
{
$this->dpcExtras = $dpcExtras;
}
/**
* @return string
*/
public function getDpcExtras()
{
return $this->dpcExtras;
}
/**
* @param string
*/
public function setDpcResourcePath($dpcResourcePath)
{
$this->dpcResourcePath = $dpcResourcePath;
}
/**
* @return string
*/
public function getDpcResourcePath()
{
return $this->dpcResourcePath;
}
/**
* @param string
*/
public function setForcedResetTime($forcedResetTime)
{
$this->forcedResetTime = $forcedResetTime;
}
/**
* @return string
*/
public function getForcedResetTime()
{
return $this->forcedResetTime;
}
/**
* @param bool
*/
public function setIsDefault($isDefault)
{
$this->isDefault = $isDefault;
}
/**
* @return bool
*/
public function getIsDefault()
{
return $this->isDefault;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Configuration::class, 'Google_Service_AndroidProvisioningPartner_Configuration');

View File

@@ -0,0 +1,42 @@
<?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;
class CreateCustomerRequest extends \Google\Model
{
protected $customerType = Company::class;
protected $customerDataType = '';
/**
* @param Company
*/
public function setCustomer(Company $customer)
{
$this->customer = $customer;
}
/**
* @return Company
*/
public function getCustomer()
{
return $this->customer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateCustomerRequest::class, 'Google_Service_AndroidProvisioningPartner_CreateCustomerRequest');

View File

@@ -0,0 +1,60 @@
<?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;
class CustomerApplyConfigurationRequest extends \Google\Model
{
/**
* @var string
*/
public $configuration;
protected $deviceType = DeviceReference::class;
protected $deviceDataType = '';
/**
* @param string
*/
public function setConfiguration($configuration)
{
$this->configuration = $configuration;
}
/**
* @return string
*/
public function getConfiguration()
{
return $this->configuration;
}
/**
* @param DeviceReference
*/
public function setDevice(DeviceReference $device)
{
$this->device = $device;
}
/**
* @return DeviceReference
*/
public function getDevice()
{
return $this->device;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerApplyConfigurationRequest::class, 'Google_Service_AndroidProvisioningPartner_CustomerApplyConfigurationRequest');

View File

@@ -0,0 +1,43 @@
<?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;
class CustomerListConfigurationsResponse extends \Google\Collection
{
protected $collection_key = 'configurations';
protected $configurationsType = Configuration::class;
protected $configurationsDataType = 'array';
/**
* @param Configuration[]
*/
public function setConfigurations($configurations)
{
$this->configurations = $configurations;
}
/**
* @return Configuration[]
*/
public function getConfigurations()
{
return $this->configurations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerListConfigurationsResponse::class, 'Google_Service_AndroidProvisioningPartner_CustomerListConfigurationsResponse');

View File

@@ -0,0 +1,61 @@
<?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;
class CustomerListCustomersResponse extends \Google\Collection
{
protected $collection_key = 'customers';
protected $customersType = Company::class;
protected $customersDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Company[]
*/
public function setCustomers($customers)
{
$this->customers = $customers;
}
/**
* @return Company[]
*/
public function getCustomers()
{
return $this->customers;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerListCustomersResponse::class, 'Google_Service_AndroidProvisioningPartner_CustomerListCustomersResponse');

View File

@@ -0,0 +1,61 @@
<?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;
class CustomerListDevicesResponse extends \Google\Collection
{
protected $collection_key = 'devices';
protected $devicesType = Device::class;
protected $devicesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Device[]
*/
public function setDevices($devices)
{
$this->devices = $devices;
}
/**
* @return Device[]
*/
public function getDevices()
{
return $this->devices;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerListDevicesResponse::class, 'Google_Service_AndroidProvisioningPartner_CustomerListDevicesResponse');

View File

@@ -0,0 +1,43 @@
<?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;
class CustomerListDpcsResponse extends \Google\Collection
{
protected $collection_key = 'dpcs';
protected $dpcsType = Dpc::class;
protected $dpcsDataType = 'array';
/**
* @param Dpc[]
*/
public function setDpcs($dpcs)
{
$this->dpcs = $dpcs;
}
/**
* @return Dpc[]
*/
public function getDpcs()
{
return $this->dpcs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerListDpcsResponse::class, 'Google_Service_AndroidProvisioningPartner_CustomerListDpcsResponse');

View File

@@ -0,0 +1,42 @@
<?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;
class CustomerRemoveConfigurationRequest extends \Google\Model
{
protected $deviceType = DeviceReference::class;
protected $deviceDataType = '';
/**
* @param DeviceReference
*/
public function setDevice(DeviceReference $device)
{
$this->device = $device;
}
/**
* @return DeviceReference
*/
public function getDevice()
{
return $this->device;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerRemoveConfigurationRequest::class, 'Google_Service_AndroidProvisioningPartner_CustomerRemoveConfigurationRequest');

View File

@@ -0,0 +1,42 @@
<?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;
class CustomerUnclaimDeviceRequest extends \Google\Model
{
protected $deviceType = DeviceReference::class;
protected $deviceDataType = '';
/**
* @param DeviceReference
*/
public function setDevice(DeviceReference $device)
{
$this->device = $device;
}
/**
* @return DeviceReference
*/
public function getDevice()
{
return $this->device;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerUnclaimDeviceRequest::class, 'Google_Service_AndroidProvisioningPartner_CustomerUnclaimDeviceRequest');

View File

@@ -0,0 +1,129 @@
<?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;
class Device extends \Google\Collection
{
protected $collection_key = 'claims';
protected $claimsType = DeviceClaim::class;
protected $claimsDataType = 'array';
/**
* @var string
*/
public $configuration;
/**
* @var string
*/
public $deviceId;
protected $deviceIdentifierType = DeviceIdentifier::class;
protected $deviceIdentifierDataType = '';
protected $deviceMetadataType = DeviceMetadata::class;
protected $deviceMetadataDataType = '';
/**
* @var string
*/
public $name;
/**
* @param DeviceClaim[]
*/
public function setClaims($claims)
{
$this->claims = $claims;
}
/**
* @return DeviceClaim[]
*/
public function getClaims()
{
return $this->claims;
}
/**
* @param string
*/
public function setConfiguration($configuration)
{
$this->configuration = $configuration;
}
/**
* @return string
*/
public function getConfiguration()
{
return $this->configuration;
}
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* @param DeviceIdentifier
*/
public function setDeviceIdentifier(DeviceIdentifier $deviceIdentifier)
{
$this->deviceIdentifier = $deviceIdentifier;
}
/**
* @return DeviceIdentifier
*/
public function getDeviceIdentifier()
{
return $this->deviceIdentifier;
}
/**
* @param DeviceMetadata
*/
public function setDeviceMetadata(DeviceMetadata $deviceMetadata)
{
$this->deviceMetadata = $deviceMetadata;
}
/**
* @return DeviceMetadata
*/
public function getDeviceMetadata()
{
return $this->deviceMetadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Device::class, 'Google_Service_AndroidProvisioningPartner_Device');

View File

@@ -0,0 +1,152 @@
<?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;
class DeviceClaim extends \Google\Model
{
/**
* @var string
*/
public $additionalService;
/**
* @var string
*/
public $googleWorkspaceCustomerId;
/**
* @var string
*/
public $ownerCompanyId;
/**
* @var string
*/
public $resellerId;
/**
* @var string
*/
public $sectionType;
/**
* @var string
*/
public $vacationModeExpireTime;
/**
* @var string
*/
public $vacationModeStartTime;
/**
* @param string
*/
public function setAdditionalService($additionalService)
{
$this->additionalService = $additionalService;
}
/**
* @return string
*/
public function getAdditionalService()
{
return $this->additionalService;
}
/**
* @param string
*/
public function setGoogleWorkspaceCustomerId($googleWorkspaceCustomerId)
{
$this->googleWorkspaceCustomerId = $googleWorkspaceCustomerId;
}
/**
* @return string
*/
public function getGoogleWorkspaceCustomerId()
{
return $this->googleWorkspaceCustomerId;
}
/**
* @param string
*/
public function setOwnerCompanyId($ownerCompanyId)
{
$this->ownerCompanyId = $ownerCompanyId;
}
/**
* @return string
*/
public function getOwnerCompanyId()
{
return $this->ownerCompanyId;
}
/**
* @param string
*/
public function setResellerId($resellerId)
{
$this->resellerId = $resellerId;
}
/**
* @return string
*/
public function getResellerId()
{
return $this->resellerId;
}
/**
* @param string
*/
public function setSectionType($sectionType)
{
$this->sectionType = $sectionType;
}
/**
* @return string
*/
public function getSectionType()
{
return $this->sectionType;
}
/**
* @param string
*/
public function setVacationModeExpireTime($vacationModeExpireTime)
{
$this->vacationModeExpireTime = $vacationModeExpireTime;
}
/**
* @return string
*/
public function getVacationModeExpireTime()
{
return $this->vacationModeExpireTime;
}
/**
* @param string
*/
public function setVacationModeStartTime($vacationModeStartTime)
{
$this->vacationModeStartTime = $vacationModeStartTime;
}
/**
* @return string
*/
public function getVacationModeStartTime()
{
return $this->vacationModeStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceClaim::class, 'Google_Service_AndroidProvisioningPartner_DeviceClaim');

View File

@@ -0,0 +1,188 @@
<?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;
class DeviceIdentifier extends \Google\Model
{
/**
* @var string
*/
public $chromeOsAttestedDeviceId;
/**
* @var string
*/
public $deviceType;
/**
* @var string
*/
public $imei;
/**
* @var string
*/
public $imei2;
/**
* @var string
*/
public $manufacturer;
/**
* @var string
*/
public $meid;
/**
* @var string
*/
public $meid2;
/**
* @var string
*/
public $model;
/**
* @var string
*/
public $serialNumber;
/**
* @param string
*/
public function setChromeOsAttestedDeviceId($chromeOsAttestedDeviceId)
{
$this->chromeOsAttestedDeviceId = $chromeOsAttestedDeviceId;
}
/**
* @return string
*/
public function getChromeOsAttestedDeviceId()
{
return $this->chromeOsAttestedDeviceId;
}
/**
* @param string
*/
public function setDeviceType($deviceType)
{
$this->deviceType = $deviceType;
}
/**
* @return string
*/
public function getDeviceType()
{
return $this->deviceType;
}
/**
* @param string
*/
public function setImei($imei)
{
$this->imei = $imei;
}
/**
* @return string
*/
public function getImei()
{
return $this->imei;
}
/**
* @param string
*/
public function setImei2($imei2)
{
$this->imei2 = $imei2;
}
/**
* @return string
*/
public function getImei2()
{
return $this->imei2;
}
/**
* @param string
*/
public function setManufacturer($manufacturer)
{
$this->manufacturer = $manufacturer;
}
/**
* @return string
*/
public function getManufacturer()
{
return $this->manufacturer;
}
/**
* @param string
*/
public function setMeid($meid)
{
$this->meid = $meid;
}
/**
* @return string
*/
public function getMeid()
{
return $this->meid;
}
/**
* @param string
*/
public function setMeid2($meid2)
{
$this->meid2 = $meid2;
}
/**
* @return string
*/
public function getMeid2()
{
return $this->meid2;
}
/**
* @param string
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* @param string
*/
public function setSerialNumber($serialNumber)
{
$this->serialNumber = $serialNumber;
}
/**
* @return string
*/
public function getSerialNumber()
{
return $this->serialNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceIdentifier::class, 'Google_Service_AndroidProvisioningPartner_DeviceIdentifier');

View File

@@ -0,0 +1,44 @@
<?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;
class DeviceMetadata extends \Google\Model
{
/**
* @var string[]
*/
public $entries;
/**
* @param string[]
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return string[]
*/
public function getEntries()
{
return $this->entries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceMetadata::class, 'Google_Service_AndroidProvisioningPartner_DeviceMetadata');

View File

@@ -0,0 +1,60 @@
<?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;
class DeviceReference extends \Google\Model
{
/**
* @var string
*/
public $deviceId;
protected $deviceIdentifierType = DeviceIdentifier::class;
protected $deviceIdentifierDataType = '';
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* @param DeviceIdentifier
*/
public function setDeviceIdentifier(DeviceIdentifier $deviceIdentifier)
{
$this->deviceIdentifier = $deviceIdentifier;
}
/**
* @return DeviceIdentifier
*/
public function getDeviceIdentifier()
{
return $this->deviceIdentifier;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceReference::class, 'Google_Service_AndroidProvisioningPartner_DeviceReference');

View File

@@ -0,0 +1,80 @@
<?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;
class DevicesLongRunningOperationMetadata extends \Google\Model
{
/**
* @var int
*/
public $devicesCount;
/**
* @var string
*/
public $processingStatus;
/**
* @var int
*/
public $progress;
/**
* @param int
*/
public function setDevicesCount($devicesCount)
{
$this->devicesCount = $devicesCount;
}
/**
* @return int
*/
public function getDevicesCount()
{
return $this->devicesCount;
}
/**
* @param string
*/
public function setProcessingStatus($processingStatus)
{
$this->processingStatus = $processingStatus;
}
/**
* @return string
*/
public function getProcessingStatus()
{
return $this->processingStatus;
}
/**
* @param int
*/
public function setProgress($progress)
{
$this->progress = $progress;
}
/**
* @return int
*/
public function getProgress()
{
return $this->progress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DevicesLongRunningOperationMetadata::class, 'Google_Service_AndroidProvisioningPartner_DevicesLongRunningOperationMetadata');

View File

@@ -0,0 +1,61 @@
<?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;
class DevicesLongRunningOperationResponse extends \Google\Collection
{
protected $collection_key = 'perDeviceStatus';
protected $perDeviceStatusType = OperationPerDevice::class;
protected $perDeviceStatusDataType = 'array';
/**
* @var int
*/
public $successCount;
/**
* @param OperationPerDevice[]
*/
public function setPerDeviceStatus($perDeviceStatus)
{
$this->perDeviceStatus = $perDeviceStatus;
}
/**
* @return OperationPerDevice[]
*/
public function getPerDeviceStatus()
{
return $this->perDeviceStatus;
}
/**
* @param int
*/
public function setSuccessCount($successCount)
{
$this->successCount = $successCount;
}
/**
* @return int
*/
public function getSuccessCount()
{
return $this->successCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DevicesLongRunningOperationResponse::class, 'Google_Service_AndroidProvisioningPartner_DevicesLongRunningOperationResponse');

View File

@@ -0,0 +1,80 @@
<?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;
class Dpc extends \Google\Model
{
/**
* @var string
*/
public $dpcName;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $packageName;
/**
* @param string
*/
public function setDpcName($dpcName)
{
$this->dpcName = $dpcName;
}
/**
* @return string
*/
public function getDpcName()
{
return $this->dpcName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Dpc::class, 'Google_Service_AndroidProvisioningPartner_Dpc');

View File

@@ -0,0 +1,78 @@
<?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;
class FindDevicesByDeviceIdentifierRequest extends \Google\Model
{
protected $deviceIdentifierType = DeviceIdentifier::class;
protected $deviceIdentifierDataType = '';
/**
* @var string
*/
public $limit;
/**
* @var string
*/
public $pageToken;
/**
* @param DeviceIdentifier
*/
public function setDeviceIdentifier(DeviceIdentifier $deviceIdentifier)
{
$this->deviceIdentifier = $deviceIdentifier;
}
/**
* @return DeviceIdentifier
*/
public function getDeviceIdentifier()
{
return $this->deviceIdentifier;
}
/**
* @param string
*/
public function setLimit($limit)
{
$this->limit = $limit;
}
/**
* @return string
*/
public function getLimit()
{
return $this->limit;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindDevicesByDeviceIdentifierRequest::class, 'Google_Service_AndroidProvisioningPartner_FindDevicesByDeviceIdentifierRequest');

View File

@@ -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;
class FindDevicesByDeviceIdentifierResponse extends \Google\Collection
{
protected $collection_key = 'devices';
protected $devicesType = Device::class;
protected $devicesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param Device[]
*/
public function setDevices($devices)
{
$this->devices = $devices;
}
/**
* @return Device[]
*/
public function getDevices()
{
return $this->devices;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindDevicesByDeviceIdentifierResponse::class, 'Google_Service_AndroidProvisioningPartner_FindDevicesByDeviceIdentifierResponse');

View File

@@ -0,0 +1,117 @@
<?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;
class FindDevicesByOwnerRequest extends \Google\Collection
{
protected $collection_key = 'googleWorkspaceCustomerId';
/**
* @var string[]
*/
public $customerId;
/**
* @var string[]
*/
public $googleWorkspaceCustomerId;
/**
* @var string
*/
public $limit;
/**
* @var string
*/
public $pageToken;
/**
* @var string
*/
public $sectionType;
/**
* @param string[]
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string[]
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* @param string[]
*/
public function setGoogleWorkspaceCustomerId($googleWorkspaceCustomerId)
{
$this->googleWorkspaceCustomerId = $googleWorkspaceCustomerId;
}
/**
* @return string[]
*/
public function getGoogleWorkspaceCustomerId()
{
return $this->googleWorkspaceCustomerId;
}
/**
* @param string
*/
public function setLimit($limit)
{
$this->limit = $limit;
}
/**
* @return string
*/
public function getLimit()
{
return $this->limit;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
/**
* @param string
*/
public function setSectionType($sectionType)
{
$this->sectionType = $sectionType;
}
/**
* @return string
*/
public function getSectionType()
{
return $this->sectionType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindDevicesByOwnerRequest::class, 'Google_Service_AndroidProvisioningPartner_FindDevicesByOwnerRequest');

View File

@@ -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;
class FindDevicesByOwnerResponse extends \Google\Collection
{
protected $collection_key = 'devices';
protected $devicesType = Device::class;
protected $devicesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param Device[]
*/
public function setDevices($devices)
{
$this->devices = $devices;
}
/**
* @return Device[]
*/
public function getDevices()
{
return $this->devices;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindDevicesByOwnerResponse::class, 'Google_Service_AndroidProvisioningPartner_FindDevicesByOwnerResponse');

View File

@@ -0,0 +1,42 @@
<?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;
class GetDeviceSimLockStateRequest extends \Google\Model
{
protected $deviceIdentifierType = DeviceIdentifier::class;
protected $deviceIdentifierDataType = '';
/**
* @param DeviceIdentifier
*/
public function setDeviceIdentifier(DeviceIdentifier $deviceIdentifier)
{
$this->deviceIdentifier = $deviceIdentifier;
}
/**
* @return DeviceIdentifier
*/
public function getDeviceIdentifier()
{
return $this->deviceIdentifier;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetDeviceSimLockStateRequest::class, 'Google_Service_AndroidProvisioningPartner_GetDeviceSimLockStateRequest');

View File

@@ -0,0 +1,44 @@
<?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;
class GetDeviceSimLockStateResponse extends \Google\Model
{
/**
* @var string
*/
public $simLockState;
/**
* @param string
*/
public function setSimLockState($simLockState)
{
$this->simLockState = $simLockState;
}
/**
* @return string
*/
public function getSimLockState()
{
return $this->simLockState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetDeviceSimLockStateResponse::class, 'Google_Service_AndroidProvisioningPartner_GetDeviceSimLockStateResponse');

View File

@@ -0,0 +1,63 @@
<?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;
class GoogleWorkspaceAccount extends \Google\Collection
{
protected $collection_key = 'preProvisioningTokens';
/**
* @var string
*/
public $customerId;
/**
* @var string[]
*/
public $preProvisioningTokens;
/**
* @param string
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* @param string[]
*/
public function setPreProvisioningTokens($preProvisioningTokens)
{
$this->preProvisioningTokens = $preProvisioningTokens;
}
/**
* @return string[]
*/
public function getPreProvisioningTokens()
{
return $this->preProvisioningTokens;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleWorkspaceAccount::class, 'Google_Service_AndroidProvisioningPartner_GoogleWorkspaceAccount');

View File

@@ -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;
class ListCustomersResponse extends \Google\Collection
{
protected $collection_key = 'customers';
protected $customersType = Company::class;
protected $customersDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param Company[]
*/
public function setCustomers($customers)
{
$this->customers = $customers;
}
/**
* @return Company[]
*/
public function getCustomers()
{
return $this->customers;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCustomersResponse::class, 'Google_Service_AndroidProvisioningPartner_ListCustomersResponse');

View File

@@ -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;
class ListVendorCustomersResponse extends \Google\Collection
{
protected $collection_key = 'customers';
protected $customersType = Company::class;
protected $customersDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param Company[]
*/
public function setCustomers($customers)
{
$this->customers = $customers;
}
/**
* @return Company[]
*/
public function getCustomers()
{
return $this->customers;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVendorCustomersResponse::class, 'Google_Service_AndroidProvisioningPartner_ListVendorCustomersResponse');

View File

@@ -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;
class ListVendorsResponse extends \Google\Collection
{
protected $collection_key = 'vendors';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
protected $vendorsType = Company::class;
protected $vendorsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
/**
* @param Company[]
*/
public function setVendors($vendors)
{
$this->vendors = $vendors;
}
/**
* @return Company[]
*/
public function getVendors()
{
return $this->vendors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVendorsResponse::class, 'Google_Service_AndroidProvisioningPartner_ListVendorsResponse');

View File

@@ -0,0 +1,114 @@
<?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;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_AndroidProvisioningPartner_Operation');

View File

@@ -0,0 +1,90 @@
<?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;
class OperationPerDevice extends \Google\Model
{
protected $claimType = PartnerClaim::class;
protected $claimDataType = '';
protected $resultType = PerDeviceStatusInBatch::class;
protected $resultDataType = '';
protected $unclaimType = PartnerUnclaim::class;
protected $unclaimDataType = '';
protected $updateMetadataType = UpdateMetadataArguments::class;
protected $updateMetadataDataType = '';
/**
* @param PartnerClaim
*/
public function setClaim(PartnerClaim $claim)
{
$this->claim = $claim;
}
/**
* @return PartnerClaim
*/
public function getClaim()
{
return $this->claim;
}
/**
* @param PerDeviceStatusInBatch
*/
public function setResult(PerDeviceStatusInBatch $result)
{
$this->result = $result;
}
/**
* @return PerDeviceStatusInBatch
*/
public function getResult()
{
return $this->result;
}
/**
* @param PartnerUnclaim
*/
public function setUnclaim(PartnerUnclaim $unclaim)
{
$this->unclaim = $unclaim;
}
/**
* @return PartnerUnclaim
*/
public function getUnclaim()
{
return $this->unclaim;
}
/**
* @param UpdateMetadataArguments
*/
public function setUpdateMetadata(UpdateMetadataArguments $updateMetadata)
{
$this->updateMetadata = $updateMetadata;
}
/**
* @return UpdateMetadataArguments
*/
public function getUpdateMetadata()
{
return $this->updateMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationPerDevice::class, 'Google_Service_AndroidProvisioningPartner_OperationPerDevice');

View File

@@ -0,0 +1,166 @@
<?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;
class PartnerClaim extends \Google\Model
{
/**
* @var string
*/
public $configurationId;
/**
* @var string
*/
public $customerId;
protected $deviceIdentifierType = DeviceIdentifier::class;
protected $deviceIdentifierDataType = '';
protected $deviceMetadataType = DeviceMetadata::class;
protected $deviceMetadataDataType = '';
/**
* @var string
*/
public $googleWorkspaceCustomerId;
/**
* @var string
*/
public $preProvisioningToken;
/**
* @var string
*/
public $sectionType;
/**
* @var string
*/
public $simlockProfileId;
/**
* @param string
*/
public function setConfigurationId($configurationId)
{
$this->configurationId = $configurationId;
}
/**
* @return string
*/
public function getConfigurationId()
{
return $this->configurationId;
}
/**
* @param string
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* @param DeviceIdentifier
*/
public function setDeviceIdentifier(DeviceIdentifier $deviceIdentifier)
{
$this->deviceIdentifier = $deviceIdentifier;
}
/**
* @return DeviceIdentifier
*/
public function getDeviceIdentifier()
{
return $this->deviceIdentifier;
}
/**
* @param DeviceMetadata
*/
public function setDeviceMetadata(DeviceMetadata $deviceMetadata)
{
$this->deviceMetadata = $deviceMetadata;
}
/**
* @return DeviceMetadata
*/
public function getDeviceMetadata()
{
return $this->deviceMetadata;
}
/**
* @param string
*/
public function setGoogleWorkspaceCustomerId($googleWorkspaceCustomerId)
{
$this->googleWorkspaceCustomerId = $googleWorkspaceCustomerId;
}
/**
* @return string
*/
public function getGoogleWorkspaceCustomerId()
{
return $this->googleWorkspaceCustomerId;
}
/**
* @param string
*/
public function setPreProvisioningToken($preProvisioningToken)
{
$this->preProvisioningToken = $preProvisioningToken;
}
/**
* @return string
*/
public function getPreProvisioningToken()
{
return $this->preProvisioningToken;
}
/**
* @param string
*/
public function setSectionType($sectionType)
{
$this->sectionType = $sectionType;
}
/**
* @return string
*/
public function getSectionType()
{
return $this->sectionType;
}
/**
* @param string
*/
public function setSimlockProfileId($simlockProfileId)
{
$this->simlockProfileId = $simlockProfileId;
}
/**
* @return string
*/
public function getSimlockProfileId()
{
return $this->simlockProfileId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnerClaim::class, 'Google_Service_AndroidProvisioningPartner_PartnerClaim');

View File

@@ -0,0 +1,114 @@
<?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;
class PartnerUnclaim extends \Google\Model
{
/**
* @var string
*/
public $deviceId;
protected $deviceIdentifierType = DeviceIdentifier::class;
protected $deviceIdentifierDataType = '';
/**
* @var string
*/
public $sectionType;
/**
* @var int
*/
public $vacationModeDays;
/**
* @var string
*/
public $vacationModeExpireTime;
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* @param DeviceIdentifier
*/
public function setDeviceIdentifier(DeviceIdentifier $deviceIdentifier)
{
$this->deviceIdentifier = $deviceIdentifier;
}
/**
* @return DeviceIdentifier
*/
public function getDeviceIdentifier()
{
return $this->deviceIdentifier;
}
/**
* @param string
*/
public function setSectionType($sectionType)
{
$this->sectionType = $sectionType;
}
/**
* @return string
*/
public function getSectionType()
{
return $this->sectionType;
}
/**
* @param int
*/
public function setVacationModeDays($vacationModeDays)
{
$this->vacationModeDays = $vacationModeDays;
}
/**
* @return int
*/
public function getVacationModeDays()
{
return $this->vacationModeDays;
}
/**
* @param string
*/
public function setVacationModeExpireTime($vacationModeExpireTime)
{
$this->vacationModeExpireTime = $vacationModeExpireTime;
}
/**
* @return string
*/
public function getVacationModeExpireTime()
{
return $this->vacationModeExpireTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartnerUnclaim::class, 'Google_Service_AndroidProvisioningPartner_PartnerUnclaim');

View File

@@ -0,0 +1,98 @@
<?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;
class PerDeviceStatusInBatch extends \Google\Model
{
/**
* @var string
*/
public $deviceId;
/**
* @var string
*/
public $errorIdentifier;
/**
* @var string
*/
public $errorMessage;
/**
* @var string
*/
public $status;
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* @param string
*/
public function setErrorIdentifier($errorIdentifier)
{
$this->errorIdentifier = $errorIdentifier;
}
/**
* @return string
*/
public function getErrorIdentifier()
{
return $this->errorIdentifier;
}
/**
* @param string
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PerDeviceStatusInBatch::class, 'Google_Service_AndroidProvisioningPartner_PerDeviceStatusInBatch');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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 [Longrunning 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 [Longrunning 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 [Longrunning 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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -0,0 +1,81 @@
<?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;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_AndroidProvisioningPartner_Status');

View File

@@ -0,0 +1,114 @@
<?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;
class UnclaimDeviceRequest extends \Google\Model
{
/**
* @var string
*/
public $deviceId;
protected $deviceIdentifierType = DeviceIdentifier::class;
protected $deviceIdentifierDataType = '';
/**
* @var string
*/
public $sectionType;
/**
* @var int
*/
public $vacationModeDays;
/**
* @var string
*/
public $vacationModeExpireTime;
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* @param DeviceIdentifier
*/
public function setDeviceIdentifier(DeviceIdentifier $deviceIdentifier)
{
$this->deviceIdentifier = $deviceIdentifier;
}
/**
* @return DeviceIdentifier
*/
public function getDeviceIdentifier()
{
return $this->deviceIdentifier;
}
/**
* @param string
*/
public function setSectionType($sectionType)
{
$this->sectionType = $sectionType;
}
/**
* @return string
*/
public function getSectionType()
{
return $this->sectionType;
}
/**
* @param int
*/
public function setVacationModeDays($vacationModeDays)
{
$this->vacationModeDays = $vacationModeDays;
}
/**
* @return int
*/
public function getVacationModeDays()
{
return $this->vacationModeDays;
}
/**
* @param string
*/
public function setVacationModeExpireTime($vacationModeExpireTime)
{
$this->vacationModeExpireTime = $vacationModeExpireTime;
}
/**
* @return string
*/
public function getVacationModeExpireTime()
{
return $this->vacationModeExpireTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnclaimDeviceRequest::class, 'Google_Service_AndroidProvisioningPartner_UnclaimDeviceRequest');

View File

@@ -0,0 +1,43 @@
<?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;
class UnclaimDevicesRequest extends \Google\Collection
{
protected $collection_key = 'unclaims';
protected $unclaimsType = PartnerUnclaim::class;
protected $unclaimsDataType = 'array';
/**
* @param PartnerUnclaim[]
*/
public function setUnclaims($unclaims)
{
$this->unclaims = $unclaims;
}
/**
* @return PartnerUnclaim[]
*/
public function getUnclaims()
{
return $this->unclaims;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnclaimDevicesRequest::class, 'Google_Service_AndroidProvisioningPartner_UnclaimDevicesRequest');

View File

@@ -0,0 +1,43 @@
<?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;
class UpdateDeviceMetadataInBatchRequest extends \Google\Collection
{
protected $collection_key = 'updates';
protected $updatesType = UpdateMetadataArguments::class;
protected $updatesDataType = 'array';
/**
* @param UpdateMetadataArguments[]
*/
public function setUpdates($updates)
{
$this->updates = $updates;
}
/**
* @return UpdateMetadataArguments[]
*/
public function getUpdates()
{
return $this->updates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateDeviceMetadataInBatchRequest::class, 'Google_Service_AndroidProvisioningPartner_UpdateDeviceMetadataInBatchRequest');

View File

@@ -0,0 +1,42 @@
<?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;
class UpdateDeviceMetadataRequest extends \Google\Model
{
protected $deviceMetadataType = DeviceMetadata::class;
protected $deviceMetadataDataType = '';
/**
* @param DeviceMetadata
*/
public function setDeviceMetadata(DeviceMetadata $deviceMetadata)
{
$this->deviceMetadata = $deviceMetadata;
}
/**
* @return DeviceMetadata
*/
public function getDeviceMetadata()
{
return $this->deviceMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateDeviceMetadataRequest::class, 'Google_Service_AndroidProvisioningPartner_UpdateDeviceMetadataRequest');

View File

@@ -0,0 +1,76 @@
<?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;
class UpdateMetadataArguments extends \Google\Model
{
/**
* @var string
*/
public $deviceId;
protected $deviceIdentifierType = DeviceIdentifier::class;
protected $deviceIdentifierDataType = '';
protected $deviceMetadataType = DeviceMetadata::class;
protected $deviceMetadataDataType = '';
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* @param DeviceIdentifier
*/
public function setDeviceIdentifier(DeviceIdentifier $deviceIdentifier)
{
$this->deviceIdentifier = $deviceIdentifier;
}
/**
* @return DeviceIdentifier
*/
public function getDeviceIdentifier()
{
return $this->deviceIdentifier;
}
/**
* @param DeviceMetadata
*/
public function setDeviceMetadata(DeviceMetadata $deviceMetadata)
{
$this->deviceMetadata = $deviceMetadata;
}
/**
* @return DeviceMetadata
*/
public function getDeviceMetadata()
{
return $this->deviceMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateMetadataArguments::class, 'Google_Service_AndroidProvisioningPartner_UpdateMetadataArguments');