driverootlistitem

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

README

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

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

Client Initialization

client := driverootlistitem.NewDriveRootListItemClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
ctx := context.TODO()
id := driverootlistitem.NewUserIdDriveID("userId", "driveId")

payload := driverootlistitem.CreateDriveRootListItemLinkRequest{
	// ...
}


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

Example Usage: DriveRootListItemClient.DeleteDriveRootListItem

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

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

Example Usage: DriveRootListItemClient.GetDriveRootListItem

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

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

Example Usage: DriveRootListItemClient.UpdateDriveRootListItem

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

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


read, err := client.UpdateDriveRootListItem(ctx, id, payload, driverootlistitem.DefaultUpdateDriveRootListItemOperationOptions())
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 CreateDriveRootListItemLinkOperationOptions

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

func DefaultCreateDriveRootListItemLinkOperationOptions

func DefaultCreateDriveRootListItemLinkOperationOptions() CreateDriveRootListItemLinkOperationOptions

func (CreateDriveRootListItemLinkOperationOptions) ToHeaders

func (CreateDriveRootListItemLinkOperationOptions) ToOData

func (CreateDriveRootListItemLinkOperationOptions) ToQuery

type CreateDriveRootListItemLinkOperationResponse

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

type CreateDriveRootListItemLinkRequest

type CreateDriveRootListItemLinkRequest 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 DeleteDriveRootListItemOperationOptions

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

func DefaultDeleteDriveRootListItemOperationOptions

func DefaultDeleteDriveRootListItemOperationOptions() DeleteDriveRootListItemOperationOptions

func (DeleteDriveRootListItemOperationOptions) ToHeaders

func (DeleteDriveRootListItemOperationOptions) ToOData

func (DeleteDriveRootListItemOperationOptions) ToQuery

type DeleteDriveRootListItemOperationResponse

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

type DriveRootListItemClient

type DriveRootListItemClient struct {
	Client *msgraph.Client
}

func NewDriveRootListItemClientWithBaseURI

func NewDriveRootListItemClientWithBaseURI(sdkApi sdkEnv.Api) (*DriveRootListItemClient, error)

CreateDriveRootListItemLink - 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 (DriveRootListItemClient) DeleteDriveRootListItem

DeleteDriveRootListItem - Delete navigation property listItem for users

func (DriveRootListItemClient) GetDriveRootListItem

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

func (DriveRootListItemClient) UpdateDriveRootListItem

UpdateDriveRootListItem - Update the navigation property listItem in users

type GetDriveRootListItemOperationOptions

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

func DefaultGetDriveRootListItemOperationOptions

func DefaultGetDriveRootListItemOperationOptions() GetDriveRootListItemOperationOptions

func (GetDriveRootListItemOperationOptions) ToHeaders

func (GetDriveRootListItemOperationOptions) ToOData

func (GetDriveRootListItemOperationOptions) ToQuery

type GetDriveRootListItemOperationResponse

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

type UpdateDriveRootListItemOperationOptions

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

func DefaultUpdateDriveRootListItemOperationOptions

func DefaultUpdateDriveRootListItemOperationOptions() UpdateDriveRootListItemOperationOptions

func (UpdateDriveRootListItemOperationOptions) ToHeaders

func (UpdateDriveRootListItemOperationOptions) ToOData

func (UpdateDriveRootListItemOperationOptions) ToQuery

type UpdateDriveRootListItemOperationResponse

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