siteonenotepage

package
v0.20241209.1115630 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

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

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

Client Initialization

client := siteonenotepage.NewSiteOnenotePageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteOnenotePageClient.CopySiteOnenotePageToSection

ctx := context.TODO()
id := siteonenotepage.NewGroupIdSiteIdOnenotePageID("groupId", "siteId", "onenotePageId")

payload := siteonenotepage.CopySiteOnenotePageToSectionRequest{
	// ...
}


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

Example Usage: SiteOnenotePageClient.CreateSiteOnenotePage

ctx := context.TODO()
id := siteonenotepage.NewGroupIdSiteID("groupId", "siteId")

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


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

Example Usage: SiteOnenotePageClient.CreateSiteOnenotePageOnenotePatchContent

ctx := context.TODO()
id := siteonenotepage.NewGroupIdSiteIdOnenotePageID("groupId", "siteId", "onenotePageId")

payload := siteonenotepage.CreateSiteOnenotePageOnenotePatchContentRequest{
	// ...
}


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

Example Usage: SiteOnenotePageClient.DeleteSiteOnenotePage

ctx := context.TODO()
id := siteonenotepage.NewGroupIdSiteIdOnenotePageID("groupId", "siteId", "onenotePageId")

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

Example Usage: SiteOnenotePageClient.GetSiteOnenotePage

ctx := context.TODO()
id := siteonenotepage.NewGroupIdSiteIdOnenotePageID("groupId", "siteId", "onenotePageId")

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

Example Usage: SiteOnenotePageClient.GetSiteOnenotePagesCount

ctx := context.TODO()
id := siteonenotepage.NewGroupIdSiteID("groupId", "siteId")

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

Example Usage: SiteOnenotePageClient.ListSiteOnenotePages

ctx := context.TODO()
id := siteonenotepage.NewGroupIdSiteID("groupId", "siteId")

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

Example Usage: SiteOnenotePageClient.UpdateSiteOnenotePage

ctx := context.TODO()
id := siteonenotepage.NewGroupIdSiteIdOnenotePageID("groupId", "siteId", "onenotePageId")

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


read, err := client.UpdateSiteOnenotePage(ctx, id, payload, siteonenotepage.DefaultUpdateSiteOnenotePageOperationOptions())
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 CopySiteOnenotePageToSectionOperationOptions

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

func DefaultCopySiteOnenotePageToSectionOperationOptions

func DefaultCopySiteOnenotePageToSectionOperationOptions() CopySiteOnenotePageToSectionOperationOptions

func (CopySiteOnenotePageToSectionOperationOptions) ToHeaders

func (CopySiteOnenotePageToSectionOperationOptions) ToOData

func (CopySiteOnenotePageToSectionOperationOptions) ToQuery

type CopySiteOnenotePageToSectionOperationResponse

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

type CopySiteOnenotePageToSectionRequest

type CopySiteOnenotePageToSectionRequest 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 CreateSiteOnenotePageOnenotePatchContentOperationOptions

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

func (CreateSiteOnenotePageOnenotePatchContentOperationOptions) ToHeaders

func (CreateSiteOnenotePageOnenotePatchContentOperationOptions) ToOData

func (CreateSiteOnenotePageOnenotePatchContentOperationOptions) ToQuery

type CreateSiteOnenotePageOnenotePatchContentOperationResponse

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

type CreateSiteOnenotePageOnenotePatchContentRequest

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

type CreateSiteOnenotePageOperationOptions

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

func DefaultCreateSiteOnenotePageOperationOptions

func DefaultCreateSiteOnenotePageOperationOptions() CreateSiteOnenotePageOperationOptions

func (CreateSiteOnenotePageOperationOptions) ToHeaders

func (CreateSiteOnenotePageOperationOptions) ToOData

func (CreateSiteOnenotePageOperationOptions) ToQuery

type CreateSiteOnenotePageOperationResponse

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

type DeleteSiteOnenotePageOperationOptions

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

func DefaultDeleteSiteOnenotePageOperationOptions

func DefaultDeleteSiteOnenotePageOperationOptions() DeleteSiteOnenotePageOperationOptions

func (DeleteSiteOnenotePageOperationOptions) ToHeaders

func (DeleteSiteOnenotePageOperationOptions) ToOData

func (DeleteSiteOnenotePageOperationOptions) ToQuery

