google-apis-chat_v1 0.85.0 → 0.87.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1b6e5ba26dcca1f7ccbd73c16e7bf7a0eb8da5bbd24a5546038d31aa4d22a0d
4
- data.tar.gz: 391a0d87b6454cbd942cde2a15e4161dba30c0822bae873daba208829d8ccac9
3
+ metadata.gz: 8cebf69a3f03e20672e011b779b96d1aea3a70f071aba35bddace9345e8608bb
4
+ data.tar.gz: 343e2223742e9ba55f1b41c6fb9f99b43947027d8a96ffedb1080c90b4878e1b
5
5
  SHA512:
6
- metadata.gz: 70cdd4fb0a39d045687127f84a2600d69b060d5f5d1abc07466d7256bee747717d20d7b41ab85a68138eacbaf3ec77cc1a7b08876fc6aa9316df4c937fcfe1f8
7
- data.tar.gz: 3b34a5c4f096cfd1238a64faa6ee094f547ebdb0aeba70a4bc9087f5f65af89d04d553462617260f66102ab9f0c2ef7d6c683f0987430ee3262bda71dd753a38
6
+ metadata.gz: c79e8c242841a9f69076f2000a1bdd4b648c42f65988c6c9faadcd4579c6d9fba8b2ab228296f74df44da762ad489c6b54b5cc88fe4bb41e14deb7afb3227700
7
+ data.tar.gz: 7d23aa23fb62e86c73b1b1d050a6d50ad7eb38b375f29d40018bd0b831fce348bc4009f2f98644686994905b550a95e871f0b90abe8caa23feb6057f8fba95b1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.87.0 (2024-03-17)
4
+
5
+ * Regenerated from discovery document revision 20240310
6
+
7
+ ### v0.86.0 (2024-03-10)
8
+
9
+ * Regenerated from discovery document revision 20240305
10
+
3
11
  ### v0.85.0 (2024-03-03)
4
12
 
5
13
  * Regenerated from discovery document revision 20240227
@@ -133,6 +133,11 @@ module Google
133
133
  # @return [Fixnum]
134
134
  attr_accessor :length
135
135
 
136
+ # A rich link to a resource.
137
+ # Corresponds to the JSON property `richLinkMetadata`
138
+ # @return [Google::Apis::ChatV1::RichLinkMetadata]
139
+ attr_accessor :rich_link_metadata
140
+
136
141
  # Annotation metadata for slash commands (/).
137
142
  # Corresponds to the JSON property `slashCommand`
138
143
  # @return [Google::Apis::ChatV1::SlashCommandMetadata]
@@ -161,6 +166,7 @@ module Google
161
166
  # Update properties of this object
162
167
  def update!(**args)
163
168
  @length = args[:length] if args.key?(:length)
169
+ @rich_link_metadata = args[:rich_link_metadata] if args.key?(:rich_link_metadata)
164
170
  @slash_command = args[:slash_command] if args.key?(:slash_command)
165
171
  @start_index = args[:start_index] if args.key?(:start_index)
166
172
  @type = args[:type] if args.key?(:type)
@@ -433,15 +439,15 @@ module Google
433
439
  # "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle": "
434
440
  # Software Engineer", "imageUrl": "https://developers.google.com/chat/images/
435
441
  # quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "Avatar for
436
- # Sasha", `, "sections": [ ` "header": "Contact Info", "collapsible": true, "
442
+ # Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible": true, "
437
443
  # uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "startIcon": `
438
- # "knownIcon": "EMAIL", `, "text": "sasha@example.com", ` `, ` "decoratedText":
439
- # ` "startIcon": ` "knownIcon": "PERSON", `, "text": "Online", `, `, ` "
440
- # decoratedText": ` "startIcon": ` "knownIcon": "PHONE", `, "text": "+1 (555)
441
- # 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": `
442
- # "openLink": ` "url": "https://example.com/share", ` ` `, ` "text": "Edit", "
443
- # onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
444
- # viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
444
+ # "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "decoratedText": `
445
+ # "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `, ` "decoratedText"
446
+ # : ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555) 555-1234" ` `, ` "
447
+ # buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "openLink": ` "url"
448
+ # : "https://example.com/share" ` ` `, ` "text": "Edit", "onClick": ` "action": `
449
+ # "function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT" `
450
+ # ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
445
451
  # Corresponds to the JSON property `card`
446
452
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
447
453
  attr_accessor :card
@@ -942,15 +948,15 @@ module Google
942
948
  # "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle": "
943
949
  # Software Engineer", "imageUrl": "https://developers.google.com/chat/images/
944
950
  # quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "Avatar for
