driveitem

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: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/driveitem Documentation

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

Client Initialization

client := driveitem.NewDriveItemClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DriveItemClient.AssignDriveItemSensitivityLabel

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.AssignDriveItemSensitivityLabelRequest{
	// ...
}


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

Example Usage: DriveItemClient.CheckinDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.CheckinDriveItemRequest{
	// ...
}


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

Example Usage: DriveItemClient.CheckoutDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

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

Example Usage: DriveItemClient.CopyDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.CopyDriveItemRequest{
	// ...
}


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

Example Usage: DriveItemClient.CreateDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveID("userId", "driveId")

payload := driveitem.DriveItem{
	// ...
}


read, err := client.CreateDriveItem(ctx, id, payload, driveitem.DefaultCreateDriveItemOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}
ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.CreateDriveItemLinkRequest{
	// ...
}


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

Example Usage: DriveItemClient.CreateDriveItemPermanentDelete

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

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

Example Usage: DriveItemClient.CreateDriveItemUploadSession

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.CreateDriveItemUploadSessionRequest{
	// ...
}


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

Example Usage: DriveItemClient.DeleteDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

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

Example Usage: DriveItemClient.DiscardDriveItemCheckout

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

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

Example Usage: DriveItemClient.ExtractDriveItemSensitivityLabels

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

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

Example Usage: DriveItemClient.FollowDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

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

Example Usage: DriveItemClient.GetDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

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

Example Usage: DriveItemClient.GetDriveItemsCount

ctx := context.TODO()
id := driveitem.NewUserIdDriveID("userId", "driveId")

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

Example Usage: DriveItemClient.ListDriveItemInvites

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.ListDriveItemInvitesRequest{
	// ...
}


// alternatively `client.ListDriveItemInvites(ctx, id, payload, driveitem.DefaultListDriveItemInvitesOperationOptions())` can be used to do batched pagination
items, err := client.ListDriveItemInvitesComplete(ctx, id, payload, driveitem.DefaultListDriveItemInvitesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: DriveItemClient.ListDriveItems

ctx := context.TODO()
id := driveitem.NewUserIdDriveID("userId", "driveId")

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

Example Usage: DriveItemClient.PreviewDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.PreviewDriveItemRequest{
	// ...
}


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

Example Usage: DriveItemClient.RestoreDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.RestoreDriveItemRequest{
	// ...
}


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

Example Usage: DriveItemClient.UnfollowDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

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

Example Usage: DriveItemClient.UpdateDriveItem

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.DriveItem{
	// ...
}


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

Example Usage: DriveItemClient.ValidateDriveItemPermission

ctx := context.TODO()
id := driveitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitem.ValidateDriveItemPermissionRequest{
	// ...
}


read, err := client.ValidateDriveItemPermission(ctx, id, payload, driveitem.DefaultValidateDriveItemPermissionOperationOptions())
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 AssignDriveItemSensitivityLabelOperationOptions

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

func DefaultAssignDriveItemSensitivityLabelOperationOptions

func DefaultAssignDriveItemSensitivityLabelOperationOptions() AssignDriveItemSensitivityLabelOperationOptions

func (AssignDriveItemSensitivityLabelOperationOptions) ToHeaders

func (AssignDriveItemSensitivityLabelOperationOptions) ToOData

func (AssignDriveItemSensitivityLabelOperationOptions) ToQuery

type AssignDriveItemSensitivityLabelOperationResponse

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

type AssignDriveItemSensitivityLabelRequest

type AssignDriveItemSensitivityLabelRequest struct {
	AssignmentMethod   *beta.SensitivityLabelAssignmentMethod `json:"assignmentMethod,omitempty"`
	JustificationText  nullable.Type[string]                  `json:"justificationText,omitempty"`
	SensitivityLabelId nullable.Type[string]                  `json:"sensitivityLabelId,omitempty"`
}

type CheckinDriveItemOperationOptions

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

func DefaultCheckinDriveItemOperationOptions

func DefaultCheckinDriveItemOperationOptions() CheckinDriveItemOperationOptions

func (CheckinDriveItemOperationOptions) ToHeaders

func (CheckinDriveItemOperationOptions) ToOData

func (CheckinDriveItemOperationOptions) ToQuery

type CheckinDriveItemOperationResponse

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

type CheckinDriveItemRequest

type CheckinDriveItemRequest struct {
	CheckInAs nullable.Type[string] `json:"checkInAs,omitempty"`
	Comment   nullable.Type[string] `json:"comment,omitempty"`
}

type CheckoutDriveItemOperationOptions

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

func DefaultCheckoutDriveItemOperationOptions

func DefaultCheckoutDriveItemOperationOptions() CheckoutDriveItemOperationOptions

func (CheckoutDriveItemOperationOptions) ToHeaders

func (CheckoutDriveItemOperationOptions) ToOData

func (CheckoutDriveItemOperationOptions) ToQuery

type CheckoutDriveItemOperationResponse

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

type CopyDriveItemOperationOptions

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

func DefaultCopyDriveItemOperationOptions

func DefaultCopyDriveItemOperationOptions() CopyDriveItemOperationOptions

func (CopyDriveItemOperationOptions) ToHeaders

func (CopyDriveItemOperationOptions) ToOData

func (CopyDriveItemOperationOptions) ToQuery

type CopyDriveItemOperationResponse

type CopyDriveItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DriveItem
}

