mailfolderchildfolder

package
v0.20241126.2320 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/mailfolderchildfolder Documentation

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

Client Initialization

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

Example Usage: MailFolderChildFolderClient.CopyMailFolderChildFolder

ctx := context.TODO()
id := mailfolderchildfolder.NewUserIdMailFolderIdChildFolderID("userId", "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.NewUserIdMailFolderID("userId", "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.NewUserIdMailFolderIdChildFolderID("userId", "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.NewUserIdMailFolderIdChildFolderID("userId", "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.NewUserIdMailFolderID("userId", "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.NewUserIdMailFolderID("userId", "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.NewUserIdMailFolderIdChildFolderID("userId", "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.NewUserIdMailFolderIdChildFolderID("userId", "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        stable.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        stable.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        stable.MailFolder
}

type GetMailFolderChildFoldersCountOperationOptions

type GetMailFolderChildFoldersCountOperationOptions struct {
	Filter    *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              []stable.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        *[]stable.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 mailfolder and its contents to another mailfolder.

func (MailFolderChildFolderClient) CreateMailFolderChildFolder

CreateMailFolderChildFolder - Create new navigation property to childFolders for users

func (MailFolderChildFolderClient) DeleteMailFolderChildFolder

DeleteMailFolderChildFolder - Delete navigation property childFolders for users

func (MailFolderChildFolderClient) GetMailFolderChildFolder

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

func (MailFolderChildFolderClient) GetMailFolderChildFoldersCount

GetMailFolderChildFoldersCount - Get the number of the resource

func (MailFolderChildFolderClient) ListMailFolderChildFolders

ListMailFolderChildFolders - Get childFolders from users. The collection of child folders in the mailFolder.

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 mailfolder and its contents to another mailfolder.

func (MailFolderChildFolderClient) UpdateMailFolderChildFolder

UpdateMailFolderChildFolder - Update the navigation property childFolders in users

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        stable.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