Skip to content

Commit

Permalink
feat: Automated regeneration of chat v1 client (#19288)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-19 11:14:30 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 21, 2024
1 parent 3d1ede0 commit b0db056
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 66 deletions.
5 changes: 5 additions & 0 deletions generated/google-apis-chat_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-chat_v1

### v0.93.0 (2024-05-19)

* Regenerated from discovery document revision 20240509
* Regenerated using generator version 0.15.0

### v0.92.0 (2024-04-28)

* Regenerated from discovery document revision 20240423
Expand Down
2 changes: 1 addition & 1 deletion generated/google-apis-chat_v1/google-apis-chat_v1.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]

gem.required_ruby_version = '>= 2.7'
gem.add_runtime_dependency "google-apis-core", ">= 0.14.0", "< 2.a"
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
end
2 changes: 1 addition & 1 deletion generated/google-apis-chat_v1/lib/google/apis/chat_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module ChatV1
# Import spaces, messages, and memberships into Google Chat.
AUTH_CHAT_IMPORT = 'https://www.googleapis.com/auth/chat.import'

# View, add, and remove members from conversations in Google Chat
# View, add, update, and remove members from conversations in Google Chat
AUTH_CHAT_MEMBERSHIPS = 'https://www.googleapis.com/auth/chat.memberships'

# Add and remove itself from conversations in Google Chat
Expand Down
38 changes: 19 additions & 19 deletions generated/google-apis-chat_v1/lib/google/apis/chat_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4404,20 +4404,20 @@ class SetUpSpaceRequest

# Optional. The Google Chat users to invite to join the space. Omit the calling
# user, as they are added automatically. The set currently allows up to 20
# memberships (in addition to the caller). The `Membership.member` field must
# contain a `user` with `name` populated (format: `users/`user``) and `type` set
# to `User.Type.HUMAN`. You can only add human users when setting up a space (
# adding Chat apps is only supported for direct message setup with the calling
# app). You can also add members using the user's email as an alias for `user`.
# For example, the `user.name` can be `users/example@gmail.com`." To invite
# Gmail users or users from external Google Workspace domains, user's email must
# be used for ``user``. Optional when setting `Space.spaceType` to `SPACE`.
# Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at least
# two memberships. Required when setting `Space.spaceType` to `DIRECT_MESSAGE`
# with a human user, along with exactly one membership. Must be empty when
# creating a 1:1 conversation between a human and the calling Chat app (when
# setting `Space.spaceType` to `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `
# true`).
# memberships (in addition to the caller). For human membership, the `Membership.
# member` field must contain a `user` with `name` populated (format: `users/`
# user``) and `type` set to `User.Type.HUMAN`. You can only add human users when
# setting up a space (adding Chat apps is only supported for direct message
# setup with the calling app). You can also add members using the user's email
# as an alias for `user`. For example, the `user.name` can be `users/example@
# gmail.com`. To invite Gmail users or users from external Google Workspace
# domains, user's email must be used for ``user``. Optional when setting `Space.
# spaceType` to `SPACE`. Required when setting `Space.spaceType` to `GROUP_CHAT`,
# along with at least two memberships. Required when setting `Space.spaceType`
# to `DIRECT_MESSAGE` with a human user, along with exactly one membership. Must
# be empty when creating a 1:1 conversation between a human and the calling Chat
# app (when setting `Space.spaceType` to `DIRECT_MESSAGE` and `Space.
# singleUserBotDm` to `true`).
# Corresponds to the JSON property `memberships`
# @return [Array<Google::Apis::ChatV1::Membership>]
attr_accessor :memberships
Expand Down Expand Up @@ -4520,11 +4520,11 @@ def update!(**args)
class Space
include Google::Apis::Core::Hashable

