siteonenotesectiongroupsectionpage

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/siteonenotesectiongroupsectionpage Documentation

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

Client Initialization

client := siteonenotesectiongroupsectionpage.NewSiteOnenoteSectionGroupSectionPageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteOnenoteSectionGroupSectionPageClient.CopySiteOnenoteSectionGroupSectionPageToSection

ctx := context.TODO()
id := siteonenotesectiongroupsectionpage.NewGroupIdSiteIdOnenoteSectionGroupIdSectionIdPageID("groupId", "siteId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

payload := siteonenotesectiongroupsectionpage.CopySiteOnenoteSectionGroupSectionPageToSectionRequest{
	// ...
}


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

Example Usage: SiteOnenoteSectionGroupSectionPageClient.CreateSiteOnenoteSectionGroupSectionPage

ctx := context.TODO()
id := siteonenotesectiongroupsectionpage.NewGroupIdSiteIdOnenoteSectionGroupIdSectionID("groupId", "siteId", "sectionGroupId", "onenoteSectionId")

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


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

Example Usage: SiteOnenoteSectionGroupSectionPageClient.CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContent

ctx := context.TODO()
id := siteonenotesectiongroupsectionpage.NewGroupIdSiteIdOnenoteSectionGroupIdSectionIdPageID("groupId", "siteId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

payload := siteonenotesectiongroupsectionpage.CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContentRequest{
	// ...
}


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

Example Usage: SiteOnenoteSectionGroupSectionPageClient.DeleteSiteOnenoteSectionGroupSectionPage

ctx := context.TODO()
id := siteonenotesectiongroupsectionpage.NewGroupIdSiteIdOnenoteSectionGroupIdSectionIdPageID("groupId", "siteId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

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

Example Usage: SiteOnenoteSectionGroupSectionPageClient.GetSiteOnenoteSectionGroupSectionPage

ctx := context.TODO()
id := siteonenotesectiongroupsectionpage.NewGroupIdSiteIdOnenoteSectionGroupIdSectionIdPageID("groupId", "siteId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

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

Example Usage: SiteOnenoteSectionGroupSectionPageClient.GetSiteOnenoteSectionGroupSectionPagesCount

ctx := context.TODO()
id := siteonenotesectiongroupsectionpage.NewGroupIdSiteIdOnenoteSectionGroupIdSectionID("groupId", "siteId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: SiteOnenoteSectionGroupSectionPageClient.ListSiteOnenoteSectionGroupSectionPages

ctx := context.TODO()
id := siteonenotesectiongroupsectionpage.NewGroupIdSiteIdOnenoteSectionGroupIdSectionID("groupId", "siteId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: SiteOnenoteSectionGroupSectionPageClient.UpdateSiteOnenoteSectionGroupSectionPage

ctx := context.TODO()
id := siteonenotesectiongroupsectionpage.NewGroupIdSiteIdOnenoteSectionGroupIdSectionIdPageID("groupId", "siteId", "sectionGroupId", "onenoteSectionId", "onenotePageId")

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


read, err := client.UpdateSiteOnenoteSectionGroupSectionPage(ctx, id, payload, siteonenotesectiongroupsectionpage.DefaultUpdateSiteOnenoteSectionGroupSectionPageOperationOptions())
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 CopySiteOnenoteSectionGroupSectionPageToSectionOperationOptions

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

func (CopySiteOnenoteSectionGroupSectionPageToSectionOperationOptions) ToHeaders

func (CopySiteOnenoteSectionGroupSectionPageToSectionOperationOptions) ToOData

func (CopySiteOnenoteSectionGroupSectionPageToSectionOperationOptions) ToQuery

type CopySiteOnenoteSectionGroupSectionPageToSectionOperationResponse

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

type CopySiteOnenoteSectionGroupSectionPageToSectionRequest

type CopySiteOnenoteSectionGroupSectionPageToSectionRequest 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 CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContentOperationOptions

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

func (CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContentOperationOptions) ToHeaders

func (CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContentOperationOptions) ToOData

func (CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContentOperationOptions) ToQuery

type CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContentOperationResponse

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

type CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContentRequest

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

type CreateSiteOnenoteSectionGroupSectionPageOperationOptions

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

func (CreateSiteOnenoteSectionGroupSectionPageOperationOptions) ToHeaders

func (CreateSiteOnenoteSectionGroupSectionPageOperationOptions) ToOData

func (CreateSiteOnenoteSectionGroupSectionPageOperationOptions) ToQuery

type CreateSiteOnenoteSectionGroupSectionPageOperationResponse

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

type DeleteSiteOnenoteSectionGroupSectionPageOperationOptions

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

func (DeleteSiteOnenoteSectionGroupSectionPageOperationOptions) ToHeaders

func (DeleteSiteOnenoteSectionGroupSectionPageOperationOptions) ToOData

func (DeleteSiteOnenoteSectionGroupSectionPageOperationOptions) ToQuery

type DeleteSiteOnenoteSectionGroupSectionPageOperationResponse

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

type GetSiteOnenoteSectionGroupSectionPageOperationOptions

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

func DefaultGetSiteOnenoteSectionGroupSectionPageOperationOptions

func DefaultGetSiteOnenoteSectionGroupSectionPageOperationOptions() GetSiteOnenoteSectionGroupSectionPageOperationOptions

func (GetSiteOnenoteSectionGroupSectionPageOperationOptions) ToHeaders

func (GetSiteOnenoteSectionGroupSectionPageOperationOptions) ToOData

func (GetSiteOnenoteSectionGroupSectionPageOperationOptions) ToQuery

type GetSiteOnenoteSectionGroupSectionPageOperationResponse

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

type GetSiteOnenoteSectionGroupSectionPagesCountOperationOptions

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

func (GetSiteOnenoteSectionGroupSectionPagesCountOperationOptions) ToHeaders

func (GetSiteOnenoteSectionGroupSectionPagesCountOperationOptions) ToOData

func (GetSiteOnenoteSectionGroupSectionPagesCountOperationOptions) ToQuery

type GetSiteOnenoteSectionGroupSectionPagesCountOperationResponse

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

type ListSiteOnenoteSectionGroupSectionPagesCompleteResult

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

type ListSiteOnenoteSectionGroupSectionPagesCustomPager

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

type ListSiteOnenoteSectionGroupSectionPagesOperationOptions

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

func (ListSiteOnenoteSectionGroupSectionPagesOperationOptions) ToOData

func (ListSiteOnenoteSectionGroupSectionPagesOperationOptions) ToQuery

type ListSiteOnenoteSectionGroupSectionPagesOperationResponse

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

type OnenotePageOperationPredicate

type OnenotePageOperationPredicate struct {
}

func (OnenotePageOperationPredicate) Matches

type SiteOnenoteSectionGroupSectionPageClient

type SiteOnenoteSectionGroupSectionPageClient struct {
	Client *msgraph.Client
}

func NewSiteOnenoteSectionGroupSectionPageClientWithBaseURI

func NewSiteOnenoteSectionGroupSectionPageClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteOnenoteSectionGroupSectionPageClient, error)

func (SiteOnenoteSectionGroupSectionPageClient) CopySiteOnenoteSectionGroupSectionPageToSection

CopySiteOnenoteSectionGroupSectionPageToSection - 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 (SiteOnenoteSectionGroupSectionPageClient) CreateSiteOnenoteSectionGroupSectionPage

CreateSiteOnenoteSectionGroupSectionPage - Create new navigation property to pages for groups

func (SiteOnenoteSectionGroupSectionPageClient) CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContent

CreateSiteOnenoteSectionGroupSectionPageOnenotePatchContent - Invoke action onenotePatchContent

func (SiteOnenoteSectionGroupSectionPageClient) DeleteSiteOnenoteSectionGroupSectionPage

DeleteSiteOnenoteSectionGroupSectionPage - Delete navigation property pages for groups

func (SiteOnenoteSectionGroupSectionPageClient) GetSiteOnenoteSectionGroupSectionPage

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

func (SiteOnenoteSectionGroupSectionPageClient) GetSiteOnenoteSectionGroupSectionPagesCount

GetSiteOnenoteSectionGroupSectionPagesCount - Get the number of the resource

func (SiteOnenoteSectionGroupSectionPageClient) ListSiteOnenoteSectionGroupSectionPages

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

func (SiteOnenoteSectionGroupSectionPageClient) ListSiteOnenoteSectionGroupSectionPagesComplete

ListSiteOnenoteSectionGroupSectionPagesComplete retrieves all the results into a single object

func (SiteOnenoteSectionGroupSectionPageClient) ListSiteOnenoteSectionGroupSectionPagesCompleteMatchingPredicate

ListSiteOnenoteSectionGroupSectionPagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteOnenoteSectionGroupSectionPageClient) UpdateSiteOnenoteSectionGroupSectionPage

UpdateSiteOnenoteSectionGroupSectionPage - Update the navigation property pages in groups

type UpdateSiteOnenoteSectionGroupSectionPageOperationOptions

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

func (UpdateSiteOnenoteSectionGroupSectionPageOperationOptions) ToHeaders

func (UpdateSiteOnenoteSectionGroupSectionPageOperationOptions) ToOData

func (UpdateSiteOnenoteSectionGroupSectionPageOperationOptions) ToQuery

type UpdateSiteOnenoteSectionGroupSectionPageOperationResponse

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