calendareventinstanceattachment

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: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/stable/calendareventinstanceattachment Documentation

The calendareventinstanceattachment SDK allows for interaction with Microsoft Graph groups (API Version stable).

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/stable/calendareventinstanceattachment"

Client Initialization

client := calendareventinstanceattachment.NewCalendarEventInstanceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarEventInstanceAttachmentClient.CreateCalendarEventInstanceAttachment

ctx := context.TODO()
id := calendareventinstanceattachment.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarEventInstanceAttachmentClient.CreateCalendarEventInstanceAttachmentsUploadSession

ctx := context.TODO()
id := calendareventinstanceattachment.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

payload := calendareventinstanceattachment.CreateCalendarEventInstanceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarEventInstanceAttachmentClient.DeleteCalendarEventInstanceAttachment

ctx := context.TODO()
id := calendareventinstanceattachment.NewGroupIdCalendarEventIdInstanceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarEventInstanceAttachmentClient.GetCalendarEventInstanceAttachment

ctx := context.TODO()
id := calendareventinstanceattachment.NewGroupIdCalendarEventIdInstanceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarEventInstanceAttachmentClient.GetCalendarEventInstanceAttachmentsCount

ctx := context.TODO()
id := calendareventinstanceattachment.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarEventInstanceAttachmentClient.ListCalendarEventInstanceAttachments

ctx := context.TODO()
id := calendareventinstanceattachment.NewGroupIdCalendarEventIdInstanceID("groupId", "eventId", "eventId1")

// alternatively `client.ListCalendarEventInstanceAttachments(ctx, id, calendareventinstanceattachment.DefaultListCalendarEventInstanceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListCalendarEventInstanceAttachmentsComplete(ctx, id, calendareventinstanceattachment.DefaultListCalendarEventInstanceAttachmentsOperationOptions())
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 CalendarEventInstanceAttachmentClient

type CalendarEventInstanceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarEventInstanceAttachmentClientWithBaseURI

func NewCalendarEventInstanceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarEventInstanceAttachmentClient, error)

func (CalendarEventInstanceAttachmentClient) CreateCalendarEventInstanceAttachment

CreateCalendarEventInstanceAttachment - Create new navigation property to attachments for groups

func (CalendarEventInstanceAttachmentClient) CreateCalendarEventInstanceAttachmentsUploadSession

CreateCalendarEventInstanceAttachmentsUploadSession - 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 the specified 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 (CalendarEventInstanceAttachmentClient) DeleteCalendarEventInstanceAttachment

DeleteCalendarEventInstanceAttachment - Delete navigation property attachments for groups

func (CalendarEventInstanceAttachmentClient) GetCalendarEventInstanceAttachment

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

func (CalendarEventInstanceAttachmentClient) GetCalendarEventInstanceAttachmentsCount

GetCalendarEventInstanceAttachmentsCount - Get the number of the resource

func (CalendarEventInstanceAttachmentClient) ListCalendarEventInstanceAttachments

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

func (CalendarEventInstanceAttachmentClient) ListCalendarEventInstanceAttachmentsComplete

ListCalendarEventInstanceAttachmentsComplete retrieves all the results into a single object

func (CalendarEventInstanceAttachmentClient) ListCalendarEventInstanceAttachmentsCompleteMatchingPredicate

ListCalendarEventInstanceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarEventInstanceAttachmentOperationOptions

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

func DefaultCreateCalendarEventInstanceAttachmentOperationOptions

func DefaultCreateCalendarEventInstanceAttachmentOperationOptions() CreateCalendarEventInstanceAttachmentOperationOptions

func (CreateCalendarEventInstanceAttachmentOperationOptions) ToHeaders

func (CreateCalendarEventInstanceAttachmentOperationOptions) ToOData

func (CreateCalendarEventInstanceAttachmentOperationOptions) ToQuery

type CreateCalendarEventInstanceAttachmentOperationResponse

type CreateCalendarEventInstanceAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Attachment
}

type CreateCalendarEventInstanceAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarEventInstanceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarEventInstanceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarEventInstanceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarEventInstanceAttachmentsUploadSessionOperationResponse

type CreateCalendarEventInstanceAttachmentsUploadSessionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.UploadSession
}

type CreateCalendarEventInstanceAttachmentsUploadSessionRequest

type CreateCalendarEventInstanceAttachmentsUploadSessionRequest struct {
	AttachmentItem *stable.AttachmentItem `json:"AttachmentItem,omitempty"`
}

type DeleteCalendarEventInstanceAttachmentOperationOptions

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

func DefaultDeleteCalendarEventInstanceAttachmentOperationOptions

func DefaultDeleteCalendarEventInstanceAttachmentOperationOptions() DeleteCalendarEventInstanceAttachmentOperationOptions

func (DeleteCalendarEventInstanceAttachmentOperationOptions) ToHeaders

func (DeleteCalendarEventInstanceAttachmentOperationOptions) ToOData

func (DeleteCalendarEventInstanceAttachmentOperationOptions) ToQuery

type DeleteCalendarEventInstanceAttachmentOperationResponse

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

type GetCalendarEventInstanceAttachmentOperationOptions

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

func DefaultGetCalendarEventInstanceAttachmentOperationOptions

func DefaultGetCalendarEventInstanceAttachmentOperationOptions() GetCalendarEventInstanceAttachmentOperationOptions

func (GetCalendarEventInstanceAttachmentOperationOptions) ToHeaders

func (GetCalendarEventInstanceAttachmentOperationOptions) ToOData

func (GetCalendarEventInstanceAttachmentOperationOptions) ToQuery

type GetCalendarEventInstanceAttachmentOperationResponse

type GetCalendarEventInstanceAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Attachment
}

type GetCalendarEventInstanceAttachmentsCountOperationOptions

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

func (GetCalendarEventInstanceAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarEventInstanceAttachmentsCountOperationOptions) ToOData

func (GetCalendarEventInstanceAttachmentsCountOperationOptions) ToQuery

type GetCalendarEventInstanceAttachmentsCountOperationResponse

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

type ListCalendarEventInstanceAttachmentsCompleteResult

type ListCalendarEventInstanceAttachmentsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.Attachment
}

type ListCalendarEventInstanceAttachmentsCustomPager

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

type ListCalendarEventInstanceAttachmentsOperationOptions

type ListCalendarEventInstanceAttachmentsOperationOptions 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 DefaultListCalendarEventInstanceAttachmentsOperationOptions

func DefaultListCalendarEventInstanceAttachmentsOperationOptions() ListCalendarEventInstanceAttachmentsOperationOptions

func (ListCalendarEventInstanceAttachmentsOperationOptions) ToHeaders

func (ListCalendarEventInstanceAttachmentsOperationOptions) ToOData

func (ListCalendarEventInstanceAttachmentsOperationOptions) ToQuery

type ListCalendarEventInstanceAttachmentsOperationResponse

type ListCalendarEventInstanceAttachmentsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.Attachment
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL