calendarviewattachment

package
v0.20241009.1142232 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := calendarviewattachment.NewCalendarViewAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CalendarViewAttachmentClient.CreateCalendarViewAttachment

ctx := context.TODO()
id := calendarviewattachment.NewGroupIdCalendarViewID("groupId", "eventId")

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


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

Example Usage: CalendarViewAttachmentClient.CreateCalendarViewAttachmentsUploadSession

ctx := context.TODO()
id := calendarviewattachment.NewGroupIdCalendarViewID("groupId", "eventId")

payload := calendarviewattachment.CreateCalendarViewAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: CalendarViewAttachmentClient.DeleteCalendarViewAttachment

ctx := context.TODO()
id := calendarviewattachment.NewGroupIdCalendarViewIdAttachmentID("groupId", "eventId", "attachmentId")

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

Example Usage: CalendarViewAttachmentClient.GetCalendarViewAttachment

ctx := context.TODO()
id := calendarviewattachment.NewGroupIdCalendarViewIdAttachmentID("groupId", "eventId", "attachmentId")

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

Example Usage: CalendarViewAttachmentClient.GetCalendarViewAttachmentsCount

ctx := context.TODO()
id := calendarviewattachment.NewGroupIdCalendarViewID("groupId", "eventId")

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

Example Usage: CalendarViewAttachmentClient.ListCalendarViewAttachments

ctx := context.TODO()
id := calendarviewattachment.NewGroupIdCalendarViewID("groupId", "eventId")

// alternatively `client.ListCalendarViewAttachments(ctx, id, calendarviewattachment.DefaultListCalendarViewAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListCalendarViewAttachmentsComplete(ctx, id, calendarviewattachment.DefaultListCalendarViewAttachmentsOperationOptions())
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 CalendarViewAttachmentClient

type CalendarViewAttachmentClient struct {
	Client *msgraph.Client
}

func NewCalendarViewAttachmentClientWithBaseURI

func NewCalendarViewAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*CalendarViewAttachmentClient, error)

func (CalendarViewAttachmentClient) CreateCalendarViewAttachment

CreateCalendarViewAttachment - Create new navigation property to attachments for groups

func (CalendarViewAttachmentClient) CreateCalendarViewAttachmentsUploadSession

CreateCalendarViewAttachmentsUploadSession - 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 (CalendarViewAttachmentClient) DeleteCalendarViewAttachment

DeleteCalendarViewAttachment - Delete navigation property attachments for groups

func (CalendarViewAttachmentClient) GetCalendarViewAttachment

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

func (CalendarViewAttachmentClient) GetCalendarViewAttachmentsCount

GetCalendarViewAttachmentsCount - Get the number of the resource

func (CalendarViewAttachmentClient) ListCalendarViewAttachments

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

func (CalendarViewAttachmentClient) ListCalendarViewAttachmentsComplete

ListCalendarViewAttachmentsComplete retrieves all the results into a single object

func (CalendarViewAttachmentClient) ListCalendarViewAttachmentsCompleteMatchingPredicate

ListCalendarViewAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateCalendarViewAttachmentOperationOptions

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

func DefaultCreateCalendarViewAttachmentOperationOptions

func DefaultCreateCalendarViewAttachmentOperationOptions() CreateCalendarViewAttachmentOperationOptions

func (CreateCalendarViewAttachmentOperationOptions) ToHeaders

func (CreateCalendarViewAttachmentOperationOptions) ToOData

func (CreateCalendarViewAttachmentOperationOptions) ToQuery

type CreateCalendarViewAttachmentOperationResponse

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

type CreateCalendarViewAttachmentsUploadSessionOperationOptions

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

func (CreateCalendarViewAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateCalendarViewAttachmentsUploadSessionOperationOptions) ToOData

func (CreateCalendarViewAttachmentsUploadSessionOperationOptions) ToQuery

type CreateCalendarViewAttachmentsUploadSessionOperationResponse

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

type CreateCalendarViewAttachmentsUploadSessionRequest

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

type DeleteCalendarViewAttachmentOperationOptions

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

func DefaultDeleteCalendarViewAttachmentOperationOptions

func DefaultDeleteCalendarViewAttachmentOperationOptions() DeleteCalendarViewAttachmentOperationOptions

func (DeleteCalendarViewAttachmentOperationOptions) ToHeaders

func (DeleteCalendarViewAttachmentOperationOptions) ToOData

func (DeleteCalendarViewAttachmentOperationOptions) ToQuery

type DeleteCalendarViewAttachmentOperationResponse

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

type GetCalendarViewAttachmentOperationOptions

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

func DefaultGetCalendarViewAttachmentOperationOptions

func DefaultGetCalendarViewAttachmentOperationOptions() GetCalendarViewAttachmentOperationOptions

func (GetCalendarViewAttachmentOperationOptions) ToHeaders

func (GetCalendarViewAttachmentOperationOptions) ToOData

func (GetCalendarViewAttachmentOperationOptions) ToQuery

type GetCalendarViewAttachmentOperationResponse

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

type GetCalendarViewAttachmentsCountOperationOptions

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

func DefaultGetCalendarViewAttachmentsCountOperationOptions

func DefaultGetCalendarViewAttachmentsCountOperationOptions() GetCalendarViewAttachmentsCountOperationOptions

func (GetCalendarViewAttachmentsCountOperationOptions) ToHeaders

func (GetCalendarViewAttachmentsCountOperationOptions) ToOData

func (GetCalendarViewAttachmentsCountOperationOptions) ToQuery

type GetCalendarViewAttachmentsCountOperationResponse

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

type ListCalendarViewAttachmentsCompleteResult

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

type ListCalendarViewAttachmentsCustomPager

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

type ListCalendarViewAttachmentsOperationOptions

type ListCalendarViewAttachmentsOperationOptions 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 DefaultListCalendarViewAttachmentsOperationOptions

func DefaultListCalendarViewAttachmentsOperationOptions() ListCalendarViewAttachmentsOperationOptions

func (ListCalendarViewAttachmentsOperationOptions) ToHeaders

func (ListCalendarViewAttachmentsOperationOptions) ToOData

func (ListCalendarViewAttachmentsOperationOptions) ToQuery

type ListCalendarViewAttachmentsOperationResponse

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