onenotepage

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

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

Client Initialization

client := onenotepage.NewOnenotePageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OnenotePageClient.CopyOnenotePageToSection

ctx := context.TODO()
id := onenotepage.NewMeOnenotePageID("onenotePageId")

payload := onenotepage.CopyOnenotePageToSectionRequest{
	// ...
}


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

Example Usage: OnenotePageClient.CreateOnenotePage

ctx := context.TODO()

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


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

Example Usage: OnenotePageClient.CreateOnenotePageOnenotePatchContent

ctx := context.TODO()
id := onenotepage.NewMeOnenotePageID("onenotePageId")

payload := onenotepage.CreateOnenotePageOnenotePatchContentRequest{
	// ...
}


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

Example Usage: OnenotePageClient.DeleteOnenotePage

ctx := context.TODO()
id := onenotepage.NewMeOnenotePageID("onenotePageId")

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

Example Usage: OnenotePageClient.GetOnenotePage

ctx := context.TODO()
id := onenotepage.NewMeOnenotePageID("onenotePageId")

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

Example Usage: OnenotePageClient.GetOnenotePagesCount

ctx := context.TODO()


read, err := client.GetOnenotePagesCount(ctx, onenotepage.DefaultGetOnenotePagesCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OnenotePageClient.ListOnenotePages

ctx := context.TODO()


// alternatively `client.ListOnenotePages(ctx, onenotepage.DefaultListOnenotePagesOperationOptions())` can be used to do batched pagination
items, err := client.ListOnenotePagesComplete(ctx, onenotepage.DefaultListOnenotePagesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: OnenotePageClient.UpdateOnenotePage

ctx := context.TODO()
id := onenotepage.NewMeOnenotePageID("onenotePageId")

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


read, err := client.UpdateOnenotePage(ctx, id, payload, onenotepage.DefaultUpdateOnenotePageOperationOptions())
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 CopyOnenotePageToSectionOperationOptions

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

func DefaultCopyOnenotePageToSectionOperationOptions

func DefaultCopyOnenotePageToSectionOperationOptions() CopyOnenotePageToSectionOperationOptions

func (CopyOnenotePageToSectionOperationOptions) ToHeaders

func (CopyOnenotePageToSectionOperationOptions) ToOData

func (CopyOnenotePageToSectionOperationOptions) ToQuery

type CopyOnenotePageToSectionOperationResponse

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

type CopyOnenotePageToSectionRequest

type CopyOnenotePageToSectionRequest 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 CreateOnenotePageOnenotePatchContentOperationOptions

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

func DefaultCreateOnenotePageOnenotePatchContentOperationOptions

func DefaultCreateOnenotePageOnenotePatchContentOperationOptions() CreateOnenotePageOnenotePatchContentOperationOptions

func (CreateOnenotePageOnenotePatchContentOperationOptions) ToHeaders

func (CreateOnenotePageOnenotePatchContentOperationOptions) ToOData

func (CreateOnenotePageOnenotePatchContentOperationOptions) ToQuery

type CreateOnenotePageOnenotePatchContentOperationResponse

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

type CreateOnenotePageOnenotePatchContentRequest

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

type CreateOnenotePageOperationOptions

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

func DefaultCreateOnenotePageOperationOptions

func DefaultCreateOnenotePageOperationOptions() CreateOnenotePageOperationOptions

func (CreateOnenotePageOperationOptions) ToHeaders

func (CreateOnenotePageOperationOptions) ToOData

func (CreateOnenotePageOperationOptions) ToQuery

type CreateOnenotePageOperationResponse

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

type DeleteOnenotePageOperationOptions

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

func DefaultDeleteOnenotePageOperationOptions

func DefaultDeleteOnenotePageOperationOptions() DeleteOnenotePageOperationOptions

func (DeleteOnenotePageOperationOptions) ToHeaders

func (DeleteOnenotePageOperationOptions) ToOData

func (DeleteOnenotePageOperationOptions) ToQuery

type DeleteOnenotePageOperationResponse

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

type GetOnenotePageOperationOptions

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

func DefaultGetOnenotePageOperationOptions

func DefaultGetOnenotePageOperationOptions() GetOnenotePageOperationOptions

func (GetOnenotePageOperationOptions) ToHeaders

func (GetOnenotePageOperationOptions) ToOData

func (GetOnenotePageOperationOptions) ToQuery

type GetOnenotePageOperationResponse

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

type GetOnenotePagesCountOperationOptions

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

func DefaultGetOnenotePagesCountOperationOptions

func DefaultGetOnenotePagesCountOperationOptions() GetOnenotePagesCountOperationOptions

func (GetOnenotePagesCountOperationOptions) ToHeaders

func (GetOnenotePagesCountOperationOptions) ToOData

func (GetOnenotePagesCountOperationOptions) ToQuery

type GetOnenotePagesCountOperationResponse

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

type ListOnenotePagesCompleteResult

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

type ListOnenotePagesCustomPager

type ListOnenotePagesCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListOnenotePagesCustomPager) NextPageLink() *odata.Link

type ListOnenotePagesOperationOptions

type ListOnenotePagesOperationOptions 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 DefaultListOnenotePagesOperationOptions

func DefaultListOnenotePagesOperationOptions() ListOnenotePagesOperationOptions

func (ListOnenotePagesOperationOptions) ToHeaders

func (ListOnenotePagesOperationOptions) ToOData

func (ListOnenotePagesOperationOptions) ToQuery

type ListOnenotePagesOperationResponse

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

type OnenotePageClient

type OnenotePageClient struct {
	Client *msgraph.Client
}

func NewOnenotePageClientWithBaseURI

func NewOnenotePageClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenotePageClient, error)