# Output only. Whether the Chat app was installed by a Google Workspace
# administrator. Administrators can install a Chat app for their domain,
# organizational unit, or a group of users. Administrators can only install Chat
# apps for direct messaging between users and the app. To support admin install,
# your app must feature direct messaging.
# Output only. For direct message (DM) spaces with a Chat app, whether the space
# was created by a Google Workspace administrator. Administrators can install
# and set up a direct message with a Chat app on behalf of users in their
# organization. To support admin install, your Chat app must feature direct
# messaging.
# Corresponds to the JSON property `adminInstalled`
# @return [Boolean]
attr_accessor :admin_installed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ChatV1
# Version of the google-apis-chat_v1 gem
GEM_VERSION = "0.92.0"
GEM_VERSION = "0.93.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20240423"
REVISION = "20240509"
end
end
end
92 changes: 50 additions & 42 deletions generated/google-apis-chat_v1/lib/google/apis/chat_v1/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -463,30 +463,31 @@ def patch_space(name, space_object = nil, update_mask: nil, fields: nil, quota_u
# automatically added to the space, and shouldn't be specified as a membership
# in the request. For an example, see [Set up a space with initial members](
# https://developers.google.com/workspace/chat/set-up-spaces). To specify the
# human members to add, add memberships with the appropriate `member.name` in
# the `SetUpSpaceRequest`. To add a human user, use `users/`user``, where ``user`
# ` can be the email address for the user. For users in the same Workspace
# organization ``user`` can also be the `id` for the person from the People API,
# or the `id` for the user in the Directory API. For example, if the People API
# Person profile ID for `[email protected]` is `123456789`, you can add the user
# to the space by setting the `membership.member.name` to `users/user@example.
# com` or `users/123456789`. For a space or group chat, if the caller blocks or
# is blocked by some members, then those members aren't added to the created
# space. To create a direct message (DM) between the calling user and another
# human user, specify exactly one membership to represent the human user. If one
# user blocks the other, the request fails and the DM isn't created. To create a
# DM between the calling user and the calling app, set `Space.singleUserBotDm`
# to `true` and don't specify any memberships. You can only use this method to
# set up a DM with the calling app. To add the calling app as a member of a
# space or an existing DM between two human users, see [Invite or add a user or
# app to a space](https://developers.google.com/workspace/chat/create-members).
# If a DM already exists between two users, even when one user blocks the other
# at the time a request is made, then the existing DM is returned. Spaces with
# threaded replies aren't supported. If you receive the error message `
# ALREADY_EXISTS` when setting up a space, try a different `displayName`. An
# existing space within the Google Workspace organization might already use this
# display name. Requires [user authentication](https://developers.google.com/
# workspace/chat/authenticate-authorize-chat-user).
# human members to add, add memberships with the appropriate `membership.member.
# name`. To add a human user, use `users/`user``, where ``user`` can be the
# email address for the user. For users in the same Workspace organization ``
# user`` can also be the `id` for the person from the People API, or the `id`
# for the user in the Directory API. For example, if the People API Person
# profile ID for `[email protected]` is `123456789`, you can add the user to the
# space by setting the `membership.member.name` to `users/[email protected]` or `
# users/123456789`. For a named space or group chat, if the caller blocks, or is
# blocked by some members, or doesn't have permission to add some members, then
# those members aren't added to the created space. To create a direct message (
# DM) between the calling user and another human user, specify exactly one
# membership to represent the human user. If one user blocks the other, the
# request fails and the DM isn't created. To create a DM between the calling
# user and the calling app, set `Space.singleUserBotDm` to `true` and don't
# specify any memberships. You can only use this method to set up a DM with the
# calling app. To add the calling app as a member of a space or an existing DM
# between two human users, see [Invite or add a user or app to a space](https://
# developers.google.com/workspace/chat/create-members). If a DM already exists
# between two users, even when one user blocks the other at the time a request
# is made, then the existing DM is returned. Spaces with threaded replies aren't
# supported. If you receive the error message `ALREADY_EXISTS` when setting up a
# space, try a different `displayName`. An existing space within the Google
# Workspace organization might already use this display name. Requires [user
# authentication](https://developers.google.com/workspace/chat/authenticate-
# authorize-chat-user).
# @param [Google::Apis::ChatV1::SetUpSpaceRequest] set_up_space_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
Expand Down Expand Up @@ -524,16 +525,15 @@ def setup_space(set_up_space_request_object = nil, fields: nil, quota_user: nil,
# accept the space invitation before joining. Otherwise, creating a membership
# adds the member directly to the specified space. Requires [user authentication]
# (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
# . To specify the member to add, set the `membership.member.name` in the `
# CreateMembershipRequest`: - To add the calling app to a space or a direct
# message between two human users, use `users/app`. Unable to add other apps to
# the space. - To add a human user, use `users/`user``, where ``user`` can be
# the email address for the user. For users in the same Workspace organization ``
# user`` can also be the `id` for the person from the People API, or the `id`
# for the user in the Directory API. For example, if the People API Person
# profile ID for `[email protected]` is `123456789`, you can add the user to the
# space by setting the `membership.member.name` to `users/[email protected]` or `
# users/123456789`.
# . To specify the member to add, set the `membership.member.name` for the human
# or app member. - To add the calling app to a space or a direct message between
# two human users, use `users/app`. Unable to add other apps to the space. - To
# add a human user, use `users/`user``, where ``user`` can be the email address
# for the user. For users in the same Workspace organization ``user`` can also
# be the `id` for the person from the People API, or the `id` for the user in
# the Directory API. For example, if the People API Person profile ID for `user@
# example.com` is `123456789`, you can add the user to the space by setting the `
# membership.member.name` to `users/[email protected]` or `users/123456789`.
# @param [String] parent
# Required. The resource name of the space for which to create the membership.
# Format: spaces/`space`
Expand Down Expand Up @@ -734,8 +734,10 @@ def list_space_members(parent, filter: nil, page_size: nil, page_token: nil, sho
execute_or_queue_command(command, &block)
end

# Updates a membership. Requires [user authentication](https://developers.google.
# com/workspace/chat/authenticate-authorize-chat-user).
# Updates a membership. For an example, see [Update a user's membership in a
# space](https://developers.google.com/workspace/chat/update-members). Requires [
# user authentication](https://developers.google.com/workspace/chat/authenticate-
# authorize-chat-user).
# @param [String] name
# Resource name of the membership, assigned by the server. Format: `spaces/`
# space`/members/`member``
Expand Down Expand Up @@ -1428,8 +1430,10 @@ def list_space_space_events(parent, filter: nil, page_size: nil, page_token: nil
end

# Returns details about a user's read state within a space, used to identify
# read and unread messages. Requires [user authentication](https://developers.
# google.com/workspace/chat/authenticate-authorize-chat-user).
# read and unread messages. For an example, see [Get details about a user's
# space read state](https://developers.google.com/workspace/chat/get-space-read-
# state). Requires [user authentication](https://developers.google.com/workspace/
# chat/authenticate-authorize-chat-user).
# @param [String] name
# Required. Resource name of the space read state to retrieve. Only supports
# getting read state for the calling user. To refer to the calling user, set one
Expand Down Expand Up @@ -1466,8 +1470,10 @@ def get_user_space_space_read_state(name, fields: nil, quota_user: nil, options:
end

# Updates a user's read state within a space, used to identify read and unread
# messages. Requires [user authentication](https://developers.google.com/
# workspace/chat/authenticate-authorize-chat-user).
# messages. For an example, see [Update a user's space read state](https://
# developers.google.com/workspace/chat/update-space-read-state). Requires [user
# authentication](https://developers.google.com/workspace/chat/authenticate-
# authorize-chat-user).
# @param [String] name
# Resource name of the space read state. Format: `users/`user`/spaces/`space`/
# spaceReadState`
Expand Down Expand Up @@ -1512,8 +1518,10 @@ def update_user_space_space_read_state(name, space_read_state_object = nil, upda
end

# Returns details about a user's read state within a thread, used to identify
# read and unread messages. Requires [user authentication](https://developers.
# google.com/workspace/chat/authenticate-authorize-chat-user).
# read and unread messages. For an example, see [Get details about a user's
# thread read state](https://developers.google.com/workspace/chat/get-thread-
# read-state). Requires [user authentication](https://developers.google.com/
# workspace/chat/authenticate-authorize-chat-user).
# @param [String] name
# Required. Resource name of the thread read state to retrieve. Only supports
# getting read state for the calling user. To refer to the calling user, set one
Expand Down

0 comments on commit b0db056

Please sign in to comment.