siteonenotesectiongroupsection

package
v0.20241023.1122425 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := siteonenotesectiongroupsection.NewSiteOnenoteSectionGroupSectionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteOnenoteSectionGroupSectionClient.CopySiteOnenoteSectionGroupSectionToNotebook

ctx := context.TODO()
id := siteonenotesectiongroupsection.NewGroupIdSiteIdOnenoteSectionGroupIdSectionID("groupId", "siteId", "sectionGroupId", "onenoteSectionId")

payload := siteonenotesectiongroupsection.CopySiteOnenoteSectionGroupSectionToNotebookRequest{
	// ...
}


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

Example Usage: SiteOnenoteSectionGroupSectionClient.CopySiteOnenoteSectionGroupSectionToSectionGroup

ctx := context.TODO()
id := siteonenotesectiongroupsection.NewGroupIdSiteIdOnenoteSectionGroupIdSectionID("groupId", "siteId", "sectionGroupId", "onenoteSectionId")

payload := siteonenotesectiongroupsection.CopySiteOnenoteSectionGroupSectionToSectionGroupRequest{
	// ...
}


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

Example Usage: SiteOnenoteSectionGroupSectionClient.CreateSiteOnenoteSectionGroupSection

ctx := context.TODO()
id := siteonenotesectiongroupsection.NewGroupIdSiteIdOnenoteSectionGroupID("groupId", "siteId", "sectionGroupId")

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


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

Example Usage: SiteOnenoteSectionGroupSectionClient.DeleteSiteOnenoteSectionGroupSection

