calendareventinstance

package
v0.20241128.1112539 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendareventinstance.NewCalendarEventInstanceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarEventInstanceClient.AcceptCalendarEventInstance

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

payload := calendareventinstance.AcceptCalendarEventInstanceRequest{
	// ...
}


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

Example Usage: CalendarEventInstanceClient.CancelCalendarEventInstance

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

payload := calendareventinstance.CancelCalendarEventInstanceRequest{
	// ...
}


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

Example Usage: CalendarEventInstanceClient.DeclineCalendarEventInstance

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

payload := calendareventinstance.DeclineCalendarEventInstanceRequest{
	// ...
}


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

Example Usage: CalendarEventInstanceClient.DismissCalendarEventInstanceReminder

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarEventInstanceClient.ForwardCalendarEventInstance

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

payload := calendareventinstance.ForwardCalendarEventInstanceRequest{
	// ...
}


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

Example Usage: CalendarEventInstanceClient.GetCalendarEventInstance

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarEventInstanceClient.GetCalendarEventInstancesCount

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventID("groupId", "eventId")

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

Example Usage: CalendarEventInstanceClient.ListCalendarEventInstances

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventID("groupId", "eventId")

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

Example Usage: CalendarEventInstanceClient.SnoozeCalendarEventInstanceReminder

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

payload := calendareventinstance.SnoozeCalendarEventInstanceReminderRequest{
	// ...
}


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

Example Usage: CalendarEventInstanceClient.TentativelyAcceptCalendarEventInstance

ctx := context.TODO()
id := calendareventinstance.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

payload := calendareventinstance.TentativelyAcceptCalendarEventInstanceRequest{
	// ...
}


read, err := client.TentativelyAcceptCalendarEventInstance(ctx, id, payload, calendareventinstance.DefaultTentativelyAcceptCalendarEventInstanceOperationOptions())
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 AcceptCalendarEventInstanceOperationOptions

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

func DefaultAcceptCalendarEventInstanceOperationOptions

func DefaultAcceptCalendarEventInstanceOperationOptions() AcceptCalendarEventInstanceOperationOptions

func (AcceptCalendarEventInstanceOperationOptions) ToHeaders

func (AcceptCalendarEventInstanceOperationOptions) ToOData

func (AcceptCalendarEventInstanceOperationOptions) ToQuery

type AcceptCalendarEventInstanceOperationResponse

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

type AcceptCalendarEventInstanceRequest

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

type CalendarEventInstanceClient

type CalendarEventInstanceClient struct {
	Client *msgraph.Client
}

func NewCalendarEventInstanceClientWithBaseURI

func NewCalendarEventInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarEventInstanceClient, error)

func (CalendarEventInstanceClient) AcceptCalendarEventInstance

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

func (CalendarEventInstanceClient) CancelCalendarEventInstance

CancelCalendarEventInstance - 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 (CalendarEventInstanceClient) DeclineCalendarEventInstance

DeclineCalendarEventInstance - 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 (CalendarEventInstanceClient) DismissCalendarEventInstanceReminder

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

func (CalendarEventInstanceClient) ForwardCalendarEventInstance

ForwardCalendarEventInstance - 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 (CalendarEventInstanceClient) GetCalendarEventInstance

GetCalendarEventInstance - Get instances from groups. The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable.

func (CalendarEventInstanceClient) GetCalendarEventInstancesCount

GetCalendarEventInstancesCount - Get the number of the resource

func (CalendarEventInstanceClient) ListCalendarEventInstances

ListCalendarEventInstances - Get instances from groups. The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable.

func (CalendarEventInstanceClient) ListCalendarEventInstancesComplete

ListCalendarEventInstancesComplete retrieves all the results into a single object

func (CalendarEventInstanceClient) ListCalendarEventInstancesCompleteMatchingPredicate

ListCalendarEventInstancesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CalendarEventInstanceClient) SnoozeCalendarEventInstanceReminder

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

func (CalendarEventInstanceClient) TentativelyAcceptCalendarEventInstance

TentativelyAcceptCalendarEventInstance - 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 CancelCalendarEventInstanceOperationOptions

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

func DefaultCancelCalendarEventInstanceOperationOptions

func DefaultCancelCalendarEventInstanceOperationOptions() CancelCalendarEventInstanceOperationOptions

func (CancelCalendarEventInstanceOperationOptions) ToHeaders

func (CancelCalendarEventInstanceOperationOptions) ToOData

func (CancelCalendarEventInstanceOperationOptions) ToQuery

type CancelCalendarEventInstanceOperationResponse

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

type CancelCalendarEventInstanceRequest

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

type DeclineCalendarEventInstanceOperationOptions

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

func DefaultDeclineCalendarEventInstanceOperationOptions

func DefaultDeclineCalendarEventInstanceOperationOptions() DeclineCalendarEventInstanceOperationOptions

func (DeclineCalendarEventInstanceOperationOptions) ToHeaders

