google-apis-androidenterprise_v1 0.38.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: b5d380f4e55c662f8d65540349f4778ff77a668ed0b1fc1a1aed982f62d25037
4
- data.tar.gz: 365facfd13fd33c87d5c32138a137c967ad2b41638f59dbf4f49641100aa97ab
3
+ metadata.gz: ced333477479d5ee2c5be75d886cf40fb612f85392f3af3fdf1d1c60d76bb2eb
4
+ data.tar.gz: da59e2cf835ea399140f6806c3827e60a0b2f3b9d7a9657547e5087e527a63d9
5
5
  SHA512:
6
- metadata.gz: a92195012197080b40e3c356e0042ced85b9de6afa1a3a673ea9f492a3a551c08186f7e635ba6ba1280d165557509896a49634205447483e4ea03bbed0e69ca3
7
- data.tar.gz: 287e12bf295f94a22e3b8afaef1401a0a5dbc142ca97a1a9d8ba038aeee4c3f0b1e125eb36bfcf05341441ef8c9e5a57abe3bef8df47926bfcde7075328c97f7
6
+ metadata.gz: 2885ef608bc857a61086c0910adad615bddc37a87f6fdd193773c17765fca954545a689b8eeb4a102425ab6d016447dad139f4a7471d2c3bed5b1d64e1dfcb66
7
+ data.tar.gz: 65c5ea5c49b391715ddd40e042dde804378777c4e5c926525be4f81bd100dc7c2903535374686fc07535f516e0345cc1d69429be0a7232a951a78beb51c3f6bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ ### v0.39.0 (2025-01-05)
9
+
10
+ * Regenerated from discovery document revision 20250102
11
+
3
12
  ### v0.38.0 (2024-11-17)
4
13
 
5
14
  * Regenerated from discovery document revision 20241113
@@ -663,31 +663,6 @@ module Google
663
663
  end
664
664
  end
665
665
 
666
- # Response message for create enrollment token.
667
- class CreateEnrollmentTokenResponse
668
- include Google::Apis::Core::Hashable
669
-
670
- # Deprecated: Use token instead. This field will be removed in the future.
671
- # Corresponds to the JSON property `enrollmentToken`
672
- # @return [String]
673
- attr_accessor :enrollment_token
674
-
675
- # A token used to enroll a device.
676
- # Corresponds to the JSON property `token`
677
- # @return [Google::Apis::AndroidenterpriseV1::EnrollmentToken]
678
- attr_accessor :token
679
-
680
- def initialize(**args)
681
- update!(**args)
682
- end
683
-
684
- # Update properties of this object
685
- def update!(**args)
686
- @enrollment_token = args[:enrollment_token] if args.key?(:enrollment_token)
687
- @token = args[:token] if args.key?(:token)
688
- end
689
- end
690
-
691
666
  # A Devices resource represents a mobile device managed by the EMM and belonging
692
667
  # to a specific enterprise user.
693
668
  class Device
@@ -936,6 +911,11 @@ module Google
936
911
  # @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
937
912
  attr_accessor :administrator
938
913
 
914
+ # The type of the enterprise.
915
+ # Corresponds to the JSON property `enterpriseType`
916
+ # @return [String]
917
+ attr_accessor :enterprise_type
918
+
939
919
  # Contains settings for Google-provided user authentication.
940
920
  # Corresponds to the JSON property `googleAuthenticationSettings`
941
921
  # @return [Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings]
@@ -946,6 +926,11 @@ module Google
946
926
  # @return [String]
947
927
  attr_accessor :id
948
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
+
949
934
  # The name of the enterprise, for example, "Example, Inc".
950
935
  # Corresponds to the JSON property `name`
951
936
  # @return [String]
@@ -963,8 +948,10 @@ module Google
963
948
  # Update properties of this object
964
949
  def update!(**args)
965
950
  @administrator = args[:administrator] if args.key?(:administrator)
951
+ @enterprise_type = args[:enterprise_type] if args.key?(:enterprise_type)
966
952
  @google_authentication_settings = args[:google_authentication_settings] if args.key?(:google_authentication_settings)
967
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)
968
955
  @name = args[:name] if args.key?(:name)
969
956
  @primary_domain = args[:primary_domain] if args.key?(:primary_domain)
970
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.38.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 = "20241113"
25
+ REVISION = "20250213"
26
26
  end
27
27
  end
28
28
  end
@@ -148,12 +148,6 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class CreateEnrollmentTokenResponse
152
- class Representation < Google::Apis::Core::JsonRepresentation; end
153
-
154
- include Google::Apis::Core::JsonObjectSupport
155
- end
156
-
157
151
  class Device
158
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
153
 
@@ -741,15 +735,6 @@ module Google
741
735
  end
742
736
  end
743
737
 
