calendarcalendarviewexceptionoccurrenceattachment

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendarcalendarviewexceptionoccurrenceattachment.NewCalendarCalendarViewExceptionOccurrenceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarCalendarViewExceptionOccurrenceAttachmentClient.CreateCalendarViewExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarCalendarViewExceptionOccurrenceAttachmentClient.CreateCalendarViewExceptionOccurrenceAttachmentsUploadSession

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

payload := calendarcalendarviewexceptionoccurrenceattachment.CreateCalendarViewExceptionOccurrenceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarCalendarViewExceptionOccurrenceAttachmentClient.DeleteCalendarViewExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarCalendarViewExceptionOccurrenceAttachmentClient.GetCalendarViewExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarCalendarViewExceptionOccurrenceAttachmentClient.GetCalendarViewExceptionOccurrenceAttachmentsCount

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarCalendarViewExceptionOccurrenceAttachmentClient.ListCalendarViewExceptionOccurrenceAttachments

ctx := context.TODO()
id := calendarcalendarviewexceptionoccurrenceattachment.NewGroupIdCalendarCalendarViewIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

// alternatively `client.ListCalendarViewExceptionOccurrenceAttachments(ctx, id, calendarcalendarviewexceptionoccurrenceattachment.DefaultListCalendarViewExceptionOccurrenceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListCalendarViewExceptionOccurrenceAttachmentsComplete(ctx, id, calendarcalendarviewexceptionoccurrenceattachment.DefaultListCalendarViewExceptionOccurrenceAttachmentsOperationOptions())
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 CalendarCalendarViewExceptionOccurrenceAttachmentClient

type CalendarCalendarViewExceptionOccurrenceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarCalendarViewExceptionOccurrenceAttachmentClientWithBaseURI

func NewCalendarCalendarViewExceptionOccurrenceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarCalendarViewExceptionOccurrenceAttachmentClient, error)

func (CalendarCalendarViewExceptionOccurrenceAttachmentClient) CreateCalendarViewExceptionOccurrenceAttachment

CreateCalendarViewExceptionOccurrenceAttachment - Create new navigation property to attachments for groups

func (CalendarCalendarViewExceptionOccurrenceAttachmentClient) CreateCalendarViewExceptionOccurrenceAttachmentsUploadSession

CreateCalendarViewExceptionOccurrenceAttachmentsUploadSession - 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 (CalendarCalendarViewExceptionOccurrenceAttachmentClient) DeleteCalendarViewExceptionOccurrenceAttachment

DeleteCalendarViewExceptionOccurrenceAttachment - Delete navigation property attachments for groups

func (CalendarCalendarViewExceptionOccurrenceAttachmentClient) GetCalendarViewExceptionOccurrenceAttachment

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

func (CalendarCalendarViewExceptionOccurrenceAttachmentClient) GetCalendarViewExceptionOccurrenceAttachmentsCount

GetCalendarViewExceptionOccurrenceAttachmentsCount - Get the number of the resource

func (CalendarCalendarViewExceptionOccurrenceAttachmentClient) ListCalendarViewExceptionOccurrenceAttachments

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

func (CalendarCalendarViewExceptionOccurrenceAttachmentClient) ListCalendarViewExceptionOccurrenceAttachmentsComplete

ListCalendarViewExceptionOccurrenceAttachmentsComplete retrieves all the results into a single object

func (CalendarCalendarViewExceptionOccurrenceAttachmentClient) ListCalendarViewExceptionOccurrenceAttachmentsCompleteMatchingPredicate

ListCalendarViewExceptionOccurrenceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarViewExceptionOccurrenceAttachmentOperationOptions

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

func (CreateCalendarViewExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (CreateCalendarViewExceptionOccurrenceAttachmentOperationOptions) ToOData

func (CreateCalendarViewExceptionOccurrenceAttachmentOperationOptions) ToQuery

type CreateCalendarViewExceptionOccurrenceAttachmentOperationResponse

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

type CreateCalendarViewExceptionOccurrenceAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarViewExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarViewExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarViewExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarViewExceptionOccurrenceAttachmentsUploadSessionOperationResponse

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

type CreateCalendarViewExceptionOccurrenceAttachmentsUploadSessionRequest

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

type DeleteCalendarViewExceptionOccurrenceAttachmentOperationOptions

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

func (DeleteCalendarViewExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (DeleteCalendarViewExceptionOccurrenceAttachmentOperationOptions) ToOData

func (DeleteCalendarViewExceptionOccurrenceAttachmentOperationOptions) ToQuery

type DeleteCalendarViewExceptionOccurrenceAttachmentOperationResponse

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

type GetCalendarViewExceptionOccurrenceAttachmentOperationOptions

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

func (GetCalendarViewExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (GetCalendarViewExceptionOccurrenceAttachmentOperationOptions) ToOData

func (GetCalendarViewExceptionOccurrenceAttachmentOperationOptions) ToQuery

type GetCalendarViewExceptionOccurrenceAttachmentOperationResponse

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

type GetCalendarViewExceptionOccurrenceAttachmentsCountOperationOptions

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

func (GetCalendarViewExceptionOccurrenceAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarViewExceptionOccurrenceAttachmentsCountOperationOptions) ToOData

func (GetCalendarViewExceptionOccurrenceAttachmentsCountOperationOptions) ToQuery

type GetCalendarViewExceptionOccurrenceAttachmentsCountOperationResponse

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

type ListCalendarViewExceptionOccurrenceAttachmentsCompleteResult

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

type ListCalendarViewExceptionOccurrenceAttachmentsCustomPager

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

type ListCalendarViewExceptionOccurrenceAttachmentsOperationOptions

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

func (ListCalendarViewExceptionOccurrenceAttachmentsOperationOptions) ToOData

func (ListCalendarViewExceptionOccurrenceAttachmentsOperationOptions) ToQuery

type ListCalendarViewExceptionOccurrenceAttachmentsOperationResponse

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