onenotenotebooksection

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/me/stable/onenotenotebooksection Documentation

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

Client Initialization

client := onenotenotebooksection.NewOnenoteNotebookSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OnenoteNotebookSectionClient.CopyOnenoteNotebookSectionToNotebook

ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")

payload := onenotenotebooksection.CopyOnenoteNotebookSectionToNotebookRequest{
	// ...
}


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

Example Usage: OnenoteNotebookSectionClient.CopyOnenoteNotebookSectionToSectionGroup

ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")

payload := onenotenotebooksection.CopyOnenoteNotebookSectionToSectionGroupRequest{
	// ...
}


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

Example Usage: OnenoteNotebookSectionClient.CreateOnenoteNotebookSection

ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookID("notebookId")

payload := onenotenotebooksection.OnenoteSection{
	// ...
}


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

Example Usage: OnenoteNotebookSectionClient.DeleteOnenoteNotebookSection

ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")

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

Example Usage: OnenoteNotebookSectionClient.GetOnenoteNotebookSection

ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")

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

Example Usage: OnenoteNotebookSectionClient.GetOnenoteNotebookSectionsCount

ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookID("notebookId")

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

Example Usage: OnenoteNotebookSectionClient.ListOnenoteNotebookSections

ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookID("notebookId")

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

Example Usage: OnenoteNotebookSectionClient.UpdateOnenoteNotebookSection

ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")

payload := onenotenotebooksection.OnenoteSection{
	// ...
}


read, err := client.UpdateOnenoteNotebookSection(ctx, id, payload, onenotenotebooksection.DefaultUpdateOnenoteNotebookSectionOperationOptions())
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 CopyOnenoteNotebookSectionToNotebookOperationOptions

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

func DefaultCopyOnenoteNotebookSectionToNotebookOperationOptions

func DefaultCopyOnenoteNotebookSectionToNotebookOperationOptions() CopyOnenoteNotebookSectionToNotebookOperationOptions

func (CopyOnenoteNotebookSectionToNotebookOperationOptions) ToHeaders

func (CopyOnenoteNotebookSectionToNotebookOperationOptions) ToOData

func (CopyOnenoteNotebookSectionToNotebookOperationOptions) ToQuery

type CopyOnenoteNotebookSectionToNotebookOperationResponse

type CopyOnenoteNotebookSectionToNotebookOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenoteOperation
}

type CopyOnenoteNotebookSectionToNotebookRequest

type CopyOnenoteNotebookSectionToNotebookRequest struct {
	GroupId          nullable.Type[string] `json:"groupId,omitempty"`
	Id               nullable.Type[string] `json:"id,omitempty"`
	RenameAs         nullable.Type[string] `json:"renameAs,omitempty"`
	SiteCollectionId nullable.Type[string] `json:"siteCollectionId,omitempty"`
	SiteId           nullable.Type[string] `json:"siteId,omitempty"`
}

type CopyOnenoteNotebookSectionToSectionGroupOperationOptions

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

func (CopyOnenoteNotebookSectionToSectionGroupOperationOptions) ToHeaders

func (CopyOnenoteNotebookSectionToSectionGroupOperationOptions) ToOData

func (CopyOnenoteNotebookSectionToSectionGroupOperationOptions) ToQuery

type CopyOnenoteNotebookSectionToSectionGroupOperationResponse

type CopyOnenoteNotebookSectionToSectionGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenoteOperation
}

type CopyOnenoteNotebookSectionToSectionGroupRequest

type CopyOnenoteNotebookSectionToSectionGroupRequest struct {
	GroupId          nullable.Type[string] `json:"groupId,omitempty"`
	Id               nullable.Type[string] `json:"id,omitempty"`
	RenameAs         nullable.Type[string] `json:"renameAs,omitempty"`
	SiteCollectionId nullable.Type[string] `json:"siteCollectionId,omitempty"`
	SiteId           nullable.Type[string] `json:"siteId,omitempty"`
}

type CreateOnenoteNotebookSectionOperationOptions

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

func DefaultCreateOnenoteNotebookSectionOperationOptions

func DefaultCreateOnenoteNotebookSectionOperationOptions() CreateOnenoteNotebookSectionOperationOptions

func (CreateOnenoteNotebookSectionOperationOptions) ToHeaders

func (CreateOnenoteNotebookSectionOperationOptions) ToOData

func (CreateOnenoteNotebookSectionOperationOptions) ToQuery

type CreateOnenoteNotebookSectionOperationResponse

type CreateOnenoteNotebookSectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenoteSection
}

type DeleteOnenoteNotebookSectionOperationOptions

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

func DefaultDeleteOnenoteNotebookSectionOperationOptions

func DefaultDeleteOnenoteNotebookSectionOperationOptions() DeleteOnenoteNotebookSectionOperationOptions

func (DeleteOnenoteNotebookSectionOperationOptions) ToHeaders

