drivelistpermission

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/drivelistpermission Documentation

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

Client Initialization

client := drivelistpermission.NewDriveListPermissionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DriveListPermissionClient.CreateDriveListPermission

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

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


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

Example Usage: DriveListPermissionClient.DeleteDriveListPermission

ctx := context.TODO()
id := drivelistpermission.NewMeDriveIdListPermissionID("driveId", "permissionId")

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

Example Usage: DriveListPermissionClient.GetDriveListPermission

ctx := context.TODO()
id := drivelistpermission.NewMeDriveIdListPermissionID("driveId", "permissionId")

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

Example Usage: DriveListPermissionClient.GetDriveListPermissionsCount

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

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

Example Usage: DriveListPermissionClient.ListDriveListPermissionGrants

ctx := context.TODO()
id := drivelistpermission.NewMeDriveIdListPermissionID("driveId", "permissionId")

payload := drivelistpermission.ListDriveListPermissionGrantsRequest{
	// ...
}


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

Example Usage: DriveListPermissionClient.ListDriveListPermissions

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

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

Example Usage: DriveListPermissionClient.RevokeDriveListPermissionGrants

ctx := context.TODO()
id := drivelistpermission.NewMeDriveIdListPermissionID("driveId", "permissionId")

payload := drivelistpermission.RevokeDriveListPermissionGrantsRequest{
	// ...
}


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

Example Usage: DriveListPermissionClient.UpdateDriveListPermission

ctx := context.TODO()
id := drivelistpermission.NewMeDriveIdListPermissionID("driveId", "permissionId")

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


read, err := client.UpdateDriveListPermission(ctx, id, payload, drivelistpermission.DefaultUpdateDriveListPermissionOperationOptions())
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 CreateDriveListPermissionOperationOptions

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

func DefaultCreateDriveListPermissionOperationOptions

func DefaultCreateDriveListPermissionOperationOptions() CreateDriveListPermissionOperationOptions

func (CreateDriveListPermissionOperationOptions) ToHeaders

func (CreateDriveListPermissionOperationOptions) ToOData

func (CreateDriveListPermissionOperationOptions) ToQuery

type CreateDriveListPermissionOperationResponse

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

type DeleteDriveListPermissionOperationOptions

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

func DefaultDeleteDriveListPermissionOperationOptions

func DefaultDeleteDriveListPermissionOperationOptions() DeleteDriveListPermissionOperationOptions

func (DeleteDriveListPermissionOperationOptions) ToHeaders

func (DeleteDriveListPermissionOperationOptions) ToOData

func (DeleteDriveListPermissionOperationOptions) ToQuery

type DeleteDriveListPermissionOperationResponse

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

type DriveListPermissionClient

type DriveListPermissionClient struct {
	Client *msgraph.Client
}

func NewDriveListPermissionClientWithBaseURI

func NewDriveListPermissionClientWithBaseURI(sdkApi sdkEnv.Api) (*DriveListPermissionClient, error)

func (DriveListPermissionClient) CreateDriveListPermission

CreateDriveListPermission - Create new navigation property to permissions for me

func (DriveListPermissionClient) DeleteDriveListPermission

DeleteDriveListPermission - Delete navigation property permissions for me

func (DriveListPermissionClient) GetDriveListPermission

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

func (DriveListPermissionClient) GetDriveListPermissionsCount

GetDriveListPermissionsCount - Get the number of the resource

func (DriveListPermissionClient) ListDriveListPermissionGrants

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

func (DriveListPermissionClient) ListDriveListPermissionGrantsComplete

ListDriveListPermissionGrantsComplete retrieves all the results into a single object

func (DriveListPermissionClient) ListDriveListPermissionGrantsCompleteMatchingPredicate

ListDriveListPermissionGrantsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DriveListPermissionClient) ListDriveListPermissions

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

func (DriveListPermissionClient) ListDriveListPermissionsComplete

ListDriveListPermissionsComplete retrieves all the results into a single object

func (DriveListPermissionClient) ListDriveListPermissionsCompleteMatchingPredicate

func (c DriveListPermissionClient) ListDriveListPermissionsCompleteMatchingPredicate(ctx context.Context, id beta.MeDriveId, options ListDriveListPermissionsOperationOptions, predicate PermissionOperationPredicate) (result ListDriveListPermissionsCompleteResult, err error)

ListDriveListPermissionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DriveListPermissionClient) RevokeDriveListPermissionGrants

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

func (DriveListPermissionClient) UpdateDriveListPermission

UpdateDriveListPermission - Update the navigation property permissions in me

type GetDriveListPermissionOperationOptions

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

func DefaultGetDriveListPermissionOperationOptions

func DefaultGetDriveListPermissionOperationOptions() GetDriveListPermissionOperationOptions

func (GetDriveListPermissionOperationOptions) ToHeaders

func (GetDriveListPermissionOperationOptions) ToOData

func (GetDriveListPermissionOperationOptions) ToQuery

type GetDriveListPermissionOperationResponse

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

type GetDriveListPermissionsCountOperationOptions

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

func DefaultGetDriveListPermissionsCountOperationOptions

func DefaultGetDriveListPermissionsCountOperationOptions() GetDriveListPermissionsCountOperationOptions

func (GetDriveListPermissionsCountOperationOptions) ToHeaders

func (GetDriveListPermissionsCountOperationOptions) ToOData

func (GetDriveListPermissionsCountOperationOptions) ToQuery

type GetDriveListPermissionsCountOperationResponse

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

type ListDriveListPermissionGrantsCompleteResult

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

type ListDriveListPermissionGrantsCustomPager

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

type ListDriveListPermissionGrantsOperationOptions

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

func DefaultListDriveListPermissionGrantsOperationOptions

func DefaultListDriveListPermissionGrantsOperationOptions() ListDriveListPermissionGrantsOperationOptions

func (ListDriveListPermissionGrantsOperationOptions) ToHeaders

func (ListDriveListPermissionGrantsOperationOptions) ToOData

func (ListDriveListPermissionGrantsOperationOptions) ToQuery

type ListDriveListPermissionGrantsOperationResponse

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

type ListDriveListPermissionGrantsRequest

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

type ListDriveListPermissionsCompleteResult

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

type ListDriveListPermissionsCustomPager

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

type ListDriveListPermissionsOperationOptions

type ListDriveListPermissionsOperationOptions 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 DefaultListDriveListPermissionsOperationOptions

func DefaultListDriveListPermissionsOperationOptions() ListDriveListPermissionsOperationOptions

func (ListDriveListPermissionsOperationOptions) ToHeaders

func (ListDriveListPermissionsOperationOptions) ToOData

func (ListDriveListPermissionsOperationOptions) ToQuery

type ListDriveListPermissionsOperationResponse

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

type PermissionOperationPredicate

type PermissionOperationPredicate struct {
}

func (PermissionOperationPredicate) Matches

type RevokeDriveListPermissionGrantsOperationOptions

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

func DefaultRevokeDriveListPermissionGrantsOperationOptions

func DefaultRevokeDriveListPermissionGrantsOperationOptions() RevokeDriveListPermissionGrantsOperationOptions

func (RevokeDriveListPermissionGrantsOperationOptions) ToHeaders

func (RevokeDriveListPermissionGrantsOperationOptions) ToOData

func (RevokeDriveListPermissionGrantsOperationOptions) ToQuery

type RevokeDriveListPermissionGrantsOperationResponse

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

type RevokeDriveListPermissionGrantsRequest

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

type UpdateDriveListPermissionOperationOptions

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

func DefaultUpdateDriveListPermissionOperationOptions

func DefaultUpdateDriveListPermissionOperationOptions() UpdateDriveListPermissionOperationOptions

func (UpdateDriveListPermissionOperationOptions) ToHeaders

func (UpdateDriveListPermissionOperationOptions) ToOData

func (UpdateDriveListPermissionOperationOptions) ToQuery

type UpdateDriveListPermissionOperationResponse

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