driverootlistitempermission

package
v0.20241126.1723 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/driverootlistitempermission Documentation

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

Client Initialization

client := driverootlistitempermission.NewDriveRootListItemPermissionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DriveRootListItemPermissionClient.CreateDriveRootListItemPermission

ctx := context.TODO()
id := driverootlistitempermission.NewGroupIdDriveID("groupId", "driveId")

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


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

Example Usage: DriveRootListItemPermissionClient.DeleteDriveRootListItemPermission

ctx := context.TODO()
id := driverootlistitempermission.NewGroupIdDriveIdRootListItemPermissionID("groupId", "driveId", "permissionId")

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

Example Usage: DriveRootListItemPermissionClient.GetDriveRootListItemPermission

ctx := context.TODO()
id := driverootlistitempermission.NewGroupIdDriveIdRootListItemPermissionID("groupId", "driveId", "permissionId")

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

Example Usage: DriveRootListItemPermissionClient.GetDriveRootListItemPermissionsCount

ctx := context.TODO()
id := driverootlistitempermission.NewGroupIdDriveID("groupId", "driveId")

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

Example Usage: DriveRootListItemPermissionClient.ListDriveRootListItemPermissionGrants

ctx := context.TODO()
id := driverootlistitempermission.NewGroupIdDriveIdRootListItemPermissionID("groupId", "driveId", "permissionId")

payload := driverootlistitempermission.ListDriveRootListItemPermissionGrantsRequest{
	// ...
}


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

Example Usage: DriveRootListItemPermissionClient.ListDriveRootListItemPermissions

ctx := context.TODO()
id := driverootlistitempermission.NewGroupIdDriveID("groupId", "driveId")

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

Example Usage: DriveRootListItemPermissionClient.RevokeDriveRootListItemPermissionGrants

ctx := context.TODO()
id := driverootlistitempermission.NewGroupIdDriveIdRootListItemPermissionID("groupId", "driveId", "permissionId")

payload := driverootlistitempermission.RevokeDriveRootListItemPermissionGrantsRequest{
	// ...
}


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

Example Usage: DriveRootListItemPermissionClient.UpdateDriveRootListItemPermission

ctx := context.TODO()
id := driverootlistitempermission.NewGroupIdDriveIdRootListItemPermissionID("groupId", "driveId", "permissionId")

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


read, err := client.UpdateDriveRootListItemPermission(ctx, id, payload, driverootlistitempermission.DefaultUpdateDriveRootListItemPermissionOperationOptions())
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 CreateDriveRootListItemPermissionOperationOptions

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

func DefaultCreateDriveRootListItemPermissionOperationOptions

func DefaultCreateDriveRootListItemPermissionOperationOptions() CreateDriveRootListItemPermissionOperationOptions

func (CreateDriveRootListItemPermissionOperationOptions) ToHeaders

func (CreateDriveRootListItemPermissionOperationOptions) ToOData

func (CreateDriveRootListItemPermissionOperationOptions) ToQuery

type CreateDriveRootListItemPermissionOperationResponse

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

type DeleteDriveRootListItemPermissionOperationOptions

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

func DefaultDeleteDriveRootListItemPermissionOperationOptions

func DefaultDeleteDriveRootListItemPermissionOperationOptions() DeleteDriveRootListItemPermissionOperationOptions

func (DeleteDriveRootListItemPermissionOperationOptions) ToHeaders

func (DeleteDriveRootListItemPermissionOperationOptions) ToOData

func (DeleteDriveRootListItemPermissionOperationOptions) ToQuery

type DeleteDriveRootListItemPermissionOperationResponse

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

type DriveRootListItemPermissionClient

type DriveRootListItemPermissionClient struct {
	Client *msgraph.Client
}

func NewDriveRootListItemPermissionClientWithBaseURI

func NewDriveRootListItemPermissionClientWithBaseURI(sdkApi sdkEnv.Api) (*DriveRootListItemPermissionClient, error)

func (DriveRootListItemPermissionClient) CreateDriveRootListItemPermission

CreateDriveRootListItemPermission - Create new navigation property to permissions for groups

func (DriveRootListItemPermissionClient) DeleteDriveRootListItemPermission

DeleteDriveRootListItemPermission - Delete navigation property permissions for groups

func (DriveRootListItemPermissionClient) GetDriveRootListItemPermission

GetDriveRootListItemPermission - Get permissions from groups. The set of permissions for the item. Read-only. Nullable.

func (DriveRootListItemPermissionClient) GetDriveRootListItemPermissionsCount

GetDriveRootListItemPermissionsCount - Get the number of the resource

func (DriveRootListItemPermissionClient) ListDriveRootListItemPermissionGrants

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

func (DriveRootListItemPermissionClient) ListDriveRootListItemPermissionGrantsComplete

