drivelistitem

package
v0.20240927.1005214 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

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

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

Client Initialization

client := drivelistitem.NewDriveListItemClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DriveListItemClient.CreateDriveListItem

ctx := context.TODO()
id := drivelistitem.NewMeDriveID("driveId")

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


read, err := client.CreateDriveListItem(ctx, id, payload, drivelistitem.DefaultCreateDriveListItemOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}
ctx := context.TODO()
id := drivelistitem.NewMeDriveIdListItemID("driveId", "listItemId")

payload := drivelistitem.CreateDriveListItemLinkRequest{
	// ...
}


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

Example Usage: DriveListItemClient.DeleteDriveListItem

ctx := context.TODO()
id := drivelistitem.NewMeDriveIdListItemID("driveId", "listItemId")

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

Example Usage: DriveListItemClient.GetDriveListItem

ctx := context.TODO()
id := drivelistitem.NewMeDriveIdListItemID("driveId", "listItemId")

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

Example Usage: DriveListItemClient.ListDriveListItems

ctx := context.TODO()
id := drivelistitem.NewMeDriveID("driveId")

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

Example Usage: DriveListItemClient.UpdateDriveListItem

ctx := context.TODO()
id := drivelistitem.NewMeDriveIdListItemID("driveId", "listItemId")

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


read, err := client.UpdateDriveListItem(ctx, id, payload, drivelistitem.DefaultUpdateDriveListItemOperationOptions())
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 CreateDriveListItemLinkOperationOptions

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

func DefaultCreateDriveListItemLinkOperationOptions

func DefaultCreateDriveListItemLinkOperationOptions() CreateDriveListItemLinkOperationOptions

func (CreateDriveListItemLinkOperationOptions) ToHeaders

func (CreateDriveListItemLinkOperationOptions) ToOData

func (CreateDriveListItemLinkOperationOptions) ToQuery

type CreateDriveListItemLinkOperationResponse

type CreateDriveListItemLinkOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.Permission
}

type CreateDriveListItemLinkRequest

type CreateDriveListItemLinkRequest 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 CreateDriveListItemOperationOptions

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

func DefaultCreateDriveListItemOperationOptions

func DefaultCreateDriveListItemOperationOptions() CreateDriveListItemOperationOptions

func (CreateDriveListItemOperationOptions) ToHeaders

func (CreateDriveListItemOperationOptions) ToOData

func (CreateDriveListItemOperationOptions) ToQuery

type CreateDriveListItemOperationResponse

type CreateDriveListItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.ListItem
}

type DeleteDriveListItemOperationOptions

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

func DefaultDeleteDriveListItemOperationOptions

func DefaultDeleteDriveListItemOperationOptions() DeleteDriveListItemOperationOptions

func (DeleteDriveListItemOperationOptions) ToHeaders

func (DeleteDriveListItemOperationOptions) ToOData

func (DeleteDriveListItemOperationOptions) ToQuery

type DeleteDriveListItemOperationResponse

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

type DriveListItemClient

type DriveListItemClient struct {
	Client *msgraph.Client
}

func NewDriveListItemClientWithBaseURI

func NewDriveListItemClientWithBaseURI(sdkApi sdkEnv.Api) (*DriveListItemClient, error)

func (DriveListItemClient) CreateDriveListItem

CreateDriveListItem - Create new navigation property to items for me

CreateDriveListItemLink - Invoke action createLink

func (DriveListItemClient) DeleteDriveListItem

DeleteDriveListItem - Delete navigation property items for me

func (DriveListItemClient) GetDriveListItem

GetDriveListItem - Get items from me. All items contained in the list.

func (DriveListItemClient) ListDriveListItems

ListDriveListItems - Get items from me. All items contained in the list.

func (DriveListItemClient) ListDriveListItemsComplete

ListDriveListItemsComplete retrieves all the results into a single object

func (DriveListItemClient) ListDriveListItemsCompleteMatchingPredicate

func (c DriveListItemClient) ListDriveListItemsCompleteMatchingPredicate(ctx context.Context, id stable.MeDriveId, options ListDriveListItemsOperationOptions, predicate ListItemOperationPredicate) (result ListDriveListItemsCompleteResult, err error)

ListDriveListItemsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DriveListItemClient) UpdateDriveListItem

UpdateDriveListItem - Update the navigation property items in me

type GetDriveListItemOperationOptions

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

func DefaultGetDriveListItemOperationOptions

func DefaultGetDriveListItemOperationOptions() GetDriveListItemOperationOptions

func (GetDriveListItemOperationOptions) ToHeaders

func (GetDriveListItemOperationOptions) ToOData

func (GetDriveListItemOperationOptions) ToQuery

type GetDriveListItemOperationResponse

type GetDriveListItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.ListItem
}

type ListDriveListItemsCompleteResult

type ListDriveListItemsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.ListItem
}

type ListDriveListItemsCustomPager

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

type ListDriveListItemsOperationOptions

type ListDriveListItemsOperationOptions 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 DefaultListDriveListItemsOperationOptions

func DefaultListDriveListItemsOperationOptions() ListDriveListItemsOperationOptions

func (ListDriveListItemsOperationOptions) ToHeaders

func (ListDriveListItemsOperationOptions) ToOData

func (ListDriveListItemsOperationOptions) ToQuery

type ListDriveListItemsOperationResponse

type ListDriveListItemsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.ListItem
}

type ListItemOperationPredicate

type ListItemOperationPredicate struct {
}

func (ListItemOperationPredicate) Matches

type UpdateDriveListItemOperationOptions

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

func DefaultUpdateDriveListItemOperationOptions

func DefaultUpdateDriveListItemOperationOptions() UpdateDriveListItemOperationOptions

func (UpdateDriveListItemOperationOptions) ToHeaders

func (UpdateDriveListItemOperationOptions) ToOData

func (UpdateDriveListItemOperationOptions) ToQuery

type UpdateDriveListItemOperationResponse

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