calendarcalendarviewinstance

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendarcalendarviewinstance.NewCalendarCalendarViewInstanceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarCalendarViewInstanceClient.AcceptCalendarViewInstance

ctx := context.TODO()
id := calendarcalendarviewinstance.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

payload := calendarcalendarviewinstance.AcceptCalendarViewInstanceRequest{
	// ...
}


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

Example Usage: CalendarCalendarViewInstanceClient.CancelCalendarViewInstance

ctx := context.TODO()
id := calendarcalendarviewinstance.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

payload := calendarcalendarviewinstance.CancelCalendarViewInstanceRequest{
	// ...
}


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

Example Usage: CalendarCalendarViewInstanceClient.DeclineCalendarViewInstance

ctx := context.TODO()
id := calendarcalendarviewinstance.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

payload := calendarcalendarviewinstance.DeclineCalendarViewInstanceRequest{
	// ...
}


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

Example Usage: CalendarCalendarViewInstanceClient.DismissCalendarViewInstanceReminder

ctx := context.TODO()
id := calendarcalendarviewinstance.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarCalendarViewInstanceClient.ForwardCalendarViewInstance

ctx := context.TODO()
id := calendarcalendarviewinstance.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

payload := calendarcalendarviewinstance.ForwardCalendarViewInstanceRequest{
	// ...
}


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

Example Usage: CalendarCalendarViewInstanceClient.GetCalendarViewInstance

ctx := context.TODO()
id := calendarcalendarviewinstance.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarCalendarViewInstanceClient.GetCalendarViewInstancesCount

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

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

Example Usage: CalendarCalendarViewInstanceClient.ListCalendarViewInstances

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

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

Example Usage: CalendarCalendarViewInstanceClient.SnoozeCalendarViewInstanceReminder

ctx := context.TODO()
id := calendarcalendarviewinstance.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

payload := calendarcalendarviewinstance.SnoozeCalendarViewInstanceReminderRequest{
	// ...
}


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

Example Usage: CalendarCalendarViewInstanceClient.TentativelyAcceptCalendarViewInstance

ctx := context.TODO()
id := calendarcalendarviewinstance.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

payload := calendarcalendarviewinstance.TentativelyAcceptCalendarViewInstanceRequest{
	// ...
}


read, err := client.TentativelyAcceptCalendarViewInstance(ctx, id, payload, calendarcalendarviewinstance.DefaultTentativelyAcceptCalendarViewInstanceOperationOptions())
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 AcceptCalendarViewInstanceOperationOptions

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

func DefaultAcceptCalendarViewInstanceOperationOptions

func DefaultAcceptCalendarViewInstanceOperationOptions() AcceptCalendarViewInstanceOperationOptions

func (AcceptCalendarViewInstanceOperationOptions) ToHeaders

func (AcceptCalendarViewInstanceOperationOptions) ToOData

func (AcceptCalendarViewInstanceOperationOptions) ToQuery

type AcceptCalendarViewInstanceOperationResponse

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

type AcceptCalendarViewInstanceRequest

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

type CalendarCalendarViewInstanceClient

type CalendarCalendarViewInstanceClient struct {
	Client *msgraph.Client
}

func NewCalendarCalendarViewInstanceClientWithBaseURI

func NewCalendarCalendarViewInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarCalendarViewInstanceClient, error)

func (CalendarCalendarViewInstanceClient) AcceptCalendarViewInstance

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

func (CalendarCalendarViewInstanceClient) CancelCalendarViewInstance

CancelCalendarViewInstance - 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 (CalendarCalendarViewInstanceClient) DeclineCalendarViewInstance

DeclineCalendarViewInstance - 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 (CalendarCalendarViewInstanceClient) DismissCalendarViewInstanceReminder

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

func (CalendarCalendarViewInstanceClient) ForwardCalendarViewInstance

ForwardCalendarViewInstance - 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 (CalendarCalendarViewInstanceClient) GetCalendarViewInstance

GetCalendarViewInstance - 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 (CalendarCalendarViewInstanceClient) GetCalendarViewInstancesCount

GetCalendarViewInstancesCount - Get the number of the resource

func (CalendarCalendarViewInstanceClient) ListCalendarViewInstances

ListCalendarViewInstances - 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 (CalendarCalendarViewInstanceClient) ListCalendarViewInstancesComplete

ListCalendarViewInstancesComplete retrieves all the results into a single object

func (CalendarCalendarViewInstanceClient) ListCalendarViewInstancesCompleteMatchingPredicate

ListCalendarViewInstancesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CalendarCalendarViewInstanceClient) SnoozeCalendarViewInstanceReminder

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

func (CalendarCalendarViewInstanceClient) TentativelyAcceptCalendarViewInstance

TentativelyAcceptCalendarViewInstance - 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 CancelCalendarViewInstanceOperationOptions

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

func DefaultCancelCalendarViewInstanceOperationOptions

func DefaultCancelCalendarViewInstanceOperationOptions() CancelCalendarViewInstanceOperationOptions

func (CancelCalendarViewInstanceOperationOptions) ToHeaders

