calendarviewinstanceexceptionoccurrenceattachment

package
v0.20241126.2320 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendarviewinstanceexceptionoccurrenceattachment.NewCalendarViewInstanceExceptionOccurrenceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarViewInstanceExceptionOccurrenceAttachmentClient.CreateCalendarViewInstanceExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendarviewinstanceexceptionoccurrenceattachment.NewGroupIdCalendarViewIdInstanceIdExceptionOccurrenceID("groupId", "eventId", "eventId1", "eventId2")

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


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

Example Usage: CalendarViewInstanceExceptionOccurrenceAttachmentClient.CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSession

ctx := context.TODO()
id := calendarviewinstanceexceptionoccurrenceattachment.NewGroupIdCalendarViewIdInstanceIdExceptionOccurrenceID("groupId", "eventId", "eventId1", "eventId2")

payload := calendarviewinstanceexceptionoccurrenceattachment.CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarViewInstanceExceptionOccurrenceAttachmentClient.DeleteCalendarViewInstanceExceptionOccurrenceAttachment

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

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

Example Usage: CalendarViewInstanceExceptionOccurrenceAttachmentClient.GetCalendarViewInstanceExceptionOccurrenceAttachment

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

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

Example Usage: CalendarViewInstanceExceptionOccurrenceAttachmentClient.GetCalendarViewInstanceExceptionOccurrenceAttachmentsCount

ctx := context.TODO()
id := calendarviewinstanceexceptionoccurrenceattachment.NewGroupIdCalendarViewIdInstanceIdExceptionOccurrenceID("groupId", "eventId", "eventId1", "eventId2")

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

Example Usage: CalendarViewInstanceExceptionOccurrenceAttachmentClient.ListCalendarViewInstanceExceptionOccurrenceAttachments

ctx := context.TODO()
id := calendarviewinstanceexceptionoccurrenceattachment.NewGroupIdCalendarViewIdInstanceIdExceptionOccurrenceID("groupId", "eventId", "eventId1", "eventId2")

// alternatively `client.ListCalendarViewInstanceExceptionOccurrenceAttachments(ctx, id, calendarviewinstanceexceptionoccurrenceattachment.DefaultListCalendarViewInstanceExceptionOccurrenceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListCalendarViewInstanceExceptionOccurrenceAttachmentsComplete(ctx, id, calendarviewinstanceexceptionoccurrenceattachment.DefaultListCalendarViewInstanceExceptionOccurrenceAttachmentsOperationOptions())
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 CalendarViewInstanceExceptionOccurrenceAttachmentClient

type CalendarViewInstanceExceptionOccurrenceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarViewInstanceExceptionOccurrenceAttachmentClientWithBaseURI

func NewCalendarViewInstanceExceptionOccurrenceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarViewInstanceExceptionOccurrenceAttachmentClient, error)

func (CalendarViewInstanceExceptionOccurrenceAttachmentClient) CreateCalendarViewInstanceExceptionOccurrenceAttachment

CreateCalendarViewInstanceExceptionOccurrenceAttachment - Create new navigation property to attachments for groups

func (CalendarViewInstanceExceptionOccurrenceAttachmentClient) CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSession

CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSession - 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 (CalendarViewInstanceExceptionOccurrenceAttachmentClient) DeleteCalendarViewInstanceExceptionOccurrenceAttachment

DeleteCalendarViewInstanceExceptionOccurrenceAttachment - Delete navigation property attachments for groups

func (CalendarViewInstanceExceptionOccurrenceAttachmentClient) GetCalendarViewInstanceExceptionOccurrenceAttachment

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

func (CalendarViewInstanceExceptionOccurrenceAttachmentClient) GetCalendarViewInstanceExceptionOccurrenceAttachmentsCount

GetCalendarViewInstanceExceptionOccurrenceAttachmentsCount - Get the number of the resource

func (CalendarViewInstanceExceptionOccurrenceAttachmentClient) ListCalendarViewInstanceExceptionOccurrenceAttachments

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

func (CalendarViewInstanceExceptionOccurrenceAttachmentClient) ListCalendarViewInstanceExceptionOccurrenceAttachmentsComplete

ListCalendarViewInstanceExceptionOccurrenceAttachmentsComplete retrieves all the results into a single object

func (CalendarViewInstanceExceptionOccurrenceAttachmentClient) ListCalendarViewInstanceExceptionOccurrenceAttachmentsCompleteMatchingPredicate

ListCalendarViewInstanceExceptionOccurrenceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions

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

func (CreateCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (CreateCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions) ToOData

func (CreateCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions) ToQuery

type CreateCalendarViewInstanceExceptionOccurrenceAttachmentOperationResponse

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

type CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSessionOperationResponse

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

type CreateCalendarViewInstanceExceptionOccurrenceAttachmentsUploadSessionRequest

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

type DeleteCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions

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

func (DeleteCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (DeleteCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions) ToOData

func (DeleteCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions) ToQuery

type DeleteCalendarViewInstanceExceptionOccurrenceAttachmentOperationResponse

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

type GetCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions

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

func (GetCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions) ToHeaders

func (GetCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions) ToOData

func (GetCalendarViewInstanceExceptionOccurrenceAttachmentOperationOptions) ToQuery

type GetCalendarViewInstanceExceptionOccurrenceAttachmentOperationResponse

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

type GetCalendarViewInstanceExceptionOccurrenceAttachmentsCountOperationOptions

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

func (GetCalendarViewInstanceExceptionOccurrenceAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarViewInstanceExceptionOccurrenceAttachmentsCountOperationOptions) ToOData

func (GetCalendarViewInstanceExceptionOccurrenceAttachmentsCountOperationOptions) ToQuery

type GetCalendarViewInstanceExceptionOccurrenceAttachmentsCountOperationResponse

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

type ListCalendarViewInstanceExceptionOccurrenceAttachmentsCompleteResult

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

type ListCalendarViewInstanceExceptionOccurrenceAttachmentsCustomPager

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

type ListCalendarViewInstanceExceptionOccurrenceAttachmentsOperationOptions

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

func (ListCalendarViewInstanceExceptionOccurrenceAttachmentsOperationOptions) ToOData

func (ListCalendarViewInstanceExceptionOccurrenceAttachmentsOperationOptions) ToQuery

type ListCalendarViewInstanceExceptionOccurrenceAttachmentsOperationResponse

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