ListDriveRootListItemPermissionGrantsComplete retrieves all the results into a single object

func (DriveRootListItemPermissionClient) ListDriveRootListItemPermissionGrantsCompleteMatchingPredicate

ListDriveRootListItemPermissionGrantsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DriveRootListItemPermissionClient) ListDriveRootListItemPermissions

ListDriveRootListItemPermissions - Get permissions from groups. The set of permissions for the item. Read-only. Nullable.

func (DriveRootListItemPermissionClient) ListDriveRootListItemPermissionsComplete

ListDriveRootListItemPermissionsComplete retrieves all the results into a single object

func (DriveRootListItemPermissionClient) ListDriveRootListItemPermissionsCompleteMatchingPredicate

ListDriveRootListItemPermissionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DriveRootListItemPermissionClient) RevokeDriveRootListItemPermissionGrants

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

func (DriveRootListItemPermissionClient) UpdateDriveRootListItemPermission

UpdateDriveRootListItemPermission - Update the navigation property permissions in groups

type GetDriveRootListItemPermissionOperationOptions

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

func DefaultGetDriveRootListItemPermissionOperationOptions

func DefaultGetDriveRootListItemPermissionOperationOptions() GetDriveRootListItemPermissionOperationOptions

func (GetDriveRootListItemPermissionOperationOptions) ToHeaders

func (GetDriveRootListItemPermissionOperationOptions) ToOData

func (GetDriveRootListItemPermissionOperationOptions) ToQuery

type GetDriveRootListItemPermissionOperationResponse

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

type GetDriveRootListItemPermissionsCountOperationOptions

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

func DefaultGetDriveRootListItemPermissionsCountOperationOptions

func DefaultGetDriveRootListItemPermissionsCountOperationOptions() GetDriveRootListItemPermissionsCountOperationOptions

func (GetDriveRootListItemPermissionsCountOperationOptions) ToHeaders

func (GetDriveRootListItemPermissionsCountOperationOptions) ToOData

func (GetDriveRootListItemPermissionsCountOperationOptions) ToQuery

type GetDriveRootListItemPermissionsCountOperationResponse

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

type ListDriveRootListItemPermissionGrantsCompleteResult

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

type ListDriveRootListItemPermissionGrantsCustomPager

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

type ListDriveRootListItemPermissionGrantsOperationOptions

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

func DefaultListDriveRootListItemPermissionGrantsOperationOptions

func DefaultListDriveRootListItemPermissionGrantsOperationOptions() ListDriveRootListItemPermissionGrantsOperationOptions

func (ListDriveRootListItemPermissionGrantsOperationOptions) ToHeaders

func (ListDriveRootListItemPermissionGrantsOperationOptions) ToOData

func (ListDriveRootListItemPermissionGrantsOperationOptions) ToQuery

type ListDriveRootListItemPermissionGrantsOperationResponse

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

type ListDriveRootListItemPermissionGrantsRequest

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

type ListDriveRootListItemPermissionsCompleteResult

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

type ListDriveRootListItemPermissionsCustomPager

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

type ListDriveRootListItemPermissionsOperationOptions

type ListDriveRootListItemPermissionsOperationOptions 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 DefaultListDriveRootListItemPermissionsOperationOptions

func DefaultListDriveRootListItemPermissionsOperationOptions() ListDriveRootListItemPermissionsOperationOptions

func (ListDriveRootListItemPermissionsOperationOptions) ToHeaders

func (ListDriveRootListItemPermissionsOperationOptions) ToOData

func (ListDriveRootListItemPermissionsOperationOptions) ToQuery

type ListDriveRootListItemPermissionsOperationResponse

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

type PermissionOperationPredicate

type PermissionOperationPredicate struct {
}

func (PermissionOperationPredicate) Matches

type RevokeDriveRootListItemPermissionGrantsOperationOptions

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

func (RevokeDriveRootListItemPermissionGrantsOperationOptions) ToHeaders

func (RevokeDriveRootListItemPermissionGrantsOperationOptions) ToOData

func (RevokeDriveRootListItemPermissionGrantsOperationOptions) ToQuery

type RevokeDriveRootListItemPermissionGrantsOperationResponse

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

type RevokeDriveRootListItemPermissionGrantsRequest

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

type UpdateDriveRootListItemPermissionOperationOptions

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

func DefaultUpdateDriveRootListItemPermissionOperationOptions

func DefaultUpdateDriveRootListItemPermissionOperationOptions() UpdateDriveRootListItemPermissionOperationOptions

func (UpdateDriveRootListItemPermissionOperationOptions) ToHeaders

func (UpdateDriveRootListItemPermissionOperationOptions) ToOData

func (UpdateDriveRootListItemPermissionOperationOptions) ToQuery

type UpdateDriveRootListItemPermissionOperationResponse

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