calendar

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: 0

README

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

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

Client Initialization

client := calendar.NewCalendarClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarClient.GetCalendar

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

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

Example Usage: CalendarClient.GetCalendarSchedules

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

payload := calendar.GetCalendarSchedulesRequest{
	// ...
}


// alternatively `client.GetCalendarSchedules(ctx, id, payload, calendar.DefaultGetCalendarSchedulesOperationOptions())` can be used to do batched pagination
items, err := client.GetCalendarSchedulesComplete(ctx, id, payload, calendar.DefaultGetCalendarSchedulesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalendarClient

type CalendarClient struct {
	Client *msgraph.Client
}

func NewCalendarClientWithBaseURI

func NewCalendarClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarClient, error)

func (CalendarClient) GetCalendar

GetCalendar - Get calendar from groups. The group's calendar. Read-only.

func (CalendarClient) GetCalendarSchedules

GetCalendarSchedules - Invoke action getSchedule. Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period.

func (CalendarClient) GetCalendarSchedulesComplete

GetCalendarSchedulesComplete retrieves all the results into a single object

func (CalendarClient) GetCalendarSchedulesCompleteMatchingPredicate

GetCalendarSchedulesCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetCalendarOperationOptions

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

func DefaultGetCalendarOperationOptions

func DefaultGetCalendarOperationOptions() GetCalendarOperationOptions

func (GetCalendarOperationOptions) ToHeaders

func (GetCalendarOperationOptions) ToOData

func (GetCalendarOperationOptions) ToQuery

type GetCalendarOperationResponse

type GetCalendarOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.Calendar
}

type GetCalendarSchedulesCompleteResult

type GetCalendarSchedulesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ScheduleInformation
}

type GetCalendarSchedulesCustomPager

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

type GetCalendarSchedulesOperationOptions

type GetCalendarSchedulesOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultGetCalendarSchedulesOperationOptions

func DefaultGetCalendarSchedulesOperationOptions() GetCalendarSchedulesOperationOptions

func (GetCalendarSchedulesOperationOptions) ToHeaders

func (GetCalendarSchedulesOperationOptions) ToOData

func (GetCalendarSchedulesOperationOptions) ToQuery

type GetCalendarSchedulesOperationResponse

type GetCalendarSchedulesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ScheduleInformation
}

type GetCalendarSchedulesRequest

type GetCalendarSchedulesRequest struct {
	AvailabilityViewInterval nullable.Type[int64]   `json:"AvailabilityViewInterval,omitempty"`
	EndTime                  *beta.DateTimeTimeZone `json:"EndTime,omitempty"`
	Schedules                *[]string              `json:"Schedules,omitempty"`
	StartTime                *beta.DateTimeTimeZone `json:"StartTime,omitempty"`
}

type ScheduleInformationOperationPredicate

type ScheduleInformationOperationPredicate struct {
}

func (ScheduleInformationOperationPredicate) Matches

Jump to

Keyboard shortcuts

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