google-apis-chat_v1 0.80.0 → 0.82.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.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ChatV1
18
18
  # Version of the google-apis-chat_v1 gem
19
- GEM_VERSION = "0.80.0"
19
+ GEM_VERSION = "0.82.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231212"
25
+ REVISION = "20240111"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,18 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class CompleteImportSpaceRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class CompleteImportSpaceResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
121
133
  class CustomEmoji
122
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
135
 
@@ -788,6 +800,20 @@ module Google
788
800
  end
789
801
  end
790
802
 
803
+ class CompleteImportSpaceRequest
804
+ # @private
805
+ class Representation < Google::Apis::Core::JsonRepresentation
806
+ end
807
+ end
808
+
809
+ class CompleteImportSpaceResponse
810
+ # @private
811
+ class Representation < Google::Apis::Core::JsonRepresentation
812
+ property :space, as: 'space', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
813
+
814
+ end
815
+ end
816
+
791
817
  class CustomEmoji
792
818
  # @private
793
819
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1419,6 +1445,7 @@ module Google
1419
1445
  # @private
1420
1446
  class Representation < Google::Apis::Core::JsonRepresentation
1421
1447
  property :create_time, as: 'createTime'
1448
+ property :delete_time, as: 'deleteTime'
1422
1449
  property :group_member, as: 'groupMember', class: Google::Apis::ChatV1::Group, decorator: Google::Apis::ChatV1::Group::Representation
1423
1450
 
1424
1451
  property :member, as: 'member', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
@@ -1458,6 +1485,8 @@ module Google
1458
1485
  property :matched_url, as: 'matchedUrl', class: Google::Apis::ChatV1::MatchedUrl, decorator: Google::Apis::ChatV1::MatchedUrl::Representation
1459
1486
 
1460
1487
  property :name, as: 'name'
1488
+ property :private_message_viewer, as: 'privateMessageViewer', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
1489
+
1461
1490
  property :quoted_message_metadata, as: 'quotedMessageMetadata', class: Google::Apis::ChatV1::QuotedMessageMetadata, decorator: Google::Apis::ChatV1::QuotedMessageMetadata::Representation
1462
1491
 
1463
1492
  property :sender, as: 'sender', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
@@ -1560,8 +1589,10 @@ module Google
1560
1589
  # @private
1561
1590
  class Representation < Google::Apis::Core::JsonRepresentation
1562
1591
  property :admin_installed, as: 'adminInstalled'
1592
+ property :create_time, as: 'createTime'
1563
1593
  property :display_name, as: 'displayName'
1564
1594
  property :external_user_allowed, as: 'externalUserAllowed'
1595
+ property :import_mode, as: 'importMode'
1565
1596
  property :name, as: 'name'
1566
1597
  property :single_user_bot_dm, as: 'singleUserBotDm'
1567
1598
  property :space_details, as: 'spaceDetails', class: Google::Apis::ChatV1::SpaceDetails, decorator: Google::Apis::ChatV1::SpaceDetails::Representation
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://developers.google.com/hangouts/chat
35
35
  class HangoutsChatService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://chat.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://chat.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-chat_v1',
49
51
  client_version: Google::Apis::ChatV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -138,6 +140,43 @@ module Google
138
140
  execute_or_queue_command(command, &block)
139
141
  end
140
142
 