type CopyDriveItemRequest

type CopyDriveItemRequest struct {
	ChildrenOnly    nullable.Type[bool]   `json:"childrenOnly,omitempty"`
	Name            nullable.Type[string] `json:"name,omitempty"`
	ParentReference *beta.ItemReference   `json:"parentReference,omitempty"`
}

type CreateDriveItemLinkOperationOptions

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

func DefaultCreateDriveItemLinkOperationOptions

func DefaultCreateDriveItemLinkOperationOptions() CreateDriveItemLinkOperationOptions

func (CreateDriveItemLinkOperationOptions) ToHeaders

func (CreateDriveItemLinkOperationOptions) ToOData

func (CreateDriveItemLinkOperationOptions) ToQuery

type CreateDriveItemLinkOperationResponse

type CreateDriveItemLinkOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.Permission
}

type CreateDriveItemLinkRequest

type CreateDriveItemLinkRequest struct {
	ExpirationDateTime         nullable.Type[string]  `json:"expirationDateTime,omitempty"`
	Message                    nullable.Type[string]  `json:"message,omitempty"`
	Password                   nullable.Type[string]  `json:"password,omitempty"`
	Recipients                 *[]beta.DriveRecipient `json:"recipients,omitempty"`
	RetainInheritedPermissions nullable.Type[bool]    `json:"retainInheritedPermissions,omitempty"`
	Scope                      nullable.Type[string]  `json:"scope,omitempty"`
	SendNotification           nullable.Type[bool]    `json:"sendNotification,omitempty"`
	Type                       nullable.Type[string]  `json:"type,omitempty"`
}

type CreateDriveItemOperationOptions

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

func DefaultCreateDriveItemOperationOptions

func DefaultCreateDriveItemOperationOptions() CreateDriveItemOperationOptions

func (CreateDriveItemOperationOptions) ToHeaders

func (CreateDriveItemOperationOptions) ToOData

func (CreateDriveItemOperationOptions) ToQuery

type CreateDriveItemOperationResponse

type CreateDriveItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DriveItem
}

type CreateDriveItemPermanentDeleteOperationOptions

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

func DefaultCreateDriveItemPermanentDeleteOperationOptions

func DefaultCreateDriveItemPermanentDeleteOperationOptions() CreateDriveItemPermanentDeleteOperationOptions

func (CreateDriveItemPermanentDeleteOperationOptions) ToHeaders

func (CreateDriveItemPermanentDeleteOperationOptions) ToOData

func (CreateDriveItemPermanentDeleteOperationOptions) ToQuery

type CreateDriveItemPermanentDeleteOperationResponse

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

type CreateDriveItemUploadSessionOperationOptions

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

func DefaultCreateDriveItemUploadSessionOperationOptions

func DefaultCreateDriveItemUploadSessionOperationOptions() CreateDriveItemUploadSessionOperationOptions

func (CreateDriveItemUploadSessionOperationOptions) ToHeaders

func (CreateDriveItemUploadSessionOperationOptions) ToOData

func (CreateDriveItemUploadSessionOperationOptions) ToQuery

