siteonenotenotebooksectionpage

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/stable/siteonenotenotebooksectionpage Documentation

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

Client Initialization

client := siteonenotenotebooksectionpage.NewSiteOnenoteNotebookSectionPageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteOnenoteNotebookSectionPageClient.CopySiteOnenoteNotebookSectionPageToSection

ctx := context.TODO()
id := siteonenotenotebooksectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionIdPageID("groupId", "siteId", "notebookId", "onenoteSectionId", "onenotePageId")

payload := siteonenotenotebooksectionpage.CopySiteOnenoteNotebookSectionPageToSectionRequest{
	// ...
}


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

Example Usage: SiteOnenoteNotebookSectionPageClient.CreateSiteOnenoteNotebookSectionPage

ctx := context.TODO()
id := siteonenotenotebooksectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionID("groupId", "siteId", "notebookId", "onenoteSectionId")

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


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

Example Usage: SiteOnenoteNotebookSectionPageClient.CreateSiteOnenoteNotebookSectionPageOnenotePatchContent

ctx := context.TODO()
id := siteonenotenotebooksectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionIdPageID("groupId", "siteId", "notebookId", "onenoteSectionId", "onenotePageId")

payload := siteonenotenotebooksectionpage.CreateSiteOnenoteNotebookSectionPageOnenotePatchContentRequest{
	// ...
}


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

Example Usage: SiteOnenoteNotebookSectionPageClient.DeleteSiteOnenoteNotebookSectionPage

ctx := context.TODO()
id := siteonenotenotebooksectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionIdPageID("groupId", "siteId", "notebookId", "onenoteSectionId", "onenotePageId")

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

Example Usage: SiteOnenoteNotebookSectionPageClient.GetSiteOnenoteNotebookSectionPage

ctx := context.TODO()
id := siteonenotenotebooksectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionIdPageID("groupId", "siteId", "notebookId", "onenoteSectionId", "onenotePageId")

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

Example Usage: SiteOnenoteNotebookSectionPageClient.GetSiteOnenoteNotebookSectionPagesCount

ctx := context.TODO()
id := siteonenotenotebooksectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionID("groupId", "siteId", "notebookId", "onenoteSectionId")

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

Example Usage: SiteOnenoteNotebookSectionPageClient.ListSiteOnenoteNotebookSectionPages

ctx := context.TODO()
id := siteonenotenotebooksectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionID("groupId", "siteId", "notebookId", "onenoteSectionId")

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

Example Usage: SiteOnenoteNotebookSectionPageClient.UpdateSiteOnenoteNotebookSectionPage

ctx := context.TODO()
id := siteonenotenotebooksectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionIdPageID("groupId", "siteId", "notebookId", "onenoteSectionId", "onenotePageId")

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


read, err := client.UpdateSiteOnenoteNotebookSectionPage(ctx, id, payload, siteonenotenotebooksectionpage.DefaultUpdateSiteOnenoteNotebookSectionPageOperationOptions())
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 CopySiteOnenoteNotebookSectionPageToSectionOperationOptions

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

func (CopySiteOnenoteNotebookSectionPageToSectionOperationOptions) ToHeaders

func (CopySiteOnenoteNotebookSectionPageToSectionOperationOptions) ToOData

func (CopySiteOnenoteNotebookSectionPageToSectionOperationOptions) ToQuery

type CopySiteOnenoteNotebookSectionPageToSectionOperationResponse

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

type CopySiteOnenoteNotebookSectionPageToSectionRequest

type CopySiteOnenoteNotebookSectionPageToSectionRequest 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 CreateSiteOnenoteNotebookSectionPageOnenotePatchContentOperationOptions

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

func (CreateSiteOnenoteNotebookSectionPageOnenotePatchContentOperationOptions) ToHeaders

func (CreateSiteOnenoteNotebookSectionPageOnenotePatchContentOperationOptions) ToOData

func (CreateSiteOnenoteNotebookSectionPageOnenotePatchContentOperationOptions) ToQuery

type CreateSiteOnenoteNotebookSectionPageOnenotePatchContentOperationResponse

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

type CreateSiteOnenoteNotebookSectionPageOnenotePatchContentRequest

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

type CreateSiteOnenoteNotebookSectionPageOperationOptions

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

func DefaultCreateSiteOnenoteNotebookSectionPageOperationOptions

func DefaultCreateSiteOnenoteNotebookSectionPageOperationOptions() CreateSiteOnenoteNotebookSectionPageOperationOptions

func (CreateSiteOnenoteNotebookSectionPageOperationOptions) ToHeaders

func (CreateSiteOnenoteNotebookSectionPageOperationOptions) ToOData

func (CreateSiteOnenoteNotebookSectionPageOperationOptions) ToQuery

type CreateSiteOnenoteNotebookSectionPageOperationResponse

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

type DeleteSiteOnenoteNotebookSectionPageOperationOptions

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

func DefaultDeleteSiteOnenoteNotebookSectionPageOperationOptions

func DefaultDeleteSiteOnenoteNotebookSectionPageOperationOptions() DeleteSiteOnenoteNotebookSectionPageOperationOptions

func (DeleteSiteOnenoteNotebookSectionPageOperationOptions) ToHeaders

func (DeleteSiteOnenoteNotebookSectionPageOperationOptions) ToOData

