driveitemlistitem

package
v0.20241209.1115630 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := driveitemlistitem.NewDriveItemListItemClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
ctx := context.TODO()
id := driveitemlistitem.NewUserIdDriveIdItemID("userId", "driveId", "driveItemId")

payload := driveitemlistitem.CreateDriveItemListItemLinkRequest{
	// ...
}


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

Example Usage: DriveItemListItemClient.DeleteDriveItemListItem

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

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

Example Usage: DriveItemListItemClient.GetDriveItemListItem

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

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

Example Usage: DriveItemListItemClient.UpdateDriveItemListItem

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

payload := driveitemlistitem.ListItem{
	// ...
}


read, err := client.UpdateDriveItemListItem(ctx, id, payload, driveitemlistitem.DefaultUpdateDriveItemListItemOperationOptions())
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 CreateDriveItemListItemLinkOperationOptions

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

func DefaultCreateDriveItemListItemLinkOperationOptions

func DefaultCreateDriveItemListItemLinkOperationOptions() CreateDriveItemListItemLinkOperationOptions

func (CreateDriveItemListItemLinkOperationOptions) ToHeaders

func (CreateDriveItemListItemLinkOperationOptions) ToOData

func (CreateDriveItemListItemLinkOperationOptions) ToQuery

type CreateDriveItemListItemLinkOperationResponse

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

type CreateDriveItemListItemLinkRequest

type CreateDriveItemListItemLinkRequest 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 DeleteDriveItemListItemOperationOptions

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

func DefaultDeleteDriveItemListItemOperationOptions

func DefaultDeleteDriveItemListItemOperationOptions() DeleteDriveItemListItemOperationOptions

func (DeleteDriveItemListItemOperationOptions) ToHeaders

func (DeleteDriveItemListItemOperationOptions) ToOData

func (DeleteDriveItemListItemOperationOptions) ToQuery

type DeleteDriveItemListItemOperationResponse

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

type DriveItemListItemClient

type DriveItemListItemClient struct {
	Client *msgraph.Client
}

func NewDriveItemListItemClientWithBaseURI

func NewDriveItemListItemClientWithBaseURI(sdkApi sdkEnv.Api) (*DriveItemListItemClient, error)

CreateDriveItemListItemLink - Invoke action createLink. Create a sharing link for a listItem. 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, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in.

func (DriveItemListItemClient) DeleteDriveItemListItem

DeleteDriveItemListItem - Delete navigation property listItem for users

func (DriveItemListItemClient) GetDriveItemListItem

GetDriveItemListItem - Get listItem from users. For drives in SharePoint, the associated document library list item. Read-only. Nullable.

func (DriveItemListItemClient) UpdateDriveItemListItem

UpdateDriveItemListItem - Update the navigation property listItem in users

type GetDriveItemListItemOperationOptions

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

func DefaultGetDriveItemListItemOperationOptions

func DefaultGetDriveItemListItemOperationOptions() GetDriveItemListItemOperationOptions

func (GetDriveItemListItemOperationOptions) ToHeaders

func (GetDriveItemListItemOperationOptions) ToOData

func (GetDriveItemListItemOperationOptions) ToQuery

type GetDriveItemListItemOperationResponse

type GetDriveItemListItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ListItem
}

type UpdateDriveItemListItemOperationOptions

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

func DefaultUpdateDriveItemListItemOperationOptions

func DefaultUpdateDriveItemListItemOperationOptions() UpdateDriveItemListItemOperationOptions

func (UpdateDriveItemListItemOperationOptions) ToHeaders

func (UpdateDriveItemListItemOperationOptions) ToOData

func (UpdateDriveItemListItemOperationOptions) ToQuery

type UpdateDriveItemListItemOperationResponse

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