Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3943,6 +3943,8 @@
"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandRequest/payload": payload
"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandResponse": directory_chromeosdevices_issue_command_response
"/admin:directory_v1/DirectoryChromeosdevicesIssueCommandResponse/commandId": command_id
"/admin:directory_v1/DirectoryUsersCreateGuestRequest": directory_users_create_guest_request
"/admin:directory_v1/DirectoryUsersCreateGuestRequest/primaryGuestEmail": primary_guest_email
"/admin:directory_v1/DomainAlias": domain_alias
"/admin:directory_v1/DomainAlias/creationTime": creation_time
"/admin:directory_v1/DomainAlias/domainAliasName": domain_alias_name
Expand Down Expand Up @@ -4017,6 +4019,8 @@
"/admin:directory_v1/Groups/groups/group": group
"/admin:directory_v1/Groups/kind": kind
"/admin:directory_v1/Groups/nextPageToken": next_page_token
"/admin:directory_v1/GuestAccountInfo": guest_account_info
"/admin:directory_v1/GuestAccountInfo/primaryGuestEmail": primary_guest_email
"/admin:directory_v1/ListPrintServersResponse": list_print_servers_response
"/admin:directory_v1/ListPrintServersResponse/nextPageToken": next_page_token
"/admin:directory_v1/ListPrintServersResponse/printServers": print_servers
Expand Down Expand Up @@ -4298,6 +4302,7 @@
"/admin:directory_v1/User/etag": etag
"/admin:directory_v1/User/externalIds": external_ids
"/admin:directory_v1/User/gender": gender
"/admin:directory_v1/User/guestAccountInfo": guest_account_info
"/admin:directory_v1/User/hashFunction": hash_function
"/admin:directory_v1/User/id": id
"/admin:directory_v1/User/ims": ims
Expand All @@ -4307,6 +4312,7 @@
"/admin:directory_v1/User/isDelegatedAdmin": is_delegated_admin
"/admin:directory_v1/User/isEnforcedIn2Sv": is_enforced_in2_sv
"/admin:directory_v1/User/isEnrolledIn2Sv": is_enrolled_in2_sv
"/admin:directory_v1/User/isGuestUser": is_guest_user
"/admin:directory_v1/User/isMailboxSetup": is_mailbox_setup
"/admin:directory_v1/User/keywords": keywords
"/admin:directory_v1/User/kind": kind
Expand Down Expand Up @@ -4834,6 +4840,7 @@
"/admin:directory_v1/directory.users.aliases.watch": watch_user_alias
"/admin:directory_v1/directory.users.aliases.watch/event": event
"/admin:directory_v1/directory.users.aliases.watch/userKey": user_key
"/admin:directory_v1/directory.users.createGuest": create_user_guest
"/admin:directory_v1/directory.users.delete": delete_user
"/admin:directory_v1/directory.users.delete/userKey": user_key
"/admin:directory_v1/directory.users.get": get_user
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-admin_directory_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-admin_directory_v1

### v0.73.0 (2025-11-30)

* Regenerated from discovery document revision 20251124

### v0.72.0 (2025-11-16)

* Regenerated from discovery document revision 20251107
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2292,6 +2292,25 @@ def update!(**args)
end
end

# Directory users guest creation request message.
class DirectoryUsersCreateGuestRequest
include Google::Apis::Core::Hashable

# Immutable. External email of the guest user being created.
# Corresponds to the JSON property `primaryGuestEmail`
# @return [String]
attr_accessor :primary_guest_email

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@primary_guest_email = args[:primary_guest_email] if args.key?(:primary_guest_email)
end
end

#
class DomainAlias
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -2823,6 +2842,25 @@ def update!(**args)
end
end

# Account info specific to Guest users.
class GuestAccountInfo
include Google::Apis::Core::Hashable

# Immutable. The guest's external email.
# Corresponds to the JSON property `primaryGuestEmail`
# @return [String]
attr_accessor :primary_guest_email

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@primary_guest_email = args[:primary_guest_email] if args.key?(:primary_guest_email)
end
end

#
class ListPrintServersResponse
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -4589,6 +4627,11 @@ class User
# @return [Object]
attr_accessor :gender

# Account info specific to Guest users.
# Corresponds to the JSON property `guestAccountInfo`
# @return [Google::Apis::AdminDirectoryV1::GuestAccountInfo]
attr_accessor :guest_account_info

