Skip to content

Commit 2ce6f6b

Browse files
feat: Automated regeneration of admin directory_v1 client (#25072)
Auto-created at 2025-11-30 09:26:13 +0000 using the toys pull request generator.
1 parent 13cebd9 commit 2ce6f6b

File tree

6 files changed

+126
-2
lines changed

6 files changed

+126
-2
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3943,6 +3943,8 @@
39433943
"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandRequest/payload": payload
39443944
"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandResponse": directory_chromeosdevices_issue_command_response
39453945
"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandResponse/commandId": command_id
3946+
"/admin:directory_v1/DirectoryUsersCreateGuestRequest": directory_users_create_guest_request
3947+
"/admin:directory_v1/DirectoryUsersCreateGuestRequest/primaryGuestEmail": primary_guest_email
39463948
"/admin:directory_v1/DomainAlias": domain_alias
39473949
"/admin:directory_v1/DomainAlias/creationTime": creation_time
39483950
"/admin:directory_v1/DomainAlias/domainAliasName": domain_alias_name
@@ -4017,6 +4019,8 @@
40174019
"/admin:directory_v1/Groups/groups/group": group
40184020
"/admin:directory_v1/Groups/kind": kind
40194021
"/admin:directory_v1/Groups/nextPageToken": next_page_token
4022+
"/admin:directory_v1/GuestAccountInfo": guest_account_info
4023+
"/admin:directory_v1/GuestAccountInfo/primaryGuestEmail": primary_guest_email
40204024
"/admin:directory_v1/ListPrintServersResponse": list_print_servers_response
40214025
"/admin:directory_v1/ListPrintServersResponse/nextPageToken": next_page_token
40224026
"/admin:directory_v1/ListPrintServersResponse/printServers": print_servers
@@ -4298,6 +4302,7 @@
42984302
"/admin:directory_v1/User/etag": etag
42994303
"/admin:directory_v1/User/externalIds": external_ids
43004304
"/admin:directory_v1/User/gender": gender
4305+
"/admin:directory_v1/User/guestAccountInfo": guest_account_info
43014306
"/admin:directory_v1/User/hashFunction": hash_function
43024307
"/admin:directory_v1/User/id": id
43034308
"/admin:directory_v1/User/ims": ims
@@ -4307,6 +4312,7 @@
43074312
"/admin:directory_v1/User/isDelegatedAdmin": is_delegated_admin
43084313
"/admin:directory_v1/User/isEnforcedIn2Sv": is_enforced_in2_sv
43094314
"/admin:directory_v1/User/isEnrolledIn2Sv": is_enrolled_in2_sv
4315+
"/admin:directory_v1/User/isGuestUser": is_guest_user
43104316
"/admin:directory_v1/User/isMailboxSetup": is_mailbox_setup
43114317
"/admin:directory_v1/User/keywords": keywords
43124318
"/admin:directory_v1/User/kind": kind
@@ -4834,6 +4840,7 @@
48344840
"/admin:directory_v1/directory.users.aliases.watch": watch_user_alias
48354841
"/admin:directory_v1/directory.users.aliases.watch/event": event
48364842
"/admin:directory_v1/directory.users.aliases.watch/userKey": user_key
4843+
"/admin:directory_v1/directory.users.createGuest": create_user_guest
48374844
"/admin:directory_v1/directory.users.delete": delete_user
48384845
"/admin:directory_v1/directory.users.delete/userKey": user_key
48394846
"/admin:directory_v1/directory.users.get": get_user

generated/google-apis-admin_directory_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-admin_directory_v1
22

3+
### v0.73.0 (2025-11-30)
4+
5+
* Regenerated from discovery document revision 20251124
6+
37
### v0.72.0 (2025-11-16)
48

59
* Regenerated from discovery document revision 20251107

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,6 +2292,25 @@ def update!(**args)
22922292
end
22932293
end
22942294

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+
22952314
#
22962315
class DomainAlias
22972316
include Google::Apis::Core::Hashable
@@ -2823,6 +2842,25 @@ def update!(**args)
28232842
end
28242843
end
28252844

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+
28262864
#
28272865
class ListPrintServersResponse
28282866
include Google::Apis::Core::Hashable
@@ -4589,6 +4627,11 @@ class User
45894627
# @return [Object]
45904628
attr_accessor :gender
45914629

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+
45924635
# Stores the hash format of the `password` property. The following `hashFunction`
45934636
# values are allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` -
45944637
# Accepts simple hex-encoded values. * `crypt` - Compliant with the [C crypt
@@ -4665,6 +4708,12 @@ class User
46654708
attr_accessor :is_enrolled_in2_sv
46664709
alias_method :is_enrolled_in2_sv?, :is_enrolled_in2_sv
46674710

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+
46684717
# Output only. Indicates if the user's Google mailbox is created. This property
46694718
# is only applicable if the user has been assigned a Gmail license.
46704719
# Corresponds to the JSON property `isMailboxSetup`
@@ -4828,6 +4877,7 @@ def update!(**args)
48284877
@etag = args[:etag] if args.key?(:etag)
48294878
@external_ids = args[:external_ids] if args.key?(:external_ids)
48304879
@gender = args[:gender] if args.key?(:gender)
4880+
@guest_account_info = args[:guest_account_info] if args.key?(:guest_account_info)
48314881
@hash_function = args[:hash_function] if args.key?(:hash_function)
48324882
@id = args[:id] if args.key?(:id)
48334883
@ims = args[:ims] if args.key?(:ims)
@@ -4837,6 +4887,7 @@ def update!(**args)
48374887
@is_delegated_admin = args[:is_delegated_admin] if args.key?(:is_delegated_admin)
48384888
@is_enforced_in2_sv = args[:is_enforced_in2_sv] if args.key?(:is_enforced_in2_sv)
48394889
@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)
48404891
@is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
48414892
@keywords = args[:keywords] if args.key?(:keywords)
48424893
@kind = args[:kind] if args.key?(:kind)