func (DeleteOnenoteNotebookSectionOperationOptions) ToOData

func (DeleteOnenoteNotebookSectionOperationOptions) ToQuery

type DeleteOnenoteNotebookSectionOperationResponse

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

type GetOnenoteNotebookSectionOperationOptions

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

func DefaultGetOnenoteNotebookSectionOperationOptions

func DefaultGetOnenoteNotebookSectionOperationOptions() GetOnenoteNotebookSectionOperationOptions

func (GetOnenoteNotebookSectionOperationOptions) ToHeaders

func (GetOnenoteNotebookSectionOperationOptions) ToOData

func (GetOnenoteNotebookSectionOperationOptions) ToQuery

type GetOnenoteNotebookSectionOperationResponse

type GetOnenoteNotebookSectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenoteSection
}

type GetOnenoteNotebookSectionsCountOperationOptions

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

func DefaultGetOnenoteNotebookSectionsCountOperationOptions

func DefaultGetOnenoteNotebookSectionsCountOperationOptions() GetOnenoteNotebookSectionsCountOperationOptions

func (GetOnenoteNotebookSectionsCountOperationOptions) ToHeaders

func (GetOnenoteNotebookSectionsCountOperationOptions) ToOData

func (GetOnenoteNotebookSectionsCountOperationOptions) ToQuery

type GetOnenoteNotebookSectionsCountOperationResponse

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

type ListOnenoteNotebookSectionsCompleteResult

type ListOnenoteNotebookSectionsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.OnenoteSection
}

type ListOnenoteNotebookSectionsCustomPager

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

type ListOnenoteNotebookSectionsOperationOptions

type ListOnenoteNotebookSectionsOperationOptions 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 DefaultListOnenoteNotebookSectionsOperationOptions

func DefaultListOnenoteNotebookSectionsOperationOptions() ListOnenoteNotebookSectionsOperationOptions

func (ListOnenoteNotebookSectionsOperationOptions) ToHeaders

func (ListOnenoteNotebookSectionsOperationOptions) ToOData

func (ListOnenoteNotebookSectionsOperationOptions) ToQuery

type ListOnenoteNotebookSectionsOperationResponse

type ListOnenoteNotebookSectionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.OnenoteSection
}

type OnenoteNotebookSectionClient

type OnenoteNotebookSectionClient struct {
	Client *msgraph.Client
}

func NewOnenoteNotebookSectionClientWithBaseURI

func NewOnenoteNotebookSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteNotebookSectionClient, error)

func (OnenoteNotebookSectionClient) CopyOnenoteNotebookSectionToNotebook

CopyOnenoteNotebookSectionToNotebook - Invoke action copyToNotebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.

func (OnenoteNotebookSectionClient) CopyOnenoteNotebookSectionToSectionGroup

CopyOnenoteNotebookSectionToSectionGroup - Invoke action copyToSectionGroup. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.

func (OnenoteNotebookSectionClient) CreateOnenoteNotebookSection

CreateOnenoteNotebookSection - Create section. Create a new onenoteSection in the specified notebook.

func (OnenoteNotebookSectionClient) DeleteOnenoteNotebookSection

DeleteOnenoteNotebookSection - Delete navigation property sections for me

func (OnenoteNotebookSectionClient) GetOnenoteNotebookSection

GetOnenoteNotebookSection - Get sections from me. The sections in the notebook. Read-only. Nullable.

func (OnenoteNotebookSectionClient) GetOnenoteNotebookSectionsCount

GetOnenoteNotebookSectionsCount - Get the number of the resource

func (OnenoteNotebookSectionClient) ListOnenoteNotebookSections

ListOnenoteNotebookSections - List sections. Retrieve a list of onenoteSection objects from the specified notebook.

func (OnenoteNotebookSectionClient) ListOnenoteNotebookSectionsComplete

ListOnenoteNotebookSectionsComplete retrieves all the results into a single object

func (OnenoteNotebookSectionClient) ListOnenoteNotebookSectionsCompleteMatchingPredicate

ListOnenoteNotebookSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OnenoteNotebookSectionClient) UpdateOnenoteNotebookSection

UpdateOnenoteNotebookSection - Update the navigation property sections in me

type OnenoteSectionOperationPredicate

type OnenoteSectionOperationPredicate struct {
}

func (OnenoteSectionOperationPredicate) Matches

type UpdateOnenoteNotebookSectionOperationOptions

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

func DefaultUpdateOnenoteNotebookSectionOperationOptions

func DefaultUpdateOnenoteNotebookSectionOperationOptions() UpdateOnenoteNotebookSectionOperationOptions

func (UpdateOnenoteNotebookSectionOperationOptions) ToHeaders

func (UpdateOnenoteNotebookSectionOperationOptions) ToOData

func (UpdateOnenoteNotebookSectionOperationOptions) ToQuery

type UpdateOnenoteNotebookSectionOperationResponse

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