onenotesectiongroupsectionpage

package
v0.20241021.1074254 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := onenotesectiongroupsectionpage.NewOnenoteSectionGroupSectionPageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OnenoteSectionGroupSectionPageClient.CopyOnenoteSectionGroupSectionPageToSection

ctx := context.TODO()
id := onenotesectiongroupsectionpage.NewUserIdOnenoteSectionGroupIdSectionIdPageID("userId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

payload := onenotesectiongroupsectionpage.CopyOnenoteSectionGroupSectionPageToSectionRequest{
	// ...
}


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

Example Usage: OnenoteSectionGroupSectionPageClient.CreateOnenoteSectionGroupSectionPage

ctx := context.TODO()
id := onenotesectiongroupsectionpage.NewUserIdOnenoteSectionGroupIdSectionID("userId", "sectionGroupId", "onenoteSectionId")

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


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

Example Usage: OnenoteSectionGroupSectionPageClient.CreateOnenoteSectionGroupSectionPageOnenotePatchContent

ctx := context.TODO()
id := onenotesectiongroupsectionpage.NewUserIdOnenoteSectionGroupIdSectionIdPageID("userId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

payload := onenotesectiongroupsectionpage.CreateOnenoteSectionGroupSectionPageOnenotePatchContentRequest{
	// ...
}


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

Example Usage: OnenoteSectionGroupSectionPageClient.DeleteOnenoteSectionGroupSectionPage

ctx := context.TODO()
id := onenotesectiongroupsectionpage.NewUserIdOnenoteSectionGroupIdSectionIdPageID("userId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

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

Example Usage: OnenoteSectionGroupSectionPageClient.GetOnenoteSectionGroupSectionPage

ctx := context.TODO()
id := onenotesectiongroupsectionpage.NewUserIdOnenoteSectionGroupIdSectionIdPageID("userId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

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

Example Usage: OnenoteSectionGroupSectionPageClient.GetOnenoteSectionGroupSectionPagesCount

ctx := context.TODO()
id := onenotesectiongroupsectionpage.NewUserIdOnenoteSectionGroupIdSectionID("userId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: OnenoteSectionGroupSectionPageClient.ListOnenoteSectionGroupSectionPages

ctx := context.TODO()
id := onenotesectiongroupsectionpage.NewUserIdOnenoteSectionGroupIdSectionID("userId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: OnenoteSectionGroupSectionPageClient.UpdateOnenoteSectionGroupSectionPage

ctx := context.TODO()
id := onenotesectiongroupsectionpage.NewUserIdOnenoteSectionGroupIdSectionIdPageID("userId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

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


read, err := client.UpdateOnenoteSectionGroupSectionPage(ctx, id, payload, onenotesectiongroupsectionpage.DefaultUpdateOnenoteSectionGroupSectionPageOperationOptions())
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 CopyOnenoteSectionGroupSectionPageToSectionOperationOptions

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

func (CopyOnenoteSectionGroupSectionPageToSectionOperationOptions) ToHeaders

func (CopyOnenoteSectionGroupSectionPageToSectionOperationOptions) ToOData

func (CopyOnenoteSectionGroupSectionPageToSectionOperationOptions) ToQuery

type CopyOnenoteSectionGroupSectionPageToSectionOperationResponse

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

type CopyOnenoteSectionGroupSectionPageToSectionRequest

type CopyOnenoteSectionGroupSectionPageToSectionRequest 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 CreateOnenoteSectionGroupSectionPageOnenotePatchContentOperationOptions

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

func (CreateOnenoteSectionGroupSectionPageOnenotePatchContentOperationOptions) ToHeaders

func (CreateOnenoteSectionGroupSectionPageOnenotePatchContentOperationOptions) ToOData

func (CreateOnenoteSectionGroupSectionPageOnenotePatchContentOperationOptions) ToQuery

type CreateOnenoteSectionGroupSectionPageOnenotePatchContentOperationResponse

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

type CreateOnenoteSectionGroupSectionPageOnenotePatchContentRequest

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

type CreateOnenoteSectionGroupSectionPageOperationOptions

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

func DefaultCreateOnenoteSectionGroupSectionPageOperationOptions

func DefaultCreateOnenoteSectionGroupSectionPageOperationOptions() CreateOnenoteSectionGroupSectionPageOperationOptions

func (CreateOnenoteSectionGroupSectionPageOperationOptions) ToHeaders

func (CreateOnenoteSectionGroupSectionPageOperationOptions) ToOData

func (CreateOnenoteSectionGroupSectionPageOperationOptions) ToQuery

type CreateOnenoteSectionGroupSectionPageOperationResponse

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

type DeleteOnenoteSectionGroupSectionPageOperationOptions

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

func DefaultDeleteOnenoteSectionGroupSectionPageOperationOptions

func DefaultDeleteOnenoteSectionGroupSectionPageOperationOptions() DeleteOnenoteSectionGroupSectionPageOperationOptions

func (DeleteOnenoteSectionGroupSectionPageOperationOptions) ToHeaders

func (DeleteOnenoteSectionGroupSectionPageOperationOptions) ToOData

func (DeleteOnenoteSectionGroupSectionPageOperationOptions) ToQuery

type DeleteOnenoteSectionGroupSectionPageOperationResponse

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

type GetOnenoteSectionGroupSectionPageOperationOptions

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

func DefaultGetOnenoteSectionGroupSectionPageOperationOptions

func DefaultGetOnenoteSectionGroupSectionPageOperationOptions() GetOnenoteSectionGroupSectionPageOperationOptions

func (GetOnenoteSectionGroupSectionPageOperationOptions) ToHeaders

func (GetOnenoteSectionGroupSectionPageOperationOptions) ToOData

func (GetOnenoteSectionGroupSectionPageOperationOptions) ToQuery

type GetOnenoteSectionGroupSectionPageOperationResponse

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

type GetOnenoteSectionGroupSectionPagesCountOperationOptions

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

func (GetOnenoteSectionGroupSectionPagesCountOperationOptions) ToHeaders

func (GetOnenoteSectionGroupSectionPagesCountOperationOptions) ToOData

func (GetOnenoteSectionGroupSectionPagesCountOperationOptions) ToQuery

type GetOnenoteSectionGroupSectionPagesCountOperationResponse

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

type ListOnenoteSectionGroupSectionPagesCompleteResult

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

type ListOnenoteSectionGroupSectionPagesCustomPager

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

type ListOnenoteSectionGroupSectionPagesOperationOptions

type ListOnenoteSectionGroupSectionPagesOperationOptions 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 DefaultListOnenoteSectionGroupSectionPagesOperationOptions

func DefaultListOnenoteSectionGroupSectionPagesOperationOptions() ListOnenoteSectionGroupSectionPagesOperationOptions

func (ListOnenoteSectionGroupSectionPagesOperationOptions) ToHeaders

func (ListOnenoteSectionGroupSectionPagesOperationOptions) ToOData

func (ListOnenoteSectionGroupSectionPagesOperationOptions) ToQuery

type ListOnenoteSectionGroupSectionPagesOperationResponse

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

type OnenotePageOperationPredicate

type OnenotePageOperationPredicate struct {
}

func (OnenotePageOperationPredicate) Matches

type OnenoteSectionGroupSectionPageClient

type OnenoteSectionGroupSectionPageClient struct {
	Client *msgraph.Client
}

func NewOnenoteSectionGroupSectionPageClientWithBaseURI

func NewOnenoteSectionGroupSectionPageClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteSectionGroupSectionPageClient, error)

func (OnenoteSectionGroupSectionPageClient) CopyOnenoteSectionGroupSectionPageToSection

CopyOnenoteSectionGroupSectionPageToSection - 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 (OnenoteSectionGroupSectionPageClient) CreateOnenoteSectionGroupSectionPage

CreateOnenoteSectionGroupSectionPage - Create new navigation property to pages for users

func (OnenoteSectionGroupSectionPageClient) CreateOnenoteSectionGroupSectionPageOnenotePatchContent

CreateOnenoteSectionGroupSectionPageOnenotePatchContent - Invoke action onenotePatchContent

func (OnenoteSectionGroupSectionPageClient) DeleteOnenoteSectionGroupSectionPage

DeleteOnenoteSectionGroupSectionPage - Delete navigation property pages for users

func (OnenoteSectionGroupSectionPageClient) GetOnenoteSectionGroupSectionPage

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

func (OnenoteSectionGroupSectionPageClient) GetOnenoteSectionGroupSectionPagesCount

GetOnenoteSectionGroupSectionPagesCount - Get the number of the resource

func (OnenoteSectionGroupSectionPageClient) ListOnenoteSectionGroupSectionPages

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

func (OnenoteSectionGroupSectionPageClient) ListOnenoteSectionGroupSectionPagesComplete

ListOnenoteSectionGroupSectionPagesComplete retrieves all the results into a single object

func (OnenoteSectionGroupSectionPageClient) ListOnenoteSectionGroupSectionPagesCompleteMatchingPredicate

ListOnenoteSectionGroupSectionPagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OnenoteSectionGroupSectionPageClient) UpdateOnenoteSectionGroupSectionPage

UpdateOnenoteSectionGroupSectionPage - Update the navigation property pages in users

type UpdateOnenoteSectionGroupSectionPageOperationOptions

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

func DefaultUpdateOnenoteSectionGroupSectionPageOperationOptions

func DefaultUpdateOnenoteSectionGroupSectionPageOperationOptions() UpdateOnenoteSectionGroupSectionPageOperationOptions

func (UpdateOnenoteSectionGroupSectionPageOperationOptions) ToHeaders

func (UpdateOnenoteSectionGroupSectionPageOperationOptions) ToOData

func (UpdateOnenoteSectionGroupSectionPageOperationOptions) ToQuery

type UpdateOnenoteSectionGroupSectionPageOperationResponse

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