type DeleteSiteOnenotePageOperationResponse

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

type GetSiteOnenotePageOperationOptions

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

func DefaultGetSiteOnenotePageOperationOptions

func DefaultGetSiteOnenotePageOperationOptions() GetSiteOnenotePageOperationOptions

func (GetSiteOnenotePageOperationOptions) ToHeaders

func (GetSiteOnenotePageOperationOptions) ToOData

func (GetSiteOnenotePageOperationOptions) ToQuery

type GetSiteOnenotePageOperationResponse

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

type GetSiteOnenotePagesCountOperationOptions

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

func DefaultGetSiteOnenotePagesCountOperationOptions

func DefaultGetSiteOnenotePagesCountOperationOptions() GetSiteOnenotePagesCountOperationOptions

func (GetSiteOnenotePagesCountOperationOptions) ToHeaders

func (GetSiteOnenotePagesCountOperationOptions) ToOData

func (GetSiteOnenotePagesCountOperationOptions) ToQuery

type GetSiteOnenotePagesCountOperationResponse

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

type ListSiteOnenotePagesCompleteResult

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

type ListSiteOnenotePagesCustomPager

type ListSiteOnenotePagesCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListSiteOnenotePagesCustomPager) NextPageLink() *odata.Link

type ListSiteOnenotePagesOperationOptions

type ListSiteOnenotePagesOperationOptions 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 DefaultListSiteOnenotePagesOperationOptions

func DefaultListSiteOnenotePagesOperationOptions() ListSiteOnenotePagesOperationOptions

func (ListSiteOnenotePagesOperationOptions) ToHeaders

func (ListSiteOnenotePagesOperationOptions) ToOData

func (ListSiteOnenotePagesOperationOptions) ToQuery

type ListSiteOnenotePagesOperationResponse

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

type OnenotePageOperationPredicate

type OnenotePageOperationPredicate struct {
}

func (OnenotePageOperationPredicate) Matches

type SiteOnenotePageClient

type SiteOnenotePageClient struct {
	Client *msgraph.Client
}

func NewSiteOnenotePageClientWithBaseURI

func NewSiteOnenotePageClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteOnenotePageClient, error)

func (SiteOnenotePageClient) CopySiteOnenotePageToSection

CopySiteOnenotePageToSection - 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 (SiteOnenotePageClient) CreateSiteOnenotePage

CreateSiteOnenotePage - Create new navigation property to pages for groups

func (SiteOnenotePageClient) CreateSiteOnenotePageOnenotePatchContent

CreateSiteOnenotePageOnenotePatchContent - Invoke action onenotePatchContent

func (SiteOnenotePageClient) DeleteSiteOnenotePage

DeleteSiteOnenotePage - Delete navigation property pages for groups

func (SiteOnenotePageClient) GetSiteOnenotePage

GetSiteOnenotePage - Get pages from groups. The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.

func (SiteOnenotePageClient) GetSiteOnenotePagesCount

GetSiteOnenotePagesCount - Get the number of the resource

func (SiteOnenotePageClient) ListSiteOnenotePages

ListSiteOnenotePages - Get pages from groups. The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.

func (SiteOnenotePageClient) ListSiteOnenotePagesComplete

ListSiteOnenotePagesComplete retrieves all the results into a single object

func (SiteOnenotePageClient) ListSiteOnenotePagesCompleteMatchingPredicate

func (c SiteOnenotePageClient) ListSiteOnenotePagesCompleteMatchingPredicate(ctx context.Context, id beta.GroupIdSiteId, options ListSiteOnenotePagesOperationOptions, predicate OnenotePageOperationPredicate) (result ListSiteOnenotePagesCompleteResult, err error)

ListSiteOnenotePagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteOnenotePageClient) UpdateSiteOnenotePage

UpdateSiteOnenotePage - Update the navigation property pages in groups

type UpdateSiteOnenotePageOperationOptions

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

func DefaultUpdateSiteOnenotePageOperationOptions

func DefaultUpdateSiteOnenotePageOperationOptions() UpdateSiteOnenotePageOperationOptions

func (UpdateSiteOnenotePageOperationOptions) ToHeaders

func (UpdateSiteOnenotePageOperationOptions) ToOData

func (UpdateSiteOnenotePageOperationOptions) ToQuery

type UpdateSiteOnenotePageOperationResponse

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