teamwork

package
v0.20241206.1180327 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/teamwork Documentation

The teamwork SDK allows for interaction with Microsoft Graph me (API Version beta).

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/me/beta/teamwork"

Client Initialization

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

Example Usage: TeamworkClient.DeleteTeamwork

ctx := context.TODO()


read, err := client.DeleteTeamwork(ctx, 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()


read, err := client.GetTeamwork(ctx, 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()

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


read, err := client.SendTeamworkActivityNotification(ctx, 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()

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


read, err := client.UpdateTeamwork(ctx, 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        *beta.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        *beta.ItemBody              `json:"previewText,omitempty"`
	TeamsAppId         nullable.Type[string]       `json:"teamsAppId,omitempty"`
	TemplateParameters *[]beta.KeyValuePair        `json:"templateParameters,omitempty"`
	Topic              *beta.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 me

func (TeamworkClient) GetTeamwork

GetTeamwork - Get teamwork from me. A container for Microsoft Teams features available for the user. Read-only. Nullable.

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 me

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