sitelistitempermission

package
v0.20240923.1151247 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

README

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

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

Client Initialization

client := sitelistitempermission.NewSiteListItemPermissionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteListItemPermissionClient.CreateSiteListItemPermission

ctx := context.TODO()
id := sitelistitempermission.NewGroupIdSiteIdListIdItemID("groupId", "siteId", "listId", "listItemId")

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


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

Example Usage: SiteListItemPermissionClient.DeleteSiteListItemPermission

ctx := context.TODO()
id := sitelistitempermission.NewGroupIdSiteIdListIdItemIdPermissionID("groupId", "siteId", "listId", "listItemId", "permissionId")

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

Example Usage: SiteListItemPermissionClient.GetSiteListItemPermission

ctx := context.TODO()
id := sitelistitempermission.NewGroupIdSiteIdListIdItemIdPermissionID("groupId", "siteId", "listId", "listItemId", "permissionId")

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

Example Usage: SiteListItemPermissionClient.GetSiteListItemPermissionsCount

ctx := context.TODO()
id := sitelistitempermission.NewGroupIdSiteIdListIdItemID("groupId", "siteId", "listId", "listItemId")

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

Example Usage: SiteListItemPermissionClient.ListSiteListItemPermissionGrants

ctx := context.TODO()
id := sitelistitempermission.NewGroupIdSiteIdListIdItemIdPermissionID("groupId", "siteId", "listId", "listItemId", "permissionId")

payload := sitelistitempermission.ListSiteListItemPermissionGrantsRequest{
	// ...
}


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

Example Usage: SiteListItemPermissionClient.ListSiteListItemPermissions

ctx := context.TODO()
id := sitelistitempermission.NewGroupIdSiteIdListIdItemID("groupId", "siteId", "listId", "listItemId")

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

Example Usage: SiteListItemPermissionClient.RevokeSiteListItemPermissionGrants

ctx := context.TODO()
id := sitelistitempermission.NewGroupIdSiteIdListIdItemIdPermissionID("groupId", "siteId", "listId", "listItemId", "permissionId")

payload := sitelistitempermission.RevokeSiteListItemPermissionGrantsRequest{
	// ...
}


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

Example Usage: SiteListItemPermissionClient.UpdateSiteListItemPermission

ctx := context.TODO()
id := sitelistitempermission.NewGroupIdSiteIdListIdItemIdPermissionID("groupId", "siteId", "listId", "listItemId", "permissionId")

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


read, err := client.UpdateSiteListItemPermission(ctx, id, payload, sitelistitempermission.DefaultUpdateSiteListItemPermissionOperationOptions())
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 CreateSiteListItemPermissionOperationOptions

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

func DefaultCreateSiteListItemPermissionOperationOptions

func DefaultCreateSiteListItemPermissionOperationOptions() CreateSiteListItemPermissionOperationOptions

func (CreateSiteListItemPermissionOperationOptions) ToHeaders

func (CreateSiteListItemPermissionOperationOptions) ToOData

func (CreateSiteListItemPermissionOperationOptions) ToQuery

type CreateSiteListItemPermissionOperationResponse

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

type DeleteSiteListItemPermissionOperationOptions

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

func DefaultDeleteSiteListItemPermissionOperationOptions

func DefaultDeleteSiteListItemPermissionOperationOptions() DeleteSiteListItemPermissionOperationOptions

func (DeleteSiteListItemPermissionOperationOptions) ToHeaders

func (DeleteSiteListItemPermissionOperationOptions) ToOData

func (DeleteSiteListItemPermissionOperationOptions) ToQuery

type DeleteSiteListItemPermissionOperationResponse

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

type GetSiteListItemPermissionOperationOptions

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

func DefaultGetSiteListItemPermissionOperationOptions

func DefaultGetSiteListItemPermissionOperationOptions() GetSiteListItemPermissionOperationOptions

func (GetSiteListItemPermissionOperationOptions) ToHeaders

func (GetSiteListItemPermissionOperationOptions) ToOData

func (GetSiteListItemPermissionOperationOptions) ToQuery

type GetSiteListItemPermissionOperationResponse

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

type GetSiteListItemPermissionsCountOperationOptions

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

func DefaultGetSiteListItemPermissionsCountOperationOptions

func DefaultGetSiteListItemPermissionsCountOperationOptions() GetSiteListItemPermissionsCountOperationOptions

func (GetSiteListItemPermissionsCountOperationOptions) ToHeaders

func (GetSiteListItemPermissionsCountOperationOptions) ToOData