945
- # Sasha", `, "sections": [ ` "header": "Contact Info", "collapsible": true, "
951
+ # Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible": true, "
946
952
  # uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "startIcon": `
947
- # "knownIcon": "EMAIL", `, "text": "sasha@example.com", ` `, ` "decoratedText":
948
- # ` "startIcon": ` "knownIcon": "PERSON", `, "text": "Online", `, `, ` "
949
- # decoratedText": ` "startIcon": ` "knownIcon": "PHONE", `, "text": "+1 (555)
950
- # 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": `
951
- # "openLink": ` "url": "https://example.com/share", ` ` `, ` "text": "Edit", "
952
- # onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
953
- # viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
953
+ # "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "decoratedText": `
954
+ # "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `, ` "decoratedText"
955
+ # : ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555) 555-1234" ` `, ` "
956
+ # buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "openLink": ` "url"
957
+ # : "https://example.com/share" ` ` `, ` "text": "Edit", "onClick": ` "action": `
958
+ # "function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT" `
959
+ # ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
954
960
  # Corresponds to the JSON property `body`
955
961
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
956
962
  attr_accessor :body
@@ -1011,6 +1017,31 @@ module Google
1011
1017
  end
1012
1018
  end
1013
1019
 
1020
+ # Data for Google Drive links.
1021
+ class DriveLinkData
1022
+ include Google::Apis::Core::Hashable
1023
+
1024
+ # A reference to the data of a drive attachment.
1025
+ # Corresponds to the JSON property `driveDataRef`
1026
+ # @return [Google::Apis::ChatV1::DriveDataRef]
1027
+ attr_accessor :drive_data_ref
1028
+
1029
+ # The mime type of the linked Google Drive resource.
1030
+ # Corresponds to the JSON property `mimeType`
1031
+ # @return [String]
1032
+ attr_accessor :mime_type
1033
+
1034
+ def initialize(**args)
1035
+ update!(**args)
1036
+ end
1037
+
1038
+ # Update properties of this object
1039
+ def update!(**args)
1040
+ @drive_data_ref = args[:drive_data_ref] if args.key?(:drive_data_ref)
1041
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
1042
+ end
1043
+ end
1044
+
1014
1045
  # An emoji that is used as a reaction to a message.
1015
1046
  class Emoji
1016
1047
  include Google::Apis::Core::Hashable
@@ -1432,15 +1463,15 @@ module Google
1432
1463
  # "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle": "
1433
1464
  # Software Engineer", "imageUrl": "https://developers.google.com/chat/images/
1434
1465
  # quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "Avatar for
1435
- # Sasha", `, "sections": [ ` "header": "Contact Info", "collapsible": true, "
1466
+ # Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible": true, "
1436
1467
  # uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "startIcon": `
1437
- # "knownIcon": "EMAIL", `, "text": "sasha@example.com", ` `, ` "decoratedText":
1438
- # ` "startIcon": ` "knownIcon": "PERSON", `, "text": "Online", `, `, ` "
1439
- # decoratedText": ` "startIcon": ` "knownIcon": "PHONE", `, "text": "+1 (555)
1440
- # 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": `
1441
- # "openLink": ` "url": "https://example.com/share", ` ` `, ` "text": "Edit", "
1442
- # onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
1443
- # viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
1468
+ # "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "decoratedText": `
1469
+ # "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `, ` "decoratedText"
1470
+ # : ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555) 555-1234" ` `, ` "
1471
+ # buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "openLink": ` "url"
1472
+ # : "https://example.com/share" ` ` `, ` "text": "Edit", "onClick": ` "action": `
1473
+ # "function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT" `
1474
+ # ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
1444
1475
  class GoogleAppsCardV1Card
1445
1476
  include Google::Apis::Core::Hashable
1446
1477
 
@@ -2217,15 +2248,15 @@ module Google
2217
2248
  # "unique-card-id", "card": ` "header": ` "title": "Sasha", "subtitle": "
2218
2249
  # Software Engineer", "imageUrl": "https://developers.google.com/chat/images/
2219
2250
  # quickstart-app-avatar.png", "imageType": "CIRCLE", "imageAltText": "Avatar for
2220
- # Sasha", `, "sections": [ ` "header": "Contact Info", "collapsible": true, "
2251
+ # Sasha" `, "sections": [ ` "header": "Contact Info", "collapsible": true, "
2221
2252
  # uncollapsibleWidgetsCount": 1, "widgets": [ ` "decoratedText": ` "startIcon": `
