Skip to content

Commit 91aa356

Browse files
feat: Automated regeneration of androidmanagement v1 client (googleapis#22000)
Auto-created at 2025-03-09 10:03:51 +0000 using the toys pull request generator.
1 parent 74ccd97 commit 91aa356

File tree

6 files changed

+134
-2
lines changed

6 files changed

+134
-2
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30719,6 +30719,12 @@
3071930719
"/androidmanagement:v1/FreezePeriod": freeze_period
3072030720
"/androidmanagement:v1/FreezePeriod/endDate": end_date
3072130721
"/androidmanagement:v1/FreezePeriod/startDate": start_date
30722+
"/androidmanagement:v1/GenerateEnterpriseUpgradeUrlRequest": generate_enterprise_upgrade_url_request
30723+
"/androidmanagement:v1/GenerateEnterpriseUpgradeUrlRequest/adminEmail": admin_email
30724+
"/androidmanagement:v1/GenerateEnterpriseUpgradeUrlRequest/allowedDomains": allowed_domains
30725+
"/androidmanagement:v1/GenerateEnterpriseUpgradeUrlRequest/allowedDomains/allowed_domain": allowed_domain
30726+
"/androidmanagement:v1/GenerateEnterpriseUpgradeUrlResponse": generate_enterprise_upgrade_url_response
30727+
"/androidmanagement:v1/GenerateEnterpriseUpgradeUrlResponse/url": url
3072230728
"/androidmanagement:v1/GoogleAuthenticationSettings": google_authentication_settings
3072330729
"/androidmanagement:v1/GoogleAuthenticationSettings/googleAuthenticationRequired": google_authentication_required
3072430730
"/androidmanagement:v1/HardwareInfo": hardware_info
@@ -31317,6 +31323,8 @@
3131731323
"/androidmanagement:v1/androidmanagement.enterprises.enrollmentTokens.list/pageSize": page_size
3131831324
"/androidmanagement:v1/androidmanagement.enterprises.enrollmentTokens.list/pageToken": page_token
3131931325
"/androidmanagement:v1/androidmanagement.enterprises.enrollmentTokens.list/parent": parent
31326+
"/androidmanagement:v1/androidmanagement.enterprises.generateEnterpriseUpgradeUrl": generate_enterprise_upgrade_url
31327+
"/androidmanagement:v1/androidmanagement.enterprises.generateEnterpriseUpgradeUrl/name": name
3132031328
"/androidmanagement:v1/androidmanagement.enterprises.get": get_enterprise
3132131329
"/androidmanagement:v1/androidmanagement.enterprises.get/name": name
3132231330
"/androidmanagement:v1/androidmanagement.enterprises.list": list_enterprises

generated/google-apis-androidmanagement_v1/CHANGELOG.md

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

3+
### v0.88.0 (2025-03-09)
4+
5+
* Regenerated from discovery document revision 20250306
6+
37
### v0.87.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250213

generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/classes.rb

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2497,6 +2497,63 @@ def update!(**args)
24972497
end
24982498
end
24992499

2500+
# Request message for generating a URL to upgrade an existing managed Google
2501+
# Play Accounts enterprise to a managed Google domain.Note: This feature is not
2502+
# generally available.
2503+
class GenerateEnterpriseUpgradeUrlRequest
2504+
include Google::Apis::Core::Hashable
2505+
2506+
# Optional. Email address used to prefill the admin field of the enterprise
2507+
# signup form as part of the upgrade process. This value is a hint only and can
2508+
# be altered by the user. Personal email addresses are not allowed. If
2509+
# allowedDomains is non-empty then this must belong to one of the allowedDomains.
2510+
# Corresponds to the JSON property `adminEmail`
2511+
# @return [String]
2512+
attr_accessor :admin_email
2513+
2514+
# Optional. A list of domains that are permitted for the admin email. The IT
2515+
# admin cannot enter an email address with a domain name that is not in this
2516+
# list. Subdomains of domains in this list are not allowed but can be allowed by
2517+
# adding a second entry which has *. prefixed to the domain name (e.g. *.example.
2518+
# com). If the field is not present or is an empty list then the IT admin is
2519+
# free to use any valid domain name. Personal email domains are not allowed.
2520+
# Corresponds to the JSON property `allowedDomains`
2521+
# @return [Array<String>]
2522+
attr_accessor :allowed_domains
2523+
2524+
def initialize(**args)
2525+
update!(**args)
2526+
end
2527+
2528+
# Update properties of this object
2529+
def update!(**args)
2530+
@admin_email = args[:admin_email] if args.key?(:admin_email)
2531+
@allowed_domains = args[:allowed_domains] if args.key?(:allowed_domains)
2532+
end
2533+
end
2534+
2535+
# Response message for generating a URL to upgrade an existing managed Google
2536+
# Play Accounts enterprise to a managed Google domain.Note: This feature is not
2537+
# generally available.
2538+
class GenerateEnterpriseUpgradeUrlResponse
2539+
include Google::Apis::Core::Hashable
2540+
2541+
# A URL for an enterprise admin to upgrade their enterprise. The page can't be
2542+
# rendered in an iframe.
2543+
# Corresponds to the JSON property `url`
2544+
# @return [String]
2545+
attr_accessor :url
2546+
2547+
def initialize(**args)
2548+
update!(**args)
2549+
end
2550+
2551+
# Update properties of this object
2552+
def update!(**args)
2553+
@url = args[:url] if args.key?(:url)
2554+
end
2555+
end
2556+
25002557
# Contains settings for Google-provided user authentication.
25012558
class GoogleAuthenticationSettings
25022559
include Google::Apis::Core::Hashable

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AndroidmanagementV1
1818
# Version of the google-apis-androidmanagement_v1 gem
19-
GEM_VERSION = "0.87.0"
19+
GEM_VERSION = "0.88.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

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

generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/representations.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
316316
include Google::Apis::Core::JsonObjectSupport
317317
end
318318

319+
class GenerateEnterpriseUpgradeUrlRequest
320+
class Representation < Google::Apis::Core::JsonRepresentation; end
321+
322+
include Google::Apis::Core::JsonObjectSupport
323+
end
324+
325+
class GenerateEnterpriseUpgradeUrlResponse
326+
class Representation < Google::Apis::Core::JsonRepresentation; end
327+
328+
include Google::Apis::Core::JsonObjectSupport
329+
end
330+
319331
class GoogleAuthenticationSettings
320332
class Representation < Google::Apis::Core::JsonRepresentation; end
321333

@@ -1452,6 +1464,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
14521464
end
14531465
end
14541466

1467+
class GenerateEnterpriseUpgradeUrlRequest
1468+
# @private
1469+
class Representation < Google::Apis::Core::JsonRepresentation
1470+
property :admin_email, as: 'adminEmail'
1471+
collection :allowed_domains, as: 'allowedDomains'
1472+
end
1473+
end
1474+
1475+
class GenerateEnterpriseUpgradeUrlResponse
1476+
# @private
1477+
class Representation < Google::Apis::Core::JsonRepresentation
1478+
property :url, as: 'url'
1479+
end
1480+
end
1481+
14551482
class GoogleAuthenticationSettings
14561483
# @private
14571484
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,42 @@ def delete_enterprise(name, fields: nil, quota_user: nil, options: nil, &block)
141141
execute_or_queue_command(command, &block)
142142
end
143143

144+
# Generates an enterprise upgrade URL to upgrade an existing managed Google Play
145+
# Accounts enterprise to a managed Google domain.Note: This feature is not
146+
# generally available.
147+
# @param [String] name
148+
# Required. The name of the enterprise to be upgraded in the form enterprises/`
149+
# enterpriseId`.
150+
# @param [Google::Apis::AndroidmanagementV1::GenerateEnterpriseUpgradeUrlRequest] generate_enterprise_upgrade_url_request_object
151+
# @param [String] fields
152+
# Selector specifying which fields to include in a partial response.
153+
# @param [String] quota_user
154+
# Available to use for quota purposes for server-side applications. Can be any
155+
# arbitrary string assigned to a user, but should not exceed 40 characters.
156+
# @param [Google::Apis::RequestOptions] options
157+
# Request-specific options
158+
#
159+
# @yield [result, err] Result & error if block supplied
160+
# @yieldparam result [Google::Apis::AndroidmanagementV1::GenerateEnterpriseUpgradeUrlResponse] parsed result object
161+
# @yieldparam err [StandardError] error object if request failed
162+
#
163+
# @return [Google::Apis::AndroidmanagementV1::GenerateEnterpriseUpgradeUrlResponse]
164+
#
165+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
166+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
167+
# @raise [Google::Apis::AuthorizationError] Authorization is required
168+
def generate_enterprise_upgrade_url(name, generate_enterprise_upgrade_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
169+
command = make_simple_command(:post, 'v1/{+name}:generateEnterpriseUpgradeUrl', options)
170+
command.request_representation = Google::Apis::AndroidmanagementV1::GenerateEnterpriseUpgradeUrlRequest::Representation
171+
command.request_object = generate_enterprise_upgrade_url_request_object
172+
command.response_representation = Google::Apis::AndroidmanagementV1::GenerateEnterpriseUpgradeUrlResponse::Representation
173+
command.response_class = Google::Apis::AndroidmanagementV1::GenerateEnterpriseUpgradeUrlResponse
174+
command.params['name'] = name unless name.nil?
175+
command.query['fields'] = fields unless fields.nil?
176+
command.query['quotaUser'] = quota_user unless quota_user.nil?
177+
execute_or_queue_command(command, &block)
178+
end
179+
144180
# Gets an enterprise.
145181
# @param [String] name
146182
# The name of the enterprise in the form enterprises/`enterpriseId`.

0 commit comments

Comments
 (0)