google-apps-chat-v1 0.28.0 → 0.30.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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -1
  3. data/lib/google/apps/chat/v1/chat_service/client.rb +485 -51
  4. data/lib/google/apps/chat/v1/chat_service/credentials.rb +6 -1
  5. data/lib/google/apps/chat/v1/chat_service/paths.rb +18 -1
  6. data/lib/google/apps/chat/v1/chat_service/rest/client.rb +464 -51
  7. data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +185 -1
  8. data/lib/google/apps/chat/v1/chat_service/rest.rb +1 -1
  9. data/lib/google/apps/chat/v1/chat_service.rb +1 -1
  10. data/lib/google/apps/chat/v1/rest.rb +1 -1
  11. data/lib/google/apps/chat/v1/version.rb +1 -1
  12. data/lib/google/apps/chat/v1.rb +1 -1
  13. data/lib/google/chat/v1/app_command_metadata_pb.rb +22 -0
  14. data/lib/google/chat/v1/chat_service_pb.rb +2 -1
  15. data/lib/google/chat/v1/chat_service_services_pb.rb +53 -8
  16. data/lib/google/chat/v1/markup_syntax_pb.rb +21 -0
  17. data/lib/google/chat/v1/message_pb.rb +2 -1
  18. data/lib/google/chat/v1/message_pin_pb.rb +28 -0
  19. data/lib/google/chat/v1/space_pb.rb +2 -1
  20. data/lib/google-apps-chat-v1.rb +1 -1
  21. data/proto_docs/google/api/client.rb +1 -1
  22. data/proto_docs/google/api/field_behavior.rb +1 -1
  23. data/proto_docs/google/api/field_info.rb +1 -1
  24. data/proto_docs/google/api/launch_stage.rb +1 -1
  25. data/proto_docs/google/api/resource.rb +1 -1
  26. data/proto_docs/google/apps/card/v1/card.rb +2 -2
  27. data/proto_docs/google/chat/v1/action_status.rb +1 -1
  28. data/proto_docs/google/chat/v1/annotation.rb +6 -6
  29. data/proto_docs/google/chat/v1/app_command_metadata.rb +57 -0
  30. data/proto_docs/google/chat/v1/attachment.rb +1 -1
  31. data/proto_docs/google/chat/v1/contextual_addon.rb +1 -1
  32. data/proto_docs/google/chat/v1/deletion_metadata.rb +1 -1
  33. data/proto_docs/google/chat/v1/event_payload.rb +1 -1
  34. data/proto_docs/google/chat/v1/group.rb +1 -1
  35. data/proto_docs/google/chat/v1/history_state.rb +1 -1
  36. data/proto_docs/google/chat/v1/markup_syntax.rb +47 -0
  37. data/proto_docs/google/chat/v1/matched_url.rb +1 -1
  38. data/proto_docs/google/chat/v1/membership.rb +1 -1
  39. data/proto_docs/google/chat/v1/message.rb +60 -10
  40. data/proto_docs/google/chat/v1/message_pin.rb +106 -0
  41. data/proto_docs/google/chat/v1/reaction.rb +13 -13
  42. data/proto_docs/google/chat/v1/slash_command.rb +1 -1
  43. data/proto_docs/google/chat/v1/space.rb +117 -20
  44. data/proto_docs/google/chat/v1/space_event.rb +1 -1
  45. data/proto_docs/google/chat/v1/space_notification_setting.rb +4 -4
  46. data/proto_docs/google/chat/v1/space_read_state.rb +1 -1
  47. data/proto_docs/google/chat/v1/space_setup.rb +19 -7
  48. data/proto_docs/google/chat/v1/thread_read_state.rb +1 -1
  49. data/proto_docs/google/chat/v1/user.rb +1 -1
  50. data/proto_docs/google/chat/v1/widgets.rb +1 -1
  51. data/proto_docs/google/protobuf/duration.rb +1 -1
  52. data/proto_docs/google/protobuf/empty.rb +1 -1
  53. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  54. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  55. data/proto_docs/google/protobuf/wrappers.rb +1 -1
  56. data/proto_docs/google/rpc/code.rb +1 -1
  57. data/proto_docs/google/type/color.rb +1 -1
  58. metadata +7 -1
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -31,6 +31,9 @@ module Google
31
31
  "https://www.googleapis.com/auth/chat.admin.memberships.readonly",
32
32
  "https://www.googleapis.com/auth/chat.admin.spaces",
33
33
  "https://www.googleapis.com/auth/chat.admin.spaces.readonly",
34
+ "https://www.googleapis.com/auth/chat.app.all.memberships.readonly",
35
+ "https://www.googleapis.com/auth/chat.app.all.messages.readonly",
36
+ "https://www.googleapis.com/auth/chat.app.all.spaces.readonly",
34
37
  "https://www.googleapis.com/auth/chat.app.delete",
35
38
  "https://www.googleapis.com/auth/chat.app.memberships",
36
39
  "https://www.googleapis.com/auth/chat.app.memberships.readonly",
@@ -54,6 +57,8 @@ module Google
54
57
  "https://www.googleapis.com/auth/chat.messages.readonly",
55
58
  "https://www.googleapis.com/auth/chat.spaces",
56
59
  "https://www.googleapis.com/auth/chat.spaces.create",
60
+ "https://www.googleapis.com/auth/chat.spaces.pins",
61
+ "https://www.googleapis.com/auth/chat.spaces.pins.readonly",
57
62
  "https://www.googleapis.com/auth/chat.spaces.readonly",
58
63
  "https://www.googleapis.com/auth/chat.users.availability",
59
64
  "https://www.googleapis.com/auth/chat.users.availability.readonly",
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -105,6 +105,23 @@ module Google
105
105
  "spaces/#{space}/messages/#{message}"
106
106
  end
107
107
 
108
+ ##
109
+ # Create a fully-qualified MessagePin resource string.
110
+ #
111
+ # The resource will be in the following format:
112
+ #
113
+ # `spaces/{space}/messagePins/{message_pin}`
114
+ #
115
+ # @param space [String]
116
+ # @param message_pin [String]
117
+ #
118
+ # @return [::String]
119
+ def message_pin_path space:, message_pin:
120
+ raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
121
+
122
+ "spaces/#{space}/messagePins/#{message_pin}"
123
+ end
124
+
108
125
  ##
109
126
  # Create a fully-qualified QuotedMessageMetadata resource string.
110
127
  #