onenotesection

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: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/onenotesection Documentation

The onenotesection SDK allows for interaction with Microsoft Graph me (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/me/beta/onenotesection"

Client Initialization

client := onenotesection.NewOnenoteSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OnenoteSectionClient.CopyOnenoteSectionToNotebook

ctx := context.TODO()
id := onenotesection.NewMeOnenoteSectionID("onenoteSectionId")

payload := onenotesection.CopyOnenoteSectionToNotebookRequest{
	// ...
}


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

Example Usage: OnenoteSectionClient.CopyOnenoteSectionToSectionGroup

ctx := context.TODO()
id := onenotesection.NewMeOnenoteSectionID("onenoteSectionId")

payload := onenotesection.CopyOnenoteSectionToSectionGroupRequest{
	// ...
}


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

Example Usage: OnenoteSectionClient.CreateOnenoteSection

ctx := context.TODO()

payload := onenotesection.OnenoteSection{
	// ...
}


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

Example Usage: OnenoteSectionClient.DeleteOnenoteSection

ctx := context.TODO()
id := onenotesection.NewMeOnenoteSectionID("onenoteSectionId")

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

Example Usage: OnenoteSectionClient.GetOnenoteSection

ctx := context.TODO()
id := onenotesection.NewMeOnenoteSectionID("onenoteSectionId")

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

Example Usage: OnenoteSectionClient.GetOnenoteSectionsCount

ctx := context.TODO()


read, err := client.GetOnenoteSectionsCount(ctx, onenotesection.DefaultGetOnenoteSectionsCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OnenoteSectionClient.ListOnenoteSections

ctx := context.TODO()


// alternatively `client.ListOnenoteSections(ctx, onenotesection.DefaultListOnenoteSectionsOperationOptions())` can be used to do batched pagination
items, err := client.ListOnenoteSectionsComplete(ctx, onenotesection.DefaultListOnenoteSectionsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: OnenoteSectionClient.UpdateOnenoteSection

ctx := context.TODO()
id := onenotesection.NewMeOnenoteSectionID("onenoteSectionId")

payload := onenotesection.OnenoteSection{
	// ...
}


read, err := client.UpdateOnenoteSection(ctx, id, payload, onenotesection.DefaultUpdateOnenoteSectionOperationOptions())
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 CopyOnenoteSectionToNotebookOperationOptions

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

func DefaultCopyOnenoteSectionToNotebookOperationOptions

func DefaultCopyOnenoteSectionToNotebookOperationOptions() CopyOnenoteSectionToNotebookOperationOptions

func (CopyOnenoteSectionToNotebookOperationOptions) ToHeaders

func (CopyOnenoteSectionToNotebookOperationOptions) ToOData

func (CopyOnenoteSectionToNotebookOperationOptions) ToQuery

type CopyOnenoteSectionToNotebookOperationResponse

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

type CopyOnenoteSectionToNotebookRequest

type CopyOnenoteSectionToNotebookRequest struct {
	GroupId          nullable.Type[string] `json:"groupId,omitempty"`
	Id               nullable.Type[string] `json:"id,omitempty"`
	RenameAs         nullable.Type[string] `json:"renameAs,omitempty"`
	SiteCollectionId nullable.Type[string] `json:"siteCollectionId,omitempty"`
	SiteId           nullable.Type[string] `json:"siteId,omitempty"`
}

type CopyOnenoteSectionToSectionGroupOperationOptions

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

func DefaultCopyOnenoteSectionToSectionGroupOperationOptions

func DefaultCopyOnenoteSectionToSectionGroupOperationOptions() CopyOnenoteSectionToSectionGroupOperationOptions

func (CopyOnenoteSectionToSectionGroupOperationOptions) ToHeaders

func (CopyOnenoteSectionToSectionGroupOperationOptions) ToOData

func (CopyOnenoteSectionToSectionGroupOperationOptions) ToQuery

type CopyOnenoteSectionToSectionGroupOperationResponse

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

type CopyOnenoteSectionToSectionGroupRequest

type CopyOnenoteSectionToSectionGroupRequest struct {
	GroupId          nullable.Type[string] `json:"groupId,omitempty"`
	Id               nullable.Type[string] `json:"id,omitempty"`
	RenameAs         nullable.Type[string] `json:"renameAs,omitempty"`
	SiteCollectionId nullable.Type[string] `json:"siteCollectionId,omitempty"`
	SiteId           nullable.Type[string] `json:"siteId,omitempty"`
}

type CreateOnenoteSectionOperationOptions

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

func DefaultCreateOnenoteSectionOperationOptions

func DefaultCreateOnenoteSectionOperationOptions() CreateOnenoteSectionOperationOptions

func (CreateOnenoteSectionOperationOptions) ToHeaders

func (CreateOnenoteSectionOperationOptions) ToOData

func (CreateOnenoteSectionOperationOptions) ToQuery

type CreateOnenoteSectionOperationResponse

type CreateOnenoteSectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.OnenoteSection
}

type DeleteOnenoteSectionOperationOptions

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

func DefaultDeleteOnenoteSectionOperationOptions

func DefaultDeleteOnenoteSectionOperationOptions() DeleteOnenoteSectionOperationOptions

func (DeleteOnenoteSectionOperationOptions) ToHeaders

func (DeleteOnenoteSectionOperationOptions) ToOData

func (DeleteOnenoteSectionOperationOptions) ToQuery

type DeleteOnenoteSectionOperationResponse

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

type GetOnenoteSectionOperationOptions

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

func DefaultGetOnenoteSectionOperationOptions

func DefaultGetOnenoteSectionOperationOptions() GetOnenoteSectionOperationOptions

func (GetOnenoteSectionOperationOptions) ToHeaders

func (GetOnenoteSectionOperationOptions) ToOData

func (GetOnenoteSectionOperationOptions) ToQuery

type GetOnenoteSectionOperationResponse

type GetOnenoteSectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.OnenoteSection
}

type GetOnenoteSectionsCountOperationOptions

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

func DefaultGetOnenoteSectionsCountOperationOptions

func DefaultGetOnenoteSectionsCountOperationOptions() GetOnenoteSectionsCountOperationOptions

func (GetOnenoteSectionsCountOperationOptions) ToHeaders

func (GetOnenoteSectionsCountOperationOptions) ToOData

func (GetOnenoteSectionsCountOperationOptions) ToQuery

type GetOnenoteSectionsCountOperationResponse

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

type ListOnenoteSectionsCompleteResult

type ListOnenoteSectionsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.OnenoteSection
}

