eventexceptionoccurrenceinstanceattachment

package
v0.20241021.1074254 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/eventexceptionoccurrenceinstanceattachment Documentation

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

Client Initialization

client := eventexceptionoccurrenceinstanceattachment.NewEventExceptionOccurrenceInstanceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: EventExceptionOccurrenceInstanceAttachmentClient.CreateEventExceptionOccurrenceInstanceAttachment

ctx := context.TODO()
id := eventexceptionoccurrenceinstanceattachment.NewUserIdEventIdExceptionOccurrenceIdInstanceID("userId", "eventId", "eventId1", "eventId2")

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


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

Example Usage: EventExceptionOccurrenceInstanceAttachmentClient.CreateEventExceptionOccurrenceInstanceAttachmentsUploadSession

ctx := context.TODO()
id := eventexceptionoccurrenceinstanceattachment.NewUserIdEventIdExceptionOccurrenceIdInstanceID("userId", "eventId", "eventId1", "eventId2")

payload := eventexceptionoccurrenceinstanceattachment.CreateEventExceptionOccurrenceInstanceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: EventExceptionOccurrenceInstanceAttachmentClient.DeleteEventExceptionOccurrenceInstanceAttachment

ctx := context.TODO()
id := eventexceptionoccurrenceinstanceattachment.NewUserIdEventIdExceptionOccurrenceIdInstanceIdAttachmentID("userId", "eventId", "eventId1", "eventId2", "attachmentId")

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

Example Usage: EventExceptionOccurrenceInstanceAttachmentClient.GetEventExceptionOccurrenceInstanceAttachment

ctx := context.TODO()
id := eventexceptionoccurrenceinstanceattachment.NewUserIdEventIdExceptionOccurrenceIdInstanceIdAttachmentID("userId", "eventId", "eventId1", "eventId2", "attachmentId")

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

Example Usage: EventExceptionOccurrenceInstanceAttachmentClient.GetEventExceptionOccurrenceInstanceAttachmentsCount

ctx := context.TODO()
id := eventexceptionoccurrenceinstanceattachment.NewUserIdEventIdExceptionOccurrenceIdInstanceID("userId", "eventId", "eventId1", "eventId2")

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

Example Usage: EventExceptionOccurrenceInstanceAttachmentClient.ListEventExceptionOccurrenceInstanceAttachments

ctx := context.TODO()
id := eventexceptionoccurrenceinstanceattachment.NewUserIdEventIdExceptionOccurrenceIdInstanceID("userId", "eventId", "eventId1", "eventId2")

// alternatively `client.ListEventExceptionOccurrenceInstanceAttachments(ctx, id, eventexceptionoccurrenceinstanceattachment.DefaultListEventExceptionOccurrenceInstanceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListEventExceptionOccurrenceInstanceAttachmentsComplete(ctx, id, eventexceptionoccurrenceinstanceattachment.DefaultListEventExceptionOccurrenceInstanceAttachmentsOperationOptions())
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 CreateEventExceptionOccurrenceInstanceAttachmentOperationOptions

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

func (CreateEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToHeaders

func (CreateEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToOData

func (CreateEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToQuery

type CreateEventExceptionOccurrenceInstanceAttachmentOperationResponse

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

type CreateEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions

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

func (CreateEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationResponse

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

type CreateEventExceptionOccurrenceInstanceAttachmentsUploadSessionRequest

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

type DeleteEventExceptionOccurrenceInstanceAttachmentOperationOptions

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

func (DeleteEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToHeaders

func (DeleteEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToOData

func (DeleteEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToQuery

type DeleteEventExceptionOccurrenceInstanceAttachmentOperationResponse

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

type EventExceptionOccurrenceInstanceAttachmentClient

type EventExceptionOccurrenceInstanceAttachmentClient struct {
	Client *msgraph.Client
}

func NewEventExceptionOccurrenceInstanceAttachmentClientWithBaseURI

func NewEventExceptionOccurrenceInstanceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*EventExceptionOccurrenceInstanceAttachmentClient, error)

func (EventExceptionOccurrenceInstanceAttachmentClient) CreateEventExceptionOccurrenceInstanceAttachment

CreateEventExceptionOccurrenceInstanceAttachment - Create new navigation property to attachments for users

func (EventExceptionOccurrenceInstanceAttachmentClient) CreateEventExceptionOccurrenceInstanceAttachmentsUploadSession

CreateEventExceptionOccurrenceInstanceAttachmentsUploadSession - 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 (EventExceptionOccurrenceInstanceAttachmentClient) DeleteEventExceptionOccurrenceInstanceAttachment

DeleteEventExceptionOccurrenceInstanceAttachment - Delete navigation property attachments for users

func (EventExceptionOccurrenceInstanceAttachmentClient) GetEventExceptionOccurrenceInstanceAttachment

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

func (EventExceptionOccurrenceInstanceAttachmentClient) GetEventExceptionOccurrenceInstanceAttachmentsCount

GetEventExceptionOccurrenceInstanceAttachmentsCount - Get the number of the resource

func (EventExceptionOccurrenceInstanceAttachmentClient) ListEventExceptionOccurrenceInstanceAttachments

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

func (EventExceptionOccurrenceInstanceAttachmentClient) ListEventExceptionOccurrenceInstanceAttachmentsComplete

ListEventExceptionOccurrenceInstanceAttachmentsComplete retrieves all the results into a single object

func (EventExceptionOccurrenceInstanceAttachmentClient) ListEventExceptionOccurrenceInstanceAttachmentsCompleteMatchingPredicate

ListEventExceptionOccurrenceInstanceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetEventExceptionOccurrenceInstanceAttachmentOperationOptions

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

func (GetEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToHeaders

func (GetEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToOData

func (GetEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToQuery

type GetEventExceptionOccurrenceInstanceAttachmentOperationResponse

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

type GetEventExceptionOccurrenceInstanceAttachmentsCountOperationOptions

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

func (GetEventExceptionOccurrenceInstanceAttachmentsCountOperationOptions) ToHeaders

func (GetEventExceptionOccurrenceInstanceAttachmentsCountOperationOptions) ToOData

func (GetEventExceptionOccurrenceInstanceAttachmentsCountOperationOptions) ToQuery

type GetEventExceptionOccurrenceInstanceAttachmentsCountOperationResponse

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

type ListEventExceptionOccurrenceInstanceAttachmentsCompleteResult

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

type ListEventExceptionOccurrenceInstanceAttachmentsCustomPager

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

type ListEventExceptionOccurrenceInstanceAttachmentsOperationOptions

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

func (ListEventExceptionOccurrenceInstanceAttachmentsOperationOptions) ToOData

func (ListEventExceptionOccurrenceInstanceAttachmentsOperationOptions) ToQuery

type ListEventExceptionOccurrenceInstanceAttachmentsOperationResponse

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