onenotesectiongroupsection

package
v0.20241126.1723 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/me/beta/onenotesectiongroupsection Documentation

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

Client Initialization

client := onenotesectiongroupsection.NewOnenoteSectionGroupSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OnenoteSectionGroupSectionClient.CopyOnenoteSectionGroupSectionToNotebook

ctx := context.TODO()
id := onenotesectiongroupsection.NewMeOnenoteSectionGroupIdSectionID("sectionGroupId", "onenoteSectionId")

payload := onenotesectiongroupsection.CopyOnenoteSectionGroupSectionToNotebookRequest{
	// ...
}


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

Example Usage: OnenoteSectionGroupSectionClient.CopyOnenoteSectionGroupSectionToSectionGroup

ctx := context.TODO()
id := onenotesectiongroupsection.NewMeOnenoteSectionGroupIdSectionID("sectionGroupId", "onenoteSectionId")

payload := onenotesectiongroupsection.CopyOnenoteSectionGroupSectionToSectionGroupRequest{
	// ...
}


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

Example Usage: OnenoteSectionGroupSectionClient.CreateOnenoteSectionGroupSection

ctx := context.TODO()
id := onenotesectiongroupsection.NewMeOnenoteSectionGroupID("sectionGroupId")

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


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

Example Usage: OnenoteSectionGroupSectionClient.DeleteOnenoteSectionGroupSection

ctx := context.TODO()
id := onenotesectiongroupsection.NewMeOnenoteSectionGroupIdSectionID("sectionGroupId", "onenoteSectionId")

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

Example Usage: OnenoteSectionGroupSectionClient.GetOnenoteSectionGroupSection

ctx := context.TODO()
id := onenotesectiongroupsection.NewMeOnenoteSectionGroupIdSectionID("sectionGroupId", "onenoteSectionId")

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

Example Usage: OnenoteSectionGroupSectionClient.GetOnenoteSectionGroupSectionsCount

ctx := context.TODO()
id := onenotesectiongroupsection.NewMeOnenoteSectionGroupID("sectionGroupId")

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

Example Usage: OnenoteSectionGroupSectionClient.ListOnenoteSectionGroupSections

ctx := context.TODO()
id := onenotesectiongroupsection.NewMeOnenoteSectionGroupID("sectionGroupId")

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

Example Usage: OnenoteSectionGroupSectionClient.UpdateOnenoteSectionGroupSection

ctx := context.TODO()
id := onenotesectiongroupsection.NewMeOnenoteSectionGroupIdSectionID("sectionGroupId", "onenoteSectionId")

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


read, err := client.UpdateOnenoteSectionGroupSection(ctx, id, payload, onenotesectiongroupsection.DefaultUpdateOnenoteSectionGroupSectionOperationOptions())
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 CopyOnenoteSectionGroupSectionToNotebookOperationOptions

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

func (CopyOnenoteSectionGroupSectionToNotebookOperationOptions) ToHeaders

func (CopyOnenoteSectionGroupSectionToNotebookOperationOptions) ToOData

func (CopyOnenoteSectionGroupSectionToNotebookOperationOptions) ToQuery

type CopyOnenoteSectionGroupSectionToNotebookOperationResponse

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

type CopyOnenoteSectionGroupSectionToNotebookRequest

type CopyOnenoteSectionGroupSectionToNotebookRequest 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 CopyOnenoteSectionGroupSectionToSectionGroupOperationOptions

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

func (CopyOnenoteSectionGroupSectionToSectionGroupOperationOptions) ToHeaders

func (CopyOnenoteSectionGroupSectionToSectionGroupOperationOptions) ToOData

func (CopyOnenoteSectionGroupSectionToSectionGroupOperationOptions) ToQuery

type CopyOnenoteSectionGroupSectionToSectionGroupOperationResponse

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

type CopyOnenoteSectionGroupSectionToSectionGroupRequest

type CopyOnenoteSectionGroupSectionToSectionGroupRequest 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 CreateOnenoteSectionGroupSectionOperationOptions

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

func DefaultCreateOnenoteSectionGroupSectionOperationOptions

func DefaultCreateOnenoteSectionGroupSectionOperationOptions() CreateOnenoteSectionGroupSectionOperationOptions

func (CreateOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (CreateOnenoteSectionGroupSectionOperationOptions) ToOData

func (CreateOnenoteSectionGroupSectionOperationOptions) ToQuery

type CreateOnenoteSectionGroupSectionOperationResponse

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

type DeleteOnenoteSectionGroupSectionOperationOptions

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

func DefaultDeleteOnenoteSectionGroupSectionOperationOptions

func DefaultDeleteOnenoteSectionGroupSectionOperationOptions() DeleteOnenoteSectionGroupSectionOperationOptions

func (DeleteOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (DeleteOnenoteSectionGroupSectionOperationOptions) ToOData

func (DeleteOnenoteSectionGroupSectionOperationOptions) ToQuery

type DeleteOnenoteSectionGroupSectionOperationResponse

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

type GetOnenoteSectionGroupSectionOperationOptions

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

func DefaultGetOnenoteSectionGroupSectionOperationOptions

func DefaultGetOnenoteSectionGroupSectionOperationOptions() GetOnenoteSectionGroupSectionOperationOptions

func (GetOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (GetOnenoteSectionGroupSectionOperationOptions) ToOData

func (GetOnenoteSectionGroupSectionOperationOptions) ToQuery

type GetOnenoteSectionGroupSectionOperationResponse

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

type GetOnenoteSectionGroupSectionsCountOperationOptions

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

func DefaultGetOnenoteSectionGroupSectionsCountOperationOptions

func DefaultGetOnenoteSectionGroupSectionsCountOperationOptions() GetOnenoteSectionGroupSectionsCountOperationOptions

func (GetOnenoteSectionGroupSectionsCountOperationOptions) ToHeaders

func (GetOnenoteSectionGroupSectionsCountOperationOptions) ToOData

func (GetOnenoteSectionGroupSectionsCountOperationOptions) ToQuery

type GetOnenoteSectionGroupSectionsCountOperationResponse

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

type ListOnenoteSectionGroupSectionsCompleteResult

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

type ListOnenoteSectionGroupSectionsCustomPager

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

type ListOnenoteSectionGroupSectionsOperationOptions

type ListOnenoteSectionGroupSectionsOperationOptions 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 DefaultListOnenoteSectionGroupSectionsOperationOptions

func DefaultListOnenoteSectionGroupSectionsOperationOptions() ListOnenoteSectionGroupSectionsOperationOptions

func (ListOnenoteSectionGroupSectionsOperationOptions) ToHeaders

func (ListOnenoteSectionGroupSectionsOperationOptions) ToOData

func (ListOnenoteSectionGroupSectionsOperationOptions) ToQuery

type ListOnenoteSectionGroupSectionsOperationResponse

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

type OnenoteSectionGroupSectionClient

type OnenoteSectionGroupSectionClient struct {
	Client *msgraph.Client
}

func NewOnenoteSectionGroupSectionClientWithBaseURI

func NewOnenoteSectionGroupSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteSectionGroupSectionClient, error)

func (OnenoteSectionGroupSectionClient) CopyOnenoteSectionGroupSectionToNotebook

CopyOnenoteSectionGroupSectionToNotebook - 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 (OnenoteSectionGroupSectionClient) CopyOnenoteSectionGroupSectionToSectionGroup

CopyOnenoteSectionGroupSectionToSectionGroup - 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 (OnenoteSectionGroupSectionClient) CreateOnenoteSectionGroupSection

CreateOnenoteSectionGroupSection - Create section. Create a new section in the specified section group.

func (OnenoteSectionGroupSectionClient) DeleteOnenoteSectionGroupSection

DeleteOnenoteSectionGroupSection - Delete navigation property sections for me

func (OnenoteSectionGroupSectionClient) GetOnenoteSectionGroupSection

GetOnenoteSectionGroupSection - Get sections from me. The sections in the section group. Read-only. Nullable.

func (OnenoteSectionGroupSectionClient) GetOnenoteSectionGroupSectionsCount

GetOnenoteSectionGroupSectionsCount - Get the number of the resource

func (OnenoteSectionGroupSectionClient) ListOnenoteSectionGroupSections

ListOnenoteSectionGroupSections - List sections. Retrieve a list of onenoteSection objects from the specified section group.

func (OnenoteSectionGroupSectionClient) ListOnenoteSectionGroupSectionsComplete

ListOnenoteSectionGroupSectionsComplete retrieves all the results into a single object

func (OnenoteSectionGroupSectionClient) ListOnenoteSectionGroupSectionsCompleteMatchingPredicate

ListOnenoteSectionGroupSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OnenoteSectionGroupSectionClient) UpdateOnenoteSectionGroupSection

UpdateOnenoteSectionGroupSection - Update the navigation property sections in me

type OnenoteSectionOperationPredicate

type OnenoteSectionOperationPredicate struct {
}

func (OnenoteSectionOperationPredicate) Matches

type UpdateOnenoteSectionGroupSectionOperationOptions

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

func DefaultUpdateOnenoteSectionGroupSectionOperationOptions

func DefaultUpdateOnenoteSectionGroupSectionOperationOptions() UpdateOnenoteSectionGroupSectionOperationOptions

func (UpdateOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (UpdateOnenoteSectionGroupSectionOperationOptions) ToOData

func (UpdateOnenoteSectionGroupSectionOperationOptions) ToQuery

type UpdateOnenoteSectionGroupSectionOperationResponse

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