sitecontentmodel

package
v0.20241128.1084944 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := sitecontentmodel.NewSiteContentModelClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteContentModelClient.AddSiteContentModelToDrive

ctx := context.TODO()
id := sitecontentmodel.NewGroupIdSiteIdContentModelID("groupId", "siteId", "contentModelId")

payload := sitecontentmodel.AddSiteContentModelToDriveRequest{
	// ...
}


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

Example Usage: SiteContentModelClient.CreateSiteContentModel

ctx := context.TODO()
id := sitecontentmodel.NewGroupIdSiteID("groupId", "siteId")

payload := sitecontentmodel.ContentModel{
	// ...
}


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

Example Usage: SiteContentModelClient.DeleteSiteContentModel

ctx := context.TODO()
id := sitecontentmodel.NewGroupIdSiteIdContentModelID("groupId", "siteId", "contentModelId")

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

Example Usage: SiteContentModelClient.GetSiteContentModel

ctx := context.TODO()
id := sitecontentmodel.NewGroupIdSiteIdContentModelID("groupId", "siteId", "contentModelId")

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

Example Usage: SiteContentModelClient.GetSiteContentModelsCount

ctx := context.TODO()
id := sitecontentmodel.NewGroupIdSiteID("groupId", "siteId")

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

Example Usage: SiteContentModelClient.ListSiteContentModels

ctx := context.TODO()
id := sitecontentmodel.NewGroupIdSiteID("groupId", "siteId")

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

Example Usage: SiteContentModelClient.RemoveSiteContentModelFromDrive

ctx := context.TODO()
id := sitecontentmodel.NewGroupIdSiteIdContentModelID("groupId", "siteId", "contentModelId")

payload := sitecontentmodel.RemoveSiteContentModelFromDriveRequest{
	// ...
}


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

Example Usage: SiteContentModelClient.UpdateSiteContentModel

ctx := context.TODO()
id := sitecontentmodel.NewGroupIdSiteIdContentModelID("groupId", "siteId", "contentModelId")

payload := sitecontentmodel.ContentModel{
	// ...
}


read, err := client.UpdateSiteContentModel(ctx, id, payload, sitecontentmodel.DefaultUpdateSiteContentModelOperationOptions())
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 AddSiteContentModelToDriveOperationOptions

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

func DefaultAddSiteContentModelToDriveOperationOptions

func DefaultAddSiteContentModelToDriveOperationOptions() AddSiteContentModelToDriveOperationOptions

func (AddSiteContentModelToDriveOperationOptions) ToHeaders

func (AddSiteContentModelToDriveOperationOptions) ToOData

func (AddSiteContentModelToDriveOperationOptions) ToQuery

type AddSiteContentModelToDriveOperationResponse

type AddSiteContentModelToDriveOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ContentModelUsage
}

type AddSiteContentModelToDriveRequest

type AddSiteContentModelToDriveRequest struct {
	DriveId nullable.Type[string] `json:"driveId,omitempty"`
}

type ContentModelOperationPredicate

type ContentModelOperationPredicate struct {
}

func (ContentModelOperationPredicate) Matches

type CreateSiteContentModelOperationOptions

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

func DefaultCreateSiteContentModelOperationOptions

func DefaultCreateSiteContentModelOperationOptions() CreateSiteContentModelOperationOptions

func (CreateSiteContentModelOperationOptions) ToHeaders

func (CreateSiteContentModelOperationOptions) ToOData

func (CreateSiteContentModelOperationOptions) ToQuery

type CreateSiteContentModelOperationResponse

type CreateSiteContentModelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ContentModel
}

type DeleteSiteContentModelOperationOptions

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

func DefaultDeleteSiteContentModelOperationOptions

func DefaultDeleteSiteContentModelOperationOptions() DeleteSiteContentModelOperationOptions

func (DeleteSiteContentModelOperationOptions) ToHeaders

func (DeleteSiteContentModelOperationOptions) ToOData

func (DeleteSiteContentModelOperationOptions) ToQuery

type DeleteSiteContentModelOperationResponse

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

type GetSiteContentModelOperationOptions

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

func DefaultGetSiteContentModelOperationOptions

func DefaultGetSiteContentModelOperationOptions() GetSiteContentModelOperationOptions

func (GetSiteContentModelOperationOptions) ToHeaders

func (GetSiteContentModelOperationOptions) ToOData

func (GetSiteContentModelOperationOptions) ToQuery

type GetSiteContentModelOperationResponse

type GetSiteContentModelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ContentModel
}

type GetSiteContentModelsCountOperationOptions

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

func DefaultGetSiteContentModelsCountOperationOptions

func DefaultGetSiteContentModelsCountOperationOptions() GetSiteContentModelsCountOperationOptions

func (GetSiteContentModelsCountOperationOptions) ToHeaders

func (GetSiteContentModelsCountOperationOptions) ToOData

func (GetSiteContentModelsCountOperationOptions) ToQuery

type GetSiteContentModelsCountOperationResponse

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

type ListSiteContentModelsCompleteResult

type ListSiteContentModelsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ContentModel
}

type ListSiteContentModelsCustomPager

type ListSiteContentModelsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListSiteContentModelsCustomPager) NextPageLink() *odata.Link

type ListSiteContentModelsOperationOptions

type ListSiteContentModelsOperationOptions 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 DefaultListSiteContentModelsOperationOptions

func DefaultListSiteContentModelsOperationOptions() ListSiteContentModelsOperationOptions

func (ListSiteContentModelsOperationOptions) ToHeaders

func (ListSiteContentModelsOperationOptions) ToOData

func (ListSiteContentModelsOperationOptions) ToQuery

type ListSiteContentModelsOperationResponse

type ListSiteContentModelsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ContentModel
}

type RemoveSiteContentModelFromDriveOperationOptions

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

func DefaultRemoveSiteContentModelFromDriveOperationOptions

func DefaultRemoveSiteContentModelFromDriveOperationOptions() RemoveSiteContentModelFromDriveOperationOptions

func (RemoveSiteContentModelFromDriveOperationOptions) ToHeaders

func (RemoveSiteContentModelFromDriveOperationOptions) ToOData

func (RemoveSiteContentModelFromDriveOperationOptions) ToQuery

type RemoveSiteContentModelFromDriveOperationResponse

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

type RemoveSiteContentModelFromDriveRequest

type RemoveSiteContentModelFromDriveRequest struct {
	DriveId nullable.Type[string] `json:"driveId,omitempty"`
}

type SiteContentModelClient

type SiteContentModelClient struct {
	Client *msgraph.Client
}

func NewSiteContentModelClientWithBaseURI

func NewSiteContentModelClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteContentModelClient, error)

func (SiteContentModelClient) AddSiteContentModelToDrive

AddSiteContentModelToDrive - Invoke action addToDrive. Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries.

func (SiteContentModelClient) CreateSiteContentModel

CreateSiteContentModel - Create new navigation property to contentModels for groups

func (SiteContentModelClient) DeleteSiteContentModel

DeleteSiteContentModel - Delete navigation property contentModels for groups

func (SiteContentModelClient) GetSiteContentModel

GetSiteContentModel - Get contentModels from groups. The collection of content models applied to this site.

func (SiteContentModelClient) GetSiteContentModelsCount

GetSiteContentModelsCount - Get the number of the resource

func (SiteContentModelClient) ListSiteContentModels

ListSiteContentModels - Get contentModels from groups. The collection of content models applied to this site.

func (SiteContentModelClient) ListSiteContentModelsComplete

ListSiteContentModelsComplete retrieves all the results into a single object

func (SiteContentModelClient) ListSiteContentModelsCompleteMatchingPredicate

func (c SiteContentModelClient) ListSiteContentModelsCompleteMatchingPredicate(ctx context.Context, id beta.GroupIdSiteId, options ListSiteContentModelsOperationOptions, predicate ContentModelOperationPredicate) (result ListSiteContentModelsCompleteResult, err error)

ListSiteContentModelsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteContentModelClient) RemoveSiteContentModelFromDrive

RemoveSiteContentModelFromDrive - Invoke action removeFromDrive. Remove a contentModel from a SharePoint document library.

func (SiteContentModelClient) UpdateSiteContentModel

UpdateSiteContentModel - Update the navigation property contentModels in groups

type UpdateSiteContentModelOperationOptions

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

func DefaultUpdateSiteContentModelOperationOptions

func DefaultUpdateSiteContentModelOperationOptions() UpdateSiteContentModelOperationOptions

func (UpdateSiteContentModelOperationOptions) ToHeaders

func (UpdateSiteContentModelOperationOptions) ToOData

func (UpdateSiteContentModelOperationOptions) ToQuery

type UpdateSiteContentModelOperationResponse

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