type CreateDriveItemUploadSessionOperationResponse

type CreateDriveItemUploadSessionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.UploadSession
}

type CreateDriveItemUploadSessionRequest

type CreateDriveItemUploadSessionRequest struct {
	Item *beta.DriveItemUploadableProperties `json:"item,omitempty"`
}

type DeleteDriveItemOperationOptions

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

func DefaultDeleteDriveItemOperationOptions

func DefaultDeleteDriveItemOperationOptions() DeleteDriveItemOperationOptions

func (DeleteDriveItemOperationOptions) ToHeaders

func (DeleteDriveItemOperationOptions) ToOData

func (DeleteDriveItemOperationOptions) ToQuery

type DeleteDriveItemOperationResponse

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

type DiscardDriveItemCheckoutOperationOptions

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

func DefaultDiscardDriveItemCheckoutOperationOptions

func DefaultDiscardDriveItemCheckoutOperationOptions() DiscardDriveItemCheckoutOperationOptions

func (DiscardDriveItemCheckoutOperationOptions) ToHeaders

func (DiscardDriveItemCheckoutOperationOptions) ToOData

func (DiscardDriveItemCheckoutOperationOptions) ToQuery

type DiscardDriveItemCheckoutOperationResponse

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

type DriveItemClient

type DriveItemClient struct {
	Client *msgraph.Client
}

func NewDriveItemClientWithBaseURI

func NewDriveItemClientWithBaseURI(sdkApi sdkEnv.Api) (*DriveItemClient, error)

func (DriveItemClient) AssignDriveItemSensitivityLabel

AssignDriveItemSensitivityLabel - Invoke action assignSensitivityLabel

func (DriveItemClient) CheckinDriveItem

CheckinDriveItem - Invoke action checkin. Check in a checked out driveItem resource, which makes the version of the document available to others.

func (DriveItemClient) CheckoutDriveItem

CheckoutDriveItem - Invoke action checkout. Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in.

func (DriveItemClient) CopyDriveItem

CopyDriveItem - Invoke action copy. Asynchronously create a copy of a driveItem (including any children) under a new parent item or with a new name. After the request is acknowledged, it enters a queue. The actual copying, including any subitems, occurs at an undetermined time. Progress is reported until the operation is completed by monitoring the progress.

func (DriveItemClient) CreateDriveItem

CreateDriveItem - Create new navigation property to items for users

CreateDriveItemLink - Invoke action createLink. Create a link to share a driveItem driveItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application. If a sharing link of the specified type already exists for the app, the existing sharing link is returned. DriveItem resources inherit sharing permissions from their ancestors.

func (DriveItemClient) CreateDriveItemPermanentDelete

CreateDriveItemPermanentDelete - Invoke action permanentDelete

func (DriveItemClient) CreateDriveItemUploadSession

CreateDriveItemUploadSession - Invoke action createUploadSession

func (DriveItemClient) DeleteDriveItem

DeleteDriveItem - Delete navigation property items for users

func (DriveItemClient) DiscardDriveItemCheckout

DiscardDriveItemCheckout - Invoke action discardCheckout. Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions.

func (DriveItemClient) ExtractDriveItemSensitivityLabels

ExtractDriveItemSensitivityLabels - Invoke action extractSensitivityLabels

func (DriveItemClient) FollowDriveItem

FollowDriveItem - Invoke action follow. Follow a driveItem.

func (DriveItemClient) GetDriveItem

GetDriveItem - Get items from users. All items contained in the drive. Read-only. Nullable.

func (DriveItemClient) GetDriveItemsCount

GetDriveItemsCount - Get the number of the resource

func (DriveItemClient) ListDriveItemInvites

ListDriveItemInvites - Invoke action invite. Sends a sharing invitation for a driveItem. A sharing invitation provides permissions to the recipients and optionally sends an email to the recipients to notify them the item was shared.

func (DriveItemClient) ListDriveItemInvitesComplete

ListDriveItemInvitesComplete retrieves all the results into a single object

func (DriveItemClient) ListDriveItemInvitesCompleteMatchingPredicate

ListDriveItemInvitesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DriveItemClient) ListDriveItems

ListDriveItems - Get items from users. All items contained in the drive. Read-only. Nullable.

func (DriveItemClient) ListDriveItemsComplete

