From 9a6d8b2547e92e86f7056c15095f94180373b3c3 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:50:46 -0800 Subject: [PATCH] Regenerate androidenterprise client --- src/AndroidEnterprise.php | 5 +++++ src/AndroidEnterprise/Resource/Enterprises.php | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/AndroidEnterprise.php b/src/AndroidEnterprise.php index 15a62a129e..7ca68ad19f 100644 --- a/src/AndroidEnterprise.php +++ b/src/AndroidEnterprise.php @@ -268,6 +268,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'location' => 'query', 'type' => 'string', ], + 'allowedDomains' => [ + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ], 'callbackUrl' => [ 'location' => 'query', 'type' => 'string', diff --git a/src/AndroidEnterprise/Resource/Enterprises.php b/src/AndroidEnterprise/Resource/Enterprises.php index c8eea4084f..8eda4220ab 100644 --- a/src/AndroidEnterprise/Resource/Enterprises.php +++ b/src/AndroidEnterprise/Resource/Enterprises.php @@ -135,7 +135,16 @@ public function enroll($token, Enterprise $postBody, $optParams = []) * * @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. + * 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