744
- class CreateEnrollmentTokenResponse
745
- # @private
746
- class Representation < Google::Apis::Core::JsonRepresentation
747
- property :enrollment_token, as: 'enrollmentToken'
748
- property :token, as: 'token', class: Google::Apis::AndroidenterpriseV1::EnrollmentToken, decorator: Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
749
-
750
- end
751
- end
752
-
753
738
  class Device
754
739
  # @private
755
740
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -817,9 +802,11 @@ module Google
817
802
  class Representation < Google::Apis::Core::JsonRepresentation
818
803
  collection :administrator, as: 'administrator', class: Google::Apis::AndroidenterpriseV1::Administrator, decorator: Google::Apis::AndroidenterpriseV1::Administrator::Representation
819
804
 
805
+ property :enterprise_type, as: 'enterpriseType'
820
806
  property :google_authentication_settings, as: 'googleAuthenticationSettings', class: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings, decorator: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings::Representation
821
807
 
822
808
  property :id, as: 'id'
809
+ property :managed_google_domain_type, as: 'managedGoogleDomainType'
823
810
  property :name, as: 'name'
824
811
  property :primary_domain, as: 'primaryDomain'
825
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,56 +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 [String] device_type
366
- # Deprecated: Use enrollment_token instead. this field will be removed in the
367
- # future.
368
- # @param [String] enrollment_token_duration
369
- # [Optional] The length of time the enrollment token is valid, ranging from 1
370
- # minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
371
- # buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),
372
- # approximately 10,000 years. If not specified, the default duration is 1 hour.
373
- # @param [String] enrollment_token_enrollment_token_type
374
- # [Required] The type of the enrollment token.
375
- # @param [String] enrollment_token_token
376
- # The token value that's passed to the device and authorizes the device to
377
- # enroll. This is a read-only field generated by the server.
378
- # @param [String] fields
379
- # Selector specifying which fields to include in a partial response.
380
- # @param [String] quota_user
381
- # Available to use for quota purposes for server-side applications. Can be any
382
- # arbitrary string assigned to a user, but should not exceed 40 characters.
383
- # @param [Google::Apis::RequestOptions] options
384
- # Request-specific options
385
- #
386
- # @yield [result, err] Result & error if block supplied
387
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse] parsed result object
388
- # @yieldparam err [StandardError] error object if request failed
389
- #
390
- # @return [Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse]
391
- #
392
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
393
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
394
- # @raise [Google::Apis::AuthorizationError] Authorization is required
395
- def create_enterprise_enrollment_token(enterprise_id, device_type: nil, enrollment_token_duration: nil, enrollment_token_enrollment_token_type: nil, enrollment_token_token: nil, fields: nil, quota_user: nil, options: nil, &block)
396
- command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken', options)
397
- command.response_representation = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse::Representation
398
- command.response_class = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse
399
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
400
- command.query['deviceType'] = device_type unless device_type.nil?
401
- command.query['enrollmentToken.duration'] = enrollment_token_duration unless enrollment_token_duration.nil?
402
- command.query['enrollmentToken.enrollmentTokenType'] = enrollment_token_enrollment_token_type unless enrollment_token_enrollment_token_type.nil?
403
- command.query['enrollmentToken.token'] = enrollment_token_token unless enrollment_token_token.nil?
404
- command.query['fields'] = fields unless fields.nil?
405
- command.query['quotaUser'] = quota_user unless quota_user.nil?
406
- execute_or_queue_command(command, &block)
407
- end
408
-
409
395
  # Returns a unique token to access an embeddable UI. To generate a web UI, pass
410
396
  # the generated token into the managed Google Play javascript API. Each token
411
397
  # may only be used to start one UI session. See the JavaScript API documentation
@@ -478,7 +464,18 @@ module Google
478
464
  # Generates a sign-up URL.
479
465
  # @param [String] admin_email
480
466
  # Optional. Email address used to prefill the admin field of the enterprise
481
- # 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.
482
479
  # @param [String] callback_url
483
480
  # The callback URL to which the Admin will be redirected after successfully
484
481
  # creating an enterprise. Before redirecting there the system will add a single
@@ -504,11 +501,12 @@ module Google
504
501
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
505
502
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
503
  # @raise [Google::Apis::AuthorizationError] Authorization is required
507
- 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)
508
505
  command = make_simple_command(:post, 'androidenterprise/v1/enterprises/signupUrl', options)
509
506
  command.response_representation = Google::Apis::AndroidenterpriseV1::SignupInfo::Representation
510
507
  command.response_class = Google::Apis::AndroidenterpriseV1::SignupInfo
511
508
  command.query['adminEmail'] = admin_email unless admin_email.nil?
509
+ command.query['allowedDomains'] = allowed_domains unless allowed_domains.nil?
512
510
  command.query['callbackUrl'] = callback_url unless callback_url.nil?
513
511
  command.query['fields'] = fields unless fields.nil?
514
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.38.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: 2024-12-04 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.38.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.22
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: []