google-apis-chat_v1 0.45.0 → 0.46.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: '08409004b9da104440f2e1c69c390d82b0f34d56422dbe101e0f01e1bda47266'
4
- data.tar.gz: 57ca9bb0cb9426c6b9a0c7f2c8be51f072245ed45a4f9008228c07b93f2000c2
3
+ metadata.gz: ee2805a84b9f9370f7c32a0511ac701078cd8298cd8845c03e6768968a381a14
4
+ data.tar.gz: 3b7622c07064f5cf823e5190a3508b3f619dae1792ea39bc1d23a0d6c0c0323f
5
5
  SHA512:
6
- metadata.gz: 5ef031af14a76cd4409f28952fd5b94eb9ba1c7d6efdc6171914c67134306054b78ed8270baacbf17d015121250ecfae5de898f4f0d542ffa667f3f416bc3281
7
- data.tar.gz: 0a65fd2c7161d0b789ddbd5c62520e97ac62bc3f96c59452bc5735e6a53c5a59d32541232c10abb8db48b8cd15bbfb0cba04ead647e3829e3fadb1d4b5558ee2
6
+ metadata.gz: 31aa03d3d5181fc41381189cf1f0d79198f2a7feae30613ec89fd0e445944b54f799faa532b570aa92ef22bfe558f0baee37aec4bd11decb1832e9c4b72435bb
7
+ data.tar.gz: 8f48896bdd2308878b835702f6cbeac1e135ced13bbb6d0d40b609328320da32e6e30aa880ad7c91ecd7672702d508d5c33903b31954495c66b60c49c85fb70d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.46.0 (2022-10-16)
4
+
5
+ * Regenerated from discovery document revision 20221011
6
+
3
7
  ### v0.45.0 (2022-09-21)
4
8
 
5
9
  * Regenerated from discovery document revision 20220914
@@ -310,7 +310,7 @@ module Google
310
310
 
311
311
  # A card action is the action associated with the card. For an invoice card, a
312
312
  # typical action would be: delete invoice, email invoice or open the invoice in
313
- # browser.
313
+ # browser. Not supported by Google Chat apps.
314
314
  class CardAction
315
315
  include Google::Apis::Core::Hashable
316
316
 
@@ -378,24 +378,29 @@ module Google
378
378
  class CardWithId
379
379
  include Google::Apis::Core::Hashable
380
380
 
381
- # A card is a UI element that can contain UI widgets such as text and images.
382
- # For more information, see Cards . For example, the following JSON creates a
383
- # card that has a header with the name, position, icons, and link for a contact,
384
- # followed by a section with contact information like email and phone number. ```
385
- # ` "header": ` "title": "Sasha", "subtitle": "Software Engineer", "imageStyle":
386
- # "ImageStyle.AVATAR", "imageUrl": "https://example.com/sasha.png", "
387
- # imageAltText": "Avatar for Sasha" `, "sections" : [ ` "header": "Contact Info",
388
- # "widgets": [ ` "decorated_text": ` "icon": ` "knownIcon": "EMAIL" `, "content"
389
- # : "sasha@example.com" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "PERSON"
390
- # `, "content": "Online" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "
391
- # PHONE" `, "content": "+1 (555) 555-1234" ` `, ` "buttons": [ ` "textButton": `
392
- # "text": "Share", `, "onClick": ` "openLink": ` "url": "https://example.com/
393
- # share" ` ` `, ` "textButton": ` "text": "Edit", `, "onClick": ` "action": ` "
394
- # function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT" ` ]
395
- # , "loadIndicator": "LoadIndicator.SPINNER" ` ` ` ] ` ], "collapsible": true, "
396
- # uncollapsibleWidgetsCount": 3 ` ], "cardActions": [ ` "actionLabel": "Send
397
- # Feedback", "onClick": ` "openLink": ` "url": "https://example.com/feedback" ` `
398
- # ` ], "name": "contact-card-K3wB6arF2H9L" ` ```
381
+ # Cards support a defined layout, interactive UI elements like buttons, and rich
382
+ # media like images. Use cards to present detailed information, gather
383
+ # information from users, and guide users to take a next step. In Google Chat,
384
+ # cards appear in several places: - As stand-alone messages. - Accompanying a
385
+ # text message, just beneath the text message. - As a [dialog](https://
386
+ # developers.google.com/chat/how-tos/dialogs). The following example JSON
387
+ # creates a "contact card" that features: - A header with the contact's name,
388
+ # job title, avatar picture. - A section with the contact information, including
389
+ # formatted text. - Buttons that users can click to share the contact or see
390
+ # more or less info. ![Example contact card](/chat/images/card_api_reference.png)
391
+ # ``` ` "cardsV2": [ ` "cardId": "unique-card-id", "card": ` "header": ` "title"
392
+ # : "Sasha", "subtitle": "Software Engineer", "imageUrl": "https://developers.
393
+ # google.com/chat/images/quickstart-app-avatar.png", "imageType": "CIRCLE", "
394
+ # imageAltText": "Avatar for Sasha", `, "sections": [ ` "header": "Contact Info",
395
+ # "collapsible": true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "
396
+ # decoratedText": ` "startIcon": ` "knownIcon": "EMAIL", `, "text": "sasha@
397
+ # example.com", ` `, ` "decoratedText": ` "startIcon": ` "knownIcon": "PERSON", `
398
+ # , "text": "Online", `, `, ` "decoratedText": ` "startIcon": ` "knownIcon": "
399
+ # PHONE", `, "text": "+1 (555) 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "
400
+ # text": "Share", "onClick": ` "openLink": ` "url": "https://example.com/share",
401
+ # ` ` `, ` "text": "Edit", "onClick": ` "action": ` "function": "goToView", "
402
+ # parameters": [ ` "key": "viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `,
403
+ # ], `, ` ], ` ```
399
404
  # Corresponds to the JSON property `card`
