calendareventexceptionoccurrenceinstanceattachment

package
v0.20241029.1112340 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/calendareventexceptionoccurrenceinstanceattachment Documentation

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

Client Initialization

client := calendareventexceptionoccurrenceinstanceattachment.NewCalendarEventExceptionOccurrenceInstanceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarEventExceptionOccurrenceInstanceAttachmentClient.CreateCalendarEventExceptionOccurrenceInstanceAttachment

ctx := context.TODO()
id := calendareventexceptionoccurrenceinstanceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

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


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

Example Usage: CalendarEventExceptionOccurrenceInstanceAttachmentClient.CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSession

ctx := context.TODO()
id := calendareventexceptionoccurrenceinstanceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

payload := calendareventexceptionoccurrenceinstanceattachment.CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarEventExceptionOccurrenceInstanceAttachmentClient.DeleteCalendarEventExceptionOccurrenceInstanceAttachment

ctx := context.TODO()
id := calendareventexceptionoccurrenceinstanceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceIdInstanceIdAttachmentID("groupId", "eventId", "eventId1", "eventId2", "attachmentId")

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

Example Usage: CalendarEventExceptionOccurrenceInstanceAttachmentClient.GetCalendarEventExceptionOccurrenceInstanceAttachment

ctx := context.TODO()
id := calendareventexceptionoccurrenceinstanceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceIdInstanceIdAttachmentID("groupId", "eventId", "eventId1", "eventId2", "attachmentId")

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

Example Usage: CalendarEventExceptionOccurrenceInstanceAttachmentClient.GetCalendarEventExceptionOccurrenceInstanceAttachmentsCount

ctx := context.TODO()
id := calendareventexceptionoccurrenceinstanceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

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

Example Usage: CalendarEventExceptionOccurrenceInstanceAttachmentClient.ListCalendarEventExceptionOccurrenceInstanceAttachments

ctx := context.TODO()
id := calendareventexceptionoccurrenceinstanceattachment.NewGroupIdCalendarEventIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

// alternatively `client.ListCalendarEventExceptionOccurrenceInstanceAttachments(ctx, id, calendareventexceptionoccurrenceinstanceattachment.DefaultListCalendarEventExceptionOccurrenceInstanceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListCalendarEventExceptionOccurrenceInstanceAttachmentsComplete(ctx, id, calendareventexceptionoccurrenceinstanceattachment.DefaultListCalendarEventExceptionOccurrenceInstanceAttachmentsOperationOptions())
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 CalendarEventExceptionOccurrenceInstanceAttachmentClient

type CalendarEventExceptionOccurrenceInstanceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarEventExceptionOccurrenceInstanceAttachmentClientWithBaseURI

func NewCalendarEventExceptionOccurrenceInstanceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarEventExceptionOccurrenceInstanceAttachmentClient, error)

func (CalendarEventExceptionOccurrenceInstanceAttachmentClient) CreateCalendarEventExceptionOccurrenceInstanceAttachment

CreateCalendarEventExceptionOccurrenceInstanceAttachment - Create new navigation property to attachments for groups

func (CalendarEventExceptionOccurrenceInstanceAttachmentClient) CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSession

CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSession - 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 (CalendarEventExceptionOccurrenceInstanceAttachmentClient) DeleteCalendarEventExceptionOccurrenceInstanceAttachment

DeleteCalendarEventExceptionOccurrenceInstanceAttachment - Delete navigation property attachments for groups

func (CalendarEventExceptionOccurrenceInstanceAttachmentClient) GetCalendarEventExceptionOccurrenceInstanceAttachment

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

func (CalendarEventExceptionOccurrenceInstanceAttachmentClient) GetCalendarEventExceptionOccurrenceInstanceAttachmentsCount

GetCalendarEventExceptionOccurrenceInstanceAttachmentsCount - Get the number of the resource

func (CalendarEventExceptionOccurrenceInstanceAttachmentClient) ListCalendarEventExceptionOccurrenceInstanceAttachments

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

func (CalendarEventExceptionOccurrenceInstanceAttachmentClient) ListCalendarEventExceptionOccurrenceInstanceAttachmentsComplete

ListCalendarEventExceptionOccurrenceInstanceAttachmentsComplete retrieves all the results into a single object

func (CalendarEventExceptionOccurrenceInstanceAttachmentClient) ListCalendarEventExceptionOccurrenceInstanceAttachmentsCompleteMatchingPredicate

ListCalendarEventExceptionOccurrenceInstanceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions

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

func (CreateCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToHeaders

func (CreateCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToOData

func (CreateCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToQuery

type CreateCalendarEventExceptionOccurrenceInstanceAttachmentOperationResponse

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

type CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSessionOperationResponse

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

type CreateCalendarEventExceptionOccurrenceInstanceAttachmentsUploadSessionRequest

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

type DeleteCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions

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

func (DeleteCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToHeaders

func (DeleteCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToOData

func (DeleteCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToQuery

type DeleteCalendarEventExceptionOccurrenceInstanceAttachmentOperationResponse

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

type GetCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions

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

func (GetCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToHeaders

func (GetCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToOData

func (GetCalendarEventExceptionOccurrenceInstanceAttachmentOperationOptions) ToQuery

type GetCalendarEventExceptionOccurrenceInstanceAttachmentOperationResponse

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

type GetCalendarEventExceptionOccurrenceInstanceAttachmentsCountOperationOptions

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

func (GetCalendarEventExceptionOccurrenceInstanceAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarEventExceptionOccurrenceInstanceAttachmentsCountOperationOptions) ToOData

func (GetCalendarEventExceptionOccurrenceInstanceAttachmentsCountOperationOptions) ToQuery

type GetCalendarEventExceptionOccurrenceInstanceAttachmentsCountOperationResponse

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

type ListCalendarEventExceptionOccurrenceInstanceAttachmentsCompleteResult

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

type ListCalendarEventExceptionOccurrenceInstanceAttachmentsCustomPager

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

type ListCalendarEventExceptionOccurrenceInstanceAttachmentsOperationOptions

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

func (ListCalendarEventExceptionOccurrenceInstanceAttachmentsOperationOptions) ToOData

func (ListCalendarEventExceptionOccurrenceInstanceAttachmentsOperationOptions) ToQuery

type ListCalendarEventExceptionOccurrenceInstanceAttachmentsOperationResponse

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