Skip to content

Commit a9bf38f

Browse files
feat: Automated regeneration of androidenterprise v1 client (googleapis#21427)
Auto-created at 2025-01-19 10:21:19 +0000 using the toys pull request generator.
1 parent dd94989 commit a9bf38f

File tree

4 files changed

+61
-41
lines changed

4 files changed

+61
-41
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29627,6 +29627,8 @@
2962729627
"/androidenterprise:v1/androidenterprise.devices.update/enterpriseId": enterprise_id
2962829628
"/androidenterprise:v1/androidenterprise.devices.update/updateMask": update_mask
2962929629
"/androidenterprise:v1/androidenterprise.devices.update/userId": user_id
29630+
"/androidenterprise:v1/androidenterprise.enrollmentTokens.create": create_enrollment_token
29631+
"/androidenterprise:v1/androidenterprise.enrollmentTokens.create/enterpriseId": enterprise_id
2963029632
"/androidenterprise:v1/androidenterprise.enterprises.acknowledgeNotificationSet": acknowledge_enterprise_notification_set
2963129633
"/androidenterprise:v1/androidenterprise.enterprises.acknowledgeNotificationSet/notificationSetId": notification_set_id
2963229634
"/androidenterprise:v1/androidenterprise.enterprises.completeSignup": complete_enterprise_signup
@@ -29646,6 +29648,7 @@
2964629648
"/androidenterprise:v1/androidenterprise.enterprises.enroll/token": token
2964729649
"/androidenterprise:v1/androidenterprise.enterprises.generateSignupUrl": generate_enterprise_signup_url
2964829650
"/androidenterprise:v1/androidenterprise.enterprises.generateSignupUrl/adminEmail": admin_email
29651+
"/androidenterprise:v1/androidenterprise.enterprises.generateSignupUrl/allowedDomains": allowed_domains
2964929652
"/androidenterprise:v1/androidenterprise.enterprises.generateSignupUrl/callbackUrl": callback_url
2965029653
"/androidenterprise:v1/androidenterprise.enterprises.get": get_enterprise
2965129654
"/androidenterprise:v1/androidenterprise.enterprises.get/enterpriseId": enterprise_id

generated/google-apis-androidenterprise_v1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-androidenterprise_v1
22

3+
### v0.40.0 (2025-01-19)
4+
5+
* Regenerated from discovery document revision 20250115
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.39.0 (2025-01-05)
49

510
* Regenerated from discovery document revision 20250102

generated/google-apis-androidenterprise_v1/lib/google/apis/androidenterprise_v1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AndroidenterpriseV1
1818
# Version of the google-apis-androidenterprise_v1 gem
19-
GEM_VERSION = "0.39.0"
19+
GEM_VERSION = "0.40.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250102"
25+
REVISION = "20250115"
2626
end
2727
end
2828
end

generated/google-apis-androidenterprise_v1/lib/google/apis/androidenterprise_v1/service.rb

Lines changed: 50 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,42 @@ def update_device(enterprise_id, user_id, device_id, device_object = nil, update
290290
execute_or_queue_command(command, &block)
291291
end
292292

293+
# Returns a token for device enrollment. The DPC can encode this token within
294+
# the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-
295+
# device API to authenticate the user. The token can be generated for each
296+
# device or reused across multiple devices.
297+
# @param [String] enterprise_id
298+
# Required. The ID of the enterprise.
299+
# @param [Google::Apis::AndroidenterpriseV1::EnrollmentToken] enrollment_token_object
300+
# @param [String] fields
301+
# Selector specifying which fields to include in a partial response.
302+
# @param [String] quota_user
303+
# Available to use for quota purposes for server-side applications. Can be any
304+
# arbitrary string assigned to a user, but should not exceed 40 characters.
305+
# @param [Google::Apis::RequestOptions] options
306+
# Request-specific options
307+
#
308+
# @yield [result, err] Result & error if block supplied
309+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EnrollmentToken] parsed result object
310+
# @yieldparam err [StandardError] error object if request failed
311+
#
312+
# @return [Google::Apis::AndroidenterpriseV1::EnrollmentToken]
313+
#
314+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316+
# @raise [Google::Apis::AuthorizationError] Authorization is required
317+
def create_enrollment_token(enterprise_id, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
318+
command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/enrollmentTokens', options)
319+
command.request_representation = Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
320+
command.request_object = enrollment_token_object
321+
command.response_representation = Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
322+
command.response_class = Google::Apis::AndroidenterpriseV1::EnrollmentToken
323+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
324+
command.query['fields'] = fields unless fields.nil?
325+
command.query['quotaUser'] = quota_user unless quota_user.nil?
326+
execute_or_queue_command(command, &block)
327+
end
328+
293329
# Acknowledges notifications that were received from Enterprises.
294330
# PullNotificationSet to prevent subsequent calls from returning the same
295331
# notifications.
@@ -356,42 +392,6 @@ def complete_enterprise_signup(completion_token: nil, enterprise_token: nil, fie
356392
execute_or_queue_command(command, &block)
357393
end
358394

359-
# Returns a token for device enrollment. The DPC can encode this token within
360-
# the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-
361-
# device API to authenticate the user. The token can be generated for each
362-
# device or reused across multiple devices.
363-
# @param [String] enterprise_id
364-
# Required. The ID of the enterprise.
365-
# @param [Google::Apis::AndroidenterpriseV1::EnrollmentToken] enrollment_token_object
366-
# @param [String] fields
367-
# Selector specifying which fields to include in a partial response.
368-
# @param [String] quota_user
369-
# Available to use for quota purposes for server-side applications. Can be any
370-
# arbitrary string assigned to a user, but should not exceed 40 characters.
371-
# @param [Google::Apis::RequestOptions] options
372-
# Request-specific options
373-
#
374-
# @yield [result, err] Result & error if block supplied
375-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EnrollmentToken] parsed result object
376-
# @yieldparam err [StandardError] error object if request failed
377-
#
378-
# @return [Google::Apis::AndroidenterpriseV1::EnrollmentToken]
379-
#
380-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
381-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
382-
# @raise [Google::Apis::AuthorizationError] Authorization is required
383-
def create_enterprise_enrollment_token(enterprise_id, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
384-
command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken', options)
385-
command.request_representation = Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
386-
command.request_object = enrollment_token_object
387-
command.response_representation = Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
388-
command.response_class = Google::Apis::AndroidenterpriseV1::EnrollmentToken
389-
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
390-
command.query['fields'] = fields unless fields.nil?
391-
command.query['quotaUser'] = quota_user unless quota_user.nil?
392-
execute_or_queue_command(command, &block)
393-
end
394-
395395
# Returns a unique token to access an embeddable UI. To generate a web UI, pass
396396
# the generated token into the managed Google Play javascript API. Each token
397397
# may only be used to start one UI session. See the JavaScript API documentation
@@ -464,7 +464,18 @@ def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: n
464464
# Generates a sign-up URL.
465465
# @param [String] admin_email
466466
# Optional. Email address used to prefill the admin field of the enterprise
467-
# signup form. This value is a hint only and can be altered by the user.
467+
# signup form. This value is a hint only and can be altered by the user. If `
468+
# allowedDomains` is non-empty then this must belong to one of the `
469+
# allowedDomains`.
470+
# @param [Array<String>, String] allowed_domains
471+
# Optional. A list of domains that are permitted for the admin email. The IT
472+
# admin cannot enter an email address with a domain name that is not in this
473+
# list. Subdomains of domains in this list are not allowed but can be allowed by
474+
# adding a second entry which has `*.` prefixed to the domain name (e.g. *.
475+
# example.com). If the field is not present or is an empty list then the IT
476+
# admin is free to use any valid domain name. Personal email domains are always
477+
# allowed, but will result in the creation of a managed Google Play Accounts
478+
# enterprise.
468479
# @param [String] callback_url
469480
# The callback URL to which the Admin will be redirected after successfully
470481
# creating an enterprise. Before redirecting there the system will add a single
@@ -490,11 +501,12 @@ def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: n
490501
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
491502
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
492503
# @raise [Google::Apis::AuthorizationError] Authorization is required
493-
def generate_enterprise_signup_url(admin_email: nil, callback_url: nil, fields: nil, quota_user: nil, options: nil, &block)
504+
def generate_enterprise_signup_url(admin_email: nil, allowed_domains: nil, callback_url: nil, fields: nil, quota_user: nil, options: nil, &block)
494505
command = make_simple_command(:post, 'androidenterprise/v1/enterprises/signupUrl', options)
495506
command.response_representation = Google::Apis::AndroidenterpriseV1::SignupInfo::Representation
496507
command.response_class = Google::Apis::AndroidenterpriseV1::SignupInfo
497508
command.query['adminEmail'] = admin_email unless admin_email.nil?
509+
command.query['allowedDomains'] = allowed_domains unless allowed_domains.nil?
498510
command.query['callbackUrl'] = callback_url unless callback_url.nil?
499511
command.query['fields'] = fields unless fields.nil?
500512
command.query['quotaUser'] = quota_user unless quota_user.nil?

0 commit comments

Comments
 (0)