143
+ # Completes the [import process](https://developers.google.com/chat/api/guides/
144
+ # import-data) for the specified space and makes it visible to users. Requires
145
+ # app authentication and domain-wide delegation. For more information, see [
146
+ # Authorize Google Chat apps to import data](https://developers.google.com/chat/
147
+ # api/guides/authorize-import).
148
+ # @param [String] name
149
+ # Required. Resource name of the import mode space. Format: `spaces/`space``
150
+ # @param [Google::Apis::ChatV1::CompleteImportSpaceRequest] complete_import_space_request_object
151
+ # @param [String] fields
152
+ # Selector specifying which fields to include in a partial response.
153
+ # @param [String] quota_user
154
+ # Available to use for quota purposes for server-side applications. Can be any
155
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
156
+ # @param [Google::Apis::RequestOptions] options
157
+ # Request-specific options
158
+ #
159
+ # @yield [result, err] Result & error if block supplied
160
+ # @yieldparam result [Google::Apis::ChatV1::CompleteImportSpaceResponse] parsed result object
161
+ # @yieldparam err [StandardError] error object if request failed
162
+ #
163
+ # @return [Google::Apis::ChatV1::CompleteImportSpaceResponse]
164
+ #
165
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
166
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
167
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
168
+ def complete_import_space(name, complete_import_space_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
169
+ command = make_simple_command(:post, 'v1/{+name}:completeImport', options)
170
+ command.request_representation = Google::Apis::ChatV1::CompleteImportSpaceRequest::Representation
171
+ command.request_object = complete_import_space_request_object
172
+ command.response_representation = Google::Apis::ChatV1::CompleteImportSpaceResponse::Representation
173
+ command.response_class = Google::Apis::ChatV1::CompleteImportSpaceResponse
174
+ command.params['name'] = name unless name.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ execute_or_queue_command(command, &block)
178
+ end
179
+
141
180
  # Creates a named space. Spaces grouped by topics aren't supported. For an
142
181
  # example, see [Create a space](https://developers.google.com/chat/api/guides/v1/
143
182
  # spaces/create). If you receive the error message `ALREADY_EXISTS` when
@@ -383,7 +422,11 @@ module Google
383
422
  # space_history_state` (Supports [turning history on or off for the space](https:
384
423
  # //support.google.com/chat/answer/7664687) if [the organization allows users to
385
424
  # change their history setting](https://support.google.com/a/answer/7664184).
386
- # Warning: mutually exclusive with all other field paths.)
425
+ # Warning: mutually exclusive with all other field paths.) - Developer Preview: `
426
+ # access_settings.audience` (Supports changing the [access setting](https://
427
+ # support.google.com/chat/answer/11971020) of a space. If no audience is
428
+ # specified in the access setting, the space's access setting is updated to
429
+ # restricted. Warning: mutually exclusive with all other field paths.)
387
430
  # @param [String] fields
388
431
  # Selector specifying which fields to include in a partial response.
389
432
  # @param [String] quota_user
@@ -695,18 +738,15 @@ module Google
695
738
  # `spaces/`space``
696
739
  # @param [Google::Apis::ChatV1::Message] message_object
697
740
  # @param [String] message_id
698
- # Optional. A custom name for a Chat message assigned at creation. Must start
699
- # with `client-` and contain only lowercase letters, numbers, and hyphens up to
700
- # 63 characters in length. Specify this field to get, update, or delete the
701
- # message with the specified value. Assigning a custom name lets a a Chat app
702
- # recall the message without saving the message `name` from the [response body](/
703
- # chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when
704
- # creating the message. Assigning a custom name doesn't replace the generated `
705
- # name` field, the message's resource name. Instead, it sets the custom name as
706
- # the `clientAssignedMessageId` field, which you can reference while processing
707
- # later operations, like updating or deleting the message. For example usage,
708
- # see [Name a created message](https://developers.google.com/chat/api/guides/v1/
709
- # messages/create#name_a_created_message).
741
+ # Optional. A custom ID for a message. Lets Chat apps get, update, or delete a
742
+ # message without needing to store the system-assigned ID in the message's
743
+ # resource name (represented in the message `name` field). The value for this
744
+ # field must meet the following requirements: * Begins with `client-`. For
745
+ # example, `client-custom-name` is a valid custom ID, but `custom-name` is not. *
746
+ # Contains up to 63 characters and only lowercase letters, numbers, and hyphens.
747
+ # * Is unique within a space. A Chat app can't use the same custom ID for
748
+ # different messages. For details, see [Name a message](https://developers.
749
+ # google.com/chat/api/guides/v1/messages/create#name_a_created_message).
710
750
  # @param [String] message_reply_option
711
751
  # Optional. Specifies whether a message starts a thread or replies to one. Only
712
752
  # supported in named spaces.
@@ -760,9 +800,11 @@ module Google
760
800
  # guides/auth/users). When using app authentication, requests can only delete
761
801
  # messages created by the calling Chat app.
762
802
  # @param [String] name
763
- # Required. Resource name of the message that you want to delete, in the form `
764
- # spaces/*/messages/*` Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.
765
- # BBBBBBBBBBB`
803
+ # Required. Resource name of the message. Format: `spaces/`space`/messages/`
804
+ # message`` If you've set a custom ID for your message, you can use the value
805
+ # from the `clientAssignedMessageId` field for ``message``. For details, see [
806
+ # Name a message] (https://developers.google.com/chat/api/guides/v1/messages/
807
+ # create#name_a_created_message).
766
808
  # @param [Boolean] force
767
809
  # When `true`, deleting a message also deletes its threaded replies. When `false`
768
810
  # , if a message has threaded replies, deletion fails. Only applies when [
@@ -805,12 +847,11 @@ module Google
805
847
  # guides/auth/users). Note: Might return a message from a blocked member or
806
848
  # space.
807
849
  # @param [String] name
808
- # Required. Resource name of the message to retrieve. Format: `spaces/`space`/
809
- # messages/`message`` If the message begins with `client-`, then it has a custom
810
- # name assigned by a Chat app that created it with the Chat REST API. That Chat
811
- # app (but not others) can pass the custom name to get, update, or delete the
812
- # message. To learn more, see [create and name a message] (https://developers.
813
- # google.com/chat/api/guides/v1/messages/create#name_a_created_message).
850
+ # Required. Resource name of the message. Format: `spaces/`space`/messages/`
851
+ # message`` If you've set a custom ID for your message, you can use the value
852
+ # from the `clientAssignedMessageId` field for ``message``. For details, see [
853
+ # Name a message] (https://developers.google.com/chat/api/guides/v1/messages/
854
+ # create#name_a_created_message).
814
855
  # @param [String] fields
815
856
  # Selector specifying which fields to include in a partial response.
816
857
  # @param [String] quota_user
@@ -925,8 +966,15 @@ module Google
925
966
  # authentication, requests can only update messages created by the calling Chat
926
967
  # app.
927
968
  # @param [String] name
928
- # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
929
- # messages/BBBBBBBBBBB.BBBBBBBBBBB`
969
+ # Resource name of the message. Format: `spaces/`space`/messages/`message``
970
+ # Where ``space`` is the ID of the space where the message is posted and ``
971
+ # message`` is a system-assigned ID for the message. For example, `spaces/
972
+ # AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. If you set a custom ID when you
973
+ # create a message, you can use this ID to specify the message in a request by
974
+ # replacing ``message`` with the value from the `clientAssignedMessageId` field.
975
+ # For example, `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details,
976
+ # see [Name a message](https://developers.google.com/chat/api/guides/v1/messages/
977
+ # create#name_a_created_message).
930
978
  # @param [Google::Apis::ChatV1::Message] message_object
931
979
  # @param [Boolean] allow_missing
932
980
  # Optional. If `true` and the message isn't found, a new message is created and `
@@ -934,9 +982,11 @@ module Google
934
982
  # https://developers.google.com/chat/api/guides/v1/messages/create#
935
983
  # name_a_created_message) or the request fails.
936
984
  # @param [String] update_mask
937
- # Required. The field paths to update. Separate multiple values with commas.
938
- # Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
939
- # app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (
985
+ # Required. The field paths to update. Separate multiple values with commas or
986
+ # use `*` to update all field paths. Currently supported field paths: - `text` -
987
+ # `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/
988
+ # service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/
989
+ # guides/auth/service-accounts).) - Developer Preview: `accessory_widgets` (
940
990
  # Requires [app authentication](/chat/api/guides/auth/service-accounts).)
941
991
  # @param [String] fields
942
992
  # Selector specifying which fields to include in a partial response.
@@ -980,8 +1030,15 @@ module Google
980
1030
  # authentication, requests can only update messages created by the calling Chat
981
1031
  # app.
982
1032
  # @param [String] name
983
- # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
984
- # messages/BBBBBBBBBBB.BBBBBBBBBBB`
1033
+ # Resource name of the message. Format: `spaces/`space`/messages/`message``
1034
+ # Where ``space`` is the ID of the space where the message is posted and ``
1035
+ # message`` is a system-assigned ID for the message. For example, `spaces/
1036
+ # AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. If you set a custom ID when you
1037
+ # create a message, you can use this ID to specify the message in a request by
1038
+ # replacing ``message`` with the value from the `clientAssignedMessageId` field.
1039
+ # For example, `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details,
1040
+ # see [Name a message](https://developers.google.com/chat/api/guides/v1/messages/
1041
+ # create#name_a_created_message).
985
1042
  # @param [Google::Apis::ChatV1::Message] message_object
986
1043
  # @param [Boolean] allow_missing
987
1044
  # Optional. If `true` and the message isn't found, a new message is created and `
@@ -989,9 +1046,11 @@ module Google
989
1046
  # https://developers.google.com/chat/api/guides/v1/messages/create#
990
1047
  # name_a_created_message) or the request fails.
991
1048
  # @param [String] update_mask
992
- # Required. The field paths to update. Separate multiple values with commas.
993
- # Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
994
- # app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (
1049
+ # Required. The field paths to update. Separate multiple values with commas or
1050
+ # use `*` to update all field paths. Currently supported field paths: - `text` -
1051
+ # `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/
1052
+ # service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/
1053
+ # guides/auth/service-accounts).) - Developer Preview: `accessory_widgets` (
995
1054
  # Requires [app authentication](/chat/api/guides/auth/service-accounts).)
996
1055
  # @param [String] fields
997
1056
  # Selector specifying which fields to include in a partial response.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chat_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.80.0
4
+ version: 0.82.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-17 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.80.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.82.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Chat API V1