400
405
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
401
406
  attr_accessor :card
@@ -775,24 +780,29 @@ module Google
775
780
  class Dialog
776
781
  include Google::Apis::Core::Hashable
777
782
 
778
- # A card is a UI element that can contain UI widgets such as text and images.
779
- # For more information, see Cards . For example, the following JSON creates a
780
- # card that has a header with the name, position, icons, and link for a contact,
781
- # followed by a section with contact information like email and phone number. ```
782
- # ` "header": ` "title": "Sasha", "subtitle": "Software Engineer", "imageStyle":
783
- # "ImageStyle.AVATAR", "imageUrl": "https://example.com/sasha.png", "
784
- # imageAltText": "Avatar for Sasha" `, "sections" : [ ` "header": "Contact Info",
785
- # "widgets": [ ` "decorated_text": ` "icon": ` "knownIcon": "EMAIL" `, "content"
786
- # : "sasha@example.com" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "PERSON"
787
- # `, "content": "Online" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "
788
- # PHONE" `, "content": "+1 (555) 555-1234" ` `, ` "buttons": [ ` "textButton": `
789
- # "text": "Share", `, "onClick": ` "openLink": ` "url": "https://example.com/
790
- # share" ` ` `, ` "textButton": ` "text": "Edit", `, "onClick": ` "action": ` "
791
- # function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT" ` ]
792
- # , "loadIndicator": "LoadIndicator.SPINNER" ` ` ` ] ` ], "collapsible": true, "
793
- # uncollapsibleWidgetsCount": 3 ` ], "cardActions": [ ` "actionLabel": "Send
794
- # Feedback", "onClick": ` "openLink": ` "url": "https://example.com/feedback" ` `
795
- # ` ], "name": "contact-card-K3wB6arF2H9L" ` ```
783
+ # Cards support a defined layout, interactive UI elements like buttons, and rich
784
+ # media like images. Use cards to present detailed information, gather
785
+ # information from users, and guide users to take a next step. In Google Chat,
786
+ # cards appear in several places: - As stand-alone messages. - Accompanying a
787
+ # text message, just beneath the text message. - As a [dialog](https://
788
+ # developers.google.com/chat/how-tos/dialogs). The following example JSON
789
+ # creates a "contact card" that features: - A header with the contact's name,
790
+ # job title, avatar picture. - A section with the contact information, including
791
+ # formatted text. - Buttons that users can click to share the contact or see
792
+ # more or less info. ![Example contact card](/chat/images/card_api_reference.png)
793
+ # ``` ` "cardsV2": [ ` "cardId": "unique-card-id", "card": ` "header": ` "title"
794
+ # : "Sasha", "subtitle": "Software Engineer", "imageUrl": "https://developers.
795
+ # google.com/chat/images/quickstart-app-avatar.png", "imageType": "CIRCLE", "
796
+ # imageAltText": "Avatar for Sasha", `, "sections": [ ` "header": "Contact Info",
797
+ # "collapsible": true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "
798
+ # decoratedText": ` "startIcon": ` "knownIcon": "EMAIL", `, "text": "sasha@
799
+ # example.com", ` `, ` "decoratedText": ` "startIcon": ` "knownIcon": "PERSON", `
800
+ # , "text": "Online", `, `, ` "decoratedText": ` "startIcon": ` "knownIcon": "
801
+ # PHONE", `, "text": "+1 (555) 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "
802
+ # text": "Share", "onClick": ` "openLink": ` "url": "https://example.com/share",
803
+ # ` ` `, ` "text": "Edit", "onClick": ` "action": ` "function": "goToView", "
804
+ # parameters": [ ` "key": "viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `,
805
+ # ], `, ` ], ` ```
796
806
  # Corresponds to the JSON property `body`
797
807
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
798
808
  attr_accessor :body
@@ -1168,34 +1178,39 @@ module Google
1168
1178
  end
1169
1179
  end
1170
1180
 
