mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 06:11:51 +08:00
CloudMigrations: document and re-generate api for syncing (#94063)
* CloudMigrations: document frontend open-api generator steps * CloudMigrations: re-run api generation
This commit is contained in:
@ -313,6 +313,11 @@ type GetSnapshotListParams struct {
|
|||||||
// Session UID of a session
|
// Session UID of a session
|
||||||
// in: path
|
// in: path
|
||||||
UID string `json:"uid"`
|
UID string `json:"uid"`
|
||||||
|
|
||||||
|
// Sort with value latest to return results sorted in descending order.
|
||||||
|
// in:query
|
||||||
|
// required:false
|
||||||
|
Sort string `json:"sort"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// swagger:response snapshotListResponse
|
// swagger:response snapshotListResponse
|
||||||
|
@ -2600,6 +2600,12 @@
|
|||||||
"name": "uid",
|
"name": "uid",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"description": "Sort with value latest to return results sorted in descending order.",
|
||||||
|
"name": "sort",
|
||||||
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
6
public/app/features/migrate-to-cloud/api/README.md
Normal file
6
public/app/features/migrate-to-cloud/api/README.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
## Migrate to Cloud API
|
||||||
|
|
||||||
|
The [`endpoints.gen.ts`](./endpoints.gen.ts) file is machine generated. In order to update it, follow these steps:
|
||||||
|
|
||||||
|
- Run: `make swagger-clean && make openapi3-gen`
|
||||||
|
- Run: `yarn generate-apis`
|
@ -112,10 +112,10 @@ export type GetShapshotListApiArg = {
|
|||||||
page?: number;
|
page?: number;
|
||||||
/** Max limit for results returned. */
|
/** Max limit for results returned. */
|
||||||
limit?: number;
|
limit?: number;
|
||||||
/** Sort with value latest to return results sorted in descending order */
|
|
||||||
sort?: string;
|
|
||||||
/** Session UID of a session */
|
/** Session UID of a session */
|
||||||
uid: string;
|
uid: string;
|
||||||
|
/** Sort with value latest to return results sorted in descending order. */
|
||||||
|
sort?: string;
|
||||||
};
|
};
|
||||||
export type GetCloudMigrationTokenApiResponse = /** status 200 (empty) */ GetAccessTokenResponseDto;
|
export type GetCloudMigrationTokenApiResponse = /** status 200 (empty) */ GetAccessTokenResponseDto;
|
||||||
export type GetCloudMigrationTokenApiArg = void;
|
export type GetCloudMigrationTokenApiArg = void;
|
||||||
@ -157,6 +157,7 @@ export type CreateSnapshotResponseDto = {
|
|||||||
};
|
};
|
||||||
export type MigrateDataResponseItemDto = {
|
export type MigrateDataResponseItemDto = {
|
||||||
message?: string;
|
message?: string;
|
||||||
|
name?: string;
|
||||||
refId: string;
|
refId: string;
|
||||||
status: 'OK' | 'WARNING' | 'ERROR' | 'PENDING' | 'UNKNOWN';
|
status: 'OK' | 'WARNING' | 'ERROR' | 'PENDING' | 'UNKNOWN';
|
||||||
type: 'DASHBOARD' | 'DATASOURCE' | 'FOLDER' | 'LIBRARY_ELEMENT';
|
type: 'DASHBOARD' | 'DATASOURCE' | 'FOLDER' | 'LIBRARY_ELEMENT';
|
||||||
|
@ -15802,6 +15802,14 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Sort with value latest to return results sorted in descending order.",
|
||||||
|
"in": "query",
|
||||||
|
"name": "sort",
|
||||||
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
Reference in New Issue
Block a user