calendarviewexceptionoccurrenceinstanceattachment

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

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

Client Initialization

client := calendarviewexceptionoccurrenceinstanceattachment.NewCalendarViewExceptionOccurrenceInstanceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarViewExceptionOccurrenceInstanceAttachmentClient.CreateCalendarViewExceptionOccurrenceInstanceAttachment

ctx := context.TODO()
id := calendarviewexceptionoccurrenceinstanceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

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


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

Example Usage: CalendarViewExceptionOccurrenceInstanceAttachmentClient.CreateCalendarViewExceptionOccurrenceInstanceAttachmentsUploadSession

ctx := context.TODO()
id := calendarviewexceptionoccurrenceinstanceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

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


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

Example Usage: CalendarViewExceptionOccurrenceInstanceAttachmentClient.DeleteCalendarViewExceptionOccurrenceInstanceAttachment

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

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

Example Usage: CalendarViewExceptionOccurrenceInstanceAttachmentClient.GetCalendarViewExceptionOccurrenceInstanceAttachment

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

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

Example Usage: CalendarViewExceptionOccurrenceInstanceAttachmentClient.GetCalendarViewExceptionOccurrenceInstanceAttachmentsCount

ctx := context.TODO()
id := calendarviewexceptionoccurrenceinstanceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

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

Example Usage: CalendarViewExceptionOccurrenceInstanceAttachmentClient.ListCalendarViewExceptionOccurrenceInstanceAttachments

ctx := context.TODO()
id := calendarviewexceptionoccurrenceinstanceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceIdInstanceID("groupId", "eventId", "eventId1", "eventId2")

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

type CalendarViewExceptionOccurrenceInstanceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarViewExceptionOccurrenceInstanceAttachmentClientWithBaseURI

func NewCalendarViewExceptionOccurrenceInstanceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarViewExceptionOccurrenceInstanceAttachmentClient, error)

func (CalendarViewExceptionOccurrenceInstanceAttachmentClient) CreateCalendarViewExceptionOccurrenceInstanceAttachment

CreateCalendarViewExceptionOccurrenceInstanceAttachment - Create new navigation property to attachments for groups

func (CalendarViewExceptionOccurrenceInstanceAttachmentClient) 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 (CalendarViewExceptionOccurrenceInstanceAttachmentClient) DeleteCalendarViewExceptionOccurrenceInstanceAttachment

DeleteCalendarViewExceptionOccurrenceInstanceAttachment - Delete navigation property attachments for groups

func (CalendarViewExceptionOccurrenceInstanceAttachmentClient) GetCalendarViewExceptionOccurrenceInstanceAttachment

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

func (CalendarViewExceptionOccurrenceInstanceAttachmentClient) GetCalendarViewExceptionOccurrenceInstanceAttachmentsCount

GetCalendarViewExceptionOccurrenceInstanceAttachmentsCount - Get the number of the resource

func (CalendarViewExceptionOccurrenceInstanceAttachmentClient) ListCalendarViewExceptionOccurrenceInstanceAttachments

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

func (CalendarViewExceptionOccurrenceInstanceAttachmentClient) ListCalendarViewExceptionOccurrenceInstanceAttachmentsComplete

ListCalendarViewExceptionOccurrenceInstanceAttachmentsComplete retrieves all the results into a single object

func (CalendarViewExceptionOccurrenceInstanceAttachmentClient) 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