1171
- # A card is a UI element that can contain UI widgets such as text and images.
1172
- # For more information, see Cards . For example, the following JSON creates a
1173
- # card that has a header with the name, position, icons, and link for a contact,
1174
- # followed by a section with contact information like email and phone number. ```
1175
- # ` "header": ` "title": "Sasha", "subtitle": "Software Engineer", "imageStyle":
1176
- # "ImageStyle.AVATAR", "imageUrl": "https://example.com/sasha.png", "
1177
- # imageAltText": "Avatar for Sasha" `, "sections" : [ ` "header": "Contact Info",
1178
- # "widgets": [ ` "decorated_text": ` "icon": ` "knownIcon": "EMAIL" `, "content"
1179
- # : "sasha@example.com" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "PERSON"
1180
- # `, "content": "Online" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "
1181
- # PHONE" `, "content": "+1 (555) 555-1234" ` `, ` "buttons": [ ` "textButton": `
1182
- # "text": "Share", `, "onClick": ` "openLink": ` "url": "https://example.com/
1183
- # share" ` ` `, ` "textButton": ` "text": "Edit", `, "onClick": ` "action": ` "
1184
- # function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT" ` ]
1185
- # , "loadIndicator": "LoadIndicator.SPINNER" ` ` ` ] ` ], "collapsible": true, "
1186
- # uncollapsibleWidgetsCount": 3 ` ], "cardActions": [ ` "actionLabel": "Send
1187
- # Feedback", "onClick": ` "openLink": ` "url": "https://example.com/feedback" ` `
1188
- # ` ], "name": "contact-card-K3wB6arF2H9L" ` ```
1181
+ # Cards support a defined layout, interactive UI elements like buttons, and rich
1182
+ # media like images. Use cards to present detailed information, gather
1183
+ # information from users, and guide users to take a next step. In Google Chat,
1184
+ # cards appear in several places: - As stand-alone messages. - Accompanying a
1185
+ # text message, just beneath the text message. - As a [dialog](https://
1186
+ # developers.google.com/chat/how-tos/dialogs). The following example JSON
1187
+ # creates a "contact card" that features: - A header with the contact's name,
1188
+ # job title, avatar picture. - A section with the contact information, including
1189
+ # formatted text. - Buttons that users can click to share the contact or see
1190
+ # more or less info. ![Example contact card](/chat/images/card_api_reference.png)
1191
+ # ``` ` "cardsV2": [ ` "cardId": "unique-card-id", "card": ` "header": ` "title"
1192
+ # : "Sasha", "subtitle": "Software Engineer", "imageUrl": "https://developers.
1193
+ # google.com/chat/images/quickstart-app-avatar.png", "imageType": "CIRCLE", "
1194
+ # imageAltText": "Avatar for Sasha", `, "sections": [ ` "header": "Contact Info",
1195
+ # "collapsible": true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "
1196
+ # decoratedText": ` "startIcon": ` "knownIcon": "EMAIL", `, "text": "sasha@
1197
+ # example.com", ` `, ` "decoratedText": ` "startIcon": ` "knownIcon": "PERSON", `
1198
+ # , "text": "Online", `, `, ` "decoratedText": ` "startIcon": ` "knownIcon": "
1199
+ # PHONE", `, "text": "+1 (555) 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "
1200
+ # text": "Share", "onClick": ` "openLink": ` "url": "https://example.com/share",
1201
+ # ` ` `, ` "text": "Edit", "onClick": ` "action": ` "function": "goToView", "
1202
+ # parameters": [ ` "key": "viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `,
1203
+ # ], `, ` ], ` ```
1189
1204
  class GoogleAppsCardV1Card
1190
1205
  include Google::Apis::Core::Hashable
1191
1206
 
1192
1207
  # The card's actions. Actions are added to the card's generated toolbar menu.
1193
- # For example, the following JSON constructs a card action menu with Settings
1194
- # and Send Feedback options: ``` "card_actions": [ ` "actionLabel": "Settings", "
1195
- # onClick": ` "action": ` "functionName": "goToView", "parameters": [ ` "key": "
1196
- # viewType", "value": "SETTING" ` ], "loadIndicator": "LoadIndicator.SPINNER" ` `
1197
- # `, ` "actionLabel": "Send Feedback", "onClick": ` "openLink": ` "url": "https:
1198
- # //example.com/feedback" ` ` ` ] ```
1208
+ # Not supported by Google Chat apps. For example, the following JSON constructs
1209
+ # a card action menu with Settings and Send Feedback options: ``` "card_actions":
1210
+ # [ ` "actionLabel": "Settings", "onClick": ` "action": ` "functionName": "
1211
+ # goToView", "parameters": [ ` "key": "viewType", "value": "SETTING" ` ], "
1212
+ # loadIndicator": "LoadIndicator.SPINNER" ` ` `, ` "actionLabel": "Send Feedback"
1213
+ # , "onClick": ` "openLink": ` "url": "https://example.com/feedback" ` ` ` ] ```
1199
1214
  # Corresponds to the JSON property `cardActions`
1200
1215
  # @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1CardAction>]
1201
1216
  attr_accessor :card_actions
@@ -1248,7 +1263,7 @@ module Google
1248
1263
 
1249
1264
  # A card action is the action associated with the card. For example, an invoice
1250
1265
  # card might include actions such as delete invoice, email invoice, or open the
1251
- # invoice in a browser.
1266
+ # invoice in a browser. Not supported by Google Chat apps.
1252
1267
  class GoogleAppsCardV1CardAction
1253
1268
  include Google::Apis::Core::Hashable
