onenotesectionpage

package
v0.20241209.1115630 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := onenotesectionpage.NewOnenoteSectionPageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OnenoteSectionPageClient.CopyOnenoteSectionPageToSection

ctx := context.TODO()
id := onenotesectionpage.NewUserIdOnenoteSectionIdPageID("userId", "onenoteSectionId", "onenotePageId")

payload := onenotesectionpage.CopyOnenoteSectionPageToSectionRequest{
	// ...
}


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

Example Usage: OnenoteSectionPageClient.CreateOnenoteSectionPage

ctx := context.TODO()
id := onenotesectionpage.NewUserIdOnenoteSectionID("userId", "onenoteSectionId")

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


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

Example Usage: OnenoteSectionPageClient.CreateOnenoteSectionPageOnenotePatchContent

ctx := context.TODO()
id := onenotesectionpage.NewUserIdOnenoteSectionIdPageID("userId", "onenoteSectionId", "onenotePageId")

payload := onenotesectionpage.CreateOnenoteSectionPageOnenotePatchContentRequest{
	// ...
}


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

Example Usage: OnenoteSectionPageClient.DeleteOnenoteSectionPage

ctx := context.TODO()
id := onenotesectionpage.NewUserIdOnenoteSectionIdPageID("userId", "onenoteSectionId", "onenotePageId")

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

Example Usage: OnenoteSectionPageClient.GetOnenoteSectionPage

ctx := context.TODO()
id := onenotesectionpage.NewUserIdOnenoteSectionIdPageID("userId", "onenoteSectionId", "onenotePageId")

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

Example Usage: OnenoteSectionPageClient.GetOnenoteSectionPagesCount

ctx := context.TODO()
id := onenotesectionpage.NewUserIdOnenoteSectionID("userId", "onenoteSectionId")

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

Example Usage: OnenoteSectionPageClient.ListOnenoteSectionPages

ctx := context.TODO()
id := onenotesectionpage.NewUserIdOnenoteSectionID("userId", "onenoteSectionId")

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

Example Usage: OnenoteSectionPageClient.UpdateOnenoteSectionPage

ctx := context.TODO()
id := onenotesectionpage.NewUserIdOnenoteSectionIdPageID("userId", "onenoteSectionId", "onenotePageId")

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


read, err := client.UpdateOnenoteSectionPage(ctx, id, payload, onenotesectionpage.DefaultUpdateOnenoteSectionPageOperationOptions())
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 CopyOnenoteSectionPageToSectionOperationOptions

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

func DefaultCopyOnenoteSectionPageToSectionOperationOptions

func DefaultCopyOnenoteSectionPageToSectionOperationOptions() CopyOnenoteSectionPageToSectionOperationOptions

func (CopyOnenoteSectionPageToSectionOperationOptions) ToHeaders

func (CopyOnenoteSectionPageToSectionOperationOptions) ToOData

func (CopyOnenoteSectionPageToSectionOperationOptions) ToQuery

type CopyOnenoteSectionPageToSectionOperationResponse

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

type CopyOnenoteSectionPageToSectionRequest

type CopyOnenoteSectionPageToSectionRequest 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 CreateOnenoteSectionPageOnenotePatchContentOperationOptions

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

func (CreateOnenoteSectionPageOnenotePatchContentOperationOptions) ToHeaders

func (CreateOnenoteSectionPageOnenotePatchContentOperationOptions) ToOData

func (CreateOnenoteSectionPageOnenotePatchContentOperationOptions) ToQuery

type CreateOnenoteSectionPageOnenotePatchContentOperationResponse

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

type CreateOnenoteSectionPageOnenotePatchContentRequest

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

type CreateOnenoteSectionPageOperationOptions

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

func DefaultCreateOnenoteSectionPageOperationOptions

func DefaultCreateOnenoteSectionPageOperationOptions() CreateOnenoteSectionPageOperationOptions

func (CreateOnenoteSectionPageOperationOptions) ToHeaders

func (CreateOnenoteSectionPageOperationOptions) ToOData

func (CreateOnenoteSectionPageOperationOptions) ToQuery

type CreateOnenoteSectionPageOperationResponse

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

type DeleteOnenoteSectionPageOperationOptions

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

func DefaultDeleteOnenoteSectionPageOperationOptions

