onenotenotebooksectionpage

package
v0.20241203.1090052 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := onenotenotebooksectionpage.NewOnenoteNotebookSectionPageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OnenoteNotebookSectionPageClient.CopyOnenoteNotebookSectionPageToSection

ctx := context.TODO()
id := onenotenotebooksectionpage.NewUserIdOnenoteNotebookIdSectionIdPageID("userId", "notebookId", "onenoteSectionId", "onenotePageId")

payload := onenotenotebooksectionpage.CopyOnenoteNotebookSectionPageToSectionRequest{
	// ...
}


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

Example Usage: OnenoteNotebookSectionPageClient.CreateOnenoteNotebookSectionPage

ctx := context.TODO()
id := onenotenotebooksectionpage.NewUserIdOnenoteNotebookIdSectionID("userId", "notebookId", "onenoteSectionId")

payload := onenotenotebooksectionpage.OnenotePage{
	// ...
}


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

Example Usage: OnenoteNotebookSectionPageClient.CreateOnenoteNotebookSectionPageOnenotePatchContent

ctx := context.TODO()
id := onenotenotebooksectionpage.NewUserIdOnenoteNotebookIdSectionIdPageID("userId", "notebookId", "onenoteSectionId", "onenotePageId")

payload := onenotenotebooksectionpage.CreateOnenoteNotebookSectionPageOnenotePatchContentRequest{
	// ...
}


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

Example Usage: OnenoteNotebookSectionPageClient.DeleteOnenoteNotebookSectionPage

ctx := context.TODO()
id := onenotenotebooksectionpage.NewUserIdOnenoteNotebookIdSectionIdPageID("userId", "notebookId", "onenoteSectionId", "onenotePageId")

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

Example Usage: OnenoteNotebookSectionPageClient.GetOnenoteNotebookSectionPage

ctx := context.TODO()
id := onenotenotebooksectionpage.NewUserIdOnenoteNotebookIdSectionIdPageID("userId", "notebookId", "onenoteSectionId", "onenotePageId")

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

Example Usage: OnenoteNotebookSectionPageClient.GetOnenoteNotebookSectionPagesCount

ctx := context.TODO()
id := onenotenotebooksectionpage.NewUserIdOnenoteNotebookIdSectionID("userId", "notebookId", "onenoteSectionId")

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

Example Usage: OnenoteNotebookSectionPageClient.ListOnenoteNotebookSectionPages

ctx := context.TODO()
id := onenotenotebooksectionpage.NewUserIdOnenoteNotebookIdSectionID("userId", "notebookId", "onenoteSectionId")

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

Example Usage: OnenoteNotebookSectionPageClient.UpdateOnenoteNotebookSectionPage

ctx := context.TODO()
id := onenotenotebooksectionpage.NewUserIdOnenoteNotebookIdSectionIdPageID("userId", "notebookId", "onenoteSectionId", "onenotePageId")

payload := onenotenotebooksectionpage.OnenotePage{
	// ...
}


read, err := client.UpdateOnenoteNotebookSectionPage(ctx, id, payload, onenotenotebooksectionpage.DefaultUpdateOnenoteNotebookSectionPageOperationOptions())
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 CopyOnenoteNotebookSectionPageToSectionOperationOptions

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

func (CopyOnenoteNotebookSectionPageToSectionOperationOptions) ToHeaders

func (CopyOnenoteNotebookSectionPageToSectionOperationOptions) ToOData

func (CopyOnenoteNotebookSectionPageToSectionOperationOptions) ToQuery

type CopyOnenoteNotebookSectionPageToSectionOperationResponse

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

type CopyOnenoteNotebookSectionPageToSectionRequest

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

type CreateOnenoteNotebookSectionPageOnenotePatchContentOperationOptions

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

func (CreateOnenoteNotebookSectionPageOnenotePatchContentOperationOptions) ToHeaders

func (CreateOnenoteNotebookSectionPageOnenotePatchContentOperationOptions) ToOData

func (CreateOnenoteNotebookSectionPageOnenotePatchContentOperationOptions) ToQuery

type CreateOnenoteNotebookSectionPageOnenotePatchContentOperationResponse

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

type CreateOnenoteNotebookSectionPageOnenotePatchContentRequest

type CreateOnenoteNotebookSectionPageOnenotePatchContentRequest struct {
	Commands *[]stable.OnenotePatchContentCommand `json:"commands,omitempty"`
}

type CreateOnenoteNotebookSectionPageOperationOptions

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

func DefaultCreateOnenoteNotebookSectionPageOperationOptions

func DefaultCreateOnenoteNotebookSectionPageOperationOptions() CreateOnenoteNotebookSectionPageOperationOptions

func (CreateOnenoteNotebookSectionPageOperationOptions) ToHeaders

func (CreateOnenoteNotebookSectionPageOperationOptions) ToOData

func (CreateOnenoteNotebookSectionPageOperationOptions) ToQuery

type CreateOnenoteNotebookSectionPageOperationResponse

type CreateOnenoteNotebookSectionPageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenotePage
}

type DeleteOnenoteNotebookSectionPageOperationOptions

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

func DefaultDeleteOnenoteNotebookSectionPageOperationOptions

func DefaultDeleteOnenoteNotebookSectionPageOperationOptions() DeleteOnenoteNotebookSectionPageOperationOptions