func (CancelCalendarViewInstanceOperationOptions) ToOData

func (CancelCalendarViewInstanceOperationOptions) ToQuery

type CancelCalendarViewInstanceOperationResponse

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

type CancelCalendarViewInstanceRequest

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

type DeclineCalendarViewInstanceOperationOptions

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

func DefaultDeclineCalendarViewInstanceOperationOptions

func DefaultDeclineCalendarViewInstanceOperationOptions() DeclineCalendarViewInstanceOperationOptions

func (DeclineCalendarViewInstanceOperationOptions) ToHeaders

func (DeclineCalendarViewInstanceOperationOptions) ToOData

func (DeclineCalendarViewInstanceOperationOptions) ToQuery

type DeclineCalendarViewInstanceOperationResponse

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

type DeclineCalendarViewInstanceRequest

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

type DismissCalendarViewInstanceReminderOperationOptions

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

func DefaultDismissCalendarViewInstanceReminderOperationOptions

func DefaultDismissCalendarViewInstanceReminderOperationOptions() DismissCalendarViewInstanceReminderOperationOptions

func (DismissCalendarViewInstanceReminderOperationOptions) ToHeaders

func (DismissCalendarViewInstanceReminderOperationOptions) ToOData

func (DismissCalendarViewInstanceReminderOperationOptions) ToQuery

type DismissCalendarViewInstanceReminderOperationResponse

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

type EventOperationPredicate

type EventOperationPredicate struct {
}

func (EventOperationPredicate) Matches

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

type ForwardCalendarViewInstanceOperationOptions

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

func DefaultForwardCalendarViewInstanceOperationOptions

func DefaultForwardCalendarViewInstanceOperationOptions() ForwardCalendarViewInstanceOperationOptions

func (ForwardCalendarViewInstanceOperationOptions) ToHeaders

func (ForwardCalendarViewInstanceOperationOptions) ToOData

func (ForwardCalendarViewInstanceOperationOptions) ToQuery

type ForwardCalendarViewInstanceOperationResponse

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

type ForwardCalendarViewInstanceRequest

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

type GetCalendarViewInstanceOperationOptions

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

func DefaultGetCalendarViewInstanceOperationOptions

func DefaultGetCalendarViewInstanceOperationOptions() GetCalendarViewInstanceOperationOptions

func (GetCalendarViewInstanceOperationOptions) ToHeaders

func (GetCalendarViewInstanceOperationOptions) ToOData

func (GetCalendarViewInstanceOperationOptions) ToQuery

type GetCalendarViewInstanceOperationResponse

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

type GetCalendarViewInstancesCountOperationOptions

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

func DefaultGetCalendarViewInstancesCountOperationOptions

func DefaultGetCalendarViewInstancesCountOperationOptions() GetCalendarViewInstancesCountOperationOptions

func (GetCalendarViewInstancesCountOperationOptions) ToHeaders

func (GetCalendarViewInstancesCountOperationOptions) ToOData

func (GetCalendarViewInstancesCountOperationOptions) ToQuery

type GetCalendarViewInstancesCountOperationResponse

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

type ListCalendarViewInstancesCompleteResult

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

type ListCalendarViewInstancesCustomPager

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

type ListCalendarViewInstancesOperationOptions

type ListCalendarViewInstancesOperationOptions 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 DefaultListCalendarViewInstancesOperationOptions

func DefaultListCalendarViewInstancesOperationOptions() ListCalendarViewInstancesOperationOptions

func (ListCalendarViewInstancesOperationOptions) ToHeaders

func (ListCalendarViewInstancesOperationOptions) ToOData

func (ListCalendarViewInstancesOperationOptions) ToQuery

type ListCalendarViewInstancesOperationResponse

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

type SnoozeCalendarViewInstanceReminderOperationOptions

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

func DefaultSnoozeCalendarViewInstanceReminderOperationOptions

func DefaultSnoozeCalendarViewInstanceReminderOperationOptions() SnoozeCalendarViewInstanceReminderOperationOptions

func (SnoozeCalendarViewInstanceReminderOperationOptions) ToHeaders

func (SnoozeCalendarViewInstanceReminderOperationOptions) ToOData

func (SnoozeCalendarViewInstanceReminderOperationOptions) ToQuery

type SnoozeCalendarViewInstanceReminderOperationResponse

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

type SnoozeCalendarViewInstanceReminderRequest

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

type TentativelyAcceptCalendarViewInstanceOperationOptions

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

func DefaultTentativelyAcceptCalendarViewInstanceOperationOptions

func DefaultTentativelyAcceptCalendarViewInstanceOperationOptions() TentativelyAcceptCalendarViewInstanceOperationOptions

func (TentativelyAcceptCalendarViewInstanceOperationOptions) ToHeaders

func (TentativelyAcceptCalendarViewInstanceOperationOptions) ToOData

func (TentativelyAcceptCalendarViewInstanceOperationOptions) ToQuery

type TentativelyAcceptCalendarViewInstanceOperationResponse

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

type TentativelyAcceptCalendarViewInstanceRequest

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