Skip to content

Commit 219b77c

Browse files
authored
Merge branch 'main' into plc_attach_domain_cli
2 parents c621407 + 876784d commit 219b77c

File tree

79 files changed

+14548
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+14548
-13
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ generate-v1beta1-serverless-client: install-openapi-generator ## Generate server
5656
@echo "==> Generating serverless cdc client"
5757
rm -rf pkg/tidbcloud/v1beta1/serverless/cdc
5858
cd tools/openapi-generator && npx openapi-generator-cli generate --inline-schema-options RESOLVE_INLINE_ENUMS=true --additional-properties=withGoMod=false,enumClassPrefix=true,disallowAdditionalPropertiesIfNotPresent=false --global-property=apiTests=false,apiDocs=false,modelDocs=false,modelTests=false -i ../../pkg/tidbcloud/v1beta1/serverless/cdc.swagger.json -g go -o ../../pkg/tidbcloud/v1beta1/serverless/cdc --package-name cdc -c go/config.yaml
59+
@echo "==> Generating serverless cdc client"
60+
rm -rf pkg/tidbcloud/v1beta1/serverless/migration
61+
cd tools/openapi-generator && npx openapi-generator-cli generate --inline-schema-options RESOLVE_INLINE_ENUMS=true --additional-properties=withGoMod=false,enumClassPrefix=true,disallowAdditionalPropertiesIfNotPresent=false --global-property=apiTests=false,apiDocs=false,modelDocs=false,modelTests=false -i ../../pkg/tidbcloud/v1beta1/serverless/dm.swagger.json -g go -o ../../pkg/tidbcloud/v1beta1/serverless/migration --package-name migration -c go/config.yaml
5962
cd pkg && go fmt ./tidbcloud/v1beta1/serverless/... && goimports -w .
6063
@echo "==> Generating serverless privatelink client"
6164
rm -rf pkg/tidbcloud/v1beta1/serverless/privatelink

