Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::ChatService::Rest::ServiceStub.
REST service stub for the ChatService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#complete_import_space
def complete_import_space(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::CompleteImportSpaceResponse
Baseline implementation for the complete_import_space REST call
- request_pb (::Google::Apps::Chat::V1::CompleteImportSpaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::CompleteImportSpaceResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::CompleteImportSpaceResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_membership
def create_membership(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Membership
Baseline implementation for the create_membership REST call
- request_pb (::Google::Apps::Chat::V1::CreateMembershipRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Membership)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Membership) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_message
def create_message(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Message
Baseline implementation for the create_message REST call
- request_pb (::Google::Apps::Chat::V1::CreateMessageRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Message)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Message) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_reaction
def create_reaction(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Reaction
Baseline implementation for the create_reaction REST call
- request_pb (::Google::Apps::Chat::V1::CreateReactionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Reaction)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Reaction) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_space
def create_space(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Space
Baseline implementation for the create_space REST call
- request_pb (::Google::Apps::Chat::V1::CreateSpaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Space)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Space) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_membership
def delete_membership(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Membership
Baseline implementation for the delete_membership REST call
- request_pb (::Google::Apps::Chat::V1::DeleteMembershipRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Membership)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Membership) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_message
def delete_message(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_message REST call
- request_pb (::Google::Apps::Chat::V1::DeleteMessageRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_reaction
def delete_reaction(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_reaction REST call
- request_pb (::Google::Apps::Chat::V1::DeleteReactionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_space
def delete_space(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_space REST call
- request_pb (::Google::Apps::Chat::V1::DeleteSpaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#find_direct_message
def find_direct_message(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Space
Baseline implementation for the find_direct_message REST call
- request_pb (::Google::Apps::Chat::V1::FindDirectMessageRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Space)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Space) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_attachment
def get_attachment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Attachment
Baseline implementation for the get_attachment REST call
- request_pb (::Google::Apps::Chat::V1::GetAttachmentRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Attachment)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Attachment) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_membership
def get_membership(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Membership
Baseline implementation for the get_membership REST call
- request_pb (::Google::Apps::Chat::V1::GetMembershipRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Membership)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Membership) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_message
def get_message(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Message
Baseline implementation for the get_message REST call
- request_pb (::Google::Apps::Chat::V1::GetMessageRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Message)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Message) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_space
def get_space(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Space
Baseline implementation for the get_space REST call
- request_pb (::Google::Apps::Chat::V1::GetSpaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Space)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Space) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_space_event
def get_space_event(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::SpaceEvent
Baseline implementation for the get_space_event REST call
- request_pb (::Google::Apps::Chat::V1::GetSpaceEventRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::SpaceEvent)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::SpaceEvent) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_space_read_state
def get_space_read_state(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::SpaceReadState
Baseline implementation for the get_space_read_state REST call
- request_pb (::Google::Apps::Chat::V1::GetSpaceReadStateRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::SpaceReadState)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::SpaceReadState) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_thread_read_state
def get_thread_read_state(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::ThreadReadState
Baseline implementation for the get_thread_read_state REST call
- request_pb (::Google::Apps::Chat::V1::GetThreadReadStateRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::ThreadReadState)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::ThreadReadState) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_memberships
def list_memberships(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::ListMembershipsResponse
Baseline implementation for the list_memberships REST call
- request_pb (::Google::Apps::Chat::V1::ListMembershipsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::ListMembershipsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::ListMembershipsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_messages
def list_messages(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::ListMessagesResponse
Baseline implementation for the list_messages REST call
- request_pb (::Google::Apps::Chat::V1::ListMessagesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::ListMessagesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::ListMessagesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_reactions
def list_reactions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::ListReactionsResponse
Baseline implementation for the list_reactions REST call
- request_pb (::Google::Apps::Chat::V1::ListReactionsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::ListReactionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::ListReactionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_space_events
def list_space_events(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::ListSpaceEventsResponse
Baseline implementation for the list_space_events REST call
- request_pb (::Google::Apps::Chat::V1::ListSpaceEventsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::ListSpaceEventsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::ListSpaceEventsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_spaces
def list_spaces(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::ListSpacesResponse
Baseline implementation for the list_spaces REST call
- request_pb (::Google::Apps::Chat::V1::ListSpacesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::ListSpacesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::ListSpacesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#search_spaces
def search_spaces(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::SearchSpacesResponse
Baseline implementation for the search_spaces REST call
- request_pb (::Google::Apps::Chat::V1::SearchSpacesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::SearchSpacesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::SearchSpacesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_up_space
def set_up_space(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Space
Baseline implementation for the set_up_space REST call
- request_pb (::Google::Apps::Chat::V1::SetUpSpaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Space)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Space) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_membership
def update_membership(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Membership
Baseline implementation for the update_membership REST call
- request_pb (::Google::Apps::Chat::V1::UpdateMembershipRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Membership)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Membership) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_message
def update_message(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Message
Baseline implementation for the update_message REST call
- request_pb (::Google::Apps::Chat::V1::UpdateMessageRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Message)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Message) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_space
def update_space(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::Space
Baseline implementation for the update_space REST call
- request_pb (::Google::Apps::Chat::V1::UpdateSpaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::Space)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::Space) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_space_read_state
def update_space_read_state(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::SpaceReadState
Baseline implementation for the update_space_read_state REST call
- request_pb (::Google::Apps::Chat::V1::UpdateSpaceReadStateRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::SpaceReadState)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::SpaceReadState) — A result object deserialized from the server's reply
- (::ArgumentError)
#upload_attachment
def upload_attachment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Apps::Chat::V1::UploadAttachmentResponse
Baseline implementation for the upload_attachment REST call
- request_pb (::Google::Apps::Chat::V1::UploadAttachmentRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Apps::Chat::V1::UploadAttachmentResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Apps::Chat::V1::UploadAttachmentResponse) — A result object deserialized from the server's reply
- (::ArgumentError)