google-apis-admin_directory_v1 0.72.0 → 0.73.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: 467d5d73c391371df5cf222f7e073fbac72a1a8015d39ec0955f3607d58b4988
4
- data.tar.gz: c94fc56fb34be24349e0367d46672c6c874de785d3dfced951d4dcbe700fbc75
3
+ metadata.gz: 4a32ff2e6a3b6906965dc8fcaf183ef81d8f38e638566a8663c720835be4aece
4
+ data.tar.gz: 66ce31b75371838c68df297f3c1390de3d27f1d7f861b656f2ef2c4b2213f8db
5
5
  SHA512:
6
- metadata.gz: 24b07c14a6fbabbdc12881f32fdd0898abce2eeafeb0897aae3cb763e8ace6f184587df8f8785417c9653307eb619aad389b7dca4aee2109adcd4da4508d5604
7
- data.tar.gz: 4b0a0da5910835fe48bcad55e90f92fe29fa20f1313623fe5c87989ca75533e694d3e51946118e51f681699d2f7537d3ae056d17d5a7687d740fc902bd017dbb
6
+ metadata.gz: ce9e8c6c48e4e12817b11e9b1627d38c2e1df523da313ab5c27b63c04fe75d30a1d5239a6ec4422d80f6da9fbb19f011d62f0070fba15e0b5a9b88a4107cd432
7
+ data.tar.gz: 4bbbcc57f82612026936098cd8184f394a23d3a581479efb49692772c7632a8c009f10e7e0dd9c22d2eb81043adf47aeab4daa2a3b439649679e96c986eafe7f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-admin_directory_v1
2
2
 
3
+ ### v0.73.0 (2025-11-30)
4
+
5
+ * Regenerated from discovery document revision 20251124
6
+
3
7
  ### v0.72.0 (2025-11-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20251107
@@ -2292,6 +2292,25 @@ module Google
2292
2292
  end
2293
2293
  end
2294
2294
 
2295
+ # Directory users guest creation request message.
2296
+ class DirectoryUsersCreateGuestRequest
2297
+ include Google::Apis::Core::Hashable
2298
+
2299
+ # Immutable. External email of the guest user being created.
2300
+ # Corresponds to the JSON property `primaryGuestEmail`
2301
+ # @return [String]
2302
+ attr_accessor :primary_guest_email
2303
+
2304
+ def initialize(**args)
2305
+ update!(**args)
2306
+ end
2307
+
2308
+ # Update properties of this object
2309
+ def update!(**args)
2310
+ @primary_guest_email = args[:primary_guest_email] if args.key?(:primary_guest_email)
2311
+ end
2312
+ end
2313
+
2295
2314
  #
2296
2315
  class DomainAlias
2297
2316
  include Google::Apis::Core::Hashable
@@ -2823,6 +2842,25 @@ module Google
2823
2842
  end
2824
2843
  end
2825
2844
 
2845
+ # Account info specific to Guest users.
2846
+ class GuestAccountInfo
2847
+ include Google::Apis::Core::Hashable
2848
+
2849
+ # Immutable. The guest's external email.
2850
+ # Corresponds to the JSON property `primaryGuestEmail`
2851
+ # @return [String]
2852
+ attr_accessor :primary_guest_email
2853
+
2854
+ def initialize(**args)
2855
+ update!(**args)
2856
+ end
2857
+
2858
+ # Update properties of this object
2859
+ def update!(**args)
2860
+ @primary_guest_email = args[:primary_guest_email] if args.key?(:primary_guest_email)
2861
+ end
2862
+ end
2863
+
2826
2864
  #
2827
2865
  class ListPrintServersResponse
2828
2866
  include Google::Apis::Core::Hashable
@@ -4589,6 +4627,11 @@ module Google
4589
4627
  # @return [Object]
4590
4628
  attr_accessor :gender
4591
4629
 
4630
+ # Account info specific to Guest users.
4631
+ # Corresponds to the JSON property `guestAccountInfo`
4632
+ # @return [Google::Apis::AdminDirectoryV1::GuestAccountInfo]
4633
+ attr_accessor :guest_account_info
4634
+
4592
4635
  # Stores the hash format of the `password` property. The following `hashFunction`
4593
4636
  # values are allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` -
4594
4637
  # Accepts simple hex-encoded values. * `crypt` - Compliant with the [C crypt
@@ -4665,6 +4708,12 @@ module Google
4665
4708
  attr_accessor :is_enrolled_in2_sv
4666
4709
  alias_method :is_enrolled_in2_sv?, :is_enrolled_in2_sv
4667
4710
 
4711
+ # Immutable. Indicates if the inserted user is a guest.
4712
+ # Corresponds to the JSON property `isGuestUser`
4713
+ # @return [Boolean]
4714
+ attr_accessor :is_guest_user
4715
+ alias_method :is_guest_user?, :is_guest_user
4716
+
4668
4717
  # Output only. Indicates if the user's Google mailbox is created. This property
4669
4718
  # is only applicable if the user has been assigned a Gmail license.
4670
4719
  # Corresponds to the JSON property `isMailboxSetup`
@@ -4828,6 +4877,7 @@ module Google
4828
4877
  @etag = args[:etag] if args.key?(:etag)
4829
4878
  @external_ids = args[:external_ids] if args.key?(:external_ids)
4830
4879
  @gender = args[:gender] if args.key?(:gender)
4880
+ @guest_account_info = args[:guest_account_info] if args.key?(:guest_account_info)
4831
4881
  @hash_function = args[:hash_function] if args.key?(:hash_function)
4832
4882
  @id = args[:id] if args.key?(:id)
4833
4883
  @ims = args[:ims] if args.key?(:ims)
@@ -4837,6 +4887,7 @@ module Google
4837
4887
  @is_delegated_admin = args[:is_delegated_admin] if args.key?(:is_delegated_admin)
