Google Chat V1 API - Module Google::Apps::Chat::V1::ChatService::Paths (v0.4.0)

Reference documentation and code samples for the Google Chat V1 API module Google::Apps::Chat::V1::ChatService::Paths.

Path helper methods for the ChatService API.

Methods

#attachment_path

def attachment_path(space:, message:, attachment:) -> ::String

Create a fully-qualified Attachment resource string.

The resource will be in the following format:

spaces/{space}/messages/{message}/attachments/{attachment}

Parameters
  • space (String)
  • message (String)
  • attachment (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#membership_path

def membership_path(space:, member:) -> ::String

Create a fully-qualified Membership resource string.

The resource will be in the following format:

spaces/{space}/members/{member}

Parameters
  • space (String)
  • member (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#message_path

def message_path(space:, message:) -> ::String

Create a fully-qualified Message resource string.

The resource will be in the following format:

spaces/{space}/messages/{message}

Parameters
  • space (String)
  • message (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#quoted_message_metadata_path

def quoted_message_metadata_path(space:, message:, quoted_message_metadata:) -> ::String

Create a fully-qualified QuotedMessageMetadata resource string.

The resource will be in the following format:

spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}

Parameters
  • space (String)
  • message (String)
  • quoted_message_metadata (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#reaction_path

def reaction_path(space:, message:, reaction:) -> ::String

Create a fully-qualified Reaction resource string.

The resource will be in the following format:

spaces/{space}/messages/{message}/reactions/{reaction}

Parameters
  • space (String)
  • message (String)
  • reaction (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#space_event_path

def space_event_path(space:, space_event:) -> ::String

Create a fully-qualified SpaceEvent resource string.

The resource will be in the following format:

spaces/{space}/spaceEvents/{space_event}

Parameters
  • space (String)
  • space_event (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#space_path

def space_path(space:) -> ::String

Create a fully-qualified Space resource string.

The resource will be in the following format:

spaces/{space}

Parameter
  • space (String)
Returns
  • (::String)

#space_read_state_path

def space_read_state_path(user:, space:) -> ::String

Create a fully-qualified SpaceReadState resource string.

The resource will be in the following format:

users/{user}/spaces/{space}/spaceReadState

Parameters
  • user (String)
  • space (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#thread_path

def thread_path(space:, thread:) -> ::String

Create a fully-qualified Thread resource string.

The resource will be in the following format:

spaces/{space}/threads/{thread}

Parameters
  • space (String)
  • thread (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#thread_read_state_path

def thread_read_state_path(user:, space:, thread:) -> ::String

Create a fully-qualified ThreadReadState resource string.

The resource will be in the following format:

users/{user}/spaces/{space}/threads/{thread}/threadReadState

Parameters
  • user (String)
  • space (String)
  • thread (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)