mailfolderchildfolder

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/me/beta/mailfolderchildfolder Documentation

The mailfolderchildfolder SDK allows for interaction with Microsoft Graph me (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/me/beta/mailfolderchildfolder"

Client Initialization

client := mailfolderchildfolder.NewMailFolderChildFolderClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: MailFolderChildFolderClient.CopyMailFolderChildFolder

ctx := context.TODO()
id := mailfolderchildfolder.NewMeMailFolderIdChildFolderID("mailFolderId", "mailFolderId1")

payload := mailfolderchildfolder.CopyMailFolderChildFolderRequest{
	// ...
}


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

Example Usage: MailFolderChildFolderClient.CreateMailFolderChildFolder

ctx := context.TODO()
id := mailfolderchildfolder.NewMeMailFolderID("mailFolderId")

payload := mailfolderchildfolder.MailFolder{
	// ...
}


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

Example Usage: MailFolderChildFolderClient.DeleteMailFolderChildFolder

ctx := context.TODO()
id := mailfolderchildfolder.NewMeMailFolderIdChildFolderID("mailFolderId", "mailFolderId1")

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

Example Usage: MailFolderChildFolderClient.GetMailFolderChildFolder

ctx := context.TODO()
id := mailfolderchildfolder.NewMeMailFolderIdChildFolderID("mailFolderId", "mailFolderId1")

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

Example Usage: MailFolderChildFolderClient.GetMailFolderChildFoldersCount

ctx := context.TODO()
id := mailfolderchildfolder.NewMeMailFolderID("mailFolderId")

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

Example Usage: MailFolderChildFolderClient.ListMailFolderChildFolders

ctx := context.TODO()
id := mailfolderchildfolder.NewMeMailFolderID("mailFolderId")

// alternatively `client.ListMailFolderChildFolders(ctx, id, mailfolderchildfolder.DefaultListMailFolderChildFoldersOperationOptions())` can be used to do batched pagination
items, err := client.ListMailFolderChildFoldersComplete(ctx, id, mailfolderchildfolder.DefaultListMailFolderChildFoldersOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MailFolderChildFolderClient.MoveMailFolderChildFolder

ctx := context.TODO()
id := mailfolderchildfolder.NewMeMailFolderIdChildFolderID("mailFolderId", "mailFolderId1")

payload := mailfolderchildfolder.MoveMailFolderChildFolderRequest{
	// ...
}


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

Example Usage: MailFolderChildFolderClient.UpdateMailFolderChildFolder

ctx := context.TODO()
id := mailfolderchildfolder.NewMeMailFolderIdChildFolderID("mailFolderId", "mailFolderId1")

payload := mailfolderchildfolder.MailFolder{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyMailFolderChildFolderOperationOptions

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

func DefaultCopyMailFolderChildFolderOperationOptions

func DefaultCopyMailFolderChildFolderOperationOptions() CopyMailFolderChildFolderOperationOptions

func (CopyMailFolderChildFolderOperationOptions) ToHeaders

func (CopyMailFolderChildFolderOperationOptions) ToOData

func (CopyMailFolderChildFolderOperationOptions) ToQuery

type CopyMailFolderChildFolderOperationResponse

type CopyMailFolderChildFolderOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.MailFolder
}

type CopyMailFolderChildFolderRequest

type CopyMailFolderChildFolderRequest struct {
	DestinationId *string `json:"DestinationId,omitempty"`
}

type CreateMailFolderChildFolderOperationOptions

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

func DefaultCreateMailFolderChildFolderOperationOptions

func DefaultCreateMailFolderChildFolderOperationOptions() CreateMailFolderChildFolderOperationOptions

func (CreateMailFolderChildFolderOperationOptions) ToHeaders

func (CreateMailFolderChildFolderOperationOptions) ToOData

func (CreateMailFolderChildFolderOperationOptions) ToQuery

type CreateMailFolderChildFolderOperationResponse

type CreateMailFolderChildFolderOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.MailFolder
}

type DeleteMailFolderChildFolderOperationOptions

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

func DefaultDeleteMailFolderChildFolderOperationOptions

func DefaultDeleteMailFolderChildFolderOperationOptions() DeleteMailFolderChildFolderOperationOptions

func (DeleteMailFolderChildFolderOperationOptions) ToHeaders

func (DeleteMailFolderChildFolderOperationOptions) ToOData

func (DeleteMailFolderChildFolderOperationOptions) ToQuery

type DeleteMailFolderChildFolderOperationResponse

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

type GetMailFolderChildFolderOperationOptions

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

func DefaultGetMailFolderChildFolderOperationOptions

func DefaultGetMailFolderChildFolderOperationOptions() GetMailFolderChildFolderOperationOptions

func (GetMailFolderChildFolderOperationOptions) ToHeaders

func (GetMailFolderChildFolderOperationOptions) ToOData

func (GetMailFolderChildFolderOperationOptions) ToQuery

type GetMailFolderChildFolderOperationResponse

type GetMailFolderChildFolderOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.MailFolder
}

type GetMailFolderChildFoldersCountOperationOptions

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

