eventinstanceattachment

package
v0.20240923.1151247 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/eventinstanceattachment Documentation

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

Client Initialization

client := eventinstanceattachment.NewEventInstanceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: EventInstanceAttachmentClient.CreateEventInstanceAttachment

ctx := context.TODO()
id := eventinstanceattachment.NewMeEventIdInstanceID("eventId", "eventId1")

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


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

Example Usage: EventInstanceAttachmentClient.CreateEventInstanceAttachmentsUploadSession

ctx := context.TODO()
id := eventinstanceattachment.NewMeEventIdInstanceID("eventId", "eventId1")

payload := eventinstanceattachment.CreateEventInstanceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: EventInstanceAttachmentClient.DeleteEventInstanceAttachment

ctx := context.TODO()
id := eventinstanceattachment.NewMeEventIdInstanceIdAttachmentID("eventId", "eventId1", "attachmentId")

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

Example Usage: EventInstanceAttachmentClient.GetEventInstanceAttachment

ctx := context.TODO()
id := eventinstanceattachment.NewMeEventIdInstanceIdAttachmentID("eventId", "eventId1", "attachmentId")

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

Example Usage: EventInstanceAttachmentClient.GetEventInstanceAttachmentsCount

ctx := context.TODO()
id := eventinstanceattachment.NewMeEventIdInstanceID("eventId", "eventId1")

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

Example Usage: EventInstanceAttachmentClient.ListEventInstanceAttachments

ctx := context.TODO()
id := eventinstanceattachment.NewMeEventIdInstanceID("eventId", "eventId1")

// alternatively `client.ListEventInstanceAttachments(ctx, id, eventinstanceattachment.DefaultListEventInstanceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListEventInstanceAttachmentsComplete(ctx, id, eventinstanceattachment.DefaultListEventInstanceAttachmentsOperationOptions())
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 CreateEventInstanceAttachmentOperationOptions

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

func DefaultCreateEventInstanceAttachmentOperationOptions

func DefaultCreateEventInstanceAttachmentOperationOptions() CreateEventInstanceAttachmentOperationOptions

func (CreateEventInstanceAttachmentOperationOptions) ToHeaders

func (CreateEventInstanceAttachmentOperationOptions) ToOData

func (CreateEventInstanceAttachmentOperationOptions) ToQuery

type CreateEventInstanceAttachmentOperationResponse

type CreateEventInstanceAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Attachment
}

type CreateEventInstanceAttachmentsUploadSessionOperationOptions

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

func (CreateEventInstanceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateEventInstanceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateEventInstanceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateEventInstanceAttachmentsUploadSessionOperationResponse

type CreateEventInstanceAttachmentsUploadSessionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.UploadSession
}

type CreateEventInstanceAttachmentsUploadSessionRequest

type CreateEventInstanceAttachmentsUploadSessionRequest struct {
	AttachmentItem *stable.AttachmentItem `json:"AttachmentItem,omitempty"`
}

type DeleteEventInstanceAttachmentOperationOptions

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

func DefaultDeleteEventInstanceAttachmentOperationOptions

func DefaultDeleteEventInstanceAttachmentOperationOptions() DeleteEventInstanceAttachmentOperationOptions

func (DeleteEventInstanceAttachmentOperationOptions) ToHeaders

func (DeleteEventInstanceAttachmentOperationOptions) ToOData

func (DeleteEventInstanceAttachmentOperationOptions) ToQuery

type DeleteEventInstanceAttachmentOperationResponse

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

type EventInstanceAttachmentClient

type EventInstanceAttachmentClient struct {
	Client *msgraph.Client
}

func NewEventInstanceAttachmentClientWithBaseURI

func NewEventInstanceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*EventInstanceAttachmentClient, error)

func (EventInstanceAttachmentClient) CreateEventInstanceAttachment

CreateEventInstanceAttachment - Create new navigation property to attachments for me

func (EventInstanceAttachmentClient) CreateEventInstanceAttachmentsUploadSession

CreateEventInstanceAttachmentsUploadSession - 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 the specified 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 (EventInstanceAttachmentClient) DeleteEventInstanceAttachment

DeleteEventInstanceAttachment - Delete navigation property attachments for me

func (EventInstanceAttachmentClient) GetEventInstanceAttachment

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

func (EventInstanceAttachmentClient) GetEventInstanceAttachmentsCount

GetEventInstanceAttachmentsCount - Get the number of the resource

func (EventInstanceAttachmentClient) ListEventInstanceAttachments

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

func (EventInstanceAttachmentClient) ListEventInstanceAttachmentsComplete

ListEventInstanceAttachmentsComplete retrieves all the results into a single object

func (EventInstanceAttachmentClient) ListEventInstanceAttachmentsCompleteMatchingPredicate

ListEventInstanceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetEventInstanceAttachmentOperationOptions

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

func DefaultGetEventInstanceAttachmentOperationOptions

func DefaultGetEventInstanceAttachmentOperationOptions() GetEventInstanceAttachmentOperationOptions

func (GetEventInstanceAttachmentOperationOptions) ToHeaders

func (GetEventInstanceAttachmentOperationOptions) ToOData

func (GetEventInstanceAttachmentOperationOptions) ToQuery

type GetEventInstanceAttachmentOperationResponse

type GetEventInstanceAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Attachment
}

type GetEventInstanceAttachmentsCountOperationOptions

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

func DefaultGetEventInstanceAttachmentsCountOperationOptions

func DefaultGetEventInstanceAttachmentsCountOperationOptions() GetEventInstanceAttachmentsCountOperationOptions

func (GetEventInstanceAttachmentsCountOperationOptions) ToHeaders

func (GetEventInstanceAttachmentsCountOperationOptions) ToOData

func (GetEventInstanceAttachmentsCountOperationOptions) ToQuery

type GetEventInstanceAttachmentsCountOperationResponse

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

type ListEventInstanceAttachmentsCompleteResult

type ListEventInstanceAttachmentsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.Attachment
}

type ListEventInstanceAttachmentsCustomPager

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

type ListEventInstanceAttachmentsOperationOptions

type ListEventInstanceAttachmentsOperationOptions 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 DefaultListEventInstanceAttachmentsOperationOptions

func DefaultListEventInstanceAttachmentsOperationOptions() ListEventInstanceAttachmentsOperationOptions

func (ListEventInstanceAttachmentsOperationOptions) ToHeaders

func (ListEventInstanceAttachmentsOperationOptions) ToOData

func (ListEventInstanceAttachmentsOperationOptions) ToQuery

type ListEventInstanceAttachmentsOperationResponse

type ListEventInstanceAttachmentsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.Attachment
}

Jump to

Keyboard shortcuts

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