# Stores the hash format of the `password` property. The following `hashFunction`
# values are allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` -
# Accepts simple hex-encoded values. * `crypt` - Compliant with the [C crypt
Expand Down Expand Up @@ -4665,6 +4708,12 @@ class User
attr_accessor :is_enrolled_in2_sv
alias_method :is_enrolled_in2_sv?, :is_enrolled_in2_sv

# Immutable. Indicates if the inserted user is a guest.
# Corresponds to the JSON property `isGuestUser`
# @return [Boolean]
attr_accessor :is_guest_user
alias_method :is_guest_user?, :is_guest_user

# Output only. Indicates if the user's Google mailbox is created. This property
# is only applicable if the user has been assigned a Gmail license.
# Corresponds to the JSON property `isMailboxSetup`
Expand Down Expand Up @@ -4828,6 +4877,7 @@ def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@external_ids = args[:external_ids] if args.key?(:external_ids)
@gender = args[:gender] if args.key?(:gender)
@guest_account_info = args[:guest_account_info] if args.key?(:guest_account_info)
@hash_function = args[:hash_function] if args.key?(:hash_function)
@id = args[:id] if args.key?(:id)
@ims = args[:ims] if args.key?(:ims)
Expand All @@ -4837,6 +4887,7 @@ def update!(**args)
@is_delegated_admin = args[:is_delegated_admin] if args.key?(:is_delegated_admin)
@is_enforced_in2_sv = args[:is_enforced_in2_sv] if args.key?(:is_enforced_in2_sv)
@is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv)
@is_guest_user = args[:is_guest_user] if args.key?(:is_guest_user)
@is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
@keywords = args[:keywords] if args.key?(:keywords)
@kind = args[:kind] if args.key?(:kind)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module AdminDirectoryV1
# Version of the google-apis-admin_directory_v1 gem
GEM_VERSION = "0.72.0"
GEM_VERSION = "0.73.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20251107"
REVISION = "20251124"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class DirectoryUsersCreateGuestRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class DomainAlias
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -424,6 +430,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GuestAccountInfo
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ListPrintServersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -1362,6 +1374,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class DirectoryUsersCreateGuestRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :primary_guest_email, as: 'primaryGuestEmail'
end
end

class DomainAlias
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1505,6 +1524,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GuestAccountInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :primary_guest_email, as: 'primaryGuestEmail'
end
end

class ListPrintServersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1912,6 +1938,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :external_ids, as: 'externalIds'
property :gender, as: 'gender'
property :guest_account_info, as: 'guestAccountInfo', class: Google::Apis::AdminDirectoryV1::GuestAccountInfo, decorator: Google::Apis::AdminDirectoryV1::GuestAccountInfo::Representation

property :hash_function, as: 'hashFunction'
property :id, as: 'id'
property :ims, as: 'ims'
Expand All @@ -1921,6 +1949,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :is_delegated_admin, as: 'isDelegatedAdmin'
property :is_enforced_in2_sv, as: 'isEnforcedIn2Sv'
property :is_enrolled_in2_sv, as: 'isEnrolledIn2Sv'
property :is_guest_user, as: 'isGuestUser'
property :is_mailbox_setup, as: 'isMailboxSetup'
property :keywords, as: 'keywords'
property :kind, as: 'kind'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3973,6 +3973,39 @@ def turn_two_step_verification_off(user_key, fields: nil, quota_user: nil, optio
execute_or_queue_command(command, &block)
end

# Create a guest user with access to a [subset of Workspace capabilities](https:/
# /support.google.com/a/answer/16558545?hl=en). This feature is currently in
# Alpha. Please reach out to support if you are interested in trying this
# feature.
# @param [Google::Apis::AdminDirectoryV1::DirectoryUsersCreateGuestRequest] directory_users_create_guest_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdminDirectoryV1::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::User]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_guest(directory_users_create_guest_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'admin/directory/v1/users:createGuest', options)
command.request_representation = Google::Apis::AdminDirectoryV1::DirectoryUsersCreateGuestRequest::Representation
command.request_object = directory_users_create_guest_request_object
command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation
command.response_class = Google::Apis::AdminDirectoryV1::User
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Deletes a user.
# @param [String] user_key
# Identifies the user in the API request. The value can be the user's primary
Expand Down