eventinstanceexceptionoccurrenceattachment

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: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/eventinstanceexceptionoccurrenceattachment Documentation

The eventinstanceexceptionoccurrenceattachment SDK allows for interaction with Microsoft Graph me (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/me/beta/eventinstanceexceptionoccurrenceattachment"

Client Initialization

client := eventinstanceexceptionoccurrenceattachment.NewEventInstanceExceptionOccurrenceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: EventInstanceExceptionOccurrenceAttachmentClient.CreateEventInstanceExceptionOccurrenceAttachment

ctx := context.TODO()
id := eventinstanceexceptionoccurrenceattachment.NewMeEventIdInstanceIdExceptionOccurrenceID("eventId", "eventId1", "eventId2")

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


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

Example Usage: EventInstanceExceptionOccurrenceAttachmentClient.CreateEventInstanceExceptionOccurrenceAttachmentsUploadSession

ctx := context.TODO()
id := eventinstanceexceptionoccurrenceattachment.NewMeEventIdInstanceIdExceptionOccurrenceID("eventId", "eventId1", "eventId2")

payload := eventinstanceexceptionoccurrenceattachment.CreateEventInstanceExceptionOccurrenceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: EventInstanceExceptionOccurrenceAttachmentClient.DeleteEventInstanceExceptionOccurrenceAttachment

ctx := context.TODO()
id := eventinstanceexceptionoccurrenceattachment.NewMeEventIdInstanceIdExceptionOccurrenceIdAttachmentID("eventId", "eventId1", "eventId2", "attachmentId")

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

Example Usage: EventInstanceExceptionOccurrenceAttachmentClient.GetEventInstanceExceptionOccurrenceAttachment

ctx := context.TODO()
id := eventinstanceexceptionoccurrenceattachment.NewMeEventIdInstanceIdExceptionOccurrenceIdAttachmentID("eventId", "eventId1", "eventId2", "attachmentId")

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

Example Usage: EventInstanceExceptionOccurrenceAttachmentClient.GetEventInstanceExceptionOccurrenceAttachmentsCount

ctx := context.TODO()
id := eventinstanceexceptionoccurrenceattachment.NewMeEventIdInstanceIdExceptionOccurrenceID("eventId", "eventId1", "eventId2")

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

Example Usage: EventInstanceExceptionOccurrenceAttachmentClient.ListEventInstanceExceptionOccurrenceAttachments

ctx := context.TODO()
id := eventinstanceexceptionoccurrenceattachment.NewMeEventIdInstanceIdExceptionOccurrenceID("eventId", "eventId1", "eventId2")

// alternatively `client.ListEventInstanceExceptionOccurrenceAttachments(ctx, id, eventinstanceexceptionoccurrenceattachment.DefaultListEventInstanceExceptionOccurrenceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListEventInstanceExceptionOccurrenceAttachmentsComplete(ctx, id, eventinstanceexceptionoccurrenceattachment.DefaultListEventInstanceExceptionOccurrenceAttachmentsOperationOptions())
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 CreateEventInstanceExceptionOccurrenceAttachmentOperationOptions

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

func (CreateEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (CreateEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToOData

func (CreateEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToQuery

type CreateEventInstanceExceptionOccurrenceAttachmentOperationResponse

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

type CreateEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions

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

func (CreateEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateEventInstanceExceptionOccurrenceAttachmentsUploadSessionOperationResponse

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

type CreateEventInstanceExceptionOccurrenceAttachmentsUploadSessionRequest

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

type DeleteEventInstanceExceptionOccurrenceAttachmentOperationOptions

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

func (DeleteEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (DeleteEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToOData

func (DeleteEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToQuery

type DeleteEventInstanceExceptionOccurrenceAttachmentOperationResponse

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

type EventInstanceExceptionOccurrenceAttachmentClient

type EventInstanceExceptionOccurrenceAttachmentClient struct {
	Client *msgraph.Client
}

func NewEventInstanceExceptionOccurrenceAttachmentClientWithBaseURI

func NewEventInstanceExceptionOccurrenceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*EventInstanceExceptionOccurrenceAttachmentClient, error)

func (EventInstanceExceptionOccurrenceAttachmentClient) CreateEventInstanceExceptionOccurrenceAttachment

CreateEventInstanceExceptionOccurrenceAttachment - Create new navigation property to attachments for me

func (EventInstanceExceptionOccurrenceAttachmentClient) CreateEventInstanceExceptionOccurrenceAttachmentsUploadSession

CreateEventInstanceExceptionOccurrenceAttachmentsUploadSession - 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 (EventInstanceExceptionOccurrenceAttachmentClient) DeleteEventInstanceExceptionOccurrenceAttachment

DeleteEventInstanceExceptionOccurrenceAttachment - Delete navigation property attachments for me

func (EventInstanceExceptionOccurrenceAttachmentClient) GetEventInstanceExceptionOccurrenceAttachment

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

func (EventInstanceExceptionOccurrenceAttachmentClient) GetEventInstanceExceptionOccurrenceAttachmentsCount

GetEventInstanceExceptionOccurrenceAttachmentsCount - Get the number of the resource

func (EventInstanceExceptionOccurrenceAttachmentClient) ListEventInstanceExceptionOccurrenceAttachments

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

func (EventInstanceExceptionOccurrenceAttachmentClient) ListEventInstanceExceptionOccurrenceAttachmentsComplete

ListEventInstanceExceptionOccurrenceAttachmentsComplete retrieves all the results into a single object

func (EventInstanceExceptionOccurrenceAttachmentClient) ListEventInstanceExceptionOccurrenceAttachmentsCompleteMatchingPredicate

ListEventInstanceExceptionOccurrenceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetEventInstanceExceptionOccurrenceAttachmentOperationOptions

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

func (GetEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (GetEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToOData

func (GetEventInstanceExceptionOccurrenceAttachmentOperationOptions) ToQuery

type GetEventInstanceExceptionOccurrenceAttachmentOperationResponse

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

type GetEventInstanceExceptionOccurrenceAttachmentsCountOperationOptions

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

func (GetEventInstanceExceptionOccurrenceAttachmentsCountOperationOptions) ToHeaders

func (GetEventInstanceExceptionOccurrenceAttachmentsCountOperationOptions) ToOData

func (GetEventInstanceExceptionOccurrenceAttachmentsCountOperationOptions) ToQuery

type GetEventInstanceExceptionOccurrenceAttachmentsCountOperationResponse

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

type ListEventInstanceExceptionOccurrenceAttachmentsCompleteResult

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

type ListEventInstanceExceptionOccurrenceAttachmentsCustomPager

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

type ListEventInstanceExceptionOccurrenceAttachmentsOperationOptions

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

func (ListEventInstanceExceptionOccurrenceAttachmentsOperationOptions) ToOData

func (ListEventInstanceExceptionOccurrenceAttachmentsOperationOptions) ToQuery

type ListEventInstanceExceptionOccurrenceAttachmentsOperationResponse

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