func DefaultDeleteOnenoteSectionPageOperationOptions() DeleteOnenoteSectionPageOperationOptions

func (DeleteOnenoteSectionPageOperationOptions) ToHeaders

func (DeleteOnenoteSectionPageOperationOptions) ToOData

func (DeleteOnenoteSectionPageOperationOptions) ToQuery

type DeleteOnenoteSectionPageOperationResponse

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

type GetOnenoteSectionPageOperationOptions

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

func DefaultGetOnenoteSectionPageOperationOptions

func DefaultGetOnenoteSectionPageOperationOptions() GetOnenoteSectionPageOperationOptions

func (GetOnenoteSectionPageOperationOptions) ToHeaders

func (GetOnenoteSectionPageOperationOptions) ToOData

func (GetOnenoteSectionPageOperationOptions) ToQuery

type GetOnenoteSectionPageOperationResponse

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

type GetOnenoteSectionPagesCountOperationOptions

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

func DefaultGetOnenoteSectionPagesCountOperationOptions

func DefaultGetOnenoteSectionPagesCountOperationOptions() GetOnenoteSectionPagesCountOperationOptions

func (GetOnenoteSectionPagesCountOperationOptions) ToHeaders

func (GetOnenoteSectionPagesCountOperationOptions) ToOData

func (GetOnenoteSectionPagesCountOperationOptions) ToQuery

type GetOnenoteSectionPagesCountOperationResponse

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

type ListOnenoteSectionPagesCompleteResult

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

type ListOnenoteSectionPagesCustomPager

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

type ListOnenoteSectionPagesOperationOptions

type ListOnenoteSectionPagesOperationOptions 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 DefaultListOnenoteSectionPagesOperationOptions

func DefaultListOnenoteSectionPagesOperationOptions() ListOnenoteSectionPagesOperationOptions

func (ListOnenoteSectionPagesOperationOptions) ToHeaders

func (ListOnenoteSectionPagesOperationOptions) ToOData

func (ListOnenoteSectionPagesOperationOptions) ToQuery

type ListOnenoteSectionPagesOperationResponse

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

type OnenotePageOperationPredicate

type OnenotePageOperationPredicate struct {
}

func (OnenotePageOperationPredicate) Matches

type OnenoteSectionPageClient

type OnenoteSectionPageClient struct {
	Client *msgraph.Client
}

func NewOnenoteSectionPageClientWithBaseURI

func NewOnenoteSectionPageClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteSectionPageClient, error)

func (OnenoteSectionPageClient) CopyOnenoteSectionPageToSection

CopyOnenoteSectionPageToSection - 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 (OnenoteSectionPageClient) CreateOnenoteSectionPage

CreateOnenoteSectionPage - Create new navigation property to pages for users

func (OnenoteSectionPageClient) CreateOnenoteSectionPageOnenotePatchContent

CreateOnenoteSectionPageOnenotePatchContent - Invoke action onenotePatchContent

func (OnenoteSectionPageClient) DeleteOnenoteSectionPage

DeleteOnenoteSectionPage - Delete navigation property pages for users

func (OnenoteSectionPageClient) GetOnenoteSectionPage

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

func (OnenoteSectionPageClient) GetOnenoteSectionPagesCount

GetOnenoteSectionPagesCount - Get the number of the resource

func (OnenoteSectionPageClient) ListOnenoteSectionPages

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

func (OnenoteSectionPageClient) ListOnenoteSectionPagesComplete

ListOnenoteSectionPagesComplete retrieves all the results into a single object

func (OnenoteSectionPageClient) ListOnenoteSectionPagesCompleteMatchingPredicate

ListOnenoteSectionPagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OnenoteSectionPageClient) UpdateOnenoteSectionPage

UpdateOnenoteSectionPage - Update the navigation property pages in users

type UpdateOnenoteSectionPageOperationOptions

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

func DefaultUpdateOnenoteSectionPageOperationOptions

func DefaultUpdateOnenoteSectionPageOperationOptions() UpdateOnenoteSectionPageOperationOptions

func (UpdateOnenoteSectionPageOperationOptions) ToHeaders

func (UpdateOnenoteSectionPageOperationOptions) ToOData

func (UpdateOnenoteSectionPageOperationOptions) ToQuery

type UpdateOnenoteSectionPageOperationResponse

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