calendarviewinstanceattachment

package
v0.20240927.1005214 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendarviewinstanceattachment.NewCalendarViewInstanceAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarViewInstanceAttachmentClient.CreateCalendarViewInstanceAttachment

ctx := context.TODO()
id := calendarviewinstanceattachment.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarViewInstanceAttachmentClient.CreateCalendarViewInstanceAttachmentsUploadSession

ctx := context.TODO()
id := calendarviewinstanceattachment.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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


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

Example Usage: CalendarViewInstanceAttachmentClient.DeleteCalendarViewInstanceAttachment

ctx := context.TODO()
id := calendarviewinstanceattachment.NewGroupIdCalendarViewIdInstanceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarViewInstanceAttachmentClient.GetCalendarViewInstanceAttachment

ctx := context.TODO()
id := calendarviewinstanceattachment.NewGroupIdCalendarViewIdInstanceIdAttachmentID("groupId", "eventId", "eventId1", "attachmentId")

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

Example Usage: CalendarViewInstanceAttachmentClient.GetCalendarViewInstanceAttachmentsCount

ctx := context.TODO()
id := calendarviewinstanceattachment.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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

Example Usage: CalendarViewInstanceAttachmentClient.ListCalendarViewInstanceAttachments

ctx := context.TODO()
id := calendarviewinstanceattachment.NewGroupIdCalendarViewIdInstanceID("groupId", "eventId", "eventId1")

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

type CalendarViewInstanceAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarViewInstanceAttachmentClientWithBaseURI

func NewCalendarViewInstanceAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarViewInstanceAttachmentClient, error)

func (CalendarViewInstanceAttachmentClient) CreateCalendarViewInstanceAttachment

CreateCalendarViewInstanceAttachment - Create new navigation property to attachments for groups

func (CalendarViewInstanceAttachmentClient) 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 (CalendarViewInstanceAttachmentClient) DeleteCalendarViewInstanceAttachment

DeleteCalendarViewInstanceAttachment - Delete navigation property attachments for groups

func (CalendarViewInstanceAttachmentClient) GetCalendarViewInstanceAttachment

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

func (CalendarViewInstanceAttachmentClient) GetCalendarViewInstanceAttachmentsCount

GetCalendarViewInstanceAttachmentsCount - Get the number of the resource

func (CalendarViewInstanceAttachmentClient) ListCalendarViewInstanceAttachments

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

func (CalendarViewInstanceAttachmentClient) ListCalendarViewInstanceAttachmentsComplete

ListCalendarViewInstanceAttachmentsComplete retrieves all the results into a single object

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