siteonenotenotebooksectiongroupsectionpage

package
v0.20241126.1110949 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: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/siteonenotenotebooksectiongroupsectionpage Documentation

The siteonenotenotebooksectiongroupsectionpage SDK allows for interaction with Microsoft Graph groups (API Version beta).

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/beta/siteonenotenotebooksectiongroupsectionpage"

Client Initialization

client := siteonenotenotebooksectiongroupsectionpage.NewSiteOnenoteNotebookSectionGroupSectionPageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteOnenoteNotebookSectionGroupSectionPageClient.CopySiteOnenoteNotebookSectionGroupSectionPageToSection

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionIdPageID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

payload := siteonenotenotebooksectiongroupsectionpage.CopySiteOnenoteNotebookSectionGroupSectionPageToSectionRequest{
	// ...
}


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

Example Usage: SiteOnenoteNotebookSectionGroupSectionPageClient.CreateSiteOnenoteNotebookSectionGroupSectionPage

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId")

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


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

Example Usage: SiteOnenoteNotebookSectionGroupSectionPageClient.CreateSiteOnenoteNotebookSectionGroupSectionPageOnenotePatchContent

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionIdPageID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

payload := siteonenotenotebooksectiongroupsectionpage.CreateSiteOnenoteNotebookSectionGroupSectionPageOnenotePatchContentRequest{
	// ...
}


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

Example Usage: SiteOnenoteNotebookSectionGroupSectionPageClient.DeleteSiteOnenoteNotebookSectionGroupSectionPage

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionIdPageID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

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

Example Usage: SiteOnenoteNotebookSectionGroupSectionPageClient.GetSiteOnenoteNotebookSectionGroupSectionPage

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionIdPageID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

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

Example Usage: SiteOnenoteNotebookSectionGroupSectionPageClient.GetSiteOnenoteNotebookSectionGroupSectionPagesCount

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: SiteOnenoteNotebookSectionGroupSectionPageClient.ListSiteOnenoteNotebookSectionGroupSectionPages

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: SiteOnenoteNotebookSectionGroupSectionPageClient.UpdateSiteOnenoteNotebookSectionGroupSectionPage

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsectionpage.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionIdPageID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

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


read, err := client.UpdateSiteOnenoteNotebookSectionGroupSectionPage(ctx, id, payload, siteonenotenotebooksectiongroupsectionpage.DefaultUpdateSiteOnenoteNotebookSectionGroupSectionPageOperationOptions())
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 CopySiteOnenoteNotebookSectionGroupSectionPageToSectionOperationOptions

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

func (CopySiteOnenoteNotebookSectionGroupSectionPageToSectionOperationOptions) ToHeaders

func (CopySiteOnenoteNotebookSectionGroupSectionPageToSectionOperationOptions) ToOData

func (CopySiteOnenoteNotebookSectionGroupSectionPageToSectionOperationOptions) ToQuery

type CopySiteOnenoteNotebookSectionGroupSectionPageToSectionOperationResponse

type CopySiteOnenoteNotebookSectionGroupSectionPageToSectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.OnenoteOperation
}

type CopySiteOnenoteNotebookSectionGroupSectionPageToSectionRequest

type CopySiteOnenoteNotebookSectionGroupSectionPageToSectionRequest 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 CreateSiteOnenoteNotebookSectionGroupSectionPageOnenotePatchContentOperationOptions

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

func (CreateSiteOnenoteNotebookSectionGroupSectionPageOnenotePatchContentOperationOptions) ToHeaders

func (CreateSiteOnenoteNotebookSectionGroupSectionPageOnenotePatchContentOperationOptions) ToOData

func (CreateSiteOnenoteNotebookSectionGroupSectionPageOnenotePatchContentOperationOptions) ToQuery

type CreateSiteOnenoteNotebookSectionGroupSectionPageOnenotePatchContentOperationResponse

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

type CreateSiteOnenoteNotebookSectionGroupSectionPageOnenotePatchContentRequest

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

type CreateSiteOnenoteNotebookSectionGroupSectionPageOperationOptions

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

