teamschedule

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/teamschedule Documentation

The teamschedule SDK allows for interaction with Microsoft Graph groups (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/groups/beta/teamschedule"

Client Initialization

client := teamschedule.NewTeamScheduleClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TeamScheduleClient.DeleteTeamSchedule

ctx := context.TODO()
id := teamschedule.NewGroupID("groupId")

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

Example Usage: TeamScheduleClient.GetTeamSchedule

ctx := context.TODO()
id := teamschedule.NewGroupID("groupId")

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

Example Usage: TeamScheduleClient.SetTeamSchedule

ctx := context.TODO()
id := teamschedule.NewGroupID("groupId")

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


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

Example Usage: TeamScheduleClient.ShareTeamSchedule

ctx := context.TODO()
id := teamschedule.NewGroupID("groupId")

payload := teamschedule.ShareTeamScheduleRequest{
	// ...
}


read, err := client.ShareTeamSchedule(ctx, id, payload, teamschedule.DefaultShareTeamScheduleOperationOptions())
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 DeleteTeamScheduleOperationOptions

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

func DefaultDeleteTeamScheduleOperationOptions

func DefaultDeleteTeamScheduleOperationOptions() DeleteTeamScheduleOperationOptions

func (DeleteTeamScheduleOperationOptions) ToHeaders

func (DeleteTeamScheduleOperationOptions) ToOData

func (DeleteTeamScheduleOperationOptions) ToQuery

type DeleteTeamScheduleOperationResponse

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

type GetTeamScheduleOperationOptions

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

func DefaultGetTeamScheduleOperationOptions

func DefaultGetTeamScheduleOperationOptions() GetTeamScheduleOperationOptions

func (GetTeamScheduleOperationOptions) ToHeaders

func (GetTeamScheduleOperationOptions) ToOData

func (GetTeamScheduleOperationOptions) ToQuery

type GetTeamScheduleOperationResponse

type GetTeamScheduleOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.Schedule
}

type SetTeamScheduleOperationOptions

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

func DefaultSetTeamScheduleOperationOptions

func DefaultSetTeamScheduleOperationOptions() SetTeamScheduleOperationOptions

func (SetTeamScheduleOperationOptions) ToHeaders

func (SetTeamScheduleOperationOptions) ToOData

func (SetTeamScheduleOperationOptions) ToQuery

type SetTeamScheduleOperationResponse

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

type ShareTeamScheduleOperationOptions

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

func DefaultShareTeamScheduleOperationOptions

func DefaultShareTeamScheduleOperationOptions() ShareTeamScheduleOperationOptions

func (ShareTeamScheduleOperationOptions) ToHeaders

func (ShareTeamScheduleOperationOptions) ToOData

func (ShareTeamScheduleOperationOptions) ToQuery

type ShareTeamScheduleOperationResponse

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

type ShareTeamScheduleRequest

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

type TeamScheduleClient

type TeamScheduleClient struct {
	Client *msgraph.Client
}

func NewTeamScheduleClientWithBaseURI

func NewTeamScheduleClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamScheduleClient, error)

func (TeamScheduleClient) DeleteTeamSchedule

DeleteTeamSchedule - Delete navigation property schedule for groups

func (TeamScheduleClient) GetTeamSchedule

GetTeamSchedule - Get schedule from groups. The schedule of shifts for this team.

func (TeamScheduleClient) SetTeamSchedule

SetTeamSchedule - Update the navigation property schedule in groups

func (TeamScheduleClient) ShareTeamSchedule

ShareTeamSchedule - 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 only by 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.

Jump to

Keyboard shortcuts

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