Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?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\AndroidEnterprise;
class Administrator extends \Google\Model
{
/**
* The admin's email address.
*
* @var string
*/
public $email;
/**
* The admin's email address.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Administrator::class, 'Google_Service_AndroidEnterprise_Administrator');

View File

@@ -0,0 +1,48 @@
<?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\AndroidEnterprise;
class AdministratorWebToken extends \Google\Model
{
/**
* An opaque token to be passed to the Play front-end to generate an iframe.
*
* @var string
*/
public $token;
/**
* An opaque token to be passed to the Play front-end to generate an iframe.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdministratorWebToken::class, 'Google_Service_AndroidEnterprise_AdministratorWebToken');

View File

@@ -0,0 +1,183 @@
<?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\AndroidEnterprise;
class AdministratorWebTokenSpec extends \Google\Collection
{
protected $collection_key = 'permission';
protected $managedConfigurationsType = AdministratorWebTokenSpecManagedConfigurations::class;
protected $managedConfigurationsDataType = '';
/**
* The URI of the parent frame hosting the iframe. To prevent XSS, the iframe
* may not be hosted at other URIs. This URI must be https. Use whitespaces to
* separate multiple parent URIs.
*
* @var string
*/
public $parent;
/**
* Deprecated. Use PlaySearch.approveApps.
*
* @var string[]
*/
public $permission;
protected $playSearchType = AdministratorWebTokenSpecPlaySearch::class;
protected $playSearchDataType = '';
protected $privateAppsType = AdministratorWebTokenSpecPrivateApps::class;
protected $privateAppsDataType = '';
protected $storeBuilderType = AdministratorWebTokenSpecStoreBuilder::class;
protected $storeBuilderDataType = '';
protected $webAppsType = AdministratorWebTokenSpecWebApps::class;
protected $webAppsDataType = '';
protected $zeroTouchType = AdministratorWebTokenSpecZeroTouch::class;
protected $zeroTouchDataType = '';
/**
* Options for displaying the Managed Configuration page.
*
* @param AdministratorWebTokenSpecManagedConfigurations $managedConfigurations
*/
public function setManagedConfigurations(AdministratorWebTokenSpecManagedConfigurations $managedConfigurations)
{
$this->managedConfigurations = $managedConfigurations;
}
/**
* @return AdministratorWebTokenSpecManagedConfigurations
*/
public function getManagedConfigurations()
{
return $this->managedConfigurations;
}
/**
* The URI of the parent frame hosting the iframe. To prevent XSS, the iframe
* may not be hosted at other URIs. This URI must be https. Use whitespaces to
* separate multiple parent URIs.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Deprecated. Use PlaySearch.approveApps.
*
* @param string[] $permission
*/
public function setPermission($permission)
{
$this->permission = $permission;
}
/**
* @return string[]
*/
public function getPermission()
{
return $this->permission;
}
/**
* Options for displaying the managed Play Search apps page.
*
* @param AdministratorWebTokenSpecPlaySearch $playSearch
*/
public function setPlaySearch(AdministratorWebTokenSpecPlaySearch $playSearch)
{
$this->playSearch = $playSearch;
}
/**
* @return AdministratorWebTokenSpecPlaySearch
*/
public function getPlaySearch()
{
return $this->playSearch;
}
/**
* Options for displaying the Private Apps page.
*
* @param AdministratorWebTokenSpecPrivateApps $privateApps
*/
public function setPrivateApps(AdministratorWebTokenSpecPrivateApps $privateApps)
{
$this->privateApps = $privateApps;
}
/**
* @return AdministratorWebTokenSpecPrivateApps
*/
public function getPrivateApps()
{
return $this->privateApps;
}
/**
* Options for displaying the Organize apps page.
*
* @param AdministratorWebTokenSpecStoreBuilder $storeBuilder
*/
public function setStoreBuilder(AdministratorWebTokenSpecStoreBuilder $storeBuilder)
{
$this->storeBuilder = $storeBuilder;
}
/**
* @return AdministratorWebTokenSpecStoreBuilder
*/
public function getStoreBuilder()
{
return $this->storeBuilder;
}
/**
* Options for displaying the Web Apps page.
*
* @param AdministratorWebTokenSpecWebApps $webApps
*/
public function setWebApps(AdministratorWebTokenSpecWebApps $webApps)
{
$this->webApps = $webApps;
}
/**
* @return AdministratorWebTokenSpecWebApps
*/
public function getWebApps()
{
return $this->webApps;
}
/**
* Options for displaying the Zero Touch page.
*
* @param AdministratorWebTokenSpecZeroTouch $zeroTouch
*/
public function setZeroTouch(AdministratorWebTokenSpecZeroTouch $zeroTouch)
{
$this->zeroTouch = $zeroTouch;
}
/**
* @return AdministratorWebTokenSpecZeroTouch
*/
public function getZeroTouch()
{
return $this->zeroTouch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdministratorWebTokenSpec::class, 'Google_Service_AndroidEnterprise_AdministratorWebTokenSpec');

View File

@@ -0,0 +1,48 @@
<?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\AndroidEnterprise;
class AdministratorWebTokenSpecManagedConfigurations extends \Google\Model
{
/**
* Whether the Managed Configuration page is displayed. Default is true.
*
* @var bool
*/
public $enabled;
/**
* Whether the Managed Configuration page is displayed. Default is true.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdministratorWebTokenSpecManagedConfigurations::class, 'Google_Service_AndroidEnterprise_AdministratorWebTokenSpecManagedConfigurations');

View File

@@ -0,0 +1,70 @@
<?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\AndroidEnterprise;
class AdministratorWebTokenSpecPlaySearch extends \Google\Model
{
/**
* Allow access to the iframe in approve mode. Default is false.
*
* @var bool
*/
public $approveApps;
/**
* Whether the managed Play Search apps page is displayed. Default is true.
*
* @var bool
*/
public $enabled;
/**
* Allow access to the iframe in approve mode. Default is false.
*
* @param bool $approveApps
*/
public function setApproveApps($approveApps)
{
$this->approveApps = $approveApps;
}
/**
* @return bool
*/
public function getApproveApps()
{
return $this->approveApps;
}
/**
* Whether the managed Play Search apps page is displayed. Default is true.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdministratorWebTokenSpecPlaySearch::class, 'Google_Service_AndroidEnterprise_AdministratorWebTokenSpecPlaySearch');

View File

@@ -0,0 +1,48 @@
<?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\AndroidEnterprise;
class AdministratorWebTokenSpecPrivateApps extends \Google\Model
{
/**
* Whether the Private Apps page is displayed. Default is true.
*
* @var bool
*/
public $enabled;
/**
* Whether the Private Apps page is displayed. Default is true.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdministratorWebTokenSpecPrivateApps::class, 'Google_Service_AndroidEnterprise_AdministratorWebTokenSpecPrivateApps');

View File

@@ -0,0 +1,48 @@
<?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\AndroidEnterprise;
class AdministratorWebTokenSpecStoreBuilder extends \Google\Model
{
/**
* Whether the Organize apps page is displayed. Default is true.
*
* @var bool
*/
public $enabled;
/**
* Whether the Organize apps page is displayed. Default is true.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdministratorWebTokenSpecStoreBuilder::class, 'Google_Service_AndroidEnterprise_AdministratorWebTokenSpecStoreBuilder');

View File

@@ -0,0 +1,48 @@
<?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\AndroidEnterprise;
class AdministratorWebTokenSpecWebApps extends \Google\Model
{
/**
* Whether the Web Apps page is displayed. Default is true.
*
* @var bool
*/
public $enabled;
/**
* Whether the Web Apps page is displayed. Default is true.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdministratorWebTokenSpecWebApps::class, 'Google_Service_AndroidEnterprise_AdministratorWebTokenSpecWebApps');

View File

@@ -0,0 +1,50 @@
<?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\AndroidEnterprise;
class AdministratorWebTokenSpecZeroTouch extends \Google\Model
{
/**
* Whether zero-touch embedded UI is usable with this token. If enabled, the
* admin can link zero-touch customers to this enterprise.
*
* @var bool
*/
public $enabled;
/**
* Whether zero-touch embedded UI is usable with this token. If enabled, the
* admin can link zero-touch customers to this enterprise.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdministratorWebTokenSpecZeroTouch::class, 'Google_Service_AndroidEnterprise_AdministratorWebTokenSpecZeroTouch');

View File

@@ -0,0 +1,67 @@
<?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\AndroidEnterprise;
class AppRestrictionsSchema extends \Google\Collection
{
protected $collection_key = 'restrictions';
/**
* Deprecated.
*
* @var string
*/
public $kind;
protected $restrictionsType = AppRestrictionsSchemaRestriction::class;
protected $restrictionsDataType = 'array';
/**
* Deprecated.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The set of restrictions that make up this schema.
*
* @param AppRestrictionsSchemaRestriction[] $restrictions
*/
public function setRestrictions($restrictions)
{
$this->restrictions = $restrictions;
}
/**
* @return AppRestrictionsSchemaRestriction[]
*/
public function getRestrictions()
{
return $this->restrictions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppRestrictionsSchema::class, 'Google_Service_AndroidEnterprise_AppRestrictionsSchema');

View File

@@ -0,0 +1,50 @@
<?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\AndroidEnterprise;
class AppRestrictionsSchemaChangeEvent extends \Google\Model
{
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the app
* restriction schema changed. This field will always be present.
*
* @var string
*/
public $productId;
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the app
* restriction schema changed. This field will always be present.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppRestrictionsSchemaChangeEvent::class, 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaChangeEvent');

View File

@@ -0,0 +1,246 @@
<?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\AndroidEnterprise;
class AppRestrictionsSchemaRestriction extends \Google\Collection
{
/**
* A restriction of boolean type.
*/
public const RESTRICTION_TYPE_bool = 'bool';
/**
* A restriction of string type.
*/
public const RESTRICTION_TYPE_string = 'string';
/**
* A restriction of integer type.
*/
public const RESTRICTION_TYPE_integer = 'integer';
/**
* A choice of one item from a set.
*/
public const RESTRICTION_TYPE_choice = 'choice';
/**
* A choice of multiple items from a set.
*/
public const RESTRICTION_TYPE_multiselect = 'multiselect';
/**
* A hidden restriction of string type (the default value can be used to pass
* along information that cannot be modified, such as a version code).
*/
public const RESTRICTION_TYPE_hidden = 'hidden';
/**
* [M+ devices only] A bundle of restrictions
*/
public const RESTRICTION_TYPE_bundle = 'bundle';
/**
* [M+ devices only] An array of restriction bundles
*/
public const RESTRICTION_TYPE_bundleArray = 'bundleArray';
protected $collection_key = 'nestedRestriction';
protected $defaultValueType = AppRestrictionsSchemaRestrictionRestrictionValue::class;
protected $defaultValueDataType = '';
/**
* A longer description of the restriction, giving more detail of what it
* affects.
*
* @var string
*/
public $description;
/**
* For choice or multiselect restrictions, the list of possible entries'
* human-readable names.
*
* @var string[]
*/
public $entry;
/**
* For choice or multiselect restrictions, the list of possible entries'
* machine-readable values. These values should be used in the configuration,
* either as a single string value for a choice restriction or in a
* stringArray for a multiselect restriction.
*
* @var string[]
*/
public $entryValue;
/**
* The unique key that the product uses to identify the restriction, e.g.
* "com.google.android.gm.fieldname".
*
* @var string
*/
public $key;
protected $nestedRestrictionType = AppRestrictionsSchemaRestriction::class;
protected $nestedRestrictionDataType = 'array';
/**
* The type of the restriction.
*
* @var string
*/
public $restrictionType;
/**
* The name of the restriction.
*
* @var string
*/
public $title;
/**
* The default value of the restriction. bundle and bundleArray restrictions
* never have a default value.
*
* @param AppRestrictionsSchemaRestrictionRestrictionValue $defaultValue
*/
public function setDefaultValue(AppRestrictionsSchemaRestrictionRestrictionValue $defaultValue)
{
$this->defaultValue = $defaultValue;
}
/**
* @return AppRestrictionsSchemaRestrictionRestrictionValue
*/
public function getDefaultValue()
{
return $this->defaultValue;
}
/**
* A longer description of the restriction, giving more detail of what it
* affects.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* For choice or multiselect restrictions, the list of possible entries'
* human-readable names.
*
* @param string[] $entry
*/
public function setEntry($entry)
{
$this->entry = $entry;
}
/**
* @return string[]
*/
public function getEntry()
{
return $this->entry;
}
/**
* For choice or multiselect restrictions, the list of possible entries'
* machine-readable values. These values should be used in the configuration,
* either as a single string value for a choice restriction or in a
* stringArray for a multiselect restriction.
*
* @param string[] $entryValue
*/
public function setEntryValue($entryValue)
{
$this->entryValue = $entryValue;
}
/**
* @return string[]
*/
public function getEntryValue()
{
return $this->entryValue;
}
/**
* The unique key that the product uses to identify the restriction, e.g.
* "com.google.android.gm.fieldname".
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* For bundle or bundleArray restrictions, the list of nested restrictions. A
* bundle restriction is always nested within a bundleArray restriction, and a
* bundleArray restriction is at most two levels deep.
*
* @param AppRestrictionsSchemaRestriction[] $nestedRestriction
*/
public function setNestedRestriction($nestedRestriction)
{
$this->nestedRestriction = $nestedRestriction;
}
/**
* @return AppRestrictionsSchemaRestriction[]
*/
public function getNestedRestriction()
{
return $this->nestedRestriction;
}
/**
* The type of the restriction.
*
* Accepted values: bool, string, integer, choice, multiselect, hidden,
* bundle, bundleArray
*
* @param self::RESTRICTION_TYPE_* $restrictionType
*/
public function setRestrictionType($restrictionType)
{
$this->restrictionType = $restrictionType;
}
/**
* @return self::RESTRICTION_TYPE_*
*/
public function getRestrictionType()
{
return $this->restrictionType;
}
/**
* The name of the restriction.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppRestrictionsSchemaRestriction::class, 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction');

View File

@@ -0,0 +1,177 @@
<?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\AndroidEnterprise;
class AppRestrictionsSchemaRestrictionRestrictionValue extends \Google\Collection
{
/**
* A restriction of boolean type.
*/
public const TYPE_bool = 'bool';
/**
* A restriction of string type.
*/
public const TYPE_string = 'string';
/**
* A restriction of integer type.
*/
public const TYPE_integer = 'integer';
/**
* A choice of one item from a set.
*/
public const TYPE_choice = 'choice';
/**
* A choice of multiple items from a set.
*/
public const TYPE_multiselect = 'multiselect';
/**
* A hidden restriction of string type (the default value can be used to pass
* along information that cannot be modified, such as a version code).
*/
public const TYPE_hidden = 'hidden';
/**
* [M+ devices only] A bundle of restrictions
*/
public const TYPE_bundle = 'bundle';
/**
* [M+ devices only] An array of restriction bundles
*/
public const TYPE_bundleArray = 'bundleArray';
protected $collection_key = 'valueMultiselect';
/**
* The type of the value being provided.
*
* @var string
*/
public $type;
/**
* The boolean value - this will only be present if type is bool.
*
* @var bool
*/
public $valueBool;
/**
* The integer value - this will only be present if type is integer.
*
* @var int
*/
public $valueInteger;
/**
* The list of string values - this will only be present if type is
* multiselect.
*
* @var string[]
*/
public $valueMultiselect;
/**
* The string value - this will be present for types string, choice and
* hidden.
*
* @var string
*/
public $valueString;
/**
* The type of the value being provided.
*
* Accepted values: bool, string, integer, choice, multiselect, hidden,
* bundle, bundleArray
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* The boolean value - this will only be present if type is bool.
*
* @param bool $valueBool
*/
public function setValueBool($valueBool)
{
$this->valueBool = $valueBool;
}
/**
* @return bool
*/
public function getValueBool()
{
return $this->valueBool;
}
/**
* The integer value - this will only be present if type is integer.
*
* @param int $valueInteger
*/
public function setValueInteger($valueInteger)
{
$this->valueInteger = $valueInteger;
}
/**
* @return int
*/
public function getValueInteger()
{
return $this->valueInteger;
}
/**
* The list of string values - this will only be present if type is
* multiselect.
*
* @param string[] $valueMultiselect
*/
public function setValueMultiselect($valueMultiselect)
{
$this->valueMultiselect = $valueMultiselect;
}
/**
* @return string[]
*/
public function getValueMultiselect()
{
return $this->valueMultiselect;
}
/**
* The string value - this will be present for types string, choice and
* hidden.
*
* @param string $valueString
*/
public function setValueString($valueString)
{
$this->valueString = $valueString;
}
/**
* @return string
*/
public function getValueString()
{
return $this->valueString;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppRestrictionsSchemaRestrictionRestrictionValue::class, 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue');

View File

@@ -0,0 +1,67 @@
<?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\AndroidEnterprise;
class AppState extends \Google\Collection
{
protected $collection_key = 'keyedAppState';
protected $keyedAppStateType = KeyedAppState::class;
protected $keyedAppStateDataType = 'array';
/**
* The package name of the app. This field will always be present.
*
* @var string
*/
public $packageName;
/**
* List of keyed app states. This field will always be present.
*
* @param KeyedAppState[] $keyedAppState
*/
public function setKeyedAppState($keyedAppState)
{
$this->keyedAppState = $keyedAppState;
}
/**
* @return KeyedAppState[]
*/
public function getKeyedAppState()
{
return $this->keyedAppState;
}
/**
* The package name of the app. This field will always be present.
*
* @param string $packageName
*/
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(AppState::class, 'Google_Service_AndroidEnterprise_AppState');

View File

@@ -0,0 +1,50 @@
<?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\AndroidEnterprise;
class AppUpdateEvent extends \Google\Model
{
/**
* The id of the product (e.g. "app:com.google.android.gm") that was updated.
* This field will always be present.
*
* @var string
*/
public $productId;
/**
* The id of the product (e.g. "app:com.google.android.gm") that was updated.
* This field will always be present.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppUpdateEvent::class, 'Google_Service_AndroidEnterprise_AppUpdateEvent');

View File

@@ -0,0 +1,177 @@
<?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\AndroidEnterprise;
class AppVersion extends \Google\Collection
{
public const TRACK_appTrackUnspecified = 'appTrackUnspecified';
public const TRACK_production = 'production';
public const TRACK_beta = 'beta';
public const TRACK_alpha = 'alpha';
protected $collection_key = 'trackId';
/**
* True if this version is a production APK.
*
* @var bool
*/
public $isProduction;
/**
* The SDK version this app targets, as specified in the manifest of the APK.
* See http://developer.android.com/guide/topics/manifest/uses-sdk-
* element.html
*
* @var int
*/
public $targetSdkVersion;
/**
* Deprecated, use trackId instead.
*
* @var string
*/
public $track;
/**
* Track ids that the app version is published in. Replaces the track field
* (deprecated), but doesn't include the production track (see isProduction
* instead).
*
* @var string[]
*/
public $trackId;
/**
* Unique increasing identifier for the app version.
*
* @var int
*/
public $versionCode;
/**
* The string used in the Play store by the app developer to identify the
* version. The string is not necessarily unique or localized (for example,
* the string could be "1.4").
*
* @var string
*/
public $versionString;
/**
* True if this version is a production APK.
*
* @param bool $isProduction
*/
public function setIsProduction($isProduction)
{
$this->isProduction = $isProduction;
}
/**
* @return bool
*/
public function getIsProduction()
{
return $this->isProduction;
}
/**
* The SDK version this app targets, as specified in the manifest of the APK.
* See http://developer.android.com/guide/topics/manifest/uses-sdk-
* element.html
*
* @param int $targetSdkVersion
*/
public function setTargetSdkVersion($targetSdkVersion)
{
$this->targetSdkVersion = $targetSdkVersion;
}
/**
* @return int
*/
public function getTargetSdkVersion()
{
return $this->targetSdkVersion;
}
/**
* Deprecated, use trackId instead.
*
* Accepted values: appTrackUnspecified, production, beta, alpha
*
* @param self::TRACK_* $track
*/
public function setTrack($track)
{
$this->track = $track;
}
/**
* @return self::TRACK_*
*/
public function getTrack()
{
return $this->track;
}
/**
* Track ids that the app version is published in. Replaces the track field
* (deprecated), but doesn't include the production track (see isProduction
* instead).
*
* @param string[] $trackId
*/
public function setTrackId($trackId)
{
$this->trackId = $trackId;
}
/**
* @return string[]
*/
public function getTrackId()
{
return $this->trackId;
}
/**
* Unique increasing identifier for the app version.
*
* @param int $versionCode
*/
public function setVersionCode($versionCode)
{
$this->versionCode = $versionCode;
}
/**
* @return int
*/
public function getVersionCode()
{
return $this->versionCode;
}
/**
* The string used in the Play store by the app developer to identify the
* version. The string is not necessarily unique or localized (for example,
* the string could be "1.4").
*
* @param string $versionString
*/
public function setVersionString($versionString)
{
$this->versionString = $versionString;
}
/**
* @return string
*/
public function getVersionString()
{
return $this->versionString;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppVersion::class, 'Google_Service_AndroidEnterprise_AppVersion');

View File

@@ -0,0 +1,50 @@
<?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\AndroidEnterprise;
class ApprovalUrlInfo extends \Google\Model
{
/**
* A URL that displays a product's permissions and that can also be used to
* approve the product with the Products.approve call.
*
* @var string
*/
public $approvalUrl;
/**
* A URL that displays a product's permissions and that can also be used to
* approve the product with the Products.approve call.
*
* @param string $approvalUrl
*/
public function setApprovalUrl($approvalUrl)
{
$this->approvalUrl = $approvalUrl;
}
/**
* @return string
*/
public function getApprovalUrl()
{
return $this->approvalUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApprovalUrlInfo::class, 'Google_Service_AndroidEnterprise_ApprovalUrlInfo');

View File

@@ -0,0 +1,52 @@
<?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\AndroidEnterprise;
class AuthenticationToken extends \Google\Model
{
/**
* The authentication token to be passed to the device policy client on the
* device where it can be used to provision the account for which this token
* was generated.
*
* @var string
*/
public $token;
/**
* The authentication token to be passed to the device policy client on the
* device where it can be used to provision the account for which this token
* was generated.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthenticationToken::class, 'Google_Service_AndroidEnterprise_AuthenticationToken');

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\AndroidEnterprise;
class AutoInstallConstraint extends \Google\Model
{
public const CHARGING_STATE_CONSTRAINT_chargingStateConstraintUnspecified = 'chargingStateConstraintUnspecified';
/**
* Device doesn't have to be charging.
*/
public const CHARGING_STATE_CONSTRAINT_chargingNotRequired = 'chargingNotRequired';
/**
* Device has to be charging.
*/
public const CHARGING_STATE_CONSTRAINT_chargingRequired = 'chargingRequired';
public const DEVICE_IDLE_STATE_CONSTRAINT_deviceIdleStateConstraintUnspecified = 'deviceIdleStateConstraintUnspecified';
/**
* Device doesn't have to be idle, app can be installed while the user is
* interacting with the device.
*/
public const DEVICE_IDLE_STATE_CONSTRAINT_deviceIdleNotRequired = 'deviceIdleNotRequired';
/**
* Device has to be idle.
*/
public const DEVICE_IDLE_STATE_CONSTRAINT_deviceIdleRequired = 'deviceIdleRequired';
public const NETWORK_TYPE_CONSTRAINT_networkTypeConstraintUnspecified = 'networkTypeConstraintUnspecified';
/**
* Any active networks (Wi-Fi, cellular, etc.).
*/
public const NETWORK_TYPE_CONSTRAINT_anyNetwork = 'anyNetwork';
/**
* Any unmetered network (e.g. Wi-FI).
*/
public const NETWORK_TYPE_CONSTRAINT_unmeteredNetwork = 'unmeteredNetwork';
/**
* Charging state constraint.
*
* @var string
*/
public $chargingStateConstraint;
/**
* Device idle state constraint.
*
* @var string
*/
public $deviceIdleStateConstraint;
/**
* Network type constraint.
*
* @var string
*/
public $networkTypeConstraint;
/**
* Charging state constraint.
*
* Accepted values: chargingStateConstraintUnspecified, chargingNotRequired,
* chargingRequired
*
* @param self::CHARGING_STATE_CONSTRAINT_* $chargingStateConstraint
*/
public function setChargingStateConstraint($chargingStateConstraint)
{
$this->chargingStateConstraint = $chargingStateConstraint;
}
/**
* @return self::CHARGING_STATE_CONSTRAINT_*
*/
public function getChargingStateConstraint()
{
return $this->chargingStateConstraint;
}
/**
* Device idle state constraint.
*
* Accepted values: deviceIdleStateConstraintUnspecified,
* deviceIdleNotRequired, deviceIdleRequired
*
* @param self::DEVICE_IDLE_STATE_CONSTRAINT_* $deviceIdleStateConstraint
*/
public function setDeviceIdleStateConstraint($deviceIdleStateConstraint)
{
$this->deviceIdleStateConstraint = $deviceIdleStateConstraint;
}
/**
* @return self::DEVICE_IDLE_STATE_CONSTRAINT_*
*/
public function getDeviceIdleStateConstraint()
{
return $this->deviceIdleStateConstraint;
}
/**
* Network type constraint.
*
* Accepted values: networkTypeConstraintUnspecified, anyNetwork,
* unmeteredNetwork
*
* @param self::NETWORK_TYPE_CONSTRAINT_* $networkTypeConstraint
*/
public function setNetworkTypeConstraint($networkTypeConstraint)
{
$this->networkTypeConstraint = $networkTypeConstraint;
}
/**
* @return self::NETWORK_TYPE_CONSTRAINT_*
*/
public function getNetworkTypeConstraint()
{
return $this->networkTypeConstraint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoInstallConstraint::class, 'Google_Service_AndroidEnterprise_AutoInstallConstraint');

View File

@@ -0,0 +1,142 @@
<?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\AndroidEnterprise;
class AutoInstallPolicy extends \Google\Collection
{
public const AUTO_INSTALL_MODE_autoInstallModeUnspecified = 'autoInstallModeUnspecified';
/**
* The product is not installed automatically, the user needs to install it
* from the Play Store.
*/
public const AUTO_INSTALL_MODE_doNotAutoInstall = 'doNotAutoInstall';
/**
* The product is automatically installed once, if the user uninstalls the
* product it will not be installed again.
*/
public const AUTO_INSTALL_MODE_autoInstallOnce = 'autoInstallOnce';
/**
* The product is automatically installed, if the user uninstalls the product
* it will be installed again. On managed devices the DPC should block
* uninstall.
*/
public const AUTO_INSTALL_MODE_forceAutoInstall = 'forceAutoInstall';
protected $collection_key = 'autoInstallConstraint';
protected $autoInstallConstraintType = AutoInstallConstraint::class;
protected $autoInstallConstraintDataType = 'array';
/**
* The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is
* automatically installed regardless of a set maintenance window.
*
* @var string
*/
public $autoInstallMode;
/**
* The priority of the install, as an unsigned integer. A lower number means
* higher priority.
*
* @var int
*/
public $autoInstallPriority;
/**
* The minimum version of the app. If a lower version of the app is installed,
* then the app will be auto-updated according to the auto-install
* constraints, instead of waiting for the regular auto-update. You can set a
* minimum version code for at most 20 apps per device.
*
* @var int
*/
public $minimumVersionCode;
/**
* The constraints for auto-installing the app. You can specify a maximum of
* one constraint.
*
* @param AutoInstallConstraint[] $autoInstallConstraint
*/
public function setAutoInstallConstraint($autoInstallConstraint)
{
$this->autoInstallConstraint = $autoInstallConstraint;
}
/**
* @return AutoInstallConstraint[]
*/
public function getAutoInstallConstraint()
{
return $this->autoInstallConstraint;
}
/**
* The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is
* automatically installed regardless of a set maintenance window.
*
* Accepted values: autoInstallModeUnspecified, doNotAutoInstall,
* autoInstallOnce, forceAutoInstall
*
* @param self::AUTO_INSTALL_MODE_* $autoInstallMode
*/
public function setAutoInstallMode($autoInstallMode)
{
$this->autoInstallMode = $autoInstallMode;
}
/**
* @return self::AUTO_INSTALL_MODE_*
*/
public function getAutoInstallMode()
{
return $this->autoInstallMode;
}
/**
* The priority of the install, as an unsigned integer. A lower number means
* higher priority.
*
* @param int $autoInstallPriority
*/
public function setAutoInstallPriority($autoInstallPriority)
{
$this->autoInstallPriority = $autoInstallPriority;
}
/**
* @return int
*/
public function getAutoInstallPriority()
{
return $this->autoInstallPriority;
}
/**
* The minimum version of the app. If a lower version of the app is installed,
* then the app will be auto-updated according to the auto-install
* constraints, instead of waiting for the regular auto-update. You can set a
* minimum version code for at most 20 apps per device.
*
* @param int $minimumVersionCode
*/
public function setMinimumVersionCode($minimumVersionCode)
{
$this->minimumVersionCode = $minimumVersionCode;
}
/**
* @return int
*/
public function getMinimumVersionCode()
{
return $this->minimumVersionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoInstallPolicy::class, 'Google_Service_AndroidEnterprise_AutoInstallPolicy');

View File

@@ -0,0 +1,67 @@
<?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\AndroidEnterprise;
class ConfigurationVariables extends \Google\Collection
{
protected $collection_key = 'variableSet';
/**
* The ID of the managed configurations settings.
*
* @var string
*/
public $mcmId;
protected $variableSetType = VariableSet::class;
protected $variableSetDataType = 'array';
/**
* The ID of the managed configurations settings.
*
* @param string $mcmId
*/
public function setMcmId($mcmId)
{
$this->mcmId = $mcmId;
}
/**
* @return string
*/
public function getMcmId()
{
return $this->mcmId;
}
/**
* The variable set that is attributed to the user.
*
* @param VariableSet[] $variableSet
*/
public function setVariableSet($variableSet)
{
$this->variableSet = $variableSet;
}
/**
* @return VariableSet[]
*/
public function getVariableSet()
{
return $this->variableSet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigurationVariables::class, 'Google_Service_AndroidEnterprise_ConfigurationVariables');

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\AndroidEnterprise;
class CreateEnrollmentTokenResponse extends \Google\Model
{
protected $enrollmentTokenType = EnrollmentToken::class;
protected $enrollmentTokenDataType = '';
/**
* @param EnrollmentToken
*/
public function setEnrollmentToken(EnrollmentToken $enrollmentToken)
{
$this->enrollmentToken = $enrollmentToken;
}
/**
* @return EnrollmentToken
*/
public function getEnrollmentToken()
{
return $this->enrollmentToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateEnrollmentTokenResponse::class, 'Google_Service_AndroidEnterprise_CreateEnrollmentTokenResponse');

View File

@@ -0,0 +1,293 @@
<?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\AndroidEnterprise;
class Device extends \Google\Model
{
public const MANAGEMENT_TYPE_managedDevice = 'managedDevice';
public const MANAGEMENT_TYPE_managedProfile = 'managedProfile';
public const MANAGEMENT_TYPE_containerApp = 'containerApp';
public const MANAGEMENT_TYPE_unmanagedProfile = 'unmanagedProfile';
/**
* The Google Play Services Android ID for the device encoded as a lowercase
* hex string. For example, "123456789abcdef0".
*
* @var string
*/
public $androidId;
/**
* The internal hardware codename of the device. This comes from
* android.os.Build.DEVICE. (field named "device" per
* logs/wireless/android/android_checkin.proto)
*
* @var string
*/
public $device;
/**
* The build fingerprint of the device if known.
*
* @var string
*/
public $latestBuildFingerprint;
/**
* The manufacturer of the device. This comes from
* android.os.Build.MANUFACTURER.
*
* @var string
*/
public $maker;
/**
* Identifies the extent to which the device is controlled by a managed Google
* Play EMM in various deployment configurations. Possible values include: -
* "managedDevice", a device that has the EMM's device policy controller (DPC)
* as the device owner. - "managedProfile", a device that has a profile
* managed by the DPC (DPC is profile owner) in addition to a separate,
* personal profile that is unavailable to the DPC. - "containerApp", no
* longer used (deprecated). - "unmanagedProfile", a device that has been
* allowed (by the domain's admin, using the Admin Console to enable the
* privilege) to use managed Google Play, but the profile is itself not owned
* by a DPC.
*
* @var string
*/
public $managementType;
/**
* The model name of the device. This comes from android.os.Build.MODEL.
*
* @var string
*/
public $model;
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* The product name of the device. This comes from android.os.Build.PRODUCT.
*
* @var string
*/
public $product;
protected $reportType = DeviceReport::class;
protected $reportDataType = '';
/**
* Retail brand for the device, if set. See android.os.Build.BRAND
*
* @var string
*/
public $retailBrand;
/**
* API compatibility version.
*
* @var int
*/
public $sdkVersion;
/**
* The Google Play Services Android ID for the device encoded as a lowercase
* hex string. For example, "123456789abcdef0".
*
* @param string $androidId
*/
public function setAndroidId($androidId)
{
$this->androidId = $androidId;
}
/**
* @return string
*/
public function getAndroidId()
{
return $this->androidId;
}
/**
* The internal hardware codename of the device. This comes from
* android.os.Build.DEVICE. (field named "device" per
* logs/wireless/android/android_checkin.proto)
*
* @param string $device
*/
public function setDevice($device)
{
$this->device = $device;
}
/**
* @return string
*/
public function getDevice()
{
return $this->device;
}
/**
* The build fingerprint of the device if known.
*
* @param string $latestBuildFingerprint
*/
public function setLatestBuildFingerprint($latestBuildFingerprint)
{
$this->latestBuildFingerprint = $latestBuildFingerprint;
}
/**
* @return string
*/
public function getLatestBuildFingerprint()
{
return $this->latestBuildFingerprint;
}
/**
* The manufacturer of the device. This comes from
* android.os.Build.MANUFACTURER.
*
* @param string $maker
*/
public function setMaker($maker)
{
$this->maker = $maker;
}
/**
* @return string
*/
public function getMaker()
{
return $this->maker;
}
/**
* Identifies the extent to which the device is controlled by a managed Google
* Play EMM in various deployment configurations. Possible values include: -
* "managedDevice", a device that has the EMM's device policy controller (DPC)
* as the device owner. - "managedProfile", a device that has a profile
* managed by the DPC (DPC is profile owner) in addition to a separate,
* personal profile that is unavailable to the DPC. - "containerApp", no
* longer used (deprecated). - "unmanagedProfile", a device that has been
* allowed (by the domain's admin, using the Admin Console to enable the
* privilege) to use managed Google Play, but the profile is itself not owned
* by a DPC.
*
* Accepted values: managedDevice, managedProfile, containerApp,
* unmanagedProfile
*
* @param self::MANAGEMENT_TYPE_* $managementType
*/
public function setManagementType($managementType)
{
$this->managementType = $managementType;
}
/**
* @return self::MANAGEMENT_TYPE_*
*/
public function getManagementType()
{
return $this->managementType;
}
/**
* The model name of the device. This comes from android.os.Build.MODEL.
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* The policy enforced on the device.
*
* @param Policy $policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* The product name of the device. This comes from android.os.Build.PRODUCT.
*
* @param string $product
*/
public function setProduct($product)
{
$this->product = $product;
}
/**
* @return string
*/
public function getProduct()
{
return $this->product;
}
/**
* The device report updated with the latest app states.
*
* @param DeviceReport $report
*/
public function setReport(DeviceReport $report)
{
$this->report = $report;
}
/**
* @return DeviceReport
*/
public function getReport()
{
return $this->report;
}
/**
* Retail brand for the device, if set. See android.os.Build.BRAND
*
* @param string $retailBrand
*/
public function setRetailBrand($retailBrand)
{
$this->retailBrand = $retailBrand;
}
/**
* @return string
*/
public function getRetailBrand()
{
return $this->retailBrand;
}
/**
* API compatibility version.
*
* @param int $sdkVersion
*/
public function setSdkVersion($sdkVersion)
{
$this->sdkVersion = $sdkVersion;
}
/**
* @return int
*/
public function getSdkVersion()
{
return $this->sdkVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Device::class, 'Google_Service_AndroidEnterprise_Device');

View File

@@ -0,0 +1,70 @@
<?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\AndroidEnterprise;
class DeviceReport extends \Google\Collection
{
protected $collection_key = 'appState';
protected $appStateType = AppState::class;
protected $appStateDataType = 'array';
/**
* The timestamp of the last report update in milliseconds since epoch. This
* field will always be present.
*
* @var string
*/
public $lastUpdatedTimestampMillis;
/**
* List of app states set by managed apps on the device. App states are
* defined by the app's developers. This field will always be present.
*
* @param AppState[] $appState
*/
public function setAppState($appState)
{
$this->appState = $appState;
}
/**
* @return AppState[]
*/
public function getAppState()
{
return $this->appState;
}
/**
* The timestamp of the last report update in milliseconds since epoch. This
* field will always be present.
*
* @param string $lastUpdatedTimestampMillis
*/
public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis)
{
$this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis;
}
/**
* @return string
*/
public function getLastUpdatedTimestampMillis()
{
return $this->lastUpdatedTimestampMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceReport::class, 'Google_Service_AndroidEnterprise_DeviceReport');

View File

@@ -0,0 +1,89 @@
<?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\AndroidEnterprise;
class DeviceReportUpdateEvent extends \Google\Model
{
/**
* The Android ID of the device. This field will always be present.
*
* @var string
*/
public $deviceId;
protected $reportType = DeviceReport::class;
protected $reportDataType = '';
/**
* The ID of the user. This field will always be present.
*
* @var string
*/
public $userId;
/**
* The Android ID of the device. This field will always be present.
*
* @param string $deviceId
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* The device report updated with the latest app states. This field will
* always be present.
*
* @param DeviceReport $report
*/
public function setReport(DeviceReport $report)
{
$this->report = $report;
}
/**
* @return DeviceReport
*/
public function getReport()
{
return $this->report;
}
/**
* The ID of the user. This field will always be present.
*
* @param string $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceReportUpdateEvent::class, 'Google_Service_AndroidEnterprise_DeviceReportUpdateEvent');

View File

@@ -0,0 +1,58 @@
<?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\AndroidEnterprise;
class DeviceState extends \Google\Model
{
public const ACCOUNT_STATE_enabled = 'enabled';
public const ACCOUNT_STATE_disabled = 'disabled';
/**
* The state of the Google account on the device. "enabled" indicates that the
* Google account on the device can be used to access Google services
* (including Google Play), while "disabled" means that it cannot. A new
* device is initially in the "disabled" state.
*
* @var string
*/
public $accountState;
/**
* The state of the Google account on the device. "enabled" indicates that the
* Google account on the device can be used to access Google services
* (including Google Play), while "disabled" means that it cannot. A new
* device is initially in the "disabled" state.
*
* Accepted values: enabled, disabled
*
* @param self::ACCOUNT_STATE_* $accountState
*/
public function setAccountState($accountState)
{
$this->accountState = $accountState;
}
/**
* @return self::ACCOUNT_STATE_*
*/
public function getAccountState()
{
return $this->accountState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceState::class, 'Google_Service_AndroidEnterprise_DeviceState');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class DevicesListResponse extends \Google\Collection
{
protected $collection_key = 'device';
protected $deviceType = Device::class;
protected $deviceDataType = 'array';
/**
* A managed device.
*
* @param Device[] $device
*/
public function setDevice($device)
{
$this->device = $device;
}
/**
* @return Device[]
*/
public function getDevice()
{
return $this->device;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DevicesListResponse::class, 'Google_Service_AndroidEnterprise_DevicesListResponse');

View File

@@ -0,0 +1,135 @@
<?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\AndroidEnterprise;
class EnrollmentToken extends \Google\Model
{
/**
* The value is unused.
*/
public const ENROLLMENT_TOKEN_TYPE_enrollmentTokenTypeUnspecified = 'enrollmentTokenTypeUnspecified';
/**
* The enrollment token is for a userless device.
*/
public const ENROLLMENT_TOKEN_TYPE_userlessDevice = 'userlessDevice';
/**
* The enrollment token is for a user device.
*/
public const ENROLLMENT_TOKEN_TYPE_userDevice = 'userDevice';
/**
* [Optional] The length of time the enrollment token is valid, ranging from 1
* minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-bu
* ffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE
* ), approximately 10,000 years. If not specified, the default duration is 1
* hour.
*
* @var string
*/
public $duration;
/**
* [Required] The type of the enrollment token.
*
* @var string
*/
public $enrollmentTokenType;
protected $googleAuthenticationOptionsType = EnrollmentTokenGoogleAuthenticationOptions::class;
protected $googleAuthenticationOptionsDataType = '';
/**
* The token value that's passed to the device and authorizes the device to
* enroll. This is a read-only field generated by the server.
*
* @var string
*/
public $token;
/**
* [Optional] The length of time the enrollment token is valid, ranging from 1
* minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-bu
* ffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE
* ), approximately 10,000 years. If not specified, the default duration is 1
* hour.
*
* @param string $duration
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* [Required] The type of the enrollment token.
*
* Accepted values: enrollmentTokenTypeUnspecified, userlessDevice, userDevice
*
* @param self::ENROLLMENT_TOKEN_TYPE_* $enrollmentTokenType
*/
public function setEnrollmentTokenType($enrollmentTokenType)
{
$this->enrollmentTokenType = $enrollmentTokenType;
}
/**
* @return self::ENROLLMENT_TOKEN_TYPE_*
*/
public function getEnrollmentTokenType()
{
return $this->enrollmentTokenType;
}
/**
* [Optional] Provides options related to Google authentication during the
* enrollment.
*
* @param EnrollmentTokenGoogleAuthenticationOptions $googleAuthenticationOptions
*/
public function setGoogleAuthenticationOptions(EnrollmentTokenGoogleAuthenticationOptions $googleAuthenticationOptions)
{
$this->googleAuthenticationOptions = $googleAuthenticationOptions;
}
/**
* @return EnrollmentTokenGoogleAuthenticationOptions
*/
public function getGoogleAuthenticationOptions()
{
return $this->googleAuthenticationOptions;
}
/**
* The token value that's passed to the device and authorizes the device to
* enroll. This is a read-only field generated by the server.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollmentToken::class, 'Google_Service_AndroidEnterprise_EnrollmentToken');

View File

@@ -0,0 +1,96 @@
<?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\AndroidEnterprise;
class EnrollmentTokenGoogleAuthenticationOptions extends \Google\Model
{
/**
* The value is unused.
*/
public const AUTHENTICATION_REQUIREMENT_authenticationRequirementUnspecified = 'authenticationRequirementUnspecified';
/**
* Google authentication is optional for the user. This means the user can
* choose to skip Google authentication during enrollment.
*/
public const AUTHENTICATION_REQUIREMENT_optional = 'optional';
/**
* Google authentication is required for the user. This means the user must
* authenticate with a Google account to proceed.
*/
public const AUTHENTICATION_REQUIREMENT_required = 'required';
/**
* [Optional] Specifies whether user should authenticate with Google during
* enrollment. This setting, if specified,`GoogleAuthenticationSettings`
* specified for the enterprise resource is ignored for devices enrolled with
* this token.
*
* @var string
*/
public $authenticationRequirement;
/**
* [Optional] Specifies the managed Google account that the user must use
* during enrollment.`AuthenticationRequirement` must be set to`REQUIRED` if
* this field is set.
*
* @var string
*/
public $requiredAccountEmail;
/**
* [Optional] Specifies whether user should authenticate with Google during
* enrollment. This setting, if specified,`GoogleAuthenticationSettings`
* specified for the enterprise resource is ignored for devices enrolled with
* this token.
*
* Accepted values: authenticationRequirementUnspecified, optional, required
*
* @param self::AUTHENTICATION_REQUIREMENT_* $authenticationRequirement
*/
public function setAuthenticationRequirement($authenticationRequirement)
{
$this->authenticationRequirement = $authenticationRequirement;
}
/**
* @return self::AUTHENTICATION_REQUIREMENT_*
*/
public function getAuthenticationRequirement()
{
return $this->authenticationRequirement;
}
/**
* [Optional] Specifies the managed Google account that the user must use
* during enrollment.`AuthenticationRequirement` must be set to`REQUIRED` if
* this field is set.
*
* @param string $requiredAccountEmail
*/
public function setRequiredAccountEmail($requiredAccountEmail)
{
$this->requiredAccountEmail = $requiredAccountEmail;
}
/**
* @return string
*/
public function getRequiredAccountEmail()
{
return $this->requiredAccountEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollmentTokenGoogleAuthenticationOptions::class, 'Google_Service_AndroidEnterprise_EnrollmentTokenGoogleAuthenticationOptions');

View File

@@ -0,0 +1,203 @@
<?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\AndroidEnterprise;
class Enterprise extends \Google\Collection
{
/**
* This value is not used.
*/
public const ENTERPRISE_TYPE_enterpriseTypeUnspecified = 'enterpriseTypeUnspecified';
/**
* The enterprise belongs to a managed Google domain.
*/
public const ENTERPRISE_TYPE_managedGoogleDomain = 'managedGoogleDomain';
/**
* The enterprise is a managed Google Play Accounts enterprise.
*/
public const ENTERPRISE_TYPE_managedGooglePlayAccountsEnterprise = 'managedGooglePlayAccountsEnterprise';
/**
* The managed Google domain type is not specified.
*/
public const MANAGED_GOOGLE_DOMAIN_TYPE_managedGoogleDomainTypeUnspecified = 'managedGoogleDomainTypeUnspecified';
/**
* The managed Google domain is an email-verified team.
*/
public const MANAGED_GOOGLE_DOMAIN_TYPE_typeTeam = 'typeTeam';
/**
* The managed Google domain is domain-verified.
*/
public const MANAGED_GOOGLE_DOMAIN_TYPE_typeDomain = 'typeDomain';
protected $collection_key = 'administrator';
protected $administratorType = Administrator::class;
protected $administratorDataType = 'array';
/**
* The type of the enterprise.
*
* @var string
*/
public $enterpriseType;
protected $googleAuthenticationSettingsType = GoogleAuthenticationSettings::class;
protected $googleAuthenticationSettingsDataType = '';
/**
* The unique ID for the enterprise.
*
* @var string
*/
public $id;
/**
* The type of managed Google domain
*
* @var string
*/
public $managedGoogleDomainType;
/**
* The name of the enterprise, for example, "Example, Inc".
*
* @var string
*/
public $name;
/**
* The enterprise's primary domain, such as "example.com".
*
* @var string
*/
public $primaryDomain;
/**
* Admins of the enterprise. This is only supported for enterprises created
* via the EMM-initiated flow.
*
* @param Administrator[] $administrator
*/
public function setAdministrator($administrator)
{
$this->administrator = $administrator;
}
/**
* @return Administrator[]
*/
public function getAdministrator()
{
return $this->administrator;
}
/**
* The type of the enterprise.
*
* Accepted values: enterpriseTypeUnspecified, managedGoogleDomain,
* managedGooglePlayAccountsEnterprise
*
* @param self::ENTERPRISE_TYPE_* $enterpriseType
*/
public function setEnterpriseType($enterpriseType)
{
$this->enterpriseType = $enterpriseType;
}
/**
* @return self::ENTERPRISE_TYPE_*
*/
public function getEnterpriseType()
{
return $this->enterpriseType;
}
/**
* Output only. Settings for Google-provided user authentication.
*
* @param GoogleAuthenticationSettings $googleAuthenticationSettings
*/
public function setGoogleAuthenticationSettings(GoogleAuthenticationSettings $googleAuthenticationSettings)
{
$this->googleAuthenticationSettings = $googleAuthenticationSettings;
}
/**
* @return GoogleAuthenticationSettings
*/
public function getGoogleAuthenticationSettings()
{
return $this->googleAuthenticationSettings;
}
/**
* The unique ID for the enterprise.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The type of managed Google domain
*
* Accepted values: managedGoogleDomainTypeUnspecified, typeTeam, typeDomain
*
* @param self::MANAGED_GOOGLE_DOMAIN_TYPE_* $managedGoogleDomainType
*/
public function setManagedGoogleDomainType($managedGoogleDomainType)
{
$this->managedGoogleDomainType = $managedGoogleDomainType;
}
/**
* @return self::MANAGED_GOOGLE_DOMAIN_TYPE_*
*/
public function getManagedGoogleDomainType()
{
return $this->managedGoogleDomainType;
}
/**
* The name of the enterprise, for example, "Example, Inc".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The enterprise's primary domain, such as "example.com".
*
* @param string $primaryDomain
*/
public function setPrimaryDomain($primaryDomain)
{
$this->primaryDomain = $primaryDomain;
}
/**
* @return string
*/
public function getPrimaryDomain()
{
return $this->primaryDomain;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Enterprise::class, 'Google_Service_AndroidEnterprise_Enterprise');

View File

@@ -0,0 +1,48 @@
<?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\AndroidEnterprise;
class EnterpriseAccount extends \Google\Model
{
/**
* The email address of the service account.
*
* @var string
*/
public $accountEmail;
/**
* The email address of the service account.
*
* @param string $accountEmail
*/
public function setAccountEmail($accountEmail)
{
$this->accountEmail = $accountEmail;
}
/**
* @return string
*/
public function getAccountEmail()
{
return $this->accountEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnterpriseAccount::class, 'Google_Service_AndroidEnterprise_EnterpriseAccount');

View File

@@ -0,0 +1,48 @@
<?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\AndroidEnterprise;
class EnterpriseAuthenticationAppLinkConfig extends \Google\Model
{
/**
* An authentication url.
*
* @var string
*/
public $uri;
/**
* An authentication url.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnterpriseAuthenticationAppLinkConfig::class, 'Google_Service_AndroidEnterprise_EnterpriseAuthenticationAppLinkConfig');

View File

@@ -0,0 +1,58 @@
<?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\AndroidEnterprise;
class EnterpriseUpgradeEvent extends \Google\Model
{
/**
* Unspecified. This value is not used.
*/
public const UPGRADE_STATE_upgradeStateUnspecified = 'upgradeStateUnspecified';
/**
* The upgrade has succeeded.
*/
public const UPGRADE_STATE_upgradeStateSucceeded = 'upgradeStateSucceeded';
/**
* The upgrade state.
*
* @var string
*/
public $upgradeState;
/**
* The upgrade state.
*
* Accepted values: upgradeStateUnspecified, upgradeStateSucceeded
*
* @param self::UPGRADE_STATE_* $upgradeState
*/
public function setUpgradeState($upgradeState)
{
$this->upgradeState = $upgradeState;
}
/**
* @return self::UPGRADE_STATE_*
*/
public function getUpgradeState()
{
return $this->upgradeState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnterpriseUpgradeEvent::class, 'Google_Service_AndroidEnterprise_EnterpriseUpgradeEvent');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class EnterprisesListResponse extends \Google\Collection
{
protected $collection_key = 'enterprise';
protected $enterpriseType = Enterprise::class;
protected $enterpriseDataType = 'array';
/**
* An enterprise.
*
* @param Enterprise[] $enterprise
*/
public function setEnterprise($enterprise)
{
$this->enterprise = $enterprise;
}
/**
* @return Enterprise[]
*/
public function getEnterprise()
{
return $this->enterprise;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnterprisesListResponse::class, 'Google_Service_AndroidEnterprise_EnterprisesListResponse');

View File

@@ -0,0 +1,72 @@
<?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\AndroidEnterprise;
class EnterprisesSendTestPushNotificationResponse extends \Google\Model
{
/**
* The message ID of the test push notification that was sent.
*
* @var string
*/
public $messageId;
/**
* The name of the Cloud Pub/Sub topic to which notifications for this
* enterprise's enrolled account will be sent.
*
* @var string
*/
public $topicName;
/**
* The message ID of the test push notification that was sent.
*
* @param string $messageId
*/
public function setMessageId($messageId)
{
$this->messageId = $messageId;
}
/**
* @return string
*/
public function getMessageId()
{
return $this->messageId;
}
/**
* The name of the Cloud Pub/Sub topic to which notifications for this
* enterprise's enrolled account will be sent.
*
* @param string $topicName
*/
public function setTopicName($topicName)
{
$this->topicName = $topicName;
}
/**
* @return string
*/
public function getTopicName()
{
return $this->topicName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnterprisesSendTestPushNotificationResponse::class, 'Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse');

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\AndroidEnterprise;
class Entitlement extends \Google\Model
{
public const REASON_free = 'free';
public const REASON_groupLicense = 'groupLicense';
public const REASON_userPurchase = 'userPurchase';
/**
* The ID of the product that the entitlement is for. For example,
* "app:com.google.android.gm".
*
* @var string
*/
public $productId;
/**
* The reason for the entitlement. For example, "free" for free apps. This
* property is temporary: it will be replaced by the acquisition kind field of
* group licenses.
*
* @var string
*/
public $reason;
/**
* The ID of the product that the entitlement is for. For example,
* "app:com.google.android.gm".
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* The reason for the entitlement. For example, "free" for free apps. This
* property is temporary: it will be replaced by the acquisition kind field of
* group licenses.
*
* Accepted values: free, groupLicense, userPurchase
*
* @param self::REASON_* $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return self::REASON_*
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entitlement::class, 'Google_Service_AndroidEnterprise_Entitlement');

View File

@@ -0,0 +1,47 @@
<?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\AndroidEnterprise;
class EntitlementsListResponse extends \Google\Collection
{
protected $collection_key = 'entitlement';
protected $entitlementType = Entitlement::class;
protected $entitlementDataType = 'array';
/**
* An entitlement of a user to a product (e.g. an app). For example, a free
* app that they have installed, or a paid app that they have been allocated a
* license to.
*
* @param Entitlement[] $entitlement
*/
public function setEntitlement($entitlement)
{
$this->entitlement = $entitlement;
}
/**
* @return Entitlement[]
*/
public function getEntitlement()
{
return $this->entitlement;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntitlementsListResponse::class, 'Google_Service_AndroidEnterprise_EntitlementsListResponse');

View File

@@ -0,0 +1,50 @@
<?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\AndroidEnterprise;
class GenerateEnterpriseUpgradeUrlResponse extends \Google\Model
{
/**
* A URL for an enterprise admin to upgrade their enterprise. The page can't
* be rendered in an iframe.
*
* @var string
*/
public $url;
/**
* A URL for an enterprise admin to upgrade their enterprise. The page can't
* be rendered in an iframe.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateEnterpriseUpgradeUrlResponse::class, 'Google_Service_AndroidEnterprise_GenerateEnterpriseUpgradeUrlResponse');

View File

@@ -0,0 +1,99 @@
<?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\AndroidEnterprise;
class GoogleAuthenticationSettings extends \Google\Model
{
/**
* This value is unused.
*/
public const DEDICATED_DEVICES_ALLOWED_dedicatedDevicesAllowedUnspecified = 'dedicatedDevicesAllowedUnspecified';
/**
* Dedicated devices are not allowed.
*/
public const DEDICATED_DEVICES_ALLOWED_disallowed = 'disallowed';
/**
* Dedicated devices are allowed.
*/
public const DEDICATED_DEVICES_ALLOWED_allowed = 'allowed';
/**
* This value is unused.
*/
public const GOOGLE_AUTHENTICATION_REQUIRED_googleAuthenticationRequiredUnspecified = 'googleAuthenticationRequiredUnspecified';
/**
* Google authentication is not required.
*/
public const GOOGLE_AUTHENTICATION_REQUIRED_notRequired = 'notRequired';
/**
* User is required to be successfully authenticated by Google.
*/
public const GOOGLE_AUTHENTICATION_REQUIRED_required = 'required';
/**
* Whether dedicated devices are allowed.
*
* @var string
*/
public $dedicatedDevicesAllowed;
/**
* Whether Google authentication is required.
*
* @var string
*/
public $googleAuthenticationRequired;
/**
* Whether dedicated devices are allowed.
*
* Accepted values: dedicatedDevicesAllowedUnspecified, disallowed, allowed
*
* @param self::DEDICATED_DEVICES_ALLOWED_* $dedicatedDevicesAllowed
*/
public function setDedicatedDevicesAllowed($dedicatedDevicesAllowed)
{
$this->dedicatedDevicesAllowed = $dedicatedDevicesAllowed;
}
/**
* @return self::DEDICATED_DEVICES_ALLOWED_*
*/
public function getDedicatedDevicesAllowed()
{
return $this->dedicatedDevicesAllowed;
}
/**
* Whether Google authentication is required.
*
* Accepted values: googleAuthenticationRequiredUnspecified, notRequired,
* required
*
* @param self::GOOGLE_AUTHENTICATION_REQUIRED_* $googleAuthenticationRequired
*/
public function setGoogleAuthenticationRequired($googleAuthenticationRequired)
{
$this->googleAuthenticationRequired = $googleAuthenticationRequired;
}
/**
* @return self::GOOGLE_AUTHENTICATION_REQUIRED_*
*/
public function getGoogleAuthenticationRequired()
{
return $this->googleAuthenticationRequired;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAuthenticationSettings::class, 'Google_Service_AndroidEnterprise_GoogleAuthenticationSettings');

View File

@@ -0,0 +1,212 @@
<?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\AndroidEnterprise;
class GroupLicense extends \Google\Model
{
public const ACQUISITION_KIND_free = 'free';
public const ACQUISITION_KIND_bulkPurchase = 'bulkPurchase';
public const APPROVAL_approved = 'approved';
public const APPROVAL_unapproved = 'unapproved';
public const PERMISSIONS_currentApproved = 'currentApproved';
public const PERMISSIONS_needsReapproval = 'needsReapproval';
public const PERMISSIONS_allCurrentAndFutureApproved = 'allCurrentAndFutureApproved';
/**
* How this group license was acquired. "bulkPurchase" means that this
* Grouplicenses resource was created because the enterprise purchased
* licenses for this product; otherwise, the value is "free" (for free
* products).
*
* @var string
*/
public $acquisitionKind;
/**
* Whether the product to which this group license relates is currently
* approved by the enterprise. Products are approved when a group license is
* first created, but this approval may be revoked by an enterprise admin via
* Google Play. Unapproved products will not be visible to end users in
* collections, and new entitlements to them should not normally be created.
*
* @var string
*/
public $approval;
/**
* The total number of provisioned licenses for this product. Returned by read
* operations, but ignored in write operations.
*
* @var int
*/
public $numProvisioned;
/**
* The number of purchased licenses (possibly in multiple purchases). If this
* field is omitted, then there is no limit on the number of licenses that can
* be provisioned (for example, if the acquisition kind is "free").
*
* @var int
*/
public $numPurchased;
/**
* The permission approval status of the product. This field is only set if
* the product is approved. Possible states are: - "currentApproved", the
* current set of permissions is approved, but additional permissions will
* require the administrator to reapprove the product (If the product was
* approved without specifying the approved permissions setting, then this is
* the default behavior.), - "needsReapproval", the product has unapproved
* permissions. No additional product licenses can be assigned until the
* product is reapproved, - "allCurrentAndFutureApproved", the current
* permissions are approved and any future permission updates will be
* automatically approved without administrator review.
*
* @var string
*/
public $permissions;
/**
* The ID of the product that the license is for. For example,
* "app:com.google.android.gm".
*
* @var string
*/
public $productId;
/**
* How this group license was acquired. "bulkPurchase" means that this
* Grouplicenses resource was created because the enterprise purchased
* licenses for this product; otherwise, the value is "free" (for free
* products).
*
* Accepted values: free, bulkPurchase
*
* @param self::ACQUISITION_KIND_* $acquisitionKind
*/
public function setAcquisitionKind($acquisitionKind)
{
$this->acquisitionKind = $acquisitionKind;
}
/**
* @return self::ACQUISITION_KIND_*
*/
public function getAcquisitionKind()
{
return $this->acquisitionKind;
}
/**
* Whether the product to which this group license relates is currently
* approved by the enterprise. Products are approved when a group license is
* first created, but this approval may be revoked by an enterprise admin via
* Google Play. Unapproved products will not be visible to end users in
* collections, and new entitlements to them should not normally be created.
*
* Accepted values: approved, unapproved
*
* @param self::APPROVAL_* $approval
*/
public function setApproval($approval)
{
$this->approval = $approval;
}
/**
* @return self::APPROVAL_*
*/
public function getApproval()
{
return $this->approval;
}
/**
* The total number of provisioned licenses for this product. Returned by read
* operations, but ignored in write operations.
*
* @param int $numProvisioned
*/
public function setNumProvisioned($numProvisioned)
{
$this->numProvisioned = $numProvisioned;
}
/**
* @return int
*/
public function getNumProvisioned()
{
return $this->numProvisioned;
}
/**
* The number of purchased licenses (possibly in multiple purchases). If this
* field is omitted, then there is no limit on the number of licenses that can
* be provisioned (for example, if the acquisition kind is "free").
*
* @param int $numPurchased
*/
public function setNumPurchased($numPurchased)
{
$this->numPurchased = $numPurchased;
}
/**
* @return int
*/
public function getNumPurchased()
{
return $this->numPurchased;
}
/**
* The permission approval status of the product. This field is only set if
* the product is approved. Possible states are: - "currentApproved", the
* current set of permissions is approved, but additional permissions will
* require the administrator to reapprove the product (If the product was
* approved without specifying the approved permissions setting, then this is
* the default behavior.), - "needsReapproval", the product has unapproved
* permissions. No additional product licenses can be assigned until the
* product is reapproved, - "allCurrentAndFutureApproved", the current
* permissions are approved and any future permission updates will be
* automatically approved without administrator review.
*
* Accepted values: currentApproved, needsReapproval,
* allCurrentAndFutureApproved
*
* @param self::PERMISSIONS_* $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return self::PERMISSIONS_*
*/
public function getPermissions()
{
return $this->permissions;
}
/**
* The ID of the product that the license is for. For example,
* "app:com.google.android.gm".
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupLicense::class, 'Google_Service_AndroidEnterprise_GroupLicense');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class GroupLicenseUsersListResponse extends \Google\Collection
{
protected $collection_key = 'user';
protected $userType = User::class;
protected $userDataType = 'array';
/**
* A user of an enterprise.
*
* @param User[] $user
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return User[]
*/
public function getUser()
{
return $this->user;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupLicenseUsersListResponse::class, 'Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class GroupLicensesListResponse extends \Google\Collection
{
protected $collection_key = 'groupLicense';
protected $groupLicenseType = GroupLicense::class;
protected $groupLicenseDataType = 'array';
/**
* A group license for a product approved for use in the enterprise.
*
* @param GroupLicense[] $groupLicense
*/
public function setGroupLicense($groupLicense)
{
$this->groupLicense = $groupLicense;
}
/**
* @return GroupLicense[]
*/
public function getGroupLicense()
{
return $this->groupLicense;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupLicensesListResponse::class, 'Google_Service_AndroidEnterprise_GroupLicensesListResponse');

View File

@@ -0,0 +1,104 @@
<?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\AndroidEnterprise;
class Install extends \Google\Model
{
public const INSTALL_STATE_installed = 'installed';
public const INSTALL_STATE_installPending = 'installPending';
/**
* Install state. The state "installPending" means that an install request has
* recently been made and download to the device is in progress. The state
* "installed" means that the app has been installed. This field is read-only.
*
* @var string
*/
public $installState;
/**
* The ID of the product that the install is for. For example,
* "app:com.google.android.gm".
*
* @var string
*/
public $productId;
/**
* The version of the installed product. Guaranteed to be set only if the
* install state is "installed".
*
* @var int
*/
public $versionCode;
/**
* Install state. The state "installPending" means that an install request has
* recently been made and download to the device is in progress. The state
* "installed" means that the app has been installed. This field is read-only.
*
* Accepted values: installed, installPending
*
* @param self::INSTALL_STATE_* $installState
*/
public function setInstallState($installState)
{
$this->installState = $installState;
}
/**
* @return self::INSTALL_STATE_*
*/
public function getInstallState()
{
return $this->installState;
}
/**
* The ID of the product that the install is for. For example,
* "app:com.google.android.gm".
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* The version of the installed product. Guaranteed to be set only if the
* install state is "installed".
*
* @param int $versionCode
*/
public function setVersionCode($versionCode)
{
$this->versionCode = $versionCode;
}
/**
* @return int
*/
public function getVersionCode()
{
return $this->versionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Install::class, 'Google_Service_AndroidEnterprise_Install');

View File

@@ -0,0 +1,150 @@
<?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\AndroidEnterprise;
class InstallFailureEvent extends \Google\Model
{
/**
* Used whenever no better reason for failure can be provided.
*/
public const FAILURE_REASON_unknown = 'unknown';
/**
* Used when the installation timed out. This can cover a number of
* situations, for example when the device did not have connectivity at any
* point during the retry period, or if the device is OOM.
*/
public const FAILURE_REASON_timeout = 'timeout';
/**
* The Android ID of the device. This field will always be present.
*
* @var string
*/
public $deviceId;
/**
* Additional details on the failure if applicable.
*
* @var string
*/
public $failureDetails;
/**
* The reason for the installation failure. This field will always be present.
*
* @var string
*/
public $failureReason;
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the
* install failure event occured. This field will always be present.
*
* @var string
*/
public $productId;
/**
* The ID of the user. This field will always be present.
*
* @var string
*/
public $userId;
/**
* The Android ID of the device. This field will always be present.
*
* @param string $deviceId
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* Additional details on the failure if applicable.
*
* @param string $failureDetails
*/
public function setFailureDetails($failureDetails)
{
$this->failureDetails = $failureDetails;
}
/**
* @return string
*/
public function getFailureDetails()
{
return $this->failureDetails;
}
/**
* The reason for the installation failure. This field will always be present.
*
* Accepted values: unknown, timeout
*
* @param self::FAILURE_REASON_* $failureReason
*/
public function setFailureReason($failureReason)
{
$this->failureReason = $failureReason;
}
/**
* @return self::FAILURE_REASON_*
*/
public function getFailureReason()
{
return $this->failureReason;
}
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the
* install failure event occured. This field will always be present.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* The ID of the user. This field will always be present.
*
* @param string $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstallFailureEvent::class, 'Google_Service_AndroidEnterprise_InstallFailureEvent');

View File

@@ -0,0 +1,46 @@
<?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\AndroidEnterprise;
class InstallsListResponse extends \Google\Collection
{
protected $collection_key = 'install';
protected $installType = Install::class;
protected $installDataType = 'array';
/**
* An installation of an app for a user on a specific device. The existence of
* an install implies that the user must have an entitlement to the app.
*
* @param Install[] $install
*/
public function setInstall($install)
{
$this->install = $install;
}
/**
* @return Install[]
*/
public function getInstall()
{
return $this->install;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstallsListResponse::class, 'Google_Service_AndroidEnterprise_InstallsListResponse');

View File

@@ -0,0 +1,157 @@
<?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\AndroidEnterprise;
class KeyedAppState extends \Google\Model
{
public const SEVERITY_severityUnknown = 'severityUnknown';
public const SEVERITY_severityInfo = 'severityInfo';
public const SEVERITY_severityError = 'severityError';
/**
* Additional field intended for machine-readable data. For example, a number
* or JSON object. To prevent XSS, we recommend removing any HTML from the
* data before displaying it.
*
* @var string
*/
public $data;
/**
* Key indicating what the app is providing a state for. The content of the
* key is set by the app's developer. To prevent XSS, we recommend removing
* any HTML from the key before displaying it. This field will always be
* present.
*
* @var string
*/
public $key;
/**
* Free-form, human-readable message describing the app state. For example, an
* error message. To prevent XSS, we recommend removing any HTML from the
* message before displaying it.
*
* @var string
*/
public $message;
/**
* Severity of the app state. This field will always be present.
*
* @var string
*/
public $severity;
/**
* Timestamp of when the app set the state in milliseconds since epoch. This
* field will always be present.
*
* @var string
*/
public $stateTimestampMillis;
/**
* Additional field intended for machine-readable data. For example, a number
* or JSON object. To prevent XSS, we recommend removing any HTML from the
* data before displaying it.
*
* @param string $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* Key indicating what the app is providing a state for. The content of the
* key is set by the app's developer. To prevent XSS, we recommend removing
* any HTML from the key before displaying it. This field will always be
* present.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Free-form, human-readable message describing the app state. For example, an
* error message. To prevent XSS, we recommend removing any HTML from the
* message before displaying it.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Severity of the app state. This field will always be present.
*
* Accepted values: severityUnknown, severityInfo, severityError
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
/**
* Timestamp of when the app set the state in milliseconds since epoch. This
* field will always be present.
*
* @param string $stateTimestampMillis
*/
public function setStateTimestampMillis($stateTimestampMillis)
{
$this->stateTimestampMillis = $stateTimestampMillis;
}
/**
* @return string
*/
public function getStateTimestampMillis()
{
return $this->stateTimestampMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KeyedAppState::class, 'Google_Service_AndroidEnterprise_KeyedAppState');

View File

@@ -0,0 +1,70 @@
<?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\AndroidEnterprise;
class LocalizedText extends \Google\Model
{
/**
* The BCP47 tag for a locale. (e.g. "en-US", "de").
*
* @var string
*/
public $locale;
/**
* The text localized in the associated locale.
*
* @var string
*/
public $text;
/**
* The BCP47 tag for a locale. (e.g. "en-US", "de").
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* The text localized in the associated locale.
*
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocalizedText::class, 'Google_Service_AndroidEnterprise_LocalizedText');

View File

@@ -0,0 +1,74 @@
<?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\AndroidEnterprise;
class MaintenanceWindow extends \Google\Model
{
/**
* Duration of the maintenance window, in milliseconds. The duration must be
* between 30 minutes and 24 hours (inclusive).
*
* @var string
*/
public $durationMs;
/**
* Start time of the maintenance window, in milliseconds after midnight on the
* device. Windows can span midnight.
*
* @var string
*/
public $startTimeAfterMidnightMs;
/**
* Duration of the maintenance window, in milliseconds. The duration must be
* between 30 minutes and 24 hours (inclusive).
*
* @param string $durationMs
*/
public function setDurationMs($durationMs)
{
$this->durationMs = $durationMs;
}
/**
* @return string
*/
public function getDurationMs()
{
return $this->durationMs;
}
/**
* Start time of the maintenance window, in milliseconds after midnight on the
* device. Windows can span midnight.
*
* @param string $startTimeAfterMidnightMs
*/
public function setStartTimeAfterMidnightMs($startTimeAfterMidnightMs)
{
$this->startTimeAfterMidnightMs = $startTimeAfterMidnightMs;
}
/**
* @return string
*/
public function getStartTimeAfterMidnightMs()
{
return $this->startTimeAfterMidnightMs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenanceWindow::class, 'Google_Service_AndroidEnterprise_MaintenanceWindow');

View File

@@ -0,0 +1,110 @@
<?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\AndroidEnterprise;
class ManagedConfiguration extends \Google\Collection
{
protected $collection_key = 'managedProperty';
protected $configurationVariablesType = ConfigurationVariables::class;
protected $configurationVariablesDataType = '';
/**
* Deprecated.
*
* @var string
*/
public $kind;
protected $managedPropertyType = ManagedProperty::class;
protected $managedPropertyDataType = 'array';
/**
* The ID of the product that the managed configuration is for, e.g.
* "app:com.google.android.gm".
*
* @var string
*/
public $productId;
/**
* Contains the ID of the managed configuration profile and the set of
* configuration variables (if any) defined for the user.
*
* @param ConfigurationVariables $configurationVariables
*/
public function setConfigurationVariables(ConfigurationVariables $configurationVariables)
{
$this->configurationVariables = $configurationVariables;
}
/**
* @return ConfigurationVariables
*/
public function getConfigurationVariables()
{
return $this->configurationVariables;
}
/**
* Deprecated.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The set of managed properties for this configuration.
*
* @param ManagedProperty[] $managedProperty
*/
public function setManagedProperty($managedProperty)
{
$this->managedProperty = $managedProperty;
}
/**
* @return ManagedProperty[]
*/
public function getManagedProperty()
{
return $this->managedProperty;
}
/**
* The ID of the product that the managed configuration is for, e.g.
* "app:com.google.android.gm".
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedConfiguration::class, 'Google_Service_AndroidEnterprise_ManagedConfiguration');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class ManagedConfigurationsForDeviceListResponse extends \Google\Collection
{
protected $collection_key = 'managedConfigurationForDevice';
protected $managedConfigurationForDeviceType = ManagedConfiguration::class;
protected $managedConfigurationForDeviceDataType = 'array';
/**
* A managed configuration for an app on a specific device.
*
* @param ManagedConfiguration[] $managedConfigurationForDevice
*/
public function setManagedConfigurationForDevice($managedConfigurationForDevice)
{
$this->managedConfigurationForDevice = $managedConfigurationForDevice;
}
/**
* @return ManagedConfiguration[]
*/
public function getManagedConfigurationForDevice()
{
return $this->managedConfigurationForDevice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedConfigurationsForDeviceListResponse::class, 'Google_Service_AndroidEnterprise_ManagedConfigurationsForDeviceListResponse');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class ManagedConfigurationsForUserListResponse extends \Google\Collection
{
protected $collection_key = 'managedConfigurationForUser';
protected $managedConfigurationForUserType = ManagedConfiguration::class;
protected $managedConfigurationForUserDataType = 'array';
/**
* A managed configuration for an app for a specific user.
*
* @param ManagedConfiguration[] $managedConfigurationForUser
*/
public function setManagedConfigurationForUser($managedConfigurationForUser)
{
$this->managedConfigurationForUser = $managedConfigurationForUser;
}
/**
* @return ManagedConfiguration[]
*/
public function getManagedConfigurationForUser()
{
return $this->managedConfigurationForUser;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedConfigurationsForUserListResponse::class, 'Google_Service_AndroidEnterprise_ManagedConfigurationsForUserListResponse');

View File

@@ -0,0 +1,94 @@
<?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\AndroidEnterprise;
class ManagedConfigurationsSettings extends \Google\Model
{
/**
* The last updated time of the managed configuration settings in milliseconds
* since 1970-01-01T00:00:00Z.
*
* @var string
*/
public $lastUpdatedTimestampMillis;
/**
* The ID of the managed configurations settings.
*
* @var string
*/
public $mcmId;
/**
* The name of the managed configurations settings.
*
* @var string
*/
public $name;
/**
* The last updated time of the managed configuration settings in milliseconds
* since 1970-01-01T00:00:00Z.
*
* @param string $lastUpdatedTimestampMillis
*/
public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis)
{
$this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis;
}
/**
* @return string
*/
public function getLastUpdatedTimestampMillis()
{
return $this->lastUpdatedTimestampMillis;
}
/**
* The ID of the managed configurations settings.
*
* @param string $mcmId
*/
public function setMcmId($mcmId)
{
$this->mcmId = $mcmId;
}
/**
* @return string
*/
public function getMcmId()
{
return $this->mcmId;
}
/**
* The name of the managed configurations settings.
*
* @param string $name
*/
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(ManagedConfigurationsSettings::class, 'Google_Service_AndroidEnterprise_ManagedConfigurationsSettings');

View File

@@ -0,0 +1,46 @@
<?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\AndroidEnterprise;
class ManagedConfigurationsSettingsListResponse extends \Google\Collection
{
protected $collection_key = 'managedConfigurationsSettings';
protected $managedConfigurationsSettingsType = ManagedConfigurationsSettings::class;
protected $managedConfigurationsSettingsDataType = 'array';
/**
* A managed configurations settings for an app that may be assigned to a
* group of users in an enterprise.
*
* @param ManagedConfigurationsSettings[] $managedConfigurationsSettings
*/
public function setManagedConfigurationsSettings($managedConfigurationsSettings)
{
$this->managedConfigurationsSettings = $managedConfigurationsSettings;
}
/**
* @return ManagedConfigurationsSettings[]
*/
public function getManagedConfigurationsSettings()
{
return $this->managedConfigurationsSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedConfigurationsSettingsListResponse::class, 'Google_Service_AndroidEnterprise_ManagedConfigurationsSettingsListResponse');

View File

@@ -0,0 +1,183 @@
<?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\AndroidEnterprise;
class ManagedProperty extends \Google\Collection
{
protected $collection_key = 'valueStringArray';
/**
* The unique key that identifies the property.
*
* @var string
*/
public $key;
/**
* The boolean value - this will only be present if type of the property is
* bool.
*
* @var bool
*/
public $valueBool;
protected $valueBundleType = ManagedPropertyBundle::class;
protected $valueBundleDataType = '';
protected $valueBundleArrayType = ManagedPropertyBundle::class;
protected $valueBundleArrayDataType = 'array';
/**
* The integer value - this will only be present if type of the property is
* integer.
*
* @var int
*/
public $valueInteger;
/**
* The string value - this will only be present if type of the property is
* string, choice or hidden.
*
* @var string
*/
public $valueString;
/**
* The list of string values - this will only be present if type of the
* property is multiselect.
*
* @var string[]
*/
public $valueStringArray;
/**
* The unique key that identifies the property.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* The boolean value - this will only be present if type of the property is
* bool.
*
* @param bool $valueBool
*/
public function setValueBool($valueBool)
{
$this->valueBool = $valueBool;
}
/**
* @return bool
*/
public function getValueBool()
{
return $this->valueBool;
}
/**
* The bundle of managed properties - this will only be present if type of the
* property is bundle.
*
* @param ManagedPropertyBundle $valueBundle
*/
public function setValueBundle(ManagedPropertyBundle $valueBundle)
{
$this->valueBundle = $valueBundle;
}
/**
* @return ManagedPropertyBundle
*/
public function getValueBundle()
{
return $this->valueBundle;
}
/**
* The list of bundles of properties - this will only be present if type of
* the property is bundle_array.
*
* @param ManagedPropertyBundle[] $valueBundleArray
*/
public function setValueBundleArray($valueBundleArray)
{
$this->valueBundleArray = $valueBundleArray;
}
/**
* @return ManagedPropertyBundle[]
*/
public function getValueBundleArray()
{
return $this->valueBundleArray;
}
/**
* The integer value - this will only be present if type of the property is
* integer.
*
* @param int $valueInteger
*/
public function setValueInteger($valueInteger)
{
$this->valueInteger = $valueInteger;
}
/**
* @return int
*/
public function getValueInteger()
{
return $this->valueInteger;
}
/**
* The string value - this will only be present if type of the property is
* string, choice or hidden.
*
* @param string $valueString
*/
public function setValueString($valueString)
{
$this->valueString = $valueString;
}
/**
* @return string
*/
public function getValueString()
{
return $this->valueString;
}
/**
* The list of string values - this will only be present if type of the
* property is multiselect.
*
* @param string[] $valueStringArray
*/
public function setValueStringArray($valueStringArray)
{
$this->valueStringArray = $valueStringArray;
}
/**
* @return string[]
*/
public function getValueStringArray()
{
return $this->valueStringArray;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedProperty::class, 'Google_Service_AndroidEnterprise_ManagedProperty');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class ManagedPropertyBundle extends \Google\Collection
{
protected $collection_key = 'managedProperty';
protected $managedPropertyType = ManagedProperty::class;
protected $managedPropertyDataType = 'array';
/**
* The list of managed properties.
*
* @param ManagedProperty[] $managedProperty
*/
public function setManagedProperty($managedProperty)
{
$this->managedProperty = $managedProperty;
}
/**
* @return ManagedProperty[]
*/
public function getManagedProperty()
{
return $this->managedProperty;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedPropertyBundle::class, 'Google_Service_AndroidEnterprise_ManagedPropertyBundle');

View File

@@ -0,0 +1,124 @@
<?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\AndroidEnterprise;
class NewDeviceEvent extends \Google\Model
{
public const MANAGEMENT_TYPE_managedDevice = 'managedDevice';
public const MANAGEMENT_TYPE_managedProfile = 'managedProfile';
/**
* The Android ID of the device. This field will always be present.
*
* @var string
*/
public $deviceId;
/**
* Policy app on the device.
*
* @var string
*/
public $dpcPackageName;
/**
* Identifies the extent to which the device is controlled by an Android EMM
* in various deployment configurations. Possible values include: -
* "managedDevice", a device where the DPC is set as device owner, -
* "managedProfile", a device where the DPC is set as profile owner.
*
* @var string
*/
public $managementType;
/**
* The ID of the user. This field will always be present.
*
* @var string
*/
public $userId;
/**
* The Android ID of the device. This field will always be present.
*
* @param string $deviceId
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* Policy app on the device.
*
* @param string $dpcPackageName
*/
public function setDpcPackageName($dpcPackageName)
{
$this->dpcPackageName = $dpcPackageName;
}
/**
* @return string
*/
public function getDpcPackageName()
{
return $this->dpcPackageName;
}
/**
* Identifies the extent to which the device is controlled by an Android EMM
* in various deployment configurations. Possible values include: -
* "managedDevice", a device where the DPC is set as device owner, -
* "managedProfile", a device where the DPC is set as profile owner.
*
* Accepted values: managedDevice, managedProfile
*
* @param self::MANAGEMENT_TYPE_* $managementType
*/
public function setManagementType($managementType)
{
$this->managementType = $managementType;
}
/**
* @return self::MANAGEMENT_TYPE_*
*/
public function getManagementType()
{
return $this->managementType;
}
/**
* The ID of the user. This field will always be present.
*
* @param string $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NewDeviceEvent::class, 'Google_Service_AndroidEnterprise_NewDeviceEvent');

View File

@@ -0,0 +1,101 @@
<?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\AndroidEnterprise;
class NewPermissionsEvent extends \Google\Collection
{
protected $collection_key = 'requestedPermissions';
/**
* The set of permissions that the enterprise admin has already approved for
* this application. Use Permissions.Get on the EMM API to retrieve details
* about these permissions.
*
* @var string[]
*/
public $approvedPermissions;
/**
* The id of the product (e.g. "app:com.google.android.gm") for which new
* permissions were added. This field will always be present.
*
* @var string
*/
public $productId;
/**
* The set of permissions that the app is currently requesting. Use
* Permissions.Get on the EMM API to retrieve details about these permissions.
*
* @var string[]
*/
public $requestedPermissions;
/**
* The set of permissions that the enterprise admin has already approved for
* this application. Use Permissions.Get on the EMM API to retrieve details
* about these permissions.
*
* @param string[] $approvedPermissions
*/
public function setApprovedPermissions($approvedPermissions)
{
$this->approvedPermissions = $approvedPermissions;
}
/**
* @return string[]
*/
public function getApprovedPermissions()
{
return $this->approvedPermissions;
}
/**
* The id of the product (e.g. "app:com.google.android.gm") for which new
* permissions were added. This field will always be present.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* The set of permissions that the app is currently requesting. Use
* Permissions.Get on the EMM API to retrieve details about these permissions.
*
* @param string[] $requestedPermissions
*/
public function setRequestedPermissions($requestedPermissions)
{
$this->requestedPermissions = $requestedPermissions;
}
/**
* @return string[]
*/
public function getRequestedPermissions()
{
return $this->requestedPermissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NewPermissionsEvent::class, 'Google_Service_AndroidEnterprise_NewPermissionsEvent');

View File

@@ -0,0 +1,303 @@
<?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\AndroidEnterprise;
class Notification extends \Google\Model
{
public const NOTIFICATION_TYPE_unknown = 'unknown';
/**
* A test push notification.
*/
public const NOTIFICATION_TYPE_testNotification = 'testNotification';
/**
* Notification about change to a product's approval status.
*/
public const NOTIFICATION_TYPE_productApproval = 'productApproval';
/**
* Notification about an app installation failure.
*/
public const NOTIFICATION_TYPE_installFailure = 'installFailure';
/**
* Notification about app update.
*/
public const NOTIFICATION_TYPE_appUpdate = 'appUpdate';
/**
* Notification about new app permissions.
*/
public const NOTIFICATION_TYPE_newPermissions = 'newPermissions';
/**
* Notification about new app restrictions schema change.
*/
public const NOTIFICATION_TYPE_appRestricionsSchemaChange = 'appRestricionsSchemaChange';
/**
* Notification about product availability change.
*/
public const NOTIFICATION_TYPE_productAvailabilityChange = 'productAvailabilityChange';
/**
* Notification about a new device.
*/
public const NOTIFICATION_TYPE_newDevice = 'newDevice';
/**
* Notification about an updated device report.
*/
public const NOTIFICATION_TYPE_deviceReportUpdate = 'deviceReportUpdate';
/**
* Notification about an enterprise upgrade.
*/
public const NOTIFICATION_TYPE_enterpriseUpgrade = 'enterpriseUpgrade';
protected $appRestrictionsSchemaChangeEventType = AppRestrictionsSchemaChangeEvent::class;
protected $appRestrictionsSchemaChangeEventDataType = '';
protected $appUpdateEventType = AppUpdateEvent::class;
protected $appUpdateEventDataType = '';
protected $deviceReportUpdateEventType = DeviceReportUpdateEvent::class;
protected $deviceReportUpdateEventDataType = '';
/**
* The ID of the enterprise for which the notification is sent. This will
* always be present.
*
* @var string
*/
public $enterpriseId;
protected $enterpriseUpgradeEventType = EnterpriseUpgradeEvent::class;
protected $enterpriseUpgradeEventDataType = '';
protected $installFailureEventType = InstallFailureEvent::class;
protected $installFailureEventDataType = '';
protected $newDeviceEventType = NewDeviceEvent::class;
protected $newDeviceEventDataType = '';
protected $newPermissionsEventType = NewPermissionsEvent::class;
protected $newPermissionsEventDataType = '';
/**
* Type of the notification.
*
* @var string
*/
public $notificationType;
protected $productApprovalEventType = ProductApprovalEvent::class;
protected $productApprovalEventDataType = '';
protected $productAvailabilityChangeEventType = ProductAvailabilityChangeEvent::class;
protected $productAvailabilityChangeEventDataType = '';
/**
* The time when the notification was published in milliseconds since
* 1970-01-01T00:00:00Z. This will always be present.
*
* @var string
*/
public $timestampMillis;
/**
* Notifications about new app restrictions schema changes.
*
* @param AppRestrictionsSchemaChangeEvent $appRestrictionsSchemaChangeEvent
*/
public function setAppRestrictionsSchemaChangeEvent(AppRestrictionsSchemaChangeEvent $appRestrictionsSchemaChangeEvent)
{
$this->appRestrictionsSchemaChangeEvent = $appRestrictionsSchemaChangeEvent;
}
/**
* @return AppRestrictionsSchemaChangeEvent
*/
public function getAppRestrictionsSchemaChangeEvent()
{
return $this->appRestrictionsSchemaChangeEvent;
}
/**
* Notifications about app updates.
*
* @param AppUpdateEvent $appUpdateEvent
*/
public function setAppUpdateEvent(AppUpdateEvent $appUpdateEvent)
{
$this->appUpdateEvent = $appUpdateEvent;
}
/**
* @return AppUpdateEvent
*/
public function getAppUpdateEvent()
{
return $this->appUpdateEvent;
}
/**
* Notifications about device report updates.
*
* @param DeviceReportUpdateEvent $deviceReportUpdateEvent
*/
public function setDeviceReportUpdateEvent(DeviceReportUpdateEvent $deviceReportUpdateEvent)
{
$this->deviceReportUpdateEvent = $deviceReportUpdateEvent;
}
/**
* @return DeviceReportUpdateEvent
*/
public function getDeviceReportUpdateEvent()
{
return $this->deviceReportUpdateEvent;
}
/**
* The ID of the enterprise for which the notification is sent. This will
* always be present.
*
* @param string $enterpriseId
*/
public function setEnterpriseId($enterpriseId)
{
$this->enterpriseId = $enterpriseId;
}
/**
* @return string
*/
public function getEnterpriseId()
{
return $this->enterpriseId;
}
/**
* Notifications about enterprise upgrade.
*
* @param EnterpriseUpgradeEvent $enterpriseUpgradeEvent
*/
public function setEnterpriseUpgradeEvent(EnterpriseUpgradeEvent $enterpriseUpgradeEvent)
{
$this->enterpriseUpgradeEvent = $enterpriseUpgradeEvent;
}
/**
* @return EnterpriseUpgradeEvent
*/
public function getEnterpriseUpgradeEvent()
{
return $this->enterpriseUpgradeEvent;
}
/**
* Notifications about an app installation failure.
*
* @param InstallFailureEvent $installFailureEvent
*/
public function setInstallFailureEvent(InstallFailureEvent $installFailureEvent)
{
$this->installFailureEvent = $installFailureEvent;
}
/**
* @return InstallFailureEvent
*/
public function getInstallFailureEvent()
{
return $this->installFailureEvent;
}
/**
* Notifications about new devices.
*
* @param NewDeviceEvent $newDeviceEvent
*/
public function setNewDeviceEvent(NewDeviceEvent $newDeviceEvent)
{
$this->newDeviceEvent = $newDeviceEvent;
}
/**
* @return NewDeviceEvent
*/
public function getNewDeviceEvent()
{
return $this->newDeviceEvent;
}
/**
* Notifications about new app permissions.
*
* @param NewPermissionsEvent $newPermissionsEvent
*/
public function setNewPermissionsEvent(NewPermissionsEvent $newPermissionsEvent)
{
$this->newPermissionsEvent = $newPermissionsEvent;
}
/**
* @return NewPermissionsEvent
*/
public function getNewPermissionsEvent()
{
return $this->newPermissionsEvent;
}
/**
* Type of the notification.
*
* Accepted values: unknown, testNotification, productApproval,
* installFailure, appUpdate, newPermissions, appRestricionsSchemaChange,
* productAvailabilityChange, newDevice, deviceReportUpdate, enterpriseUpgrade
*
* @param self::NOTIFICATION_TYPE_* $notificationType
*/
public function setNotificationType($notificationType)
{
$this->notificationType = $notificationType;
}
/**
* @return self::NOTIFICATION_TYPE_*
*/
public function getNotificationType()
{
return $this->notificationType;
}
/**
* Notifications about changes to a product's approval status.
*
* @param ProductApprovalEvent $productApprovalEvent
*/
public function setProductApprovalEvent(ProductApprovalEvent $productApprovalEvent)
{
$this->productApprovalEvent = $productApprovalEvent;
}
/**
* @return ProductApprovalEvent
*/
public function getProductApprovalEvent()
{
return $this->productApprovalEvent;
}
/**
* Notifications about product availability changes.
*
* @param ProductAvailabilityChangeEvent $productAvailabilityChangeEvent
*/
public function setProductAvailabilityChangeEvent(ProductAvailabilityChangeEvent $productAvailabilityChangeEvent)
{
$this->productAvailabilityChangeEvent = $productAvailabilityChangeEvent;
}
/**
* @return ProductAvailabilityChangeEvent
*/
public function getProductAvailabilityChangeEvent()
{
return $this->productAvailabilityChangeEvent;
}
/**
* The time when the notification was published in milliseconds since
* 1970-01-01T00:00:00Z. This will always be present.
*
* @param string $timestampMillis
*/
public function setTimestampMillis($timestampMillis)
{
$this->timestampMillis = $timestampMillis;
}
/**
* @return string
*/
public function getTimestampMillis()
{
return $this->timestampMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notification::class, 'Google_Service_AndroidEnterprise_Notification');

View File

@@ -0,0 +1,71 @@
<?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\AndroidEnterprise;
class NotificationSet extends \Google\Collection
{
protected $collection_key = 'notification';
protected $notificationType = Notification::class;
protected $notificationDataType = 'array';
/**
* The notification set ID, required to mark the notification as received with
* the Enterprises.AcknowledgeNotification API. This will be omitted if no
* notifications are present.
*
* @var string
*/
public $notificationSetId;
/**
* The notifications received, or empty if no notifications are present.
*
* @param Notification[] $notification
*/
public function setNotification($notification)
{
$this->notification = $notification;
}
/**
* @return Notification[]
*/
public function getNotification()
{
return $this->notification;
}
/**
* The notification set ID, required to mark the notification as received with
* the Enterprises.AcknowledgeNotification API. This will be omitted if no
* notifications are present.
*
* @param string $notificationSetId
*/
public function setNotificationSetId($notificationSetId)
{
$this->notificationSetId = $notificationSetId;
}
/**
* @return string
*/
public function getNotificationSetId()
{
return $this->notificationSetId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NotificationSet::class, 'Google_Service_AndroidEnterprise_NotificationSet');

View File

@@ -0,0 +1,96 @@
<?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\AndroidEnterprise;
class PageInfo extends \Google\Model
{
/**
* Maximum number of results returned in one page. ! The number of results
* included in the API response.
*
* @var int
*/
public $resultPerPage;
/**
* Index of the first result returned in the current page.
*
* @var int
*/
public $startIndex;
/**
* Total number of results available on the backend ! The total number of
* results in the result set.
*
* @var int
*/
public $totalResults;
/**
* Maximum number of results returned in one page. ! The number of results
* included in the API response.
*
* @param int $resultPerPage
*/
public function setResultPerPage($resultPerPage)
{
$this->resultPerPage = $resultPerPage;
}
/**
* @return int
*/
public function getResultPerPage()
{
return $this->resultPerPage;
}
/**
* Index of the first result returned in the current page.
*
* @param int $startIndex
*/
public function setStartIndex($startIndex)
{
$this->startIndex = $startIndex;
}
/**
* @return int
*/
public function getStartIndex()
{
return $this->startIndex;
}
/**
* Total number of results available on the backend ! The total number of
* results in the result set.
*
* @param int $totalResults
*/
public function setTotalResults($totalResults)
{
$this->totalResults = $totalResults;
}
/**
* @return int
*/
public function getTotalResults()
{
return $this->totalResults;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageInfo::class, 'Google_Service_AndroidEnterprise_PageInfo');

View File

@@ -0,0 +1,94 @@
<?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\AndroidEnterprise;
class Permission extends \Google\Model
{
/**
* A longer description of the Permissions resource, giving more details of
* what it affects.
*
* @var string
*/
public $description;
/**
* The name of the permission.
*
* @var string
*/
public $name;
/**
* An opaque string uniquely identifying the permission.
*
* @var string
*/
public $permissionId;
/**
* A longer description of the Permissions resource, giving more details of
* what it affects.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The name of the permission.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* An opaque string uniquely identifying the permission.
*
* @param string $permissionId
*/
public function setPermissionId($permissionId)
{
$this->permissionId = $permissionId;
}
/**
* @return string
*/
public function getPermissionId()
{
return $this->permissionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Permission::class, 'Google_Service_AndroidEnterprise_Permission');

View File

@@ -0,0 +1,246 @@
<?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\AndroidEnterprise;
class Policy extends \Google\Collection
{
/**
* The auto update policy is not set.
*/
public const AUTO_UPDATE_POLICY_autoUpdatePolicyUnspecified = 'autoUpdatePolicyUnspecified';
/**
* The user can control auto-updates.
*/
public const AUTO_UPDATE_POLICY_choiceToTheUser = 'choiceToTheUser';
/**
* Apps are never auto-updated.
*/
public const AUTO_UPDATE_POLICY_never = 'never';
/**
* Apps are auto-updated over WiFi only.
*/
public const AUTO_UPDATE_POLICY_wifiOnly = 'wifiOnly';
/**
* Apps are auto-updated at any time. Data charges may apply.
*/
public const AUTO_UPDATE_POLICY_always = 'always';
/**
* The device report policy is not set.
*/
public const DEVICE_REPORT_POLICY_deviceReportPolicyUnspecified = 'deviceReportPolicyUnspecified';
/**
* Device reports are disabled.
*/
public const DEVICE_REPORT_POLICY_deviceReportDisabled = 'deviceReportDisabled';
/**
* Device reports are enabled.
*/
public const DEVICE_REPORT_POLICY_deviceReportEnabled = 'deviceReportEnabled';
/**
* Unspecified, applies the user available product set by default.
*/
public const PRODUCT_AVAILABILITY_POLICY_productAvailabilityPolicyUnspecified = 'productAvailabilityPolicyUnspecified';
/**
* The approved products with product availability set to AVAILABLE in the
* product policy are available.
*/
public const PRODUCT_AVAILABILITY_POLICY_whitelist = 'whitelist';
/**
* All products are available except those explicitly marked as unavailable in
* the product availability policy.
*/
public const PRODUCT_AVAILABILITY_POLICY_all = 'all';
protected $collection_key = 'productPolicy';
/**
* Controls when automatic app updates on the device can be applied.
* Recommended alternative: autoUpdateMode which is set per app, provides
* greater flexibility around update frequency. When autoUpdateMode is set to
* AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, autoUpdatePolicy has no
* effect. - choiceToTheUser allows the device's user to configure the app
* update policy. - always enables auto updates. - never disables auto
* updates. - wifiOnly enables auto updates only when the device is connected
* to wifi. *Important:* Changes to app update policies don't affect updates
* that are in progress. Any policy changes will apply to subsequent app
* updates.
*
* @deprecated
* @var string
*/
public $autoUpdatePolicy;
/**
* Whether the device reports app states to the EMM. The default value is
* "deviceReportDisabled".
*
* @var string
*/
public $deviceReportPolicy;
protected $maintenanceWindowType = MaintenanceWindow::class;
protected $maintenanceWindowDataType = '';
/**
* An identifier for the policy that will be passed with the app install
* feedback sent from the Play Store.
*
* @var string
*/
public $policyId;
/**
* The availability granted to the device for the specified products. "all"
* gives the device access to all products, regardless of approval status.
* "all" does not enable automatic visibility of "alpha" or "beta" tracks.
* "whitelist" grants the device access the products specified in
* productPolicy[]. Only products that are approved or products that were
* previously approved (products with revoked approval) by the enterprise can
* be whitelisted. If no value is provided, the availability set at the user
* level is applied by default.
*
* @var string
*/
public $productAvailabilityPolicy;
protected $productPolicyType = ProductPolicy::class;
protected $productPolicyDataType = 'array';
/**
* Controls when automatic app updates on the device can be applied.
* Recommended alternative: autoUpdateMode which is set per app, provides
* greater flexibility around update frequency. When autoUpdateMode is set to
* AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, autoUpdatePolicy has no
* effect. - choiceToTheUser allows the device's user to configure the app
* update policy. - always enables auto updates. - never disables auto
* updates. - wifiOnly enables auto updates only when the device is connected
* to wifi. *Important:* Changes to app update policies don't affect updates
* that are in progress. Any policy changes will apply to subsequent app
* updates.
*
* Accepted values: autoUpdatePolicyUnspecified, choiceToTheUser, never,
* wifiOnly, always
*
* @deprecated
* @param self::AUTO_UPDATE_POLICY_* $autoUpdatePolicy
*/
public function setAutoUpdatePolicy($autoUpdatePolicy)
{
$this->autoUpdatePolicy = $autoUpdatePolicy;
}
/**
* @deprecated
* @return self::AUTO_UPDATE_POLICY_*
*/
public function getAutoUpdatePolicy()
{
return $this->autoUpdatePolicy;
}
/**
* Whether the device reports app states to the EMM. The default value is
* "deviceReportDisabled".
*
* Accepted values: deviceReportPolicyUnspecified, deviceReportDisabled,
* deviceReportEnabled
*
* @param self::DEVICE_REPORT_POLICY_* $deviceReportPolicy
*/
public function setDeviceReportPolicy($deviceReportPolicy)
{
$this->deviceReportPolicy = $deviceReportPolicy;
}
/**
* @return self::DEVICE_REPORT_POLICY_*
*/
public function getDeviceReportPolicy()
{
return $this->deviceReportPolicy;
}
/**
* The maintenance window defining when apps running in the foreground should
* be updated.
*
* @param MaintenanceWindow $maintenanceWindow
*/
public function setMaintenanceWindow(MaintenanceWindow $maintenanceWindow)
{
$this->maintenanceWindow = $maintenanceWindow;
}
/**
* @return MaintenanceWindow
*/
public function getMaintenanceWindow()
{
return $this->maintenanceWindow;
}
/**
* An identifier for the policy that will be passed with the app install
* feedback sent from the Play Store.
*
* @param string $policyId
*/
public function setPolicyId($policyId)
{
$this->policyId = $policyId;
}
/**
* @return string
*/
public function getPolicyId()
{
return $this->policyId;
}
/**
* The availability granted to the device for the specified products. "all"
* gives the device access to all products, regardless of approval status.
* "all" does not enable automatic visibility of "alpha" or "beta" tracks.
* "whitelist" grants the device access the products specified in
* productPolicy[]. Only products that are approved or products that were
* previously approved (products with revoked approval) by the enterprise can
* be whitelisted. If no value is provided, the availability set at the user
* level is applied by default.
*
* Accepted values: productAvailabilityPolicyUnspecified, whitelist, all
*
* @param self::PRODUCT_AVAILABILITY_POLICY_* $productAvailabilityPolicy
*/
public function setProductAvailabilityPolicy($productAvailabilityPolicy)
{
$this->productAvailabilityPolicy = $productAvailabilityPolicy;
}
/**
* @return self::PRODUCT_AVAILABILITY_POLICY_*
*/
public function getProductAvailabilityPolicy()
{
return $this->productAvailabilityPolicy;
}
/**
* The list of product policies. The productAvailabilityPolicy needs to be set
* to WHITELIST or ALL for the product policies to be applied.
*
* @param ProductPolicy[] $productPolicy
*/
public function setProductPolicy($productPolicy)
{
$this->productPolicy = $productPolicy;
}
/**
* @return ProductPolicy[]
*/
public function getProductPolicy()
{
return $this->productPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_AndroidEnterprise_Policy');

View File

@@ -0,0 +1,634 @@
<?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\AndroidEnterprise;
class Product extends \Google\Collection
{
public const CONTENT_RATING_ratingUnknown = 'ratingUnknown';
public const CONTENT_RATING_all = 'all';
public const CONTENT_RATING_preTeen = 'preTeen';
public const CONTENT_RATING_teen = 'teen';
public const CONTENT_RATING_mature = 'mature';
public const DISTRIBUTION_CHANNEL_publicGoogleHosted = 'publicGoogleHosted';
public const DISTRIBUTION_CHANNEL_privateGoogleHosted = 'privateGoogleHosted';
public const DISTRIBUTION_CHANNEL_privateSelfHosted = 'privateSelfHosted';
/**
* Unknown pricing, used to denote an approved product that is not generally
* available.
*/
public const PRODUCT_PRICING_unknown = 'unknown';
/**
* The product is free.
*/
public const PRODUCT_PRICING_free = 'free';
/**
* The product is free, but offers in-app purchases.
*/
public const PRODUCT_PRICING_freeWithInAppPurchase = 'freeWithInAppPurchase';
/**
* The product is paid.
*/
public const PRODUCT_PRICING_paid = 'paid';
protected $collection_key = 'screenshotUrls';
protected $appRestrictionsSchemaType = AppRestrictionsSchema::class;
protected $appRestrictionsSchemaDataType = '';
protected $appTracksType = TrackInfo::class;
protected $appTracksDataType = 'array';
protected $appVersionType = AppVersion::class;
protected $appVersionDataType = 'array';
/**
* The name of the author of the product (for example, the app developer).
*
* @var string
*/
public $authorName;
/**
* The countries which this app is available in.
*
* @var string[]
*/
public $availableCountries;
/**
* Deprecated, use appTracks instead.
*
* @var string[]
*/
public $availableTracks;
/**
* The app category (e.g. RACING, SOCIAL, etc.)
*
* @var string
*/
public $category;
/**
* The content rating for this app.
*
* @var string
*/
public $contentRating;
/**
* The localized promotional description, if available.
*
* @var string
*/
public $description;
/**
* A link to the (consumer) Google Play details page for the product.
*
* @var string
*/
public $detailsUrl;
/**
* How and to whom the package is made available. The value publicGoogleHosted
* means that the package is available through the Play store and not
* restricted to a specific enterprise. The value privateGoogleHosted means
* that the package is a private app (restricted to an enterprise) but hosted
* by Google. The value privateSelfHosted means that the package is a private
* app (restricted to an enterprise) and is privately hosted.
*
* @var string
*/
public $distributionChannel;
/**
* Noteworthy features (if any) of this product.
*
* @var string[]
*/
public $features;
/**
* The localized full app store description, if available.
*
* @var string
*/
public $fullDescription;
/**
* A link to an image that can be used as an icon for the product. This image
* is suitable for use at up to 512px x 512px.
*
* @var string
*/
public $iconUrl;
/**
* The approximate time (within 7 days) the app was last published, expressed
* in milliseconds since epoch.
*
* @var string
*/
public $lastUpdatedTimestampMillis;
/**
* The minimum Android SDK necessary to run the app.
*
* @var int
*/
public $minAndroidSdkVersion;
protected $permissionsType = ProductPermission::class;
protected $permissionsDataType = 'array';
/**
* A string of the form *app:*. For example, app:com.google.android.gm
* represents the Gmail app.
*
* @var string
*/
public $productId;
/**
* Whether this product is free, free with in-app purchases, or paid. If the
* pricing is unknown, this means the product is not generally available
* anymore (even though it might still be available to people who own it).
*
* @var string
*/
public $productPricing;
/**
* A description of the recent changes made to the app.
*
* @var string
*/
public $recentChanges;
/**
* Deprecated.
*
* @var bool
*/
public $requiresContainerApp;
/**
* A list of screenshot links representing the app.
*
* @var string[]
*/
public $screenshotUrls;
protected $signingCertificateType = ProductSigningCertificate::class;
protected $signingCertificateDataType = '';
/**
* A link to a smaller image that can be used as an icon for the product. This
* image is suitable for use at up to 128px x 128px.
*
* @var string
*/
public $smallIconUrl;
/**
* The name of the product.
*
* @var string
*/
public $title;
/**
* A link to the managed Google Play details page for the product, for use by
* an Enterprise admin.
*
* @var string
*/
public $workDetailsUrl;
/**
* The app restriction schema
*
* @param AppRestrictionsSchema $appRestrictionsSchema
*/
public function setAppRestrictionsSchema(AppRestrictionsSchema $appRestrictionsSchema)
{
$this->appRestrictionsSchema = $appRestrictionsSchema;
}
/**
* @return AppRestrictionsSchema
*/
public function getAppRestrictionsSchema()
{
return $this->appRestrictionsSchema;
}
/**
* The tracks visible to the enterprise.
*
* @param TrackInfo[] $appTracks
*/
public function setAppTracks($appTracks)
{
$this->appTracks = $appTracks;
}
/**
* @return TrackInfo[]
*/
public function getAppTracks()
{
return $this->appTracks;
}
/**
* App versions currently available for this product.
*
* @param AppVersion[] $appVersion
*/
public function setAppVersion($appVersion)
{
$this->appVersion = $appVersion;
}
/**
* @return AppVersion[]
*/
public function getAppVersion()
{
return $this->appVersion;
}
/**
* The name of the author of the product (for example, the app developer).
*
* @param string $authorName
*/
public function setAuthorName($authorName)
{
$this->authorName = $authorName;
}
/**
* @return string
*/
public function getAuthorName()
{
return $this->authorName;
}
/**
* The countries which this app is available in.
*
* @param string[] $availableCountries
*/
public function setAvailableCountries($availableCountries)
{
$this->availableCountries = $availableCountries;
}
/**
* @return string[]
*/
public function getAvailableCountries()
{
return $this->availableCountries;
}
/**
* Deprecated, use appTracks instead.
*
* @param string[] $availableTracks
*/
public function setAvailableTracks($availableTracks)
{
$this->availableTracks = $availableTracks;
}
/**
* @return string[]
*/
public function getAvailableTracks()
{
return $this->availableTracks;
}
/**
* The app category (e.g. RACING, SOCIAL, etc.)
*
* @param string $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* The content rating for this app.
*
* Accepted values: ratingUnknown, all, preTeen, teen, mature
*
* @param self::CONTENT_RATING_* $contentRating
*/
public function setContentRating($contentRating)
{
$this->contentRating = $contentRating;
}
/**
* @return self::CONTENT_RATING_*
*/
public function getContentRating()
{
return $this->contentRating;
}
/**
* The localized promotional description, if available.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* A link to the (consumer) Google Play details page for the product.
*
* @param string $detailsUrl
*/
public function setDetailsUrl($detailsUrl)
{
$this->detailsUrl = $detailsUrl;
}
/**
* @return string
*/
public function getDetailsUrl()
{
return $this->detailsUrl;
}
/**
* How and to whom the package is made available. The value publicGoogleHosted
* means that the package is available through the Play store and not
* restricted to a specific enterprise. The value privateGoogleHosted means
* that the package is a private app (restricted to an enterprise) but hosted
* by Google. The value privateSelfHosted means that the package is a private
* app (restricted to an enterprise) and is privately hosted.
*
* Accepted values: publicGoogleHosted, privateGoogleHosted, privateSelfHosted
*
* @param self::DISTRIBUTION_CHANNEL_* $distributionChannel
*/
public function setDistributionChannel($distributionChannel)
{
$this->distributionChannel = $distributionChannel;
}
/**
* @return self::DISTRIBUTION_CHANNEL_*
*/
public function getDistributionChannel()
{
return $this->distributionChannel;
}
/**
* Noteworthy features (if any) of this product.
*
* @param string[] $features
*/
public function setFeatures($features)
{
$this->features = $features;
}
/**
* @return string[]
*/
public function getFeatures()
{
return $this->features;
}
/**
* The localized full app store description, if available.
*
* @param string $fullDescription
*/
public function setFullDescription($fullDescription)
{
$this->fullDescription = $fullDescription;
}
/**
* @return string
*/
public function getFullDescription()
{
return $this->fullDescription;
}
/**
* A link to an image that can be used as an icon for the product. This image
* is suitable for use at up to 512px x 512px.
*
* @param string $iconUrl
*/
public function setIconUrl($iconUrl)
{
$this->iconUrl = $iconUrl;
}
/**
* @return string
*/
public function getIconUrl()
{
return $this->iconUrl;
}
/**
* The approximate time (within 7 days) the app was last published, expressed
* in milliseconds since epoch.
*
* @param string $lastUpdatedTimestampMillis
*/
public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis)
{
$this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis;
}
/**
* @return string
*/
public function getLastUpdatedTimestampMillis()
{
return $this->lastUpdatedTimestampMillis;
}
/**
* The minimum Android SDK necessary to run the app.
*
* @param int $minAndroidSdkVersion
*/
public function setMinAndroidSdkVersion($minAndroidSdkVersion)
{
$this->minAndroidSdkVersion = $minAndroidSdkVersion;
}
/**
* @return int
*/
public function getMinAndroidSdkVersion()
{
return $this->minAndroidSdkVersion;
}
/**
* A list of permissions required by the app.
*
* @param ProductPermission[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return ProductPermission[]
*/
public function getPermissions()
{
return $this->permissions;
}
/**
* A string of the form *app:*. For example, app:com.google.android.gm
* represents the Gmail app.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* Whether this product is free, free with in-app purchases, or paid. If the
* pricing is unknown, this means the product is not generally available
* anymore (even though it might still be available to people who own it).
*
* Accepted values: unknown, free, freeWithInAppPurchase, paid
*
* @param self::PRODUCT_PRICING_* $productPricing
*/
public function setProductPricing($productPricing)
{
$this->productPricing = $productPricing;
}
/**
* @return self::PRODUCT_PRICING_*
*/
public function getProductPricing()
{
return $this->productPricing;
}
/**
* A description of the recent changes made to the app.
*
* @param string $recentChanges
*/
public function setRecentChanges($recentChanges)
{
$this->recentChanges = $recentChanges;
}
/**
* @return string
*/
public function getRecentChanges()
{
return $this->recentChanges;
}
/**
* Deprecated.
*
* @param bool $requiresContainerApp
*/
public function setRequiresContainerApp($requiresContainerApp)
{
$this->requiresContainerApp = $requiresContainerApp;
}
/**
* @return bool
*/
public function getRequiresContainerApp()
{
return $this->requiresContainerApp;
}
/**
* A list of screenshot links representing the app.
*
* @param string[] $screenshotUrls
*/
public function setScreenshotUrls($screenshotUrls)
{
$this->screenshotUrls = $screenshotUrls;
}
/**
* @return string[]
*/
public function getScreenshotUrls()
{
return $this->screenshotUrls;
}
/**
* The certificate used to sign this product.
*
* @param ProductSigningCertificate $signingCertificate
*/
public function setSigningCertificate(ProductSigningCertificate $signingCertificate)
{
$this->signingCertificate = $signingCertificate;
}
/**
* @return ProductSigningCertificate
*/
public function getSigningCertificate()
{
return $this->signingCertificate;
}
/**
* A link to a smaller image that can be used as an icon for the product. This
* image is suitable for use at up to 128px x 128px.
*
* @param string $smallIconUrl
*/
public function setSmallIconUrl($smallIconUrl)
{
$this->smallIconUrl = $smallIconUrl;
}
/**
* @return string
*/
public function getSmallIconUrl()
{
return $this->smallIconUrl;
}
/**
* The name of the product.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* A link to the managed Google Play details page for the product, for use by
* an Enterprise admin.
*
* @param string $workDetailsUrl
*/
public function setWorkDetailsUrl($workDetailsUrl)
{
$this->workDetailsUrl = $workDetailsUrl;
}
/**
* @return string
*/
public function getWorkDetailsUrl()
{
return $this->workDetailsUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Product::class, 'Google_Service_AndroidEnterprise_Product');

View File

@@ -0,0 +1,88 @@
<?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\AndroidEnterprise;
class ProductApprovalEvent extends \Google\Model
{
/**
* Conveys no information.
*/
public const APPROVED_unknown = 'unknown';
/**
* The product was approved.
*/
public const APPROVED_approved = 'approved';
/**
* The product was unapproved.
*/
public const APPROVED_unapproved = 'unapproved';
/**
* Whether the product was approved or unapproved. This field will always be
* present.
*
* @var string
*/
public $approved;
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the
* approval status has changed. This field will always be present.
*
* @var string
*/
public $productId;
/**
* Whether the product was approved or unapproved. This field will always be
* present.
*
* Accepted values: unknown, approved, unapproved
*
* @param self::APPROVED_* $approved
*/
public function setApproved($approved)
{
$this->approved = $approved;
}
/**
* @return self::APPROVED_*
*/
public function getApproved()
{
return $this->approved;
}
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the
* approval status has changed. This field will always be present.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductApprovalEvent::class, 'Google_Service_AndroidEnterprise_ProductApprovalEvent');

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\AndroidEnterprise;
class ProductAvailabilityChangeEvent extends \Google\Model
{
/**
* Conveys no information.
*/
public const AVAILABILITY_STATUS_unknown = 'unknown';
/**
* The previously unavailable product is again available on Google Play.
*/
public const AVAILABILITY_STATUS_available = 'available';
/**
* The product was removed from Google Play.
*/
public const AVAILABILITY_STATUS_removed = 'removed';
/**
* The product was unpublished by the developer.
*/
public const AVAILABILITY_STATUS_unpublished = 'unpublished';
/**
* The new state of the product. This field will always be present.
*
* @var string
*/
public $availabilityStatus;
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the
* product availability changed. This field will always be present.
*
* @var string
*/
public $productId;
/**
* The new state of the product. This field will always be present.
*
* Accepted values: unknown, available, removed, unpublished
*
* @param self::AVAILABILITY_STATUS_* $availabilityStatus
*/
public function setAvailabilityStatus($availabilityStatus)
{
$this->availabilityStatus = $availabilityStatus;
}
/**
* @return self::AVAILABILITY_STATUS_*
*/
public function getAvailabilityStatus()
{
return $this->availabilityStatus;
}
/**
* The id of the product (e.g. "app:com.google.android.gm") for which the
* product availability changed. This field will always be present.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductAvailabilityChangeEvent::class, 'Google_Service_AndroidEnterprise_ProductAvailabilityChangeEvent');

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\AndroidEnterprise;
class ProductPermission extends \Google\Model
{
/**
* The permission is required by the app but has not yet been accepted by the
* enterprise.
*/
public const STATE_required = 'required';
/**
* The permission has been accepted by the enterprise.
*/
public const STATE_accepted = 'accepted';
/**
* An opaque string uniquely identifying the permission.
*
* @var string
*/
public $permissionId;
/**
* Whether the permission has been accepted or not.
*
* @var string
*/
public $state;
/**
* An opaque string uniquely identifying the permission.
*
* @param string $permissionId
*/
public function setPermissionId($permissionId)
{
$this->permissionId = $permissionId;
}
/**
* @return string
*/
public function getPermissionId()
{
return $this->permissionId;
}
/**
* Whether the permission has been accepted or not.
*
* Accepted values: required, accepted
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductPermission::class, 'Google_Service_AndroidEnterprise_ProductPermission');

View File

@@ -0,0 +1,69 @@
<?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\AndroidEnterprise;
class ProductPermissions extends \Google\Collection
{
protected $collection_key = 'permission';
protected $permissionType = ProductPermission::class;
protected $permissionDataType = 'array';
/**
* The ID of the app that the permissions relate to, e.g.
* "app:com.google.android.gm".
*
* @var string
*/
public $productId;
/**
* The permissions required by the app.
*
* @param ProductPermission[] $permission
*/
public function setPermission($permission)
{
$this->permission = $permission;
}
/**
* @return ProductPermission[]
*/
public function getPermission()
{
return $this->permission;
}
/**
* The ID of the app that the permissions relate to, e.g.
* "app:com.google.android.gm".
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductPermissions::class, 'Google_Service_AndroidEnterprise_ProductPermissions');

View File

@@ -0,0 +1,212 @@
<?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\AndroidEnterprise;
class ProductPolicy extends \Google\Collection
{
/**
* Unspecified. Defaults to AUTO_UPDATE_DEFAULT.
*/
public const AUTO_UPDATE_MODE_autoUpdateModeUnspecified = 'autoUpdateModeUnspecified';
/**
* The app is automatically updated with low priority to minimize the impact
* on the user. The app is updated when the following constraints are met: *
* The device is not actively used * The device is connected to an unmetered
* network * The device is charging The device is notified about a new update
* within 24 hours after it is published by the developer, after which the app
* is updated the next time the constraints above are met.
*/
public const AUTO_UPDATE_MODE_autoUpdateDefault = 'autoUpdateDefault';
/**
* The app is not automatically updated for a maximum of 90 days after the app
* becomes out of date. 90 days after the app becomes out of date, the latest
* available version is installed automatically with low priority (see
* AUTO_UPDATE_DEFAULT). After the app is updated it is not automatically
* updated again until 90 days after it becomes out of date again. The user
* can still manually update the app from the Play Store at any time.
*/
public const AUTO_UPDATE_MODE_autoUpdatePostponed = 'autoUpdatePostponed';
/**
* The app is updated as soon as possible. No constraints are applied. The
* device is notified as soon as possible about a new app update after it is
* published by the developer.
*/
public const AUTO_UPDATE_MODE_autoUpdateHighPriority = 'autoUpdateHighPriority';
protected $collection_key = 'tracks';
protected $autoInstallPolicyType = AutoInstallPolicy::class;
protected $autoInstallPolicyDataType = '';
/**
* The auto-update mode for the product. When autoUpdateMode is used, it
* always takes precedence over the user's choice. So when a user makes
* changes to the device settings manually, these changes are ignored.
*
* @var string
*/
public $autoUpdateMode;
protected $enterpriseAuthenticationAppLinkConfigsType = EnterpriseAuthenticationAppLinkConfig::class;
protected $enterpriseAuthenticationAppLinkConfigsDataType = 'array';
protected $managedConfigurationType = ManagedConfiguration::class;
protected $managedConfigurationDataType = '';
/**
* The ID of the product. For example, "app:com.google.android.gm".
*
* @var string
*/
public $productId;
/**
* Grants the device visibility to the specified product release track(s),
* identified by trackIds. The list of release tracks of a product can be
* obtained by calling Products.Get.
*
* @var string[]
*/
public $trackIds;
/**
* Deprecated. Use trackIds instead.
*
* @var string[]
*/
public $tracks;
/**
* The auto-install policy for the product.
*
* @param AutoInstallPolicy $autoInstallPolicy
*/
public function setAutoInstallPolicy(AutoInstallPolicy $autoInstallPolicy)
{
$this->autoInstallPolicy = $autoInstallPolicy;
}
/**
* @return AutoInstallPolicy
*/
public function getAutoInstallPolicy()
{
return $this->autoInstallPolicy;
}
/**
* The auto-update mode for the product. When autoUpdateMode is used, it
* always takes precedence over the user's choice. So when a user makes
* changes to the device settings manually, these changes are ignored.
*
* Accepted values: autoUpdateModeUnspecified, autoUpdateDefault,
* autoUpdatePostponed, autoUpdateHighPriority
*
* @param self::AUTO_UPDATE_MODE_* $autoUpdateMode
*/
public function setAutoUpdateMode($autoUpdateMode)
{
$this->autoUpdateMode = $autoUpdateMode;
}
/**
* @return self::AUTO_UPDATE_MODE_*
*/
public function getAutoUpdateMode()
{
return $this->autoUpdateMode;
}
/**
* An authentication URL configuration for the authenticator app of an
* identity provider. This helps to launch the identity provider's
* authenticator app during the authentication happening in a private app
* using Android WebView. Authenticator app should already be the default
* handler for the authentication url on the device.
*
* @param EnterpriseAuthenticationAppLinkConfig[] $enterpriseAuthenticationAppLinkConfigs
*/
public function setEnterpriseAuthenticationAppLinkConfigs($enterpriseAuthenticationAppLinkConfigs)
{
$this->enterpriseAuthenticationAppLinkConfigs = $enterpriseAuthenticationAppLinkConfigs;
}
/**
* @return EnterpriseAuthenticationAppLinkConfig[]
*/
public function getEnterpriseAuthenticationAppLinkConfigs()
{
return $this->enterpriseAuthenticationAppLinkConfigs;
}
/**
* The managed configuration for the product.
*
* @param ManagedConfiguration $managedConfiguration
*/
public function setManagedConfiguration(ManagedConfiguration $managedConfiguration)
{
$this->managedConfiguration = $managedConfiguration;
}
/**
* @return ManagedConfiguration
*/
public function getManagedConfiguration()
{
return $this->managedConfiguration;
}
/**
* The ID of the product. For example, "app:com.google.android.gm".
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* Grants the device visibility to the specified product release track(s),
* identified by trackIds. The list of release tracks of a product can be
* obtained by calling Products.Get.
*
* @param string[] $trackIds
*/
public function setTrackIds($trackIds)
{
$this->trackIds = $trackIds;
}
/**
* @return string[]
*/
public function getTrackIds()
{
return $this->trackIds;
}
/**
* Deprecated. Use trackIds instead.
*
* @param string[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return string[]
*/
public function getTracks()
{
return $this->tracks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductPolicy::class, 'Google_Service_AndroidEnterprise_ProductPolicy');

View File

@@ -0,0 +1,136 @@
<?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\AndroidEnterprise;
class ProductSet extends \Google\Collection
{
/**
* This value should never be sent and ignored if received.
*/
public const PRODUCT_SET_BEHAVIOR_unknown = 'unknown';
/**
* This product set constitutes a whitelist.
*/
public const PRODUCT_SET_BEHAVIOR_whitelist = 'whitelist';
/**
* This product set represents all products. For Android app it represents
* only "production" track. (The value of the productId field is therefore
* ignored).
*/
public const PRODUCT_SET_BEHAVIOR_includeAll = 'includeAll';
/**
* This product set represents all approved products. For Android app it
* represents only "production" track. (The value of the product_id field is
* therefore ignored).
*/
public const PRODUCT_SET_BEHAVIOR_allApproved = 'allApproved';
protected $collection_key = 'productVisibility';
/**
* The list of product IDs making up the set of products.
*
* @var string[]
*/
public $productId;
/**
* The interpretation of this product set. "unknown" should never be sent and
* is ignored if received. "whitelist" means that the user is entitled to
* access the product set. "includeAll" means that all products are
* accessible, including products that are approved, products with revoked
* approval, and products that have never been approved. "allApproved" means
* that the user is entitled to access all products that are approved for the
* enterprise. If the value is "allApproved" or "includeAll", the productId
* field is ignored. If no value is provided, it is interpreted as "whitelist"
* for backwards compatibility. Further "allApproved" or "includeAll" does not
* enable automatic visibility of "alpha" or "beta" tracks for Android app.
* Use ProductVisibility to enable "alpha" or "beta" tracks per user.
*
* @var string
*/
public $productSetBehavior;
protected $productVisibilityType = ProductVisibility::class;
protected $productVisibilityDataType = 'array';
/**
* The list of product IDs making up the set of products.
*
* @param string[] $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string[]
*/
public function getProductId()
{
return $this->productId;
}
/**
* The interpretation of this product set. "unknown" should never be sent and
* is ignored if received. "whitelist" means that the user is entitled to
* access the product set. "includeAll" means that all products are
* accessible, including products that are approved, products with revoked
* approval, and products that have never been approved. "allApproved" means
* that the user is entitled to access all products that are approved for the
* enterprise. If the value is "allApproved" or "includeAll", the productId
* field is ignored. If no value is provided, it is interpreted as "whitelist"
* for backwards compatibility. Further "allApproved" or "includeAll" does not
* enable automatic visibility of "alpha" or "beta" tracks for Android app.
* Use ProductVisibility to enable "alpha" or "beta" tracks per user.
*
* Accepted values: unknown, whitelist, includeAll, allApproved
*
* @param self::PRODUCT_SET_BEHAVIOR_* $productSetBehavior
*/
public function setProductSetBehavior($productSetBehavior)
{
$this->productSetBehavior = $productSetBehavior;
}
/**
* @return self::PRODUCT_SET_BEHAVIOR_*
*/
public function getProductSetBehavior()
{
return $this->productSetBehavior;
}
/**
* Additional list of product IDs making up the product set. Unlike the
* productID array, in this list It's possible to specify which tracks (alpha,
* beta, production) of a product are visible to the user. See
* ProductVisibility and its fields for more information. Specifying the same
* product ID both here and in the productId array is not allowed and it will
* result in an error.
*
* @param ProductVisibility[] $productVisibility
*/
public function setProductVisibility($productVisibility)
{
$this->productVisibility = $productVisibility;
}
/**
* @return ProductVisibility[]
*/
public function getProductVisibility()
{
return $this->productVisibility;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductSet::class, 'Google_Service_AndroidEnterprise_ProductSet');

View File

@@ -0,0 +1,74 @@
<?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\AndroidEnterprise;
class ProductSigningCertificate extends \Google\Model
{
/**
* The base64 urlsafe encoded SHA1 hash of the certificate. (This field is
* deprecated in favor of SHA2-256. It should not be used and may be removed
* at any time.)
*
* @var string
*/
public $certificateHashSha1;
/**
* The base64 urlsafe encoded SHA2-256 hash of the certificate.
*
* @var string
*/
public $certificateHashSha256;
/**
* The base64 urlsafe encoded SHA1 hash of the certificate. (This field is
* deprecated in favor of SHA2-256. It should not be used and may be removed
* at any time.)
*
* @param string $certificateHashSha1
*/
public function setCertificateHashSha1($certificateHashSha1)
{
$this->certificateHashSha1 = $certificateHashSha1;
}
/**
* @return string
*/
public function getCertificateHashSha1()
{
return $this->certificateHashSha1;
}
/**
* The base64 urlsafe encoded SHA2-256 hash of the certificate.
*
* @param string $certificateHashSha256
*/
public function setCertificateHashSha256($certificateHashSha256)
{
$this->certificateHashSha256 = $certificateHashSha256;
}
/**
* @return string
*/
public function getCertificateHashSha256()
{
return $this->certificateHashSha256;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductSigningCertificate::class, 'Google_Service_AndroidEnterprise_ProductSigningCertificate');

View File

@@ -0,0 +1,97 @@
<?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\AndroidEnterprise;
class ProductVisibility extends \Google\Collection
{
protected $collection_key = 'tracks';
/**
* The product ID to make visible to the user. Required for each item in the
* productVisibility list.
*
* @var string
*/
public $productId;
/**
* Grants the user visibility to the specified product track(s), identified by
* trackIds.
*
* @var string[]
*/
public $trackIds;
/**
* Deprecated. Use trackIds instead.
*
* @var string[]
*/
public $tracks;
/**
* The product ID to make visible to the user. Required for each item in the
* productVisibility list.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* Grants the user visibility to the specified product track(s), identified by
* trackIds.
*
* @param string[] $trackIds
*/
public function setTrackIds($trackIds)
{
$this->trackIds = $trackIds;
}
/**
* @return string[]
*/
public function getTrackIds()
{
return $this->trackIds;
}
/**
* Deprecated. Use trackIds instead.
*
* @param string[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return string[]
*/
public function getTracks()
{
return $this->tracks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductVisibility::class, 'Google_Service_AndroidEnterprise_ProductVisibility');

View File

@@ -0,0 +1,94 @@
<?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\AndroidEnterprise;
class ProductsApproveRequest extends \Google\Model
{
/**
* Approve only the permissions the product requires at approval time. If an
* update requires additional permissions, the app will not be updated on
* devices associated with enterprise users until the additional permissions
* are approved.
*/
public const APPROVED_PERMISSIONS_currentPermissionsOnly = 'currentPermissionsOnly';
/**
* All current and future permissions the app requires are automatically
* approved.
*/
public const APPROVED_PERMISSIONS_allPermissions = 'allPermissions';
protected $approvalUrlInfoType = ApprovalUrlInfo::class;
protected $approvalUrlInfoDataType = '';
/**
* Sets how new permission requests for the product are handled.
* "allPermissions" automatically approves all current and future permissions
* for the product. "currentPermissionsOnly" approves the current set of
* permissions for the product, but any future permissions added through
* updates will require manual reapproval. If not specified, only the current
* set of permissions will be approved.
*
* @var string
*/
public $approvedPermissions;
/**
* The approval URL that was shown to the user. Only the permissions shown to
* the user with that URL will be accepted, which may not be the product's
* entire set of permissions. For example, the URL may only display new
* permissions from an update after the product was approved, or not include
* new permissions if the product was updated since the URL was generated.
*
* @param ApprovalUrlInfo $approvalUrlInfo
*/
public function setApprovalUrlInfo(ApprovalUrlInfo $approvalUrlInfo)
{
$this->approvalUrlInfo = $approvalUrlInfo;
}
/**
* @return ApprovalUrlInfo
*/
public function getApprovalUrlInfo()
{
return $this->approvalUrlInfo;
}
/**
* Sets how new permission requests for the product are handled.
* "allPermissions" automatically approves all current and future permissions
* for the product. "currentPermissionsOnly" approves the current set of
* permissions for the product, but any future permissions added through
* updates will require manual reapproval. If not specified, only the current
* set of permissions will be approved.
*
* Accepted values: currentPermissionsOnly, allPermissions
*
* @param self::APPROVED_PERMISSIONS_* $approvedPermissions
*/
public function setApprovedPermissions($approvedPermissions)
{
$this->approvedPermissions = $approvedPermissions;
}
/**
* @return self::APPROVED_PERMISSIONS_*
*/
public function getApprovedPermissions()
{
return $this->approvedPermissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductsApproveRequest::class, 'Google_Service_AndroidEnterprise_ProductsApproveRequest');

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\AndroidEnterprise;
class ProductsGenerateApprovalUrlResponse extends \Google\Model
{
/**
* A URL that can be rendered in an iframe to display the permissions (if any)
* of a product. This URL can be used to approve the product only once and
* only within 24 hours of being generated, using the Products.approve call.
* If the product is currently unapproved and has no permissions, this URL
* will point to an empty page. If the product is currently approved, a URL
* will only be generated if that product has added permissions since it was
* last approved, and the URL will only display those new permissions that
* have not yet been accepted.
*
* @var string
*/
public $url;
/**
* A URL that can be rendered in an iframe to display the permissions (if any)
* of a product. This URL can be used to approve the product only once and
* only within 24 hours of being generated, using the Products.approve call.
* If the product is currently unapproved and has no permissions, this URL
* will point to an empty page. If the product is currently approved, a URL
* will only be generated if that product has added permissions since it was
* last approved, and the URL will only display those new permissions that
* have not yet been accepted.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductsGenerateApprovalUrlResponse::class, 'Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse');

View File

@@ -0,0 +1,82 @@
<?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\AndroidEnterprise;
class ProductsListResponse extends \Google\Collection
{
protected $collection_key = 'product';
protected $pageInfoType = PageInfo::class;
protected $pageInfoDataType = '';
protected $productType = Product::class;
protected $productDataType = 'array';
protected $tokenPaginationType = TokenPagination::class;
protected $tokenPaginationDataType = '';
/**
* General pagination information.
*
* @param PageInfo $pageInfo
*/
public function setPageInfo(PageInfo $pageInfo)
{
$this->pageInfo = $pageInfo;
}
/**
* @return PageInfo
*/
public function getPageInfo()
{
return $this->pageInfo;
}
/**
* Information about a product (e.g. an app) in the Google Play store, for
* display to an enterprise admin.
*
* @param Product[] $product
*/
public function setProduct($product)
{
$this->product = $product;
}
/**
* @return Product[]
*/
public function getProduct()
{
return $this->product;
}
/**
* Pagination information for token pagination.
*
* @param TokenPagination $tokenPagination
*/
public function setTokenPagination(TokenPagination $tokenPagination)
{
$this->tokenPagination = $tokenPagination;
}
/**
* @return TokenPagination
*/
public function getTokenPagination()
{
return $this->tokenPagination;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductsListResponse::class, 'Google_Service_AndroidEnterprise_ProductsListResponse');

View File

@@ -0,0 +1,155 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\Device;
use Google\Service\AndroidEnterprise\DeviceState;
use Google\Service\AndroidEnterprise\DevicesListResponse;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $devices = $androidenterpriseService->devices;
* </code>
*/
class Devices extends \Google\Service\Resource
{
/**
* Uploads a report containing any changes in app states on the device since the
* last report was generated. You can call this method up to 3 times every 24
* hours for a given device. If you exceed the quota, then the Google Play EMM
* API returns HTTP 429 Too Many Requests. (devices.forceReportUpload)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The ID of the device.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function forceReportUpload($enterpriseId, $userId, $deviceId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId];
$params = array_merge($params, $optParams);
return $this->call('forceReportUpload', [$params]);
}
/**
* Retrieves the details of a device. (devices.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The ID of the device.
* @param array $optParams Optional parameters.
* @return Device
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $userId, $deviceId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Device::class);
}
/**
* Retrieves whether a device's access to Google services is enabled or
* disabled. The device state takes effect only if enforcing EMM policies on
* Android devices is enabled in the Google Admin Console. Otherwise, the device
* state is ignored and all devices are allowed access to Google services. This
* is only supported for Google-managed users. (devices.getState)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The ID of the device.
* @param array $optParams Optional parameters.
* @return DeviceState
* @throws \Google\Service\Exception
*/
public function getState($enterpriseId, $userId, $deviceId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId];
$params = array_merge($params, $optParams);
return $this->call('getState', [$params], DeviceState::class);
}
/**
* Retrieves the IDs of all of a user's devices. (devices.listDevices)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param array $optParams Optional parameters.
* @return DevicesListResponse
* @throws \Google\Service\Exception
*/
public function listDevices($enterpriseId, $userId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], DevicesListResponse::class);
}
/**
* Sets whether a device's access to Google services is enabled or disabled. The
* device state takes effect only if enforcing EMM policies on Android devices
* is enabled in the Google Admin Console. Otherwise, the device state is
* ignored and all devices are allowed access to Google services. This is only
* supported for Google-managed users. (devices.setState)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The ID of the device.
* @param DeviceState $postBody
* @param array $optParams Optional parameters.
* @return DeviceState
* @throws \Google\Service\Exception
*/
public function setState($enterpriseId, $userId, $deviceId, DeviceState $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setState', [$params], DeviceState::class);
}
/**
* Updates the device policy. To ensure the policy is properly enforced, you
* need to prevent unmanaged accounts from accessing Google Play by setting the
* allowed_accounts in the managed configuration for the Google Play package.
* See restrict accounts in Google Play. When provisioning a new device, you
* should set the device policy using this method before adding the managed
* Google Play Account to the device, otherwise the policy will not be applied
* for a short period of time after adding the account to the device.
* (devices.update)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The ID of the device.
* @param Device $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Mask that identifies which fields to update. If
* not set, all modifiable fields will be modified. When set in a query
* parameter, this field should be specified as updateMask=,,...
* @return Device
* @throws \Google\Service\Exception
*/
public function update($enterpriseId, $userId, $deviceId, Device $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Device::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Devices::class, 'Google_Service_AndroidEnterprise_Resource_Devices');

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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\EnrollmentToken;
/**
* The "enrollmentTokens" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $enrollmentTokens = $androidenterpriseService->enrollmentTokens;
* </code>
*/
class EnrollmentTokens extends \Google\Service\Resource
{
/**
* Returns a token for device enrollment. The DPC can encode this token within
* the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-
* device API to authenticate the user. The token can be generated for each
* device or reused across multiple devices. (enrollmentTokens.create)
*
* @param string $enterpriseId Required. The ID of the enterprise.
* @param EnrollmentToken $postBody
* @param array $optParams Optional parameters.
* @return EnrollmentToken
* @throws \Google\Service\Exception
*/
public function create($enterpriseId, EnrollmentToken $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], EnrollmentToken::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrollmentTokens::class, 'Google_Service_AndroidEnterprise_Resource_EnrollmentTokens');

View File

@@ -0,0 +1,359 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\AdministratorWebToken;
use Google\Service\AndroidEnterprise\AdministratorWebTokenSpec;
use Google\Service\AndroidEnterprise\Enterprise;
use Google\Service\AndroidEnterprise\EnterpriseAccount;
use Google\Service\AndroidEnterprise\EnterprisesListResponse;
use Google\Service\AndroidEnterprise\EnterprisesSendTestPushNotificationResponse;
use Google\Service\AndroidEnterprise\GenerateEnterpriseUpgradeUrlResponse;
use Google\Service\AndroidEnterprise\NotificationSet;
use Google\Service\AndroidEnterprise\ServiceAccount;
use Google\Service\AndroidEnterprise\SignupInfo;
use Google\Service\AndroidEnterprise\StoreLayout;
/**
* The "enterprises" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $enterprises = $androidenterpriseService->enterprises;
* </code>
*/
class Enterprises extends \Google\Service\Resource
{
/**
* Acknowledges notifications that were received from
* Enterprises.PullNotificationSet to prevent subsequent calls from returning
* the same notifications. (enterprises.acknowledgeNotificationSet)
*
* @param array $optParams Optional parameters.
*
* @opt_param string notificationSetId The notification set ID as returned by
* Enterprises.PullNotificationSet. This must be provided.
* @throws \Google\Service\Exception
*/
public function acknowledgeNotificationSet($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('acknowledgeNotificationSet', [$params]);
}
/**
* Completes the signup flow, by specifying the Completion token and Enterprise
* token. This request must not be called multiple times for a given Enterprise
* Token. (enterprises.completeSignup)
*
* @param array $optParams Optional parameters.
*
* @opt_param string completionToken The Completion token initially returned by
* GenerateSignupUrl.
* @opt_param string enterpriseToken The Enterprise token appended to the
* Callback URL.
* @return Enterprise
* @throws \Google\Service\Exception
*/
public function completeSignup($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('completeSignup', [$params], Enterprise::class);
}
/**
* Returns a unique token to access an embeddable UI. To generate a web UI, pass
* the generated token into the managed Google Play javascript API. Each token
* may only be used to start one UI session. See the JavaScript API
* documentation for further information. (enterprises.createWebToken)
*
* @param string $enterpriseId The ID of the enterprise.
* @param AdministratorWebTokenSpec $postBody
* @param array $optParams Optional parameters.
* @return AdministratorWebToken
* @throws \Google\Service\Exception
*/
public function createWebToken($enterpriseId, AdministratorWebTokenSpec $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createWebToken', [$params], AdministratorWebToken::class);
}
/**
* Enrolls an enterprise with the calling EMM. (enterprises.enroll)
*
* @param string $token Required. The token provided by the enterprise to
* register the EMM.
* @param Enterprise $postBody
* @param array $optParams Optional parameters.
* @return Enterprise
* @throws \Google\Service\Exception
*/
public function enroll($token, Enterprise $postBody, $optParams = [])
{
$params = ['token' => $token, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enroll', [$params], Enterprise::class);
}
/**
* Generates an enterprise upgrade URL to upgrade an existing managed Google
* Play Accounts enterprise to a managed Google domain. See the guide to
* upgrading an enterprise for more details.
* (enterprises.generateEnterpriseUpgradeUrl)
*
* @param string $enterpriseId Required. The ID of the enterprise.
* @param array $optParams Optional parameters.
*
* @opt_param string adminEmail Optional. Email address used to prefill the
* admin field of the enterprise signup form as part of the upgrade process.
* This value is a hint only and can be altered by the user. Personal email
* addresses are not allowed. If `allowedDomains` is non-empty then this must
* belong to one of the `allowedDomains`.
* @opt_param string allowedDomains Optional. A list of domains that are
* permitted for the admin email. The IT admin cannot enter an email address
* with a domain name that is not in this list. Subdomains of domains in this
* list are not allowed but can be allowed by adding a second entry which has
* `*.` prefixed to the domain name (e.g. *.example.com). If the field is not
* present or is an empty list then the IT admin is free to use any valid domain
* name. Personal email domains are not allowed.
* @return GenerateEnterpriseUpgradeUrlResponse
* @throws \Google\Service\Exception
*/
public function generateEnterpriseUpgradeUrl($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('generateEnterpriseUpgradeUrl', [$params], GenerateEnterpriseUpgradeUrlResponse::class);
}
/**
* Generates a sign-up URL. (enterprises.generateSignupUrl)
*
* @param array $optParams Optional parameters.
*
* @opt_param string adminEmail Optional. Email address used to prefill the
* admin field of the enterprise signup form. This value is a hint only and can
* be altered by the user. If `allowedDomains` is non-empty then this must
* belong to one of the `allowedDomains`.
* @opt_param string allowedDomains Optional. A list of domains that are
* permitted for the admin email. The IT admin cannot enter an email address
* with a domain name that is not in this list. Subdomains of domains in this
* list are not allowed but can be allowed by adding a second entry which has
* `*.` prefixed to the domain name (e.g. *.example.com). If the field is not
* present or is an empty list then the IT admin is free to use any valid domain
* name. Personal email domains are always allowed, but will result in the
* creation of a managed Google Play Accounts enterprise.
* @opt_param string callbackUrl The callback URL to which the Admin will be
* redirected after successfully creating an enterprise. Before redirecting
* there the system will add a single query parameter to this URL named
* "enterpriseToken" which will contain an opaque token to be used for the
* CompleteSignup request. Beware that this means that the URL will be parsed,
* the parameter added and then a new URL formatted, i.e. there may be some
* minor formatting changes and, more importantly, the URL must be well-formed
* so that it can be parsed.
* @return SignupInfo
* @throws \Google\Service\Exception
*/
public function generateSignupUrl($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('generateSignupUrl', [$params], SignupInfo::class);
}
/**
* Retrieves the name and domain of an enterprise. (enterprises.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
* @return Enterprise
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Enterprise::class);
}
/**
* Returns a service account and credentials. The service account can be bound
* to the enterprise by calling setAccount. The service account is unique to
* this enterprise and EMM, and will be deleted if the enterprise is unbound.
* The credentials contain private key data and are not stored server-side. This
* method can only be called after calling Enterprises.Enroll or
* Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times
* it will return an error. Subsequent calls after the first will generate a
* new, unique set of credentials, and invalidate the previously generated
* credentials. Once the service account is bound to the enterprise, it can be
* managed using the serviceAccountKeys resource. *Note:* After you create a
* key, you might need to wait for 60 seconds or more before you perform another
* operation with the key. If you try to perform an operation with the key
* immediately after you create the key, and you receive an error, you can retry
* the request with exponential backoff . (enterprises.getServiceAccount)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
*
* @opt_param string keyType The type of credential to return with the service
* account. Required.
* @return ServiceAccount
* @throws \Google\Service\Exception
*/
public function getServiceAccount($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('getServiceAccount', [$params], ServiceAccount::class);
}
/**
* Returns the store layout for the enterprise. If the store layout has not been
* set, returns "basic" as the store layout type and no homepage.
* (enterprises.getStoreLayout)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
* @return StoreLayout
* @throws \Google\Service\Exception
*/
public function getStoreLayout($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('getStoreLayout', [$params], StoreLayout::class);
}
/**
* Looks up an enterprise by domain name. This is only supported for enterprises
* created via the Google-initiated creation flow. Lookup of the id is not
* needed for enterprises created via the EMM-initiated flow since the EMM
* learns the enterprise ID in the callback specified in the
* Enterprises.generateSignupUrl call. (enterprises.listEnterprises)
*
* @param string $domain Required. The exact primary domain name of the
* enterprise to look up.
* @param array $optParams Optional parameters.
* @return EnterprisesListResponse
* @throws \Google\Service\Exception
*/
public function listEnterprises($domain, $optParams = [])
{
$params = ['domain' => $domain];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], EnterprisesListResponse::class);
}
/**
* Pulls and returns a notification set for the enterprises associated with the
* service account authenticated for the request. The notification set may be
* empty if no notification are pending. A notification set returned needs to be
* acknowledged within 20 seconds by calling
* Enterprises.AcknowledgeNotificationSet, unless the notification set is empty.
* Notifications that are not acknowledged within the 20 seconds will eventually
* be included again in the response to another PullNotificationSet request, and
* those that are never acknowledged will ultimately be deleted according to the
* Google Cloud Platform Pub/Sub system policy. Multiple requests might be
* performed concurrently to retrieve notifications, in which case the pending
* notifications (if any) will be split among each caller, if any are pending.
* If no notifications are present, an empty notification list is returned.
* Subsequent requests may return more notifications once they become available.
* (enterprises.pullNotificationSet)
*
* @param array $optParams Optional parameters.
*
* @opt_param string requestMode The request mode for pulling notifications.
* Specifying waitForNotifications will cause the request to block and wait
* until one or more notifications are present, or return an empty notification
* list if no notifications are present after some time. Specifying
* returnImmediately will cause the request to immediately return the pending
* notifications, or an empty list if no notifications are present. If omitted,
* defaults to waitForNotifications.
* @return NotificationSet
* @throws \Google\Service\Exception
*/
public function pullNotificationSet($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('pullNotificationSet', [$params], NotificationSet::class);
}
/**
* Sends a test notification to validate the EMM integration with the Google
* Cloud Pub/Sub service for this enterprise.
* (enterprises.sendTestPushNotification)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
* @return EnterprisesSendTestPushNotificationResponse
* @throws \Google\Service\Exception
*/
public function sendTestPushNotification($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('sendTestPushNotification', [$params], EnterprisesSendTestPushNotificationResponse::class);
}
/**
* Sets the account that will be used to authenticate to the API as the
* enterprise. (enterprises.setAccount)
*
* @param string $enterpriseId The ID of the enterprise.
* @param EnterpriseAccount $postBody
* @param array $optParams Optional parameters.
* @return EnterpriseAccount
* @throws \Google\Service\Exception
*/
public function setAccount($enterpriseId, EnterpriseAccount $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setAccount', [$params], EnterpriseAccount::class);
}
/**
* Sets the store layout for the enterprise. By default, storeLayoutType is set
* to "basic" and the basic store layout is enabled. The basic layout only
* contains apps approved by the admin, and that have been added to the
* available product set for a user (using the setAvailableProductSet call).
* Apps on the page are sorted in order of their product ID value. If you create
* a custom store layout (by setting storeLayoutType = "custom" and setting a
* homepage), the basic store layout is disabled. (enterprises.setStoreLayout)
*
* @param string $enterpriseId The ID of the enterprise.
* @param StoreLayout $postBody
* @param array $optParams Optional parameters.
* @return StoreLayout
* @throws \Google\Service\Exception
*/
public function setStoreLayout($enterpriseId, StoreLayout $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setStoreLayout', [$params], StoreLayout::class);
}
/**
* Unenrolls an enterprise from the calling EMM. (enterprises.unenroll)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function unenroll($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('unenroll', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Enterprises::class, 'Google_Service_AndroidEnterprise_Resource_Enterprises');

View File

@@ -0,0 +1,115 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\Entitlement;
use Google\Service\AndroidEnterprise\EntitlementsListResponse;
/**
* The "entitlements" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $entitlements = $androidenterpriseService->entitlements;
* </code>
*/
class Entitlements extends \Google\Service\Resource
{
/**
* Removes an entitlement to an app for a user. **Note:** This item has been
* deprecated. New integrations cannot use this method and can refer to our new
* recommendations. (entitlements.delete)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $entitlementId The ID of the entitlement (a product ID), e.g.
* "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($enterpriseId, $userId, $entitlementId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves details of an entitlement. **Note:** This item has been deprecated.
* New integrations cannot use this method and can refer to our new
* recommendations. (entitlements.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $entitlementId The ID of the entitlement (a product ID), e.g.
* "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @return Entitlement
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $userId, $entitlementId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Entitlement::class);
}
/**
* Lists all entitlements for the specified user. Only the ID is set. **Note:**
* This item has been deprecated. New integrations cannot use this method and
* can refer to our new recommendations. (entitlements.listEntitlements)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param array $optParams Optional parameters.
* @return EntitlementsListResponse
* @throws \Google\Service\Exception
*/
public function listEntitlements($enterpriseId, $userId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], EntitlementsListResponse::class);
}
/**
* Adds or updates an entitlement to an app for a user. **Note:** This item has
* been deprecated. New integrations cannot use this method and can refer to our
* new recommendations. (entitlements.update)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $entitlementId The ID of the entitlement (a product ID), e.g.
* "app:com.google.android.gm".
* @param Entitlement $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool install Set to true to also install the product on all the
* user's devices where possible. Failure to install on one or more devices will
* not prevent this operation from returning successfully, as long as the
* entitlement was successfully assigned to the user.
* @return Entitlement
* @throws \Google\Service\Exception
*/
public function update($enterpriseId, $userId, $entitlementId, Entitlement $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Entitlement::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entitlements::class, 'Google_Service_AndroidEnterprise_Resource_Entitlements');

View File

@@ -0,0 +1,71 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\GroupLicense;
use Google\Service\AndroidEnterprise\GroupLicensesListResponse;
/**
* The "grouplicenses" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $grouplicenses = $androidenterpriseService->grouplicenses;
* </code>
*/
class Grouplicenses extends \Google\Service\Resource
{
/**
* Retrieves details of an enterprise's group license for a product. **Note:**
* This item has been deprecated. New integrations cannot use this method and
* can refer to our new recommendations. (grouplicenses.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $groupLicenseId The ID of the product the group license is for,
* e.g. "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @return GroupLicense
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $groupLicenseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GroupLicense::class);
}
/**
* Retrieves IDs of all products for which the enterprise has a group license.
* **Note:** This item has been deprecated. New integrations cannot use this
* method and can refer to our new recommendations.
* (grouplicenses.listGrouplicenses)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
* @return GroupLicensesListResponse
* @throws \Google\Service\Exception
*/
public function listGrouplicenses($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GroupLicensesListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Grouplicenses::class, 'Google_Service_AndroidEnterprise_Resource_Grouplicenses');

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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\GroupLicenseUsersListResponse;
/**
* The "grouplicenseusers" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $grouplicenseusers = $androidenterpriseService->grouplicenseusers;
* </code>
*/
class Grouplicenseusers extends \Google\Service\Resource
{
/**
* Retrieves the IDs of the users who have been granted entitlements under the
* license. **Note:** This item has been deprecated. New integrations cannot use
* this method and can refer to our new recommendations.
* (grouplicenseusers.listGrouplicenseusers)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $groupLicenseId The ID of the product the group license is for,
* e.g. "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @return GroupLicenseUsersListResponse
* @throws \Google\Service\Exception
*/
public function listGrouplicenseusers($enterpriseId, $groupLicenseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GroupLicenseUsersListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Grouplicenseusers::class, 'Google_Service_AndroidEnterprise_Resource_Grouplicenseusers');

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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\Install;
use Google\Service\AndroidEnterprise\InstallsListResponse;
/**
* The "installs" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $installs = $androidenterpriseService->installs;
* </code>
*/
class Installs extends \Google\Service\Resource
{
/**
* Requests to remove an app from a device. A call to get or list will still
* show the app as installed on the device until it is actually removed. A
* successful response indicates that a removal request has been sent to the
* device. The call will be considered successful even if the app is not present
* on the device (e.g. it was never installed, or was removed by the user).
* (installs.delete)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The Android ID of the device.
* @param string $installId The ID of the product represented by the install,
* e.g. "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($enterpriseId, $userId, $deviceId, $installId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves details of an installation of an app on a device. (installs.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The Android ID of the device.
* @param string $installId The ID of the product represented by the install,
* e.g. "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @return Install
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $userId, $deviceId, $installId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Install::class);
}
/**
* Retrieves the details of all apps installed on the specified device.
* (installs.listInstalls)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The Android ID of the device.
* @param array $optParams Optional parameters.
* @return InstallsListResponse
* @throws \Google\Service\Exception
*/
public function listInstalls($enterpriseId, $userId, $deviceId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], InstallsListResponse::class);
}
/**
* Requests to install the latest version of an app to a device. If the app is
* already installed, then it is updated to the latest version if necessary.
* (installs.update)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The Android ID of the device.
* @param string $installId The ID of the product represented by the install,
* e.g. "app:com.google.android.gm".
* @param Install $postBody
* @param array $optParams Optional parameters.
* @return Install
* @throws \Google\Service\Exception
*/
public function update($enterpriseId, $userId, $deviceId, $installId, Install $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Install::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Installs::class, 'Google_Service_AndroidEnterprise_Resource_Installs');

View File

@@ -0,0 +1,111 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\ManagedConfiguration;
use Google\Service\AndroidEnterprise\ManagedConfigurationsForDeviceListResponse;
/**
* The "managedconfigurationsfordevice" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $managedconfigurationsfordevice = $androidenterpriseService->managedconfigurationsfordevice;
* </code>
*/
class Managedconfigurationsfordevice extends \Google\Service\Resource
{
/**
* Removes a per-device managed configuration for an app for the specified
* device. (managedconfigurationsfordevice.delete)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The Android ID of the device.
* @param string $managedConfigurationForDeviceId The ID of the managed
* configuration (a product ID), e.g. "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($enterpriseId, $userId, $deviceId, $managedConfigurationForDeviceId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'managedConfigurationForDeviceId' => $managedConfigurationForDeviceId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves details of a per-device managed configuration.
* (managedconfigurationsfordevice.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The Android ID of the device.
* @param string $managedConfigurationForDeviceId The ID of the managed
* configuration (a product ID), e.g. "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @return ManagedConfiguration
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $userId, $deviceId, $managedConfigurationForDeviceId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'managedConfigurationForDeviceId' => $managedConfigurationForDeviceId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ManagedConfiguration::class);
}
/**
* Lists all the per-device managed configurations for the specified device.
* Only the ID is set.
* (managedconfigurationsfordevice.listManagedconfigurationsfordevice)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The Android ID of the device.
* @param array $optParams Optional parameters.
* @return ManagedConfigurationsForDeviceListResponse
* @throws \Google\Service\Exception
*/
public function listManagedconfigurationsfordevice($enterpriseId, $userId, $deviceId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ManagedConfigurationsForDeviceListResponse::class);
}
/**
* Adds or updates a per-device managed configuration for an app for the
* specified device. (managedconfigurationsfordevice.update)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $deviceId The Android ID of the device.
* @param string $managedConfigurationForDeviceId The ID of the managed
* configuration (a product ID), e.g. "app:com.google.android.gm".
* @param ManagedConfiguration $postBody
* @param array $optParams Optional parameters.
* @return ManagedConfiguration
* @throws \Google\Service\Exception
*/
public function update($enterpriseId, $userId, $deviceId, $managedConfigurationForDeviceId, ManagedConfiguration $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'managedConfigurationForDeviceId' => $managedConfigurationForDeviceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ManagedConfiguration::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Managedconfigurationsfordevice::class, 'Google_Service_AndroidEnterprise_Resource_Managedconfigurationsfordevice');

View File

@@ -0,0 +1,111 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\ManagedConfiguration;
use Google\Service\AndroidEnterprise\ManagedConfigurationsForUserListResponse;
/**
* The "managedconfigurationsforuser" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $managedconfigurationsforuser = $androidenterpriseService->managedconfigurationsforuser;
* </code>
*/
class Managedconfigurationsforuser extends \Google\Service\Resource
{
/**
* Removes a per-user managed configuration for an app for the specified user.
* (managedconfigurationsforuser.delete)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $managedConfigurationForUserId The ID of the managed
* configuration (a product ID), e.g. "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($enterpriseId, $userId, $managedConfigurationForUserId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves details of a per-user managed configuration for an app for the
* specified user. (managedconfigurationsforuser.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $managedConfigurationForUserId The ID of the managed
* configuration (a product ID), e.g. "app:com.google.android.gm".
* @param array $optParams Optional parameters.
* @return ManagedConfiguration
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $userId, $managedConfigurationForUserId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ManagedConfiguration::class);
}
/**
* Lists all the per-user managed configurations for the specified user. Only
* the ID is set.
* (managedconfigurationsforuser.listManagedconfigurationsforuser)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param array $optParams Optional parameters.
* @return ManagedConfigurationsForUserListResponse
* @throws \Google\Service\Exception
*/
public function listManagedconfigurationsforuser($enterpriseId, $userId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ManagedConfigurationsForUserListResponse::class);
}
/**
* Adds or updates the managed configuration settings for an app for the
* specified user. If you support the Managed configurations iframe, you can
* apply managed configurations to a user by specifying an mcmId and its
* associated configuration variables (if any) in the request. Alternatively,
* all EMMs can apply managed configurations by passing a list of managed
* properties. (managedconfigurationsforuser.update)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param string $managedConfigurationForUserId The ID of the managed
* configuration (a product ID), e.g. "app:com.google.android.gm".
* @param ManagedConfiguration $postBody
* @param array $optParams Optional parameters.
* @return ManagedConfiguration
* @throws \Google\Service\Exception
*/
public function update($enterpriseId, $userId, $managedConfigurationForUserId, ManagedConfiguration $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ManagedConfiguration::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Managedconfigurationsforuser::class, 'Google_Service_AndroidEnterprise_Resource_Managedconfigurationsforuser');

View File

@@ -0,0 +1,52 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\ManagedConfigurationsSettingsListResponse;
/**
* The "managedconfigurationssettings" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $managedconfigurationssettings = $androidenterpriseService->managedconfigurationssettings;
* </code>
*/
class Managedconfigurationssettings extends \Google\Service\Resource
{
/**
* Lists all the managed configurations settings for the specified app.
* (managedconfigurationssettings.listManagedconfigurationssettings)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $productId The ID of the product for which the managed
* configurations settings applies to.
* @param array $optParams Optional parameters.
* @return ManagedConfigurationsSettingsListResponse
* @throws \Google\Service\Exception
*/
public function listManagedconfigurationssettings($enterpriseId, $productId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'productId' => $productId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ManagedConfigurationsSettingsListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Managedconfigurationssettings::class, 'Google_Service_AndroidEnterprise_Resource_Managedconfigurationssettings');

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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\Permission;
/**
* The "permissions" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $permissions = $androidenterpriseService->permissions;
* </code>
*/
class Permissions extends \Google\Service\Resource
{
/**
* Retrieves details of an Android app permission for display to an enterprise
* admin. (permissions.get)
*
* @param string $permissionId The ID of the permission.
* @param array $optParams Optional parameters.
*
* @opt_param string language The BCP47 tag for the user's preferred language
* (e.g. "en-US", "de")
* @return Permission
* @throws \Google\Service\Exception
*/
public function get($permissionId, $optParams = [])
{
$params = ['permissionId' => $permissionId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Permission::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Permissions::class, 'Google_Service_AndroidEnterprise_Resource_Permissions');

View File

@@ -0,0 +1,194 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\AppRestrictionsSchema;
use Google\Service\AndroidEnterprise\Product;
use Google\Service\AndroidEnterprise\ProductPermissions;
use Google\Service\AndroidEnterprise\ProductsApproveRequest;
use Google\Service\AndroidEnterprise\ProductsGenerateApprovalUrlResponse;
use Google\Service\AndroidEnterprise\ProductsListResponse;
/**
* The "products" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $products = $androidenterpriseService->products;
* </code>
*/
class Products extends \Google\Service\Resource
{
/**
* Approves the specified product and the relevant app permissions, if any. The
* maximum number of products that you can approve per enterprise customer is
* 1,000. To learn how to use managed Google Play to design and create a store
* layout to display approved products to your users, see Store Layout Design.
* **Note:** This item has been deprecated. New integrations cannot use this
* method and can refer to our new recommendations. (products.approve)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $productId The ID of the product.
* @param ProductsApproveRequest $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function approve($enterpriseId, $productId, ProductsApproveRequest $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params]);
}
/**
* Generates a URL that can be rendered in an iframe to display the permissions
* (if any) of a product. An enterprise admin must view these permissions and
* accept them on behalf of their organization in order to approve that product.
* Admins should accept the displayed permissions by interacting with a separate
* UI element in the EMM console, which in turn should trigger the use of this
* URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
* approve the product. This URL can only be used to display permissions for up
* to 1 day. **Note:** This item has been deprecated. New integrations cannot
* use this method and can refer to our new recommendations.
* (products.generateApprovalUrl)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $productId The ID of the product.
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode The BCP 47 language code used for permission
* names and descriptions in the returned iframe, for instance "en-US".
* @return ProductsGenerateApprovalUrlResponse
* @throws \Google\Service\Exception
*/
public function generateApprovalUrl($enterpriseId, $productId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'productId' => $productId];
$params = array_merge($params, $optParams);
return $this->call('generateApprovalUrl', [$params], ProductsGenerateApprovalUrlResponse::class);
}
/**
* Retrieves details of a product for display to an enterprise admin.
* (products.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $productId The ID of the product, e.g.
* "app:com.google.android.gm".
* @param array $optParams Optional parameters.
*
* @opt_param string language The BCP47 tag for the user's preferred language
* (e.g. "en-US", "de").
* @return Product
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $productId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'productId' => $productId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Product::class);
}
/**
* Retrieves the schema that defines the configurable properties for this
* product. All products have a schema, but this schema may be empty if no
* managed configurations have been defined. This schema can be used to populate
* a UI that allows an admin to configure the product. To apply a managed
* configuration based on the schema obtained using this API, see Managed
* Configurations through Play. (products.getAppRestrictionsSchema)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $productId The ID of the product.
* @param array $optParams Optional parameters.
*
* @opt_param string language The BCP47 tag for the user's preferred language
* (e.g. "en-US", "de").
* @return AppRestrictionsSchema
* @throws \Google\Service\Exception
*/
public function getAppRestrictionsSchema($enterpriseId, $productId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'productId' => $productId];
$params = array_merge($params, $optParams);
return $this->call('getAppRestrictionsSchema', [$params], AppRestrictionsSchema::class);
}
/**
* Retrieves the Android app permissions required by this app.
* (products.getPermissions)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $productId The ID of the product.
* @param array $optParams Optional parameters.
* @return ProductPermissions
* @throws \Google\Service\Exception
*/
public function getPermissions($enterpriseId, $productId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'productId' => $productId];
$params = array_merge($params, $optParams);
return $this->call('getPermissions', [$params], ProductPermissions::class);
}
/**
* Finds approved products that match a query, or all approved products if there
* is no query. **Note:** This item has been deprecated. New integrations cannot
* use this method and can refer to our new recommendations.
* (products.listProducts)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
*
* @opt_param bool approved Specifies whether to search among all products
* (false) or among only products that have been approved (true). Only "true" is
* supported, and should be specified.
* @opt_param string language The BCP47 tag for the user's preferred language
* (e.g. "en-US", "de"). Results are returned in the language best matching the
* preferred language.
* @opt_param string maxResults Defines how many results the list operation
* should return. The default number depends on the resource collection.
* @opt_param string query The search query as typed in the Google Play store
* search box. If omitted, all approved apps will be returned (using the
* pagination parameters), including apps that are not available in the store
* (e.g. unpublished apps).
* @opt_param string token Defines the token of the page to return, usually
* taken from TokenPagination. This can only be used if token paging is enabled.
* @return ProductsListResponse
* @throws \Google\Service\Exception
*/
public function listProducts($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ProductsListResponse::class);
}
/**
* Unapproves the specified product (and the relevant app permissions, if any)
* **Note:** This item has been deprecated. New integrations cannot use this
* method and can refer to our new recommendations. (products.unapprove)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $productId The ID of the product.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function unapprove($enterpriseId, $productId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'productId' => $productId];
$params = array_merge($params, $optParams);
return $this->call('unapprove', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Products::class, 'Google_Service_AndroidEnterprise_Resource_Products');

View File

@@ -0,0 +1,92 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\ServiceAccountKey;
use Google\Service\AndroidEnterprise\ServiceAccountKeysListResponse;
/**
* The "serviceaccountkeys" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $serviceaccountkeys = $androidenterpriseService->serviceaccountkeys;
* </code>
*/
class Serviceaccountkeys extends \Google\Service\Resource
{
/**
* Removes and invalidates the specified credentials for the service account
* associated with this enterprise. The calling service account must have been
* retrieved by calling Enterprises.GetServiceAccount and must have been set as
* the enterprise service account by calling Enterprises.SetAccount.
* (serviceaccountkeys.delete)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $keyId The ID of the key.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($enterpriseId, $keyId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'keyId' => $keyId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Generates new credentials for the service account associated with this
* enterprise. The calling service account must have been retrieved by calling
* Enterprises.GetServiceAccount and must have been set as the enterprise
* service account by calling Enterprises.SetAccount. Only the type of the key
* should be populated in the resource to be inserted.
* (serviceaccountkeys.insert)
*
* @param string $enterpriseId The ID of the enterprise.
* @param ServiceAccountKey $postBody
* @param array $optParams Optional parameters.
* @return ServiceAccountKey
* @throws \Google\Service\Exception
*/
public function insert($enterpriseId, ServiceAccountKey $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], ServiceAccountKey::class);
}
/**
* Lists all active credentials for the service account associated with this
* enterprise. Only the ID and key type are returned. The calling service
* account must have been retrieved by calling Enterprises.GetServiceAccount and
* must have been set as the enterprise service account by calling
* Enterprises.SetAccount. (serviceaccountkeys.listServiceaccountkeys)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
* @return ServiceAccountKeysListResponse
* @throws \Google\Service\Exception
*/
public function listServiceaccountkeys($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ServiceAccountKeysListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Serviceaccountkeys::class, 'Google_Service_AndroidEnterprise_Resource_Serviceaccountkeys');

View File

@@ -0,0 +1,116 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\StoreCluster;
use Google\Service\AndroidEnterprise\StoreLayoutClustersListResponse;
/**
* The "storelayoutclusters" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $storelayoutclusters = $androidenterpriseService->storelayoutclusters;
* </code>
*/
class Storelayoutclusters extends \Google\Service\Resource
{
/**
* Deletes a cluster. (storelayoutclusters.delete)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $pageId The ID of the page.
* @param string $clusterId The ID of the cluster.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($enterpriseId, $pageId, $clusterId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves details of a cluster. (storelayoutclusters.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $pageId The ID of the page.
* @param string $clusterId The ID of the cluster.
* @param array $optParams Optional parameters.
* @return StoreCluster
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $pageId, $clusterId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], StoreCluster::class);
}
/**
* Inserts a new cluster in a page. (storelayoutclusters.insert)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $pageId The ID of the page.
* @param StoreCluster $postBody
* @param array $optParams Optional parameters.
* @return StoreCluster
* @throws \Google\Service\Exception
*/
public function insert($enterpriseId, $pageId, StoreCluster $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], StoreCluster::class);
}
/**
* Retrieves the details of all clusters on the specified page.
* (storelayoutclusters.listStorelayoutclusters)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $pageId The ID of the page.
* @param array $optParams Optional parameters.
* @return StoreLayoutClustersListResponse
* @throws \Google\Service\Exception
*/
public function listStorelayoutclusters($enterpriseId, $pageId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], StoreLayoutClustersListResponse::class);
}
/**
* Updates a cluster. (storelayoutclusters.update)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $pageId The ID of the page.
* @param string $clusterId The ID of the cluster.
* @param StoreCluster $postBody
* @param array $optParams Optional parameters.
* @return StoreCluster
* @throws \Google\Service\Exception
*/
public function update($enterpriseId, $pageId, $clusterId, StoreCluster $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], StoreCluster::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Storelayoutclusters::class, 'Google_Service_AndroidEnterprise_Resource_Storelayoutclusters');

View File

@@ -0,0 +1,111 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\StoreLayoutPagesListResponse;
use Google\Service\AndroidEnterprise\StorePage;
/**
* The "storelayoutpages" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $storelayoutpages = $androidenterpriseService->storelayoutpages;
* </code>
*/
class Storelayoutpages extends \Google\Service\Resource
{
/**
* Deletes a store page. (storelayoutpages.delete)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $pageId The ID of the page.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($enterpriseId, $pageId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves details of a store page. (storelayoutpages.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $pageId The ID of the page.
* @param array $optParams Optional parameters.
* @return StorePage
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $pageId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], StorePage::class);
}
/**
* Inserts a new store page. (storelayoutpages.insert)
*
* @param string $enterpriseId The ID of the enterprise.
* @param StorePage $postBody
* @param array $optParams Optional parameters.
* @return StorePage
* @throws \Google\Service\Exception
*/
public function insert($enterpriseId, StorePage $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], StorePage::class);
}
/**
* Retrieves the details of all pages in the store.
* (storelayoutpages.listStorelayoutpages)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
* @return StoreLayoutPagesListResponse
* @throws \Google\Service\Exception
*/
public function listStorelayoutpages($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], StoreLayoutPagesListResponse::class);
}
/**
* Updates the content of a store page. (storelayoutpages.update)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $pageId The ID of the page.
* @param StorePage $postBody
* @param array $optParams Optional parameters.
* @return StorePage
* @throws \Google\Service\Exception
*/
public function update($enterpriseId, $pageId, StorePage $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], StorePage::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Storelayoutpages::class, 'Google_Service_AndroidEnterprise_Resource_Storelayoutpages');

View File

@@ -0,0 +1,199 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\AuthenticationToken;
use Google\Service\AndroidEnterprise\ProductSet;
use Google\Service\AndroidEnterprise\User;
use Google\Service\AndroidEnterprise\UsersListResponse;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $users = $androidenterpriseService->users;
* </code>
*/
class Users extends \Google\Service\Resource
{
/**
* Deleted an EMM-managed user. (users.delete)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($enterpriseId, $userId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Generates an authentication token which the device policy client can use to
* provision the given EMM-managed user account on a device. The generated token
* is single-use and expires after a few minutes. You can provision a maximum of
* 10 devices per user. This call only works with EMM-managed accounts.
* (users.generateAuthenticationToken)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param array $optParams Optional parameters.
* @return AuthenticationToken
* @throws \Google\Service\Exception
*/
public function generateAuthenticationToken($enterpriseId, $userId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('generateAuthenticationToken', [$params], AuthenticationToken::class);
}
/**
* Retrieves a user's details. (users.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param array $optParams Optional parameters.
* @return User
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $userId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], User::class);
}
/**
* Retrieves the set of products a user is entitled to access. **Note:** This
* item has been deprecated. New integrations cannot use this method and can
* refer to our new recommendations. (users.getAvailableProductSet)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param array $optParams Optional parameters.
* @return ProductSet
* @throws \Google\Service\Exception
*/
public function getAvailableProductSet($enterpriseId, $userId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('getAvailableProductSet', [$params], ProductSet::class);
}
/**
* Creates a new EMM-managed user. The Users resource passed in the body of the
* request should include an accountIdentifier and an accountType. If a
* corresponding user already exists with the same account identifier, the user
* will be updated with the resource. In this case only the displayName field
* can be changed. (users.insert)
*
* @param string $enterpriseId The ID of the enterprise.
* @param User $postBody
* @param array $optParams Optional parameters.
* @return User
* @throws \Google\Service\Exception
*/
public function insert($enterpriseId, User $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], User::class);
}
/**
* Looks up a user by primary email address. This is only supported for Google-
* managed users. Lookup of the id is not needed for EMM-managed users because
* the id is already returned in the result of the Users.insert call.
* (users.listUsers)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $email Required. The exact primary email address of the user to
* look up.
* @param array $optParams Optional parameters.
* @return UsersListResponse
* @throws \Google\Service\Exception
*/
public function listUsers($enterpriseId, $email, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'email' => $email];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], UsersListResponse::class);
}
/**
* Revokes access to all devices currently provisioned to the user. The user
* will no longer be able to use the managed Play store on any of their managed
* devices. This call only works with EMM-managed accounts.
* (users.revokeDeviceAccess)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function revokeDeviceAccess($enterpriseId, $userId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('revokeDeviceAccess', [$params]);
}
/**
* Modifies the set of products that a user is entitled to access (referred to
* as *whitelisted* products). Only products that are approved or products that
* were previously approved (products with revoked approval) can be whitelisted.
* **Note:** This item has been deprecated. New integrations cannot use this
* method and can refer to our new recommendations.
* (users.setAvailableProductSet)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param ProductSet $postBody
* @param array $optParams Optional parameters.
* @return ProductSet
* @throws \Google\Service\Exception
*/
public function setAvailableProductSet($enterpriseId, $userId, ProductSet $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setAvailableProductSet', [$params], ProductSet::class);
}
/**
* Updates the details of an EMM-managed user. Can be used with EMM-managed
* users only (not Google managed users). Pass the new details in the Users
* resource in the request body. Only the displayName field can be changed.
* Other fields must either be unset or have the currently active value.
* (users.update)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $userId The ID of the user.
* @param User $postBody
* @param array $optParams Optional parameters.
* @return User
* @throws \Google\Service\Exception
*/
public function update($enterpriseId, $userId, User $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'userId' => $userId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], User::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Users::class, 'Google_Service_AndroidEnterprise_Resource_Users');

View File

@@ -0,0 +1,111 @@
<?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\AndroidEnterprise\Resource;
use Google\Service\AndroidEnterprise\WebApp;
use Google\Service\AndroidEnterprise\WebAppsListResponse;
/**
* The "webapps" collection of methods.
* Typical usage is:
* <code>
* $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
* $webapps = $androidenterpriseService->webapps;
* </code>
*/
class Webapps extends \Google\Service\Resource
{
/**
* Deletes an existing web app. (webapps.delete)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $webAppId The ID of the web app.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($enterpriseId, $webAppId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'webAppId' => $webAppId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets an existing web app. (webapps.get)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $webAppId The ID of the web app.
* @param array $optParams Optional parameters.
* @return WebApp
* @throws \Google\Service\Exception
*/
public function get($enterpriseId, $webAppId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'webAppId' => $webAppId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WebApp::class);
}
/**
* Creates a new web app for the enterprise. (webapps.insert)
*
* @param string $enterpriseId The ID of the enterprise.
* @param WebApp $postBody
* @param array $optParams Optional parameters.
* @return WebApp
* @throws \Google\Service\Exception
*/
public function insert($enterpriseId, WebApp $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], WebApp::class);
}
/**
* Retrieves the details of all web apps for a given enterprise.
* (webapps.listWebapps)
*
* @param string $enterpriseId The ID of the enterprise.
* @param array $optParams Optional parameters.
* @return WebAppsListResponse
* @throws \Google\Service\Exception
*/
public function listWebapps($enterpriseId, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], WebAppsListResponse::class);
}
/**
* Updates an existing web app. (webapps.update)
*
* @param string $enterpriseId The ID of the enterprise.
* @param string $webAppId The ID of the web app.
* @param WebApp $postBody
* @param array $optParams Optional parameters.
* @return WebApp
* @throws \Google\Service\Exception
*/
public function update($enterpriseId, $webAppId, WebApp $postBody, $optParams = [])
{
$params = ['enterpriseId' => $enterpriseId, 'webAppId' => $webAppId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], WebApp::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Webapps::class, 'Google_Service_AndroidEnterprise_Resource_Webapps');

View File

@@ -0,0 +1,68 @@
<?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\AndroidEnterprise;
class ServiceAccount extends \Google\Model
{
protected $keyType = ServiceAccountKey::class;
protected $keyDataType = '';
/**
* The account name of the service account, in the form of an email address.
* Assigned by the server.
*
* @var string
*/
public $name;
/**
* Credentials that can be used to authenticate as this ServiceAccount.
*
* @param ServiceAccountKey $key
*/
public function setKey(ServiceAccountKey $key)
{
$this->key = $key;
}
/**
* @return ServiceAccountKey
*/
public function getKey()
{
return $this->key;
}
/**
* The account name of the service account, in the form of an email address.
* Assigned by the server.
*
* @param string $name
*/
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(ServiceAccount::class, 'Google_Service_AndroidEnterprise_ServiceAccount');

View File

@@ -0,0 +1,139 @@
<?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\AndroidEnterprise;
class ServiceAccountKey extends \Google\Model
{
/**
* Google Credentials File format.
*/
public const TYPE_googleCredentials = 'googleCredentials';
/**
* PKCS12 format. The password for the PKCS12 file is 'notasecret'. For more
* information, see https://tools.ietf.org/html/rfc7292. The data for keys of
* this type are base64 encoded according to RFC 4648 Section 4. See
* http://tools.ietf.org/html/rfc4648#section-4.
*/
public const TYPE_pkcs12 = 'pkcs12';
/**
* The body of the private key credentials file, in string format. This is
* only populated when the ServiceAccountKey is created, and is not stored by
* Google.
*
* @var string
*/
public $data;
/**
* An opaque, unique identifier for this ServiceAccountKey. Assigned by the
* server.
*
* @var string
*/
public $id;
/**
* Public key data for the credentials file. This is an X.509 cert. If you are
* using the googleCredentials key type, this is identical to the cert that
* can be retrieved by using the X.509 cert url inside of the credentials
* file.
*
* @var string
*/
public $publicData;
/**
* The file format of the generated key data.
*
* @var string
*/
public $type;
/**
* The body of the private key credentials file, in string format. This is
* only populated when the ServiceAccountKey is created, and is not stored by
* Google.
*
* @param string $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* An opaque, unique identifier for this ServiceAccountKey. Assigned by the
* server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Public key data for the credentials file. This is an X.509 cert. If you are
* using the googleCredentials key type, this is identical to the cert that
* can be retrieved by using the X.509 cert url inside of the credentials
* file.
*
* @param string $publicData
*/
public function setPublicData($publicData)
{
$this->publicData = $publicData;
}
/**
* @return string
*/
public function getPublicData()
{
return $this->publicData;
}
/**
* The file format of the generated key data.
*
* Accepted values: googleCredentials, pkcs12
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceAccountKey::class, 'Google_Service_AndroidEnterprise_ServiceAccountKey');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class ServiceAccountKeysListResponse extends \Google\Collection
{
protected $collection_key = 'serviceAccountKey';
protected $serviceAccountKeyType = ServiceAccountKey::class;
protected $serviceAccountKeyDataType = 'array';
/**
* The service account credentials.
*
* @param ServiceAccountKey[] $serviceAccountKey
*/
public function setServiceAccountKey($serviceAccountKey)
{
$this->serviceAccountKey = $serviceAccountKey;
}
/**
* @return ServiceAccountKey[]
*/
public function getServiceAccountKey()
{
return $this->serviceAccountKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceAccountKeysListResponse::class, 'Google_Service_AndroidEnterprise_ServiceAccountKeysListResponse');

View File

@@ -0,0 +1,96 @@
<?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\AndroidEnterprise;
class SignupInfo extends \Google\Model
{
/**
* An opaque token that will be required, along with the Enterprise Token, for
* obtaining the enterprise resource from CompleteSignup.
*
* @var string
*/
public $completionToken;
/**
* Deprecated.
*
* @var string
*/
public $kind;
/**
* A URL under which the Admin can sign up for an enterprise. The page pointed
* to cannot be rendered in an iframe.
*
* @var string
*/
public $url;
/**
* An opaque token that will be required, along with the Enterprise Token, for
* obtaining the enterprise resource from CompleteSignup.
*
* @param string $completionToken
*/
public function setCompletionToken($completionToken)
{
$this->completionToken = $completionToken;
}
/**
* @return string
*/
public function getCompletionToken()
{
return $this->completionToken;
}
/**
* Deprecated.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* A URL under which the Admin can sign up for an enterprise. The page pointed
* to cannot be rendered in an iframe.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SignupInfo::class, 'Google_Service_AndroidEnterprise_SignupInfo');

View File

@@ -0,0 +1,125 @@
<?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\AndroidEnterprise;
class StoreCluster extends \Google\Collection
{
protected $collection_key = 'productId';
/**
* Unique ID of this cluster. Assigned by the server. Immutable once assigned.
*
* @var string
*/
public $id;
protected $nameType = LocalizedText::class;
protected $nameDataType = 'array';
/**
* String (US-ASCII only) used to determine order of this cluster within the
* parent page's elements. Page elements are sorted in lexicographic order of
* this field. Duplicated values are allowed, but ordering between elements
* with duplicate order is undefined. The value of this field is never visible
* to a user, it is used solely for the purpose of defining an ordering.
* Maximum length is 256 characters.
*
* @var string
*/
public $orderInPage;
/**
* List of products in the order they are displayed in the cluster. There
* should not be duplicates within a cluster.
*
* @var string[]
*/
public $productId;
/**
* Unique ID of this cluster. Assigned by the server. Immutable once assigned.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Ordered list of localized strings giving the name of this page. The text
* displayed is the one that best matches the user locale, or the first entry
* if there is no good match. There needs to be at least one entry.
*
* @param LocalizedText[] $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return LocalizedText[]
*/
public function getName()
{
return $this->name;
}
/**
* String (US-ASCII only) used to determine order of this cluster within the
* parent page's elements. Page elements are sorted in lexicographic order of
* this field. Duplicated values are allowed, but ordering between elements
* with duplicate order is undefined. The value of this field is never visible
* to a user, it is used solely for the purpose of defining an ordering.
* Maximum length is 256 characters.
*
* @param string $orderInPage
*/
public function setOrderInPage($orderInPage)
{
$this->orderInPage = $orderInPage;
}
/**
* @return string
*/
public function getOrderInPage()
{
return $this->orderInPage;
}
/**
* List of products in the order they are displayed in the cluster. There
* should not be duplicates within a cluster.
*
* @param string[] $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string[]
*/
public function getProductId()
{
return $this->productId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StoreCluster::class, 'Google_Service_AndroidEnterprise_StoreCluster');

View File

@@ -0,0 +1,85 @@
<?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\AndroidEnterprise;
class StoreLayout extends \Google\Model
{
public const STORE_LAYOUT_TYPE_unknown = 'unknown';
public const STORE_LAYOUT_TYPE_basic = 'basic';
public const STORE_LAYOUT_TYPE_custom = 'custom';
/**
* The ID of the store page to be used as the homepage. The homepage is the
* first page shown in the managed Google Play Store. Not specifying a
* homepage is equivalent to setting the store layout type to "basic".
*
* @var string
*/
public $homepageId;
/**
* The store layout type. By default, this value is set to "basic" if the
* homepageId field is not set, and to "custom" otherwise. If set to "basic",
* the layout will consist of all approved apps that have been whitelisted for
* the user.
*
* @var string
*/
public $storeLayoutType;
/**
* The ID of the store page to be used as the homepage. The homepage is the
* first page shown in the managed Google Play Store. Not specifying a
* homepage is equivalent to setting the store layout type to "basic".
*
* @param string $homepageId
*/
public function setHomepageId($homepageId)
{
$this->homepageId = $homepageId;
}
/**
* @return string
*/
public function getHomepageId()
{
return $this->homepageId;
}
/**
* The store layout type. By default, this value is set to "basic" if the
* homepageId field is not set, and to "custom" otherwise. If set to "basic",
* the layout will consist of all approved apps that have been whitelisted for
* the user.
*
* Accepted values: unknown, basic, custom
*
* @param self::STORE_LAYOUT_TYPE_* $storeLayoutType
*/
public function setStoreLayoutType($storeLayoutType)
{
$this->storeLayoutType = $storeLayoutType;
}
/**
* @return self::STORE_LAYOUT_TYPE_*
*/
public function getStoreLayoutType()
{
return $this->storeLayoutType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StoreLayout::class, 'Google_Service_AndroidEnterprise_StoreLayout');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class StoreLayoutClustersListResponse extends \Google\Collection
{
protected $collection_key = 'cluster';
protected $clusterType = StoreCluster::class;
protected $clusterDataType = 'array';
/**
* A store cluster of an enterprise.
*
* @param StoreCluster[] $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return StoreCluster[]
*/
public function getCluster()
{
return $this->cluster;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StoreLayoutClustersListResponse::class, 'Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse');

View File

@@ -0,0 +1,45 @@
<?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\AndroidEnterprise;
class StoreLayoutPagesListResponse extends \Google\Collection
{
protected $collection_key = 'page';
protected $pageType = StorePage::class;
protected $pageDataType = 'array';
/**
* A store page of an enterprise.
*
* @param StorePage[] $page
*/
public function setPage($page)
{
$this->page = $page;
}
/**
* @return StorePage[]
*/
public function getPage()
{
return $this->page;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StoreLayoutPagesListResponse::class, 'Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse');

View File

@@ -0,0 +1,97 @@
<?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\AndroidEnterprise;
class StorePage extends \Google\Collection
{
protected $collection_key = 'name';
/**
* Unique ID of this page. Assigned by the server. Immutable once assigned.
*
* @var string
*/
public $id;
/**
* Ordered list of pages a user should be able to reach from this page. The
* list can't include this page. It is recommended that the basic pages are
* created first, before adding the links between pages. The API doesn't
* verify that the pages exist or the pages are reachable.
*
* @var string[]
*/
public $link;
protected $nameType = LocalizedText::class;
protected $nameDataType = 'array';
/**
* Unique ID of this page. Assigned by the server. Immutable once assigned.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Ordered list of pages a user should be able to reach from this page. The
* list can't include this page. It is recommended that the basic pages are
* created first, before adding the links between pages. The API doesn't
* verify that the pages exist or the pages are reachable.
*
* @param string[] $link
*/
public function setLink($link)
{
$this->link = $link;
}
/**
* @return string[]
*/
public function getLink()
{
return $this->link;
}
/**
* Ordered list of localized strings giving the name of this page. The text
* displayed is the one that best matches the user locale, or the first entry
* if there is no good match. There needs to be at least one entry.
*
* @param LocalizedText[] $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return LocalizedText[]
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorePage::class, 'Google_Service_AndroidEnterprise_StorePage');

Some files were not shown because too many files have changed in this diff Show More