joinedteamschedule

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := joinedteamschedule.NewJoinedTeamScheduleClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: JoinedTeamScheduleClient.DeleteJoinedTeamSchedule

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

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

Example Usage: JoinedTeamScheduleClient.GetJoinedTeamSchedule

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

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

Example Usage: JoinedTeamScheduleClient.SetJoinedTeamSchedule

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

payload := joinedteamschedule.Schedule{
	// ...
}


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

Example Usage: JoinedTeamScheduleClient.ShareJoinedTeamSchedule

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

payload := joinedteamschedule.ShareJoinedTeamScheduleRequest{
	// ...
}


read, err := client.ShareJoinedTeamSchedule(ctx, id, payload, joinedteamschedule.DefaultShareJoinedTeamScheduleOperationOptions())
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 DeleteJoinedTeamScheduleOperationOptions

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

func DefaultDeleteJoinedTeamScheduleOperationOptions

func DefaultDeleteJoinedTeamScheduleOperationOptions() DeleteJoinedTeamScheduleOperationOptions

func (DeleteJoinedTeamScheduleOperationOptions) ToHeaders

func (DeleteJoinedTeamScheduleOperationOptions) ToOData

func (DeleteJoinedTeamScheduleOperationOptions) ToQuery

type DeleteJoinedTeamScheduleOperationResponse

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

type GetJoinedTeamScheduleOperationOptions

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

func DefaultGetJoinedTeamScheduleOperationOptions

func DefaultGetJoinedTeamScheduleOperationOptions() GetJoinedTeamScheduleOperationOptions

func (GetJoinedTeamScheduleOperationOptions) ToHeaders

func (GetJoinedTeamScheduleOperationOptions) ToOData

func (GetJoinedTeamScheduleOperationOptions) ToQuery

type GetJoinedTeamScheduleOperationResponse

type GetJoinedTeamScheduleOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.Schedule
}

type JoinedTeamScheduleClient

type JoinedTeamScheduleClient struct {
	Client *msgraph.Client
}

func NewJoinedTeamScheduleClientWithBaseURI

func NewJoinedTeamScheduleClientWithBaseURI(sdkApi sdkEnv.Api) (*JoinedTeamScheduleClient, error)

func (JoinedTeamScheduleClient) DeleteJoinedTeamSchedule

DeleteJoinedTeamSchedule - Delete navigation property schedule for users

func (JoinedTeamScheduleClient) GetJoinedTeamSchedule

GetJoinedTeamSchedule - Get schedule from users. The schedule of shifts for this team.

func (JoinedTeamScheduleClient) SetJoinedTeamSchedule

SetJoinedTeamSchedule - Update the navigation property schedule in users

func (JoinedTeamScheduleClient) ShareJoinedTeamSchedule

ShareJoinedTeamSchedule - Invoke action share. Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item.

type SetJoinedTeamScheduleOperationOptions

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

func DefaultSetJoinedTeamScheduleOperationOptions

func DefaultSetJoinedTeamScheduleOperationOptions() SetJoinedTeamScheduleOperationOptions

func (SetJoinedTeamScheduleOperationOptions) ToHeaders

func (SetJoinedTeamScheduleOperationOptions) ToOData

func (SetJoinedTeamScheduleOperationOptions) ToQuery

type SetJoinedTeamScheduleOperationResponse

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

type ShareJoinedTeamScheduleOperationOptions

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

func DefaultShareJoinedTeamScheduleOperationOptions

func DefaultShareJoinedTeamScheduleOperationOptions() ShareJoinedTeamScheduleOperationOptions

func (ShareJoinedTeamScheduleOperationOptions) ToHeaders

func (ShareJoinedTeamScheduleOperationOptions) ToOData

func (ShareJoinedTeamScheduleOperationOptions) ToQuery

type ShareJoinedTeamScheduleOperationResponse

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

type ShareJoinedTeamScheduleRequest

type ShareJoinedTeamScheduleRequest struct {
	EndDateTime   nullable.Type[string] `json:"endDateTime,omitempty"`
	NotifyTeam    nullable.Type[bool]   `json:"notifyTeam,omitempty"`
	StartDateTime nullable.Type[string] `json:"startDateTime,omitempty"`
}

Jump to

Keyboard shortcuts

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