siteonenotenotebooksectiongroupsection

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := siteonenotenotebooksectiongroupsection.NewSiteOnenoteNotebookSectionGroupSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteOnenoteNotebookSectionGroupSectionClient.CopySiteOnenoteNotebookSectionGroupSectionToNotebook

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsection.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId")

payload := siteonenotenotebooksectiongroupsection.CopySiteOnenoteNotebookSectionGroupSectionToNotebookRequest{
	// ...
}


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

Example Usage: SiteOnenoteNotebookSectionGroupSectionClient.CopySiteOnenoteNotebookSectionGroupSectionToSectionGroup

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsection.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId")

payload := siteonenotenotebooksectiongroupsection.CopySiteOnenoteNotebookSectionGroupSectionToSectionGroupRequest{
	// ...
}


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

Example Usage: SiteOnenoteNotebookSectionGroupSectionClient.CreateSiteOnenoteNotebookSectionGroupSection

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsection.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupID("groupId", "siteId", "notebookId", "sectionGroupId")

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


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

Example Usage: SiteOnenoteNotebookSectionGroupSectionClient.DeleteSiteOnenoteNotebookSectionGroupSection

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsection.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: SiteOnenoteNotebookSectionGroupSectionClient.GetSiteOnenoteNotebookSectionGroupSection

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsection.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: SiteOnenoteNotebookSectionGroupSectionClient.GetSiteOnenoteNotebookSectionGroupSectionsCount

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsection.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupID("groupId", "siteId", "notebookId", "sectionGroupId")

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

Example Usage: SiteOnenoteNotebookSectionGroupSectionClient.ListSiteOnenoteNotebookSectionGroupSections

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsection.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupID("groupId", "siteId", "notebookId", "sectionGroupId")

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

Example Usage: SiteOnenoteNotebookSectionGroupSectionClient.UpdateSiteOnenoteNotebookSectionGroupSection

ctx := context.TODO()
id := siteonenotenotebooksectiongroupsection.NewGroupIdSiteIdOnenoteNotebookIdSectionGroupIdSectionID("groupId", "siteId", "notebookId", "sectionGroupId", "onenoteSectionId")

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


read, err := client.UpdateSiteOnenoteNotebookSectionGroupSection(ctx, id, payload, siteonenotenotebooksectiongroupsection.DefaultUpdateSiteOnenoteNotebookSectionGroupSectionOperationOptions())
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 CopySiteOnenoteNotebookSectionGroupSectionToNotebookOperationOptions

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

func (CopySiteOnenoteNotebookSectionGroupSectionToNotebookOperationOptions) ToHeaders

func (CopySiteOnenoteNotebookSectionGroupSectionToNotebookOperationOptions) ToOData

func (CopySiteOnenoteNotebookSectionGroupSectionToNotebookOperationOptions) ToQuery

type CopySiteOnenoteNotebookSectionGroupSectionToNotebookOperationResponse

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

type CopySiteOnenoteNotebookSectionGroupSectionToNotebookRequest

type CopySiteOnenoteNotebookSectionGroupSectionToNotebookRequest 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 CopySiteOnenoteNotebookSectionGroupSectionToSectionGroupOperationOptions

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

func (CopySiteOnenoteNotebookSectionGroupSectionToSectionGroupOperationOptions) ToHeaders

func (CopySiteOnenoteNotebookSectionGroupSectionToSectionGroupOperationOptions) ToOData

func (CopySiteOnenoteNotebookSectionGroupSectionToSectionGroupOperationOptions) ToQuery

type CopySiteOnenoteNotebookSectionGroupSectionToSectionGroupOperationResponse

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

type CopySiteOnenoteNotebookSectionGroupSectionToSectionGroupRequest

type CopySiteOnenoteNotebookSectionGroupSectionToSectionGroupRequest 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 CreateSiteOnenoteNotebookSectionGroupSectionOperationOptions

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

