teamscheduletimecard

package
v0.20241205.1102105 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := teamscheduletimecard.NewTeamScheduleTimeCardClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TeamScheduleTimeCardClient.CreateTeamScheduleTimeCard

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

payload := teamscheduletimecard.TimeCard{
	// ...
}


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

Example Usage: TeamScheduleTimeCardClient.CreateTeamScheduleTimeCardClockIn

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

payload := teamscheduletimecard.CreateTeamScheduleTimeCardClockInRequest{
	// ...
}


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

Example Usage: TeamScheduleTimeCardClient.CreateTeamScheduleTimeCardClockOut

ctx := context.TODO()
id := teamscheduletimecard.NewGroupIdTeamScheduleTimeCardID("groupId", "timeCardId")

payload := teamscheduletimecard.CreateTeamScheduleTimeCardClockOutRequest{
	// ...
}


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

Example Usage: TeamScheduleTimeCardClient.CreateTeamScheduleTimeCardConfirm

ctx := context.TODO()
id := teamscheduletimecard.NewGroupIdTeamScheduleTimeCardID("groupId", "timeCardId")

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

Example Usage: TeamScheduleTimeCardClient.DeleteTeamScheduleTimeCard

ctx := context.TODO()
id := teamscheduletimecard.NewGroupIdTeamScheduleTimeCardID("groupId", "timeCardId")

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

Example Usage: TeamScheduleTimeCardClient.EndTeamScheduleTimeCardBreak

ctx := context.TODO()
id := teamscheduletimecard.NewGroupIdTeamScheduleTimeCardID("groupId", "timeCardId")

payload := teamscheduletimecard.EndTeamScheduleTimeCardBreakRequest{
	// ...
}


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

Example Usage: TeamScheduleTimeCardClient.GetTeamScheduleTimeCard

ctx := context.TODO()
id := teamscheduletimecard.NewGroupIdTeamScheduleTimeCardID("groupId", "timeCardId")

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

Example Usage: TeamScheduleTimeCardClient.GetTeamScheduleTimeCardsCount

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

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

Example Usage: TeamScheduleTimeCardClient.ListTeamScheduleTimeCards

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

// alternatively `client.ListTeamScheduleTimeCards(ctx, id, teamscheduletimecard.DefaultListTeamScheduleTimeCardsOperationOptions())` can be used to do batched pagination
items, err := client.ListTeamScheduleTimeCardsComplete(ctx, id, teamscheduletimecard.DefaultListTeamScheduleTimeCardsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: TeamScheduleTimeCardClient.StartTeamScheduleTimeCardBreak

ctx := context.TODO()
id := teamscheduletimecard.NewGroupIdTeamScheduleTimeCardID("groupId", "timeCardId")

payload := teamscheduletimecard.StartTeamScheduleTimeCardBreakRequest{
	// ...
}


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

Example Usage: TeamScheduleTimeCardClient.UpdateTeamScheduleTimeCard

ctx := context.TODO()
id := teamscheduletimecard.NewGroupIdTeamScheduleTimeCardID("groupId", "timeCardId")

payload := teamscheduletimecard.TimeCard{
	// ...
}


read, err := client.UpdateTeamScheduleTimeCard(ctx, id, payload, teamscheduletimecard.DefaultUpdateTeamScheduleTimeCardOperationOptions())
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 CreateTeamScheduleTimeCardClockInOperationOptions

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

func DefaultCreateTeamScheduleTimeCardClockInOperationOptions

func DefaultCreateTeamScheduleTimeCardClockInOperationOptions() CreateTeamScheduleTimeCardClockInOperationOptions

func (CreateTeamScheduleTimeCardClockInOperationOptions) ToHeaders

func (CreateTeamScheduleTimeCardClockInOperationOptions) ToOData

func (CreateTeamScheduleTimeCardClockInOperationOptions) ToQuery

type CreateTeamScheduleTimeCardClockInOperationResponse

type CreateTeamScheduleTimeCardClockInOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.TimeCard
}

type CreateTeamScheduleTimeCardClockInRequest

type CreateTeamScheduleTimeCardClockInRequest struct {
	AtApprovedLocation nullable.Type[bool]   `json:"atApprovedLocation,omitempty"`
	Notes              *beta.ItemBody        `json:"notes,omitempty"`
	OnBehalfOfUserId   nullable.Type[string] `json:"onBehalfOfUserId,omitempty"`
}

type CreateTeamScheduleTimeCardClockOutOperationOptions

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

func DefaultCreateTeamScheduleTimeCardClockOutOperationOptions

func DefaultCreateTeamScheduleTimeCardClockOutOperationOptions() CreateTeamScheduleTimeCardClockOutOperationOptions

func (CreateTeamScheduleTimeCardClockOutOperationOptions) ToHeaders

func (CreateTeamScheduleTimeCardClockOutOperationOptions) ToOData

func (CreateTeamScheduleTimeCardClockOutOperationOptions) ToQuery

type CreateTeamScheduleTimeCardClockOutOperationResponse

type CreateTeamScheduleTimeCardClockOutOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.TimeCard
}

type CreateTeamScheduleTimeCardClockOutRequest