1254
1269
 
@@ -1728,24 +1743,29 @@ module Google
1728
1743
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
1729
1744
  attr_accessor :action
1730
1745
 
1731
- # A card is a UI element that can contain UI widgets such as text and images.
1732
- # For more information, see Cards . For example, the following JSON creates a
1733
- # card that has a header with the name, position, icons, and link for a contact,
1734
- # followed by a section with contact information like email and phone number. ```
1735
- # ` "header": ` "title": "Sasha", "subtitle": "Software Engineer", "imageStyle":
1736
- # "ImageStyle.AVATAR", "imageUrl": "https://example.com/sasha.png", "
1737
- # imageAltText": "Avatar for Sasha" `, "sections" : [ ` "header": "Contact Info",
1738
- # "widgets": [ ` "decorated_text": ` "icon": ` "knownIcon": "EMAIL" `, "content"
1739
- # : "sasha@example.com" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "PERSON"
1740
- # `, "content": "Online" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "
1741
- # PHONE" `, "content": "+1 (555) 555-1234" ` `, ` "buttons": [ ` "textButton": `
1742
- # "text": "Share", `, "onClick": ` "openLink": ` "url": "https://example.com/
1743
- # share" ` ` `, ` "textButton": ` "text": "Edit", `, "onClick": ` "action": ` "
1744
- # function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT" ` ]
1745
- # , "loadIndicator": "LoadIndicator.SPINNER" ` ` ` ] ` ], "collapsible": true, "
1746
- # uncollapsibleWidgetsCount": 3 ` ], "cardActions": [ ` "actionLabel": "Send
1747
- # Feedback", "onClick": ` "openLink": ` "url": "https://example.com/feedback" ` `
1748
- # ` ], "name": "contact-card-K3wB6arF2H9L" ` ```
1746
+ # Cards support a defined layout, interactive UI elements like buttons, and rich
1747
+ # media like images. Use cards to present detailed information, gather
1748
+ # information from users, and guide users to take a next step. In Google Chat,
1749
+ # cards appear in several places: - As stand-alone messages. - Accompanying a
1750
+ # text message, just beneath the text message. - As a [dialog](https://
1751
+ # developers.google.com/chat/how-tos/dialogs). The following example JSON
1752
+ # creates a "contact card" that features: - A header with the contact's name,
1753
+ # job title, avatar picture. - A section with the contact information, including
1754
+ # formatted text. - Buttons that users can click to share the contact or see
1755
+ # more or less info. ![Example contact card](/chat/images/card_api_reference.png)
1756
+ # ``` ` "cardsV2": [ ` "cardId": "unique-card-id", "card": ` "header": ` "title"
1757
+ # : "Sasha", "subtitle": "Software Engineer", "imageUrl": "https://developers.
1758
+ # google.com/chat/images/quickstart-app-avatar.png", "imageType": "CIRCLE", "
1759
+ # imageAltText": "Avatar for Sasha", `, "sections": [ ` "header": "Contact Info",
1760
+ # "collapsible": true, "uncollapsibleWidgetsCount": 1, "widgets": [ ` "
1761
+ # decoratedText": ` "startIcon": ` "knownIcon": "EMAIL", `, "text": "sasha@
1762
+ # example.com", ` `, ` "decoratedText": ` "startIcon": ` "knownIcon": "PERSON", `
1763
+ # , "text": "Online", `, `, ` "decoratedText": ` "startIcon": ` "knownIcon": "
1764
+ # PHONE", `, "text": "+1 (555) 555-1234", ` `, ` "buttonList": ` "buttons": [ ` "
1765
+ # text": "Share", "onClick": ` "openLink": ` "url": "https://example.com/share",
1766
+ # ` ` `, ` "text": "Edit", "onClick": ` "action": ` "function": "goToView", "
1767
+ # parameters": [ ` "key": "viewType", "value": "EDIT", ` ], ` ` `, ], ` `, ], `,
1768
+ # ], `, ` ], ` ```
1749
1769
  # Corresponds to the JSON property `card`
1750
1770
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
1751
1771
  attr_accessor :card
@@ -2518,9 +2538,10 @@ module Google
2518
2538
  # @return [Array<Google::Apis::ChatV1::Attachment>]
2519
2539
  attr_accessor :attachment
2520
2540
 
2521
- # Rich, formatted and interactive cards that can be used to display UI elements
2522
- # such as: formatted texts, buttons, clickable images. Cards are normally
2523
- # displayed below the plain-text body of the message.
2541
+ # Deprecated: Use `cards_v2` instead. Rich, formatted and interactive cards that
2542
+ # can be used to display UI elements such as: formatted texts, buttons,
2543
+ # clickable images. Cards are normally displayed below the plain-text body of
2544
+ # the message.
2524
2545
  # Corresponds to the JSON property `cards`
2525
2546
  # @return [Array<Google::Apis::ChatV1::Card>]
2526
2547
  attr_accessor :cards
@@ -2532,11 +2553,20 @@ module Google
2532
2553
  # (https://developers.google.com/chat/how-tos/dialogs). The `cardId` is a unique
2533
2554
  # identifier among cards in the same message and for identifying user input