ctx := context.TODO()
id := siteonenotesectiongroupsection.NewGroupIdSiteIdOnenoteSectionGroupIdSectionID("groupId", "siteId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: SiteOnenoteSectionGroupSectionClient.GetSiteOnenoteSectionGroupSection

ctx := context.TODO()
id := siteonenotesectiongroupsection.NewGroupIdSiteIdOnenoteSectionGroupIdSectionID("groupId", "siteId", "sectionGroupId", "onenoteSectionId")

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

Example Usage: SiteOnenoteSectionGroupSectionClient.GetSiteOnenoteSectionGroupSectionsCount

ctx := context.TODO()
id := siteonenotesectiongroupsection.NewGroupIdSiteIdOnenoteSectionGroupID("groupId", "siteId", "sectionGroupId")

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

Example Usage: SiteOnenoteSectionGroupSectionClient.ListSiteOnenoteSectionGroupSections

ctx := context.TODO()
id := siteonenotesectiongroupsection.NewGroupIdSiteIdOnenoteSectionGroupID("groupId", "siteId", "sectionGroupId")

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

Example Usage: SiteOnenoteSectionGroupSectionClient.UpdateSiteOnenoteSectionGroupSection

ctx := context.TODO()
id := siteonenotesectiongroupsection.NewGroupIdSiteIdOnenoteSectionGroupIdSectionID("groupId", "siteId", "sectionGroupId", "onenoteSectionId")

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


read, err := client.UpdateSiteOnenoteSectionGroupSection(ctx, id, payload, siteonenotesectiongroupsection.DefaultUpdateSiteOnenoteSectionGroupSectionOperationOptions())
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 CopySiteOnenoteSectionGroupSectionToNotebookOperationOptions

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

func (CopySiteOnenoteSectionGroupSectionToNotebookOperationOptions) ToHeaders

func (CopySiteOnenoteSectionGroupSectionToNotebookOperationOptions) ToOData

func (CopySiteOnenoteSectionGroupSectionToNotebookOperationOptions) ToQuery

type CopySiteOnenoteSectionGroupSectionToNotebookOperationResponse

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

type CopySiteOnenoteSectionGroupSectionToNotebookRequest

type CopySiteOnenoteSectionGroupSectionToNotebookRequest 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 CopySiteOnenoteSectionGroupSectionToSectionGroupOperationOptions

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

func (CopySiteOnenoteSectionGroupSectionToSectionGroupOperationOptions) ToHeaders

func (CopySiteOnenoteSectionGroupSectionToSectionGroupOperationOptions) ToOData

func (CopySiteOnenoteSectionGroupSectionToSectionGroupOperationOptions) ToQuery

type CopySiteOnenoteSectionGroupSectionToSectionGroupOperationResponse

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

type CopySiteOnenoteSectionGroupSectionToSectionGroupRequest

type CopySiteOnenoteSectionGroupSectionToSectionGroupRequest 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 CreateSiteOnenoteSectionGroupSectionOperationOptions

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

func DefaultCreateSiteOnenoteSectionGroupSectionOperationOptions

func DefaultCreateSiteOnenoteSectionGroupSectionOperationOptions() CreateSiteOnenoteSectionGroupSectionOperationOptions

func (CreateSiteOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (CreateSiteOnenoteSectionGroupSectionOperationOptions) ToOData

func (CreateSiteOnenoteSectionGroupSectionOperationOptions) ToQuery

type CreateSiteOnenoteSectionGroupSectionOperationResponse

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

type DeleteSiteOnenoteSectionGroupSectionOperationOptions

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

func DefaultDeleteSiteOnenoteSectionGroupSectionOperationOptions

func DefaultDeleteSiteOnenoteSectionGroupSectionOperationOptions() DeleteSiteOnenoteSectionGroupSectionOperationOptions

func (DeleteSiteOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (DeleteSiteOnenoteSectionGroupSectionOperationOptions) ToOData

func (DeleteSiteOnenoteSectionGroupSectionOperationOptions) ToQuery

type DeleteSiteOnenoteSectionGroupSectionOperationResponse

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

type GetSiteOnenoteSectionGroupSectionOperationOptions

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

func DefaultGetSiteOnenoteSectionGroupSectionOperationOptions

func DefaultGetSiteOnenoteSectionGroupSectionOperationOptions() GetSiteOnenoteSectionGroupSectionOperationOptions

func (GetSiteOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (GetSiteOnenoteSectionGroupSectionOperationOptions) ToOData

func (GetSiteOnenoteSectionGroupSectionOperationOptions) ToQuery

type GetSiteOnenoteSectionGroupSectionOperationResponse

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

type GetSiteOnenoteSectionGroupSectionsCountOperationOptions

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

func (GetSiteOnenoteSectionGroupSectionsCountOperationOptions) ToHeaders

func (GetSiteOnenoteSectionGroupSectionsCountOperationOptions) ToOData

func (GetSiteOnenoteSectionGroupSectionsCountOperationOptions) ToQuery

type GetSiteOnenoteSectionGroupSectionsCountOperationResponse

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

type ListSiteOnenoteSectionGroupSectionsCompleteResult

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

type ListSiteOnenoteSectionGroupSectionsCustomPager

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

type ListSiteOnenoteSectionGroupSectionsOperationOptions

type ListSiteOnenoteSectionGroupSectionsOperationOptions 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 DefaultListSiteOnenoteSectionGroupSectionsOperationOptions

func DefaultListSiteOnenoteSectionGroupSectionsOperationOptions() ListSiteOnenoteSectionGroupSectionsOperationOptions

func (ListSiteOnenoteSectionGroupSectionsOperationOptions) ToHeaders

func (ListSiteOnenoteSectionGroupSectionsOperationOptions) ToOData

func (ListSiteOnenoteSectionGroupSectionsOperationOptions) ToQuery

type ListSiteOnenoteSectionGroupSectionsOperationResponse

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

type OnenoteSectionOperationPredicate

type OnenoteSectionOperationPredicate struct {
}

func (OnenoteSectionOperationPredicate) Matches

type SiteOnenoteSectionGroupSectionClient

type SiteOnenoteSectionGroupSectionClient struct {
	Client *msgraph.Client
}

func NewSiteOnenoteSectionGroupSectionClientWithBaseURI

func NewSiteOnenoteSectionGroupSectionClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteOnenoteSectionGroupSectionClient, error)

func (SiteOnenoteSectionGroupSectionClient) CopySiteOnenoteSectionGroupSectionToNotebook

CopySiteOnenoteSectionGroupSectionToNotebook - 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 (SiteOnenoteSectionGroupSectionClient) CopySiteOnenoteSectionGroupSectionToSectionGroup

CopySiteOnenoteSectionGroupSectionToSectionGroup - 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 (SiteOnenoteSectionGroupSectionClient) CreateSiteOnenoteSectionGroupSection

CreateSiteOnenoteSectionGroupSection - Create new navigation property to sections for groups

func (SiteOnenoteSectionGroupSectionClient) DeleteSiteOnenoteSectionGroupSection

DeleteSiteOnenoteSectionGroupSection - Delete navigation property sections for groups

func (SiteOnenoteSectionGroupSectionClient) GetSiteOnenoteSectionGroupSection

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

func (SiteOnenoteSectionGroupSectionClient) GetSiteOnenoteSectionGroupSectionsCount

GetSiteOnenoteSectionGroupSectionsCount - Get the number of the resource

func (SiteOnenoteSectionGroupSectionClient) ListSiteOnenoteSectionGroupSections

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

func (SiteOnenoteSectionGroupSectionClient) ListSiteOnenoteSectionGroupSectionsComplete

ListSiteOnenoteSectionGroupSectionsComplete retrieves all the results into a single object

func (SiteOnenoteSectionGroupSectionClient) ListSiteOnenoteSectionGroupSectionsCompleteMatchingPredicate

ListSiteOnenoteSectionGroupSectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteOnenoteSectionGroupSectionClient) UpdateSiteOnenoteSectionGroupSection

UpdateSiteOnenoteSectionGroupSection - Update the navigation property sections in groups

type UpdateSiteOnenoteSectionGroupSectionOperationOptions

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

func DefaultUpdateSiteOnenoteSectionGroupSectionOperationOptions

func DefaultUpdateSiteOnenoteSectionGroupSectionOperationOptions() UpdateSiteOnenoteSectionGroupSectionOperationOptions

func (UpdateSiteOnenoteSectionGroupSectionOperationOptions) ToHeaders

func (UpdateSiteOnenoteSectionGroupSectionOperationOptions) ToOData

func (UpdateSiteOnenoteSectionGroupSectionOperationOptions) ToQuery

type UpdateSiteOnenoteSectionGroupSectionOperationResponse

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