google-apis-admin_directory_v1 0.72.0 → 0.74.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/admin_directory_v1/classes.rb +57 -0
- data/lib/google/apis/admin_directory_v1/gem_version.rb +2 -2
- data/lib/google/apis/admin_directory_v1/representations.rb +30 -0
- data/lib/google/apis/admin_directory_v1/service.rb +33 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bfc44787b5f8ff16ab2639a16915bea464600ce67cb5305f19e310b5fc5b9843
|
|
4
|
+
data.tar.gz: 64015d5d89df9559341b6c2bcd17b98e7cf4b65e808d27f244bc2c6519d201c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dddcd1f4ea8f6d4013349507666e685bd854ed4c480e77f57dfb93418a054cf094b3a1679a5cfb7e1202f5353b8a7519635f3665828fb2890eba9de64734d78d
|
|
7
|
+
data.tar.gz: 96c2c8366a4723326e57b1f1fc3cb8ea1c103eb6dccf534196f91ac4602d46afcc2c1c0d6fb478a2624522394f1e742b3791d43c64a84e3cb8a4951c92a1ede8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-admin_directory_v1
|
|
2
2
|
|
|
3
|
+
### v0.74.0 (2026-01-18)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260113
|
|
6
|
+
|
|
7
|
+
### v0.73.0 (2025-11-30)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20251124
|
|
10
|
+
|
|
3
11
|
### v0.72.0 (2025-11-16)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20251107
|
|
@@ -2292,6 +2292,31 @@ 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
|
+
# Optional. Immutable ID of the Google Workspace account.
|
|
2300
|
+
# Corresponds to the JSON property `customer`
|
|
2301
|
+
# @return [String]
|
|
2302
|
+
attr_accessor :customer
|
|
2303
|
+
|
|
2304
|
+
# Immutable. External email of the guest user being created.
|
|
2305
|
+
# Corresponds to the JSON property `primaryGuestEmail`
|
|
2306
|
+
# @return [String]
|
|
2307
|
+
attr_accessor :primary_guest_email
|
|
2308
|
+
|
|
2309
|
+
def initialize(**args)
|
|
2310
|
+
update!(**args)
|
|
2311
|
+
end
|
|
2312
|
+
|
|
2313
|
+
# Update properties of this object
|
|
2314
|
+
def update!(**args)
|
|
2315
|
+
@customer = args[:customer] if args.key?(:customer)
|
|
2316
|
+
@primary_guest_email = args[:primary_guest_email] if args.key?(:primary_guest_email)
|
|
2317
|
+
end
|
|
2318
|
+
end
|
|
2319
|
+
|
|
2295
2320
|
#
|
|
2296
2321
|
class DomainAlias
|
|
2297
2322
|
include Google::Apis::Core::Hashable
|
|
@@ -2823,6 +2848,25 @@ module Google
|
|
|
2823
2848
|
end
|
|
2824
2849
|
end
|
|
2825
2850
|
|
|
2851
|
+
# Account info specific to Guest users.
|
|
2852
|
+
class GuestAccountInfo
|
|
2853
|
+
include Google::Apis::Core::Hashable
|
|
2854
|
+
|
|
2855
|
+
# Immutable. The guest's external email.
|
|
2856
|
+
# Corresponds to the JSON property `primaryGuestEmail`
|
|
2857
|
+
# @return [String]
|
|
2858
|
+
attr_accessor :primary_guest_email
|
|
2859
|
+
|
|
2860
|
+
def initialize(**args)
|
|
2861
|
+
update!(**args)
|
|
2862
|
+
end
|
|
2863
|
+
|
|
2864
|
+
# Update properties of this object
|
|
2865
|
+
def update!(**args)
|
|
2866
|
+
@primary_guest_email = args[:primary_guest_email] if args.key?(:primary_guest_email)
|
|
2867
|
+
end
|
|
2868
|
+
end
|
|
2869
|
+
|
|
2826
2870
|
#
|
|
2827
2871
|
class ListPrintServersResponse
|
|
2828
2872
|
include Google::Apis::Core::Hashable
|
|
@@ -4589,6 +4633,11 @@ module Google
|
|
|
4589
4633
|
# @return [Object]
|
|
4590
4634
|
attr_accessor :gender
|
|
4591
4635
|
|
|
4636
|
+
# Account info specific to Guest users.
|
|
4637
|
+
# Corresponds to the JSON property `guestAccountInfo`
|
|
4638
|
+
# @return [Google::Apis::AdminDirectoryV1::GuestAccountInfo]
|
|
4639
|
+
attr_accessor :guest_account_info
|
|
4640
|
+
|
|
4592
4641
|
# Stores the hash format of the `password` property. The following `hashFunction`
|
|
4593
4642
|
# values are allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` -
|
|
4594
4643
|
# Accepts simple hex-encoded values. * `crypt` - Compliant with the [C crypt
|
|
@@ -4665,6 +4714,12 @@ module Google
|
|
|
4665
4714
|
attr_accessor :is_enrolled_in2_sv
|
|
4666
4715
|
alias_method :is_enrolled_in2_sv?, :is_enrolled_in2_sv
|
|
4667
4716
|
|
|
4717
|
+
# Immutable. Indicates if the inserted user is a guest.
|
|
4718
|
+
# Corresponds to the JSON property `isGuestUser`
|
|
4719
|
+
# @return [Boolean]
|
|
4720
|
+
attr_accessor :is_guest_user
|
|
4721
|
+
alias_method :is_guest_user?, :is_guest_user
|
|
4722
|
+
|
|
4668
4723
|
# Output only. Indicates if the user's Google mailbox is created. This property
|
|
4669
4724
|
# is only applicable if the user has been assigned a Gmail license.
|
|
4670
4725
|
# Corresponds to the JSON property `isMailboxSetup`
|
|
@@ -4828,6 +4883,7 @@ module Google
|
|
|
4828
4883
|
@etag = args[:etag] if args.key?(:etag)
|
|
4829
4884
|
@external_ids = args[:external_ids] if args.key?(:external_ids)
|
|
4830
4885
|
@gender = args[:gender] if args.key?(:gender)
|
|
4886
|
+
@guest_account_info = args[:guest_account_info] if args.key?(:guest_account_info)
|
|
4831
4887
|
@hash_function = args[:hash_function] if args.key?(:hash_function)
|
|
4832
4888
|
@id = args[:id] if args.key?(:id)
|
|
4833
4889
|
@ims = args[:ims] if args.key?(:ims)
|
|
@@ -4837,6 +4893,7 @@ module Google
|
|
|
4837
4893
|
@is_delegated_admin = args[:is_delegated_admin] if args.key?(:is_delegated_admin)
|
|
4838
4894
|
@is_enforced_in2_sv = args[:is_enforced_in2_sv] if args.key?(:is_enforced_in2_sv)
|
|
4839
4895
|
@is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv)
|
|
4896
|
+
@is_guest_user = args[:is_guest_user] if args.key?(:is_guest_user)
|
|
4840
4897
|
@is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
|
|
4841
4898
|
@keywords = args[:keywords] if args.key?(:keywords)
|
|
4842
4899
|
@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.
|
|
19
|
+
GEM_VERSION = "0.74.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 = "
|
|
25
|
+
REVISION = "20260113"
|
|
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,14 @@ module Google
|
|
|
1362
1374
|
end
|
|
1363
1375
|
end
|
|
1364
1376
|
|
|
1377
|
+
class DirectoryUsersCreateGuestRequest
|
|
1378
|
+
# @private
|
|
1379
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1380
|
+
property :customer, as: 'customer'
|
|
1381
|
+
property :primary_guest_email, as: 'primaryGuestEmail'
|
|
1382
|
+
end
|
|
1383
|
+
end
|
|
1384
|
+
|
|
1365
1385
|
class DomainAlias
|
|
1366
1386
|
# @private
|
|
1367
1387
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1505,6 +1525,13 @@ module Google
|
|
|
1505
1525
|
end
|
|
1506
1526
|
end
|
|
1507
1527
|
|
|
1528
|
+
class GuestAccountInfo
|
|
1529
|
+
# @private
|
|
1530
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1531
|
+
property :primary_guest_email, as: 'primaryGuestEmail'
|
|
1532
|
+
end
|
|
1533
|
+
end
|
|
1534
|
+
|
|
1508
1535
|
class ListPrintServersResponse
|
|
1509
1536
|
# @private
|
|
1510
1537
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1912,6 +1939,8 @@ module Google
|
|
|
1912
1939
|
property :etag, as: 'etag'
|
|
1913
1940
|
property :external_ids, as: 'externalIds'
|
|
1914
1941
|
property :gender, as: 'gender'
|
|
1942
|
+
property :guest_account_info, as: 'guestAccountInfo', class: Google::Apis::AdminDirectoryV1::GuestAccountInfo, decorator: Google::Apis::AdminDirectoryV1::GuestAccountInfo::Representation
|
|
1943
|
+
|
|
1915
1944
|
property :hash_function, as: 'hashFunction'
|
|
1916
1945
|
property :id, as: 'id'
|
|
1917
1946
|
property :ims, as: 'ims'
|
|
@@ -1921,6 +1950,7 @@ module Google
|
|
|
1921
1950
|
property :is_delegated_admin, as: 'isDelegatedAdmin'
|
|
1922
1951
|
property :is_enforced_in2_sv, as: 'isEnforcedIn2Sv'
|
|
1923
1952
|
property :is_enrolled_in2_sv, as: 'isEnrolledIn2Sv'
|
|
1953
|
+
property :is_guest_user, as: 'isGuestUser'
|
|
1924
1954
|
property :is_mailbox_setup, as: 'isMailboxSetup'
|
|
1925
1955
|
property :keywords, as: 'keywords'
|
|
1926
1956
|
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.
|
|
4
|
+
version: 0.74.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.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.74.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:
|