google-apis-chat_v1 0.102.0 → 0.104.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a817263093776a4c5fe86c5708b9b92a9b7e131b6a4fa0510e184281825a8f85
4
- data.tar.gz: c5f3b43a774dda3fe630ec7dc3b22ad499cb7490bd3def2eafab4ceb4316105c
3
+ metadata.gz: 7c32fbb1213395c7e5d02011232b69a89654ad7fd4ee4681c959253941e7af5e
4
+ data.tar.gz: ec42208317a3ebc6fcb74fe1a0615e35a95370e1a6a7848ee118b7f9367557ee
5
5
  SHA512:
6
- metadata.gz: 845b434cace27ff5236909880e439773ede2042dff6f969750f7935ec1ac369cc2b1e44a49ba91d0de42cdb9f259b7f6167e808f464a2bf32898a505c673c4bf
7
- data.tar.gz: 91f1c39d39601bacc5d2f5be819d852fe8c6120298bab5dfa4d9e525ee9c9279a4a300ff87a9a014816ab52124ecfa820e25c66c769671492c629d8fb48a126e
6
+ metadata.gz: a97cc23c2e05e2c7feb42ac82b5f8b76ca2386dd70accca18df0d40275ffe6178a66c1447255760ba1d2614a95f44663eda01acbd1105304cce61276f88b7074
7
+ data.tar.gz: b8d99914b7b9155c8b9fe4456c47d4d32cb1e404b9292a8114374376c881ca460459bb86ba7d5d6c1d63e24f76eaf70969f3f4d415a73aa0fc5c8a03354a2614
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.104.0 (2024-09-15)
4
+
5
+ * Regenerated from discovery document revision 20240908
6
+
7
+ ### v0.103.0 (2024-09-01)
8
+
9
+ * Regenerated from discovery document revision 20240825
10
+
3
11
  ### v0.102.0 (2024-08-25)
4
12
 
5
13
  * Regenerated from discovery document revision 20240818
@@ -590,6 +590,39 @@ module Google
590
590
  end
591
591
  end
592
592
 
593
+ # Data for Chat space links.
594
+ class ChatSpaceLinkData
595
+ include Google::Apis::Core::Hashable
596
+
597
+ # The message of the linked Chat space resource. Format: `spaces/`space`/
598
+ # messages/`message``
599
+ # Corresponds to the JSON property `message`
600
+ # @return [String]
601
+ attr_accessor :message
602
+
603
+ # The space of the linked Chat space resource. Format: `spaces/`space``
604
+ # Corresponds to the JSON property `space`
605
+ # @return [String]
606
+ attr_accessor :space
607
+
608
+ # The thread of the linked Chat space resource. Format: `spaces/`space`/threads/`
609
+ # thread``
610
+ # Corresponds to the JSON property `thread`
611
+ # @return [String]
612
+ attr_accessor :thread
613
+
614
+ def initialize(**args)
615
+ update!(**args)
616
+ end
617
+
618
+ # Update properties of this object
619
+ def update!(**args)
620
+ @message = args[:message] if args.key?(:message)
621
+ @space = args[:space] if args.key?(:space)
622
+ @thread = args[:thread] if args.key?(:thread)
623
+ end
624
+ end
625
+
593
626
  # Represents a color in the RGBA color space. This representation is designed
594
627
  # for simplicity of conversion to and from color representations in various
595
628
  # languages over compactness. For example, the fields of this representation can
@@ -3875,9 +3908,9 @@ module Google
3875
3908
  # rest/v1/cards). Only Chat apps can create cards. If your Chat app [
3876
3909
  # authenticates as a user](https://developers.google.com/workspace/chat/
3877
3910
  # authenticate-authorize-chat-user), the messages can't contain cards. To learn
3878
- # about cards and how to create them, see [Send card messages](https://
3879
- # developers.google.com/workspace/chat/create-messages#create). [Card builder](
3880
- # https://addons.gsuite.google.com/uikit/builder)
3911
+ # how to create a message that contains cards, see [Send a message](https://
3912
+ # developers.google.com/workspace/chat/create-messages). [Card builder](https://
3913
+ # addons.gsuite.google.com/uikit/builder)
3881
3914
  # Corresponds to the JSON property `cardsV2`
3882
3915
  # @return [Array<Google::Apis::ChatV1::CardWithId>]