2534
2555
  # values. Currently supported widgets include: - `TextParagraph` - `
2535
- # DecoratedText` - `Image` - `ButtonList`
2556
+ # DecoratedText` - `Image` - `ButtonList` - `Divider`
2536
2557
  # Corresponds to the JSON property `cardsV2`
2537
2558
  # @return [Array<Google::Apis::ChatV1::CardWithId>]
2538
2559
  attr_accessor :cards_v2
2539
2560
 
2561
+ # A custom name for a Chat message assigned at creation. Must start with `client-
2562
+ # ` and contain only lowercase letters, numbers, and hyphens up to 63 characters
2563
+ # in length. Specify this field to get, update, or delete the message with the
2564
+ # specified value. For example usage, see [Name a created message](https://
2565
+ # developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
2566
+ # Corresponds to the JSON property `clientAssignedMessageId`
2567
+ # @return [String]
2568
+ attr_accessor :client_assigned_message_id
2569
+
2540
2570
  # Output only. The time at which the message was created in Google Chat server.
2541
2571
  # Corresponds to the JSON property `createTime`
2542
2572
  # @return [String]
@@ -2607,6 +2637,7 @@ module Google
2607
2637
  @attachment = args[:attachment] if args.key?(:attachment)
2608
2638
  @cards = args[:cards] if args.key?(:cards)
2609
2639
  @cards_v2 = args[:cards_v2] if args.key?(:cards_v2)
2640
+ @client_assigned_message_id = args[:client_assigned_message_id] if args.key?(:client_assigned_message_id)
2610
2641
  @create_time = args[:create_time] if args.key?(:create_time)
2611
2642
  @fallback_text = args[:fallback_text] if args.key?(:fallback_text)
2612
2643
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
@@ -3033,10 +3064,8 @@ module Google
3033
3064
  attr_accessor :is_anonymous
3034
3065
  alias_method :is_anonymous?, :is_anonymous
3035
3066
 
3036
- # Resource name for a Google Chat user. Represents a [person](https://developers.
3037
- # google.com/people/api/rest/v1/people#Person) in the People API or a [user](
3038
- # https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in
3039
- # the Admin SDK Directory API. Formatted as: `users/`user``
3067
+ # Resource name for a Google Chat user. For human users, represents a person in
3068
+ # the People API or a user in the Admin SDK Directory API. Format: `users/`user``
3040
3069
  # Corresponds to the JSON property `name`
3041
3070
  # @return [String]
3042
3071
  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.45.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220914"
25
+ REVISION = "20221011"
26
26
  end
27
27
  end
28
28
  end
@@ -1166,6 +1166,7 @@ module Google
1166
1166
 
1167
1167
  collection :cards_v2, as: 'cardsV2', class: Google::Apis::ChatV1::CardWithId, decorator: Google::Apis::ChatV1::CardWithId::Representation
1168
1168
 
1169
+ property :client_assigned_message_id, as: 'clientAssignedMessageId'
1169
1170
  property :create_time, as: 'createTime'
1170
1171
  property :fallback_text, as: 'fallbackText'
1171
1172
  property :last_update_time, as: 'lastUpdateTime'
@@ -56,6 +56,13 @@ module Google
56
56
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
57
57
  # AAAAAAAAAAA
58
58
  # @param [Google::Apis::ChatV1::Message] message_object
59
+ # @param [String] message_id
60
+ # Optional. A custom name for a Chat message assigned at creation. Must start
61
+ # with `client-` and contain only lowercase letters, numbers, and hyphens up to
62
+ # 63 characters in length. Specify this field to get, update, or delete the
63
+ # message with the specified value. For example usage, see [Name a created
64
+ # message](https://developers.google.com/chat/api/guides/crudl/messages#
65
+ # name_a_created_message).
59
66
  # @param [String] request_id
60
67
  # Optional. A unique request ID for this message. Specifying an existing request
61
68
  # ID returns the message created with that ID instead of creating a new message.
@@ -81,13 +88,14 @@ module Google
81
88
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
82
89
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
83
90
  # @raise [Google::Apis::AuthorizationError] Authorization is required