ListDriveItemsComplete retrieves all the results into a single object

func (DriveItemClient) ListDriveItemsCompleteMatchingPredicate

func (c DriveItemClient) ListDriveItemsCompleteMatchingPredicate(ctx context.Context, id beta.UserIdDriveId, options ListDriveItemsOperationOptions, predicate DriveItemOperationPredicate) (result ListDriveItemsCompleteResult, err error)

ListDriveItemsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DriveItemClient) PreviewDriveItem

PreviewDriveItem - Invoke action preview

func (DriveItemClient) RestoreDriveItem

RestoreDriveItem - Invoke action restore. Restore a driveItem that has been deleted and is currently in the recycle bin.

func (DriveItemClient) UnfollowDriveItem

UnfollowDriveItem - Invoke action unfollow. Unfollow a driveItem.

func (DriveItemClient) UpdateDriveItem

UpdateDriveItem - Update the navigation property items in users

func (DriveItemClient) ValidateDriveItemPermission

ValidateDriveItemPermission - Invoke action validatePermission

type DriveItemOperationPredicate

type DriveItemOperationPredicate struct {
}

func (DriveItemOperationPredicate) Matches

type ExtractDriveItemSensitivityLabelsOperationOptions

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

func DefaultExtractDriveItemSensitivityLabelsOperationOptions

func DefaultExtractDriveItemSensitivityLabelsOperationOptions() ExtractDriveItemSensitivityLabelsOperationOptions

func (ExtractDriveItemSensitivityLabelsOperationOptions) ToHeaders

func (ExtractDriveItemSensitivityLabelsOperationOptions) ToOData

func (ExtractDriveItemSensitivityLabelsOperationOptions) ToQuery

type ExtractDriveItemSensitivityLabelsOperationResponse

type ExtractDriveItemSensitivityLabelsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ExtractSensitivityLabelsResult
}

type FollowDriveItemOperationOptions

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

func DefaultFollowDriveItemOperationOptions

func DefaultFollowDriveItemOperationOptions() FollowDriveItemOperationOptions

func (FollowDriveItemOperationOptions) ToHeaders

func (FollowDriveItemOperationOptions) ToOData

func (FollowDriveItemOperationOptions) ToQuery

type FollowDriveItemOperationResponse

type FollowDriveItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DriveItem
}

type GetDriveItemOperationOptions

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

func DefaultGetDriveItemOperationOptions

func DefaultGetDriveItemOperationOptions() GetDriveItemOperationOptions

func (GetDriveItemOperationOptions) ToHeaders

func (GetDriveItemOperationOptions) ToOData

func (GetDriveItemOperationOptions) ToQuery

type GetDriveItemOperationResponse

type GetDriveItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DriveItem
}

type GetDriveItemsCountOperationOptions

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

func DefaultGetDriveItemsCountOperationOptions

func DefaultGetDriveItemsCountOperationOptions() GetDriveItemsCountOperationOptions

func (GetDriveItemsCountOperationOptions) ToHeaders

func (GetDriveItemsCountOperationOptions) ToOData

func (GetDriveItemsCountOperationOptions) ToQuery

type GetDriveItemsCountOperationResponse

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

type ListDriveItemInvitesCompleteResult

type ListDriveItemInvitesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.Permission
}

type ListDriveItemInvitesCustomPager

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

type ListDriveItemInvitesOperationOptions

type ListDriveItemInvitesOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultListDriveItemInvitesOperationOptions

func DefaultListDriveItemInvitesOperationOptions() ListDriveItemInvitesOperationOptions

func (ListDriveItemInvitesOperationOptions) ToHeaders

func (ListDriveItemInvitesOperationOptions) ToOData

func (ListDriveItemInvitesOperationOptions) ToQuery

type ListDriveItemInvitesOperationResponse

type ListDriveItemInvitesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.Permission
}

type ListDriveItemInvitesRequest

type ListDriveItemInvitesRequest struct {
	ExpirationDateTime         nullable.Type[string]  `json:"expirationDateTime,omitempty"`
	Message                    nullable.Type[string]  `json:"message,omitempty"`
	Password                   nullable.Type[string]  `json:"password,omitempty"`
	Recipients                 *[]beta.DriveRecipient `json:"recipients,omitempty"`
	RequireSignIn              nullable.Type[bool]    `json:"requireSignIn,omitempty"`
	RetainInheritedPermissions nullable.Type[bool]    `json:"retainInheritedPermissions,omitempty"`
	Roles                      *[]string              `json:"roles,omitempty"`
	SendInvitation             nullable.Type[bool]    `json:"sendInvitation,omitempty"`
}

