calendarview

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/stable/calendarview Documentation

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

Client Initialization

client := calendarview.NewCalendarViewClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarViewClient.AcceptCalendarView

ctx := context.TODO()
id := calendarview.NewGroupIdCalendarViewID("groupId", "eventId")

payload := calendarview.AcceptCalendarViewRequest{
	// ...
}


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

Example Usage: CalendarViewClient.CancelCalendarView

ctx := context.TODO()
id := calendarview.NewGroupIdCalendarViewID("groupId", "eventId")

payload := calendarview.CancelCalendarViewRequest{
	// ...
}


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

Example Usage: CalendarViewClient.DeclineCalendarView

ctx := context.TODO()
id := calendarview.NewGroupIdCalendarViewID("groupId", "eventId")

payload := calendarview.DeclineCalendarViewRequest{
	// ...
}


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

Example Usage: CalendarViewClient.DismissCalendarViewReminder

ctx := context.TODO()
id := calendarview.NewGroupIdCalendarViewID("groupId", "eventId")

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

Example Usage: CalendarViewClient.ForwardCalendarView

ctx := context.TODO()
id := calendarview.NewGroupIdCalendarViewID("groupId", "eventId")

payload := calendarview.ForwardCalendarViewRequest{
	// ...
}


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

Example Usage: CalendarViewClient.GetCalendarView

ctx := context.TODO()
id := calendarview.NewGroupIdCalendarViewID("groupId", "eventId")

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

Example Usage: CalendarViewClient.GetCalendarViewCount

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

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

Example Usage: CalendarViewClient.ListCalendarViews

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

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

Example Usage: CalendarViewClient.SnoozeCalendarViewReminder

ctx := context.TODO()
id := calendarview.NewGroupIdCalendarViewID("groupId", "eventId")

payload := calendarview.SnoozeCalendarViewReminderRequest{
	// ...
}


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

Example Usage: CalendarViewClient.TentativelyAcceptCalendarView

ctx := context.TODO()
id := calendarview.NewGroupIdCalendarViewID("groupId", "eventId")

payload := calendarview.TentativelyAcceptCalendarViewRequest{
	// ...
}


read, err := client.TentativelyAcceptCalendarView(ctx, id, payload, calendarview.DefaultTentativelyAcceptCalendarViewOperationOptions())
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 AcceptCalendarViewOperationOptions

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

func DefaultAcceptCalendarViewOperationOptions

func DefaultAcceptCalendarViewOperationOptions() AcceptCalendarViewOperationOptions

func (AcceptCalendarViewOperationOptions) ToHeaders

func (AcceptCalendarViewOperationOptions) ToOData

func (AcceptCalendarViewOperationOptions) ToQuery

type AcceptCalendarViewOperationResponse

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

type AcceptCalendarViewRequest

type AcceptCalendarViewRequest struct {
	Comment      nullable.Type[string] `json:"Comment,omitempty"`
	SendResponse nullable.Type[bool]   `json:"SendResponse,omitempty"`
}

type CalendarViewClient

type CalendarViewClient struct {
	Client *msgraph.Client
}

func NewCalendarViewClientWithBaseURI

func NewCalendarViewClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarViewClient, error)

func (CalendarViewClient) AcceptCalendarView

AcceptCalendarView - Invoke action accept. Accept the specified event in a user calendar.

func (CalendarViewClient) CancelCalendarView

CancelCalendarView - Invoke action cancel. This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the following error message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and lets the organizer send a custom message to the attendees about the cancellation.

func (CalendarViewClient) DeclineCalendarView

DeclineCalendarView - Invoke action decline. Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times.

func (CalendarViewClient) DismissCalendarViewReminder

DismissCalendarViewReminder - Invoke action dismissReminder. Dismiss a reminder that has been triggered for an event in a user calendar.

func (CalendarViewClient) ForwardCalendarView

ForwardCalendarView - Invoke action forward. This action allows the organizer or attendee of a meeting event to forward the meeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action also sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's copy of the meeting event. This convenience is not available when forwarding from an Outlook.com account.

func (CalendarViewClient) GetCalendarView

GetCalendarView - Get calendarView from groups. The calendar view for the calendar. Read-only.

func (CalendarViewClient) GetCalendarViewCount

GetCalendarViewCount - Get the number of the resource

func (CalendarViewClient) ListCalendarViews

ListCalendarViews - List group calendarView. Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the default calendar of a group.

func (CalendarViewClient) ListCalendarViewsComplete

ListCalendarViewsComplete retrieves all the results into a single object

func (CalendarViewClient) ListCalendarViewsCompleteMatchingPredicate

func (c CalendarViewClient) ListCalendarViewsCompleteMatchingPredicate(ctx context.Context, id stable.GroupId, options ListCalendarViewsOperationOptions, predicate EventOperationPredicate) (result ListCalendarViewsCompleteResult, err error)

ListCalendarViewsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CalendarViewClient) SnoozeCalendarViewReminder

SnoozeCalendarViewReminder - Invoke action snoozeReminder. Postpone a reminder for an event in a user calendar until a new time.

func (CalendarViewClient) TentativelyAcceptCalendarView

TentativelyAcceptCalendarView - Invoke action tentativelyAccept. Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times.

type CancelCalendarViewOperationOptions

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

func DefaultCancelCalendarViewOperationOptions

func DefaultCancelCalendarViewOperationOptions() CancelCalendarViewOperationOptions

func (CancelCalendarViewOperationOptions) ToHeaders

func (CancelCalendarViewOperationOptions) ToOData

func (CancelCalendarViewOperationOptions) ToQuery

type CancelCalendarViewOperationResponse

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

