driveitemlistitempermission

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: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/driveitemlistitempermission Documentation

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

Client Initialization

client := driveitemlistitempermission.NewDriveItemListItemPermissionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DriveItemListItemPermissionClient.CreateDriveItemListItemPermission

ctx := context.TODO()
id := driveitemlistitempermission.NewMeDriveIdItemID("driveId", "driveItemId")

payload := driveitemlistitempermission.Permission{
	// ...
}


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

Example Usage: DriveItemListItemPermissionClient.DeleteDriveItemListItemPermission

ctx := context.TODO()
id := driveitemlistitempermission.NewMeDriveIdItemIdListItemPermissionID("driveId", "driveItemId", "permissionId")

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

Example Usage: DriveItemListItemPermissionClient.GetDriveItemListItemPermission

ctx := context.TODO()
id := driveitemlistitempermission.NewMeDriveIdItemIdListItemPermissionID("driveId", "driveItemId", "permissionId")

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

Example Usage: DriveItemListItemPermissionClient.GetDriveItemListItemPermissionsCount

ctx := context.TODO()
id := driveitemlistitempermission.NewMeDriveIdItemID("driveId", "driveItemId")

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

Example Usage: DriveItemListItemPermissionClient.ListDriveItemListItemPermissionGrants

ctx := context.TODO()
id := driveitemlistitempermission.NewMeDriveIdItemIdListItemPermissionID("driveId", "driveItemId", "permissionId")

payload := driveitemlistitempermission.ListDriveItemListItemPermissionGrantsRequest{
	// ...
}


// alternatively `client.ListDriveItemListItemPermissionGrants(ctx, id, payload, driveitemlistitempermission.DefaultListDriveItemListItemPermissionGrantsOperationOptions())` can be used to do batched pagination
items, err := client.ListDriveItemListItemPermissionGrantsComplete(ctx, id, payload, driveitemlistitempermission.DefaultListDriveItemListItemPermissionGrantsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: DriveItemListItemPermissionClient.ListDriveItemListItemPermissions

ctx := context.TODO()
id := driveitemlistitempermission.NewMeDriveIdItemID("driveId", "driveItemId")

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

Example Usage: DriveItemListItemPermissionClient.RevokeDriveItemListItemPermissionGrants

ctx := context.TODO()
id := driveitemlistitempermission.NewMeDriveIdItemIdListItemPermissionID("driveId", "driveItemId", "permissionId")

payload := driveitemlistitempermission.RevokeDriveItemListItemPermissionGrantsRequest{
	// ...
}


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

Example Usage: DriveItemListItemPermissionClient.UpdateDriveItemListItemPermission

ctx := context.TODO()
id := driveitemlistitempermission.NewMeDriveIdItemIdListItemPermissionID("driveId", "driveItemId", "permissionId")

payload := driveitemlistitempermission.Permission{
	// ...
}


read, err := client.UpdateDriveItemListItemPermission(ctx, id, payload, driveitemlistitempermission.DefaultUpdateDriveItemListItemPermissionOperationOptions())
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 CreateDriveItemListItemPermissionOperationOptions

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

func DefaultCreateDriveItemListItemPermissionOperationOptions

func DefaultCreateDriveItemListItemPermissionOperationOptions() CreateDriveItemListItemPermissionOperationOptions

func (CreateDriveItemListItemPermissionOperationOptions) ToHeaders

func (CreateDriveItemListItemPermissionOperationOptions) ToOData

func (CreateDriveItemListItemPermissionOperationOptions) ToQuery

type CreateDriveItemListItemPermissionOperationResponse

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

type DeleteDriveItemListItemPermissionOperationOptions

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

func DefaultDeleteDriveItemListItemPermissionOperationOptions

func DefaultDeleteDriveItemListItemPermissionOperationOptions() DeleteDriveItemListItemPermissionOperationOptions

func (DeleteDriveItemListItemPermissionOperationOptions) ToHeaders

func (DeleteDriveItemListItemPermissionOperationOptions) ToOData

func (DeleteDriveItemListItemPermissionOperationOptions) ToQuery

type DeleteDriveItemListItemPermissionOperationResponse

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

type DriveItemListItemPermissionClient

type DriveItemListItemPermissionClient struct {
	Client *msgraph.Client
}

func NewDriveItemListItemPermissionClientWithBaseURI

func NewDriveItemListItemPermissionClientWithBaseURI(sdkApi sdkEnv.Api) (*DriveItemListItemPermissionClient, error)

func (DriveItemListItemPermissionClient) CreateDriveItemListItemPermission

CreateDriveItemListItemPermission - Create new navigation property to permissions for me

func (DriveItemListItemPermissionClient) DeleteDriveItemListItemPermission

DeleteDriveItemListItemPermission - Delete navigation property permissions for me

func (DriveItemListItemPermissionClient) GetDriveItemListItemPermission

GetDriveItemListItemPermission - Get permissions from me. The set of permissions for the item. Read-only. Nullable.

func (DriveItemListItemPermissionClient) GetDriveItemListItemPermissionsCount

GetDriveItemListItemPermissionsCount - Get the number of the resource

func (DriveItemListItemPermissionClient) ListDriveItemListItemPermissionGrants

ListDriveItemListItemPermissionGrants - Invoke action grant. Grant users access to a link represented by a permission.

func (DriveItemListItemPermissionClient) ListDriveItemListItemPermissionGrantsComplete

ListDriveItemListItemPermissionGrantsComplete retrieves all the results into a single object

func (DriveItemListItemPermissionClient) ListDriveItemListItemPermissionGrantsCompleteMatchingPredicate

ListDriveItemListItemPermissionGrantsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DriveItemListItemPermissionClient) ListDriveItemListItemPermissions

ListDriveItemListItemPermissions - Get permissions from me. The set of permissions for the item. Read-only. Nullable.

func (DriveItemListItemPermissionClient) ListDriveItemListItemPermissionsComplete

ListDriveItemListItemPermissionsComplete retrieves all the results into a single object

func (DriveItemListItemPermissionClient) ListDriveItemListItemPermissionsCompleteMatchingPredicate

ListDriveItemListItemPermissionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DriveItemListItemPermissionClient) RevokeDriveItemListItemPermissionGrants

RevokeDriveItemListItemPermissionGrants - Invoke action revokeGrants. Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link.

func (DriveItemListItemPermissionClient) UpdateDriveItemListItemPermission

UpdateDriveItemListItemPermission - Update the navigation property permissions in me

type GetDriveItemListItemPermissionOperationOptions

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

func DefaultGetDriveItemListItemPermissionOperationOptions

func DefaultGetDriveItemListItemPermissionOperationOptions() GetDriveItemListItemPermissionOperationOptions

func (GetDriveItemListItemPermissionOperationOptions) ToHeaders

func (GetDriveItemListItemPermissionOperationOptions) ToOData

func (GetDriveItemListItemPermissionOperationOptions) ToQuery

type GetDriveItemListItemPermissionOperationResponse

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

type GetDriveItemListItemPermissionsCountOperationOptions

type GetDriveItemListItemPermissionsCountOperationOptions struct {
	Filter    *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Search    *string
}

func DefaultGetDriveItemListItemPermissionsCountOperationOptions

func DefaultGetDriveItemListItemPermissionsCountOperationOptions() GetDriveItemListItemPermissionsCountOperationOptions

func (GetDriveItemListItemPermissionsCountOperationOptions) ToHeaders

func (GetDriveItemListItemPermissionsCountOperationOptions) ToOData

func (GetDriveItemListItemPermissionsCountOperationOptions) ToQuery

type GetDriveItemListItemPermissionsCountOperationResponse

type GetDriveItemListItemPermissionsCountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type ListDriveItemListItemPermissionGrantsCompleteResult

type ListDriveItemListItemPermissionGrantsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.Permission
}

type ListDriveItemListItemPermissionGrantsCustomPager

type ListDriveItemListItemPermissionGrantsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListDriveItemListItemPermissionGrantsOperationOptions

type ListDriveItemListItemPermissionGrantsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultListDriveItemListItemPermissionGrantsOperationOptions

func DefaultListDriveItemListItemPermissionGrantsOperationOptions() ListDriveItemListItemPermissionGrantsOperationOptions

func (ListDriveItemListItemPermissionGrantsOperationOptions) ToHeaders

func (ListDriveItemListItemPermissionGrantsOperationOptions) ToOData

func (ListDriveItemListItemPermissionGrantsOperationOptions) ToQuery

type ListDriveItemListItemPermissionGrantsOperationResponse

type ListDriveItemListItemPermissionGrantsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.Permission
}

type ListDriveItemListItemPermissionGrantsRequest

type ListDriveItemListItemPermissionGrantsRequest struct {
	Recipients *[]beta.DriveRecipient `json:"recipients,omitempty"`
	Roles      *[]string              `json:"roles,omitempty"`
}

type ListDriveItemListItemPermissionsCompleteResult

type ListDriveItemListItemPermissionsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.Permission
}

type ListDriveItemListItemPermissionsCustomPager

type ListDriveItemListItemPermissionsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListDriveItemListItemPermissionsOperationOptions

type ListDriveItemListItemPermissionsOperationOptions 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 DefaultListDriveItemListItemPermissionsOperationOptions

func DefaultListDriveItemListItemPermissionsOperationOptions() ListDriveItemListItemPermissionsOperationOptions

func (ListDriveItemListItemPermissionsOperationOptions) ToHeaders

func (ListDriveItemListItemPermissionsOperationOptions) ToOData

func (ListDriveItemListItemPermissionsOperationOptions) ToQuery

type ListDriveItemListItemPermissionsOperationResponse

type ListDriveItemListItemPermissionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.Permission
}

type PermissionOperationPredicate

type PermissionOperationPredicate struct {
}

func (PermissionOperationPredicate) Matches

type RevokeDriveItemListItemPermissionGrantsOperationOptions

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

func (RevokeDriveItemListItemPermissionGrantsOperationOptions) ToHeaders

func (RevokeDriveItemListItemPermissionGrantsOperationOptions) ToOData

func (RevokeDriveItemListItemPermissionGrantsOperationOptions) ToQuery

type RevokeDriveItemListItemPermissionGrantsOperationResponse

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

type RevokeDriveItemListItemPermissionGrantsRequest

type RevokeDriveItemListItemPermissionGrantsRequest struct {
	Grantees *[]beta.DriveRecipient `json:"grantees,omitempty"`
}

type UpdateDriveItemListItemPermissionOperationOptions

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

func DefaultUpdateDriveItemListItemPermissionOperationOptions

func DefaultUpdateDriveItemListItemPermissionOperationOptions() UpdateDriveItemListItemPermissionOperationOptions

func (UpdateDriveItemListItemPermissionOperationOptions) ToHeaders

func (UpdateDriveItemListItemPermissionOperationOptions) ToOData

func (UpdateDriveItemListItemPermissionOperationOptions) ToQuery

type UpdateDriveItemListItemPermissionOperationResponse

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