Entities

The static Map lists Chat API resources: spaces, messages, members, and related paths with required filters such as space_name. Align base URL and bearer token with Google’s Chat API host.

Source & IDataSource

Implementation: Connectors/Communication/GoogleChatDataSource/GoogleChatDataSource.cs — GoogleChatDataSource : WebAPIDataSource. Read helpers call GetEntityAsync synchronously (.GetAwaiter().GetResult()) and attach the datasource to each entity; create/update helpers call PostAsync, PutAsync, or PatchAsync on documented path templates.

Command methods (CommandAttribute)

NameMethodReturnsObjectType
GetSpacesGetSpaces()IEnumerable<GoogleChatSpace>GoogleChatSpace
GetSpaceGetSpace(string spaceName)IEnumerable<GoogleChatSpace>GoogleChatSpace
GetSpaceMessagesGetSpaceMessages(string spaceName)IEnumerable<GoogleChatMessage>GoogleChatMessage
GetMessageGetMessage(string spaceName, string messageName)IEnumerable<GoogleChatMessage>GoogleChatMessage
GetSpaceMembersGetSpaceMembers(string spaceName)IEnumerable<GoogleChatMember>GoogleChatMember
GetUserSpacesGetUserSpaces()IEnumerable<GoogleChatUserSpace>GoogleChatUserSpace
GetUserMembershipsGetUserMemberships(string userName)IEnumerable<GoogleChatUserMembership>GoogleChatUserMembership
CreateMessageAsyncCreateMessageAsync(GoogleChatMessage message)Task<IEnumerable<GoogleChatMessage>>GoogleChatMessage
CreateSpaceAsyncCreateSpaceAsync(GoogleChatSpace space)Task<IEnumerable<GoogleChatSpace>>GoogleChatSpace
UpdateMessageAsyncUpdateMessageAsync(GoogleChatMessage message)Task<IEnumerable<GoogleChatMessage>>GoogleChatMessage
UpdateSpaceAsyncUpdateSpaceAsync(GoogleChatSpace space)Task<IEnumerable<GoogleChatSpace>>GoogleChatSpace

Model types

TheTechIdea.Beep.Connectors.Communication.GoogleChat.Models — GoogleChatSpace, GoogleChatMessage, GoogleChatMember, GoogleChatUser, GoogleChatUserSpace, GoogleChatUserMembership, GoogleChatMessageAttachment, GoogleChatMessageThread, GoogleChatMediaLink, GoogleChatSpaceDetails, GoogleChatCardWithId, and GoogleChatEntityBase in Models.cs.

Connection

Source summary: set WebAPIConnectionProperties.Url to the Google Chat API base and configure the Authorization header (service account or user OAuth, per your deployment).

Also read