onenotesectiongroupsection

package
v0.20241021.1074254 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/onenotesectiongroupsection Documentation

The onenotesectiongroupsection SDK allows for interaction with Microsoft Graph users (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/users/stable/onenotesectiongroupsection"

Client Initialization

client := onenotesectiongroupsection.NewOnenoteSectionGroupSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OnenoteSectionGroupSectionClient.CopyOnenoteSectionGroupSectionToNotebook

ctx := context.TODO()
id := onenotesectiongroupsection.NewUserIdOnenoteSectionGroupIdSectionID("userId", "sectionGroupId", "onenoteSectionId")

payload := onenotesectiongroupsection.CopyOnenoteSectionGroupSectionToNotebookRequest{
	// ...
}


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

Example Usage: OnenoteSectionGroupSectionClient.CopyOnenoteSectionGroupSectionToSectionGroup

ctx := context.TODO()
id := onenotesectiongroupsection.NewUserIdOnenoteSectionGroupIdSectionID("userId", "sectionGroupId", "onenoteSectionId")

payload := onenotesectiongroupsection.CopyOnenoteSectionGroupSectionToSectionGroupRequest{
	// ...
}


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

Example Usage: OnenoteSectionGroupSectionClient.CreateOnenoteSectionGroupSection

ctx := context.TODO()
id := onenotesectiongroupsection.NewUserIdOnenoteSectionGroupID("userId", "sectionGroupId")

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


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

Example Usage: OnenoteSectionGroupSectionClient.DeleteOnenoteSectionGroupSection

ctx := context.TODO()
id := onenotesectiongroupsection.NewUserIdOnenoteSectionGroupIdSectionID("userId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: OnenoteSectionGroupSectionClient.GetOnenoteSectionGroupSection

ctx := context.TODO()
id := onenotesectiongroupsection.NewUserIdOnenoteSectionGroupIdSectionID("userId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: OnenoteSectionGroupSectionClient.GetOnenoteSectionGroupSectionsCount

ctx := context.TODO()
id := onenotesectiongroupsection.NewUserIdOnenoteSectionGroupID("userId", "sectionGroupId")

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

Example Usage: OnenoteSectionGroupSectionClient.ListOnenoteSectionGroupSections

ctx := context.TODO()
id := onenotesectiongroupsection.NewUserIdOnenoteSectionGroupID("userId", "sectionGroupId")

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

Example Usage: OnenoteSectionGroupSectionClient.UpdateOnenoteSectionGroupSection

ctx := context.TODO()
id := onenotesectiongroupsection.NewUserIdOnenoteSectionGroupIdSectionID("userId", "sectionGroupId", "onenoteSectionId")

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


read, err := client.UpdateOnenoteSectionGroupSection(ctx, id, payload, onenotesectiongroupsection.DefaultUpdateOnenoteSectionGroupSectionOperationOptions())
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 CopyOnenoteSectionGroupSectionToNotebookOperationOptions

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

func (CopyOnenoteSectionGroupSectionToNotebookOperationOptions) ToHeaders

func (CopyOnenoteSectionGroupSectionToNotebookOperationOptions) ToOData

func (CopyOnenoteSectionGroupSectionToNotebookOperationOptions) ToQuery

type CopyOnenoteSectionGroupSectionToNotebookOperationResponse

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

type CopyOnenoteSectionGroupSectionToNotebookRequest

type CopyOnenoteSectionGroupSectionToNotebookRequest 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 CopyOnenoteSectionGroupSectionToSectionGroupOperationOptions

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

func (CopyOnenoteSectionGroupSectionToSectionGroupOperationOptions) ToHeaders

func (CopyOnenoteSectionGroupSectionToSectionGroupOperationOptions) ToOData

func (CopyOnenoteSectionGroupSectionToSectionGroupOperationOptions) ToQuery

type CopyOnenoteSectionGroupSectionToSectionGroupOperationResponse

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

type CopyOnenoteSectionGroupSectionToSectionGroupRequest

type CopyOnenoteSectionGroupSectionToSectionGroupRequest 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 CreateOnenoteSectionGroupSectionOperationOptions

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

func DefaultCreateOnenoteSectionGroupSectionOperationOptions

func DefaultCreateOnenoteSectionGroupSectionOperationOptions() CreateOnenoteSectionGroupSectionOperationOptions

func (CreateOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (CreateOnenoteSectionGroupSectionOperationOptions) ToOData

func (CreateOnenoteSectionGroupSectionOperationOptions) ToQuery

type CreateOnenoteSectionGroupSectionOperationResponse

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

type DeleteOnenoteSectionGroupSectionOperationOptions

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

func DefaultDeleteOnenoteSectionGroupSectionOperationOptions

func DefaultDeleteOnenoteSectionGroupSectionOperationOptions() DeleteOnenoteSectionGroupSectionOperationOptions

func (DeleteOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (DeleteOnenoteSectionGroupSectionOperationOptions) ToOData

func (DeleteOnenoteSectionGroupSectionOperationOptions) ToQuery

type DeleteOnenoteSectionGroupSectionOperationResponse

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

type GetOnenoteSectionGroupSectionOperationOptions

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

func DefaultGetOnenoteSectionGroupSectionOperationOptions

func DefaultGetOnenoteSectionGroupSectionOperationOptions() GetOnenoteSectionGroupSectionOperationOptions

func (GetOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (GetOnenoteSectionGroupSectionOperationOptions) ToOData

func (GetOnenoteSectionGroupSectionOperationOptions) ToQuery

type GetOnenoteSectionGroupSectionOperationResponse

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

type GetOnenoteSectionGroupSectionsCountOperationOptions

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

func DefaultGetOnenoteSectionGroupSectionsCountOperationOptions

func DefaultGetOnenoteSectionGroupSectionsCountOperationOptions() GetOnenoteSectionGroupSectionsCountOperationOptions

func (GetOnenoteSectionGroupSectionsCountOperationOptions) ToHeaders

func (GetOnenoteSectionGroupSectionsCountOperationOptions) ToOData

func (GetOnenoteSectionGroupSectionsCountOperationOptions) ToQuery

type GetOnenoteSectionGroupSectionsCountOperationResponse

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

type ListOnenoteSectionGroupSectionsCompleteResult

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

type ListOnenoteSectionGroupSectionsCustomPager

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

type ListOnenoteSectionGroupSectionsOperationOptions

type ListOnenoteSectionGroupSectionsOperationOptions 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 DefaultListOnenoteSectionGroupSectionsOperationOptions

func DefaultListOnenoteSectionGroupSectionsOperationOptions() ListOnenoteSectionGroupSectionsOperationOptions

func (ListOnenoteSectionGroupSectionsOperationOptions) ToHeaders

func (ListOnenoteSectionGroupSectionsOperationOptions) ToOData

func (ListOnenoteSectionGroupSectionsOperationOptions) ToQuery

type ListOnenoteSectionGroupSectionsOperationResponse

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

type OnenoteSectionGroupSectionClient

type OnenoteSectionGroupSectionClient struct {
	Client *msgraph.Client
}

func NewOnenoteSectionGroupSectionClientWithBaseURI

func NewOnenoteSectionGroupSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*OnenoteSectionGroupSectionClient, error)

func (OnenoteSectionGroupSectionClient) CopyOnenoteSectionGroupSectionToNotebook

CopyOnenoteSectionGroupSectionToNotebook - 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 (OnenoteSectionGroupSectionClient) CopyOnenoteSectionGroupSectionToSectionGroup

CopyOnenoteSectionGroupSectionToSectionGroup - 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 (OnenoteSectionGroupSectionClient) CreateOnenoteSectionGroupSection

CreateOnenoteSectionGroupSection - Create new navigation property to sections for users

func (OnenoteSectionGroupSectionClient) DeleteOnenoteSectionGroupSection

DeleteOnenoteSectionGroupSection - Delete navigation property sections for users

func (OnenoteSectionGroupSectionClient) GetOnenoteSectionGroupSection

GetOnenoteSectionGroupSection - Get sections from users. The sections in the section group. Read-only. Nullable.

func (OnenoteSectionGroupSectionClient) GetOnenoteSectionGroupSectionsCount

GetOnenoteSectionGroupSectionsCount - Get the number of the resource

func (OnenoteSectionGroupSectionClient) ListOnenoteSectionGroupSections

ListOnenoteSectionGroupSections - Get sections from users. The sections in the section group. Read-only. Nullable.

func (OnenoteSectionGroupSectionClient) ListOnenoteSectionGroupSectionsComplete

ListOnenoteSectionGroupSectionsComplete retrieves all the results into a single object

func (OnenoteSectionGroupSectionClient) ListOnenoteSectionGroupSectionsCompleteMatchingPredicate

ListOnenoteSectionGroupSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OnenoteSectionGroupSectionClient) UpdateOnenoteSectionGroupSection

UpdateOnenoteSectionGroupSection - Update the navigation property sections in users

type OnenoteSectionOperationPredicate

type OnenoteSectionOperationPredicate struct {
}

func (OnenoteSectionOperationPredicate) Matches

type UpdateOnenoteSectionGroupSectionOperationOptions

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

func DefaultUpdateOnenoteSectionGroupSectionOperationOptions

func DefaultUpdateOnenoteSectionGroupSectionOperationOptions() UpdateOnenoteSectionGroupSectionOperationOptions

func (UpdateOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (UpdateOnenoteSectionGroupSectionOperationOptions) ToOData

func (UpdateOnenoteSectionGroupSectionOperationOptions) ToQuery

type UpdateOnenoteSectionGroupSectionOperationResponse

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