siteonenotesectionpage

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/groups/beta/siteonenotesectionpage Documentation

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

Client Initialization

client := siteonenotesectionpage.NewSiteOnenoteSectionPageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteOnenoteSectionPageClient.CopySiteOnenoteSectionPageToSection

ctx := context.TODO()
id := siteonenotesectionpage.NewGroupIdSiteIdOnenoteSectionIdPageID("groupId", "siteId", "onenoteSectionId", "onenotePageId")

payload := siteonenotesectionpage.CopySiteOnenoteSectionPageToSectionRequest{
	// ...
}


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

Example Usage: SiteOnenoteSectionPageClient.CreateSiteOnenoteSectionPage

ctx := context.TODO()
id := siteonenotesectionpage.NewGroupIdSiteIdOnenoteSectionID("groupId", "siteId", "onenoteSectionId")

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


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

Example Usage: SiteOnenoteSectionPageClient.CreateSiteOnenoteSectionPageOnenotePatchContent

ctx := context.TODO()
id := siteonenotesectionpage.NewGroupIdSiteIdOnenoteSectionIdPageID("groupId", "siteId", "onenoteSectionId", "onenotePageId")

payload := siteonenotesectionpage.CreateSiteOnenoteSectionPageOnenotePatchContentRequest{
	// ...
}


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

Example Usage: SiteOnenoteSectionPageClient.DeleteSiteOnenoteSectionPage

ctx := context.TODO()
id := siteonenotesectionpage.NewGroupIdSiteIdOnenoteSectionIdPageID("groupId", "siteId", "onenoteSectionId", "onenotePageId")

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

Example Usage: SiteOnenoteSectionPageClient.GetSiteOnenoteSectionPage

ctx := context.TODO()
id := siteonenotesectionpage.NewGroupIdSiteIdOnenoteSectionIdPageID("groupId", "siteId", "onenoteSectionId", "onenotePageId")

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

Example Usage: SiteOnenoteSectionPageClient.GetSiteOnenoteSectionPagesCount

ctx := context.TODO()
id := siteonenotesectionpage.NewGroupIdSiteIdOnenoteSectionID("groupId", "siteId", "onenoteSectionId")

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

Example Usage: SiteOnenoteSectionPageClient.ListSiteOnenoteSectionPages

ctx := context.TODO()
id := siteonenotesectionpage.NewGroupIdSiteIdOnenoteSectionID("groupId", "siteId", "onenoteSectionId")

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

Example Usage: SiteOnenoteSectionPageClient.UpdateSiteOnenoteSectionPage

ctx := context.TODO()
id := siteonenotesectionpage.NewGroupIdSiteIdOnenoteSectionIdPageID("groupId", "siteId", "onenoteSectionId", "onenotePageId")

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


read, err := client.UpdateSiteOnenoteSectionPage(ctx, id, payload, siteonenotesectionpage.DefaultUpdateSiteOnenoteSectionPageOperationOptions())
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 CopySiteOnenoteSectionPageToSectionOperationOptions

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

func DefaultCopySiteOnenoteSectionPageToSectionOperationOptions

func DefaultCopySiteOnenoteSectionPageToSectionOperationOptions() CopySiteOnenoteSectionPageToSectionOperationOptions

func (CopySiteOnenoteSectionPageToSectionOperationOptions) ToHeaders

func (CopySiteOnenoteSectionPageToSectionOperationOptions) ToOData

func (CopySiteOnenoteSectionPageToSectionOperationOptions) ToQuery

type CopySiteOnenoteSectionPageToSectionOperationResponse

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

type CopySiteOnenoteSectionPageToSectionRequest

type CopySiteOnenoteSectionPageToSectionRequest 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 CreateSiteOnenoteSectionPageOnenotePatchContentOperationOptions

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

func (CreateSiteOnenoteSectionPageOnenotePatchContentOperationOptions) ToHeaders

func (CreateSiteOnenoteSectionPageOnenotePatchContentOperationOptions) ToOData

func (CreateSiteOnenoteSectionPageOnenotePatchContentOperationOptions) ToQuery

type CreateSiteOnenoteSectionPageOnenotePatchContentOperationResponse

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

type CreateSiteOnenoteSectionPageOnenotePatchContentRequest

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

type CreateSiteOnenoteSectionPageOperationOptions

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

func DefaultCreateSiteOnenoteSectionPageOperationOptions

func DefaultCreateSiteOnenoteSectionPageOperationOptions() CreateSiteOnenoteSectionPageOperationOptions

func (CreateSiteOnenoteSectionPageOperationOptions) ToHeaders

func (CreateSiteOnenoteSectionPageOperationOptions) ToOData

func (CreateSiteOnenoteSectionPageOperationOptions) ToQuery

type CreateSiteOnenoteSectionPageOperationResponse

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

type DeleteSiteOnenoteSectionPageOperationOptions

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