type CancelCalendarViewRequest

type CancelCalendarViewRequest struct {
	Comment nullable.Type[string] `json:"Comment,omitempty"`
}

type DeclineCalendarViewOperationOptions

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

func DefaultDeclineCalendarViewOperationOptions

func DefaultDeclineCalendarViewOperationOptions() DeclineCalendarViewOperationOptions

func (DeclineCalendarViewOperationOptions) ToHeaders

func (DeclineCalendarViewOperationOptions) ToOData

func (DeclineCalendarViewOperationOptions) ToQuery

type DeclineCalendarViewOperationResponse

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

type DeclineCalendarViewRequest

type DeclineCalendarViewRequest struct {
	Comment         nullable.Type[string] `json:"Comment,omitempty"`
	ProposedNewTime *stable.TimeSlot      `json:"ProposedNewTime,omitempty"`
	SendResponse    nullable.Type[bool]   `json:"SendResponse,omitempty"`
}

type DismissCalendarViewReminderOperationOptions

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

func DefaultDismissCalendarViewReminderOperationOptions

func DefaultDismissCalendarViewReminderOperationOptions() DismissCalendarViewReminderOperationOptions

func (DismissCalendarViewReminderOperationOptions) ToHeaders

func (DismissCalendarViewReminderOperationOptions) ToOData

func (DismissCalendarViewReminderOperationOptions) ToQuery

type DismissCalendarViewReminderOperationResponse

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

type EventOperationPredicate

type EventOperationPredicate struct {
}

func (EventOperationPredicate) Matches

func (p EventOperationPredicate) Matches(input stable.Event) bool

type ForwardCalendarViewOperationOptions

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

func DefaultForwardCalendarViewOperationOptions

func DefaultForwardCalendarViewOperationOptions() ForwardCalendarViewOperationOptions

func (ForwardCalendarViewOperationOptions) ToHeaders

func (ForwardCalendarViewOperationOptions) ToOData

func (ForwardCalendarViewOperationOptions) ToQuery

type ForwardCalendarViewOperationResponse

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

type ForwardCalendarViewRequest

type ForwardCalendarViewRequest struct {
	Comment      nullable.Type[string] `json:"Comment,omitempty"`
	ToRecipients *[]stable.Recipient   `json:"ToRecipients,omitempty"`
}

type GetCalendarViewCountOperationOptions

type GetCalendarViewCountOperationOptions struct {
	EndDateTime   *string
	Filter        *string
	Metadata      *odata.Metadata
	RetryFunc     client.RequestRetryFunc
	Search        *string
	StartDateTime *string
}

func DefaultGetCalendarViewCountOperationOptions

func DefaultGetCalendarViewCountOperationOptions() GetCalendarViewCountOperationOptions

func (GetCalendarViewCountOperationOptions) ToHeaders

func (GetCalendarViewCountOperationOptions) ToOData

func (GetCalendarViewCountOperationOptions) ToQuery

type GetCalendarViewCountOperationResponse

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

type GetCalendarViewOperationOptions

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

func DefaultGetCalendarViewOperationOptions

func DefaultGetCalendarViewOperationOptions() GetCalendarViewOperationOptions

func (GetCalendarViewOperationOptions) ToHeaders

func (GetCalendarViewOperationOptions) ToOData

func (GetCalendarViewOperationOptions) ToQuery

type GetCalendarViewOperationResponse

type GetCalendarViewOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.Event
}

type ListCalendarViewsCompleteResult

type ListCalendarViewsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.Event
}

type ListCalendarViewsCustomPager

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

type ListCalendarViewsOperationOptions

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

func DefaultListCalendarViewsOperationOptions

func DefaultListCalendarViewsOperationOptions() ListCalendarViewsOperationOptions

func (ListCalendarViewsOperationOptions) ToHeaders

func (ListCalendarViewsOperationOptions) ToOData

func (ListCalendarViewsOperationOptions) ToQuery

type ListCalendarViewsOperationResponse

type ListCalendarViewsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.Event
}

type SnoozeCalendarViewReminderOperationOptions

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

func DefaultSnoozeCalendarViewReminderOperationOptions

func DefaultSnoozeCalendarViewReminderOperationOptions() SnoozeCalendarViewReminderOperationOptions

func (SnoozeCalendarViewReminderOperationOptions) ToHeaders

func (SnoozeCalendarViewReminderOperationOptions) ToOData

func (SnoozeCalendarViewReminderOperationOptions) ToQuery

type SnoozeCalendarViewReminderOperationResponse

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

type SnoozeCalendarViewReminderRequest

type SnoozeCalendarViewReminderRequest struct {
	NewReminderTime *stable.DateTimeTimeZone `json:"NewReminderTime,omitempty"`
}

type TentativelyAcceptCalendarViewOperationOptions

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

func DefaultTentativelyAcceptCalendarViewOperationOptions

func DefaultTentativelyAcceptCalendarViewOperationOptions() TentativelyAcceptCalendarViewOperationOptions

func (TentativelyAcceptCalendarViewOperationOptions) ToHeaders

func (TentativelyAcceptCalendarViewOperationOptions) ToOData

func (TentativelyAcceptCalendarViewOperationOptions) ToQuery

type TentativelyAcceptCalendarViewOperationResponse

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

type TentativelyAcceptCalendarViewRequest

type TentativelyAcceptCalendarViewRequest struct {
	Comment         nullable.Type[string] `json:"Comment,omitempty"`
	ProposedNewTime *stable.TimeSlot      `json:"ProposedNewTime,omitempty"`
	SendResponse    nullable.Type[bool]   `json:"SendResponse,omitempty"`
}

Jump to

Keyboard shortcuts

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