All URIs are relative to https://ocis.ocis.rolling.owncloud.works/graph
Method | HTTP request | Description |
---|---|---|
GetPermissionRoleDefinition | Get /v1beta1/roleManagement/permissions/roleDefinitions/{role-id} | Get unifiedRoleDefinition |
ListPermissionRoleDefinitions | Get /v1beta1/roleManagement/permissions/roleDefinitions | List roleDefinitions |
UnifiedRoleDefinition GetPermissionRoleDefinition(ctx, roleId).Execute()
Get unifiedRoleDefinition
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/owncloud/libre-graph-api-go"
)
func main() {
roleId := "roleId_example" // string | key: id of roleDefinition
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RoleManagementApi.GetPermissionRoleDefinition(context.Background(), roleId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RoleManagementApi.GetPermissionRoleDefinition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPermissionRoleDefinition`: UnifiedRoleDefinition
fmt.Fprintf(os.Stdout, "Response from `RoleManagementApi.GetPermissionRoleDefinition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
roleId | string | key: id of roleDefinition |
Other parameters are passed through a pointer to a apiGetPermissionRoleDefinitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UnifiedRoleDefinition ListPermissionRoleDefinitions(ctx).Execute()
List roleDefinitions
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/owncloud/libre-graph-api-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RoleManagementApi.ListPermissionRoleDefinitions(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RoleManagementApi.ListPermissionRoleDefinitions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListPermissionRoleDefinitions`: UnifiedRoleDefinition
fmt.Fprintf(os.Stdout, "Response from `RoleManagementApi.ListPermissionRoleDefinitions`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListPermissionRoleDefinitionsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]