3883
3916
  attr_accessor :cards_v2
@@ -4004,9 +4037,8 @@ module Google
4004
4037
  # generates a [preview chip](https://developers.google.com/workspace/chat/
4005
4038
  # preview-links). You can also [@mention a Google Chat user](https://developers.
4006
4039
  # google.com/workspace/chat/format-messages#messages-@mention), or everyone in
4007
- # the space. To learn about creating text messages, see [Send a text message](
4008
- # https://developers.google.com/workspace/chat/create-messages#create-text-
4009
- # messages).
4040
+ # the space. To learn about creating text messages, see [Send a message](https://
4041
+ # developers.google.com/workspace/chat/create-messages).
4010
4042
  # Corresponds to the JSON property `text`
4011
4043
  # @return [String]
4012
4044
  attr_accessor :text
@@ -4376,6 +4408,11 @@ module Google
4376
4408
  class RichLinkMetadata
4377
4409
  include Google::Apis::Core::Hashable
4378
4410
 
4411
+ # Data for Chat space links.
4412
+ # Corresponds to the JSON property `chatSpaceLinkData`
4413
+ # @return [Google::Apis::ChatV1::ChatSpaceLinkData]
4414
+ attr_accessor :chat_space_link_data
4415
+
4379
4416
  # Data for Google Drive links.
4380
4417
  # Corresponds to the JSON property `driveLinkData`
4381
4418
  # @return [Google::Apis::ChatV1::DriveLinkData]
@@ -4397,6 +4434,7 @@ module Google
4397
4434
 
4398
4435
  # Update properties of this object
4399
4436
  def update!(**args)
4437
+ @chat_space_link_data = args[:chat_space_link_data] if args.key?(:chat_space_link_data)
4400
4438
  @drive_link_data = args[:drive_link_data] if args.key?(:drive_link_data)
4401
4439
  @rich_link_type = args[:rich_link_type] if args.key?(:rich_link_type)
4402
4440
  @uri = args[:uri] if args.key?(:uri)
@@ -4678,7 +4716,12 @@ module Google
4678
4716
  # @return [Google::Apis::ChatV1::MembershipCount]
4679
4717
  attr_accessor :membership_count
4680
4718
 
4681
- # Resource name of the space. Format: `spaces/`space``
4719
+ # Resource name of the space. Format: `spaces/`space`` Where ``space``
4720
+ # represents the system-assigned ID for the space. You can obtain the space ID
4721
+ # by calling the [`spaces.list()`](https://developers.google.com/workspace/chat/
4722
+ # api/reference/rest/v1/spaces/list) method or from the space URL. For example,
4723
+ # if the space URL is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`,
4724
+ # the space ID is `AAAAAAAAA`.
4682
4725
  # Corresponds to the JSON property `name`
4683
4726
  # @return [String]
4684
4727
  attr_accessor :name
@@ -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.102.0"
19
+ GEM_VERSION = "0.104.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240818"
25
+ REVISION = "20240908"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class ChatSpaceLinkData
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class Color
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -967,6 +973,15 @@ module Google
967
973
  end
968
974
  end
969
975
 
976
+ class ChatSpaceLinkData
977
+ # @private
978
+ class Representation < Google::Apis::Core::JsonRepresentation
979
+ property :message, as: 'message'
980
+ property :space, as: 'space'
981
+ property :thread, as: 'thread'
982
+ end
983
+ end
984
+
970
985
  class Color
971
986
  # @private
972
987
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1901,6 +1916,8 @@ module Google
1901
1916
  class RichLinkMetadata
1902
1917
  # @private
1903
1918
  class Representation < Google::Apis::Core::JsonRepresentation
1919
+ property :chat_space_link_data, as: 'chatSpaceLinkData', class: Google::Apis::ChatV1::ChatSpaceLinkData, decorator: Google::Apis::ChatV1::ChatSpaceLinkData::Representation
1920
+
1904
1921
  property :drive_link_data, as: 'driveLinkData', class: Google::Apis::ChatV1::DriveLinkData, decorator: Google::Apis::ChatV1::DriveLinkData::Representation
1905
1922
 
1906
1923
  property :rich_link_type, as: 'richLinkType'
@@ -423,7 +423,12 @@ module Google
423
423
  # already use this display name. Requires [user authentication](https://
