driveitemlistitem

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/stable/driveitemlistitem Documentation

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

Client Initialization

client := driveitemlistitem.NewDriveItemListItemClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
ctx := context.TODO()
id := driveitemlistitem.NewGroupIdDriveIdItemID("groupId", "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.NewGroupIdDriveIdItemID("groupId", "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.NewGroupIdDriveIdItemID("groupId", "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.NewGroupIdDriveIdItemID("groupId", "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        *stable.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                 *[]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 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

func (DriveItemListItemClient) DeleteDriveItemListItem

DeleteDriveItemListItem - Delete navigation property listItem for groups

func (DriveItemListItemClient) GetDriveItemListItem

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

func (DriveItemListItemClient) UpdateDriveItemListItem

UpdateDriveItemListItem - Update the navigation property listItem in groups

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