calendareventinstanceexceptionoccurrenceattachment

package
v0.20241023.1122425 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendareventinstanceexceptionoccurrenceattachment.NewCalendarEventInstanceExceptionOccurrenceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarEventInstanceExceptionOccurrenceAttachmentClient.CreateCalendarEventInstanceExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendareventinstanceexceptionoccurrenceattachment.NewGroupIdCalendarEventIdInstanceIdExceptionOccurrenceID("groupId", "eventId", "eventId1", "eventId2")

payload := calendareventinstanceexceptionoccurrenceattachment.Attachment{
	// ...
}


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

Example Usage: CalendarEventInstanceExceptionOccurrenceAttachmentClient.CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSession

ctx := context.TODO()
id := calendareventinstanceexceptionoccurrenceattachment.NewGroupIdCalendarEventIdInstanceIdExceptionOccurrenceID("groupId", "eventId", "eventId1", "eventId2")

payload := calendareventinstanceexceptionoccurrenceattachment.CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarEventInstanceExceptionOccurrenceAttachmentClient.DeleteCalendarEventInstanceExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendareventinstanceexceptionoccurrenceattachment.NewGroupIdCalendarEventIdInstanceIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "eventId2", "attachmentId")

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

Example Usage: CalendarEventInstanceExceptionOccurrenceAttachmentClient.GetCalendarEventInstanceExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendareventinstanceexceptionoccurrenceattachment.NewGroupIdCalendarEventIdInstanceIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "eventId2", "attachmentId")

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

Example Usage: CalendarEventInstanceExceptionOccurrenceAttachmentClient.GetCalendarEventInstanceExceptionOccurrenceAttachmentsCount

ctx := context.TODO()
id := calendareventinstanceexceptionoccurrenceattachment.NewGroupIdCalendarEventIdInstanceIdExceptionOccurrenceID("groupId", "eventId", "eventId1", "eventId2")

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

Example Usage: CalendarEventInstanceExceptionOccurrenceAttachmentClient.ListCalendarEventInstanceExceptionOccurrenceAttachments

ctx := context.TODO()
id := calendareventinstanceexceptionoccurrenceattachment.NewGroupIdCalendarEventIdInstanceIdExceptionOccurrenceID("groupId", "eventId", "eventId1", "eventId2")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentOperationPredicate

type AttachmentOperationPredicate struct {
}

func (AttachmentOperationPredicate) Matches

type CalendarEventInstanceExceptionOccurrenceAttachmentClient

type CalendarEventInstanceExceptionOccurrenceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarEventInstanceExceptionOccurrenceAttachmentClientWithBaseURI

func NewCalendarEventInstanceExceptionOccurrenceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarEventInstanceExceptionOccurrenceAttachmentClient, error)

func (CalendarEventInstanceExceptionOccurrenceAttachmentClient) CreateCalendarEventInstanceExceptionOccurrenceAttachment

CreateCalendarEventInstanceExceptionOccurrenceAttachment - Create new navigation property to attachments for groups

func (CalendarEventInstanceExceptionOccurrenceAttachmentClient) CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSession

CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSession - Invoke action createUploadSession. Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example.

func (CalendarEventInstanceExceptionOccurrenceAttachmentClient) DeleteCalendarEventInstanceExceptionOccurrenceAttachment

DeleteCalendarEventInstanceExceptionOccurrenceAttachment - Delete navigation property attachments for groups

func (CalendarEventInstanceExceptionOccurrenceAttachmentClient) GetCalendarEventInstanceExceptionOccurrenceAttachment

GetCalendarEventInstanceExceptionOccurrenceAttachment - Get attachments from groups. The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable.

func (CalendarEventInstanceExceptionOccurrenceAttachmentClient) GetCalendarEventInstanceExceptionOccurrenceAttachmentsCount

GetCalendarEventInstanceExceptionOccurrenceAttachmentsCount - Get the number of the resource

func (CalendarEventInstanceExceptionOccurrenceAttachmentClient) ListCalendarEventInstanceExceptionOccurrenceAttachments

ListCalendarEventInstanceExceptionOccurrenceAttachments - Get attachments from groups. The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable.

func (CalendarEventInstanceExceptionOccurrenceAttachmentClient) ListCalendarEventInstanceExceptionOccurrenceAttachmentsComplete

ListCalendarEventInstanceExceptionOccurrenceAttachmentsComplete retrieves all the results into a single object

func (CalendarEventInstanceExceptionOccurrenceAttachmentClient) ListCalendarEventInstanceExceptionOccurrenceAttachmentsCompleteMatchingPredicate

ListCalendarEventInstanceExceptionOccurrenceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions

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

func (CreateCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (CreateCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToOData

func (CreateCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToQuery

type CreateCalendarEventInstanceExceptionOccurrenceAttachmentOperationResponse

type CreateCalendarEventInstanceExceptionOccurrenceAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Attachment
}

type CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationResponse

type CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.UploadSession
}

type CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSessionRequest

type CreateCalendarEventInstanceExceptionOccurrenceAttachmentsUploadSessionRequest struct {
	AttachmentItem *beta.AttachmentItem `json:"AttachmentItem,omitempty"`
}

type DeleteCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions

type DeleteCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (DeleteCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (DeleteCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToOData

func (DeleteCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToQuery

type DeleteCalendarEventInstanceExceptionOccurrenceAttachmentOperationResponse

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

type GetCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions

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

func (GetCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (GetCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToOData

func (GetCalendarEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToQuery

type GetCalendarEventInstanceExceptionOccurrenceAttachmentOperationResponse

type GetCalendarEventInstanceExceptionOccurrenceAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Attachment
}

type GetCalendarEventInstanceExceptionOccurrenceAttachmentsCountOperationOptions

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

func (GetCalendarEventInstanceExceptionOccurrenceAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarEventInstanceExceptionOccurrenceAttachmentsCountOperationOptions) ToOData

func (GetCalendarEventInstanceExceptionOccurrenceAttachmentsCountOperationOptions) ToQuery

type GetCalendarEventInstanceExceptionOccurrenceAttachmentsCountOperationResponse

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

type ListCalendarEventInstanceExceptionOccurrenceAttachmentsCompleteResult

type ListCalendarEventInstanceExceptionOccurrenceAttachmentsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.Attachment
}

type ListCalendarEventInstanceExceptionOccurrenceAttachmentsCustomPager

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

type ListCalendarEventInstanceExceptionOccurrenceAttachmentsOperationOptions

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

func (ListCalendarEventInstanceExceptionOccurrenceAttachmentsOperationOptions) ToHeaders

func (ListCalendarEventInstanceExceptionOccurrenceAttachmentsOperationOptions) ToOData

func (ListCalendarEventInstanceExceptionOccurrenceAttachmentsOperationOptions) ToQuery

type ListCalendarEventInstanceExceptionOccurrenceAttachmentsOperationResponse

type ListCalendarEventInstanceExceptionOccurrenceAttachmentsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.Attachment
}

Jump to

Keyboard shortcuts

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