func (CreateSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToHeaders

func (CreateSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToOData

func (CreateSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToQuery

type CreateSiteOnenoteNotebookSectionGroupSectionOperationResponse

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

type DeleteSiteOnenoteNotebookSectionGroupSectionOperationOptions

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

func (DeleteSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToHeaders

func (DeleteSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToOData

func (DeleteSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToQuery

type DeleteSiteOnenoteNotebookSectionGroupSectionOperationResponse

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

type GetSiteOnenoteNotebookSectionGroupSectionOperationOptions

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

func (GetSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToHeaders

func (GetSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToOData

func (GetSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToQuery

type GetSiteOnenoteNotebookSectionGroupSectionOperationResponse

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

type GetSiteOnenoteNotebookSectionGroupSectionsCountOperationOptions

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

func (GetSiteOnenoteNotebookSectionGroupSectionsCountOperationOptions) ToHeaders

func (GetSiteOnenoteNotebookSectionGroupSectionsCountOperationOptions) ToOData

func (GetSiteOnenoteNotebookSectionGroupSectionsCountOperationOptions) ToQuery

type GetSiteOnenoteNotebookSectionGroupSectionsCountOperationResponse

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

type ListSiteOnenoteNotebookSectionGroupSectionsCompleteResult

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

type ListSiteOnenoteNotebookSectionGroupSectionsCustomPager

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

type ListSiteOnenoteNotebookSectionGroupSectionsOperationOptions

type ListSiteOnenoteNotebookSectionGroupSectionsOperationOptions 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 (ListSiteOnenoteNotebookSectionGroupSectionsOperationOptions) ToHeaders

func (ListSiteOnenoteNotebookSectionGroupSectionsOperationOptions) ToOData

func (ListSiteOnenoteNotebookSectionGroupSectionsOperationOptions) ToQuery

type ListSiteOnenoteNotebookSectionGroupSectionsOperationResponse

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

type OnenoteSectionOperationPredicate

type OnenoteSectionOperationPredicate struct {
}

func (OnenoteSectionOperationPredicate) Matches

type SiteOnenoteNotebookSectionGroupSectionClient

type SiteOnenoteNotebookSectionGroupSectionClient struct {
	Client *msgraph.Client
}

func NewSiteOnenoteNotebookSectionGroupSectionClientWithBaseURI

func NewSiteOnenoteNotebookSectionGroupSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteOnenoteNotebookSectionGroupSectionClient, error)

func (SiteOnenoteNotebookSectionGroupSectionClient) CopySiteOnenoteNotebookSectionGroupSectionToNotebook

CopySiteOnenoteNotebookSectionGroupSectionToNotebook - 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 (SiteOnenoteNotebookSectionGroupSectionClient) CopySiteOnenoteNotebookSectionGroupSectionToSectionGroup

CopySiteOnenoteNotebookSectionGroupSectionToSectionGroup - 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 (SiteOnenoteNotebookSectionGroupSectionClient) CreateSiteOnenoteNotebookSectionGroupSection

CreateSiteOnenoteNotebookSectionGroupSection - Create new navigation property to sections for groups

func (SiteOnenoteNotebookSectionGroupSectionClient) DeleteSiteOnenoteNotebookSectionGroupSection

DeleteSiteOnenoteNotebookSectionGroupSection - Delete navigation property sections for groups

func (SiteOnenoteNotebookSectionGroupSectionClient) GetSiteOnenoteNotebookSectionGroupSection

GetSiteOnenoteNotebookSectionGroupSection - Get sections from groups. The sections in the section group. Read-only. Nullable.

func (SiteOnenoteNotebookSectionGroupSectionClient) GetSiteOnenoteNotebookSectionGroupSectionsCount

GetSiteOnenoteNotebookSectionGroupSectionsCount - Get the number of the resource

func (SiteOnenoteNotebookSectionGroupSectionClient) ListSiteOnenoteNotebookSectionGroupSections

ListSiteOnenoteNotebookSectionGroupSections - Get sections from groups. The sections in the section group. Read-only. Nullable.

func (SiteOnenoteNotebookSectionGroupSectionClient) ListSiteOnenoteNotebookSectionGroupSectionsComplete

ListSiteOnenoteNotebookSectionGroupSectionsComplete retrieves all the results into a single object

func (SiteOnenoteNotebookSectionGroupSectionClient) ListSiteOnenoteNotebookSectionGroupSectionsCompleteMatchingPredicate

ListSiteOnenoteNotebookSectionGroupSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteOnenoteNotebookSectionGroupSectionClient) UpdateSiteOnenoteNotebookSectionGroupSection

UpdateSiteOnenoteNotebookSectionGroupSection - Update the navigation property sections in groups

type UpdateSiteOnenoteNotebookSectionGroupSectionOperationOptions

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

func (UpdateSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToHeaders

func (UpdateSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToOData

func (UpdateSiteOnenoteNotebookSectionGroupSectionOperationOptions) ToQuery

type UpdateSiteOnenoteNotebookSectionGroupSectionOperationResponse

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