README ¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/onenotesectionpage
Documentation
The onenotesectionpage
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/onenotesectionpage"
Client Initialization
client := onenotesectionpage.NewOnenoteSectionPageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: OnenoteSectionPageClient.CopyOnenoteSectionPageToSection
ctx := context.TODO()
id := onenotesectionpage.NewGroupIdOnenoteSectionIdPageID("groupId", "onenoteSectionId", "onenotePageId")
payload := onenotesectionpage.CopyOnenoteSectionPageToSectionRequest{
// ...
}
read, err := client.CopyOnenoteSectionPageToSection(ctx, id, payload, onenotesectionpage.DefaultCopyOnenoteSectionPageToSectionOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteSectionPageClient.CreateOnenoteSectionPage
ctx := context.TODO()
id := onenotesectionpage.NewGroupIdOnenoteSectionID("groupId", "onenoteSectionId")
payload := onenotesectionpage.OnenotePage{
// ...
}
read, err := client.CreateOnenoteSectionPage(ctx, id, payload, onenotesectionpage.DefaultCreateOnenoteSectionPageOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteSectionPageClient.CreateOnenoteSectionPageOnenotePatchContent
ctx := context.TODO()
id := onenotesectionpage.NewGroupIdOnenoteSectionIdPageID("groupId", "onenoteSectionId", "onenotePageId")
payload := onenotesectionpage.CreateOnenoteSectionPageOnenotePatchContentRequest{
// ...
}
read, err := client.CreateOnenoteSectionPageOnenotePatchContent(ctx, id, payload, onenotesectionpage.DefaultCreateOnenoteSectionPageOnenotePatchContentOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteSectionPageClient.DeleteOnenoteSectionPage
ctx := context.TODO()
id := onenotesectionpage.NewGroupIdOnenoteSectionIdPageID("groupId", "onenoteSectionId", "onenotePageId")
read, err := client.DeleteOnenoteSectionPage(ctx, id, onenotesectionpage.DefaultDeleteOnenoteSectionPageOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteSectionPageClient.GetOnenoteSectionPage
ctx := context.TODO()
id := onenotesectionpage.NewGroupIdOnenoteSectionIdPageID("groupId", "onenoteSectionId", "onenotePageId")
read, err := client.GetOnenoteSectionPage(ctx, id, onenotesectionpage.DefaultGetOnenoteSectionPageOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteSectionPageClient.GetOnenoteSectionPagesCount
ctx := context.TODO()
id := onenotesectionpage.NewGroupIdOnenoteSectionID("groupId", "onenoteSectionId")
read, err := client.GetOnenoteSectionPagesCount(ctx, id, onenotesectionpage.DefaultGetOnenoteSectionPagesCountOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: OnenoteSectionPageClient.ListOnenoteSectionPages
ctx := context.TODO()
id := onenotesectionpage.NewGroupIdOnenoteSectionID("groupId", "onenoteSectionId")
// alternatively `client.ListOnenoteSectionPages(ctx, id, onenotesectionpage.DefaultListOnenoteSectionPagesOperationOptions())` can be used to do batched pagination
items, err := client.ListOnenoteSectionPagesComplete(ctx, id, onenotesectionpage.DefaultListOnenoteSectionPagesOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: OnenoteSectionPageClient.UpdateOnenoteSectionPage
ctx := context.TODO()
id := onenotesectionpage.NewGroupIdOnenoteSectionIdPageID("groupId", "onenoteSectionId", "onenotePageId")
payload := onenotesectionpage.OnenotePage{
// ...
}
read, err := client.UpdateOnenoteSectionPage(ctx, id, payload, onenotesectionpage.DefaultUpdateOnenoteSectionPageOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- type CopyOnenoteSectionPageToSectionOperationOptions
- type CopyOnenoteSectionPageToSectionOperationResponse
- type CopyOnenoteSectionPageToSectionRequest
- type CreateOnenoteSectionPageOnenotePatchContentOperationOptions
- type CreateOnenoteSectionPageOnenotePatchContentOperationResponse
- type CreateOnenoteSectionPageOnenotePatchContentRequest
- type CreateOnenoteSectionPageOperationOptions
- type CreateOnenoteSectionPageOperationResponse
- type DeleteOnenoteSectionPageOperationOptions
- type DeleteOnenoteSectionPageOperationResponse
- type GetOnenoteSectionPageOperationOptions
- type GetOnenoteSectionPageOperationResponse
- type GetOnenoteSectionPagesCountOperationOptions
- type GetOnenoteSectionPagesCountOperationResponse
- type ListOnenoteSectionPagesCompleteResult
- type ListOnenoteSectionPagesCustomPager
- type ListOnenoteSectionPagesOperationOptions
- type ListOnenoteSectionPagesOperationResponse
- type OnenotePageOperationPredicate
- type OnenoteSectionPageClient
- func (c OnenoteSectionPageClient) CopyOnenoteSectionPageToSection(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, ...) (result CopyOnenoteSectionPageToSectionOperationResponse, err error)
- func (c OnenoteSectionPageClient) CreateOnenoteSectionPage(ctx context.Context, id beta.GroupIdOnenoteSectionId, input beta.OnenotePage, ...) (result CreateOnenoteSectionPageOperationResponse, err error)
- func (c OnenoteSectionPageClient) CreateOnenoteSectionPageOnenotePatchContent(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, ...) (result CreateOnenoteSectionPageOnenotePatchContentOperationResponse, err error)
- func (c OnenoteSectionPageClient) DeleteOnenoteSectionPage(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, ...) (result DeleteOnenoteSectionPageOperationResponse, err error)
- func (c OnenoteSectionPageClient) GetOnenoteSectionPage(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, ...) (result GetOnenoteSectionPageOperationResponse, err error)
- func (c OnenoteSectionPageClient) GetOnenoteSectionPagesCount(ctx context.Context, id beta.GroupIdOnenoteSectionId, ...) (result GetOnenoteSectionPagesCountOperationResponse, err error)
- func (c OnenoteSectionPageClient) ListOnenoteSectionPages(ctx context.Context, id beta.GroupIdOnenoteSectionId, ...) (result ListOnenoteSectionPagesOperationResponse, err error)
- func (c OnenoteSectionPageClient) ListOnenoteSectionPagesComplete(ctx context.Context, id beta.GroupIdOnenoteSectionId, ...) (ListOnenoteSectionPagesCompleteResult, error)
- func (c OnenoteSectionPageClient) ListOnenoteSectionPagesCompleteMatchingPredicate(ctx context.Context, id beta.GroupIdOnenoteSectionId, ...) (result ListOnenoteSectionPagesCompleteResult, err error)
- func (c OnenoteSectionPageClient) UpdateOnenoteSectionPage(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, ...) (result UpdateOnenoteSectionPageOperationResponse, err error)
- type UpdateOnenoteSectionPageOperationOptions
- type UpdateOnenoteSectionPageOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CopyOnenoteSectionPageToSectionOperationOptions ¶
type CopyOnenoteSectionPageToSectionOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCopyOnenoteSectionPageToSectionOperationOptions ¶
func DefaultCopyOnenoteSectionPageToSectionOperationOptions() CopyOnenoteSectionPageToSectionOperationOptions
func (CopyOnenoteSectionPageToSectionOperationOptions) ToHeaders ¶
func (o CopyOnenoteSectionPageToSectionOperationOptions) ToHeaders() *client.Headers
func (CopyOnenoteSectionPageToSectionOperationOptions) ToOData ¶
func (o CopyOnenoteSectionPageToSectionOperationOptions) ToOData() *odata.Query
func (CopyOnenoteSectionPageToSectionOperationOptions) ToQuery ¶
func (o CopyOnenoteSectionPageToSectionOperationOptions) ToQuery() *client.QueryParams
type CreateOnenoteSectionPageOnenotePatchContentOperationOptions ¶
type CreateOnenoteSectionPageOnenotePatchContentOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateOnenoteSectionPageOnenotePatchContentOperationOptions ¶
func DefaultCreateOnenoteSectionPageOnenotePatchContentOperationOptions() CreateOnenoteSectionPageOnenotePatchContentOperationOptions
func (CreateOnenoteSectionPageOnenotePatchContentOperationOptions) ToHeaders ¶
func (o CreateOnenoteSectionPageOnenotePatchContentOperationOptions) ToHeaders() *client.Headers
func (CreateOnenoteSectionPageOnenotePatchContentOperationOptions) ToOData ¶
func (o CreateOnenoteSectionPageOnenotePatchContentOperationOptions) ToOData() *odata.Query
func (CreateOnenoteSectionPageOnenotePatchContentOperationOptions) ToQuery ¶
func (o CreateOnenoteSectionPageOnenotePatchContentOperationOptions) ToQuery() *client.QueryParams
type CreateOnenoteSectionPageOnenotePatchContentRequest ¶
type CreateOnenoteSectionPageOnenotePatchContentRequest struct {
Commands *[]beta.OnenotePatchContentCommand `json:"commands,omitempty"`
}
type CreateOnenoteSectionPageOperationOptions ¶
type CreateOnenoteSectionPageOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateOnenoteSectionPageOperationOptions ¶
func DefaultCreateOnenoteSectionPageOperationOptions() CreateOnenoteSectionPageOperationOptions
func (CreateOnenoteSectionPageOperationOptions) ToHeaders ¶
func (o CreateOnenoteSectionPageOperationOptions) ToHeaders() *client.Headers
func (CreateOnenoteSectionPageOperationOptions) ToOData ¶
func (o CreateOnenoteSectionPageOperationOptions) ToOData() *odata.Query
func (CreateOnenoteSectionPageOperationOptions) ToQuery ¶
func (o CreateOnenoteSectionPageOperationOptions) ToQuery() *client.QueryParams
type DeleteOnenoteSectionPageOperationOptions ¶
type DeleteOnenoteSectionPageOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteOnenoteSectionPageOperationOptions ¶
func DefaultDeleteOnenoteSectionPageOperationOptions() DeleteOnenoteSectionPageOperationOptions
func (DeleteOnenoteSectionPageOperationOptions) ToHeaders ¶
func (o DeleteOnenoteSectionPageOperationOptions) ToHeaders() *client.Headers
func (DeleteOnenoteSectionPageOperationOptions) ToOData ¶
func (o DeleteOnenoteSectionPageOperationOptions) ToOData() *odata.Query
func (DeleteOnenoteSectionPageOperationOptions) ToQuery ¶
func (o DeleteOnenoteSectionPageOperationOptions) ToQuery() *client.QueryParams
type GetOnenoteSectionPageOperationOptions ¶
type GetOnenoteSectionPageOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetOnenoteSectionPageOperationOptions ¶
func DefaultGetOnenoteSectionPageOperationOptions() GetOnenoteSectionPageOperationOptions
func (GetOnenoteSectionPageOperationOptions) ToHeaders ¶
func (o GetOnenoteSectionPageOperationOptions) ToHeaders() *client.Headers
func (GetOnenoteSectionPageOperationOptions) ToOData ¶
func (o GetOnenoteSectionPageOperationOptions) ToOData() *odata.Query
func (GetOnenoteSectionPageOperationOptions) ToQuery ¶
func (o GetOnenoteSectionPageOperationOptions) ToQuery() *client.QueryParams
type GetOnenoteSectionPagesCountOperationOptions ¶
type GetOnenoteSectionPagesCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetOnenoteSectionPagesCountOperationOptions ¶
func DefaultGetOnenoteSectionPagesCountOperationOptions() GetOnenoteSectionPagesCountOperationOptions
func (GetOnenoteSectionPagesCountOperationOptions) ToHeaders ¶
func (o GetOnenoteSectionPagesCountOperationOptions) ToHeaders() *client.Headers
func (GetOnenoteSectionPagesCountOperationOptions) ToOData ¶
func (o GetOnenoteSectionPagesCountOperationOptions) ToOData() *odata.Query
func (GetOnenoteSectionPagesCountOperationOptions) ToQuery ¶
func (o GetOnenoteSectionPagesCountOperationOptions) ToQuery() *client.QueryParams
type ListOnenoteSectionPagesCompleteResult ¶
type ListOnenoteSectionPagesCompleteResult struct { LatestHttpResponse *http.Response Items []beta.OnenotePage }
type ListOnenoteSectionPagesCustomPager ¶
func (*ListOnenoteSectionPagesCustomPager) NextPageLink ¶
func (p *ListOnenoteSectionPagesCustomPager) NextPageLink() *odata.Link
type ListOnenoteSectionPagesOperationOptions ¶
type ListOnenoteSectionPagesOperationOptions 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 DefaultListOnenoteSectionPagesOperationOptions ¶
func DefaultListOnenoteSectionPagesOperationOptions() ListOnenoteSectionPagesOperationOptions
func (ListOnenoteSectionPagesOperationOptions) ToHeaders ¶
func (o ListOnenoteSectionPagesOperationOptions) ToHeaders() *client.Headers
func (ListOnenoteSectionPagesOperationOptions) ToOData ¶
func (o ListOnenoteSectionPagesOperationOptions) ToOData() *odata.Query
func (ListOnenoteSectionPagesOperationOptions) ToQuery ¶
func (o ListOnenoteSectionPagesOperationOptions) ToQuery() *client.QueryParams
type OnenotePageOperationPredicate ¶
type OnenotePageOperationPredicate struct { }
func (OnenotePageOperationPredicate) Matches ¶
func (p OnenotePageOperationPredicate) Matches(input beta.OnenotePage) bool
type OnenoteSectionPageClient ¶
func NewOnenoteSectionPageClientWithBaseURI ¶
func NewOnenoteSectionPageClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteSectionPageClient, error)
func (OnenoteSectionPageClient) CopyOnenoteSectionPageToSection ¶
func (c OnenoteSectionPageClient) CopyOnenoteSectionPageToSection(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, input CopyOnenoteSectionPageToSectionRequest, options CopyOnenoteSectionPageToSectionOperationOptions) (result CopyOnenoteSectionPageToSectionOperationResponse, err error)
CopyOnenoteSectionPageToSection - Invoke action copyToSection. Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.
func (OnenoteSectionPageClient) CreateOnenoteSectionPage ¶
func (c OnenoteSectionPageClient) CreateOnenoteSectionPage(ctx context.Context, id beta.GroupIdOnenoteSectionId, input beta.OnenotePage, options CreateOnenoteSectionPageOperationOptions) (result CreateOnenoteSectionPageOperationResponse, err error)
CreateOnenoteSectionPage - Create new navigation property to pages for groups
func (OnenoteSectionPageClient) CreateOnenoteSectionPageOnenotePatchContent ¶
func (c OnenoteSectionPageClient) CreateOnenoteSectionPageOnenotePatchContent(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, input CreateOnenoteSectionPageOnenotePatchContentRequest, options CreateOnenoteSectionPageOnenotePatchContentOperationOptions) (result CreateOnenoteSectionPageOnenotePatchContentOperationResponse, err error)
CreateOnenoteSectionPageOnenotePatchContent - Invoke action onenotePatchContent
func (OnenoteSectionPageClient) DeleteOnenoteSectionPage ¶
func (c OnenoteSectionPageClient) DeleteOnenoteSectionPage(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, options DeleteOnenoteSectionPageOperationOptions) (result DeleteOnenoteSectionPageOperationResponse, err error)
DeleteOnenoteSectionPage - Delete navigation property pages for groups
func (OnenoteSectionPageClient) GetOnenoteSectionPage ¶
func (c OnenoteSectionPageClient) GetOnenoteSectionPage(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, options GetOnenoteSectionPageOperationOptions) (result GetOnenoteSectionPageOperationResponse, err error)
GetOnenoteSectionPage - Get pages from groups. The collection of pages in the section. Read-only. Nullable.
func (OnenoteSectionPageClient) GetOnenoteSectionPagesCount ¶
func (c OnenoteSectionPageClient) GetOnenoteSectionPagesCount(ctx context.Context, id beta.GroupIdOnenoteSectionId, options GetOnenoteSectionPagesCountOperationOptions) (result GetOnenoteSectionPagesCountOperationResponse, err error)
GetOnenoteSectionPagesCount - Get the number of the resource
func (OnenoteSectionPageClient) ListOnenoteSectionPages ¶
func (c OnenoteSectionPageClient) ListOnenoteSectionPages(ctx context.Context, id beta.GroupIdOnenoteSectionId, options ListOnenoteSectionPagesOperationOptions) (result ListOnenoteSectionPagesOperationResponse, err error)
ListOnenoteSectionPages - Get pages from groups. The collection of pages in the section. Read-only. Nullable.
func (OnenoteSectionPageClient) ListOnenoteSectionPagesComplete ¶
func (c OnenoteSectionPageClient) ListOnenoteSectionPagesComplete(ctx context.Context, id beta.GroupIdOnenoteSectionId, options ListOnenoteSectionPagesOperationOptions) (ListOnenoteSectionPagesCompleteResult, error)
ListOnenoteSectionPagesComplete retrieves all the results into a single object
func (OnenoteSectionPageClient) ListOnenoteSectionPagesCompleteMatchingPredicate ¶
func (c OnenoteSectionPageClient) ListOnenoteSectionPagesCompleteMatchingPredicate(ctx context.Context, id beta.GroupIdOnenoteSectionId, options ListOnenoteSectionPagesOperationOptions, predicate OnenotePageOperationPredicate) (result ListOnenoteSectionPagesCompleteResult, err error)
ListOnenoteSectionPagesCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (OnenoteSectionPageClient) UpdateOnenoteSectionPage ¶
func (c OnenoteSectionPageClient) UpdateOnenoteSectionPage(ctx context.Context, id beta.GroupIdOnenoteSectionIdPageId, input beta.OnenotePage, options UpdateOnenoteSectionPageOperationOptions) (result UpdateOnenoteSectionPageOperationResponse, err error)
UpdateOnenoteSectionPage - Update the navigation property pages in groups
type UpdateOnenoteSectionPageOperationOptions ¶
type UpdateOnenoteSectionPageOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateOnenoteSectionPageOperationOptions ¶
func DefaultUpdateOnenoteSectionPageOperationOptions() UpdateOnenoteSectionPageOperationOptions
func (UpdateOnenoteSectionPageOperationOptions) ToHeaders ¶
func (o UpdateOnenoteSectionPageOperationOptions) ToHeaders() *client.Headers
func (UpdateOnenoteSectionPageOperationOptions) ToOData ¶
func (o UpdateOnenoteSectionPageOperationOptions) ToOData() *odata.Query
func (UpdateOnenoteSectionPageOperationOptions) ToQuery ¶
func (o UpdateOnenoteSectionPageOperationOptions) ToQuery() *client.QueryParams
Source Files ¶
- client.go
- method_copyonenotesectionpagetosection.go
- method_createonenotesectionpage.go
- method_createonenotesectionpageonenotepatchcontent.go
- method_deleteonenotesectionpage.go
- method_getonenotesectionpage.go
- method_getonenotesectionpagescount.go
- method_listonenotesectionpages.go
- method_updateonenotesectionpage.go
- model_copyonenotesectionpagetosectionrequest.go
- model_createonenotesectionpageonenotepatchcontentrequest.go
- predicates.go
- version.go