generated/google-apis-admin_directory_v1/lib/google/apis/admin_directory_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 AdminDirectoryV1
1818
# Version of the google-apis-admin_directory_v1 gem
19-
GEM_VERSION = "0.72.0"
19+
GEM_VERSION = "0.73.0"
2020

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

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

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
340340
include Google::Apis::Core::JsonObjectSupport
341341
end
342342

343+
class DirectoryUsersCreateGuestRequest
344+
class Representation < Google::Apis::Core::JsonRepresentation; end
345+
346+
include Google::Apis::Core::JsonObjectSupport
347+
end
348+
343349
class DomainAlias
344350
class Representation < Google::Apis::Core::JsonRepresentation; end
345351

@@ -424,6 +430,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
424430
include Google::Apis::Core::JsonObjectSupport
425431
end
426432

433+
class GuestAccountInfo
434+
class Representation < Google::Apis::Core::JsonRepresentation; end
435+
436+
include Google::Apis::Core::JsonObjectSupport
437+
end
438+
427439
class ListPrintServersResponse
428440
class Representation < Google::Apis::Core::JsonRepresentation; end
429441

@@ -1362,6 +1374,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
13621374
end
13631375
end
13641376

1377+
class DirectoryUsersCreateGuestRequest
1378+
# @private
1379+
class Representation < Google::Apis::Core::JsonRepresentation
1380+
property :primary_guest_email, as: 'primaryGuestEmail'
1381+
end
1382+
end
1383+
13651384
class DomainAlias
13661385
# @private
13671386
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1505,6 +1524,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
15051524
end
15061525
end
15071526

1527+
class GuestAccountInfo
1528+
# @private
1529+
class Representation < Google::Apis::Core::JsonRepresentation
1530+
property :primary_guest_email, as: 'primaryGuestEmail'
1531+
end
1532+
end
1533+
15081534
class ListPrintServersResponse
15091535
# @private
15101536
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1912,6 +1938,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
19121938
property :etag, as: 'etag'
19131939
property :external_ids, as: 'externalIds'
19141940
property :gender, as: 'gender'
1941+
property :guest_account_info, as: 'guestAccountInfo', class: Google::Apis::AdminDirectoryV1::GuestAccountInfo, decorator: Google::Apis::AdminDirectoryV1::GuestAccountInfo::Representation
1942+
19151943
property :hash_function, as: 'hashFunction'
19161944
property :id, as: 'id'
19171945
property :ims, as: 'ims'
@@ -1921,6 +1949,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
19211949
property :is_delegated_admin, as: 'isDelegatedAdmin'
19221950
property :is_enforced_in2_sv, as: 'isEnforcedIn2Sv'
19231951
property :is_enrolled_in2_sv, as: 'isEnrolledIn2Sv'
1952+
property :is_guest_user, as: 'isGuestUser'
19241953
property :is_mailbox_setup, as: 'isMailboxSetup'
19251954
property :keywords, as: 'keywords'
19261955
property :kind, as: 'kind'

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3973,6 +3973,39 @@ def turn_two_step_verification_off(user_key, fields: nil, quota_user: nil, optio
39733973
execute_or_queue_command(command, &block)
39743974
end
39753975

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+
39764009
# Deletes a user.
39774010
# @param [String] user_key
39784011
# Identifies the user in the API request. The value can be the user's primary

0 commit comments

Comments
 (0)