siteonenotesection

package
v0.20241126.1110949 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: 1

README

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

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

Client Initialization

client := siteonenotesection.NewSiteOnenoteSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteOnenoteSectionClient.CopySiteOnenoteSectionToNotebook

ctx := context.TODO()
id := siteonenotesection.NewGroupIdSiteIdOnenoteSectionID("groupId", "siteId", "onenoteSectionId")

payload := siteonenotesection.CopySiteOnenoteSectionToNotebookRequest{
	// ...
}


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

Example Usage: SiteOnenoteSectionClient.CopySiteOnenoteSectionToSectionGroup

ctx := context.TODO()
id := siteonenotesection.NewGroupIdSiteIdOnenoteSectionID("groupId", "siteId", "onenoteSectionId")

payload := siteonenotesection.CopySiteOnenoteSectionToSectionGroupRequest{
	// ...
}


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

Example Usage: SiteOnenoteSectionClient.CreateSiteOnenoteSection

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

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


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

Example Usage: SiteOnenoteSectionClient.DeleteSiteOnenoteSection

ctx := context.TODO()
id := siteonenotesection.NewGroupIdSiteIdOnenoteSectionID("groupId", "siteId", "onenoteSectionId")

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

Example Usage: SiteOnenoteSectionClient.GetSiteOnenoteSection

ctx := context.TODO()
id := siteonenotesection.NewGroupIdSiteIdOnenoteSectionID("groupId", "siteId", "onenoteSectionId")

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

Example Usage: SiteOnenoteSectionClient.GetSiteOnenoteSectionsCount

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

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

Example Usage: SiteOnenoteSectionClient.ListSiteOnenoteSections

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

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

Example Usage: SiteOnenoteSectionClient.UpdateSiteOnenoteSection

ctx := context.TODO()
id := siteonenotesection.NewGroupIdSiteIdOnenoteSectionID("groupId", "siteId", "onenoteSectionId")

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


read, err := client.UpdateSiteOnenoteSection(ctx, id, payload, siteonenotesection.DefaultUpdateSiteOnenoteSectionOperationOptions())
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 CopySiteOnenoteSectionToNotebookOperationOptions

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

func DefaultCopySiteOnenoteSectionToNotebookOperationOptions

func DefaultCopySiteOnenoteSectionToNotebookOperationOptions() CopySiteOnenoteSectionToNotebookOperationOptions

func (CopySiteOnenoteSectionToNotebookOperationOptions) ToHeaders

func (CopySiteOnenoteSectionToNotebookOperationOptions) ToOData

func (CopySiteOnenoteSectionToNotebookOperationOptions) ToQuery

type CopySiteOnenoteSectionToNotebookOperationResponse

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

type CopySiteOnenoteSectionToNotebookRequest

type CopySiteOnenoteSectionToNotebookRequest 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 CopySiteOnenoteSectionToSectionGroupOperationOptions

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

func DefaultCopySiteOnenoteSectionToSectionGroupOperationOptions

func DefaultCopySiteOnenoteSectionToSectionGroupOperationOptions() CopySiteOnenoteSectionToSectionGroupOperationOptions

func (CopySiteOnenoteSectionToSectionGroupOperationOptions) ToHeaders

func (CopySiteOnenoteSectionToSectionGroupOperationOptions) ToOData

func (CopySiteOnenoteSectionToSectionGroupOperationOptions) ToQuery

type CopySiteOnenoteSectionToSectionGroupOperationResponse

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

type CopySiteOnenoteSectionToSectionGroupRequest

type CopySiteOnenoteSectionToSectionGroupRequest 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 CreateSiteOnenoteSectionOperationOptions

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

func DefaultCreateSiteOnenoteSectionOperationOptions

func DefaultCreateSiteOnenoteSectionOperationOptions() CreateSiteOnenoteSectionOperationOptions

func (CreateSiteOnenoteSectionOperationOptions) ToHeaders

func (CreateSiteOnenoteSectionOperationOptions) ToOData

func (CreateSiteOnenoteSectionOperationOptions) ToQuery

type CreateSiteOnenoteSectionOperationResponse

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

type DeleteSiteOnenoteSectionOperationOptions

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

func DefaultDeleteSiteOnenoteSectionOperationOptions

func DefaultDeleteSiteOnenoteSectionOperationOptions() DeleteSiteOnenoteSectionOperationOptions