2222
- # "knownIcon": "EMAIL", `, "text": "sasha@example.com", ` `, ` "decoratedText":
2223
- # ` "startIcon": ` "knownIcon": "PERSON", `, "text": "Online", `, `, ` "
2224
- # decoratedText": ` "startIcon": ` "knownIcon": "PHONE", `, "text": "+1 (555)
2225
- # 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "text": "Share", "onClick": `
2226
- # "openLink": ` "url": "https://example.com/share", ` ` `, ` "text": "Edit", "
2227
- # onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
2228
- # viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `, ], `, ` ], ` ```
2253
+ # "knownIcon": "EMAIL" `, "text": "sasha@example.com" ` `, ` "decoratedText": `
2254
+ # "startIcon": ` "knownIcon": "PERSON" `, "text": "Online" ` `, ` "decoratedText"
2255
+ # : ` "startIcon": ` "knownIcon": "PHONE" `, "text": "+1 (555) 555-1234" ` `, ` "
2256
+ # buttonList": ` "buttons": [ ` "text": "Share", "onClick": ` "openLink": ` "url"
2257
+ # : "https://example.com/share" ` ` `, ` "text": "Edit", "onClick": ` "action": `
2258
+ # "function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT" `
2259
+ # ] ` ` ` ] ` ` ] ` ] ` ` ] ` ```
2229
2260
  # Corresponds to the JSON property `card`
2230
2261
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
2231
2262
  attr_accessor :card
@@ -3546,12 +3577,12 @@ module Google
3546
3577
  # Output only. Contains the message `text` with markups added to communicate
3547
3578
  # formatting. This field might not capture all formatting visible in the UI, but
3548
3579
  # includes the following: * [Markup syntax](https://developers.google.com/chat/
3549
- # format-messages) for bold, italic, strikethrough, monospace, and monospace
3550
- # block. * [User mentions](https://developers.google.com/chat/format-messages#
3551
- # messages-@mention) using the format ``. * Custom hyperlinks using the format `<
3552
- # `url`|`rendered_text`>` where the first string is the URL and the second is
3553
- # the rendered text—for example, ``. * Custom emoji using the format `:`
3554
- # emoji_name`:`—for example, `:smile:`. This doesn't apply to Unicode emoji,
3580
+ # format-messages) for bold, italic, strikethrough, monospace, monospace block,
3581
+ # and bulleted list. * [User mentions](https://developers.google.com/chat/format-
3582
+ # messages#messages-@mention) using the format ``. * Custom hyperlinks using the
3583
+ # format `<`url`|`rendered_text`>` where the first string is the URL and the
3584
+ # second is the rendered text—for example, ``. * Custom emoji using the format `:
3585
+ # `emoji_name`:`—for example, `:smile:`. This doesn't apply to Unicode emoji,
3555
3586
  # such as `U+1F600` for a grinning face emoji. For more information, see [View
3556
3587
  # text formatting sent in a message](https://developers.google.com/chat/format-
3557
3588
  # messages#view_text_formatting_sent_in_a_message)
@@ -3788,6 +3819,37 @@ module Google
3788
3819
  end
3789
3820
  end
3790
3821
 
3822
+ # A rich link to a resource.
3823
+ class RichLinkMetadata
3824
+ include Google::Apis::Core::Hashable
3825
+
3826
+ # Data for Google Drive links.
3827
+ # Corresponds to the JSON property `driveLinkData`
3828
+ # @return [Google::Apis::ChatV1::DriveLinkData]
3829
+ attr_accessor :drive_link_data
3830
+
3831
+ # The rich link type.
3832
+ # Corresponds to the JSON property `richLinkType`
3833
+ # @return [String]
3834
+ attr_accessor :rich_link_type
3835
+
3836
+ # The URI of this link.
3837
+ # Corresponds to the JSON property `uri`
3838
+ # @return [String]
3839
+ attr_accessor :uri
3840
+
3841
+ def initialize(**args)
3842
+ update!(**args)
3843
+ end
3844
+
3845
+ # Update properties of this object
3846
+ def update!(**args)
3847
+ @drive_link_data = args[:drive_link_data] if args.key?(:drive_link_data)
3848
+ @rich_link_type = args[:rich_link_type] if args.key?(:rich_link_type)
3849
+ @uri = args[:uri] if args.key?(:uri)
3850
+ end
3851
+ end
3852
+
3791
3853
  # A section contains a collection of widgets that are rendered (vertically) in
3792
3854
  # the order that they are specified. Across all platforms, cards have a narrow
3793
3855
  # fixed width, so there's currently no need for layout properties (for example,