func (DeclineCalendarEventInstanceOperationOptions) ToOData

func (DeclineCalendarEventInstanceOperationOptions) ToQuery

type DeclineCalendarEventInstanceOperationResponse

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

type DeclineCalendarEventInstanceRequest

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

type DismissCalendarEventInstanceReminderOperationOptions

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

func DefaultDismissCalendarEventInstanceReminderOperationOptions

func DefaultDismissCalendarEventInstanceReminderOperationOptions() DismissCalendarEventInstanceReminderOperationOptions

func (DismissCalendarEventInstanceReminderOperationOptions) ToHeaders

func (DismissCalendarEventInstanceReminderOperationOptions) ToOData

func (DismissCalendarEventInstanceReminderOperationOptions) ToQuery

type DismissCalendarEventInstanceReminderOperationResponse

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

type EventOperationPredicate

type EventOperationPredicate struct {
}

func (EventOperationPredicate) Matches

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

type ForwardCalendarEventInstanceOperationOptions

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

func DefaultForwardCalendarEventInstanceOperationOptions

func DefaultForwardCalendarEventInstanceOperationOptions() ForwardCalendarEventInstanceOperationOptions

func (ForwardCalendarEventInstanceOperationOptions) ToHeaders

func (ForwardCalendarEventInstanceOperationOptions) ToOData

func (ForwardCalendarEventInstanceOperationOptions) ToQuery

type ForwardCalendarEventInstanceOperationResponse

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

type ForwardCalendarEventInstanceRequest

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

type GetCalendarEventInstanceOperationOptions

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

func DefaultGetCalendarEventInstanceOperationOptions

func DefaultGetCalendarEventInstanceOperationOptions() GetCalendarEventInstanceOperationOptions

func (GetCalendarEventInstanceOperationOptions) ToHeaders

func (GetCalendarEventInstanceOperationOptions) ToOData

func (GetCalendarEventInstanceOperationOptions) ToQuery

type GetCalendarEventInstanceOperationResponse

type GetCalendarEventInstanceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.Event
}

type GetCalendarEventInstancesCountOperationOptions

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

func DefaultGetCalendarEventInstancesCountOperationOptions

func DefaultGetCalendarEventInstancesCountOperationOptions() GetCalendarEventInstancesCountOperationOptions

func (GetCalendarEventInstancesCountOperationOptions) ToHeaders

func (GetCalendarEventInstancesCountOperationOptions) ToOData

func (GetCalendarEventInstancesCountOperationOptions) ToQuery

type GetCalendarEventInstancesCountOperationResponse

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

type ListCalendarEventInstancesCompleteResult

type ListCalendarEventInstancesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.Event
}

type ListCalendarEventInstancesCustomPager

type ListCalendarEventInstancesCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListCalendarEventInstancesOperationOptions

type ListCalendarEventInstancesOperationOptions 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 DefaultListCalendarEventInstancesOperationOptions

func DefaultListCalendarEventInstancesOperationOptions() ListCalendarEventInstancesOperationOptions

func (ListCalendarEventInstancesOperationOptions) ToHeaders

func (ListCalendarEventInstancesOperationOptions) ToOData

func (ListCalendarEventInstancesOperationOptions) ToQuery

type ListCalendarEventInstancesOperationResponse

type ListCalendarEventInstancesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.Event
}

type SnoozeCalendarEventInstanceReminderOperationOptions

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

func DefaultSnoozeCalendarEventInstanceReminderOperationOptions

func DefaultSnoozeCalendarEventInstanceReminderOperationOptions() SnoozeCalendarEventInstanceReminderOperationOptions

func (SnoozeCalendarEventInstanceReminderOperationOptions) ToHeaders

func (SnoozeCalendarEventInstanceReminderOperationOptions) ToOData

func (SnoozeCalendarEventInstanceReminderOperationOptions) ToQuery

type SnoozeCalendarEventInstanceReminderOperationResponse

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

type SnoozeCalendarEventInstanceReminderRequest

type SnoozeCalendarEventInstanceReminderRequest struct {
	NewReminderTime *beta.DateTimeTimeZone `json:"NewReminderTime,omitempty"`
}

type TentativelyAcceptCalendarEventInstanceOperationOptions

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

func DefaultTentativelyAcceptCalendarEventInstanceOperationOptions

func DefaultTentativelyAcceptCalendarEventInstanceOperationOptions() TentativelyAcceptCalendarEventInstanceOperationOptions

func (TentativelyAcceptCalendarEventInstanceOperationOptions) ToHeaders

func (TentativelyAcceptCalendarEventInstanceOperationOptions) ToOData

func (TentativelyAcceptCalendarEventInstanceOperationOptions) ToQuery

type TentativelyAcceptCalendarEventInstanceOperationResponse

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

type TentativelyAcceptCalendarEventInstanceRequest

type TentativelyAcceptCalendarEventInstanceRequest struct {
	Comment         nullable.Type[string] `json:"Comment,omitempty"`
	ProposedNewTime *beta.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