calendarviewinstance

package
v0.20241205.1102105 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendarviewinstance.NewCalendarViewInstanceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarViewInstanceClient.AcceptCalendarViewInstance

ctx := context.TODO()
id := calendarviewinstance.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarViewInstanceClient.CancelCalendarViewInstance

ctx := context.TODO()
id := calendarviewinstance.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarViewInstanceClient.DeclineCalendarViewInstance

ctx := context.TODO()
id := calendarviewinstance.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarViewInstanceClient.DismissCalendarViewInstanceReminder

ctx := context.TODO()
id := calendarviewinstance.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarViewInstanceClient.ForwardCalendarViewInstance

ctx := context.TODO()
id := calendarviewinstance.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarViewInstanceClient.GetCalendarViewInstance

ctx := context.TODO()
id := calendarviewinstance.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarViewInstanceClient.GetCalendarViewInstancesCount

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

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

Example Usage: CalendarViewInstanceClient.ListCalendarViewInstances

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

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

Example Usage: CalendarViewInstanceClient.SnoozeCalendarViewInstanceReminder

ctx := context.TODO()
id := calendarviewinstance.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarViewInstanceClient.TentativelyAcceptCalendarViewInstance

ctx := context.TODO()
id := calendarviewinstance.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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


read, err := client.TentativelyAcceptCalendarViewInstance(ctx, id, payload, calendarviewinstance.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 CalendarViewInstanceClient

type CalendarViewInstanceClient struct {
	Client *msgraph.Client
}

func NewCalendarViewInstanceClientWithBaseURI

func NewCalendarViewInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarViewInstanceClient, error)

func (CalendarViewInstanceClient) AcceptCalendarViewInstance

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

func (CalendarViewInstanceClient) 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 (CalendarViewInstanceClient) 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 (CalendarViewInstanceClient) DismissCalendarViewInstanceReminder

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

func (CalendarViewInstanceClient) 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 (CalendarViewInstanceClient) 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 does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable.

func (CalendarViewInstanceClient) GetCalendarViewInstancesCount

GetCalendarViewInstancesCount - Get the number of the resource

func (CalendarViewInstanceClient) 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 does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable.

func (CalendarViewInstanceClient) ListCalendarViewInstancesComplete

ListCalendarViewInstancesComplete retrieves all the results into a single object

func (CalendarViewInstanceClient) ListCalendarViewInstancesCompleteMatchingPredicate

ListCalendarViewInstancesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CalendarViewInstanceClient) SnoozeCalendarViewInstanceReminder

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

func (CalendarViewInstanceClient) 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 *stable.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 stable.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 *[]stable.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        *stable.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              []stable.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        *[]stable.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 *stable.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 *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