joinedteamprimarychannel

package
v0.20240927.1005214 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/joinedteamprimarychannel Documentation

The joinedteamprimarychannel SDK allows for interaction with Microsoft Graph users (API Version stable).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/joinedteamprimarychannel"

Client Initialization

client := joinedteamprimarychannel.NewJoinedTeamPrimaryChannelClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: JoinedTeamPrimaryChannelClient.CreateJoinedTeamPrimaryChannelArchive

ctx := context.TODO()
id := joinedteamprimarychannel.NewUserIdJoinedTeamID("userId", "teamId")

payload := joinedteamprimarychannel.CreateJoinedTeamPrimaryChannelArchiveRequest{
	// ...
}


read, err := client.CreateJoinedTeamPrimaryChannelArchive(ctx, id, payload, joinedteamprimarychannel.DefaultCreateJoinedTeamPrimaryChannelArchiveOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamPrimaryChannelClient.CreateJoinedTeamPrimaryChannelCompleteMigration

ctx := context.TODO()
id := joinedteamprimarychannel.NewUserIdJoinedTeamID("userId", "teamId")

read, err := client.CreateJoinedTeamPrimaryChannelCompleteMigration(ctx, id, joinedteamprimarychannel.DefaultCreateJoinedTeamPrimaryChannelCompleteMigrationOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamPrimaryChannelClient.CreateJoinedTeamPrimaryChannelUnarchive

ctx := context.TODO()
id := joinedteamprimarychannel.NewUserIdJoinedTeamID("userId", "teamId")

read, err := client.CreateJoinedTeamPrimaryChannelUnarchive(ctx, id, joinedteamprimarychannel.DefaultCreateJoinedTeamPrimaryChannelUnarchiveOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamPrimaryChannelClient.DeleteJoinedTeamPrimaryChannel

ctx := context.TODO()
id := joinedteamprimarychannel.NewUserIdJoinedTeamID("userId", "teamId")

read, err := client.DeleteJoinedTeamPrimaryChannel(ctx, id, joinedteamprimarychannel.DefaultDeleteJoinedTeamPrimaryChannelOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamPrimaryChannelClient.GetJoinedTeamPrimaryChannel

ctx := context.TODO()
id := joinedteamprimarychannel.NewUserIdJoinedTeamID("userId", "teamId")

read, err := client.GetJoinedTeamPrimaryChannel(ctx, id, joinedteamprimarychannel.DefaultGetJoinedTeamPrimaryChannelOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamPrimaryChannelClient.ProvisionJoinedTeamPrimaryChannelEmail

ctx := context.TODO()
id := joinedteamprimarychannel.NewUserIdJoinedTeamID("userId", "teamId")

read, err := client.ProvisionJoinedTeamPrimaryChannelEmail(ctx, id, joinedteamprimarychannel.DefaultProvisionJoinedTeamPrimaryChannelEmailOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamPrimaryChannelClient.RemoveJoinedTeamPrimaryChannelEmail

ctx := context.TODO()
id := joinedteamprimarychannel.NewUserIdJoinedTeamID("userId", "teamId")

read, err := client.RemoveJoinedTeamPrimaryChannelEmail(ctx, id, joinedteamprimarychannel.DefaultRemoveJoinedTeamPrimaryChannelEmailOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JoinedTeamPrimaryChannelClient.UpdateJoinedTeamPrimaryChannel

ctx := context.TODO()
id := joinedteamprimarychannel.NewUserIdJoinedTeamID("userId", "teamId")

payload := joinedteamprimarychannel.Channel{
	// ...
}


read, err := client.UpdateJoinedTeamPrimaryChannel(ctx, id, payload, joinedteamprimarychannel.DefaultUpdateJoinedTeamPrimaryChannelOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateJoinedTeamPrimaryChannelArchiveOperationOptions

type CreateJoinedTeamPrimaryChannelArchiveOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateJoinedTeamPrimaryChannelArchiveOperationOptions

func DefaultCreateJoinedTeamPrimaryChannelArchiveOperationOptions() CreateJoinedTeamPrimaryChannelArchiveOperationOptions

func (CreateJoinedTeamPrimaryChannelArchiveOperationOptions) ToHeaders

func (CreateJoinedTeamPrimaryChannelArchiveOperationOptions) ToOData

func (CreateJoinedTeamPrimaryChannelArchiveOperationOptions) ToQuery

type CreateJoinedTeamPrimaryChannelArchiveOperationResponse

type CreateJoinedTeamPrimaryChannelArchiveOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateJoinedTeamPrimaryChannelArchiveRequest

type CreateJoinedTeamPrimaryChannelArchiveRequest struct {
	ShouldSetSpoSiteReadOnlyForMembers nullable.Type[bool] `json:"shouldSetSpoSiteReadOnlyForMembers,omitempty"`
}

type CreateJoinedTeamPrimaryChannelCompleteMigrationOperationOptions

type CreateJoinedTeamPrimaryChannelCompleteMigrationOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateJoinedTeamPrimaryChannelCompleteMigrationOperationOptions) ToHeaders

func (CreateJoinedTeamPrimaryChannelCompleteMigrationOperationOptions) ToOData

func (CreateJoinedTeamPrimaryChannelCompleteMigrationOperationOptions) ToQuery

type CreateJoinedTeamPrimaryChannelCompleteMigrationOperationResponse

type CreateJoinedTeamPrimaryChannelCompleteMigrationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateJoinedTeamPrimaryChannelUnarchiveOperationOptions

type CreateJoinedTeamPrimaryChannelUnarchiveOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateJoinedTeamPrimaryChannelUnarchiveOperationOptions) ToHeaders

func (CreateJoinedTeamPrimaryChannelUnarchiveOperationOptions) ToOData

func (CreateJoinedTeamPrimaryChannelUnarchiveOperationOptions) ToQuery

type CreateJoinedTeamPrimaryChannelUnarchiveOperationResponse

type CreateJoinedTeamPrimaryChannelUnarchiveOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteJoinedTeamPrimaryChannelOperationOptions

type DeleteJoinedTeamPrimaryChannelOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeleteJoinedTeamPrimaryChannelOperationOptions

func DefaultDeleteJoinedTeamPrimaryChannelOperationOptions() DeleteJoinedTeamPrimaryChannelOperationOptions

func (DeleteJoinedTeamPrimaryChannelOperationOptions) ToHeaders

func (DeleteJoinedTeamPrimaryChannelOperationOptions) ToOData

func (DeleteJoinedTeamPrimaryChannelOperationOptions) ToQuery

type DeleteJoinedTeamPrimaryChannelOperationResponse

type DeleteJoinedTeamPrimaryChannelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetJoinedTeamPrimaryChannelOperationOptions

type GetJoinedTeamPrimaryChannelOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetJoinedTeamPrimaryChannelOperationOptions

func DefaultGetJoinedTeamPrimaryChannelOperationOptions() GetJoinedTeamPrimaryChannelOperationOptions

func (GetJoinedTeamPrimaryChannelOperationOptions) ToHeaders

func (GetJoinedTeamPrimaryChannelOperationOptions) ToOData

func (GetJoinedTeamPrimaryChannelOperationOptions) ToQuery

type GetJoinedTeamPrimaryChannelOperationResponse

type GetJoinedTeamPrimaryChannelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.Channel
}

type JoinedTeamPrimaryChannelClient

type JoinedTeamPrimaryChannelClient struct {
	Client *msgraph.Client
}

func NewJoinedTeamPrimaryChannelClientWithBaseURI

func NewJoinedTeamPrimaryChannelClientWithBaseURI(sdkApi sdkEnv.Api) (*JoinedTeamPrimaryChannelClient, error)

func (JoinedTeamPrimaryChannelClient) CreateJoinedTeamPrimaryChannelArchive

CreateJoinedTeamPrimaryChannelArchive - Invoke action archive. Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived.

func (JoinedTeamPrimaryChannelClient) CreateJoinedTeamPrimaryChannelCompleteMigration

CreateJoinedTeamPrimaryChannelCompleteMigration - Invoke action completeMigration. Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, 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 (JoinedTeamPrimaryChannelClient) CreateJoinedTeamPrimaryChannelUnarchive

CreateJoinedTeamPrimaryChannelUnarchive - Invoke action unarchive. Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds.

func (JoinedTeamPrimaryChannelClient) DeleteJoinedTeamPrimaryChannel

DeleteJoinedTeamPrimaryChannel - Delete navigation property primaryChannel for users

func (JoinedTeamPrimaryChannelClient) GetJoinedTeamPrimaryChannel

GetJoinedTeamPrimaryChannel - Get primaryChannel from users. The general channel for the team.

func (JoinedTeamPrimaryChannelClient) ProvisionJoinedTeamPrimaryChannelEmail

ProvisionJoinedTeamPrimaryChannelEmail - Invoke action provisionEmail. Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method.

func (JoinedTeamPrimaryChannelClient) RemoveJoinedTeamPrimaryChannelEmail

RemoveJoinedTeamPrimaryChannelEmail - Invoke action removeEmail. Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client.

func (JoinedTeamPrimaryChannelClient) UpdateJoinedTeamPrimaryChannel

UpdateJoinedTeamPrimaryChannel - Update the navigation property primaryChannel in users

type ProvisionJoinedTeamPrimaryChannelEmailOperationOptions

type ProvisionJoinedTeamPrimaryChannelEmailOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultProvisionJoinedTeamPrimaryChannelEmailOperationOptions

func DefaultProvisionJoinedTeamPrimaryChannelEmailOperationOptions() ProvisionJoinedTeamPrimaryChannelEmailOperationOptions

func (ProvisionJoinedTeamPrimaryChannelEmailOperationOptions) ToHeaders

func (ProvisionJoinedTeamPrimaryChannelEmailOperationOptions) ToOData

func (ProvisionJoinedTeamPrimaryChannelEmailOperationOptions) ToQuery

type ProvisionJoinedTeamPrimaryChannelEmailOperationResponse

type ProvisionJoinedTeamPrimaryChannelEmailOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.ProvisionChannelEmailResult
}

type RemoveJoinedTeamPrimaryChannelEmailOperationOptions

type RemoveJoinedTeamPrimaryChannelEmailOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultRemoveJoinedTeamPrimaryChannelEmailOperationOptions

func DefaultRemoveJoinedTeamPrimaryChannelEmailOperationOptions() RemoveJoinedTeamPrimaryChannelEmailOperationOptions

func (RemoveJoinedTeamPrimaryChannelEmailOperationOptions) ToHeaders

func (RemoveJoinedTeamPrimaryChannelEmailOperationOptions) ToOData

func (RemoveJoinedTeamPrimaryChannelEmailOperationOptions) ToQuery

type RemoveJoinedTeamPrimaryChannelEmailOperationResponse

type RemoveJoinedTeamPrimaryChannelEmailOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type UpdateJoinedTeamPrimaryChannelOperationOptions

type UpdateJoinedTeamPrimaryChannelOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateJoinedTeamPrimaryChannelOperationOptions

func DefaultUpdateJoinedTeamPrimaryChannelOperationOptions() UpdateJoinedTeamPrimaryChannelOperationOptions

func (UpdateJoinedTeamPrimaryChannelOperationOptions) ToHeaders

func (UpdateJoinedTeamPrimaryChannelOperationOptions) ToOData

func (UpdateJoinedTeamPrimaryChannelOperationOptions) ToQuery

type UpdateJoinedTeamPrimaryChannelOperationResponse

type UpdateJoinedTeamPrimaryChannelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL