📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AdbShellCommandEvent.php
▶ Open 📄 View Source
🐘 AdbShellInteractiveEvent.php
▶ Open 📄 View Source
🐘 AddEsimParams.php
▶ Open 📄 View Source
🐘 AdvancedSecurityOverrides.php
▶ Open 📄 View Source
🐘 AlwaysOnVpnPackage.php
▶ Open 📄 View Source
🐘 AndroidmanagementEmpty.php
▶ Open 📄 View Source
🐘 ApiLevelCondition.php
▶ Open 📄 View Source
🐘 ApnPolicy.php
▶ Open 📄 View Source
🐘 ApnSetting.php
▶ Open 📄 View Source
🐘 AppProcessInfo.php
▶ Open 📄 View Source
🐘 AppProcessStartEvent.php
▶ Open 📄 View Source
🐘 AppTrackInfo.php
▶ Open 📄 View Source
🐘 AppVersion.php
▶ Open 📄 View Source
🐘 Application.php
▶ Open 📄 View Source
🐘 ApplicationEvent.php
▶ Open 📄 View Source
🐘 ApplicationPermission.php
▶ Open 📄 View Source
🐘 ApplicationPolicy.php
▶ Open 📄 View Source
🐘 ApplicationPolicyChange.php
▶ Open 📄 View Source
🐘 ApplicationReport.php
▶ Open 📄 View Source
🐘 ApplicationReportingSettings.php
▶ Open 📄 View Source
🐘 ApplicationSigningKeyCert.php
▶ Open 📄 View Source
🐘 BackupServiceToggledEvent.php
▶ Open 📄 View Source
🐘 BatchUsageLogEvents.php
▶ Open 📄 View Source
🐘 BlockAction.php
▶ Open 📄 View Source
🐘 CertAuthorityInstalledEvent.php
▶ Open 📄 View Source
🐘 CertAuthorityRemovedEvent.php
▶ Open 📄 View Source
🐘 CertValidationFailureEvent.php
▶ Open 📄 View Source
🐘 ChoosePrivateKeyRule.php
▶ Open 📄 View Source
🐘 ClearAppsDataParams.php
▶ Open 📄 View Source
🐘 ClearAppsDataStatus.php
▶ Open 📄 View Source
🐘 Command.php
▶ Open 📄 View Source
🐘 CommonCriteriaModeInfo.php
▶ Open 📄 View Source
🐘 ComplianceRule.php
▶ Open 📄 View Source
🐘 ConnectEvent.php
▶ Open 📄 View Source
🐘 ContactInfo.php
▶ Open 📄 View Source
🐘 ContentProviderEndpoint.php
▶ Open 📄 View Source
🐘 CrossProfilePolicies.php
▶ Open 📄 View Source
🐘 CryptoSelfTestCompletedEvent.php
▶ Open 📄 View Source
🐘 CustomAppConfig.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 DefaultApplication.php
▶ Open 📄 View Source
🐘 DefaultApplicationContext.php
▶ Open 📄 View Source
🐘 DefaultApplicationInfo.php
▶ Open 📄 View Source
🐘 DefaultApplicationSetting.php
▶ Open 📄 View Source
🐘 DefaultApplicationSettingAttempt.php
▶ Open 📄 View Source
🐘 Device.php
▶ Open 📄 View Source
🐘 DeviceConnectivityManagement.php
▶ Open 📄 View Source
🐘 DeviceRadioState.php
▶ Open 📄 View Source
🐘 DeviceSettings.php
▶ Open 📄 View Source
🐘 Display.php
▶ Open 📄 View Source
🐘 DisplaySettings.php
▶ Open 📄 View Source
🐘 DnsEvent.php
▶ Open 📄 View Source
🐘 DpcMigrationInfo.php
▶ Open 📄 View Source
🐘 Eid.php
▶ Open 📄 View Source
🐘 EidInfo.php
▶ Open 📄 View Source
🐘 EnrollmentCompleteEvent.php
▶ Open 📄 View Source
🐘 EnrollmentToken.php
▶ Open 📄 View Source
🐘 Enterprise.php
▶ Open 📄 View Source
🐘 EnterpriseUpgradeEvent.php
▶ Open 📄 View Source
🐘 EsimCommandStatus.php
▶ Open 📄 View Source
🐘 EsimInfo.php
▶ Open 📄 View Source
🐘 EuiccChipInfo.php
▶ Open 📄 View Source
🐘 ExtensionConfig.php
▶ Open 📄 View Source
🐘 ExternalData.php
▶ Open 📄 View Source
🐘 FilePulledEvent.php
▶ Open 📄 View Source
🐘 FilePushedEvent.php
▶ Open 📄 View Source
🐘 FreezePeriod.php
▶ Open 📄 View Source
🐘 GenerateEnterpriseUpgradeUrlRequest.php
▶ Open 📄 View Source
🐘 GenerateEnterpriseUpgradeUrlResponse.php
▶ Open 📄 View Source
🐘 GoogleAuthenticationSettings.php
▶ Open 📄 View Source
🐘 HardwareInfo.php
▶ Open 📄 View Source
🐘 HardwareStatus.php
▶ Open 📄 View Source
🐘 InstallConstraint.php
▶ Open 📄 View Source
🐘 InternalErrorDetails.php
▶ Open 📄 View Source
🐘 IssueCommandResponse.php
▶ Open 📄 View Source
🐘 KeyDestructionEvent.php
▶ Open 📄 View Source
🐘 KeyGeneratedEvent.php
▶ Open 📄 View Source
🐘 KeyImportEvent.php
▶ Open 📄 View Source
🐘 KeyIntegrityViolationEvent.php
▶ Open 📄 View Source
🐘 KeyedAppState.php
▶ Open 📄 View Source
🐘 KeyguardDismissAuthAttemptEvent.php
▶ Open 📄 View Source
🐘 KeyguardDismissedEvent.php
▶ Open 📄 View Source
🐘 KeyguardSecuredEvent.php
▶ Open 📄 View Source
🐘 KioskCustomization.php
▶ Open 📄 View Source
🐘 LaunchAppAction.php
▶ Open 📄 View Source
🐘 ListDevicesResponse.php
▶ Open 📄 View Source
🐘 ListEnrollmentTokensResponse.php
▶ Open 📄 View Source
🐘 ListEnterprisesResponse.php
▶ Open 📄 View Source
🐘 ListMigrationTokensResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListWebAppsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LogBufferSizeCriticalEvent.php
▶ Open 📄 View Source
🐘 LoggingStartedEvent.php
▶ Open 📄 View Source
🐘 LoggingStoppedEvent.php
▶ Open 📄 View Source
🐘 LostModeLocationEvent.php
▶ Open 📄 View Source
🐘 LostModeOutgoingPhoneCallEvent.php
▶ Open 📄 View Source
🐘 ManagedConfigurationTemplate.php
▶ Open 📄 View Source
🐘 ManagedProperty.php
▶ Open 📄 View Source
🐘 ManagedPropertyEntry.php
▶ Open 📄 View Source
🐘 MediaMountEvent.php
▶ Open 📄 View Source
🐘 MediaUnmountEvent.php
▶ Open 📄 View Source
🐘 MemoryEvent.php
▶ Open 📄 View Source
🐘 MemoryInfo.php
▶ Open 📄 View Source
🐘 MigrationToken.php
▶ Open 📄 View Source
🐘 ModifyPolicyApplicationsRequest.php
▶ Open 📄 View Source
🐘 ModifyPolicyApplicationsResponse.php
▶ Open 📄 View Source
🐘 NetworkInfo.php
▶ Open 📄 View Source
🐘 NonComplianceDetail.php
▶ Open 📄 View Source
🐘 NonComplianceDetailCondition.php
▶ Open 📄 View Source
🐘 OncCertificateProvider.php
▶ Open 📄 View Source
🐘 OncWifiContext.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OsShutdownEvent.php
▶ Open 📄 View Source
🐘 OsStartupEvent.php
▶ Open 📄 View Source
🐘 PackageNameList.php
▶ Open 📄 View Source
🐘 PasswordPoliciesContext.php
▶ Open 📄 View Source
🐘 PasswordRequirements.php
▶ Open 📄 View Source
🐘 PerAppResult.php
▶ Open 📄 View Source
🐘 PermissionGrant.php
▶ Open 📄 View Source
🐘 PersistentPreferredActivity.php
▶ Open 📄 View Source
🐘 PersonalApplicationPolicy.php
▶ Open 📄 View Source
🐘 PersonalUsagePolicies.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 PolicyEnforcementRule.php
▶ Open 📄 View Source
🐘 PostureDetail.php
▶ Open 📄 View Source
🐘 PowerManagementEvent.php
▶ Open 📄 View Source
🐘 PreferentialNetworkServiceConfig.php
▶ Open 📄 View Source
🐘 PreferentialNetworkServiceSettings.php
▶ Open 📄 View Source
🐘 PrivateDnsSettings.php
▶ Open 📄 View Source
🐘 ProvisioningInfo.php
▶ Open 📄 View Source
🐘 ProxyInfo.php
▶ Open 📄 View Source
🐘 RemoteLockEvent.php
▶ Open 📄 View Source
🐘 RemoveEsimParams.php
▶ Open 📄 View Source
🐘 RemovePolicyApplicationsRequest.php
▶ Open 📄 View Source
🐘 RemovePolicyApplicationsResponse.php
▶ Open 📄 View Source
🐘 RequestDeviceInfoParams.php
▶ Open 📄 View Source
🐘 RequestDeviceInfoStatus.php
▶ Open 📄 View Source
🐘 Role.php
▶ Open 📄 View Source
🐘 ScreenBrightnessSettings.php
▶ Open 📄 View Source
🐘 ScreenTimeoutSettings.php
▶ Open 📄 View Source
🐘 SecurityPosture.php
▶ Open 📄 View Source
🐘 SetupAction.php
▶ Open 📄 View Source
🐘 SigninDetail.php
▶ Open 📄 View Source
🐘 SignupUrl.php
▶ Open 📄 View Source
🐘 SoftwareInfo.php
▶ Open 📄 View Source
🐘 SpecificNonComplianceContext.php
▶ Open 📄 View Source
🐘 StartLostModeParams.php
▶ Open 📄 View Source
🐘 StartLostModeStatus.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StatusReportingSettings.php
▶ Open 📄 View Source
🐘 StopLostModeParams.php
▶ Open 📄 View Source
🐘 StopLostModeStatus.php
▶ Open 📄 View Source
🐘 StopLostModeUserAttemptEvent.php
▶ Open 📄 View Source
🐘 SystemUpdate.php
▶ Open 📄 View Source
🐘 SystemUpdateInfo.php
▶ Open 📄 View Source
🐘 TelephonyInfo.php
▶ Open 📄 View Source
🐘 TermsAndConditions.php
▶ Open 📄 View Source
🐘 UsageLog.php
▶ Open 📄 View Source
🐘 UsageLogEvent.php
▶ Open 📄 View Source
🐘 User.php
▶ Open 📄 View Source
🐘 UserFacingMessage.php
▶ Open 📄 View Source
🐘 WebApp.php
▶ Open 📄 View Source
🐘 WebAppIcon.php
▶ Open 📄 View Source
🐘 WebToken.php
▶ Open 📄 View Source
🐘 WifiRoamingPolicy.php
▶ Open 📄 View Source
🐘 WifiRoamingSetting.php
▶ Open 📄 View Source
🐘 WifiSsid.php
▶ Open 📄 View Source
🐘 WifiSsidPolicy.php
▶ Open 📄 View Source
🐘 WipeAction.php
▶ Open 📄 View Source
🐘 WipeFailureEvent.php
▶ Open 📄 View Source
🐘 WipeParams.php
▶ Open 📄 View Source
🐘 WorkAccountSetupConfig.php
▶ Open 📄 View Source