4838
4888
  @is_enforced_in2_sv = args[:is_enforced_in2_sv] if args.key?(:is_enforced_in2_sv)
4839
4889
  @is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv)
4890
+ @is_guest_user = args[:is_guest_user] if args.key?(:is_guest_user)
4840
4891
  @is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
4841
4892
  @keywords = args[:keywords] if args.key?(:keywords)
4842
4893
  @kind = args[:kind] if args.key?(:kind)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AdminDirectoryV1
18
18
  # Version of the google-apis-admin_directory_v1 gem
19
- GEM_VERSION = "0.72.0"
19
+ GEM_VERSION = "0.73.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251107"
25
+ REVISION = "20251124"
26
26
  end
27
27
  end
28
28
  end
@@ -340,6 +340,12 @@ module Google
340
340
  include Google::Apis::Core::JsonObjectSupport
341
341
  end
342
342
 
343
+ class DirectoryUsersCreateGuestRequest
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
343
349
  class DomainAlias
344
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
345
351
 
@@ -424,6 +430,12 @@ module Google
424
430
  include Google::Apis::Core::JsonObjectSupport
425
431
  end
426
432
 
433
+ class GuestAccountInfo
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
427
439
  class ListPrintServersResponse
428
440
  class Representation < Google::Apis::Core::JsonRepresentation; end
429
441
 
@@ -1362,6 +1374,13 @@ module Google
1362
1374
  end
1363
1375
  end
1364
1376
 
1377
+ class DirectoryUsersCreateGuestRequest
1378
+ # @private
1379
+ class Representation < Google::Apis::Core::JsonRepresentation
1380
+ property :primary_guest_email, as: 'primaryGuestEmail'
1381
+ end
1382
+ end
1383
+
1365
1384
  class DomainAlias
1366
1385
  # @private
1367
1386
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1505,6 +1524,13 @@ module Google
1505
1524
  end
1506
1525
  end
1507
1526
 
1527
+ class GuestAccountInfo
1528
+ # @private
1529
+ class Representation < Google::Apis::Core::JsonRepresentation
1530
+ property :primary_guest_email, as: 'primaryGuestEmail'
1531
+ end
1532
+ end
1533
+
1508
1534
  class ListPrintServersResponse
1509
1535
  # @private
1510
1536
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1912,6 +1938,8 @@ module Google
1912
1938
  property :etag, as: 'etag'
1913
1939
  property :external_ids, as: 'externalIds'
1914
1940
  property :gender, as: 'gender'
1941
+ property :guest_account_info, as: 'guestAccountInfo', class: Google::Apis::AdminDirectoryV1::GuestAccountInfo, decorator: Google::Apis::AdminDirectoryV1::GuestAccountInfo::Representation
1942
+
1915
1943
  property :hash_function, as: 'hashFunction'
1916
1944
  property :id, as: 'id'
1917
1945
  property :ims, as: 'ims'
@@ -1921,6 +1949,7 @@ module Google
1921
1949
  property :is_delegated_admin, as: 'isDelegatedAdmin'
1922
1950
  property :is_enforced_in2_sv, as: 'isEnforcedIn2Sv'
1923
1951
  property :is_enrolled_in2_sv, as: 'isEnrolledIn2Sv'
1952
+ property :is_guest_user, as: 'isGuestUser'
1924
1953
  property :is_mailbox_setup, as: 'isMailboxSetup'
1925
1954
  property :keywords, as: 'keywords'
1926
1955
  property :kind, as: 'kind'
@@ -3973,6 +3973,39 @@ module Google
3973
3973
  execute_or_queue_command(command, &block)
3974
3974
  end
3975
3975
 
3976
+ # Create a guest user with access to a [subset of Workspace capabilities](https:/
3977
+ # /support.google.com/a/answer/16558545?hl=en). This feature is currently in
3978
+ # Alpha. Please reach out to support if you are interested in trying this
3979
+ # feature.
3980
+ # @param [Google::Apis::AdminDirectoryV1::DirectoryUsersCreateGuestRequest] directory_users_create_guest_request_object
3981
+ # @param [String] fields
3982
+ # Selector specifying which fields to include in a partial response.
3983
+ # @param [String] quota_user
3984
+ # Available to use for quota purposes for server-side applications. Can be any
3985
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3986
+ # @param [Google::Apis::RequestOptions] options
3987
+ # Request-specific options
3988
+ #
3989
+ # @yield [result, err] Result & error if block supplied
3990
+ # @yieldparam result [Google::Apis::AdminDirectoryV1::User] parsed result object
3991
+ # @yieldparam err [StandardError] error object if request failed
3992
+ #
3993
+ # @return [Google::Apis::AdminDirectoryV1::User]
3994
+ #
3995
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3996
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3997
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3998
+ def create_user_guest(directory_users_create_guest_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3999
+ command = make_simple_command(:post, 'admin/directory/v1/users:createGuest', options)
4000
+ command.request_representation = Google::Apis::AdminDirectoryV1::DirectoryUsersCreateGuestRequest::Representation
4001
+ command.request_object = directory_users_create_guest_request_object
4002
+ command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation
4003
+ command.response_class = Google::Apis::AdminDirectoryV1::User
4004
+ command.query['fields'] = fields unless fields.nil?
4005
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4006
+ execute_or_queue_command(command, &block)
4007
+ end
4008
+
3976
4009
  # Deletes a user.
3977
4010
  # @param [String] user_key
3978
4011
  # Identifies the user in the API request. The value can be the user's primary
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-admin_directory_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.72.0
4
+ version: 0.73.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admin_directory_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.72.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.73.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admin_directory_v1
62
62
  rdoc_options: []
63
63
  require_paths: