README
¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/onenotenotebooksection
Documentation
The onenotenotebooksection
SDK allows for interaction with Microsoft Graph me
(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/me/stable/onenotenotebooksection"
Client Initialization
client := onenotenotebooksection.NewOnenoteNotebookSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: OnenoteNotebookSectionClient.CopyOnenoteNotebookSectionToNotebook
ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")
payload := onenotenotebooksection.CopyOnenoteNotebookSectionToNotebookRequest{
// ...
}
read, err := client.CopyOnenoteNotebookSectionToNotebook(ctx, id, payload, onenotenotebooksection.DefaultCopyOnenoteNotebookSectionToNotebookOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteNotebookSectionClient.CopyOnenoteNotebookSectionToSectionGroup
ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")
payload := onenotenotebooksection.CopyOnenoteNotebookSectionToSectionGroupRequest{
// ...
}
read, err := client.CopyOnenoteNotebookSectionToSectionGroup(ctx, id, payload, onenotenotebooksection.DefaultCopyOnenoteNotebookSectionToSectionGroupOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteNotebookSectionClient.CreateOnenoteNotebookSection
ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookID("notebookId")
payload := onenotenotebooksection.OnenoteSection{
// ...
}
read, err := client.CreateOnenoteNotebookSection(ctx, id, payload, onenotenotebooksection.DefaultCreateOnenoteNotebookSectionOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteNotebookSectionClient.DeleteOnenoteNotebookSection
ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")
read, err := client.DeleteOnenoteNotebookSection(ctx, id, onenotenotebooksection.DefaultDeleteOnenoteNotebookSectionOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteNotebookSectionClient.GetOnenoteNotebookSection
ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")
read, err := client.GetOnenoteNotebookSection(ctx, id, onenotenotebooksection.DefaultGetOnenoteNotebookSectionOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteNotebookSectionClient.GetOnenoteNotebookSectionsCount
ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookID("notebookId")
read, err := client.GetOnenoteNotebookSectionsCount(ctx, id, onenotenotebooksection.DefaultGetOnenoteNotebookSectionsCountOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteNotebookSectionClient.ListOnenoteNotebookSections
ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookID("notebookId")
// alternatively `client.ListOnenoteNotebookSections(ctx, id, onenotenotebooksection.DefaultListOnenoteNotebookSectionsOperationOptions())` can be used to do batched pagination
items, err := client.ListOnenoteNotebookSectionsComplete(ctx, id, onenotenotebooksection.DefaultListOnenoteNotebookSectionsOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: OnenoteNotebookSectionClient.UpdateOnenoteNotebookSection
ctx := context.TODO()
id := onenotenotebooksection.NewMeOnenoteNotebookIdSectionID("notebookId", "onenoteSectionId")
payload := onenotenotebooksection.OnenoteSection{
// ...
}
read, err := client.UpdateOnenoteNotebookSection(ctx, id, payload, onenotenotebooksection.DefaultUpdateOnenoteNotebookSectionOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation
¶
Index ¶
- type CopyOnenoteNotebookSectionToNotebookOperationOptions
- type CopyOnenoteNotebookSectionToNotebookOperationResponse
- type CopyOnenoteNotebookSectionToNotebookRequest
- type CopyOnenoteNotebookSectionToSectionGroupOperationOptions
- type CopyOnenoteNotebookSectionToSectionGroupOperationResponse
- type CopyOnenoteNotebookSectionToSectionGroupRequest
- type CreateOnenoteNotebookSectionOperationOptions
- type CreateOnenoteNotebookSectionOperationResponse
- type DeleteOnenoteNotebookSectionOperationOptions
- type DeleteOnenoteNotebookSectionOperationResponse
- type GetOnenoteNotebookSectionOperationOptions
- type GetOnenoteNotebookSectionOperationResponse
- type GetOnenoteNotebookSectionsCountOperationOptions
- type GetOnenoteNotebookSectionsCountOperationResponse
- type ListOnenoteNotebookSectionsCompleteResult
- type ListOnenoteNotebookSectionsCustomPager
- type ListOnenoteNotebookSectionsOperationOptions
- type ListOnenoteNotebookSectionsOperationResponse
- type OnenoteNotebookSectionClient
- func (c OnenoteNotebookSectionClient) CopyOnenoteNotebookSectionToNotebook(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, ...) (result CopyOnenoteNotebookSectionToNotebookOperationResponse, err error)
- func (c OnenoteNotebookSectionClient) CopyOnenoteNotebookSectionToSectionGroup(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, ...) (result CopyOnenoteNotebookSectionToSectionGroupOperationResponse, err error)
- func (c OnenoteNotebookSectionClient) CreateOnenoteNotebookSection(ctx context.Context, id stable.MeOnenoteNotebookId, ...) (result CreateOnenoteNotebookSectionOperationResponse, err error)
- func (c OnenoteNotebookSectionClient) DeleteOnenoteNotebookSection(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, ...) (result DeleteOnenoteNotebookSectionOperationResponse, err error)
- func (c OnenoteNotebookSectionClient) GetOnenoteNotebookSection(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, ...) (result GetOnenoteNotebookSectionOperationResponse, err error)
- func (c OnenoteNotebookSectionClient) GetOnenoteNotebookSectionsCount(ctx context.Context, id stable.MeOnenoteNotebookId, ...) (result GetOnenoteNotebookSectionsCountOperationResponse, err error)
- func (c OnenoteNotebookSectionClient) ListOnenoteNotebookSections(ctx context.Context, id stable.MeOnenoteNotebookId, ...) (result ListOnenoteNotebookSectionsOperationResponse, err error)
- func (c OnenoteNotebookSectionClient) ListOnenoteNotebookSectionsComplete(ctx context.Context, id stable.MeOnenoteNotebookId, ...) (ListOnenoteNotebookSectionsCompleteResult, error)
- func (c OnenoteNotebookSectionClient) ListOnenoteNotebookSectionsCompleteMatchingPredicate(ctx context.Context, id stable.MeOnenoteNotebookId, ...) (result ListOnenoteNotebookSectionsCompleteResult, err error)
- func (c OnenoteNotebookSectionClient) UpdateOnenoteNotebookSection(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, ...) (result UpdateOnenoteNotebookSectionOperationResponse, err error)
- type OnenoteSectionOperationPredicate
- type UpdateOnenoteNotebookSectionOperationOptions
- type UpdateOnenoteNotebookSectionOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CopyOnenoteNotebookSectionToNotebookOperationOptions ¶
type CopyOnenoteNotebookSectionToNotebookOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCopyOnenoteNotebookSectionToNotebookOperationOptions ¶
func DefaultCopyOnenoteNotebookSectionToNotebookOperationOptions() CopyOnenoteNotebookSectionToNotebookOperationOptions
func (CopyOnenoteNotebookSectionToNotebookOperationOptions) ToHeaders ¶
func (o CopyOnenoteNotebookSectionToNotebookOperationOptions) ToHeaders() *client.Headers
func (CopyOnenoteNotebookSectionToNotebookOperationOptions) ToOData ¶
func (o CopyOnenoteNotebookSectionToNotebookOperationOptions) ToOData() *odata.Query
func (CopyOnenoteNotebookSectionToNotebookOperationOptions) ToQuery ¶
func (o CopyOnenoteNotebookSectionToNotebookOperationOptions) ToQuery() *client.QueryParams
type CopyOnenoteNotebookSectionToNotebookRequest ¶
type CopyOnenoteNotebookSectionToNotebookRequest 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 CopyOnenoteNotebookSectionToSectionGroupOperationOptions ¶
type CopyOnenoteNotebookSectionToSectionGroupOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCopyOnenoteNotebookSectionToSectionGroupOperationOptions ¶
func DefaultCopyOnenoteNotebookSectionToSectionGroupOperationOptions() CopyOnenoteNotebookSectionToSectionGroupOperationOptions
func (CopyOnenoteNotebookSectionToSectionGroupOperationOptions) ToHeaders ¶
func (o CopyOnenoteNotebookSectionToSectionGroupOperationOptions) ToHeaders() *client.Headers
func (CopyOnenoteNotebookSectionToSectionGroupOperationOptions) ToOData ¶
func (o CopyOnenoteNotebookSectionToSectionGroupOperationOptions) ToOData() *odata.Query
func (CopyOnenoteNotebookSectionToSectionGroupOperationOptions) ToQuery ¶
func (o CopyOnenoteNotebookSectionToSectionGroupOperationOptions) ToQuery() *client.QueryParams
type CopyOnenoteNotebookSectionToSectionGroupRequest ¶
type CopyOnenoteNotebookSectionToSectionGroupRequest 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 CreateOnenoteNotebookSectionOperationOptions ¶
type CreateOnenoteNotebookSectionOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateOnenoteNotebookSectionOperationOptions ¶
func DefaultCreateOnenoteNotebookSectionOperationOptions() CreateOnenoteNotebookSectionOperationOptions
func (CreateOnenoteNotebookSectionOperationOptions) ToHeaders ¶
func (o CreateOnenoteNotebookSectionOperationOptions) ToHeaders() *client.Headers
func (CreateOnenoteNotebookSectionOperationOptions) ToOData ¶
func (o CreateOnenoteNotebookSectionOperationOptions) ToOData() *odata.Query
func (CreateOnenoteNotebookSectionOperationOptions) ToQuery ¶
func (o CreateOnenoteNotebookSectionOperationOptions) ToQuery() *client.QueryParams
type DeleteOnenoteNotebookSectionOperationOptions ¶
type DeleteOnenoteNotebookSectionOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteOnenoteNotebookSectionOperationOptions ¶
func DefaultDeleteOnenoteNotebookSectionOperationOptions() DeleteOnenoteNotebookSectionOperationOptions
func (DeleteOnenoteNotebookSectionOperationOptions) ToHeaders ¶
func (o DeleteOnenoteNotebookSectionOperationOptions) ToHeaders() *client.Headers
func (DeleteOnenoteNotebookSectionOperationOptions) ToOData ¶
func (o DeleteOnenoteNotebookSectionOperationOptions) ToOData() *odata.Query
func (DeleteOnenoteNotebookSectionOperationOptions) ToQuery ¶
func (o DeleteOnenoteNotebookSectionOperationOptions) ToQuery() *client.QueryParams
type GetOnenoteNotebookSectionOperationOptions ¶
type GetOnenoteNotebookSectionOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetOnenoteNotebookSectionOperationOptions ¶
func DefaultGetOnenoteNotebookSectionOperationOptions() GetOnenoteNotebookSectionOperationOptions
func (GetOnenoteNotebookSectionOperationOptions) ToHeaders ¶
func (o GetOnenoteNotebookSectionOperationOptions) ToHeaders() *client.Headers
func (GetOnenoteNotebookSectionOperationOptions) ToOData ¶
func (o GetOnenoteNotebookSectionOperationOptions) ToOData() *odata.Query
func (GetOnenoteNotebookSectionOperationOptions) ToQuery ¶
func (o GetOnenoteNotebookSectionOperationOptions) ToQuery() *client.QueryParams
type GetOnenoteNotebookSectionsCountOperationOptions ¶
type GetOnenoteNotebookSectionsCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetOnenoteNotebookSectionsCountOperationOptions ¶
func DefaultGetOnenoteNotebookSectionsCountOperationOptions() GetOnenoteNotebookSectionsCountOperationOptions
func (GetOnenoteNotebookSectionsCountOperationOptions) ToHeaders ¶
func (o GetOnenoteNotebookSectionsCountOperationOptions) ToHeaders() *client.Headers
func (GetOnenoteNotebookSectionsCountOperationOptions) ToOData ¶
func (o GetOnenoteNotebookSectionsCountOperationOptions) ToOData() *odata.Query
func (GetOnenoteNotebookSectionsCountOperationOptions) ToQuery ¶
func (o GetOnenoteNotebookSectionsCountOperationOptions) ToQuery() *client.QueryParams
type ListOnenoteNotebookSectionsCompleteResult ¶
type ListOnenoteNotebookSectionsCompleteResult struct { LatestHttpResponse *http.Response Items []stable.OnenoteSection }
type ListOnenoteNotebookSectionsCustomPager ¶
type ListOnenoteNotebookSectionsCustomPager struct {
NextLink *odata.Link `json:"@odata.nextLink"`
}
func (*ListOnenoteNotebookSectionsCustomPager) NextPageLink ¶
func (p *ListOnenoteNotebookSectionsCustomPager) NextPageLink() *odata.Link
type ListOnenoteNotebookSectionsOperationOptions ¶
type ListOnenoteNotebookSectionsOperationOptions 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 DefaultListOnenoteNotebookSectionsOperationOptions ¶
func DefaultListOnenoteNotebookSectionsOperationOptions() ListOnenoteNotebookSectionsOperationOptions
func (ListOnenoteNotebookSectionsOperationOptions) ToHeaders ¶
func (o ListOnenoteNotebookSectionsOperationOptions) ToHeaders() *client.Headers
func (ListOnenoteNotebookSectionsOperationOptions) ToOData ¶
func (o ListOnenoteNotebookSectionsOperationOptions) ToOData() *odata.Query
func (ListOnenoteNotebookSectionsOperationOptions) ToQuery ¶
func (o ListOnenoteNotebookSectionsOperationOptions) ToQuery() *client.QueryParams
type OnenoteNotebookSectionClient ¶
func NewOnenoteNotebookSectionClientWithBaseURI ¶
func NewOnenoteNotebookSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteNotebookSectionClient, error)
func (OnenoteNotebookSectionClient) CopyOnenoteNotebookSectionToNotebook ¶
func (c OnenoteNotebookSectionClient) CopyOnenoteNotebookSectionToNotebook(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, input CopyOnenoteNotebookSectionToNotebookRequest, options CopyOnenoteNotebookSectionToNotebookOperationOptions) (result CopyOnenoteNotebookSectionToNotebookOperationResponse, err error)
CopyOnenoteNotebookSectionToNotebook - 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 (OnenoteNotebookSectionClient) CopyOnenoteNotebookSectionToSectionGroup ¶
func (c OnenoteNotebookSectionClient) CopyOnenoteNotebookSectionToSectionGroup(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, input CopyOnenoteNotebookSectionToSectionGroupRequest, options CopyOnenoteNotebookSectionToSectionGroupOperationOptions) (result CopyOnenoteNotebookSectionToSectionGroupOperationResponse, err error)
CopyOnenoteNotebookSectionToSectionGroup - 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 (OnenoteNotebookSectionClient) CreateOnenoteNotebookSection ¶
func (c OnenoteNotebookSectionClient) CreateOnenoteNotebookSection(ctx context.Context, id stable.MeOnenoteNotebookId, input stable.OnenoteSection, options CreateOnenoteNotebookSectionOperationOptions) (result CreateOnenoteNotebookSectionOperationResponse, err error)
CreateOnenoteNotebookSection - Create section. Create a new onenoteSection in the specified notebook.
func (OnenoteNotebookSectionClient) DeleteOnenoteNotebookSection ¶
func (c OnenoteNotebookSectionClient) DeleteOnenoteNotebookSection(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, options DeleteOnenoteNotebookSectionOperationOptions) (result DeleteOnenoteNotebookSectionOperationResponse, err error)
DeleteOnenoteNotebookSection - Delete navigation property sections for me
func (OnenoteNotebookSectionClient) GetOnenoteNotebookSection ¶
func (c OnenoteNotebookSectionClient) GetOnenoteNotebookSection(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, options GetOnenoteNotebookSectionOperationOptions) (result GetOnenoteNotebookSectionOperationResponse, err error)
GetOnenoteNotebookSection - Get sections from me. The sections in the notebook. Read-only. Nullable.
func (OnenoteNotebookSectionClient) GetOnenoteNotebookSectionsCount ¶
func (c OnenoteNotebookSectionClient) GetOnenoteNotebookSectionsCount(ctx context.Context, id stable.MeOnenoteNotebookId, options GetOnenoteNotebookSectionsCountOperationOptions) (result GetOnenoteNotebookSectionsCountOperationResponse, err error)
GetOnenoteNotebookSectionsCount - Get the number of the resource
func (OnenoteNotebookSectionClient) ListOnenoteNotebookSections ¶
func (c OnenoteNotebookSectionClient) ListOnenoteNotebookSections(ctx context.Context, id stable.MeOnenoteNotebookId, options ListOnenoteNotebookSectionsOperationOptions) (result ListOnenoteNotebookSectionsOperationResponse, err error)
ListOnenoteNotebookSections - List sections. Retrieve a list of onenoteSection objects from the specified notebook.
func (OnenoteNotebookSectionClient) ListOnenoteNotebookSectionsComplete ¶
func (c OnenoteNotebookSectionClient) ListOnenoteNotebookSectionsComplete(ctx context.Context, id stable.MeOnenoteNotebookId, options ListOnenoteNotebookSectionsOperationOptions) (ListOnenoteNotebookSectionsCompleteResult, error)
ListOnenoteNotebookSectionsComplete retrieves all the results into a single object
func (OnenoteNotebookSectionClient) ListOnenoteNotebookSectionsCompleteMatchingPredicate ¶
func (c OnenoteNotebookSectionClient) ListOnenoteNotebookSectionsCompleteMatchingPredicate(ctx context.Context, id stable.MeOnenoteNotebookId, options ListOnenoteNotebookSectionsOperationOptions, predicate OnenoteSectionOperationPredicate) (result ListOnenoteNotebookSectionsCompleteResult, err error)
ListOnenoteNotebookSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (OnenoteNotebookSectionClient) UpdateOnenoteNotebookSection ¶
func (c OnenoteNotebookSectionClient) UpdateOnenoteNotebookSection(ctx context.Context, id stable.MeOnenoteNotebookIdSectionId, input stable.OnenoteSection, options UpdateOnenoteNotebookSectionOperationOptions) (result UpdateOnenoteNotebookSectionOperationResponse, err error)
UpdateOnenoteNotebookSection - Update the navigation property sections in me
type OnenoteSectionOperationPredicate ¶
type OnenoteSectionOperationPredicate struct { }
func (OnenoteSectionOperationPredicate) Matches ¶
func (p OnenoteSectionOperationPredicate) Matches(input stable.OnenoteSection) bool
type UpdateOnenoteNotebookSectionOperationOptions ¶
type UpdateOnenoteNotebookSectionOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateOnenoteNotebookSectionOperationOptions ¶
func DefaultUpdateOnenoteNotebookSectionOperationOptions() UpdateOnenoteNotebookSectionOperationOptions
func (UpdateOnenoteNotebookSectionOperationOptions) ToHeaders ¶
func (o UpdateOnenoteNotebookSectionOperationOptions) ToHeaders() *client.Headers
func (UpdateOnenoteNotebookSectionOperationOptions) ToOData ¶
func (o UpdateOnenoteNotebookSectionOperationOptions) ToOData() *odata.Query
func (UpdateOnenoteNotebookSectionOperationOptions) ToQuery ¶
func (o UpdateOnenoteNotebookSectionOperationOptions) ToQuery() *client.QueryParams
Source Files
¶
- client.go
- method_copyonenotenotebooksectiontonotebook.go
- method_copyonenotenotebooksectiontosectiongroup.go
- method_createonenotenotebooksection.go
- method_deleteonenotenotebooksection.go
- method_getonenotenotebooksection.go
- method_getonenotenotebooksectionscount.go
- method_listonenotenotebooksections.go
- method_updateonenotenotebooksection.go
- model_copyonenotenotebooksectiontonotebookrequest.go
- model_copyonenotenotebooksectiontosectiongrouprequest.go
- predicates.go
- version.go