type CreateTeamScheduleTimeCardClockOutRequest struct {
	AtApprovedLocation nullable.Type[bool] `json:"atApprovedLocation,omitempty"`
	Notes              *beta.ItemBody      `json:"notes,omitempty"`
}

type CreateTeamScheduleTimeCardConfirmOperationOptions

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

func DefaultCreateTeamScheduleTimeCardConfirmOperationOptions

func DefaultCreateTeamScheduleTimeCardConfirmOperationOptions() CreateTeamScheduleTimeCardConfirmOperationOptions

func (CreateTeamScheduleTimeCardConfirmOperationOptions) ToHeaders

func (CreateTeamScheduleTimeCardConfirmOperationOptions) ToOData

func (CreateTeamScheduleTimeCardConfirmOperationOptions) ToQuery

type CreateTeamScheduleTimeCardConfirmOperationResponse

type CreateTeamScheduleTimeCardConfirmOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.TimeCard
}

type CreateTeamScheduleTimeCardOperationOptions

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

func DefaultCreateTeamScheduleTimeCardOperationOptions

func DefaultCreateTeamScheduleTimeCardOperationOptions() CreateTeamScheduleTimeCardOperationOptions

func (CreateTeamScheduleTimeCardOperationOptions) ToHeaders

func (CreateTeamScheduleTimeCardOperationOptions) ToOData

func (CreateTeamScheduleTimeCardOperationOptions) ToQuery

type CreateTeamScheduleTimeCardOperationResponse

type CreateTeamScheduleTimeCardOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.TimeCard
}

type DeleteTeamScheduleTimeCardOperationOptions

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

func DefaultDeleteTeamScheduleTimeCardOperationOptions

func DefaultDeleteTeamScheduleTimeCardOperationOptions() DeleteTeamScheduleTimeCardOperationOptions

func (DeleteTeamScheduleTimeCardOperationOptions) ToHeaders

func (DeleteTeamScheduleTimeCardOperationOptions) ToOData

func (DeleteTeamScheduleTimeCardOperationOptions) ToQuery

type DeleteTeamScheduleTimeCardOperationResponse

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

type EndTeamScheduleTimeCardBreakOperationOptions

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

func DefaultEndTeamScheduleTimeCardBreakOperationOptions

func DefaultEndTeamScheduleTimeCardBreakOperationOptions() EndTeamScheduleTimeCardBreakOperationOptions

func (EndTeamScheduleTimeCardBreakOperationOptions) ToHeaders

func (EndTeamScheduleTimeCardBreakOperationOptions) ToOData

func (EndTeamScheduleTimeCardBreakOperationOptions) ToQuery

type EndTeamScheduleTimeCardBreakOperationResponse

type EndTeamScheduleTimeCardBreakOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.TimeCard
}

type EndTeamScheduleTimeCardBreakRequest

type EndTeamScheduleTimeCardBreakRequest struct {
	AtApprovedLocation nullable.Type[bool] `json:"atApprovedLocation,omitempty"`
	Notes              *beta.ItemBody      `json:"notes,omitempty"`
}

type GetTeamScheduleTimeCardOperationOptions

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

func DefaultGetTeamScheduleTimeCardOperationOptions

func DefaultGetTeamScheduleTimeCardOperationOptions() GetTeamScheduleTimeCardOperationOptions

func (GetTeamScheduleTimeCardOperationOptions) ToHeaders

func (GetTeamScheduleTimeCardOperationOptions) ToOData

func (GetTeamScheduleTimeCardOperationOptions) ToQuery

type GetTeamScheduleTimeCardOperationResponse

type GetTeamScheduleTimeCardOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.TimeCard
}

type GetTeamScheduleTimeCardsCountOperationOptions

type GetTeamScheduleTimeCardsCountOperationOptions struct {
	Filter    *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Search    *string
}

func DefaultGetTeamScheduleTimeCardsCountOperationOptions

func DefaultGetTeamScheduleTimeCardsCountOperationOptions() GetTeamScheduleTimeCardsCountOperationOptions

func (GetTeamScheduleTimeCardsCountOperationOptions) ToHeaders

func (GetTeamScheduleTimeCardsCountOperationOptions) ToOData

func (GetTeamScheduleTimeCardsCountOperationOptions) ToQuery

type GetTeamScheduleTimeCardsCountOperationResponse

type GetTeamScheduleTimeCardsCountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type ListTeamScheduleTimeCardsCompleteResult

type ListTeamScheduleTimeCardsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.TimeCard
}

type ListTeamScheduleTimeCardsCustomPager

type ListTeamScheduleTimeCardsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListTeamScheduleTimeCardsCustomPager) NextPageLink() *odata.Link

type ListTeamScheduleTimeCardsOperationOptions

type ListTeamScheduleTimeCardsOperationOptions struct {
	Count     *bool
	Expand    *odata.Expand
	Filter    *string
	Metadata  *odata.Metadata
	OrderBy   *odata.OrderBy
	RetryFunc client.RequestRetryFunc
	Search    *string
	Select    *[]string
	Skip      *int64
	Top       *int64
}

