calendarcalendarviewexceptionoccurrenceinstanceattachment

package
v0.20241205.1102105 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendarcalendarviewexceptionoccurrenceinstanceattachment.NewCalendarCalendarViewExceptionOccurrenceInstanceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient.CreateCalendarViewExceptionOccurrenceInstanceAttachment

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceinstanceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

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


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

Example Usage: CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient.CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSession

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceinstanceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

payload := calendarcalendarviewexceptionoccurrenceinstanceattachment.CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient.DeleteCalendarViewExceptionOccurrenceInstanceAttachment

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

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

Example Usage: CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient.GetCalendarViewExceptionOccurrenceInstanceAttachment

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

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

Example Usage: CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient.GetCalendarViewExceptionOccurrenceInstanceAttachmentsCount

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceinstanceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

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

Example Usage: CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient.ListCalendarViewExceptionOccurrenceInstanceAttachments

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceinstanceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

// alternatively `client.ListCalendarViewExceptionOccurrenceInstanceAttachments(ctx, id, calendarcalendarviewexceptionoccurrenceinstanceattachment.DefaultListCalendarViewExceptionOccurrenceInstanceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListCalendarViewExceptionOccurrenceInstanceAttachmentsComplete(ctx, id, calendarcalendarviewexceptionoccurrenceinstanceattachment.DefaultListCalendarViewExceptionOccurrenceInstanceAttachmentsOperationOptions())
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 CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient

type CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarCalendarViewExceptionOccurrenceInstanceAttachmentClientWithBaseURI

func NewCalendarCalendarViewExceptionOccurrenceInstanceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient, error)

func (CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient) CreateCalendarViewExceptionOccurrenceInstanceAttachment

CreateCalendarViewExceptionOccurrenceInstanceAttachment - Create new navigation property to attachments for groups

func (CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient) CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSession

CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSession - 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 (CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient) DeleteCalendarViewExceptionOccurrenceInstanceAttachment

DeleteCalendarViewExceptionOccurrenceInstanceAttachment - Delete navigation property attachments for groups

func (CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient) GetCalendarViewExceptionOccurrenceInstanceAttachment

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

func (CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient) GetCalendarViewExceptionOccurrenceInstanceAttachmentsCount

GetCalendarViewExceptionOccurrenceInstanceAttachmentsCount - Get the number of the resource

func (CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient) ListCalendarViewExceptionOccurrenceInstanceAttachments

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

func (CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient) ListCalendarViewExceptionOccurrenceInstanceAttachmentsComplete

ListCalendarViewExceptionOccurrenceInstanceAttachmentsComplete retrieves all the results into a single object

func (CalendarCalendarViewExceptionOccurrenceInstanceAttachmentClient) ListCalendarViewExceptionOccurrenceInstanceAttachmentsCompleteMatchingPredicate

ListCalendarViewExceptionOccurrenceInstanceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions

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

func (CreateCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions) ToHeaders

func (CreateCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions) ToOData

func (CreateCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions) ToQuery

type CreateCalendarViewExceptionOccurrenceInstanceAttachmentOperationResponse

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

type CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSessionOperationResponse

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

type CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSessionRequest

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

type DeleteCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions

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

func (DeleteCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions) ToHeaders

func (DeleteCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions) ToOData

func (DeleteCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions) ToQuery

type DeleteCalendarViewExceptionOccurrenceInstanceAttachmentOperationResponse

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

type GetCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions

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

func (GetCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions) ToHeaders

func (GetCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions) ToOData

func (GetCalendarViewExceptionOccurrenceInstanceAttachmentOperationOptions) ToQuery

type GetCalendarViewExceptionOccurrenceInstanceAttachmentOperationResponse

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

type GetCalendarViewExceptionOccurrenceInstanceAttachmentsCountOperationOptions

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

func (GetCalendarViewExceptionOccurrenceInstanceAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarViewExceptionOccurrenceInstanceAttachmentsCountOperationOptions) ToOData

func (GetCalendarViewExceptionOccurrenceInstanceAttachmentsCountOperationOptions) ToQuery

type GetCalendarViewExceptionOccurrenceInstanceAttachmentsCountOperationResponse

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

type ListCalendarViewExceptionOccurrenceInstanceAttachmentsCompleteResult

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

type ListCalendarViewExceptionOccurrenceInstanceAttachmentsCustomPager

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

type ListCalendarViewExceptionOccurrenceInstanceAttachmentsOperationOptions

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

func (ListCalendarViewExceptionOccurrenceInstanceAttachmentsOperationOptions) ToOData

func (ListCalendarViewExceptionOccurrenceInstanceAttachmentsOperationOptions) ToQuery

type ListCalendarViewExceptionOccurrenceInstanceAttachmentsOperationResponse

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