driverootlistitem

package
v0.20241118.1115603 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/stable/driverootlistitem Documentation

The driverootlistitem SDK allows for interaction with Microsoft Graph me (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/me/stable/driverootlistitem"

Client Initialization

client := driverootlistitem.NewDriveRootListItemClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
ctx := context.TODO()
id := driverootlistitem.NewMeDriveID("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.NewMeDriveID("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.NewMeDriveID("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.NewMeDriveID("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        *stable.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                 *[]stable.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

func (DriveRootListItemClient) DeleteDriveRootListItem

DeleteDriveRootListItem - Delete navigation property listItem for me

func (DriveRootListItemClient) GetDriveRootListItem

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

func (DriveRootListItemClient) UpdateDriveRootListItem

UpdateDriveRootListItem - Update the navigation property listItem in me

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        *stable.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