func DefaultListTeamScheduleTimeCardsOperationOptions

func DefaultListTeamScheduleTimeCardsOperationOptions() ListTeamScheduleTimeCardsOperationOptions

func (ListTeamScheduleTimeCardsOperationOptions) ToHeaders

func (ListTeamScheduleTimeCardsOperationOptions) ToOData

func (ListTeamScheduleTimeCardsOperationOptions) ToQuery

type ListTeamScheduleTimeCardsOperationResponse

type ListTeamScheduleTimeCardsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.TimeCard
}

type StartTeamScheduleTimeCardBreakOperationOptions

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

func DefaultStartTeamScheduleTimeCardBreakOperationOptions

func DefaultStartTeamScheduleTimeCardBreakOperationOptions() StartTeamScheduleTimeCardBreakOperationOptions

func (StartTeamScheduleTimeCardBreakOperationOptions) ToHeaders

func (StartTeamScheduleTimeCardBreakOperationOptions) ToOData

func (StartTeamScheduleTimeCardBreakOperationOptions) ToQuery

type StartTeamScheduleTimeCardBreakOperationResponse

type StartTeamScheduleTimeCardBreakOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.TimeCard
}

type StartTeamScheduleTimeCardBreakRequest

type StartTeamScheduleTimeCardBreakRequest struct {
	AtApprovedLocation nullable.Type[bool] `json:"atApprovedLocation,omitempty"`
	Notes              *beta.ItemBody      `json:"notes,omitempty"`
}

type TeamScheduleTimeCardClient

type TeamScheduleTimeCardClient struct {
	Client *msgraph.Client
}

func NewTeamScheduleTimeCardClientWithBaseURI

func NewTeamScheduleTimeCardClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamScheduleTimeCardClient, error)

func (TeamScheduleTimeCardClient) CreateTeamScheduleTimeCard

CreateTeamScheduleTimeCard - Create new navigation property to timeCards for groups

func (TeamScheduleTimeCardClient) CreateTeamScheduleTimeCardClockIn

CreateTeamScheduleTimeCardClockIn - Invoke action clockIn. Clock in to start a timeCard.

func (TeamScheduleTimeCardClient) CreateTeamScheduleTimeCardClockOut

CreateTeamScheduleTimeCardClockOut - Invoke action clockOut. Clock out to end an open timeCard.

func (TeamScheduleTimeCardClient) CreateTeamScheduleTimeCardConfirm

CreateTeamScheduleTimeCardConfirm - Invoke action confirm. Confirm a specific timeCard.

func (TeamScheduleTimeCardClient) DeleteTeamScheduleTimeCard

DeleteTeamScheduleTimeCard - Delete navigation property timeCards for groups

func (TeamScheduleTimeCardClient) EndTeamScheduleTimeCardBreak

EndTeamScheduleTimeCardBreak - Invoke action endBreak. End the open break in a specific timeCard.

func (TeamScheduleTimeCardClient) GetTeamScheduleTimeCard

GetTeamScheduleTimeCard - Get timeCards from groups. The time cards in the schedule.

func (TeamScheduleTimeCardClient) GetTeamScheduleTimeCardsCount

GetTeamScheduleTimeCardsCount - Get the number of the resource

func (TeamScheduleTimeCardClient) ListTeamScheduleTimeCards

ListTeamScheduleTimeCards - Get timeCards from groups. The time cards in the schedule.

func (TeamScheduleTimeCardClient) ListTeamScheduleTimeCardsComplete

ListTeamScheduleTimeCardsComplete retrieves all the results into a single object

func (TeamScheduleTimeCardClient) ListTeamScheduleTimeCardsCompleteMatchingPredicate

func (c TeamScheduleTimeCardClient) ListTeamScheduleTimeCardsCompleteMatchingPredicate(ctx context.Context, id beta.GroupId, options ListTeamScheduleTimeCardsOperationOptions, predicate TimeCardOperationPredicate) (result ListTeamScheduleTimeCardsCompleteResult, err error)

ListTeamScheduleTimeCardsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamScheduleTimeCardClient) StartTeamScheduleTimeCardBreak

StartTeamScheduleTimeCardBreak - Invoke action startBreak. Start a break in a specific timeCard.

func (TeamScheduleTimeCardClient) UpdateTeamScheduleTimeCard

UpdateTeamScheduleTimeCard - Update the navigation property timeCards in groups

type TimeCardOperationPredicate

type TimeCardOperationPredicate struct {
}

func (TimeCardOperationPredicate) Matches

func (p TimeCardOperationPredicate) Matches(input beta.TimeCard) bool

type UpdateTeamScheduleTimeCardOperationOptions

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

func DefaultUpdateTeamScheduleTimeCardOperationOptions

func DefaultUpdateTeamScheduleTimeCardOperationOptions() UpdateTeamScheduleTimeCardOperationOptions

func (UpdateTeamScheduleTimeCardOperationOptions) ToHeaders

func (UpdateTeamScheduleTimeCardOperationOptions) ToOData

func (UpdateTeamScheduleTimeCardOperationOptions) ToQuery

type UpdateTeamScheduleTimeCardOperationResponse

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