onenotesection

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/stable/onenotesection Documentation

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

Client Initialization

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

Example Usage: OnenoteSectionClient.CopyOnenoteSectionToNotebook

ctx := context.TODO()
id := onenotesection.NewGroupIdOnenoteSectionID("groupId", "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.NewGroupIdOnenoteSectionID("groupId", "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()
id := onenotesection.NewGroupID("groupId")

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


read, err := client.CreateOnenoteSection(ctx, id, 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.NewGroupIdOnenoteSectionID("groupId", "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.NewGroupIdOnenoteSectionID("groupId", "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()
id := onenotesection.NewGroupID("groupId")

read, err := client.GetOnenoteSectionsCount(ctx, id, 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()
id := onenotesection.NewGroupID("groupId")

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

Example Usage: OnenoteSectionClient.UpdateOnenoteSection

ctx := context.TODO()
id := onenotesection.NewGroupIdOnenoteSectionID("groupId", "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        *stable.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        *stable.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        *stable.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        *stable.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              []stable.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        *[]stable.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. 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. 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 groups

func (OnenoteSectionClient) DeleteOnenoteSection

DeleteOnenoteSection - Delete navigation property sections for groups

func (OnenoteSectionClient) GetOnenoteSection

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

func (OnenoteSectionClient) GetOnenoteSectionsCount

GetOnenoteSectionsCount - Get the number of the resource

func (OnenoteSectionClient) ListOnenoteSections

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

func (OnenoteSectionClient) ListOnenoteSectionsComplete

ListOnenoteSectionsComplete retrieves all the results into a single object

func (OnenoteSectionClient) ListOnenoteSectionsCompleteMatchingPredicate

func (c OnenoteSectionClient) ListOnenoteSectionsCompleteMatchingPredicate(ctx context.Context, id stable.GroupId, 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 groups

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