calendarcalendarview

package
v0.20241126.1723 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/stable/calendarcalendarview Documentation

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

Client Initialization

client := calendarcalendarview.NewCalendarCalendarViewClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarCalendarViewClient.AcceptCalendarView

ctx := context.TODO()
id := calendarcalendarview.NewGroupIdCalendarCalendarViewID("groupId", "eventId")

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


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

Example Usage: CalendarCalendarViewClient.CancelCalendarView

ctx := context.TODO()
id := calendarcalendarview.NewGroupIdCalendarCalendarViewID("groupId", "eventId")

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


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

Example Usage: CalendarCalendarViewClient.DeclineCalendarView

ctx := context.TODO()
id := calendarcalendarview.NewGroupIdCalendarCalendarViewID("groupId", "eventId")

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


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

Example Usage: CalendarCalendarViewClient.DismissCalendarViewReminder

ctx := context.TODO()
id := calendarcalendarview.NewGroupIdCalendarCalendarViewID("groupId", "eventId")

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

Example Usage: CalendarCalendarViewClient.ForwardCalendarView

ctx := context.TODO()
id := calendarcalendarview.NewGroupIdCalendarCalendarViewID("groupId", "eventId")

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


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

Example Usage: CalendarCalendarViewClient.GetCalendarView

ctx := context.TODO()
id := calendarcalendarview.NewGroupIdCalendarCalendarViewID("groupId", "eventId")

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

Example Usage: CalendarCalendarViewClient.GetCalendarViewCount

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

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

Example Usage: CalendarCalendarViewClient.ListCalendarViews

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

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

Example Usage: CalendarCalendarViewClient.SnoozeCalendarViewReminder

ctx := context.TODO()
id := calendarcalendarview.NewGroupIdCalendarCalendarViewID("groupId", "eventId")

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


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

Example Usage: CalendarCalendarViewClient.TentativelyAcceptCalendarView

ctx := context.TODO()
id := calendarcalendarview.NewGroupIdCalendarCalendarViewID("groupId", "eventId")

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


read, err := client.TentativelyAcceptCalendarView(ctx, id, payload, calendarcalendarview.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 CalendarCalendarViewClient

type CalendarCalendarViewClient struct {
	Client *msgraph.Client
}

func NewCalendarCalendarViewClientWithBaseURI

func NewCalendarCalendarViewClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarCalendarViewClient, error)

func (CalendarCalendarViewClient) AcceptCalendarView

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

func (CalendarCalendarViewClient) 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 (CalendarCalendarViewClient) 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 (CalendarCalendarViewClient) DismissCalendarViewReminder

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

func (CalendarCalendarViewClient) 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 (CalendarCalendarViewClient) GetCalendarView

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

func (CalendarCalendarViewClient) GetCalendarViewCount

GetCalendarViewCount - Get the number of the resource

func (CalendarCalendarViewClient) ListCalendarViews

ListCalendarViews - Get calendarView from groups. The calendar view for the calendar. Navigation property. Read-only.

func (CalendarCalendarViewClient) ListCalendarViewsComplete

ListCalendarViewsComplete retrieves all the results into a single object

func (CalendarCalendarViewClient) ListCalendarViewsCompleteMatchingPredicate

func (c CalendarCalendarViewClient) 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 (CalendarCalendarViewClient) SnoozeCalendarViewReminder

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

func (CalendarCalendarViewClient) 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 {
	Filter    *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Search    *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