84
- def messages_dm(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
91
+ def messages_dm(parent, message_object = nil, message_id: nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
85
92
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
86
93
  command.request_representation = Google::Apis::ChatV1::Message::Representation
87
94
  command.request_object = message_object
88
95
  command.response_representation = Google::Apis::ChatV1::Message::Representation
89
96
  command.response_class = Google::Apis::ChatV1::Message
90
97
  command.params['parent'] = parent unless parent.nil?
98
+ command.query['messageId'] = message_id unless message_id.nil?
91
99
  command.query['requestId'] = request_id unless request_id.nil?
92
100
  command.query['threadKey'] = thread_key unless thread_key.nil?
93
101
  command.query['fields'] = fields unless fields.nil?
@@ -101,6 +109,13 @@ module Google
101
109
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
102
110
  # AAAAAAAAAAA
103
111
  # @param [Google::Apis::ChatV1::Message] message_object
112
+ # @param [String] message_id
113
+ # Optional. A custom name for a Chat message assigned at creation. Must start
114
+ # with `client-` and contain only lowercase letters, numbers, and hyphens up to
115
+ # 63 characters in length. Specify this field to get, update, or delete the
116
+ # message with the specified value. For example usage, see [Name a created
117
+ # message](https://developers.google.com/chat/api/guides/crudl/messages#
118
+ # name_a_created_message).
104
119
  # @param [String] request_id
105
120
  # Optional. A unique request ID for this message. Specifying an existing request
106
121
  # ID returns the message created with that ID instead of creating a new message.
@@ -126,13 +141,14 @@ module Google
126
141
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
127
142
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
128
143
  # @raise [Google::Apis::AuthorizationError] Authorization is required
129
- def webhooks_dm(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
144
+ def webhooks_dm(parent, message_object = nil, message_id: nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
130
145
  command = make_simple_command(:post, 'v1/{+parent}/webhooks', options)
131
146
  command.request_representation = Google::Apis::ChatV1::Message::Representation
132
147
  command.request_object = message_object
133
148
  command.response_representation = Google::Apis::ChatV1::Message::Representation
134
149
  command.response_class = Google::Apis::ChatV1::Message
135
150
  command.params['parent'] = parent unless parent.nil?
151
+ command.query['messageId'] = message_id unless message_id.nil?
136
152
  command.query['requestId'] = request_id unless request_id.nil?
137
153
  command.query['threadKey'] = thread_key unless thread_key.nil?
138
154
  command.query['fields'] = fields unless fields.nil?
@@ -146,6 +162,13 @@ module Google
146
162
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
147
163
  # AAAAAAAAAAA
148
164
  # @param [Google::Apis::ChatV1::Message] message_object
165
+ # @param [String] message_id
166
+ # Optional. A custom name for a Chat message assigned at creation. Must start
167
+ # with `client-` and contain only lowercase letters, numbers, and hyphens up to
168
+ # 63 characters in length. Specify this field to get, update, or delete the
169
+ # message with the specified value. For example usage, see [Name a created
170
+ # message](https://developers.google.com/chat/api/guides/crudl/messages#
171
+ # name_a_created_message).
149
172
  # @param [String] request_id
150
173
  # Optional. A unique request ID for this message. Specifying an existing request
151
174
  # ID returns the message created with that ID instead of creating a new message.
@@ -171,13 +194,14 @@ module Google
171
194
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
172
195
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
173
196
  # @raise [Google::Apis::AuthorizationError] Authorization is required
174
- def messages_dm_conversation(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
197
+ def messages_dm_conversation(parent, message_object = nil, message_id: nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
175
198
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
176
199
  command.request_representation = Google::Apis::ChatV1::Message::Representation
177
200
  command.request_object = message_object
178
201
  command.response_representation = Google::Apis::ChatV1::Message::Representation
179
202
  command.response_class = Google::Apis::ChatV1::Message
180
203
  command.params['parent'] = parent unless parent.nil?
204
+ command.query['messageId'] = message_id unless message_id.nil?
181
205
  command.query['requestId'] = request_id unless request_id.nil?
182
206
  command.query['threadKey'] = thread_key unless thread_key.nil?
183
207
  command.query['fields'] = fields unless fields.nil?
@@ -229,6 +253,13 @@ module Google
229
253
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
230
254
  # AAAAAAAAAAA
231
255
  # @param [Google::Apis::ChatV1::Message] message_object
256
+ # @param [String] message_id
257
+ # Optional. A custom name for a Chat message assigned at creation. Must start
258
+ # with `client-` and contain only lowercase letters, numbers, and hyphens up to
259
+ # 63 characters in length. Specify this field to get, update, or delete the
260
+ # message with the specified value. For example usage, see [Name a created
261
+ # message](https://developers.google.com/chat/api/guides/crudl/messages#
262
+ # name_a_created_message).
232
263
  # @param [String] request_id
233
264
  # Optional. A unique request ID for this message. Specifying an existing request
234
265
  # ID returns the message created with that ID instead of creating a new message.
@@ -254,13 +285,14 @@ module Google
254
285
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
255
286
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
256
287
  # @raise [Google::Apis::AuthorizationError] Authorization is required
257
- def messages_room(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
288
+ def messages_room(parent, message_object = nil, message_id: nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
258
289
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
259
290
  command.request_representation = Google::Apis::ChatV1::Message::Representation
260
291
  command.request_object = message_object
261
292
  command.response_representation = Google::Apis::ChatV1::Message::Representation
262
293
  command.response_class = Google::Apis::ChatV1::Message
263
294
  command.params['parent'] = parent unless parent.nil?
295
+ command.query['messageId'] = message_id unless message_id.nil?
264
296
  command.query['requestId'] = request_id unless request_id.nil?
265
297
  command.query['threadKey'] = thread_key unless thread_key.nil?
266
298
  command.query['fields'] = fields unless fields.nil?
@@ -274,6 +306,13 @@ module Google
274
306
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
275
307
  # AAAAAAAAAAA
276
308
  # @param [Google::Apis::ChatV1::Message] message_object
309
+ # @param [String] message_id
310
+ # Optional. A custom name for a Chat message assigned at creation. Must start
311
+ # with `client-` and contain only lowercase letters, numbers, and hyphens up to
312
+ # 63 characters in length. Specify this field to get, update, or delete the
313
+ # message with the specified value. For example usage, see [Name a created
314
+ # message](https://developers.google.com/chat/api/guides/crudl/messages#
315
+ # name_a_created_message).
277
316
  # @param [String] request_id
278
317
  # Optional. A unique request ID for this message. Specifying an existing request
279
318
  # ID returns the message created with that ID instead of creating a new message.
@@ -299,13 +338,14 @@ module Google
299
338
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
300
339
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
301
340
  # @raise [Google::Apis::AuthorizationError] Authorization is required
302
- def webhooks_room(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
341
+ def webhooks_room(parent, message_object = nil, message_id: nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
303
342
  command = make_simple_command(:post, 'v1/{+parent}/webhooks', options)
304
343
  command.request_representation = Google::Apis::ChatV1::Message::Representation
305
344
  command.request_object = message_object
306
345
  command.response_representation = Google::Apis::ChatV1::Message::Representation
307
346
  command.response_class = Google::Apis::ChatV1::Message
308
347
  command.params['parent'] = parent unless parent.nil?
348
+ command.query['messageId'] = message_id unless message_id.nil?
309
349
  command.query['requestId'] = request_id unless request_id.nil?
310
350
  command.query['threadKey'] = thread_key unless thread_key.nil?
311
351
  command.query['fields'] = fields unless fields.nil?
@@ -319,6 +359,13 @@ module Google
319
359
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
320
360
  # AAAAAAAAAAA
321
361
  # @param [Google::Apis::ChatV1::Message] message_object
362
+ # @param [String] message_id
363
+ # Optional. A custom name for a Chat message assigned at creation. Must start
364
+ # with `client-` and contain only lowercase letters, numbers, and hyphens up to
365
+ # 63 characters in length. Specify this field to get, update, or delete the
366
+ # message with the specified value. For example usage, see [Name a created
367
+ # message](https://developers.google.com/chat/api/guides/crudl/messages#
368
+ # name_a_created_message).
322
369
  # @param [String] request_id
323
370
  # Optional. A unique request ID for this message. Specifying an existing request
324
371
  # ID returns the message created with that ID instead of creating a new message.
@@ -344,13 +391,14 @@ module Google
344
391
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
345
392
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
346
393
  # @raise [Google::Apis::AuthorizationError] Authorization is required
347
- def messages_room_conversation(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
394
+ def messages_room_conversation(parent, message_object = nil, message_id: nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
348
395
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
349
396
  command.request_representation = Google::Apis::ChatV1::Message::Representation
350
397
  command.request_object = message_object
351
398
  command.response_representation = Google::Apis::ChatV1::Message::Representation
352
399
  command.response_class = Google::Apis::ChatV1::Message
353
400
  command.params['parent'] = parent unless parent.nil?
401
+ command.query['messageId'] = message_id unless message_id.nil?
354
402
  command.query['requestId'] = request_id unless request_id.nil?
355
403
  command.query['threadKey'] = thread_key unless thread_key.nil?
356
404
  command.query['fields'] = fields unless fields.nil?
@@ -432,6 +480,13 @@ module Google
432
480
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
433
481
  # AAAAAAAAAAA
434
482
  # @param [Google::Apis::ChatV1::Message] message_object
483
+ # @param [String] message_id
484
+ # Optional. A custom name for a Chat message assigned at creation. Must start
485
+ # with `client-` and contain only lowercase letters, numbers, and hyphens up to
486
+ # 63 characters in length. Specify this field to get, update, or delete the
487
+ # message with the specified value. For example usage, see [Name a created
488
+ # message](https://developers.google.com/chat/api/guides/crudl/messages#
489
+ # name_a_created_message).
435
490
  # @param [String] request_id
436
491
  # Optional. A unique request ID for this message. Specifying an existing request
437
492
  # ID returns the message created with that ID instead of creating a new message.
@@ -457,13 +512,14 @@ module Google
457
512
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
458
513
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
459
514
  # @raise [Google::Apis::AuthorizationError] Authorization is required
460
- def webhooks_space(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
515
+ def webhooks_space(parent, message_object = nil, message_id: nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
461
516
  command = make_simple_command(:post, 'v1/{+parent}/webhooks', options)
462
517
  command.request_representation = Google::Apis::ChatV1::Message::Representation
463
518
  command.request_object = message_object
464
519
  command.response_representation = Google::Apis::ChatV1::Message::Representation
465
520
  command.response_class = Google::Apis::ChatV1::Message
466
521
  command.params['parent'] = parent unless parent.nil?
522
+ command.query['messageId'] = message_id unless message_id.nil?
467
523
  command.query['requestId'] = request_id unless request_id.nil?
468
524
  command.query['threadKey'] = thread_key unless thread_key.nil?
469
525
  command.query['fields'] = fields unless fields.nil?
@@ -503,8 +559,9 @@ module Google
503
559
  execute_or_queue_command(command, &block)
504
560
  end
505
561
 
506
- # Lists human memberships in a space. Requires [service account authentication](
507
- # https://developers.google.com/chat/api/guides/auth/service-accounts).
562
+ # Lists human memberships in a space for joined members. Requires [service
563
+ # account authentication](https://developers.google.com/chat/api/guides/auth/
564
+ # service-accounts).
508
565
  # @param [String] parent
509
566
  # Required. The resource name of the space for which to fetch a membership list.
510
567
  # Format: spaces/`space`
@@ -548,6 +605,13 @@ module Google
548
605
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
549
606
  # AAAAAAAAAAA
550
607
  # @param [Google::Apis::ChatV1::Message] message_object
608
+ # @param [String] message_id
609
+ # Optional. A custom name for a Chat message assigned at creation. Must start
610
+ # with `client-` and contain only lowercase letters, numbers, and hyphens up to
611
+ # 63 characters in length. Specify this field to get, update, or delete the
612
+ # message with the specified value. For example usage, see [Name a created
613
+ # message](https://developers.google.com/chat/api/guides/crudl/messages#
614
+ # name_a_created_message).
551
615
  # @param [String] request_id
552
616
  # Optional. A unique request ID for this message. Specifying an existing request
553
617
  # ID returns the message created with that ID instead of creating a new message.
@@ -573,13 +637,14 @@ module Google
573
637
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
574
638
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
575
639
  # @raise [Google::Apis::AuthorizationError] Authorization is required
576
- def create_space_message(parent, message_object = nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
640
+ def create_space_message(parent, message_object = nil, message_id: nil, request_id: nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
577
641
  command = make_simple_command(:post, 'v1/{+parent}/messages', options)
578
642
  command.request_representation = Google::Apis::ChatV1::Message::Representation
579
643
  command.request_object = message_object
580
644
  command.response_representation = Google::Apis::ChatV1::Message::Representation
581
645
  command.response_class = Google::Apis::ChatV1::Message
582
646
  command.params['parent'] = parent unless parent.nil?
647
+ command.query['messageId'] = message_id unless message_id.nil?
583
648
  command.query['requestId'] = request_id unless request_id.nil?
584
649
  command.query['threadKey'] = thread_key unless thread_key.nil?
585
650
  command.query['fields'] = fields unless fields.nil?
@@ -622,8 +687,12 @@ module Google
622
687
  # Returns a message. Requires [service account authentication](https://
623
688
  # developers.google.com/chat/api/guides/auth/service-accounts).
624
689
  # @param [String] name
625
- # Required. Resource name of the message to be retrieved, in the form "spaces/*/
626
- # messages/*". Example: spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB
690
+ # Required. Resource name of the message to retrieve. Format: spaces/`space`/
691
+ # messages/`message` If the message begins with `client-`, then it has a custom
692
+ # name assigned by a Chat app that created it with the Chat REST API. That Chat
693
+ # app (but not others) can pass the custom name to get, update, or delete the
694
+ # message. To learn more, see [create and name a message] (https://developers.
695
+ # google.com/chat/api/guides/crudl/messages#name_a_created_message).
627
696
  # @param [String] fields
628
697
  # Selector specifying which fields to include in a partial response.
629
698
  # @param [String] quota_user
@@ -657,6 +726,11 @@ module Google
657
726
  # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
658
727
  # messages/BBBBBBBBBBB.BBBBBBBBBBB`
659
728
  # @param [Google::Apis::ChatV1::Message] message_object
729
+ # @param [Boolean] allow_missing
730
+ # Optional. If `true` and the message is not found, a new message is created and
731
+ # `updateMask` is ignored. The specified message ID must be [client-assigned](
732
+ # https://developers.google.com/chat/api/guides/crudl/messages#
733
+ # name_a_created_message) or the request fails.
660
734
  # @param [String] update_mask
661
735
  # Required. The field paths to update. Separate multiple values with commas.
662
736
  # Currently supported field paths: - text - cards (Requires [service account
@@ -678,13 +752,14 @@ module Google
678
752
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
679
753
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
680
754
  # @raise [Google::Apis::AuthorizationError] Authorization is required
681
- def update_space_message(name, message_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
755
+ def update_space_message(name, message_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
682
756
  command = make_simple_command(:put, 'v1/{+name}', options)
683
757
  command.request_representation = Google::Apis::ChatV1::Message::Representation
684
758
  command.request_object = message_object
685
759
  command.response_representation = Google::Apis::ChatV1::Message::Representation
686
760
  command.response_class = Google::Apis::ChatV1::Message
687
761
  command.params['name'] = name unless name.nil?
762
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
688
763
  command.query['updateMask'] = update_mask unless update_mask.nil?
689
764
  command.query['fields'] = fields unless fields.nil?
690
765
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -29,6 +29,9 @@ module Google
29
29
  # Version of the Google Chat API this client connects to.
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
+
33
+ # View, add, and remove members from conversations in Google Chat
34
+ AUTH_CHAT_MEMBERSHIPS = 'https://www.googleapis.com/auth/chat.memberships'
32
35
  end
33
36
  end
34
37
  end
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.45.0
4
+ version: 0.46.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: 2022-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-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.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.46.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: []