424
424
  # developers.google.com/workspace/chat/authenticate-authorize-chat-user).
425
425
  # @param [String] name
426
- # Resource name of the space. Format: `spaces/`space``
426
+ # Resource name of the space. Format: `spaces/`space`` Where ``space``
427
+ # represents the system-assigned ID for the space. You can obtain the space ID
428
+ # by calling the [`spaces.list()`](https://developers.google.com/workspace/chat/
429
+ # api/reference/rest/v1/spaces/list) method or from the space URL. For example,
430
+ # if the space URL is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`,
431
+ # the space ID is `AAAAAAAAA`.
427
432
  # @param [Google::Apis::ChatV1::Space] space_object
428
433
  # @param [String] update_mask
429
434
  # Required. The updated field paths, comma separated if there are multiple. You
@@ -976,14 +981,21 @@ module Google
976
981
  execute_or_queue_command(command, &block)
977
982
  end
978
983
 
979
- # Creates a message in a Google Chat space. The maximum message size, including
980
- # text and cards, is 32,000 bytes. For an example, see [Send a message](https://
981
- # developers.google.com/workspace/chat/create-messages). Calling this method
982
- # requires [authentication](https://developers.google.com/workspace/chat/
983
- # authenticate-authorize) and supports the following authentication types: - For
984
- # text messages, user authentication or app authentication are supported. - For
985
- # card messages, only app authentication is supported. (Only Chat apps can
986
- # create card messages.)
984
+ # Creates a message in a Google Chat space. For an example, see [Send a message](
985
+ # https://developers.google.com/workspace/chat/create-messages). The `create()`
986
+ # method requires either user or app authentication. Chat attributes the message
987
+ # sender differently depending on the type of authentication that you use in
988
+ # your request. The following image shows how Chat attributes a message when you
989
+ # use app authentication. Chat displays the Chat app as the message sender. The
990
+ # content of the message can contain text (`text`), cards (`cardsV2`), and
991
+ # accessory widgets (`accessoryWidgets`). ![Message sent with app authentication]
992
+ # (https://developers.google.com/workspace/chat/images/message-app-auth.svg) The
993
+ # following image shows how Chat attributes a message when you use user
994
+ # authentication. Chat displays the user as the message sender and attributes
995
+ # the Chat app to the message by displaying its name. The content of message can
996
+ # only contain text (`text`). ![Message sent with user authentication](https://
997
+ # developers.google.com/workspace/chat/images/message-user-auth.svg) The maximum
998
+ # message size, including the message contents, is 32,000 bytes.
987
999
  # @param [String] parent
988
1000
  # Required. The resource name of the space in which to create a message. Format:
989
1001
  # `spaces/`space``
@@ -45,6 +45,18 @@ module Google
45
45
  # View display name, description, and other metadata for all Google Chat conversations owned by your organization
46
46
  AUTH_CHAT_ADMIN_SPACES_READONLY = 'https://www.googleapis.com/auth/chat.admin.spaces.readonly'
47
47
 
48
+ # On their own behalf, apps in Google Chat can delete conversations and spaces and remove access to associated files
49
+ AUTH_CHAT_APP_DELETE = 'https://www.googleapis.com/auth/chat.app.delete'
50
+
51
+ # On their own behalf, apps in Google Chat can see, add, update, and remove members from conversations and spaces
52
+ AUTH_CHAT_APP_MEMBERSHIPS = 'https://www.googleapis.com/auth/chat.app.memberships'
53
+
54
+ # On their own behalf, apps in Google Chat can create conversations and spaces and see or update their metadata (including history settings and access settings)
55
+ AUTH_CHAT_APP_SPACES = 'https://www.googleapis.com/auth/chat.app.spaces'
56
+
57
+ # On their own behalf, apps in Google Chat can create conversations and spaces
58
+ AUTH_CHAT_APP_SPACES_CREATE = 'https://www.googleapis.com/auth/chat.app.spaces.create'
59
+
48
60
  # Private Service: https://www.googleapis.com/auth/chat.bot
49
61
  AUTH_CHAT_BOT = 'https://www.googleapis.com/auth/chat.bot'
50
62
 
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.102.0
4
+ version: 0.104.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: 2024-08-25 00:00:00.000000000 Z
11
+ date: 2024-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.102.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.104.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: []