Documentation ¶
Index ¶
- type CreateTeamArchiveOperationOptions
- type CreateTeamArchiveOperationResponse
- type CreateTeamArchiveRequest
- type CreateTeamCloneOperationOptions
- type CreateTeamCloneOperationResponse
- type CreateTeamCloneRequest
- type CreateTeamCompleteMigrationOperationOptions
- type CreateTeamCompleteMigrationOperationResponse
- type CreateTeamUnarchiveOperationOptions
- type CreateTeamUnarchiveOperationResponse
- type DeleteTeamOperationOptions
- type DeleteTeamOperationResponse
- type GetTeamOperationOptions
- type GetTeamOperationResponse
- type SendTeamActivityNotificationOperationOptions
- type SendTeamActivityNotificationOperationResponse
- type SendTeamActivityNotificationRequest
- type SetTeamOperationOptions
- type SetTeamOperationResponse
- type TeamClient
- func (c TeamClient) CreateTeamArchive(ctx context.Context, id stable.GroupId, input CreateTeamArchiveRequest, ...) (result CreateTeamArchiveOperationResponse, err error)
- func (c TeamClient) CreateTeamClone(ctx context.Context, id stable.GroupId, input CreateTeamCloneRequest, ...) (result CreateTeamCloneOperationResponse, err error)
- func (c TeamClient) CreateTeamCompleteMigration(ctx context.Context, id stable.GroupId, ...) (result CreateTeamCompleteMigrationOperationResponse, err error)
- func (c TeamClient) CreateTeamUnarchive(ctx context.Context, id stable.GroupId, ...) (result CreateTeamUnarchiveOperationResponse, err error)
- func (c TeamClient) DeleteTeam(ctx context.Context, id stable.GroupId, options DeleteTeamOperationOptions) (result DeleteTeamOperationResponse, err error)
- func (c TeamClient) GetTeam(ctx context.Context, id stable.GroupId, options GetTeamOperationOptions) (result GetTeamOperationResponse, err error)
- func (c TeamClient) SendTeamActivityNotification(ctx context.Context, id stable.GroupId, ...) (result SendTeamActivityNotificationOperationResponse, err error)
- func (c TeamClient) SetTeam(ctx context.Context, id stable.GroupId, input stable.Team, ...) (result SetTeamOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTeamArchiveOperationOptions ¶
type CreateTeamArchiveOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateTeamArchiveOperationOptions ¶
func DefaultCreateTeamArchiveOperationOptions() CreateTeamArchiveOperationOptions
func (CreateTeamArchiveOperationOptions) ToHeaders ¶
func (o CreateTeamArchiveOperationOptions) ToHeaders() *client.Headers
func (CreateTeamArchiveOperationOptions) ToOData ¶
func (o CreateTeamArchiveOperationOptions) ToOData() *odata.Query
func (CreateTeamArchiveOperationOptions) ToQuery ¶
func (o CreateTeamArchiveOperationOptions) ToQuery() *client.QueryParams
type CreateTeamCloneOperationOptions ¶
type CreateTeamCloneOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateTeamCloneOperationOptions ¶
func DefaultCreateTeamCloneOperationOptions() CreateTeamCloneOperationOptions
func (CreateTeamCloneOperationOptions) ToHeaders ¶
func (o CreateTeamCloneOperationOptions) ToHeaders() *client.Headers
func (CreateTeamCloneOperationOptions) ToOData ¶
func (o CreateTeamCloneOperationOptions) ToOData() *odata.Query
func (CreateTeamCloneOperationOptions) ToQuery ¶
func (o CreateTeamCloneOperationOptions) ToQuery() *client.QueryParams
type CreateTeamCloneRequest ¶
type CreateTeamCloneRequest struct { Classification nullable.Type[string] `json:"classification,omitempty"` Description nullable.Type[string] `json:"description,omitempty"` DisplayName nullable.Type[string] `json:"displayName,omitempty"` MailNickname nullable.Type[string] `json:"mailNickname,omitempty"` PartsToClone *stable.ClonableTeamParts `json:"partsToClone,omitempty"` Visibility *stable.TeamVisibilityType `json:"visibility,omitempty"` }
type CreateTeamCompleteMigrationOperationOptions ¶
type CreateTeamCompleteMigrationOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateTeamCompleteMigrationOperationOptions ¶
func DefaultCreateTeamCompleteMigrationOperationOptions() CreateTeamCompleteMigrationOperationOptions
func (CreateTeamCompleteMigrationOperationOptions) ToHeaders ¶
func (o CreateTeamCompleteMigrationOperationOptions) ToHeaders() *client.Headers
func (CreateTeamCompleteMigrationOperationOptions) ToOData ¶
func (o CreateTeamCompleteMigrationOperationOptions) ToOData() *odata.Query
func (CreateTeamCompleteMigrationOperationOptions) ToQuery ¶
func (o CreateTeamCompleteMigrationOperationOptions) ToQuery() *client.QueryParams
type CreateTeamUnarchiveOperationOptions ¶
type CreateTeamUnarchiveOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateTeamUnarchiveOperationOptions ¶
func DefaultCreateTeamUnarchiveOperationOptions() CreateTeamUnarchiveOperationOptions
func (CreateTeamUnarchiveOperationOptions) ToHeaders ¶
func (o CreateTeamUnarchiveOperationOptions) ToHeaders() *client.Headers
func (CreateTeamUnarchiveOperationOptions) ToOData ¶
func (o CreateTeamUnarchiveOperationOptions) ToOData() *odata.Query
func (CreateTeamUnarchiveOperationOptions) ToQuery ¶
func (o CreateTeamUnarchiveOperationOptions) ToQuery() *client.QueryParams
type DeleteTeamOperationOptions ¶
type DeleteTeamOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteTeamOperationOptions ¶
func DefaultDeleteTeamOperationOptions() DeleteTeamOperationOptions
func (DeleteTeamOperationOptions) ToHeaders ¶
func (o DeleteTeamOperationOptions) ToHeaders() *client.Headers
func (DeleteTeamOperationOptions) ToOData ¶
func (o DeleteTeamOperationOptions) ToOData() *odata.Query
func (DeleteTeamOperationOptions) ToQuery ¶
func (o DeleteTeamOperationOptions) ToQuery() *client.QueryParams
type GetTeamOperationOptions ¶
type GetTeamOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetTeamOperationOptions ¶
func DefaultGetTeamOperationOptions() GetTeamOperationOptions
func (GetTeamOperationOptions) ToHeaders ¶
func (o GetTeamOperationOptions) ToHeaders() *client.Headers
func (GetTeamOperationOptions) ToOData ¶
func (o GetTeamOperationOptions) ToOData() *odata.Query
func (GetTeamOperationOptions) ToQuery ¶
func (o GetTeamOperationOptions) ToQuery() *client.QueryParams
type SendTeamActivityNotificationOperationOptions ¶
type SendTeamActivityNotificationOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultSendTeamActivityNotificationOperationOptions ¶
func DefaultSendTeamActivityNotificationOperationOptions() SendTeamActivityNotificationOperationOptions
func (SendTeamActivityNotificationOperationOptions) ToHeaders ¶
func (o SendTeamActivityNotificationOperationOptions) ToHeaders() *client.Headers
func (SendTeamActivityNotificationOperationOptions) ToOData ¶
func (o SendTeamActivityNotificationOperationOptions) ToOData() *odata.Query
func (SendTeamActivityNotificationOperationOptions) ToQuery ¶
func (o SendTeamActivityNotificationOperationOptions) ToQuery() *client.QueryParams
type SendTeamActivityNotificationRequest ¶
type SendTeamActivityNotificationRequest struct { ActivityType nullable.Type[string] `json:"activityType,omitempty"` ChainId nullable.Type[int64] `json:"chainId,omitempty"` PreviewText *stable.ItemBody `json:"previewText,omitempty"` Recipient *stable.TeamworkNotificationRecipient `json:"recipient,omitempty"` TeamsAppId nullable.Type[string] `json:"teamsAppId,omitempty"` TemplateParameters *[]stable.KeyValuePair `json:"templateParameters,omitempty"` Topic *stable.TeamworkActivityTopic `json:"topic,omitempty"` }
type SetTeamOperationOptions ¶
type SetTeamOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultSetTeamOperationOptions ¶
func DefaultSetTeamOperationOptions() SetTeamOperationOptions
func (SetTeamOperationOptions) ToHeaders ¶
func (o SetTeamOperationOptions) ToHeaders() *client.Headers
func (SetTeamOperationOptions) ToOData ¶
func (o SetTeamOperationOptions) ToOData() *odata.Query
func (SetTeamOperationOptions) ToQuery ¶
func (o SetTeamOperationOptions) ToQuery() *client.QueryParams
type TeamClient ¶
func NewTeamClientWithBaseURI ¶
func NewTeamClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamClient, error)
func (TeamClient) CreateTeamArchive ¶
func (c TeamClient) CreateTeamArchive(ctx context.Context, id stable.GroupId, input CreateTeamArchiveRequest, options CreateTeamArchiveOperationOptions) (result CreateTeamArchiveOperationResponse, err error)
CreateTeamArchive - Invoke action archive. Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive.
func (TeamClient) CreateTeamClone ¶
func (c TeamClient) CreateTeamClone(ctx context.Context, id stable.GroupId, input CreateTeamCloneRequest, options CreateTeamCloneOperationOptions) (result CreateTeamCloneOperationResponse, err error)
CreateTeamClone - Invoke action clone. Create a copy of a team. This operation also creates a copy of the corresponding group. You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds.
func (TeamClient) CreateTeamCompleteMigration ¶
func (c TeamClient) CreateTeamCompleteMigration(ctx context.Context, id stable.GroupId, options CreateTeamCompleteMigrationOperationOptions) (result CreateTeamCompleteMigrationOperationResponse, err error)
CreateTeamCompleteMigration - Invoke action completeMigration. Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response.
func (TeamClient) CreateTeamUnarchive ¶
func (c TeamClient) CreateTeamUnarchive(ctx context.Context, id stable.GroupId, options CreateTeamUnarchiveOperationOptions) (result CreateTeamUnarchiveOperationResponse, err error)
CreateTeamUnarchive - Invoke action unarchive. Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API.
func (TeamClient) DeleteTeam ¶
func (c TeamClient) DeleteTeam(ctx context.Context, id stable.GroupId, options DeleteTeamOperationOptions) (result DeleteTeamOperationResponse, err error)
DeleteTeam - Delete navigation property team for groups
func (TeamClient) GetTeam ¶
func (c TeamClient) GetTeam(ctx context.Context, id stable.GroupId, options GetTeamOperationOptions) (result GetTeamOperationResponse, err error)
GetTeam - Get team from groups. The team associated with this group.
func (TeamClient) SendTeamActivityNotification ¶
func (c TeamClient) SendTeamActivityNotification(ctx context.Context, id stable.GroupId, input SendTeamActivityNotificationRequest, options SendTeamActivityNotificationOperationOptions) (result SendTeamActivityNotificationOperationResponse, err error)
SendTeamActivityNotification - Invoke action sendActivityNotification. Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications.
func (TeamClient) SetTeam ¶
func (c TeamClient) SetTeam(ctx context.Context, id stable.GroupId, input stable.Team, options SetTeamOperationOptions) (result SetTeamOperationResponse, err error)
SetTeam - Create team from group. Create a new team under a group. In order to create a team, the group must have a least one owner. If the creation of the team call is delayed, you can retry the call up to three times before you have to wait for 15 minutes due to a propagation delay. If the group was created less than 15 minutes ago, the call might fail with a 404 error code due to replication delays. If the group was created less than 15 minutes ago, it's possible for a call to create a team to fail with a 404 error code, due to ongoing replication delays. The recommended pattern is to retry the Create team call three times, with a 10 second delay between calls.
Source Files ¶
- client.go
- method_createteamarchive.go
- method_createteamclone.go
- method_createteamcompletemigration.go
- method_createteamunarchive.go
- method_deleteteam.go
- method_getteam.go
- method_sendteamactivitynotification.go
- method_setteam.go
- model_createteamarchiverequest.go
- model_createteamclonerequest.go
- model_sendteamactivitynotificationrequest.go
- version.go