func (GetSiteListItemPermissionsCountOperationOptions) ToQuery

type GetSiteListItemPermissionsCountOperationResponse

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

type ListSiteListItemPermissionGrantsCompleteResult

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

type ListSiteListItemPermissionGrantsCustomPager

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

type ListSiteListItemPermissionGrantsOperationOptions

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

func DefaultListSiteListItemPermissionGrantsOperationOptions

func DefaultListSiteListItemPermissionGrantsOperationOptions() ListSiteListItemPermissionGrantsOperationOptions

func (ListSiteListItemPermissionGrantsOperationOptions) ToHeaders

func (ListSiteListItemPermissionGrantsOperationOptions) ToOData

func (ListSiteListItemPermissionGrantsOperationOptions) ToQuery

type ListSiteListItemPermissionGrantsOperationResponse

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

type ListSiteListItemPermissionGrantsRequest

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

type ListSiteListItemPermissionsCompleteResult

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

type ListSiteListItemPermissionsCustomPager

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

type ListSiteListItemPermissionsOperationOptions

type ListSiteListItemPermissionsOperationOptions 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 DefaultListSiteListItemPermissionsOperationOptions

func DefaultListSiteListItemPermissionsOperationOptions() ListSiteListItemPermissionsOperationOptions

func (ListSiteListItemPermissionsOperationOptions) ToHeaders

func (ListSiteListItemPermissionsOperationOptions) ToOData

func (ListSiteListItemPermissionsOperationOptions) ToQuery

type ListSiteListItemPermissionsOperationResponse

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

type PermissionOperationPredicate

type PermissionOperationPredicate struct {
}

func (PermissionOperationPredicate) Matches

type RevokeSiteListItemPermissionGrantsOperationOptions

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

func DefaultRevokeSiteListItemPermissionGrantsOperationOptions

func DefaultRevokeSiteListItemPermissionGrantsOperationOptions() RevokeSiteListItemPermissionGrantsOperationOptions

func (RevokeSiteListItemPermissionGrantsOperationOptions) ToHeaders

func (RevokeSiteListItemPermissionGrantsOperationOptions) ToOData

func (RevokeSiteListItemPermissionGrantsOperationOptions) ToQuery

type RevokeSiteListItemPermissionGrantsOperationResponse

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

type RevokeSiteListItemPermissionGrantsRequest

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

type SiteListItemPermissionClient

type SiteListItemPermissionClient struct {
	Client *msgraph.Client
}

func NewSiteListItemPermissionClientWithBaseURI

func NewSiteListItemPermissionClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteListItemPermissionClient, error)

func (SiteListItemPermissionClient) CreateSiteListItemPermission

CreateSiteListItemPermission - Create new navigation property to permissions for groups

func (SiteListItemPermissionClient) DeleteSiteListItemPermission

DeleteSiteListItemPermission - Delete navigation property permissions for groups

func (SiteListItemPermissionClient) GetSiteListItemPermission

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

func (SiteListItemPermissionClient) GetSiteListItemPermissionsCount

GetSiteListItemPermissionsCount - Get the number of the resource

func (SiteListItemPermissionClient) ListSiteListItemPermissionGrants

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

func (SiteListItemPermissionClient) ListSiteListItemPermissionGrantsComplete

ListSiteListItemPermissionGrantsComplete retrieves all the results into a single object

func (SiteListItemPermissionClient) ListSiteListItemPermissionGrantsCompleteMatchingPredicate

ListSiteListItemPermissionGrantsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteListItemPermissionClient) ListSiteListItemPermissions

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

func (SiteListItemPermissionClient) ListSiteListItemPermissionsComplete

ListSiteListItemPermissionsComplete retrieves all the results into a single object

func (SiteListItemPermissionClient) ListSiteListItemPermissionsCompleteMatchingPredicate

ListSiteListItemPermissionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteListItemPermissionClient) RevokeSiteListItemPermissionGrants

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

func (SiteListItemPermissionClient) UpdateSiteListItemPermission

UpdateSiteListItemPermission - Update the navigation property permissions in groups

type UpdateSiteListItemPermissionOperationOptions

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

func DefaultUpdateSiteListItemPermissionOperationOptions

func DefaultUpdateSiteListItemPermissionOperationOptions() UpdateSiteListItemPermissionOperationOptions

func (UpdateSiteListItemPermissionOperationOptions) ToHeaders

func (UpdateSiteListItemPermissionOperationOptions) ToOData

func (UpdateSiteListItemPermissionOperationOptions) ToQuery

type UpdateSiteListItemPermissionOperationResponse

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