mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 04:22:13 +08:00
Docs: Render map type fields in generated docs (#62022)
* Render map type in docs * Generate * Clenaup rendering properties * Minor updates * Update maps rendering
This commit is contained in:
@ -13,26 +13,19 @@ title: ServiceAccount kind
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Required | Description |
|
||||
|-----------------|--------------------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `avatarUrl` | string | **Yes** | AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front<br/>of the service account. |
|
||||
| `id` | integer | **Yes** | ID is the unique identifier of the service account in the database. |
|
||||
| `isDisabled` | boolean | **Yes** | IsDisabled indicates if the service account is disabled. |
|
||||
| `login` | string | **Yes** | Login of the service account. |
|
||||
| `name` | string | **Yes** | Name of the service account. |
|
||||
| `orgId` | integer | **Yes** | OrgId is the ID of an organisation the service account belongs to. |
|
||||
| `role` | string | **Yes** | OrgRole is a Grafana Organization Role which can be 'Viewer', 'Editor', 'Admin'. Possible values are: `Admin`, `Editor`, `Viewer`. |
|
||||
| `tokens` | integer | **Yes** | Tokens is the number of active tokens for the service account.<br/>Tokens are used to authenticate the service account against Grafana. |
|
||||
| `accessControl` | [object](#accesscontrol) | No | AccessControl metadata associated with a given resource. |
|
||||
| `created` | integer | No | Created indicates when the service account was created. |
|
||||
| `teams` | string[] | No | Teams is a list of teams the service account belongs to. |
|
||||
| `updated` | integer | No | Updated indicates when the service account was updated. |
|
||||
|
||||
## accessControl
|
||||
|
||||
AccessControl metadata associated with a given resource.
|
||||
|
||||
| Property | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| Property | Type | Required | Description |
|
||||
|-----------------|--------------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `avatarUrl` | string | **Yes** | AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front<br/>of the service account. |
|
||||
| `id` | integer | **Yes** | ID is the unique identifier of the service account in the database. |
|
||||
| `isDisabled` | boolean | **Yes** | IsDisabled indicates if the service account is disabled. |
|
||||
| `login` | string | **Yes** | Login of the service account. |
|
||||
| `name` | string | **Yes** | Name of the service account. |
|
||||
| `orgId` | integer | **Yes** | OrgId is the ID of an organisation the service account belongs to. |
|
||||
| `role` | string | **Yes** | OrgRole is a Grafana Organization Role which can be 'Viewer', 'Editor', 'Admin'. Possible values are: `Admin`, `Editor`, `Viewer`. |
|
||||
| `tokens` | integer | **Yes** | Tokens is the number of active tokens for the service account.<br/>Tokens are used to authenticate the service account against Grafana. |
|
||||
| `accessControl` | map[string]boolean | No | AccessControl metadata associated with a given resource. |
|
||||
| `created` | integer | No | Created indicates when the service account was created. |
|
||||
| `teams` | string[] | No | Teams is a list of teams the service account belongs to. |
|
||||
| `updated` | integer | No | Updated indicates when the service account was updated. |
|
||||
|
||||
|
||||
|
@ -13,23 +13,16 @@ title: Team kind
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Required | Description |
|
||||
|-----------------|--------------------------|----------|----------------------------------------------------------|
|
||||
| `created` | integer | **Yes** | Created indicates when the team was created. |
|
||||
| `memberCount` | integer | **Yes** | MemberCount is the number of the team members. |
|
||||
| `name` | string | **Yes** | Name of the team. |
|
||||
| `orgId` | integer | **Yes** | OrgId is the ID of an organisation the team belongs to. |
|
||||
| `permission` | integer | **Yes** | Possible values are: `0`, `1`, `2`, `4`. |
|
||||
| `updated` | integer | **Yes** | Updated indicates when the team was updated. |
|
||||
| `accessControl` | [object](#accesscontrol) | No | AccessControl metadata associated with a given resource. |
|
||||
| `avatarUrl` | string | No | AvatarUrl is the team's avatar URL. |
|
||||
| `email` | string | No | Email of the team. |
|
||||
|
||||
## accessControl
|
||||
|
||||
AccessControl metadata associated with a given resource.
|
||||
|
||||
| Property | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
| Property | Type | Required | Description |
|
||||
|-----------------|--------------------|----------|----------------------------------------------------------|
|
||||
| `created` | integer | **Yes** | Created indicates when the team was created. |
|
||||
| `memberCount` | integer | **Yes** | MemberCount is the number of the team members. |
|
||||
| `name` | string | **Yes** | Name of the team. |
|
||||
| `orgId` | integer | **Yes** | OrgId is the ID of an organisation the team belongs to. |
|
||||
| `permission` | integer | **Yes** | Possible values are: `0`, `1`, `2`, `4`. |
|
||||
| `updated` | integer | **Yes** | Updated indicates when the team was updated. |
|
||||
| `accessControl` | map[string]boolean | No | AccessControl metadata associated with a given resource. |
|
||||
| `avatarUrl` | string | No | AvatarUrl is the team's avatar URL. |
|
||||
| `email` | string | No | Email of the team. |
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user