func DefaultGetMailFolderChildFoldersCountOperationOptions

func DefaultGetMailFolderChildFoldersCountOperationOptions() GetMailFolderChildFoldersCountOperationOptions

func (GetMailFolderChildFoldersCountOperationOptions) ToHeaders

func (GetMailFolderChildFoldersCountOperationOptions) ToOData

func (GetMailFolderChildFoldersCountOperationOptions) ToQuery

type GetMailFolderChildFoldersCountOperationResponse

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

type ListMailFolderChildFoldersCompleteResult

type ListMailFolderChildFoldersCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.MailFolder
}

type ListMailFolderChildFoldersCustomPager

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

type ListMailFolderChildFoldersOperationOptions

type ListMailFolderChildFoldersOperationOptions struct {
	Count                *bool
	Expand               *odata.Expand
	Filter               *string
	IncludeHiddenFolders *string
	Metadata             *odata.Metadata
	OrderBy              *odata.OrderBy
	RetryFunc            client.RequestRetryFunc
	Search               *string
	Select               *[]string
	Skip                 *int64
	Top                  *int64
}

func DefaultListMailFolderChildFoldersOperationOptions

func DefaultListMailFolderChildFoldersOperationOptions() ListMailFolderChildFoldersOperationOptions

func (ListMailFolderChildFoldersOperationOptions) ToHeaders

func (ListMailFolderChildFoldersOperationOptions) ToOData

func (ListMailFolderChildFoldersOperationOptions) ToQuery

type ListMailFolderChildFoldersOperationResponse

type ListMailFolderChildFoldersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.MailFolder
}

type MailFolderChildFolderClient

type MailFolderChildFolderClient struct {
	Client *msgraph.Client
}

func NewMailFolderChildFolderClientWithBaseURI

func NewMailFolderChildFolderClientWithBaseURI(sdkApi sdkEnv.Api) (*MailFolderChildFolderClient, error)

func (MailFolderChildFolderClient) CopyMailFolderChildFolder

CopyMailFolderChildFolder - Invoke action copy. Copy a mail folder and its contents to another mail folder.

func (MailFolderChildFolderClient) CreateMailFolderChildFolder

CreateMailFolderChildFolder - Create mailSearchFolder. Create a new mailSearchFolder in the specified user's mailbox.

func (MailFolderChildFolderClient) DeleteMailFolderChildFolder

DeleteMailFolderChildFolder - Delete navigation property childFolders for me

func (MailFolderChildFolderClient) GetMailFolderChildFolder

GetMailFolderChildFolder - Get childFolders from me. The collection of child folders in the mailFolder.

func (MailFolderChildFolderClient) GetMailFolderChildFoldersCount

GetMailFolderChildFoldersCount - Get the number of the resource

func (MailFolderChildFolderClient) ListMailFolderChildFolders

ListMailFolderChildFolders - List childFolders. Get the folder collection under the specified folder. You can use the .../me/mailFolders shortcut to get the top-level folder collection and navigate to another folder. By default, this operation does not return hidden folders. Use a query parameter includeHiddenFolders to include them in the response.

func (MailFolderChildFolderClient) ListMailFolderChildFoldersComplete

ListMailFolderChildFoldersComplete retrieves all the results into a single object

func (MailFolderChildFolderClient) ListMailFolderChildFoldersCompleteMatchingPredicate

ListMailFolderChildFoldersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MailFolderChildFolderClient) MoveMailFolderChildFolder

MoveMailFolderChildFolder - Invoke action move. Move a mail folder and its contents to another mail folder.

func (MailFolderChildFolderClient) UpdateMailFolderChildFolder

UpdateMailFolderChildFolder - Update the navigation property childFolders in me

type MailFolderOperationPredicate

type MailFolderOperationPredicate struct {
}

func (MailFolderOperationPredicate) Matches

type MoveMailFolderChildFolderOperationOptions

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

func DefaultMoveMailFolderChildFolderOperationOptions

func DefaultMoveMailFolderChildFolderOperationOptions() MoveMailFolderChildFolderOperationOptions

func (MoveMailFolderChildFolderOperationOptions) ToHeaders

func (MoveMailFolderChildFolderOperationOptions) ToOData

func (MoveMailFolderChildFolderOperationOptions) ToQuery

type MoveMailFolderChildFolderOperationResponse

type MoveMailFolderChildFolderOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.MailFolder
}

type MoveMailFolderChildFolderRequest

type MoveMailFolderChildFolderRequest struct {
	DestinationId *string `json:"DestinationId,omitempty"`
}

type UpdateMailFolderChildFolderOperationOptions

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

func DefaultUpdateMailFolderChildFolderOperationOptions

func DefaultUpdateMailFolderChildFolderOperationOptions() UpdateMailFolderChildFolderOperationOptions

func (UpdateMailFolderChildFolderOperationOptions) ToHeaders

func (UpdateMailFolderChildFolderOperationOptions) ToOData

func (UpdateMailFolderChildFolderOperationOptions) ToQuery

type UpdateMailFolderChildFolderOperationResponse

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

Jump to

Keyboard shortcuts

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