siteonenotenotebooksection

package
v0.20241111.1164443 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/stable/siteonenotenotebooksection Documentation

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

Client Initialization

client := siteonenotenotebooksection.NewSiteOnenoteNotebookSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteOnenoteNotebookSectionClient.CopySiteOnenoteNotebookSectionToNotebook

ctx := context.TODO()
id := siteonenotenotebooksection.NewGroupIdSiteIdOnenoteNotebookIdSectionID("groupId", "siteId", "notebookId", "onenoteSectionId")

payload := siteonenotenotebooksection.CopySiteOnenoteNotebookSectionToNotebookRequest{
	// ...
}


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

Example Usage: SiteOnenoteNotebookSectionClient.CopySiteOnenoteNotebookSectionToSectionGroup

ctx := context.TODO()
id := siteonenotenotebooksection.NewGroupIdSiteIdOnenoteNotebookIdSectionID("groupId", "siteId", "notebookId", "onenoteSectionId")

payload := siteonenotenotebooksection.CopySiteOnenoteNotebookSectionToSectionGroupRequest{
	// ...
}


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

Example Usage: SiteOnenoteNotebookSectionClient.CreateSiteOnenoteNotebookSection

ctx := context.TODO()
id := siteonenotenotebooksection.NewGroupIdSiteIdOnenoteNotebookID("groupId", "siteId", "notebookId")

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


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

Example Usage: SiteOnenoteNotebookSectionClient.DeleteSiteOnenoteNotebookSection

ctx := context.TODO()
id := siteonenotenotebooksection.NewGroupIdSiteIdOnenoteNotebookIdSectionID("groupId", "siteId", "notebookId", "onenoteSectionId")

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

Example Usage: SiteOnenoteNotebookSectionClient.GetSiteOnenoteNotebookSection

ctx := context.TODO()
id := siteonenotenotebooksection.NewGroupIdSiteIdOnenoteNotebookIdSectionID("groupId", "siteId", "notebookId", "onenoteSectionId")

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

Example Usage: SiteOnenoteNotebookSectionClient.GetSiteOnenoteNotebookSectionsCount

ctx := context.TODO()
id := siteonenotenotebooksection.NewGroupIdSiteIdOnenoteNotebookID("groupId", "siteId", "notebookId")

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

Example Usage: SiteOnenoteNotebookSectionClient.ListSiteOnenoteNotebookSections

ctx := context.TODO()
id := siteonenotenotebooksection.NewGroupIdSiteIdOnenoteNotebookID("groupId", "siteId", "notebookId")

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

Example Usage: SiteOnenoteNotebookSectionClient.UpdateSiteOnenoteNotebookSection

ctx := context.TODO()
id := siteonenotenotebooksection.NewGroupIdSiteIdOnenoteNotebookIdSectionID("groupId", "siteId", "notebookId", "onenoteSectionId")

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


read, err := client.UpdateSiteOnenoteNotebookSection(ctx, id, payload, siteonenotenotebooksection.DefaultUpdateSiteOnenoteNotebookSectionOperationOptions())
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 CopySiteOnenoteNotebookSectionToNotebookOperationOptions

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

func (CopySiteOnenoteNotebookSectionToNotebookOperationOptions) ToHeaders

func (CopySiteOnenoteNotebookSectionToNotebookOperationOptions) ToOData

func (CopySiteOnenoteNotebookSectionToNotebookOperationOptions) ToQuery

type CopySiteOnenoteNotebookSectionToNotebookOperationResponse

type CopySiteOnenoteNotebookSectionToNotebookOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenoteOperation
}

type CopySiteOnenoteNotebookSectionToNotebookRequest

type CopySiteOnenoteNotebookSectionToNotebookRequest 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 CopySiteOnenoteNotebookSectionToSectionGroupOperationOptions

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

func (CopySiteOnenoteNotebookSectionToSectionGroupOperationOptions) ToHeaders

func (CopySiteOnenoteNotebookSectionToSectionGroupOperationOptions) ToOData

func (CopySiteOnenoteNotebookSectionToSectionGroupOperationOptions) ToQuery

type CopySiteOnenoteNotebookSectionToSectionGroupOperationResponse

type CopySiteOnenoteNotebookSectionToSectionGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenoteOperation
}

type CopySiteOnenoteNotebookSectionToSectionGroupRequest

type CopySiteOnenoteNotebookSectionToSectionGroupRequest 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 CreateSiteOnenoteNotebookSectionOperationOptions

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

func DefaultCreateSiteOnenoteNotebookSectionOperationOptions

func DefaultCreateSiteOnenoteNotebookSectionOperationOptions() CreateSiteOnenoteNotebookSectionOperationOptions

func (CreateSiteOnenoteNotebookSectionOperationOptions) ToHeaders

func (CreateSiteOnenoteNotebookSectionOperationOptions) ToOData

func (CreateSiteOnenoteNotebookSectionOperationOptions) ToQuery

type CreateSiteOnenoteNotebookSectionOperationResponse

type CreateSiteOnenoteNotebookSectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenoteSection
}

type DeleteSiteOnenoteNotebookSectionOperationOptions

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

func DefaultDeleteSiteOnenoteNotebookSectionOperationOptions

func DefaultDeleteSiteOnenoteNotebookSectionOperationOptions() DeleteSiteOnenoteNotebookSectionOperationOptions

func (DeleteSiteOnenoteNotebookSectionOperationOptions) ToHeaders