func DefaultDeleteSiteOnenoteSectionPageOperationOptions

func DefaultDeleteSiteOnenoteSectionPageOperationOptions() DeleteSiteOnenoteSectionPageOperationOptions

func (DeleteSiteOnenoteSectionPageOperationOptions) ToHeaders

func (DeleteSiteOnenoteSectionPageOperationOptions) ToOData

func (DeleteSiteOnenoteSectionPageOperationOptions) ToQuery

type DeleteSiteOnenoteSectionPageOperationResponse

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

type GetSiteOnenoteSectionPageOperationOptions

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

func DefaultGetSiteOnenoteSectionPageOperationOptions

func DefaultGetSiteOnenoteSectionPageOperationOptions() GetSiteOnenoteSectionPageOperationOptions

func (GetSiteOnenoteSectionPageOperationOptions) ToHeaders

func (GetSiteOnenoteSectionPageOperationOptions) ToOData

func (GetSiteOnenoteSectionPageOperationOptions) ToQuery

type GetSiteOnenoteSectionPageOperationResponse

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

type GetSiteOnenoteSectionPagesCountOperationOptions

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

func DefaultGetSiteOnenoteSectionPagesCountOperationOptions

func DefaultGetSiteOnenoteSectionPagesCountOperationOptions() GetSiteOnenoteSectionPagesCountOperationOptions

func (GetSiteOnenoteSectionPagesCountOperationOptions) ToHeaders

func (GetSiteOnenoteSectionPagesCountOperationOptions) ToOData

func (GetSiteOnenoteSectionPagesCountOperationOptions) ToQuery

type GetSiteOnenoteSectionPagesCountOperationResponse

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

type ListSiteOnenoteSectionPagesCompleteResult

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

type ListSiteOnenoteSectionPagesCustomPager

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

type ListSiteOnenoteSectionPagesOperationOptions

type ListSiteOnenoteSectionPagesOperationOptions 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 DefaultListSiteOnenoteSectionPagesOperationOptions

func DefaultListSiteOnenoteSectionPagesOperationOptions() ListSiteOnenoteSectionPagesOperationOptions

func (ListSiteOnenoteSectionPagesOperationOptions) ToHeaders

func (ListSiteOnenoteSectionPagesOperationOptions) ToOData

func (ListSiteOnenoteSectionPagesOperationOptions) ToQuery

type ListSiteOnenoteSectionPagesOperationResponse

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

type OnenotePageOperationPredicate

type OnenotePageOperationPredicate struct {
}

func (OnenotePageOperationPredicate) Matches

type SiteOnenoteSectionPageClient

type SiteOnenoteSectionPageClient struct {
	Client *msgraph.Client
}

func NewSiteOnenoteSectionPageClientWithBaseURI

func NewSiteOnenoteSectionPageClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteOnenoteSectionPageClient, error)

func (SiteOnenoteSectionPageClient) CopySiteOnenoteSectionPageToSection

CopySiteOnenoteSectionPageToSection - 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 (SiteOnenoteSectionPageClient) CreateSiteOnenoteSectionPage

CreateSiteOnenoteSectionPage - Create new navigation property to pages for groups

func (SiteOnenoteSectionPageClient) CreateSiteOnenoteSectionPageOnenotePatchContent

CreateSiteOnenoteSectionPageOnenotePatchContent - Invoke action onenotePatchContent

func (SiteOnenoteSectionPageClient) DeleteSiteOnenoteSectionPage

DeleteSiteOnenoteSectionPage - Delete navigation property pages for groups

func (SiteOnenoteSectionPageClient) GetSiteOnenoteSectionPage

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

func (SiteOnenoteSectionPageClient) GetSiteOnenoteSectionPagesCount

GetSiteOnenoteSectionPagesCount - Get the number of the resource

func (SiteOnenoteSectionPageClient) ListSiteOnenoteSectionPages

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

func (SiteOnenoteSectionPageClient) ListSiteOnenoteSectionPagesComplete

ListSiteOnenoteSectionPagesComplete retrieves all the results into a single object

func (SiteOnenoteSectionPageClient) ListSiteOnenoteSectionPagesCompleteMatchingPredicate

ListSiteOnenoteSectionPagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteOnenoteSectionPageClient) UpdateSiteOnenoteSectionPage

UpdateSiteOnenoteSectionPage - Update the navigation property pages in groups

type UpdateSiteOnenoteSectionPageOperationOptions

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

func DefaultUpdateSiteOnenoteSectionPageOperationOptions

func DefaultUpdateSiteOnenoteSectionPageOperationOptions() UpdateSiteOnenoteSectionPageOperationOptions

func (UpdateSiteOnenoteSectionPageOperationOptions) ToHeaders

func (UpdateSiteOnenoteSectionPageOperationOptions) ToOData

func (UpdateSiteOnenoteSectionPageOperationOptions) ToQuery

type UpdateSiteOnenoteSectionPageOperationResponse

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