func (DeleteOnenoteNotebookSectionPageOperationOptions) ToHeaders

func (DeleteOnenoteNotebookSectionPageOperationOptions) ToOData

func (DeleteOnenoteNotebookSectionPageOperationOptions) ToQuery

type DeleteOnenoteNotebookSectionPageOperationResponse

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

type GetOnenoteNotebookSectionPageOperationOptions

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

func DefaultGetOnenoteNotebookSectionPageOperationOptions

func DefaultGetOnenoteNotebookSectionPageOperationOptions() GetOnenoteNotebookSectionPageOperationOptions

func (GetOnenoteNotebookSectionPageOperationOptions) ToHeaders

func (GetOnenoteNotebookSectionPageOperationOptions) ToOData

func (GetOnenoteNotebookSectionPageOperationOptions) ToQuery

type GetOnenoteNotebookSectionPageOperationResponse

type GetOnenoteNotebookSectionPageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenotePage
}

type GetOnenoteNotebookSectionPagesCountOperationOptions

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

func DefaultGetOnenoteNotebookSectionPagesCountOperationOptions

func DefaultGetOnenoteNotebookSectionPagesCountOperationOptions() GetOnenoteNotebookSectionPagesCountOperationOptions

func (GetOnenoteNotebookSectionPagesCountOperationOptions) ToHeaders

func (GetOnenoteNotebookSectionPagesCountOperationOptions) ToOData

func (GetOnenoteNotebookSectionPagesCountOperationOptions) ToQuery

type GetOnenoteNotebookSectionPagesCountOperationResponse

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

type ListOnenoteNotebookSectionPagesCompleteResult

type ListOnenoteNotebookSectionPagesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.OnenotePage
}

type ListOnenoteNotebookSectionPagesCustomPager

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

type ListOnenoteNotebookSectionPagesOperationOptions

type ListOnenoteNotebookSectionPagesOperationOptions 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 DefaultListOnenoteNotebookSectionPagesOperationOptions

func DefaultListOnenoteNotebookSectionPagesOperationOptions() ListOnenoteNotebookSectionPagesOperationOptions

func (ListOnenoteNotebookSectionPagesOperationOptions) ToHeaders

func (ListOnenoteNotebookSectionPagesOperationOptions) ToOData

func (ListOnenoteNotebookSectionPagesOperationOptions) ToQuery

type ListOnenoteNotebookSectionPagesOperationResponse

type ListOnenoteNotebookSectionPagesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.OnenotePage
}

type OnenoteNotebookSectionPageClient

type OnenoteNotebookSectionPageClient struct {
	Client *msgraph.Client
}

func NewOnenoteNotebookSectionPageClientWithBaseURI

func NewOnenoteNotebookSectionPageClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteNotebookSectionPageClient, error)

func (OnenoteNotebookSectionPageClient) CopyOnenoteNotebookSectionPageToSection

CopyOnenoteNotebookSectionPageToSection - Invoke action copyToSection. Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.

func (OnenoteNotebookSectionPageClient) CreateOnenoteNotebookSectionPage

CreateOnenoteNotebookSectionPage - Create new navigation property to pages for users

func (OnenoteNotebookSectionPageClient) CreateOnenoteNotebookSectionPageOnenotePatchContent

CreateOnenoteNotebookSectionPageOnenotePatchContent - Invoke action onenotePatchContent

func (OnenoteNotebookSectionPageClient) DeleteOnenoteNotebookSectionPage

DeleteOnenoteNotebookSectionPage - Delete navigation property pages for users

func (OnenoteNotebookSectionPageClient) GetOnenoteNotebookSectionPage

GetOnenoteNotebookSectionPage - Get pages from users. The collection of pages in the section. Read-only. Nullable.

func (OnenoteNotebookSectionPageClient) GetOnenoteNotebookSectionPagesCount

GetOnenoteNotebookSectionPagesCount - Get the number of the resource

func (OnenoteNotebookSectionPageClient) ListOnenoteNotebookSectionPages

ListOnenoteNotebookSectionPages - Get pages from users. The collection of pages in the section. Read-only. Nullable.

func (OnenoteNotebookSectionPageClient) ListOnenoteNotebookSectionPagesComplete

ListOnenoteNotebookSectionPagesComplete retrieves all the results into a single object

func (OnenoteNotebookSectionPageClient) ListOnenoteNotebookSectionPagesCompleteMatchingPredicate

ListOnenoteNotebookSectionPagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OnenoteNotebookSectionPageClient) UpdateOnenoteNotebookSectionPage

UpdateOnenoteNotebookSectionPage - Update the navigation property pages in users

type OnenotePageOperationPredicate

type OnenotePageOperationPredicate struct {
}

func (OnenotePageOperationPredicate) Matches

type UpdateOnenoteNotebookSectionPageOperationOptions

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

func DefaultUpdateOnenoteNotebookSectionPageOperationOptions

func DefaultUpdateOnenoteNotebookSectionPageOperationOptions() UpdateOnenoteNotebookSectionPageOperationOptions

func (UpdateOnenoteNotebookSectionPageOperationOptions) ToHeaders

func (UpdateOnenoteNotebookSectionPageOperationOptions) ToOData

func (UpdateOnenoteNotebookSectionPageOperationOptions) ToQuery

type UpdateOnenoteNotebookSectionPageOperationResponse

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