google-apis-androidenterprise_v1 0.39.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 053cf72361efca2235f4d38b7c50f3333b6203fab1c5a82a077e10203e451466
4
- data.tar.gz: af039080a88910c0f47579b68c85f9ebfb31dc801e9044a8db32d12691e916c9
3
+ metadata.gz: ced333477479d5ee2c5be75d886cf40fb612f85392f3af3fdf1d1c60d76bb2eb
4
+ data.tar.gz: da59e2cf835ea399140f6806c3827e60a0b2f3b9d7a9657547e5087e527a63d9
5
5
  SHA512:
6
- metadata.gz: 56e17491c72fe4513b2b53a769e001d20c791802cee1544199218a562c59e438042d70c89e69f027ff3b17303193fd81ef8f5555930df2f88f382e9c7d97e17b
7
- data.tar.gz: 227de2a8364c8be2f682468abddeca96cabccfe4f10497fcfc0dfa20e547f4e89c022929f9c5651021aeffb7037bffd987a87e0e63336b3505dfb44b97b1c186
6
+ metadata.gz: 2885ef608bc857a61086c0910adad615bddc37a87f6fdd193773c17765fca954545a689b8eeb4a102425ab6d016447dad139f4a7471d2c3bed5b1d64e1dfcb66
7
+ data.tar.gz: 65c5ea5c49b391715ddd40e042dde804378777c4e5c926525be4f81bd100dc7c2903535374686fc07535f516e0345cc1d69429be0a7232a951a78beb51c3f6bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-androidenterprise_v1
2
2
 
3
+ ### v0.40.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250213
6
+ * Regenerated using generator version 0.16.0
7
+
3
8
  ### v0.39.0 (2025-01-05)
4
9
 
5
10
  * Regenerated from discovery document revision 20250102
@@ -911,6 +911,11 @@ module Google
911
911
  # @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
912
912
  attr_accessor :administrator
913
913
 
914
+ # The type of the enterprise.
915
+ # Corresponds to the JSON property `enterpriseType`
916
+ # @return [String]
917
+ attr_accessor :enterprise_type
918
+
914
919
  # Contains settings for Google-provided user authentication.
915
920
  # Corresponds to the JSON property `googleAuthenticationSettings`
916
921
  # @return [Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings]
@@ -921,6 +926,11 @@ module Google
921
926
  # @return [String]
922
927
  attr_accessor :id
923
928
 
929
+ # The type of managed Google domain
930
+ # Corresponds to the JSON property `managedGoogleDomainType`
931
+ # @return [String]
932
+ attr_accessor :managed_google_domain_type
933
+
924
934
  # The name of the enterprise, for example, "Example, Inc".
925
935
  # Corresponds to the JSON property `name`
926
936
  # @return [String]
@@ -938,8 +948,10 @@ module Google
938
948
  # Update properties of this object
939
949
  def update!(**args)
940
950
  @administrator = args[:administrator] if args.key?(:administrator)
951
+ @enterprise_type = args[:enterprise_type] if args.key?(:enterprise_type)
941
952
  @google_authentication_settings = args[:google_authentication_settings] if args.key?(:google_authentication_settings)
942
953
  @id = args[:id] if args.key?(:id)
954
+ @managed_google_domain_type = args[:managed_google_domain_type] if args.key?(:managed_google_domain_type)
943
955
  @name = args[:name] if args.key?(:name)
944
956
  @primary_domain = args[:primary_domain] if args.key?(:primary_domain)
945
957
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AndroidenterpriseV1
18
18
  # Version of the google-apis-androidenterprise_v1 gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.40.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250102"
25
+ REVISION = "20250213"
26
26
  end
27
27
  end
28
28
  end
@@ -802,9 +802,11 @@ module Google
802
802
  class Representation < Google::Apis::Core::JsonRepresentation
803
803
  collection :administrator, as: 'administrator', class: Google::Apis::AndroidenterpriseV1::Administrator, decorator: Google::Apis::AndroidenterpriseV1::Administrator::Representation
804
804
 
805
+ property :enterprise_type, as: 'enterpriseType'
805
806
  property :google_authentication_settings, as: 'googleAuthenticationSettings', class: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings, decorator: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings::Representation
806
807
 
807
808
  property :id, as: 'id'
809
+ property :managed_google_domain_type, as: 'managedGoogleDomainType'
808
810
  property :name, as: 'name'
809
811
  property :primary_domain, as: 'primaryDomain'
810
812
  end
@@ -290,6 +290,42 @@ module Google
290
290
  execute_or_queue_command(command, &block)
291
291
  end
292
292
 
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
+
293
329
  # Acknowledges notifications that were received from Enterprises.
294
330
  # PullNotificationSet to prevent subsequent calls from returning the same
295
331
  # notifications.
@@ -356,42 +392,6 @@ module Google
356
392
  execute_or_queue_command(command, &block)
357
393
  end
358
394
 
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
-
395
395
  # Returns a unique token to access an embeddable UI. To generate a web UI, pass
396
396
  # the generated token into the managed Google Play javascript API. Each token
397
397
  # may only be used to start one UI session. See the JavaScript API documentation
@@ -464,7 +464,18 @@ module Google
464
464
  # Generates a sign-up URL.
465
465
  # @param [String] admin_email
466
466
  # 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.
468
479
  # @param [String] callback_url
469
480
  # The callback URL to which the Admin will be redirected after successfully
470
481
  # creating an enterprise. Before redirecting there the system will add a single
@@ -490,11 +501,12 @@ module Google
490
501
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
491
502
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
492
503
  # @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)
494
505
  command = make_simple_command(:post, 'androidenterprise/v1/enterprises/signupUrl', options)
495
506
  command.response_representation = Google::Apis::AndroidenterpriseV1::SignupInfo::Representation
496
507
  command.response_class = Google::Apis::AndroidenterpriseV1::SignupInfo
497
508
  command.query['adminEmail'] = admin_email unless admin_email.nil?
509
+ command.query['allowedDomains'] = allowed_domains unless allowed_domains.nil?
498
510
  command.query['callbackUrl'] = callback_url unless callback_url.nil?
499
511
  command.query['fields'] = fields unless fields.nil?
500
512
  command.query['quotaUser'] = quota_user unless quota_user.nil?
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androidenterprise_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-05 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidenterprise_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-androidenterprise_v1/v0.39.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidenterprise_v1/v0.40.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidenterprise_v1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Google Play EMM API V1
82
79
  test_files: []