README ¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/drivelistpermission
Documentation
The drivelistpermission
SDK allows for interaction with Microsoft Graph users
(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/users/beta/drivelistpermission"
Client Initialization
client := drivelistpermission.NewDriveListPermissionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: DriveListPermissionClient.CreateDriveListPermission
ctx := context.TODO()
id := drivelistpermission.NewUserIdDriveID("userId", "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.NewUserIdDriveIdListPermissionID("userId", "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.NewUserIdDriveIdListPermissionID("userId", "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.NewUserIdDriveID("userId", "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.NewUserIdDriveIdListPermissionID("userId", "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.NewUserIdDriveID("userId", "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.NewUserIdDriveIdListPermissionID("userId", "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.NewUserIdDriveIdListPermissionID("userId", "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 ¶
- type CreateDriveListPermissionOperationOptions
- type CreateDriveListPermissionOperationResponse
- type DeleteDriveListPermissionOperationOptions
- type DeleteDriveListPermissionOperationResponse
- type DriveListPermissionClient
- func (c DriveListPermissionClient) CreateDriveListPermission(ctx context.Context, id beta.UserIdDriveId, input beta.Permission, ...) (result CreateDriveListPermissionOperationResponse, err error)
- func (c DriveListPermissionClient) DeleteDriveListPermission(ctx context.Context, id beta.UserIdDriveIdListPermissionId, ...) (result DeleteDriveListPermissionOperationResponse, err error)
- func (c DriveListPermissionClient) GetDriveListPermission(ctx context.Context, id beta.UserIdDriveIdListPermissionId, ...) (result GetDriveListPermissionOperationResponse, err error)
- func (c DriveListPermissionClient) GetDriveListPermissionsCount(ctx context.Context, id beta.UserIdDriveId, ...) (result GetDriveListPermissionsCountOperationResponse, err error)
- func (c DriveListPermissionClient) ListDriveListPermissionGrants(ctx context.Context, id beta.UserIdDriveIdListPermissionId, ...) (result ListDriveListPermissionGrantsOperationResponse, err error)
- func (c DriveListPermissionClient) ListDriveListPermissionGrantsComplete(ctx context.Context, id beta.UserIdDriveIdListPermissionId, ...) (ListDriveListPermissionGrantsCompleteResult, error)
- func (c DriveListPermissionClient) ListDriveListPermissionGrantsCompleteMatchingPredicate(ctx context.Context, id beta.UserIdDriveIdListPermissionId, ...) (result ListDriveListPermissionGrantsCompleteResult, err error)
- func (c DriveListPermissionClient) ListDriveListPermissions(ctx context.Context, id beta.UserIdDriveId, ...) (result ListDriveListPermissionsOperationResponse, err error)
- func (c DriveListPermissionClient) ListDriveListPermissionsComplete(ctx context.Context, id beta.UserIdDriveId, ...) (ListDriveListPermissionsCompleteResult, error)
- func (c DriveListPermissionClient) ListDriveListPermissionsCompleteMatchingPredicate(ctx context.Context, id beta.UserIdDriveId, ...) (result ListDriveListPermissionsCompleteResult, err error)
- func (c DriveListPermissionClient) RevokeDriveListPermissionGrants(ctx context.Context, id beta.UserIdDriveIdListPermissionId, ...) (result RevokeDriveListPermissionGrantsOperationResponse, err error)
- func (c DriveListPermissionClient) UpdateDriveListPermission(ctx context.Context, id beta.UserIdDriveIdListPermissionId, ...) (result UpdateDriveListPermissionOperationResponse, err error)
- type GetDriveListPermissionOperationOptions
- type GetDriveListPermissionOperationResponse
- type GetDriveListPermissionsCountOperationOptions
- type GetDriveListPermissionsCountOperationResponse
- type ListDriveListPermissionGrantsCompleteResult
- type ListDriveListPermissionGrantsCustomPager
- type ListDriveListPermissionGrantsOperationOptions
- type ListDriveListPermissionGrantsOperationResponse
- type ListDriveListPermissionGrantsRequest
- type ListDriveListPermissionsCompleteResult
- type ListDriveListPermissionsCustomPager
- type ListDriveListPermissionsOperationOptions
- type ListDriveListPermissionsOperationResponse
- type PermissionOperationPredicate
- type RevokeDriveListPermissionGrantsOperationOptions
- type RevokeDriveListPermissionGrantsOperationResponse
- type RevokeDriveListPermissionGrantsRequest
- type UpdateDriveListPermissionOperationOptions
- type UpdateDriveListPermissionOperationResponse
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 (o CreateDriveListPermissionOperationOptions) ToHeaders() *client.Headers
func (CreateDriveListPermissionOperationOptions) ToOData ¶
func (o CreateDriveListPermissionOperationOptions) ToOData() *odata.Query
func (CreateDriveListPermissionOperationOptions) ToQuery ¶
func (o CreateDriveListPermissionOperationOptions) ToQuery() *client.QueryParams
type DeleteDriveListPermissionOperationOptions ¶
type DeleteDriveListPermissionOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteDriveListPermissionOperationOptions ¶
func DefaultDeleteDriveListPermissionOperationOptions() DeleteDriveListPermissionOperationOptions
func (DeleteDriveListPermissionOperationOptions) ToHeaders ¶
func (o DeleteDriveListPermissionOperationOptions) ToHeaders() *client.Headers
func (DeleteDriveListPermissionOperationOptions) ToOData ¶
func (o DeleteDriveListPermissionOperationOptions) ToOData() *odata.Query
func (DeleteDriveListPermissionOperationOptions) ToQuery ¶
func (o DeleteDriveListPermissionOperationOptions) ToQuery() *client.QueryParams
type DriveListPermissionClient ¶
func NewDriveListPermissionClientWithBaseURI ¶
func NewDriveListPermissionClientWithBaseURI(sdkApi sdkEnv.Api) (*DriveListPermissionClient, error)
func (DriveListPermissionClient) CreateDriveListPermission ¶
func (c DriveListPermissionClient) CreateDriveListPermission(ctx context.Context, id beta.UserIdDriveId, input beta.Permission, options CreateDriveListPermissionOperationOptions) (result CreateDriveListPermissionOperationResponse, err error)
CreateDriveListPermission - Create new navigation property to permissions for users
func (DriveListPermissionClient) DeleteDriveListPermission ¶
func (c DriveListPermissionClient) DeleteDriveListPermission(ctx context.Context, id beta.UserIdDriveIdListPermissionId, options DeleteDriveListPermissionOperationOptions) (result DeleteDriveListPermissionOperationResponse, err error)
DeleteDriveListPermission - Delete navigation property permissions for users
func (DriveListPermissionClient) GetDriveListPermission ¶
func (c DriveListPermissionClient) GetDriveListPermission(ctx context.Context, id beta.UserIdDriveIdListPermissionId, options GetDriveListPermissionOperationOptions) (result GetDriveListPermissionOperationResponse, err error)
GetDriveListPermission - Get permissions from users. The set of permissions for the item. Read-only. Nullable.
func (DriveListPermissionClient) GetDriveListPermissionsCount ¶
func (c DriveListPermissionClient) GetDriveListPermissionsCount(ctx context.Context, id beta.UserIdDriveId, options GetDriveListPermissionsCountOperationOptions) (result GetDriveListPermissionsCountOperationResponse, err error)
GetDriveListPermissionsCount - Get the number of the resource
func (DriveListPermissionClient) ListDriveListPermissionGrants ¶
func (c DriveListPermissionClient) ListDriveListPermissionGrants(ctx context.Context, id beta.UserIdDriveIdListPermissionId, input ListDriveListPermissionGrantsRequest, options ListDriveListPermissionGrantsOperationOptions) (result ListDriveListPermissionGrantsOperationResponse, err error)
ListDriveListPermissionGrants - Invoke action grant. Grant users access to a link represented by a permission.
func (DriveListPermissionClient) ListDriveListPermissionGrantsComplete ¶
func (c DriveListPermissionClient) ListDriveListPermissionGrantsComplete(ctx context.Context, id beta.UserIdDriveIdListPermissionId, input ListDriveListPermissionGrantsRequest, options ListDriveListPermissionGrantsOperationOptions) (ListDriveListPermissionGrantsCompleteResult, error)
ListDriveListPermissionGrantsComplete retrieves all the results into a single object
func (DriveListPermissionClient) ListDriveListPermissionGrantsCompleteMatchingPredicate ¶
func (c DriveListPermissionClient) ListDriveListPermissionGrantsCompleteMatchingPredicate(ctx context.Context, id beta.UserIdDriveIdListPermissionId, input ListDriveListPermissionGrantsRequest, options ListDriveListPermissionGrantsOperationOptions, predicate PermissionOperationPredicate) (result ListDriveListPermissionGrantsCompleteResult, err error)
ListDriveListPermissionGrantsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DriveListPermissionClient) ListDriveListPermissions ¶
func (c DriveListPermissionClient) ListDriveListPermissions(ctx context.Context, id beta.UserIdDriveId, options ListDriveListPermissionsOperationOptions) (result ListDriveListPermissionsOperationResponse, err error)
ListDriveListPermissions - Get permissions from users. The set of permissions for the item. Read-only. Nullable.
func (DriveListPermissionClient) ListDriveListPermissionsComplete ¶
func (c DriveListPermissionClient) ListDriveListPermissionsComplete(ctx context.Context, id beta.UserIdDriveId, options ListDriveListPermissionsOperationOptions) (ListDriveListPermissionsCompleteResult, error)
ListDriveListPermissionsComplete retrieves all the results into a single object
func (DriveListPermissionClient) ListDriveListPermissionsCompleteMatchingPredicate ¶
func (c DriveListPermissionClient) ListDriveListPermissionsCompleteMatchingPredicate(ctx context.Context, id beta.UserIdDriveId, options ListDriveListPermissionsOperationOptions, predicate PermissionOperationPredicate) (result ListDriveListPermissionsCompleteResult, err error)
ListDriveListPermissionsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DriveListPermissionClient) RevokeDriveListPermissionGrants ¶
func (c DriveListPermissionClient) RevokeDriveListPermissionGrants(ctx context.Context, id beta.UserIdDriveIdListPermissionId, input RevokeDriveListPermissionGrantsRequest, options RevokeDriveListPermissionGrantsOperationOptions) (result RevokeDriveListPermissionGrantsOperationResponse, err error)
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 ¶
func (c DriveListPermissionClient) UpdateDriveListPermission(ctx context.Context, id beta.UserIdDriveIdListPermissionId, input beta.Permission, options UpdateDriveListPermissionOperationOptions) (result UpdateDriveListPermissionOperationResponse, err error)
UpdateDriveListPermission - Update the navigation property permissions in users
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 (o GetDriveListPermissionOperationOptions) ToHeaders() *client.Headers
func (GetDriveListPermissionOperationOptions) ToOData ¶
func (o GetDriveListPermissionOperationOptions) ToOData() *odata.Query
func (GetDriveListPermissionOperationOptions) ToQuery ¶
func (o GetDriveListPermissionOperationOptions) ToQuery() *client.QueryParams
type GetDriveListPermissionsCountOperationOptions ¶
type GetDriveListPermissionsCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetDriveListPermissionsCountOperationOptions ¶
func DefaultGetDriveListPermissionsCountOperationOptions() GetDriveListPermissionsCountOperationOptions
func (GetDriveListPermissionsCountOperationOptions) ToHeaders ¶
func (o GetDriveListPermissionsCountOperationOptions) ToHeaders() *client.Headers
func (GetDriveListPermissionsCountOperationOptions) ToOData ¶
func (o GetDriveListPermissionsCountOperationOptions) ToOData() *odata.Query
func (GetDriveListPermissionsCountOperationOptions) ToQuery ¶
func (o GetDriveListPermissionsCountOperationOptions) ToQuery() *client.QueryParams
type ListDriveListPermissionGrantsCompleteResult ¶
type ListDriveListPermissionGrantsCompleteResult struct { LatestHttpResponse *http.Response Items []beta.Permission }
type ListDriveListPermissionGrantsCustomPager ¶
type ListDriveListPermissionGrantsCustomPager struct {
NextLink *odata.Link `json:"@odata.nextLink"`
}
func (*ListDriveListPermissionGrantsCustomPager) NextPageLink ¶
func (p *ListDriveListPermissionGrantsCustomPager) NextPageLink() *odata.Link
type ListDriveListPermissionGrantsOperationOptions ¶
type ListDriveListPermissionGrantsOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Skip *int64 Top *int64 }
func DefaultListDriveListPermissionGrantsOperationOptions ¶
func DefaultListDriveListPermissionGrantsOperationOptions() ListDriveListPermissionGrantsOperationOptions
func (ListDriveListPermissionGrantsOperationOptions) ToHeaders ¶
func (o ListDriveListPermissionGrantsOperationOptions) ToHeaders() *client.Headers
func (ListDriveListPermissionGrantsOperationOptions) ToOData ¶
func (o ListDriveListPermissionGrantsOperationOptions) ToOData() *odata.Query
func (ListDriveListPermissionGrantsOperationOptions) ToQuery ¶
func (o ListDriveListPermissionGrantsOperationOptions) ToQuery() *client.QueryParams
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 ¶
func (*ListDriveListPermissionsCustomPager) NextPageLink ¶
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 (o ListDriveListPermissionsOperationOptions) ToHeaders() *client.Headers
func (ListDriveListPermissionsOperationOptions) ToOData ¶
func (o ListDriveListPermissionsOperationOptions) ToOData() *odata.Query
func (ListDriveListPermissionsOperationOptions) ToQuery ¶
func (o ListDriveListPermissionsOperationOptions) ToQuery() *client.QueryParams
type PermissionOperationPredicate ¶
type PermissionOperationPredicate struct { }
func (PermissionOperationPredicate) Matches ¶
func (p PermissionOperationPredicate) Matches(input beta.Permission) bool
type RevokeDriveListPermissionGrantsOperationOptions ¶
type RevokeDriveListPermissionGrantsOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultRevokeDriveListPermissionGrantsOperationOptions ¶
func DefaultRevokeDriveListPermissionGrantsOperationOptions() RevokeDriveListPermissionGrantsOperationOptions
func (RevokeDriveListPermissionGrantsOperationOptions) ToHeaders ¶
func (o RevokeDriveListPermissionGrantsOperationOptions) ToHeaders() *client.Headers
func (RevokeDriveListPermissionGrantsOperationOptions) ToOData ¶
func (o RevokeDriveListPermissionGrantsOperationOptions) ToOData() *odata.Query
func (RevokeDriveListPermissionGrantsOperationOptions) ToQuery ¶
func (o RevokeDriveListPermissionGrantsOperationOptions) ToQuery() *client.QueryParams
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 (o UpdateDriveListPermissionOperationOptions) ToHeaders() *client.Headers
func (UpdateDriveListPermissionOperationOptions) ToOData ¶
func (o UpdateDriveListPermissionOperationOptions) ToOData() *odata.Query
func (UpdateDriveListPermissionOperationOptions) ToQuery ¶
func (o UpdateDriveListPermissionOperationOptions) ToQuery() *client.QueryParams
Source Files ¶
- client.go
- method_createdrivelistpermission.go
- method_deletedrivelistpermission.go
- method_getdrivelistpermission.go
- method_getdrivelistpermissionscount.go
- method_listdrivelistpermissiongrants.go
- method_listdrivelistpermissions.go
- method_revokedrivelistpermissiongrants.go
- method_updatedrivelistpermission.go
- model_listdrivelistpermissiongrantsrequest.go
- model_revokedrivelistpermissiongrantsrequest.go
- predicates.go
- version.go