teamwork

package
v0.20241126.1110949 Latest Latest
Warning

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

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

README

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

The teamwork 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/teamwork"

Client Initialization

client := teamwork.NewTeamworkClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TeamworkClient.DeleteTeamwork

ctx := context.TODO()
id := teamwork.NewUserID("userId")

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

Example Usage: TeamworkClient.GetTeamwork

ctx := context.TODO()
id := teamwork.NewUserID("userId")

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

Example Usage: TeamworkClient.SendTeamworkActivityNotification

ctx := context.TODO()
id := teamwork.NewUserID("userId")

payload := teamwork.SendTeamworkActivityNotificationRequest{
	// ...
}


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

Example Usage: TeamworkClient.UpdateTeamwork

ctx := context.TODO()
id := teamwork.NewUserID("userId")

payload := teamwork.UserTeamwork{
	// ...
}


read, err := client.UpdateTeamwork(ctx, id, payload, teamwork.DefaultUpdateTeamworkOperationOptions())
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 DeleteTeamworkOperationOptions

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

func DefaultDeleteTeamworkOperationOptions

func DefaultDeleteTeamworkOperationOptions() DeleteTeamworkOperationOptions

func (DeleteTeamworkOperationOptions) ToHeaders

func (DeleteTeamworkOperationOptions) ToOData

func (DeleteTeamworkOperationOptions) ToQuery

type DeleteTeamworkOperationResponse

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

type GetTeamworkOperationOptions

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

func DefaultGetTeamworkOperationOptions

func DefaultGetTeamworkOperationOptions() GetTeamworkOperationOptions

func (GetTeamworkOperationOptions) ToHeaders

func (GetTeamworkOperationOptions) ToOData

func (GetTeamworkOperationOptions) ToQuery

type GetTeamworkOperationResponse

type GetTeamworkOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.UserTeamwork
}

type SendTeamworkActivityNotificationOperationOptions

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

func DefaultSendTeamworkActivityNotificationOperationOptions

func DefaultSendTeamworkActivityNotificationOperationOptions() SendTeamworkActivityNotificationOperationOptions

func (SendTeamworkActivityNotificationOperationOptions) ToHeaders

func (SendTeamworkActivityNotificationOperationOptions) ToOData

func (SendTeamworkActivityNotificationOperationOptions) ToQuery

type SendTeamworkActivityNotificationOperationResponse

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

type SendTeamworkActivityNotificationRequest

type SendTeamworkActivityNotificationRequest struct {
	ActivityType       nullable.Type[string]         `json:"activityType,omitempty"`
	ChainId            nullable.Type[int64]          `json:"chainId,omitempty"`
	PreviewText        *stable.ItemBody              `json:"previewText,omitempty"`
	TeamsAppId         nullable.Type[string]         `json:"teamsAppId,omitempty"`
	TemplateParameters *[]stable.KeyValuePair        `json:"templateParameters,omitempty"`
	Topic              *stable.TeamworkActivityTopic `json:"topic,omitempty"`
}

type TeamworkClient

type TeamworkClient struct {
	Client *msgraph.Client
}

func NewTeamworkClientWithBaseURI

func NewTeamworkClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamworkClient, error)

func (TeamworkClient) DeleteTeamwork

DeleteTeamwork - Delete navigation property teamwork for users

func (TeamworkClient) GetTeamwork

GetTeamwork - Get userTeamwork. Get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user.

func (TeamworkClient) SendTeamworkActivityNotification

SendTeamworkActivityNotification - Invoke action sendActivityNotification. Send an activity feed notification to a user. For more information, see sending Teams activity notifications.

func (TeamworkClient) UpdateTeamwork

UpdateTeamwork - Update the navigation property teamwork in users

type UpdateTeamworkOperationOptions

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

func DefaultUpdateTeamworkOperationOptions

func DefaultUpdateTeamworkOperationOptions() UpdateTeamworkOperationOptions

func (UpdateTeamworkOperationOptions) ToHeaders

func (UpdateTeamworkOperationOptions) ToOData

func (UpdateTeamworkOperationOptions) ToQuery

type UpdateTeamworkOperationResponse

type UpdateTeamworkOperationResponse 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