type ListOnenoteSectionsCustomPager

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

type ListOnenoteSectionsOperationOptions

type ListOnenoteSectionsOperationOptions 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 DefaultListOnenoteSectionsOperationOptions

func DefaultListOnenoteSectionsOperationOptions() ListOnenoteSectionsOperationOptions

func (ListOnenoteSectionsOperationOptions) ToHeaders

func (ListOnenoteSectionsOperationOptions) ToOData

func (ListOnenoteSectionsOperationOptions) ToQuery

type ListOnenoteSectionsOperationResponse

type ListOnenoteSectionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.OnenoteSection
}

type OnenoteSectionClient

type OnenoteSectionClient struct {
	Client *msgraph.Client
}

func NewOnenoteSectionClientWithBaseURI

func NewOnenoteSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteSectionClient, error)

func (OnenoteSectionClient) CopyOnenoteSectionToNotebook

CopyOnenoteSectionToNotebook - Invoke action copyToNotebook. Copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.

func (OnenoteSectionClient) CopyOnenoteSectionToSectionGroup

CopyOnenoteSectionToSectionGroup - Invoke action copyToSectionGroup. Copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.

func (OnenoteSectionClient) CreateOnenoteSection

CreateOnenoteSection - Create new navigation property to sections for me

func (OnenoteSectionClient) DeleteOnenoteSection

DeleteOnenoteSection - Delete navigation property sections for me

func (OnenoteSectionClient) GetOnenoteSection

GetOnenoteSection - Get section. Retrieve the properties and relationships of a section object.

func (OnenoteSectionClient) GetOnenoteSectionsCount

GetOnenoteSectionsCount - Get the number of the resource

func (OnenoteSectionClient) ListOnenoteSections

ListOnenoteSections - List sections. Retrieve a list of section objects.

func (OnenoteSectionClient) ListOnenoteSectionsComplete

ListOnenoteSectionsComplete retrieves all the results into a single object

func (OnenoteSectionClient) ListOnenoteSectionsCompleteMatchingPredicate

func (c OnenoteSectionClient) ListOnenoteSectionsCompleteMatchingPredicate(ctx context.Context, options ListOnenoteSectionsOperationOptions, predicate OnenoteSectionOperationPredicate) (result ListOnenoteSectionsCompleteResult, err error)

ListOnenoteSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OnenoteSectionClient) UpdateOnenoteSection

UpdateOnenoteSection - Update the navigation property sections in me

type OnenoteSectionOperationPredicate

type OnenoteSectionOperationPredicate struct {
}

func (OnenoteSectionOperationPredicate) Matches

type UpdateOnenoteSectionOperationOptions

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

func DefaultUpdateOnenoteSectionOperationOptions

func DefaultUpdateOnenoteSectionOperationOptions() UpdateOnenoteSectionOperationOptions

func (UpdateOnenoteSectionOperationOptions) ToHeaders

func (UpdateOnenoteSectionOperationOptions) ToOData

func (UpdateOnenoteSectionOperationOptions) ToQuery

type UpdateOnenoteSectionOperationResponse

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