calendarviewexceptionoccurrenceattachment

package
v0.20241017.1093842 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendarviewexceptionoccurrenceattachment.NewCalendarViewExceptionOccurrenceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarViewExceptionOccurrenceAttachmentClient.CreateCalendarViewExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendarviewexceptionoccurrenceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarViewExceptionOccurrenceAttachmentClient.CreateCalendarViewExceptionOccurrenceAttachmentsUploadSession

ctx := context.TODO()
id := calendarviewexceptionoccurrenceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarViewExceptionOccurrenceAttachmentClient.DeleteCalendarViewExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendarviewexceptionoccurrenceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarViewExceptionOccurrenceAttachmentClient.GetCalendarViewExceptionOccurrenceAttachment

ctx := context.TODO()
id := calendarviewexceptionoccurrenceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarViewExceptionOccurrenceAttachmentClient.GetCalendarViewExceptionOccurrenceAttachmentsCount

ctx := context.TODO()
id := calendarviewexceptionoccurrenceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarViewExceptionOccurrenceAttachmentClient.ListCalendarViewExceptionOccurrenceAttachments

ctx := context.TODO()
id := calendarviewexceptionoccurrenceattachment.NewGroupIdCalendarViewIdExceptionOccurrenceID("groupId", "eventId", "eventId1")

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

type CalendarViewExceptionOccurrenceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarViewExceptionOccurrenceAttachmentClientWithBaseURI

func NewCalendarViewExceptionOccurrenceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarViewExceptionOccurrenceAttachmentClient, error)

func (CalendarViewExceptionOccurrenceAttachmentClient) CreateCalendarViewExceptionOccurrenceAttachment

CreateCalendarViewExceptionOccurrenceAttachment - Create new navigation property to attachments for groups

func (CalendarViewExceptionOccurrenceAttachmentClient) 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 (CalendarViewExceptionOccurrenceAttachmentClient) DeleteCalendarViewExceptionOccurrenceAttachment

DeleteCalendarViewExceptionOccurrenceAttachment - Delete navigation property attachments for groups

func (CalendarViewExceptionOccurrenceAttachmentClient) GetCalendarViewExceptionOccurrenceAttachment

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

func (CalendarViewExceptionOccurrenceAttachmentClient) GetCalendarViewExceptionOccurrenceAttachmentsCount

GetCalendarViewExceptionOccurrenceAttachmentsCount - Get the number of the resource

func (CalendarViewExceptionOccurrenceAttachmentClient) ListCalendarViewExceptionOccurrenceAttachments

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

func (CalendarViewExceptionOccurrenceAttachmentClient) ListCalendarViewExceptionOccurrenceAttachmentsComplete

ListCalendarViewExceptionOccurrenceAttachmentsComplete retrieves all the results into a single object

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