@@ -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.85.0"
19
+ GEM_VERSION = "0.87.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240227"
25
+ REVISION = "20240310"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,12 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class DriveLinkData
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class Emoji
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
@@ -508,6 +514,12 @@ module Google
508
514
  include Google::Apis::Core::JsonObjectSupport
509
515
  end
510
516
 
517
+ class RichLinkMetadata
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
511
523
  class Section
512
524
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
525
 
@@ -666,6 +678,8 @@ module Google
666
678
  # @private
667
679
  class Representation < Google::Apis::Core::JsonRepresentation
668
680
  property :length, as: 'length'
681
+ property :rich_link_metadata, as: 'richLinkMetadata', class: Google::Apis::ChatV1::RichLinkMetadata, decorator: Google::Apis::ChatV1::RichLinkMetadata::Representation
682
+
669
683
  property :slash_command, as: 'slashCommand', class: Google::Apis::ChatV1::SlashCommandMetadata, decorator: Google::Apis::ChatV1::SlashCommandMetadata::Representation
670
684
 
671
685
  property :start_index, as: 'startIndex'
@@ -892,6 +906,15 @@ module Google
892
906
  end
893
907
  end
894
908
 
909
+ class DriveLinkData
910
+ # @private
911
+ class Representation < Google::Apis::Core::JsonRepresentation
912
+ property :drive_data_ref, as: 'driveDataRef', class: Google::Apis::ChatV1::DriveDataRef, decorator: Google::Apis::ChatV1::DriveDataRef::Representation
913
+
914
+ property :mime_type, as: 'mimeType'
915
+ end
916
+ end
917
+
895
918
  class Emoji
896
919
  # @private
897
920
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1538,6 +1561,16 @@ module Google
1538
1561
  end
1539
1562
  end
1540
1563
 
1564
+ class RichLinkMetadata
1565
+ # @private
1566
+ class Representation < Google::Apis::Core::JsonRepresentation
1567
+ property :drive_link_data, as: 'driveLinkData', class: Google::Apis::ChatV1::DriveLinkData, decorator: Google::Apis::ChatV1::DriveLinkData::Representation
1568
+
1569
+ property :rich_link_type, as: 'richLinkType'
1570
+ property :uri, as: 'uri'
1571
+ end
1572
+ end
1573
+
1541
1574
  class Section
1542
1575
  # @private
1543
1576
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -358,8 +358,8 @@ module Google
358
358
  # @param [Fixnum] page_size
359
359
  # Optional. The maximum number of spaces to return. The service might return
360
360
  # fewer than this value. If unspecified, at most 100 spaces are returned. The
361
- # maximum value is 1,000. If you use a value more than 1,000, it's automatically
362
- # changed to 1,000. Negative values return an `INVALID_ARGUMENT` error.
361
+ # maximum value is 1000. If you use a value more than 1000, it's automatically
362
+ # changed to 1000. Negative values return an `INVALID_ARGUMENT` error.
363
363
  # @param [String] page_token
364
364
  # Optional. A page token, received from a previous list spaces call. Provide
365
365
  # this parameter to retrieve the subsequent page. When paginating, the filter
@@ -675,8 +675,8 @@ module Google
675
675
  # @param [Fixnum] page_size
676
676
  # Optional. The maximum number of memberships to return. The service might
677
677
  # return fewer than this value. If unspecified, at most 100 memberships are
678
- # returned. The maximum value is 1,000. If you use a value more than 1,000, it's
679
- # automatically changed to 1,000. Negative values return an `INVALID_ARGUMENT`
678
+ # returned. The maximum value is 1000. If you use a value more than 1000, it's
679
+ # automatically changed to 1000. Negative values return an `INVALID_ARGUMENT`
680
680
  # error.
681
681
  # @param [String] page_token
682
682
  # Optional. A page token, received from a previous call to list memberships.
@@ -912,8 +912,8 @@ module Google
912
912
  # @param [Fixnum] page_size
913
913
  # The maximum number of messages returned. The service might return fewer
914
914
  # messages than this value. If unspecified, at most 25 are returned. The maximum
915
- # value is 1,000. If you use a value more than 1,000, it's automatically changed
916
- # to 1,000. Negative values return an `INVALID_ARGUMENT` error.
915
+ # value is 1000. If you use a value more than 1000, it's automatically changed
916
+ # to 1000. Negative values return an `INVALID_ARGUMENT` error.
917
917
  # @param [String] page_token
918
918
  # Optional, if resuming from a previous query. A page token received from a
919
919
  # previous list messages call. Provide this parameter to retrieve the subsequent
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.85.0
4
+ version: 0.87.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-03-03 00:00:00.000000000 Z
11
+ date: 2024-03-17 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.85.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.87.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: []