func (DeleteSiteOnenoteSectionOperationOptions) ToHeaders

func (DeleteSiteOnenoteSectionOperationOptions) ToOData

func (DeleteSiteOnenoteSectionOperationOptions) ToQuery

type DeleteSiteOnenoteSectionOperationResponse

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

type GetSiteOnenoteSectionOperationOptions

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

func DefaultGetSiteOnenoteSectionOperationOptions

func DefaultGetSiteOnenoteSectionOperationOptions() GetSiteOnenoteSectionOperationOptions

func (GetSiteOnenoteSectionOperationOptions) ToHeaders

func (GetSiteOnenoteSectionOperationOptions) ToOData

func (GetSiteOnenoteSectionOperationOptions) ToQuery

type GetSiteOnenoteSectionOperationResponse

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

type GetSiteOnenoteSectionsCountOperationOptions

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

func DefaultGetSiteOnenoteSectionsCountOperationOptions

func DefaultGetSiteOnenoteSectionsCountOperationOptions() GetSiteOnenoteSectionsCountOperationOptions

func (GetSiteOnenoteSectionsCountOperationOptions) ToHeaders

func (GetSiteOnenoteSectionsCountOperationOptions) ToOData

func (GetSiteOnenoteSectionsCountOperationOptions) ToQuery

type GetSiteOnenoteSectionsCountOperationResponse

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

type ListSiteOnenoteSectionsCompleteResult

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

type ListSiteOnenoteSectionsCustomPager

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

type ListSiteOnenoteSectionsOperationOptions

type ListSiteOnenoteSectionsOperationOptions 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 DefaultListSiteOnenoteSectionsOperationOptions

func DefaultListSiteOnenoteSectionsOperationOptions() ListSiteOnenoteSectionsOperationOptions

func (ListSiteOnenoteSectionsOperationOptions) ToHeaders

func (ListSiteOnenoteSectionsOperationOptions) ToOData

func (ListSiteOnenoteSectionsOperationOptions) ToQuery

type ListSiteOnenoteSectionsOperationResponse

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

type OnenoteSectionOperationPredicate

type OnenoteSectionOperationPredicate struct {
}

func (OnenoteSectionOperationPredicate) Matches

type SiteOnenoteSectionClient

type SiteOnenoteSectionClient struct {
	Client *msgraph.Client
}

func NewSiteOnenoteSectionClientWithBaseURI

func NewSiteOnenoteSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteOnenoteSectionClient, error)

func (SiteOnenoteSectionClient) CopySiteOnenoteSectionToNotebook

CopySiteOnenoteSectionToNotebook - 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 (SiteOnenoteSectionClient) CopySiteOnenoteSectionToSectionGroup

CopySiteOnenoteSectionToSectionGroup - 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 (SiteOnenoteSectionClient) CreateSiteOnenoteSection

CreateSiteOnenoteSection - Create new navigation property to sections for groups

func (SiteOnenoteSectionClient) DeleteSiteOnenoteSection

DeleteSiteOnenoteSection - Delete navigation property sections for groups

func (SiteOnenoteSectionClient) GetSiteOnenoteSection

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

func (SiteOnenoteSectionClient) GetSiteOnenoteSectionsCount

GetSiteOnenoteSectionsCount - Get the number of the resource

func (SiteOnenoteSectionClient) ListSiteOnenoteSections

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

func (SiteOnenoteSectionClient) ListSiteOnenoteSectionsComplete

ListSiteOnenoteSectionsComplete retrieves all the results into a single object

func (SiteOnenoteSectionClient) ListSiteOnenoteSectionsCompleteMatchingPredicate

ListSiteOnenoteSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteOnenoteSectionClient) UpdateSiteOnenoteSection

UpdateSiteOnenoteSection - Update the navigation property sections in groups

type UpdateSiteOnenoteSectionOperationOptions

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

func DefaultUpdateSiteOnenoteSectionOperationOptions

func DefaultUpdateSiteOnenoteSectionOperationOptions() UpdateSiteOnenoteSectionOperationOptions

func (UpdateSiteOnenoteSectionOperationOptions) ToHeaders

func (UpdateSiteOnenoteSectionOperationOptions) ToOData

func (UpdateSiteOnenoteSectionOperationOptions) ToQuery

type UpdateSiteOnenoteSectionOperationResponse

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