drivelistitem

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/groups/beta/drivelistitem Documentation

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

Client Initialization

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

Example Usage: DriveListItemClient.CreateDriveListItem

ctx := context.TODO()
id := drivelistitem.NewGroupIdDriveID("groupId", "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.NewGroupIdDriveIdListItemID("groupId", "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.NewGroupIdDriveIdListItemID("groupId", "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.NewGroupIdDriveIdListItemID("groupId", "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.NewGroupIdDriveID("groupId", "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.NewGroupIdDriveIdListItemID("groupId", "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        *beta.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                 *[]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 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        *beta.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 groups

CreateDriveListItemLink - 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 (DriveListItemClient) DeleteDriveListItem

DeleteDriveListItem - Delete navigation property items for groups

func (DriveListItemClient) GetDriveListItem

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

func (DriveListItemClient) ListDriveListItems

ListDriveListItems - Get items from groups. 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 beta.GroupIdDriveId, 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 groups

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        *beta.ListItem
}

type ListDriveListItemsCompleteResult

type ListDriveListItemsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.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        *[]beta.ListItem
}

type ListItemOperationPredicate

type ListItemOperationPredicate struct {
}

func (ListItemOperationPredicate) Matches

func (p ListItemOperationPredicate) Matches(input beta.ListItem) bool

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