func (CreateSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToHeaders

func (CreateSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToOData

func (CreateSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToQuery

type CreateSiteOnenoteNotebookSectionGroupSectionPageOperationResponse

type CreateSiteOnenoteNotebookSectionGroupSectionPageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.OnenotePage
}

type DeleteSiteOnenoteNotebookSectionGroupSectionPageOperationOptions

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

func (DeleteSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToHeaders

func (DeleteSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToOData

func (DeleteSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToQuery

type DeleteSiteOnenoteNotebookSectionGroupSectionPageOperationResponse

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

type GetSiteOnenoteNotebookSectionGroupSectionPageOperationOptions

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

func (GetSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToHeaders

func (GetSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToOData

func (GetSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToQuery

type GetSiteOnenoteNotebookSectionGroupSectionPageOperationResponse

type GetSiteOnenoteNotebookSectionGroupSectionPageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.OnenotePage
}

type GetSiteOnenoteNotebookSectionGroupSectionPagesCountOperationOptions

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

func (GetSiteOnenoteNotebookSectionGroupSectionPagesCountOperationOptions) ToHeaders

func (GetSiteOnenoteNotebookSectionGroupSectionPagesCountOperationOptions) ToOData

func (GetSiteOnenoteNotebookSectionGroupSectionPagesCountOperationOptions) ToQuery

type GetSiteOnenoteNotebookSectionGroupSectionPagesCountOperationResponse

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

type ListSiteOnenoteNotebookSectionGroupSectionPagesCompleteResult

type ListSiteOnenoteNotebookSectionGroupSectionPagesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.OnenotePage
}

type ListSiteOnenoteNotebookSectionGroupSectionPagesCustomPager

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

type ListSiteOnenoteNotebookSectionGroupSectionPagesOperationOptions

type ListSiteOnenoteNotebookSectionGroupSectionPagesOperationOptions 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 (ListSiteOnenoteNotebookSectionGroupSectionPagesOperationOptions) ToHeaders

func (ListSiteOnenoteNotebookSectionGroupSectionPagesOperationOptions) ToOData

func (ListSiteOnenoteNotebookSectionGroupSectionPagesOperationOptions) ToQuery

type ListSiteOnenoteNotebookSectionGroupSectionPagesOperationResponse

type ListSiteOnenoteNotebookSectionGroupSectionPagesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.OnenotePage
}

type OnenotePageOperationPredicate

type OnenotePageOperationPredicate struct {
}

func (OnenotePageOperationPredicate) Matches

type SiteOnenoteNotebookSectionGroupSectionPageClient

type SiteOnenoteNotebookSectionGroupSectionPageClient struct {
	Client *msgraph.Client
}

func NewSiteOnenoteNotebookSectionGroupSectionPageClientWithBaseURI

func NewSiteOnenoteNotebookSectionGroupSectionPageClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteOnenoteNotebookSectionGroupSectionPageClient, error)

func (SiteOnenoteNotebookSectionGroupSectionPageClient) CopySiteOnenoteNotebookSectionGroupSectionPageToSection

CopySiteOnenoteNotebookSectionGroupSectionPageToSection - 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 (SiteOnenoteNotebookSectionGroupSectionPageClient) CreateSiteOnenoteNotebookSectionGroupSectionPage

CreateSiteOnenoteNotebookSectionGroupSectionPage - Create new navigation property to pages for groups

func (SiteOnenoteNotebookSectionGroupSectionPageClient) DeleteSiteOnenoteNotebookSectionGroupSectionPage

DeleteSiteOnenoteNotebookSectionGroupSectionPage - Delete navigation property pages for groups

func (SiteOnenoteNotebookSectionGroupSectionPageClient) GetSiteOnenoteNotebookSectionGroupSectionPage

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

func (SiteOnenoteNotebookSectionGroupSectionPageClient) GetSiteOnenoteNotebookSectionGroupSectionPagesCount

GetSiteOnenoteNotebookSectionGroupSectionPagesCount - Get the number of the resource

func (SiteOnenoteNotebookSectionGroupSectionPageClient) ListSiteOnenoteNotebookSectionGroupSectionPages

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

func (SiteOnenoteNotebookSectionGroupSectionPageClient) ListSiteOnenoteNotebookSectionGroupSectionPagesComplete

ListSiteOnenoteNotebookSectionGroupSectionPagesComplete retrieves all the results into a single object

func (SiteOnenoteNotebookSectionGroupSectionPageClient) ListSiteOnenoteNotebookSectionGroupSectionPagesCompleteMatchingPredicate

ListSiteOnenoteNotebookSectionGroupSectionPagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteOnenoteNotebookSectionGroupSectionPageClient) UpdateSiteOnenoteNotebookSectionGroupSectionPage

UpdateSiteOnenoteNotebookSectionGroupSectionPage - Update the navigation property pages in groups

type UpdateSiteOnenoteNotebookSectionGroupSectionPageOperationOptions

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

func (UpdateSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToHeaders

func (UpdateSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToOData

func (UpdateSiteOnenoteNotebookSectionGroupSectionPageOperationOptions) ToQuery

type UpdateSiteOnenoteNotebookSectionGroupSectionPageOperationResponse

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