type ListDriveItemsCompleteResult

type ListDriveItemsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DriveItem
}

type ListDriveItemsCustomPager

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

type ListDriveItemsOperationOptions

type ListDriveItemsOperationOptions 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 DefaultListDriveItemsOperationOptions

func DefaultListDriveItemsOperationOptions() ListDriveItemsOperationOptions

func (ListDriveItemsOperationOptions) ToHeaders

func (ListDriveItemsOperationOptions) ToOData

func (ListDriveItemsOperationOptions) ToQuery

type ListDriveItemsOperationResponse

type ListDriveItemsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DriveItem
}

type PermissionOperationPredicate

type PermissionOperationPredicate struct {
}

func (PermissionOperationPredicate) Matches

type PreviewDriveItemOperationOptions

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

func DefaultPreviewDriveItemOperationOptions

func DefaultPreviewDriveItemOperationOptions() PreviewDriveItemOperationOptions

func (PreviewDriveItemOperationOptions) ToHeaders

func (PreviewDriveItemOperationOptions) ToOData

func (PreviewDriveItemOperationOptions) ToQuery

type PreviewDriveItemOperationResponse

type PreviewDriveItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ItemPreviewInfo
}

type PreviewDriveItemRequest

type PreviewDriveItemRequest struct {
	AllowEdit  nullable.Type[bool]   `json:"allowEdit,omitempty"`
	Chromeless nullable.Type[bool]   `json:"chromeless,omitempty"`
	Page       nullable.Type[string] `json:"page,omitempty"`
	Viewer     nullable.Type[string] `json:"viewer,omitempty"`
}

type RestoreDriveItemOperationOptions

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

func DefaultRestoreDriveItemOperationOptions

func DefaultRestoreDriveItemOperationOptions() RestoreDriveItemOperationOptions

func (RestoreDriveItemOperationOptions) ToHeaders

func (RestoreDriveItemOperationOptions) ToOData

func (RestoreDriveItemOperationOptions) ToQuery

type RestoreDriveItemOperationResponse

type RestoreDriveItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DriveItem
}

type RestoreDriveItemRequest

type RestoreDriveItemRequest struct {
	Name            nullable.Type[string] `json:"name,omitempty"`
	ParentReference *beta.ItemReference   `json:"parentReference,omitempty"`
}

type UnfollowDriveItemOperationOptions

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

func DefaultUnfollowDriveItemOperationOptions

func DefaultUnfollowDriveItemOperationOptions() UnfollowDriveItemOperationOptions

func (UnfollowDriveItemOperationOptions) ToHeaders

func (UnfollowDriveItemOperationOptions) ToOData

func (UnfollowDriveItemOperationOptions) ToQuery

type UnfollowDriveItemOperationResponse

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

type UpdateDriveItemOperationOptions

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

func DefaultUpdateDriveItemOperationOptions

func DefaultUpdateDriveItemOperationOptions() UpdateDriveItemOperationOptions

func (UpdateDriveItemOperationOptions) ToHeaders

func (UpdateDriveItemOperationOptions) ToOData

func (UpdateDriveItemOperationOptions) ToQuery

type UpdateDriveItemOperationResponse

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

type ValidateDriveItemPermissionOperationOptions

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

func DefaultValidateDriveItemPermissionOperationOptions

func DefaultValidateDriveItemPermissionOperationOptions() ValidateDriveItemPermissionOperationOptions

func (ValidateDriveItemPermissionOperationOptions) ToHeaders

func (ValidateDriveItemPermissionOperationOptions) ToOData

func (ValidateDriveItemPermissionOperationOptions) ToQuery

type ValidateDriveItemPermissionOperationResponse

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

type ValidateDriveItemPermissionRequest

type ValidateDriveItemPermissionRequest struct {
	ChallengeToken nullable.Type[string] `json:"challengeToken,omitempty"`
	Password       *string               `json:"password,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL