onenotenotebooksectiongroupsection

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

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

Client Initialization

client := onenotenotebooksectiongroupsection.NewOnenoteNotebookSectionGroupSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OnenoteNotebookSectionGroupSectionClient.CopyOnenoteNotebookSectionGroupSectionToNotebook

ctx := context.TODO()
id := onenotenotebooksectiongroupsection.NewGroupIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "notebookId", "sectionGroupId", "onenoteSectionId")

payload := onenotenotebooksectiongroupsection.CopyOnenoteNotebookSectionGroupSectionToNotebookRequest{
	// ...
}


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

Example Usage: OnenoteNotebookSectionGroupSectionClient.CopyOnenoteNotebookSectionGroupSectionToSectionGroup

ctx := context.TODO()
id := onenotenotebooksectiongroupsection.NewGroupIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "notebookId", "sectionGroupId", "onenoteSectionId")

payload := onenotenotebooksectiongroupsection.CopyOnenoteNotebookSectionGroupSectionToSectionGroupRequest{
	// ...
}


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

Example Usage: OnenoteNotebookSectionGroupSectionClient.CreateOnenoteNotebookSectionGroupSection

ctx := context.TODO()
id := onenotenotebooksectiongroupsection.NewGroupIdOnenoteNotebookIdSectionGroupID("groupId", "notebookId", "sectionGroupId")

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


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

Example Usage: OnenoteNotebookSectionGroupSectionClient.DeleteOnenoteNotebookSectionGroupSection

ctx := context.TODO()
id := onenotenotebooksectiongroupsection.NewGroupIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "notebookId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: OnenoteNotebookSectionGroupSectionClient.GetOnenoteNotebookSectionGroupSection

ctx := context.TODO()
id := onenotenotebooksectiongroupsection.NewGroupIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "notebookId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: OnenoteNotebookSectionGroupSectionClient.GetOnenoteNotebookSectionGroupSectionsCount

ctx := context.TODO()
id := onenotenotebooksectiongroupsection.NewGroupIdOnenoteNotebookIdSectionGroupID("groupId", "notebookId", "sectionGroupId")

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

Example Usage: OnenoteNotebookSectionGroupSectionClient.ListOnenoteNotebookSectionGroupSections

ctx := context.TODO()
id := onenotenotebooksectiongroupsection.NewGroupIdOnenoteNotebookIdSectionGroupID("groupId", "notebookId", "sectionGroupId")

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

Example Usage: OnenoteNotebookSectionGroupSectionClient.UpdateOnenoteNotebookSectionGroupSection

ctx := context.TODO()
id := onenotenotebooksectiongroupsection.NewGroupIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "notebookId", "sectionGroupId", "onenoteSectionId")

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


read, err := client.UpdateOnenoteNotebookSectionGroupSection(ctx, id, payload, onenotenotebooksectiongroupsection.DefaultUpdateOnenoteNotebookSectionGroupSectionOperationOptions())
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 CopyOnenoteNotebookSectionGroupSectionToNotebookOperationOptions

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

func (CopyOnenoteNotebookSectionGroupSectionToNotebookOperationOptions) ToHeaders

func (CopyOnenoteNotebookSectionGroupSectionToNotebookOperationOptions) ToOData

func (CopyOnenoteNotebookSectionGroupSectionToNotebookOperationOptions) ToQuery

type CopyOnenoteNotebookSectionGroupSectionToNotebookOperationResponse

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

type CopyOnenoteNotebookSectionGroupSectionToNotebookRequest

type CopyOnenoteNotebookSectionGroupSectionToNotebookRequest 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 CopyOnenoteNotebookSectionGroupSectionToSectionGroupOperationOptions

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

func (CopyOnenoteNotebookSectionGroupSectionToSectionGroupOperationOptions) ToHeaders

func (CopyOnenoteNotebookSectionGroupSectionToSectionGroupOperationOptions) ToOData

func (CopyOnenoteNotebookSectionGroupSectionToSectionGroupOperationOptions) ToQuery

type CopyOnenoteNotebookSectionGroupSectionToSectionGroupOperationResponse

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

type CopyOnenoteNotebookSectionGroupSectionToSectionGroupRequest

type CopyOnenoteNotebookSectionGroupSectionToSectionGroupRequest 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 CreateOnenoteNotebookSectionGroupSectionOperationOptions

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

func (CreateOnenoteNotebookSectionGroupSectionOperationOptions) ToHeaders

func (CreateOnenoteNotebookSectionGroupSectionOperationOptions) ToOData

func (CreateOnenoteNotebookSectionGroupSectionOperationOptions) ToQuery

type CreateOnenoteNotebookSectionGroupSectionOperationResponse

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

type DeleteOnenoteNotebookSectionGroupSectionOperationOptions

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

func (DeleteOnenoteNotebookSectionGroupSectionOperationOptions) ToHeaders

func (DeleteOnenoteNotebookSectionGroupSectionOperationOptions) ToOData

func (DeleteOnenoteNotebookSectionGroupSectionOperationOptions) ToQuery

type DeleteOnenoteNotebookSectionGroupSectionOperationResponse

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

type GetOnenoteNotebookSectionGroupSectionOperationOptions

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

func DefaultGetOnenoteNotebookSectionGroupSectionOperationOptions

func DefaultGetOnenoteNotebookSectionGroupSectionOperationOptions() GetOnenoteNotebookSectionGroupSectionOperationOptions

func (GetOnenoteNotebookSectionGroupSectionOperationOptions) ToHeaders

func (GetOnenoteNotebookSectionGroupSectionOperationOptions) ToOData

func (GetOnenoteNotebookSectionGroupSectionOperationOptions) ToQuery

type GetOnenoteNotebookSectionGroupSectionOperationResponse

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

type GetOnenoteNotebookSectionGroupSectionsCountOperationOptions

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

func (GetOnenoteNotebookSectionGroupSectionsCountOperationOptions) ToHeaders

func (GetOnenoteNotebookSectionGroupSectionsCountOperationOptions) ToOData

func (GetOnenoteNotebookSectionGroupSectionsCountOperationOptions) ToQuery

type GetOnenoteNotebookSectionGroupSectionsCountOperationResponse

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

type ListOnenoteNotebookSectionGroupSectionsCompleteResult

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

type ListOnenoteNotebookSectionGroupSectionsCustomPager

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

type ListOnenoteNotebookSectionGroupSectionsOperationOptions

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

func (ListOnenoteNotebookSectionGroupSectionsOperationOptions) ToOData

func (ListOnenoteNotebookSectionGroupSectionsOperationOptions) ToQuery

type ListOnenoteNotebookSectionGroupSectionsOperationResponse

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

type OnenoteNotebookSectionGroupSectionClient

type OnenoteNotebookSectionGroupSectionClient struct {
	Client *msgraph.Client
}

func NewOnenoteNotebookSectionGroupSectionClientWithBaseURI

func NewOnenoteNotebookSectionGroupSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteNotebookSectionGroupSectionClient, error)

func (OnenoteNotebookSectionGroupSectionClient) CopyOnenoteNotebookSectionGroupSectionToNotebook

CopyOnenoteNotebookSectionGroupSectionToNotebook - 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 (OnenoteNotebookSectionGroupSectionClient) CopyOnenoteNotebookSectionGroupSectionToSectionGroup

CopyOnenoteNotebookSectionGroupSectionToSectionGroup - 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 (OnenoteNotebookSectionGroupSectionClient) CreateOnenoteNotebookSectionGroupSection

CreateOnenoteNotebookSectionGroupSection - Create new navigation property to sections for groups

func (OnenoteNotebookSectionGroupSectionClient) DeleteOnenoteNotebookSectionGroupSection

DeleteOnenoteNotebookSectionGroupSection - Delete navigation property sections for groups

func (OnenoteNotebookSectionGroupSectionClient) GetOnenoteNotebookSectionGroupSection

GetOnenoteNotebookSectionGroupSection - Get sections from groups. The sections in the section group. Read-only. Nullable.

func (OnenoteNotebookSectionGroupSectionClient) GetOnenoteNotebookSectionGroupSectionsCount

GetOnenoteNotebookSectionGroupSectionsCount - Get the number of the resource

func (OnenoteNotebookSectionGroupSectionClient) ListOnenoteNotebookSectionGroupSections

ListOnenoteNotebookSectionGroupSections - Get sections from groups. The sections in the section group. Read-only. Nullable.

func (OnenoteNotebookSectionGroupSectionClient) ListOnenoteNotebookSectionGroupSectionsComplete

ListOnenoteNotebookSectionGroupSectionsComplete retrieves all the results into a single object

func (OnenoteNotebookSectionGroupSectionClient) ListOnenoteNotebookSectionGroupSectionsCompleteMatchingPredicate

ListOnenoteNotebookSectionGroupSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OnenoteNotebookSectionGroupSectionClient) UpdateOnenoteNotebookSectionGroupSection

UpdateOnenoteNotebookSectionGroupSection - Update the navigation property sections in groups

type OnenoteSectionOperationPredicate

type OnenoteSectionOperationPredicate struct {
}

func (OnenoteSectionOperationPredicate) Matches

type UpdateOnenoteNotebookSectionGroupSectionOperationOptions

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

func (UpdateOnenoteNotebookSectionGroupSectionOperationOptions) ToHeaders

func (UpdateOnenoteNotebookSectionGroupSectionOperationOptions) ToOData

func (UpdateOnenoteNotebookSectionGroupSectionOperationOptions) ToQuery

type UpdateOnenoteNotebookSectionGroupSectionOperationResponse

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