EnrollmentTokenGoogleAuthenticationOptions.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\AndroidEnterprise;
  18. class EnrollmentTokenGoogleAuthenticationOptions extends \Google\Model
  19. {
  20. /**
  21. * The value is unused.
  22. */
  23. public const AUTHENTICATION_REQUIREMENT_authenticationRequirementUnspecified = 'authenticationRequirementUnspecified';
  24. /**
  25. * Google authentication is optional for the user. This means the user can
  26. * choose to skip Google authentication during enrollment.
  27. */
  28. public const AUTHENTICATION_REQUIREMENT_optional = 'optional';
  29. /**
  30. * Google authentication is required for the user. This means the user must
  31. * authenticate with a Google account to proceed.
  32. */
  33. public const AUTHENTICATION_REQUIREMENT_required = 'required';
  34. /**
  35. * [Optional] Specifies whether user should authenticate with Google during
  36. * enrollment. This setting, if specified,`GoogleAuthenticationSettings`
  37. * specified for the enterprise resource is ignored for devices enrolled with
  38. * this token.
  39. *
  40. * @var string
  41. */
  42. public $authenticationRequirement;
  43. /**
  44. * [Optional] Specifies the managed Google account that the user must use
  45. * during enrollment.`AuthenticationRequirement` must be set to`REQUIRED` if
  46. * this field is set.
  47. *
  48. * @var string
  49. */
  50. public $requiredAccountEmail;
  51. /**
  52. * [Optional] Specifies whether user should authenticate with Google during
  53. * enrollment. This setting, if specified,`GoogleAuthenticationSettings`
  54. * specified for the enterprise resource is ignored for devices enrolled with
  55. * this token.
  56. *
  57. * Accepted values: authenticationRequirementUnspecified, optional, required
  58. *
  59. * @param self::AUTHENTICATION_REQUIREMENT_* $authenticationRequirement
  60. */
  61. public function setAuthenticationRequirement($authenticationRequirement)
  62. {
  63. $this->authenticationRequirement = $authenticationRequirement;
  64. }
  65. /**
  66. * @return self::AUTHENTICATION_REQUIREMENT_*
  67. */
  68. public function getAuthenticationRequirement()
  69. {
  70. return $this->authenticationRequirement;
  71. }
  72. /**
  73. * [Optional] Specifies the managed Google account that the user must use
  74. * during enrollment.`AuthenticationRequirement` must be set to`REQUIRED` if
  75. * this field is set.
  76. *
  77. * @param string $requiredAccountEmail
  78. */
  79. public function setRequiredAccountEmail($requiredAccountEmail)
  80. {
  81. $this->requiredAccountEmail = $requiredAccountEmail;
  82. }
  83. /**
  84. * @return string
  85. */
  86. public function getRequiredAccountEmail()
  87. {
  88. return $this->requiredAccountEmail;
  89. }
  90. }
  91. // Adding a class alias for backwards compatibility with the previous class name.
  92. class_alias(EnrollmentTokenGoogleAuthenticationOptions::class, 'Google_Service_AndroidEnterprise_EnrollmentTokenGoogleAuthenticationOptions');