calendareventexceptionoccurrenceattachment

package
v0.20241128.1084944 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/calendareventexceptionoccurrenceattachment Documentation

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

Client Initialization

client := calendareventexceptionoccurrenceattachment.NewCalendarEventExceptionOccurrenceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarEventExceptionOccurrenceAttachmentClient.CreateCalendarEventExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendareventexceptionoccurrenceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarEventExceptionOccurrenceAttachmentClient.CreateCalendarEventExceptionOccurrenceAttachmentsUploadSession

ctx := context.TODO()
id := calendareventexceptionoccurrenceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

payload := calendareventexceptionoccurrenceattachment.CreateCalendarEventExceptionOccurrenceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarEventExceptionOccurrenceAttachmentClient.DeleteCalendarEventExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendareventexceptionoccurrenceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarEventExceptionOccurrenceAttachmentClient.GetCalendarEventExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendareventexceptionoccurrenceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarEventExceptionOccurrenceAttachmentClient.GetCalendarEventExceptionOccurrenceAttachmentsCount

ctx := context.TODO()
id := calendareventexceptionoccurrenceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarEventExceptionOccurrenceAttachmentClient.ListCalendarEventExceptionOccurrenceAttachments

ctx := context.TODO()
id := calendareventexceptionoccurrenceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

// alternatively `client.ListCalendarEventExceptionOccurrenceAttachments(ctx, id, calendareventexceptionoccurrenceattachment.DefaultListCalendarEventExceptionOccurrenceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListCalendarEventExceptionOccurrenceAttachmentsComplete(ctx, id, calendareventexceptionoccurrenceattachment.DefaultListCalendarEventExceptionOccurrenceAttachmentsOperationOptions())
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 CalendarEventExceptionOccurrenceAttachmentClient

type CalendarEventExceptionOccurrenceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarEventExceptionOccurrenceAttachmentClientWithBaseURI

func NewCalendarEventExceptionOccurrenceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarEventExceptionOccurrenceAttachmentClient, error)

func (CalendarEventExceptionOccurrenceAttachmentClient) CreateCalendarEventExceptionOccurrenceAttachment

CreateCalendarEventExceptionOccurrenceAttachment - Create new navigation property to attachments for groups

func (CalendarEventExceptionOccurrenceAttachmentClient) CreateCalendarEventExceptionOccurrenceAttachmentsUploadSession

CreateCalendarEventExceptionOccurrenceAttachmentsUploadSession - 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 (CalendarEventExceptionOccurrenceAttachmentClient) DeleteCalendarEventExceptionOccurrenceAttachment

DeleteCalendarEventExceptionOccurrenceAttachment - Delete navigation property attachments for groups

func (CalendarEventExceptionOccurrenceAttachmentClient) GetCalendarEventExceptionOccurrenceAttachment

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

func (CalendarEventExceptionOccurrenceAttachmentClient) GetCalendarEventExceptionOccurrenceAttachmentsCount

GetCalendarEventExceptionOccurrenceAttachmentsCount - Get the number of the resource

func (CalendarEventExceptionOccurrenceAttachmentClient) ListCalendarEventExceptionOccurrenceAttachments

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

func (CalendarEventExceptionOccurrenceAttachmentClient) ListCalendarEventExceptionOccurrenceAttachmentsComplete

ListCalendarEventExceptionOccurrenceAttachmentsComplete retrieves all the results into a single object

func (CalendarEventExceptionOccurrenceAttachmentClient) ListCalendarEventExceptionOccurrenceAttachmentsCompleteMatchingPredicate

ListCalendarEventExceptionOccurrenceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarEventExceptionOccurrenceAttachmentOperationOptions

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

func (CreateCalendarEventExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (CreateCalendarEventExceptionOccurrenceAttachmentOperationOptions) ToOData

func (CreateCalendarEventExceptionOccurrenceAttachmentOperationOptions) ToQuery

type CreateCalendarEventExceptionOccurrenceAttachmentOperationResponse

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

type CreateCalendarEventExceptionOccurrenceAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarEventExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarEventExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarEventExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarEventExceptionOccurrenceAttachmentsUploadSessionOperationResponse

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

type CreateCalendarEventExceptionOccurrenceAttachmentsUploadSessionRequest

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

type DeleteCalendarEventExceptionOccurrenceAttachmentOperationOptions

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

func (DeleteCalendarEventExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (DeleteCalendarEventExceptionOccurrenceAttachmentOperationOptions) ToOData

func (DeleteCalendarEventExceptionOccurrenceAttachmentOperationOptions) ToQuery

type DeleteCalendarEventExceptionOccurrenceAttachmentOperationResponse

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

type GetCalendarEventExceptionOccurrenceAttachmentOperationOptions

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

func (GetCalendarEventExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (GetCalendarEventExceptionOccurrenceAttachmentOperationOptions) ToOData

func (GetCalendarEventExceptionOccurrenceAttachmentOperationOptions) ToQuery

type GetCalendarEventExceptionOccurrenceAttachmentOperationResponse

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

type GetCalendarEventExceptionOccurrenceAttachmentsCountOperationOptions

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

func (GetCalendarEventExceptionOccurrenceAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarEventExceptionOccurrenceAttachmentsCountOperationOptions) ToOData

func (GetCalendarEventExceptionOccurrenceAttachmentsCountOperationOptions) ToQuery

type GetCalendarEventExceptionOccurrenceAttachmentsCountOperationResponse

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

type ListCalendarEventExceptionOccurrenceAttachmentsCompleteResult

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

type ListCalendarEventExceptionOccurrenceAttachmentsCustomPager

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

type ListCalendarEventExceptionOccurrenceAttachmentsOperationOptions

type ListCalendarEventExceptionOccurrenceAttachmentsOperationOptions 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 (ListCalendarEventExceptionOccurrenceAttachmentsOperationOptions) ToHeaders

func (ListCalendarEventExceptionOccurrenceAttachmentsOperationOptions) ToOData

func (ListCalendarEventExceptionOccurrenceAttachmentsOperationOptions) ToQuery

type ListCalendarEventExceptionOccurrenceAttachmentsOperationResponse

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