📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/AndroidEnterprise
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Administrator.php
▶ Open 📄 View Source
🐘 AdministratorWebToken.php
▶ Open 📄 View Source
🐘 AdministratorWebTokenSpec.php
▶ Open 📄 View Source
🐘 AdministratorWebTokenSpecManagedConfigurations.php
▶ Open 📄 View Source
🐘 AdministratorWebTokenSpecPlaySearch.php
▶ Open 📄 View Source
🐘 AdministratorWebTokenSpecPrivateApps.php
▶ Open 📄 View Source
🐘 AdministratorWebTokenSpecStoreBuilder.php
▶ Open 📄 View Source
🐘 AdministratorWebTokenSpecWebApps.php
▶ Open 📄 View Source
🐘 AdministratorWebTokenSpecZeroTouch.php
▶ Open 📄 View Source
🐘 AppRestrictionsSchema.php
▶ Open 📄 View Source
🐘 AppRestrictionsSchemaChangeEvent.php
▶ Open 📄 View Source
🐘 AppRestrictionsSchemaRestriction.php
▶ Open 📄 View Source
🐘 AppRestrictionsSchemaRestrictionRestrictionValue.php
▶ Open 📄 View Source
🐘 AppState.php
▶ Open 📄 View Source
🐘 AppUpdateEvent.php
▶ Open 📄 View Source
🐘 AppVersion.php
▶ Open 📄 View Source
🐘 ApprovalUrlInfo.php
▶ Open 📄 View Source
🐘 AuthenticationToken.php
▶ Open 📄 View Source
🐘 AutoInstallConstraint.php
▶ Open 📄 View Source
🐘 AutoInstallPolicy.php
▶ Open 📄 View Source
🐘 ConfigurationVariables.php
▶ Open 📄 View Source
🐘 CreateEnrollmentTokenResponse.php
▶ Open 📄 View Source
🐘 Device.php
▶ Open 📄 View Source
🐘 DeviceReport.php
▶ Open 📄 View Source
🐘 DeviceReportUpdateEvent.php
▶ Open 📄 View Source
🐘 DeviceState.php
▶ Open 📄 View Source
🐘 DevicesListResponse.php
▶ Open 📄 View Source
🐘 EnrollmentToken.php
▶ Open 📄 View Source
🐘 EnrollmentTokenGoogleAuthenticationOptions.php
▶ Open 📄 View Source
🐘 Enterprise.php
▶ Open 📄 View Source
🐘 EnterpriseAccount.php
▶ Open 📄 View Source
🐘 EnterpriseAuthenticationAppLinkConfig.php
▶ Open 📄 View Source
🐘 EnterpriseUpgradeEvent.php
▶ Open 📄 View Source
🐘 EnterprisesListResponse.php
▶ Open 📄 View Source
🐘 EnterprisesSendTestPushNotificationResponse.php
▶ Open 📄 View Source
🐘 Entitlement.php
▶ Open 📄 View Source
🐘 EntitlementsListResponse.php
▶ Open 📄 View Source
🐘 GenerateEnterpriseUpgradeUrlResponse.php
▶ Open 📄 View Source
🐘 GoogleAuthenticationSettings.php
▶ Open 📄 View Source
🐘 GroupLicense.php
▶ Open 📄 View Source
🐘 GroupLicenseUsersListResponse.php
▶ Open 📄 View Source
🐘 GroupLicensesListResponse.php
▶ Open 📄 View Source
🐘 Install.php
▶ Open 📄 View Source
🐘 InstallFailureEvent.php
▶ Open 📄 View Source
🐘 InstallsListResponse.php
▶ Open 📄 View Source
🐘 KeyedAppState.php
▶ Open 📄 View Source
🐘 LocalizedText.php
▶ Open 📄 View Source
🐘 MaintenanceWindow.php
▶ Open 📄 View Source
🐘 ManagedConfiguration.php
▶ Open 📄 View Source
🐘 ManagedConfigurationsForDeviceListResponse.php
▶ Open 📄 View Source
🐘 ManagedConfigurationsForUserListResponse.php
▶ Open 📄 View Source
🐘 ManagedConfigurationsSettings.php
▶ Open 📄 View Source
🐘 ManagedConfigurationsSettingsListResponse.php
▶ Open 📄 View Source
🐘 ManagedProperty.php
▶ Open 📄 View Source
🐘 ManagedPropertyBundle.php
▶ Open 📄 View Source
🐘 NewDeviceEvent.php
▶ Open 📄 View Source
🐘 NewPermissionsEvent.php
▶ Open 📄 View Source
🐘 Notification.php
▶ Open 📄 View Source
🐘 NotificationSet.php
▶ Open 📄 View Source
🐘 PageInfo.php
▶ Open 📄 View Source
🐘 Permission.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 Product.php
▶ Open 📄 View Source
🐘 ProductApprovalEvent.php
▶ Open 📄 View Source
🐘 ProductAvailabilityChangeEvent.php
▶ Open 📄 View Source
🐘 ProductPermission.php
▶ Open 📄 View Source
🐘 ProductPermissions.php
▶ Open 📄 View Source
🐘 ProductPolicy.php
▶ Open 📄 View Source
🐘 ProductSet.php
▶ Open 📄 View Source
🐘 ProductSigningCertificate.php
▶ Open 📄 View Source
🐘 ProductVisibility.php
▶ Open 📄 View Source
🐘 ProductsApproveRequest.php
▶ Open 📄 View Source
🐘 ProductsGenerateApprovalUrlResponse.php
▶ Open 📄 View Source
🐘 ProductsListResponse.php
▶ Open 📄 View Source
🐘 ServiceAccount.php
▶ Open 📄 View Source
🐘 ServiceAccountKey.php
▶ Open 📄 View Source
🐘 ServiceAccountKeysListResponse.php
▶ Open 📄 View Source
🐘 SignupInfo.php
▶ Open 📄 View Source
🐘 StoreCluster.php
▶ Open 📄 View Source
🐘 StoreLayout.php
▶ Open 📄 View Source
🐘 StoreLayoutClustersListResponse.php
▶ Open 📄 View Source
🐘 StoreLayoutPagesListResponse.php
▶ Open 📄 View Source
🐘 StorePage.php
▶ Open 📄 View Source
🐘 TokenPagination.php
▶ Open 📄 View Source
🐘 TrackInfo.php
▶ Open 📄 View Source
🐘 User.php
▶ Open 📄 View Source
🐘 UsersListResponse.php
▶ Open 📄 View Source
🐘 VariableSet.php
▶ Open 📄 View Source
🐘 WebApp.php
▶ Open 📄 View Source
🐘 WebAppIcon.php
▶ Open 📄 View Source
🐘 WebAppsListResponse.php
▶ Open 📄 View Source

📄 Source: Policy.php

<?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');
← Back