func (DeleteSiteOnenoteNotebookSectionOperationOptions) ToOData

func (DeleteSiteOnenoteNotebookSectionOperationOptions) ToQuery

type DeleteSiteOnenoteNotebookSectionOperationResponse

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

type GetSiteOnenoteNotebookSectionOperationOptions

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

func DefaultGetSiteOnenoteNotebookSectionOperationOptions

func DefaultGetSiteOnenoteNotebookSectionOperationOptions() GetSiteOnenoteNotebookSectionOperationOptions

func (GetSiteOnenoteNotebookSectionOperationOptions) ToHeaders

func (GetSiteOnenoteNotebookSectionOperationOptions) ToOData

func (GetSiteOnenoteNotebookSectionOperationOptions) ToQuery

type GetSiteOnenoteNotebookSectionOperationResponse

type GetSiteOnenoteNotebookSectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.OnenoteSection
}

type GetSiteOnenoteNotebookSectionsCountOperationOptions

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

func DefaultGetSiteOnenoteNotebookSectionsCountOperationOptions

func DefaultGetSiteOnenoteNotebookSectionsCountOperationOptions() GetSiteOnenoteNotebookSectionsCountOperationOptions

func (GetSiteOnenoteNotebookSectionsCountOperationOptions) ToHeaders

func (GetSiteOnenoteNotebookSectionsCountOperationOptions) ToOData

func (GetSiteOnenoteNotebookSectionsCountOperationOptions) ToQuery

type GetSiteOnenoteNotebookSectionsCountOperationResponse

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

type ListSiteOnenoteNotebookSectionsCompleteResult

type ListSiteOnenoteNotebookSectionsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.OnenoteSection
}

type ListSiteOnenoteNotebookSectionsCustomPager

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

type ListSiteOnenoteNotebookSectionsOperationOptions

type ListSiteOnenoteNotebookSectionsOperationOptions 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 DefaultListSiteOnenoteNotebookSectionsOperationOptions

func DefaultListSiteOnenoteNotebookSectionsOperationOptions() ListSiteOnenoteNotebookSectionsOperationOptions

func (ListSiteOnenoteNotebookSectionsOperationOptions) ToHeaders

func (ListSiteOnenoteNotebookSectionsOperationOptions) ToOData

func (ListSiteOnenoteNotebookSectionsOperationOptions) ToQuery

type ListSiteOnenoteNotebookSectionsOperationResponse

type ListSiteOnenoteNotebookSectionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.OnenoteSection
}

type OnenoteSectionOperationPredicate

type OnenoteSectionOperationPredicate struct {
}

func (OnenoteSectionOperationPredicate) Matches

type SiteOnenoteNotebookSectionClient

type SiteOnenoteNotebookSectionClient struct {
	Client *msgraph.Client
}

func NewSiteOnenoteNotebookSectionClientWithBaseURI

func NewSiteOnenoteNotebookSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteOnenoteNotebookSectionClient, error)

func (SiteOnenoteNotebookSectionClient) CopySiteOnenoteNotebookSectionToNotebook

CopySiteOnenoteNotebookSectionToNotebook - 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 (SiteOnenoteNotebookSectionClient) CopySiteOnenoteNotebookSectionToSectionGroup

CopySiteOnenoteNotebookSectionToSectionGroup - 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 (SiteOnenoteNotebookSectionClient) CreateSiteOnenoteNotebookSection

CreateSiteOnenoteNotebookSection - Create new navigation property to sections for groups

func (SiteOnenoteNotebookSectionClient) DeleteSiteOnenoteNotebookSection

DeleteSiteOnenoteNotebookSection - Delete navigation property sections for groups

func (SiteOnenoteNotebookSectionClient) GetSiteOnenoteNotebookSection

GetSiteOnenoteNotebookSection - Get sections from groups. The sections in the notebook. Read-only. Nullable.

func (SiteOnenoteNotebookSectionClient) GetSiteOnenoteNotebookSectionsCount

GetSiteOnenoteNotebookSectionsCount - Get the number of the resource

func (SiteOnenoteNotebookSectionClient) ListSiteOnenoteNotebookSections

ListSiteOnenoteNotebookSections - Get sections from groups. The sections in the notebook. Read-only. Nullable.

func (SiteOnenoteNotebookSectionClient) ListSiteOnenoteNotebookSectionsComplete

ListSiteOnenoteNotebookSectionsComplete retrieves all the results into a single object

func (SiteOnenoteNotebookSectionClient) ListSiteOnenoteNotebookSectionsCompleteMatchingPredicate

ListSiteOnenoteNotebookSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteOnenoteNotebookSectionClient) UpdateSiteOnenoteNotebookSection

UpdateSiteOnenoteNotebookSection - Update the navigation property sections in groups

type UpdateSiteOnenoteNotebookSectionOperationOptions

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

func DefaultUpdateSiteOnenoteNotebookSectionOperationOptions

func DefaultUpdateSiteOnenoteNotebookSectionOperationOptions() UpdateSiteOnenoteNotebookSectionOperationOptions

func (UpdateSiteOnenoteNotebookSectionOperationOptions) ToHeaders

func (UpdateSiteOnenoteNotebookSectionOperationOptions) ToOData

func (UpdateSiteOnenoteNotebookSectionOperationOptions) ToQuery

type UpdateSiteOnenoteNotebookSectionOperationResponse

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