func (DeleteSiteOnenoteNotebookSectionPageOperationOptions) ToQuery

type DeleteSiteOnenoteNotebookSectionPageOperationResponse

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

type GetSiteOnenoteNotebookSectionPageOperationOptions

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

func DefaultGetSiteOnenoteNotebookSectionPageOperationOptions

func DefaultGetSiteOnenoteNotebookSectionPageOperationOptions() GetSiteOnenoteNotebookSectionPageOperationOptions

func (GetSiteOnenoteNotebookSectionPageOperationOptions) ToHeaders

func (GetSiteOnenoteNotebookSectionPageOperationOptions) ToOData

func (GetSiteOnenoteNotebookSectionPageOperationOptions) ToQuery

type GetSiteOnenoteNotebookSectionPageOperationResponse

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

type GetSiteOnenoteNotebookSectionPagesCountOperationOptions

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

func (GetSiteOnenoteNotebookSectionPagesCountOperationOptions) ToHeaders

func (GetSiteOnenoteNotebookSectionPagesCountOperationOptions) ToOData

func (GetSiteOnenoteNotebookSectionPagesCountOperationOptions) ToQuery

type GetSiteOnenoteNotebookSectionPagesCountOperationResponse

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

type ListSiteOnenoteNotebookSectionPagesCompleteResult

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

type ListSiteOnenoteNotebookSectionPagesCustomPager

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

type ListSiteOnenoteNotebookSectionPagesOperationOptions

type ListSiteOnenoteNotebookSectionPagesOperationOptions 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 DefaultListSiteOnenoteNotebookSectionPagesOperationOptions

func DefaultListSiteOnenoteNotebookSectionPagesOperationOptions() ListSiteOnenoteNotebookSectionPagesOperationOptions

func (ListSiteOnenoteNotebookSectionPagesOperationOptions) ToHeaders

func (ListSiteOnenoteNotebookSectionPagesOperationOptions) ToOData

func (ListSiteOnenoteNotebookSectionPagesOperationOptions) ToQuery

type ListSiteOnenoteNotebookSectionPagesOperationResponse

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

type OnenotePageOperationPredicate

type OnenotePageOperationPredicate struct {
}

func (OnenotePageOperationPredicate) Matches

type SiteOnenoteNotebookSectionPageClient

type SiteOnenoteNotebookSectionPageClient struct {
	Client *msgraph.Client
}

func NewSiteOnenoteNotebookSectionPageClientWithBaseURI

func NewSiteOnenoteNotebookSectionPageClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteOnenoteNotebookSectionPageClient, error)

func (SiteOnenoteNotebookSectionPageClient) CopySiteOnenoteNotebookSectionPageToSection

CopySiteOnenoteNotebookSectionPageToSection - 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 (SiteOnenoteNotebookSectionPageClient) CreateSiteOnenoteNotebookSectionPage

CreateSiteOnenoteNotebookSectionPage - Create new navigation property to pages for groups

func (SiteOnenoteNotebookSectionPageClient) CreateSiteOnenoteNotebookSectionPageOnenotePatchContent

CreateSiteOnenoteNotebookSectionPageOnenotePatchContent - Invoke action onenotePatchContent

func (SiteOnenoteNotebookSectionPageClient) DeleteSiteOnenoteNotebookSectionPage

DeleteSiteOnenoteNotebookSectionPage - Delete navigation property pages for groups

func (SiteOnenoteNotebookSectionPageClient) GetSiteOnenoteNotebookSectionPage

GetSiteOnenoteNotebookSectionPage - Get pages from groups. The collection of pages in the section. Read-only. Nullable.

func (SiteOnenoteNotebookSectionPageClient) GetSiteOnenoteNotebookSectionPagesCount

GetSiteOnenoteNotebookSectionPagesCount - Get the number of the resource

func (SiteOnenoteNotebookSectionPageClient) ListSiteOnenoteNotebookSectionPages

ListSiteOnenoteNotebookSectionPages - Get pages from groups. The collection of pages in the section. Read-only. Nullable.

func (SiteOnenoteNotebookSectionPageClient) ListSiteOnenoteNotebookSectionPagesComplete

ListSiteOnenoteNotebookSectionPagesComplete retrieves all the results into a single object

func (SiteOnenoteNotebookSectionPageClient) ListSiteOnenoteNotebookSectionPagesCompleteMatchingPredicate

ListSiteOnenoteNotebookSectionPagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteOnenoteNotebookSectionPageClient) UpdateSiteOnenoteNotebookSectionPage

UpdateSiteOnenoteNotebookSectionPage - Update the navigation property pages in groups

type UpdateSiteOnenoteNotebookSectionPageOperationOptions

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

func DefaultUpdateSiteOnenoteNotebookSectionPageOperationOptions

func DefaultUpdateSiteOnenoteNotebookSectionPageOperationOptions() UpdateSiteOnenoteNotebookSectionPageOperationOptions

func (UpdateSiteOnenoteNotebookSectionPageOperationOptions) ToHeaders

func (UpdateSiteOnenoteNotebookSectionPageOperationOptions) ToOData

func (UpdateSiteOnenoteNotebookSectionPageOperationOptions) ToQuery

type UpdateSiteOnenoteNotebookSectionPageOperationResponse

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