README ¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/driverootpermission
Documentation
The driverootpermission
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/driverootpermission"
Client Initialization
client := driverootpermission.NewDriveRootPermissionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: DriveRootPermissionClient.CreateDriveRootPermission
ctx := context.TODO()
id := driverootpermission.NewMeDriveID("driveId")
payload := driverootpermission.Permission{
// ...
}
read, err := client.CreateDriveRootPermission(ctx, id, payload, driverootpermission.DefaultCreateDriveRootPermissionOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DriveRootPermissionClient.DeleteDriveRootPermission
ctx := context.TODO()
id := driverootpermission.NewMeDriveIdRootPermissionID("driveId", "permissionId")
read, err := client.DeleteDriveRootPermission(ctx, id, driverootpermission.DefaultDeleteDriveRootPermissionOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DriveRootPermissionClient.GetDriveRootPermission
ctx := context.TODO()
id := driverootpermission.NewMeDriveIdRootPermissionID("driveId", "permissionId")
read, err := client.GetDriveRootPermission(ctx, id, driverootpermission.DefaultGetDriveRootPermissionOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DriveRootPermissionClient.GetDriveRootPermissionsCount
ctx := context.TODO()
id := driverootpermission.NewMeDriveID("driveId")
read, err := client.GetDriveRootPermissionsCount(ctx, id, driverootpermission.DefaultGetDriveRootPermissionsCountOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DriveRootPermissionClient.ListDriveRootPermissionGrants
ctx := context.TODO()
id := driverootpermission.NewMeDriveIdRootPermissionID("driveId", "permissionId")
payload := driverootpermission.ListDriveRootPermissionGrantsRequest{
// ...
}
// alternatively `client.ListDriveRootPermissionGrants(ctx, id, payload, driverootpermission.DefaultListDriveRootPermissionGrantsOperationOptions())` can be used to do batched pagination
items, err := client.ListDriveRootPermissionGrantsComplete(ctx, id, payload, driverootpermission.DefaultListDriveRootPermissionGrantsOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: DriveRootPermissionClient.ListDriveRootPermissions
ctx := context.TODO()
id := driverootpermission.NewMeDriveID("driveId")
// alternatively `client.ListDriveRootPermissions(ctx, id, driverootpermission.DefaultListDriveRootPermissionsOperationOptions())` can be used to do batched pagination
items, err := client.ListDriveRootPermissionsComplete(ctx, id, driverootpermission.DefaultListDriveRootPermissionsOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: DriveRootPermissionClient.RevokeDriveRootPermissionGrants
ctx := context.TODO()
id := driverootpermission.NewMeDriveIdRootPermissionID("driveId", "permissionId")
payload := driverootpermission.RevokeDriveRootPermissionGrantsRequest{
// ...
}
read, err := client.RevokeDriveRootPermissionGrants(ctx, id, payload, driverootpermission.DefaultRevokeDriveRootPermissionGrantsOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DriveRootPermissionClient.UpdateDriveRootPermission
ctx := context.TODO()
id := driverootpermission.NewMeDriveIdRootPermissionID("driveId", "permissionId")
payload := driverootpermission.Permission{
// ...
}
read, err := client.UpdateDriveRootPermission(ctx, id, payload, driverootpermission.DefaultUpdateDriveRootPermissionOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- type CreateDriveRootPermissionOperationOptions
- type CreateDriveRootPermissionOperationResponse
- type DeleteDriveRootPermissionOperationOptions
- type DeleteDriveRootPermissionOperationResponse
- type DriveRootPermissionClient
- func (c DriveRootPermissionClient) CreateDriveRootPermission(ctx context.Context, id beta.MeDriveId, input beta.Permission, ...) (result CreateDriveRootPermissionOperationResponse, err error)
- func (c DriveRootPermissionClient) DeleteDriveRootPermission(ctx context.Context, id beta.MeDriveIdRootPermissionId, ...) (result DeleteDriveRootPermissionOperationResponse, err error)
- func (c DriveRootPermissionClient) GetDriveRootPermission(ctx context.Context, id beta.MeDriveIdRootPermissionId, ...) (result GetDriveRootPermissionOperationResponse, err error)
- func (c DriveRootPermissionClient) GetDriveRootPermissionsCount(ctx context.Context, id beta.MeDriveId, ...) (result GetDriveRootPermissionsCountOperationResponse, err error)
- func (c DriveRootPermissionClient) ListDriveRootPermissionGrants(ctx context.Context, id beta.MeDriveIdRootPermissionId, ...) (result ListDriveRootPermissionGrantsOperationResponse, err error)
- func (c DriveRootPermissionClient) ListDriveRootPermissionGrantsComplete(ctx context.Context, id beta.MeDriveIdRootPermissionId, ...) (ListDriveRootPermissionGrantsCompleteResult, error)
- func (c DriveRootPermissionClient) ListDriveRootPermissionGrantsCompleteMatchingPredicate(ctx context.Context, id beta.MeDriveIdRootPermissionId, ...) (result ListDriveRootPermissionGrantsCompleteResult, err error)
- func (c DriveRootPermissionClient) ListDriveRootPermissions(ctx context.Context, id beta.MeDriveId, ...) (result ListDriveRootPermissionsOperationResponse, err error)
- func (c DriveRootPermissionClient) ListDriveRootPermissionsComplete(ctx context.Context, id beta.MeDriveId, ...) (ListDriveRootPermissionsCompleteResult, error)
- func (c DriveRootPermissionClient) ListDriveRootPermissionsCompleteMatchingPredicate(ctx context.Context, id beta.MeDriveId, ...) (result ListDriveRootPermissionsCompleteResult, err error)
- func (c DriveRootPermissionClient) RevokeDriveRootPermissionGrants(ctx context.Context, id beta.MeDriveIdRootPermissionId, ...) (result RevokeDriveRootPermissionGrantsOperationResponse, err error)
- func (c DriveRootPermissionClient) UpdateDriveRootPermission(ctx context.Context, id beta.MeDriveIdRootPermissionId, input beta.Permission, ...) (result UpdateDriveRootPermissionOperationResponse, err error)
- type GetDriveRootPermissionOperationOptions
- type GetDriveRootPermissionOperationResponse
- type GetDriveRootPermissionsCountOperationOptions
- type GetDriveRootPermissionsCountOperationResponse
- type ListDriveRootPermissionGrantsCompleteResult
- type ListDriveRootPermissionGrantsCustomPager
- type ListDriveRootPermissionGrantsOperationOptions
- type ListDriveRootPermissionGrantsOperationResponse
- type ListDriveRootPermissionGrantsRequest
- type ListDriveRootPermissionsCompleteResult
- type ListDriveRootPermissionsCustomPager
- type ListDriveRootPermissionsOperationOptions
- type ListDriveRootPermissionsOperationResponse
- type PermissionOperationPredicate
- type RevokeDriveRootPermissionGrantsOperationOptions
- type RevokeDriveRootPermissionGrantsOperationResponse
- type RevokeDriveRootPermissionGrantsRequest
- type UpdateDriveRootPermissionOperationOptions
- type UpdateDriveRootPermissionOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDriveRootPermissionOperationOptions ¶
type CreateDriveRootPermissionOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateDriveRootPermissionOperationOptions ¶
func DefaultCreateDriveRootPermissionOperationOptions() CreateDriveRootPermissionOperationOptions
func (CreateDriveRootPermissionOperationOptions) ToHeaders ¶
func (o CreateDriveRootPermissionOperationOptions) ToHeaders() *client.Headers
func (CreateDriveRootPermissionOperationOptions) ToOData ¶
func (o CreateDriveRootPermissionOperationOptions) ToOData() *odata.Query
func (CreateDriveRootPermissionOperationOptions) ToQuery ¶
func (o CreateDriveRootPermissionOperationOptions) ToQuery() *client.QueryParams
type DeleteDriveRootPermissionOperationOptions ¶
type DeleteDriveRootPermissionOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteDriveRootPermissionOperationOptions ¶
func DefaultDeleteDriveRootPermissionOperationOptions() DeleteDriveRootPermissionOperationOptions
func (DeleteDriveRootPermissionOperationOptions) ToHeaders ¶
func (o DeleteDriveRootPermissionOperationOptions) ToHeaders() *client.Headers
func (DeleteDriveRootPermissionOperationOptions) ToOData ¶
func (o DeleteDriveRootPermissionOperationOptions) ToOData() *odata.Query
func (DeleteDriveRootPermissionOperationOptions) ToQuery ¶
func (o DeleteDriveRootPermissionOperationOptions) ToQuery() *client.QueryParams
type DriveRootPermissionClient ¶
func NewDriveRootPermissionClientWithBaseURI ¶
func NewDriveRootPermissionClientWithBaseURI(sdkApi sdkEnv.Api) (*DriveRootPermissionClient, error)
func (DriveRootPermissionClient) CreateDriveRootPermission ¶
func (c DriveRootPermissionClient) CreateDriveRootPermission(ctx context.Context, id beta.MeDriveId, input beta.Permission, options CreateDriveRootPermissionOperationOptions) (result CreateDriveRootPermissionOperationResponse, err error)
CreateDriveRootPermission - Create new navigation property to permissions for me
func (DriveRootPermissionClient) DeleteDriveRootPermission ¶
func (c DriveRootPermissionClient) DeleteDriveRootPermission(ctx context.Context, id beta.MeDriveIdRootPermissionId, options DeleteDriveRootPermissionOperationOptions) (result DeleteDriveRootPermissionOperationResponse, err error)
DeleteDriveRootPermission - Delete navigation property permissions for me
func (DriveRootPermissionClient) GetDriveRootPermission ¶
func (c DriveRootPermissionClient) GetDriveRootPermission(ctx context.Context, id beta.MeDriveIdRootPermissionId, options GetDriveRootPermissionOperationOptions) (result GetDriveRootPermissionOperationResponse, err error)
GetDriveRootPermission - Get permissions from me. The set of permissions for the item. Read-only. Nullable.
func (DriveRootPermissionClient) GetDriveRootPermissionsCount ¶
func (c DriveRootPermissionClient) GetDriveRootPermissionsCount(ctx context.Context, id beta.MeDriveId, options GetDriveRootPermissionsCountOperationOptions) (result GetDriveRootPermissionsCountOperationResponse, err error)
GetDriveRootPermissionsCount - Get the number of the resource
func (DriveRootPermissionClient) ListDriveRootPermissionGrants ¶
func (c DriveRootPermissionClient) ListDriveRootPermissionGrants(ctx context.Context, id beta.MeDriveIdRootPermissionId, input ListDriveRootPermissionGrantsRequest, options ListDriveRootPermissionGrantsOperationOptions) (result ListDriveRootPermissionGrantsOperationResponse, err error)
ListDriveRootPermissionGrants - Invoke action grant. Grant users access to a link represented by a permission.
func (DriveRootPermissionClient) ListDriveRootPermissionGrantsComplete ¶
func (c DriveRootPermissionClient) ListDriveRootPermissionGrantsComplete(ctx context.Context, id beta.MeDriveIdRootPermissionId, input ListDriveRootPermissionGrantsRequest, options ListDriveRootPermissionGrantsOperationOptions) (ListDriveRootPermissionGrantsCompleteResult, error)
ListDriveRootPermissionGrantsComplete retrieves all the results into a single object
func (DriveRootPermissionClient) ListDriveRootPermissionGrantsCompleteMatchingPredicate ¶
func (c DriveRootPermissionClient) ListDriveRootPermissionGrantsCompleteMatchingPredicate(ctx context.Context, id beta.MeDriveIdRootPermissionId, input ListDriveRootPermissionGrantsRequest, options ListDriveRootPermissionGrantsOperationOptions, predicate PermissionOperationPredicate) (result ListDriveRootPermissionGrantsCompleteResult, err error)
ListDriveRootPermissionGrantsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DriveRootPermissionClient) ListDriveRootPermissions ¶
func (c DriveRootPermissionClient) ListDriveRootPermissions(ctx context.Context, id beta.MeDriveId, options ListDriveRootPermissionsOperationOptions) (result ListDriveRootPermissionsOperationResponse, err error)
ListDriveRootPermissions - Get permissions from me. The set of permissions for the item. Read-only. Nullable.
func (DriveRootPermissionClient) ListDriveRootPermissionsComplete ¶
func (c DriveRootPermissionClient) ListDriveRootPermissionsComplete(ctx context.Context, id beta.MeDriveId, options ListDriveRootPermissionsOperationOptions) (ListDriveRootPermissionsCompleteResult, error)
ListDriveRootPermissionsComplete retrieves all the results into a single object
func (DriveRootPermissionClient) ListDriveRootPermissionsCompleteMatchingPredicate ¶
func (c DriveRootPermissionClient) ListDriveRootPermissionsCompleteMatchingPredicate(ctx context.Context, id beta.MeDriveId, options ListDriveRootPermissionsOperationOptions, predicate PermissionOperationPredicate) (result ListDriveRootPermissionsCompleteResult, err error)
ListDriveRootPermissionsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DriveRootPermissionClient) RevokeDriveRootPermissionGrants ¶
func (c DriveRootPermissionClient) RevokeDriveRootPermissionGrants(ctx context.Context, id beta.MeDriveIdRootPermissionId, input RevokeDriveRootPermissionGrantsRequest, options RevokeDriveRootPermissionGrantsOperationOptions) (result RevokeDriveRootPermissionGrantsOperationResponse, err error)
RevokeDriveRootPermissionGrants - Invoke action revokeGrants. Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link.
func (DriveRootPermissionClient) UpdateDriveRootPermission ¶
func (c DriveRootPermissionClient) UpdateDriveRootPermission(ctx context.Context, id beta.MeDriveIdRootPermissionId, input beta.Permission, options UpdateDriveRootPermissionOperationOptions) (result UpdateDriveRootPermissionOperationResponse, err error)
UpdateDriveRootPermission - Update the navigation property permissions in me
type GetDriveRootPermissionOperationOptions ¶
type GetDriveRootPermissionOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetDriveRootPermissionOperationOptions ¶
func DefaultGetDriveRootPermissionOperationOptions() GetDriveRootPermissionOperationOptions
func (GetDriveRootPermissionOperationOptions) ToHeaders ¶
func (o GetDriveRootPermissionOperationOptions) ToHeaders() *client.Headers
func (GetDriveRootPermissionOperationOptions) ToOData ¶
func (o GetDriveRootPermissionOperationOptions) ToOData() *odata.Query
func (GetDriveRootPermissionOperationOptions) ToQuery ¶
func (o GetDriveRootPermissionOperationOptions) ToQuery() *client.QueryParams
type GetDriveRootPermissionsCountOperationOptions ¶
type GetDriveRootPermissionsCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetDriveRootPermissionsCountOperationOptions ¶
func DefaultGetDriveRootPermissionsCountOperationOptions() GetDriveRootPermissionsCountOperationOptions
func (GetDriveRootPermissionsCountOperationOptions) ToHeaders ¶
func (o GetDriveRootPermissionsCountOperationOptions) ToHeaders() *client.Headers
func (GetDriveRootPermissionsCountOperationOptions) ToOData ¶
func (o GetDriveRootPermissionsCountOperationOptions) ToOData() *odata.Query
func (GetDriveRootPermissionsCountOperationOptions) ToQuery ¶
func (o GetDriveRootPermissionsCountOperationOptions) ToQuery() *client.QueryParams
type ListDriveRootPermissionGrantsCompleteResult ¶
type ListDriveRootPermissionGrantsCompleteResult struct { LatestHttpResponse *http.Response Items []beta.Permission }
type ListDriveRootPermissionGrantsCustomPager ¶
type ListDriveRootPermissionGrantsCustomPager struct {
NextLink *odata.Link `json:"@odata.nextLink"`
}
func (*ListDriveRootPermissionGrantsCustomPager) NextPageLink ¶
func (p *ListDriveRootPermissionGrantsCustomPager) NextPageLink() *odata.Link
type ListDriveRootPermissionGrantsOperationOptions ¶
type ListDriveRootPermissionGrantsOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Skip *int64 Top *int64 }
func DefaultListDriveRootPermissionGrantsOperationOptions ¶
func DefaultListDriveRootPermissionGrantsOperationOptions() ListDriveRootPermissionGrantsOperationOptions
func (ListDriveRootPermissionGrantsOperationOptions) ToHeaders ¶
func (o ListDriveRootPermissionGrantsOperationOptions) ToHeaders() *client.Headers
func (ListDriveRootPermissionGrantsOperationOptions) ToOData ¶
func (o ListDriveRootPermissionGrantsOperationOptions) ToOData() *odata.Query
func (ListDriveRootPermissionGrantsOperationOptions) ToQuery ¶
func (o ListDriveRootPermissionGrantsOperationOptions) ToQuery() *client.QueryParams
type ListDriveRootPermissionGrantsRequest ¶
type ListDriveRootPermissionGrantsRequest struct { Recipients *[]beta.DriveRecipient `json:"recipients,omitempty"` Roles *[]string `json:"roles,omitempty"` }
type ListDriveRootPermissionsCompleteResult ¶
type ListDriveRootPermissionsCompleteResult struct { LatestHttpResponse *http.Response Items []beta.Permission }
type ListDriveRootPermissionsCustomPager ¶
func (*ListDriveRootPermissionsCustomPager) NextPageLink ¶
func (p *ListDriveRootPermissionsCustomPager) NextPageLink() *odata.Link
type ListDriveRootPermissionsOperationOptions ¶
type ListDriveRootPermissionsOperationOptions 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 DefaultListDriveRootPermissionsOperationOptions ¶
func DefaultListDriveRootPermissionsOperationOptions() ListDriveRootPermissionsOperationOptions
func (ListDriveRootPermissionsOperationOptions) ToHeaders ¶
func (o ListDriveRootPermissionsOperationOptions) ToHeaders() *client.Headers
func (ListDriveRootPermissionsOperationOptions) ToOData ¶
func (o ListDriveRootPermissionsOperationOptions) ToOData() *odata.Query
func (ListDriveRootPermissionsOperationOptions) ToQuery ¶
func (o ListDriveRootPermissionsOperationOptions) ToQuery() *client.QueryParams
type PermissionOperationPredicate ¶
type PermissionOperationPredicate struct { }
func (PermissionOperationPredicate) Matches ¶
func (p PermissionOperationPredicate) Matches(input beta.Permission) bool
type RevokeDriveRootPermissionGrantsOperationOptions ¶
type RevokeDriveRootPermissionGrantsOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultRevokeDriveRootPermissionGrantsOperationOptions ¶
func DefaultRevokeDriveRootPermissionGrantsOperationOptions() RevokeDriveRootPermissionGrantsOperationOptions
func (RevokeDriveRootPermissionGrantsOperationOptions) ToHeaders ¶
func (o RevokeDriveRootPermissionGrantsOperationOptions) ToHeaders() *client.Headers
func (RevokeDriveRootPermissionGrantsOperationOptions) ToOData ¶
func (o RevokeDriveRootPermissionGrantsOperationOptions) ToOData() *odata.Query
func (RevokeDriveRootPermissionGrantsOperationOptions) ToQuery ¶
func (o RevokeDriveRootPermissionGrantsOperationOptions) ToQuery() *client.QueryParams
type RevokeDriveRootPermissionGrantsRequest ¶
type RevokeDriveRootPermissionGrantsRequest struct {
Grantees *[]beta.DriveRecipient `json:"grantees,omitempty"`
}
type UpdateDriveRootPermissionOperationOptions ¶
type UpdateDriveRootPermissionOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateDriveRootPermissionOperationOptions ¶
func DefaultUpdateDriveRootPermissionOperationOptions() UpdateDriveRootPermissionOperationOptions
func (UpdateDriveRootPermissionOperationOptions) ToHeaders ¶
func (o UpdateDriveRootPermissionOperationOptions) ToHeaders() *client.Headers
func (UpdateDriveRootPermissionOperationOptions) ToOData ¶
func (o UpdateDriveRootPermissionOperationOptions) ToOData() *odata.Query
func (UpdateDriveRootPermissionOperationOptions) ToQuery ¶
func (o UpdateDriveRootPermissionOperationOptions) ToQuery() *client.QueryParams
Source Files ¶
- client.go
- method_createdriverootpermission.go
- method_deletedriverootpermission.go
- method_getdriverootpermission.go
- method_getdriverootpermissionscount.go
- method_listdriverootpermissiongrants.go
- method_listdriverootpermissions.go
- method_revokedriverootpermissiongrants.go
- method_updatedriverootpermission.go
- model_listdriverootpermissiongrantsrequest.go
- model_revokedriverootpermissiongrantsrequest.go
- predicates.go
- version.go