Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions google-apps-chat-v1/.owlbot-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"lib/google/chat/v1/action_status_pb.rb",
"lib/google/chat/v1/annotation_pb.rb",
"lib/google/chat/v1/attachment_pb.rb",
"lib/google/chat/v1/availability_pb.rb",
"lib/google/chat/v1/chat_service_pb.rb",
"lib/google/chat/v1/chat_service_services_pb.rb",
"lib/google/chat/v1/contextual_addon_pb.rb",
Expand Down Expand Up @@ -58,6 +59,7 @@
"proto_docs/google/chat/v1/action_status.rb",
"proto_docs/google/chat/v1/annotation.rb",
"proto_docs/google/chat/v1/attachment.rb",
"proto_docs/google/chat/v1/availability.rb",
"proto_docs/google/chat/v1/contextual_addon.rb",
"proto_docs/google/chat/v1/deletion_metadata.rb",
"proto_docs/google/chat/v1/event_payload.rb",
Expand Down Expand Up @@ -101,6 +103,7 @@
"snippets/chat_service/find_direct_message.rb",
"snippets/chat_service/find_group_chats.rb",
"snippets/chat_service/get_attachment.rb",
"snippets/chat_service/get_availability.rb",
"snippets/chat_service/get_custom_emoji.rb",
"snippets/chat_service/get_membership.rb",
"snippets/chat_service/get_message.rb",
Expand All @@ -117,10 +120,14 @@
"snippets/chat_service/list_sections.rb",
"snippets/chat_service/list_space_events.rb",
"snippets/chat_service/list_spaces.rb",
"snippets/chat_service/mark_as_active.rb",
"snippets/chat_service/mark_as_away.rb",
"snippets/chat_service/mark_as_do_not_disturb.rb",
"snippets/chat_service/move_section_item.rb",
"snippets/chat_service/position_section.rb",
"snippets/chat_service/search_spaces.rb",
"snippets/chat_service/set_up_space.rb",
"snippets/chat_service/update_availability.rb",
"snippets/chat_service/update_membership.rb",
"snippets/chat_service/update_message.rb",
"snippets/chat_service/update_section.rb",
Expand Down
25 changes: 25 additions & 0 deletions google-apps-chat-v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,31 @@
"get_thread_read_state"
]
},
"GetAvailability": {
"methods": [
"get_availability"
]
},
"MarkAsActive": {
"methods": [
"mark_as_active"
]
},
"MarkAsAway": {
"methods": [
"mark_as_away"
]
},
"MarkAsDoNotDisturb": {
"methods": [
"mark_as_do_not_disturb"
]
},
"UpdateAvailability": {
"methods": [
"update_availability"
]
},
"GetSpaceEvent": {
"methods": [
"get_space_event"
Expand Down
596 changes: 596 additions & 0 deletions google-apps-chat-v1/lib/google/apps/chat/v1/chat_service/client.rb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class Credentials < ::Google::Auth::Credentials
"https://www.googleapis.com/auth/chat.spaces",
"https://www.googleapis.com/auth/chat.spaces.create",
"https://www.googleapis.com/auth/chat.spaces.readonly",
"https://www.googleapis.com/auth/chat.users.availability",
"https://www.googleapis.com/auth/chat.users.availability.readonly",
"https://www.googleapis.com/auth/chat.users.readstate",
"https://www.googleapis.com/auth/chat.users.readstate.readonly",
"https://www.googleapis.com/auth/chat.users.sections",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ def attachment_path space:, message:, attachment:
"spaces/#{space}/messages/#{message}/attachments/#{attachment}"
end

##
# Create a fully-qualified Availability resource string.
#
# The resource will be in the following format:
#
# `users/{user}/availability`
#
# @param user [String]
#
# @return [::String]
def availability_path user:
"users/#{user}/availability"
end

##
# Create a fully-qualified CustomEmoji resource string.
#
Expand Down

Large diffs are not rendered by default.

Loading
Loading