calendarcalendarviewinstanceattachment

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

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

Client Initialization

client := calendarcalendarviewinstanceattachment.NewCalendarCalendarViewInstanceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarCalendarViewInstanceAttachmentClient.CreateCalendarViewInstanceAttachment

ctx := context.TODO()
id := calendarcalendarviewinstanceattachment.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarCalendarViewInstanceAttachmentClient.CreateCalendarViewInstanceAttachmentsUploadSession

ctx := context.TODO()
id := calendarcalendarviewinstanceattachment.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

payload := calendarcalendarviewinstanceattachment.CreateCalendarViewInstanceAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarCalendarViewInstanceAttachmentClient.DeleteCalendarViewInstanceAttachment

ctx := context.TODO()
id := calendarcalendarviewinstanceattachment.NewGroupIdCalendarCalendarViewIdInstanceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarCalendarViewInstanceAttachmentClient.GetCalendarViewInstanceAttachment

ctx := context.TODO()
id := calendarcalendarviewinstanceattachment.NewGroupIdCalendarCalendarViewIdInstanceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarCalendarViewInstanceAttachmentClient.GetCalendarViewInstanceAttachmentsCount

ctx := context.TODO()
id := calendarcalendarviewinstanceattachment.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarCalendarViewInstanceAttachmentClient.ListCalendarViewInstanceAttachments

ctx := context.TODO()
id := calendarcalendarviewinstanceattachment.NewGroupIdCalendarCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

// alternatively `client.ListCalendarViewInstanceAttachments(ctx, id, calendarcalendarviewinstanceattachment.DefaultListCalendarViewInstanceAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListCalendarViewInstanceAttachmentsComplete(ctx, id, calendarcalendarviewinstanceattachment.DefaultListCalendarViewInstanceAttachmentsOperationOptions())
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 CalendarCalendarViewInstanceAttachmentClient

type CalendarCalendarViewInstanceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarCalendarViewInstanceAttachmentClientWithBaseURI

func NewCalendarCalendarViewInstanceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarCalendarViewInstanceAttachmentClient, error)

func (CalendarCalendarViewInstanceAttachmentClient) CreateCalendarViewInstanceAttachment

CreateCalendarViewInstanceAttachment - Create new navigation property to attachments for groups

func (CalendarCalendarViewInstanceAttachmentClient) CreateCalendarViewInstanceAttachmentsUploadSession

CreateCalendarViewInstanceAttachmentsUploadSession - 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 (CalendarCalendarViewInstanceAttachmentClient) DeleteCalendarViewInstanceAttachment

DeleteCalendarViewInstanceAttachment - Delete navigation property attachments for groups

func (CalendarCalendarViewInstanceAttachmentClient) GetCalendarViewInstanceAttachment

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

func (CalendarCalendarViewInstanceAttachmentClient) GetCalendarViewInstanceAttachmentsCount

GetCalendarViewInstanceAttachmentsCount - Get the number of the resource

func (CalendarCalendarViewInstanceAttachmentClient) ListCalendarViewInstanceAttachments

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

func (CalendarCalendarViewInstanceAttachmentClient) ListCalendarViewInstanceAttachmentsComplete

ListCalendarViewInstanceAttachmentsComplete retrieves all the results into a single object

func (CalendarCalendarViewInstanceAttachmentClient) ListCalendarViewInstanceAttachmentsCompleteMatchingPredicate

ListCalendarViewInstanceAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarViewInstanceAttachmentOperationOptions

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

func DefaultCreateCalendarViewInstanceAttachmentOperationOptions

func DefaultCreateCalendarViewInstanceAttachmentOperationOptions() CreateCalendarViewInstanceAttachmentOperationOptions

func (CreateCalendarViewInstanceAttachmentOperationOptions) ToHeaders

func (CreateCalendarViewInstanceAttachmentOperationOptions) ToOData

func (CreateCalendarViewInstanceAttachmentOperationOptions) ToQuery

type CreateCalendarViewInstanceAttachmentOperationResponse

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

type CreateCalendarViewInstanceAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarViewInstanceAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarViewInstanceAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarViewInstanceAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarViewInstanceAttachmentsUploadSessionOperationResponse

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

type CreateCalendarViewInstanceAttachmentsUploadSessionRequest

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

type DeleteCalendarViewInstanceAttachmentOperationOptions

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

func DefaultDeleteCalendarViewInstanceAttachmentOperationOptions

func DefaultDeleteCalendarViewInstanceAttachmentOperationOptions() DeleteCalendarViewInstanceAttachmentOperationOptions

func (DeleteCalendarViewInstanceAttachmentOperationOptions) ToHeaders

func (DeleteCalendarViewInstanceAttachmentOperationOptions) ToOData

func (DeleteCalendarViewInstanceAttachmentOperationOptions) ToQuery

type DeleteCalendarViewInstanceAttachmentOperationResponse

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

type GetCalendarViewInstanceAttachmentOperationOptions

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

func DefaultGetCalendarViewInstanceAttachmentOperationOptions

func DefaultGetCalendarViewInstanceAttachmentOperationOptions() GetCalendarViewInstanceAttachmentOperationOptions

func (GetCalendarViewInstanceAttachmentOperationOptions) ToHeaders

func (GetCalendarViewInstanceAttachmentOperationOptions) ToOData

func (GetCalendarViewInstanceAttachmentOperationOptions) ToQuery

type GetCalendarViewInstanceAttachmentOperationResponse

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

type GetCalendarViewInstanceAttachmentsCountOperationOptions

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

func (GetCalendarViewInstanceAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarViewInstanceAttachmentsCountOperationOptions) ToOData

func (GetCalendarViewInstanceAttachmentsCountOperationOptions) ToQuery

type GetCalendarViewInstanceAttachmentsCountOperationResponse

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

type ListCalendarViewInstanceAttachmentsCompleteResult

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

type ListCalendarViewInstanceAttachmentsCustomPager

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

type ListCalendarViewInstanceAttachmentsOperationOptions

type ListCalendarViewInstanceAttachmentsOperationOptions 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 DefaultListCalendarViewInstanceAttachmentsOperationOptions

func DefaultListCalendarViewInstanceAttachmentsOperationOptions() ListCalendarViewInstanceAttachmentsOperationOptions

func (ListCalendarViewInstanceAttachmentsOperationOptions) ToHeaders

func (ListCalendarViewInstanceAttachmentsOperationOptions) ToOData

func (ListCalendarViewInstanceAttachmentsOperationOptions) ToQuery

type ListCalendarViewInstanceAttachmentsOperationResponse

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