calendareventattachment

package
v0.20241209.1115630 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendareventattachment.NewCalendarEventAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarEventAttachmentClient.CreateCalendarEventAttachment

ctx := context.TODO()
id := calendareventattachment.NewGroupIdCalendarEventID("groupId", "eventId")

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


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

Example Usage: CalendarEventAttachmentClient.CreateCalendarEventAttachmentsUploadSession

ctx := context.TODO()
id := calendareventattachment.NewGroupIdCalendarEventID("groupId", "eventId")

payload := calendareventattachment.CreateCalendarEventAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarEventAttachmentClient.DeleteCalendarEventAttachment

ctx := context.TODO()
id := calendareventattachment.NewGroupIdCalendarEventIdAttachmentID("groupId", "eventId", "attachmentId")

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

Example Usage: CalendarEventAttachmentClient.GetCalendarEventAttachment

ctx := context.TODO()
id := calendareventattachment.NewGroupIdCalendarEventIdAttachmentID("groupId", "eventId", "attachmentId")

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

Example Usage: CalendarEventAttachmentClient.GetCalendarEventAttachmentsCount

ctx := context.TODO()
id := calendareventattachment.NewGroupIdCalendarEventID("groupId", "eventId")

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

Example Usage: CalendarEventAttachmentClient.ListCalendarEventAttachments

ctx := context.TODO()
id := calendareventattachment.NewGroupIdCalendarEventID("groupId", "eventId")

// alternatively `client.ListCalendarEventAttachments(ctx, id, calendareventattachment.DefaultListCalendarEventAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListCalendarEventAttachmentsComplete(ctx, id, calendareventattachment.DefaultListCalendarEventAttachmentsOperationOptions())
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 CalendarEventAttachmentClient

type CalendarEventAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarEventAttachmentClientWithBaseURI

func NewCalendarEventAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarEventAttachmentClient, error)

func (CalendarEventAttachmentClient) CreateCalendarEventAttachment

CreateCalendarEventAttachment - Create new navigation property to attachments for groups

func (CalendarEventAttachmentClient) CreateCalendarEventAttachmentsUploadSession

CreateCalendarEventAttachmentsUploadSession - 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 (CalendarEventAttachmentClient) DeleteCalendarEventAttachment

DeleteCalendarEventAttachment - Delete navigation property attachments for groups

func (CalendarEventAttachmentClient) GetCalendarEventAttachment

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

func (CalendarEventAttachmentClient) GetCalendarEventAttachmentsCount

GetCalendarEventAttachmentsCount - Get the number of the resource

func (CalendarEventAttachmentClient) ListCalendarEventAttachments

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

func (CalendarEventAttachmentClient) ListCalendarEventAttachmentsComplete

ListCalendarEventAttachmentsComplete retrieves all the results into a single object

func (CalendarEventAttachmentClient) ListCalendarEventAttachmentsCompleteMatchingPredicate

ListCalendarEventAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarEventAttachmentOperationOptions

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

func DefaultCreateCalendarEventAttachmentOperationOptions

func DefaultCreateCalendarEventAttachmentOperationOptions() CreateCalendarEventAttachmentOperationOptions

func (CreateCalendarEventAttachmentOperationOptions) ToHeaders

func (CreateCalendarEventAttachmentOperationOptions) ToOData

func (CreateCalendarEventAttachmentOperationOptions) ToQuery

type CreateCalendarEventAttachmentOperationResponse

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

type CreateCalendarEventAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarEventAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarEventAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarEventAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarEventAttachmentsUploadSessionOperationResponse

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

type CreateCalendarEventAttachmentsUploadSessionRequest

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

type DeleteCalendarEventAttachmentOperationOptions

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

func DefaultDeleteCalendarEventAttachmentOperationOptions

func DefaultDeleteCalendarEventAttachmentOperationOptions() DeleteCalendarEventAttachmentOperationOptions

func (DeleteCalendarEventAttachmentOperationOptions) ToHeaders

func (DeleteCalendarEventAttachmentOperationOptions) ToOData

func (DeleteCalendarEventAttachmentOperationOptions) ToQuery

type DeleteCalendarEventAttachmentOperationResponse

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

type GetCalendarEventAttachmentOperationOptions

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

func DefaultGetCalendarEventAttachmentOperationOptions

func DefaultGetCalendarEventAttachmentOperationOptions() GetCalendarEventAttachmentOperationOptions

func (GetCalendarEventAttachmentOperationOptions) ToHeaders

func (GetCalendarEventAttachmentOperationOptions) ToOData

func (GetCalendarEventAttachmentOperationOptions) ToQuery

type GetCalendarEventAttachmentOperationResponse

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

type GetCalendarEventAttachmentsCountOperationOptions

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

func DefaultGetCalendarEventAttachmentsCountOperationOptions

func DefaultGetCalendarEventAttachmentsCountOperationOptions() GetCalendarEventAttachmentsCountOperationOptions

func (GetCalendarEventAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarEventAttachmentsCountOperationOptions) ToOData

func (GetCalendarEventAttachmentsCountOperationOptions) ToQuery

type GetCalendarEventAttachmentsCountOperationResponse

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

type ListCalendarEventAttachmentsCompleteResult

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

type ListCalendarEventAttachmentsCustomPager

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

type ListCalendarEventAttachmentsOperationOptions

type ListCalendarEventAttachmentsOperationOptions 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 DefaultListCalendarEventAttachmentsOperationOptions

func DefaultListCalendarEventAttachmentsOperationOptions() ListCalendarEventAttachmentsOperationOptions

func (ListCalendarEventAttachmentsOperationOptions) ToHeaders

func (ListCalendarEventAttachmentsOperationOptions) ToOData

func (ListCalendarEventAttachmentsOperationOptions) ToQuery

type ListCalendarEventAttachmentsOperationResponse

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