func (OnenotePageClient) CopyOnenotePageToSection

CopyOnenotePageToSection - 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 (OnenotePageClient) CreateOnenotePage

CreateOnenotePage - Create onenotePage. Create a new OneNote page in the default section of the default notebook. To create a page in a different section in the default notebook, you can use the sectionName query parameter. Example: ../onenote/pages?sectionName=My%20section The POST /onenote/pages operation is used only to create pages in the current user's default notebook. If you're targeting other notebooks, you can create pages in a specified section.

func (OnenotePageClient) CreateOnenotePageOnenotePatchContent

CreateOnenotePageOnenotePatchContent - Invoke action onenotePatchContent

func (OnenotePageClient) DeleteOnenotePage

DeleteOnenotePage - Delete page. Delete a OneNote page.

func (OnenotePageClient) GetOnenotePage

GetOnenotePage - Get page. Retrieve the properties and relationships of a page object. Getting page information Access a page's metadata by page identifier: Getting page content You can use the page's content endpoint to get the HTML content of a page: The includeIDs=true query option is used to update pages.

func (OnenotePageClient) GetOnenotePagesCount

GetOnenotePagesCount - Get the number of the resource

func (OnenotePageClient) ListOnenotePages

ListOnenotePages - List onenotePages. Retrieve a list of page objects.

func (OnenotePageClient) ListOnenotePagesComplete

ListOnenotePagesComplete retrieves all the results into a single object

func (OnenotePageClient) ListOnenotePagesCompleteMatchingPredicate

func (c OnenotePageClient) ListOnenotePagesCompleteMatchingPredicate(ctx context.Context, options ListOnenotePagesOperationOptions, predicate OnenotePageOperationPredicate) (result ListOnenotePagesCompleteResult, err error)

ListOnenotePagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OnenotePageClient) UpdateOnenotePage

UpdateOnenotePage - Update the navigation property pages in me

type OnenotePageOperationPredicate

type OnenotePageOperationPredicate struct {
}

func (OnenotePageOperationPredicate) Matches

type UpdateOnenotePageOperationOptions

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

func DefaultUpdateOnenotePageOperationOptions

func DefaultUpdateOnenotePageOperationOptions() UpdateOnenotePageOperationOptions

func (UpdateOnenotePageOperationOptions) ToHeaders

func (UpdateOnenotePageOperationOptions) ToOData

func (UpdateOnenotePageOperationOptions) ToQuery

type UpdateOnenotePageOperationResponse

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