eventexceptionoccurrenceattachment

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/eventexceptionoccurrenceattachment Documentation

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

Client Initialization

client := eventexceptionoccurrenceattachment.NewEventExceptionOccurrenceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: EventExceptionOccurrenceAttachmentClient.CreateEventExceptionOccurrenceAttachment

ctx := context.TODO()
id := eventexceptionoccurrenceattachment.NewGroupIdEventIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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


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

Example Usage: EventExceptionOccurrenceAttachmentClient.CreateEventExceptionOccurrenceAttachmentsUploadSession

ctx := context.TODO()
id := eventexceptionoccurrenceattachment.NewGroupIdEventIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

payload := eventexceptionoccurrenceattachment.CreateEventExceptionOccurrenceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: EventExceptionOccurrenceAttachmentClient.DeleteEventExceptionOccurrenceAttachment

ctx := context.TODO()
id := eventexceptionoccurrenceattachment.NewGroupIdEventIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: EventExceptionOccurrenceAttachmentClient.GetEventExceptionOccurrenceAttachment

ctx := context.TODO()
id := eventexceptionoccurrenceattachment.NewGroupIdEventIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: EventExceptionOccurrenceAttachmentClient.GetEventExceptionOccurrenceAttachmentsCount

ctx := context.TODO()
id := eventexceptionoccurrenceattachment.NewGroupIdEventIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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

Example Usage: EventExceptionOccurrenceAttachmentClient.ListEventExceptionOccurrenceAttachments

ctx := context.TODO()
id := eventexceptionoccurrenceattachment.NewGroupIdEventIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

// alternatively `client.ListEventExceptionOccurrenceAttachments(ctx, id, eventexceptionoccurrenceattachment.DefaultListEventExceptionOccurrenceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListEventExceptionOccurrenceAttachmentsComplete(ctx, id, eventexceptionoccurrenceattachment.DefaultListEventExceptionOccurrenceAttachmentsOperationOptions())
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 CreateEventExceptionOccurrenceAttachmentOperationOptions

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

func (CreateEventExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (CreateEventExceptionOccurrenceAttachmentOperationOptions) ToOData

func (CreateEventExceptionOccurrenceAttachmentOperationOptions) ToQuery

type CreateEventExceptionOccurrenceAttachmentOperationResponse

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

type CreateEventExceptionOccurrenceAttachmentsUploadSessionOperationOptions

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

func (CreateEventExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateEventExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateEventExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateEventExceptionOccurrenceAttachmentsUploadSessionOperationResponse

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

type CreateEventExceptionOccurrenceAttachmentsUploadSessionRequest

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

type DeleteEventExceptionOccurrenceAttachmentOperationOptions

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

func (DeleteEventExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (DeleteEventExceptionOccurrenceAttachmentOperationOptions) ToOData

func (DeleteEventExceptionOccurrenceAttachmentOperationOptions) ToQuery

type DeleteEventExceptionOccurrenceAttachmentOperationResponse

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

type EventExceptionOccurrenceAttachmentClient

type EventExceptionOccurrenceAttachmentClient struct {
	Client *msgraph.Client
}

func NewEventExceptionOccurrenceAttachmentClientWithBaseURI

func NewEventExceptionOccurrenceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*EventExceptionOccurrenceAttachmentClient, error)

func (EventExceptionOccurrenceAttachmentClient) CreateEventExceptionOccurrenceAttachment

CreateEventExceptionOccurrenceAttachment - Create new navigation property to attachments for groups

func (EventExceptionOccurrenceAttachmentClient) CreateEventExceptionOccurrenceAttachmentsUploadSession

CreateEventExceptionOccurrenceAttachmentsUploadSession - 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 (EventExceptionOccurrenceAttachmentClient) DeleteEventExceptionOccurrenceAttachment

DeleteEventExceptionOccurrenceAttachment - Delete navigation property attachments for groups

func (EventExceptionOccurrenceAttachmentClient) GetEventExceptionOccurrenceAttachment

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

func (EventExceptionOccurrenceAttachmentClient) GetEventExceptionOccurrenceAttachmentsCount

GetEventExceptionOccurrenceAttachmentsCount - Get the number of the resource

func (EventExceptionOccurrenceAttachmentClient) ListEventExceptionOccurrenceAttachments

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

func (EventExceptionOccurrenceAttachmentClient) ListEventExceptionOccurrenceAttachmentsComplete

ListEventExceptionOccurrenceAttachmentsComplete retrieves all the results into a single object

func (EventExceptionOccurrenceAttachmentClient) ListEventExceptionOccurrenceAttachmentsCompleteMatchingPredicate

ListEventExceptionOccurrenceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetEventExceptionOccurrenceAttachmentOperationOptions

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

func DefaultGetEventExceptionOccurrenceAttachmentOperationOptions

func DefaultGetEventExceptionOccurrenceAttachmentOperationOptions() GetEventExceptionOccurrenceAttachmentOperationOptions

func (GetEventExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (GetEventExceptionOccurrenceAttachmentOperationOptions) ToOData

func (GetEventExceptionOccurrenceAttachmentOperationOptions) ToQuery

type GetEventExceptionOccurrenceAttachmentOperationResponse

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

type GetEventExceptionOccurrenceAttachmentsCountOperationOptions

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

func (GetEventExceptionOccurrenceAttachmentsCountOperationOptions) ToHeaders

func (GetEventExceptionOccurrenceAttachmentsCountOperationOptions) ToOData

func (GetEventExceptionOccurrenceAttachmentsCountOperationOptions) ToQuery

type GetEventExceptionOccurrenceAttachmentsCountOperationResponse

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

type ListEventExceptionOccurrenceAttachmentsCompleteResult

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

type ListEventExceptionOccurrenceAttachmentsCustomPager

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

type ListEventExceptionOccurrenceAttachmentsOperationOptions

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

func (ListEventExceptionOccurrenceAttachmentsOperationOptions) ToOData

func (ListEventExceptionOccurrenceAttachmentsOperationOptions) ToQuery

type ListEventExceptionOccurrenceAttachmentsOperationResponse

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