@@ -84,6 +84,7 @@ type APIInterface interface {
84
84
TrackEvent (ctx context.Context , event * RemoteTrackMessage ) (err error )
85
85
GetSupportedWorkspaceClasses (ctx context.Context ) (res []* SupportedWorkspaceClass , err error )
86
86
87
+ GetTeam (ctx context.Context , teamID string ) (* Team , error )
87
88
GetTeams (ctx context.Context ) ([]* Team , error )
88
89
CreateTeam (ctx context.Context , teamName string ) (* Team , error )
89
90
GetTeamMembers (ctx context.Context , teamID string ) ([]* TeamMemberInfo , error )
@@ -210,6 +211,8 @@ const (
210
211
// FunctionGetSupportedWorkspaceClasses is the name of the getSupportedWorkspaceClasses function
211
212
FunctionGetSupportedWorkspaceClasses FunctionName = "getSupportedWorkspaceClasses"
212
213
214
+ // FunctionGetTeam is the name of the getTeam function
215
+ FunctionGetTeam FunctionName = "getTeam"
213
216
// FunctionGetTeams is the name of the getTeams function
214
217
FunctionGetTeams FunctionName = "getTeams"
215
218
// FunctionCreateTeam is the name of the createTeam function
@@ -1399,6 +1402,16 @@ func (gp *APIoverJSONRPC) GetSupportedWorkspaceClasses(ctx context.Context) (res
1399
1402
return
1400
1403
}
1401
1404
1405
+ func (gp * APIoverJSONRPC ) GetTeam (ctx context.Context , teamID string ) (res * Team , err error ) {
1406
+ if gp == nil {
1407
+ err = errNotConnected
1408
+ return
1409
+ }
1410
+ _params := []interface {}{teamID }
1411
+ err = gp .C .Call (ctx , string (FunctionGetTeam ), _params , & res )
1412
+ return
1413
+ }
1414
+
1402
1415
func (gp * APIoverJSONRPC ) GetTeams (ctx context.Context ) (res []* Team , err error ) {
1403
1416
if gp == nil {
1404
1417
err = errNotConnected
0 commit comments