📄 Source: MigrationToken.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\AndroidManagement;

class MigrationToken extends \Google\Model
{
  /**
   * This value must not be used.
   */
  public const MANAGEMENT_MODE_MANAGEMENT_MODE_UNSPECIFIED = 'MANAGEMENT_MODE_UNSPECIFIED';
  /**
   * A work profile on a personally owned device. Supported only on devices
   * running Android 9 and above.
   */
  public const MANAGEMENT_MODE_WORK_PROFILE_PERSONALLY_OWNED = 'WORK_PROFILE_PERSONALLY_OWNED';
  /**
   * A work profile on a company-owned device. Supported only on devices running
   * Android 11 and above.
   */
  public const MANAGEMENT_MODE_WORK_PROFILE_COMPANY_OWNED = 'WORK_PROFILE_COMPANY_OWNED';
  /**
   * A fully-managed device. Supported only on devices running Android 9 and
   * above.
   */
  public const MANAGEMENT_MODE_FULLY_MANAGED = 'FULLY_MANAGED';
  /**
   * Immutable. Optional EMM-specified additional data. Once the device is
   * migrated this will be populated in the migrationAdditionalData field of the
   * Device resource. This must be at most 1024 characters.
   *
   * @var string
   */
  public $additionalData;
  /**
   * Output only. Time when this migration token was created.
   *
   * @var string
   */
  public $createTime;
  /**
   * Output only. Once this migration token is used to migrate a device, the
   * name of the resulting Device resource will be populated here, in the form
   * enterprises/{enterprise}/devices/{device}.
   *
   * @var string
   */
  public $device;
  /**
   * Required. Immutable. The id of the device, as in the Play EMM API. This
   * corresponds to the deviceId parameter in Play EMM API's Devices.get
   * (https://developers.google.com/android/work/play/emm-
   * api/v1/devices/get#parameters) call.
   *
   * @var string
   */
  public $deviceId;
  /**
   * Immutable. The time when this migration token expires. This can be at most
   * seven days from the time of creation. The migration token is deleted seven
   * days after it expires.
   *
   * @var string
   */
  public $expireTime;
  /**
   * Required. Immutable. The management mode of the device or profile being
   * migrated.
   *
   * @var string
   */
  public $managementMode;
  /**
   * Output only. The name of the migration token, which is generated by the
   * server during creation, in the form
   * enterprises/{enterprise}/migrationTokens/{migration_token}.
   *
   * @var string
   */
  public $name;
  /**
   * Required. Immutable. The name of the policy initially applied to the
   * enrolled device, in the form enterprises/{enterprise}/policies/{policy}.
   *
   * @var string
   */
  public $policy;
  /**
   * Input only. The time that this migration token is valid for. This is input-
   * only, and for returning a migration token the server will populate the
   * expireTime field. This can be at most seven days. The default is seven
   * days.
   *
   * @var string
   */
  public $ttl;
  /**
   * Required. Immutable. The user id of the Managed Google Play account on the
   * device, as in the Play EMM API. This corresponds to the userId parameter in
   * Play EMM API's Devices.get
   * (https://developers.google.com/android/work/play/emm-
   * api/v1/devices/get#parameters) call.
   *
   * @var string
   */
  public $userId;
  /**
   * Output only. The value of the migration token.
   *
   * @var string
   */
  public $value;

