Skip to content

Latest commit

 

History

History
141 lines (88 loc) · 3.82 KB

RoleManagementApi.md

File metadata and controls

141 lines (88 loc) · 3.82 KB

\RoleManagementApi

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

GetPermissionRoleDefinition

UnifiedRoleDefinition GetPermissionRoleDefinition(ctx, roleId).Execute()

Get unifiedRoleDefinition

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
roleId string key: id of roleDefinition

Other Parameters

Other parameters are passed through a pointer to a apiGetPermissionRoleDefinitionRequest struct via the builder pattern

Name Type Description Notes

Return type

UnifiedRoleDefinition

Authorization

openId, basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListPermissionRoleDefinitions

UnifiedRoleDefinition ListPermissionRoleDefinitions(ctx).Execute()

List roleDefinitions

Example

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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiListPermissionRoleDefinitionsRequest struct via the builder pattern

Return type

UnifiedRoleDefinition

Authorization

openId, basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]