docs/generate_doc/ticloud_serverless.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Manage TiDB Cloud Serverless clusters
3030
* [ticloud serverless export](ticloud_serverless_export.md) - Manage TiDB Cloud Serverless exports
3131
* [ticloud serverless import](ticloud_serverless_import.md) - Manage TiDB Cloud Serverless data imports
3232
* [ticloud serverless list](ticloud_serverless_list.md) - List all TiDB Cloud Serverless clusters
33+
* [ticloud serverless migration](ticloud_serverless_migration.md) - Manage TiDB Cloud Serverless migrations
3334
* [ticloud serverless private-link-connection](ticloud_serverless_private-link-connection.md) - Manage private link connections for dataflow
3435
* [ticloud serverless region](ticloud_serverless_region.md) - List all available regions for TiDB Cloud Serverless
3536
* [ticloud serverless shell](ticloud_serverless_shell.md) - Connect to a TiDB Cloud Serverless cluster
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
## ticloud serverless migration
2+
3+
Manage TiDB Cloud Serverless migrations
4+
5+
### Options
6+
7+
```
8+
-h, --help help for migration
9+
```
10+
11+
### Options inherited from parent commands
12+
13+
```
14+
-D, --debug Enable debug mode
15+
--no-color Disable color output
16+
-P, --profile string Profile to use from your configuration file
17+
```
18+
19+
### SEE ALSO
20+
21+
* [ticloud serverless](ticloud_serverless.md) - Manage TiDB Cloud Serverless clusters
22+
* [ticloud serverless migration create](ticloud_serverless_migration_create.md) - Create a migration
23+
* [ticloud serverless migration delete](ticloud_serverless_migration_delete.md) - Delete a migration
24+
* [ticloud serverless migration describe](ticloud_serverless_migration_describe.md) - Describe a migration
25+
* [ticloud serverless migration list](ticloud_serverless_migration_list.md) - List migrations
26+
* [ticloud serverless migration pause](ticloud_serverless_migration_pause.md) - Pause a migration
27+
* [ticloud serverless migration resume](ticloud_serverless_migration_resume.md) - Resume a paused migration
28+
* [ticloud serverless migration template](ticloud_serverless_migration_template.md) - Show migration JSON templates
29+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## ticloud serverless migration create
2+
3+
Create a migration
4+
5+
```
6+
ticloud serverless migration create [flags]
7+
```
8+
9+
### Examples
10+
11+
```
12+
Create a migration:
13+
$ ticloud serverless migration create -c <cluster-id> --display-name <name> --config-file <file-path> --dry-run
14+
$ ticloud serverless migration create -c <cluster-id> --display-name <name> --config-file <file-path>
15+
16+
```
17+
18+
### Options
19+
20+
```
21+
-c, --cluster-id string The ID of the target cluster.
22+
--config-file string Path to a migration config JSON file. Use "ticloud serverless migration template --mode <mode>" to print templates.
23+
-n, --display-name string Display name for the migration.
24+
--dry-run Run a migration precheck (dry run) with the provided inputs without creating a migration.
25+
-h, --help help for create
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
-D, --debug Enable debug mode
32+
--no-color Disable color output
33+
-P, --profile string Profile to use from your configuration file
34+
```
35+
36+
### SEE ALSO
37+
38+
* [ticloud serverless migration](ticloud_serverless_migration.md) - Manage TiDB Cloud Serverless migrations
39+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## ticloud serverless migration delete
2+
3+
Delete a migration
4+
5+
```
6+
ticloud serverless migration delete [flags]
7+
```
8+
9+
### Examples
10+
11+
```
12+
Delete a migration in interactive mode:
13+
$ ticloud serverless migration delete
14+
15+
Delete a migration in non-interactive mode:
16+
$ ticloud serverless migration delete -c <cluster-id> --migration-id <migration-id>
17+
```
18+
19+
### Options
20+
21+
```
22+
-c, --cluster-id string Cluster ID that owns the migration.
23+
--force Delete without confirmation.
24+
-h, --help help for delete
25+
-m, --migration-id string ID of the migration to delete.
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
-D, --debug Enable debug mode
32+
--no-color Disable color output
33+
-P, --profile string Profile to use from your configuration file
34+
```
35+
36+
### SEE ALSO
37+
38+
* [ticloud serverless migration](ticloud_serverless_migration.md) - Manage TiDB Cloud Serverless migrations
39+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ticloud serverless migration describe
2+
3+
Describe a migration
4+
5+
```
6+
ticloud serverless migration describe [flags]
7+
```
8+
9+
### Examples
10+
11+
```
12+
Describe a migration in interactive mode:
13+
$ ticloud serverless migration describe
14+
15+
Describe a migration in non-interactive mode:
16+
$ ticloud serverless migration describe -c <cluster-id> --migration-id <migration-id>
17+
```
18+
19+
### Options
20+
21+
```
22+
-c, --cluster-id string Cluster ID that owns the migration.
23+
-h, --help help for describe
24+
-m, --migration-id string ID of the migration to describe.
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-D, --debug Enable debug mode
31+
--no-color Disable color output
32+
-P, --profile string Profile to use from your configuration file
33+
```
34+
35+
### SEE ALSO
36+
37+
* [ticloud serverless migration](ticloud_serverless_migration.md) - Manage TiDB Cloud Serverless migrations
38+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ticloud serverless migration list
2+
3+
List migrations
4+
5+
```
6+
ticloud serverless migration list [flags]
7+
```
8+
9+
### Examples
10+
11+
```
12+
List migrations in interactive mode:
13+
$ ticloud serverless migration list
14+
15+
List migrations in non-interactive mode with JSON output:
16+
$ ticloud serverless migration list -c <cluster-id> -o json
17+
```
18+
19+
### Options
20+
21+
```
22+
-c, --cluster-id string The cluster ID of the migration tasks to list.
23+
-h, --help help for list
24+
-o, --output string Output format, one of ["human" "json"]. For the complete result, please use json format. (default "human")
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-D, --debug Enable debug mode
31+
--no-color Disable color output
32+
-P, --profile string Profile to use from your configuration file
33+
```
34+
35+
### SEE ALSO
36+
37+
* [ticloud serverless migration](ticloud_serverless_migration.md) - Manage TiDB Cloud Serverless migrations
38+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ticloud serverless migration pause
2+
3+
Pause a migration
4+
5+
```
6+
ticloud serverless migration pause [flags]
7+
```
8+
9+
### Examples
10+
11+
```
12+
Pause a migration in interactive mode:
13+
$ ticloud serverless migration pause
14+
15+
Pause a migration in non-interactive mode:
16+
$ ticloud serverless migration pause -c <cluster-id> --migration-id <migration-id>
17+
```
18+
19+
### Options
20+
21+
```
22+
-c, --cluster-id string Cluster ID that owns the migration.
23+
-h, --help help for pause
24+
-m, --migration-id string ID of the migration to pause.
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-D, --debug Enable debug mode
31+
--no-color Disable color output
32+
-P, --profile string Profile to use from your configuration file
33+
```
34+
35+
### SEE ALSO
36+
37+
* [ticloud serverless migration](ticloud_serverless_migration.md) - Manage TiDB Cloud Serverless migrations
38+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ticloud serverless migration resume
2+
3+
Resume a paused migration
4+
5+
```
6+
ticloud serverless migration resume [flags]
7+
```
8+
9+
### Examples
10+
11+
```
12+
Resume a migration in interactive mode:
13+
$ ticloud serverless migration resume
14+
15+
Resume a migration in non-interactive mode:
16+
$ ticloud serverless migration resume -c <cluster-id> --migration-id <migration-id>
17+
```
18+
19+
### Options
20+
21+
```
22+
-c, --cluster-id string Cluster ID that owns the migration.
23+
-h, --help help for resume
24+
-m, --migration-id string ID of the migration to resume.
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-D, --debug Enable debug mode
31+
--no-color Disable color output
32+
-P, --profile string Profile to use from your configuration file
33+
```
34+
35+
### SEE ALSO
36+
37+
* [ticloud serverless migration](ticloud_serverless_migration.md) - Manage TiDB Cloud Serverless migrations
38+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## ticloud serverless migration template
2+
3+
Show migration JSON templates
4+
5+
```
6+
ticloud serverless migration template [flags]
7+
```
8+
9+
### Examples
10+
11+
```
12+
Show the ALL mode migration template:
13+
$ ticloud serverless migration template --mode all
14+
15+
Show the INCREMENTAL migration template:
16+
$ ticloud serverless migration template --mode incremental
17+
```
18+
19+
### Options
20+
21+
```
22+
-h, --help help for template
23+
--mode string Migration mode template to show, one of [all, incremental].
24+
```
25+
26+
### Options inherited from parent commands
27+
28+
```
29+
-D, --debug Enable debug mode
30+
--no-color Disable color output
31+
-P, --profile string Profile to use from your configuration file
32+
```
33+
34+
### SEE ALSO
35+
36+
* [ticloud serverless migration](ticloud_serverless_migration.md) - Manage TiDB Cloud Serverless migrations
37+

0 commit comments

Comments
 (0)