  /**
   * Immutable. Optional EMM-specified additional data. Once the device is
   * migrated this will be populated in the migrationAdditionalData field of the
   * Device resource. This must be at most 1024 characters.
   *
   * @param string $additionalData
   */
  public function setAdditionalData($additionalData)
  {
    $this->additionalData = $additionalData;
  }
  /**
   * @return string
   */
  public function getAdditionalData()
  {
    return $this->additionalData;
  }
  /**
   * Output only. Time when this migration token was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Output only. Once this migration token is used to migrate a device, the
   * name of the resulting Device resource will be populated here, in the form
   * enterprises/{enterprise}/devices/{device}.
   *
   * @param string $device
   */
  public function setDevice($device)
  {
    $this->device = $device;
  }
  /**
   * @return string
   */
  public function getDevice()
  {
    return $this->device;
  }
  /**
   * Required. Immutable. The id of the device, as in the Play EMM API. This
   * corresponds to the deviceId parameter in Play EMM API's Devices.get
   * (https://developers.google.com/android/work/play/emm-
   * api/v1/devices/get#parameters) call.
   *
   * @param string $deviceId
   */
  public function setDeviceId($deviceId)
  {
    $this->deviceId = $deviceId;
  }
  /**
   * @return string
   */
  public function getDeviceId()
  {
    return $this->deviceId;
  }
  /**
   * Immutable. The time when this migration token expires. This can be at most
   * seven days from the time of creation. The migration token is deleted seven
   * days after it expires.
   *
   * @param string $expireTime
   */
  public function setExpireTime($expireTime)
  {
    $this->expireTime = $expireTime;
  }
  /**
   * @return string
   */
  public function getExpireTime()
  {
    return $this->expireTime;
  }
  /**
   * Required. Immutable. The management mode of the device or profile being
   * migrated.
   *
   * Accepted values: MANAGEMENT_MODE_UNSPECIFIED,
   * WORK_PROFILE_PERSONALLY_OWNED, WORK_PROFILE_COMPANY_OWNED, FULLY_MANAGED
   *
   * @param self::MANAGEMENT_MODE_* $managementMode
   */
  public function setManagementMode($managementMode)
  {
    $this->managementMode = $managementMode;
  }
  /**
   * @return self::MANAGEMENT_MODE_*
   */
  public function getManagementMode()
  {
    return $this->managementMode;
  }
  /**
   * Output only. The name of the migration token, which is generated by the
   * server during creation, in the form
   * enterprises/{enterprise}/migrationTokens/{migration_token}.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Required. Immutable. The name of the policy initially applied to the
   * enrolled device, in the form enterprises/{enterprise}/policies/{policy}.
   *
   * @param string $policy
   */
  public function setPolicy($policy)
  {
    $this->policy = $policy;
  }
  /**
   * @return string
   */
  public function getPolicy()
  {
    return $this->policy;
  }
  /**
   * Input only. The time that this migration token is valid for. This is input-
   * only, and for returning a migration token the server will populate the
   * expireTime field. This can be at most seven days. The default is seven
   * days.
   *
   * @param string $ttl
   */
  public function setTtl($ttl)
  {
    $this->ttl = $ttl;
  }
  /**
   * @return string
   */
  public function getTtl()
  {
    return $this->ttl;
  }
  /**
   * Required. Immutable. The user id of the Managed Google Play account on the
   * device, as in the Play EMM API. This corresponds to the userId parameter in
   * Play EMM API's Devices.get
   * (https://developers.google.com/android/work/play/emm-
   * api/v1/devices/get#parameters) call.
   *
   * @param string $userId
   */
  public function setUserId($userId)
  {
    $this->userId = $userId;
  }
  /**
   * @return string
   */
  public function getUserId()
  {
    return $this->userId;
  }
  /**
   * Output only. The value of the migration token.
   *
   * @param string $value
   */
  public function setValue($value)
  {
    $this->value = $value;
  }
  /**
   * @return string
   */
  public function getValue()
  {
    return $this->value;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MigrationToken::class, 'Google_Service_AndroidManagement_MigrationToken');
← Back