diff --git a/README.md b/README.md
index 542b47381..2b4048e12 100644
--- a/README.md
+++ b/README.md
@@ -68,34 +68,34 @@ Help is available for any command by specifying the special flag `--help` (or si
Below you can find a list of the STACKIT services already available in the CLI (along with their respective command names) and the ones that are currently planned to be integrated.
-| Service | CLI Commands | Status |
-|------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------|
-| Application Load Balancer | `beta alb` | :white_check_mark: (beta) |
-| Authorization | `project`, `organization` | :white_check_mark: |
-| DNS | `dns` | :white_check_mark: |
-| Edge Cloud | `beta edge-cloud` | :white_check_mark: (beta) |
-| Git | `git` | :white_check_mark: |
-| Infrastructure as a Service (IaaS) | `affinity-group`
`image`
`key-pair`
`network`
`network-area`
`network-interface`
`public-ip`
`quota`
`security-group`
`server`
`volume` | :white_check_mark: |
-| Intake | `beta intake` | :white_check_mark: (beta) |
-| Key Management Service (KMS) | `beta kms` | :white_check_mark: (beta) |
-| Kubernetes Engine (SKE) | `ske` | :white_check_mark: |
-| Load Balancer | `load-balancer` | :white_check_mark: |
-| LogMe | `logme` | :white_check_mark: |
-| MariaDB | `mariadb` | :white_check_mark: |
-| MongoDB Flex | `mongodbflex` | :white_check_mark: |
-| Observability | `observability` | :white_check_mark: |
-| Object Storage | `object-storage` | :white_check_mark: |
-| OpenSearch | `opensearch` | :white_check_mark: |
-| PostgreSQL Flex | `postgresflex` | :white_check_mark: |
-| RabbitMQ | `rabbitmq` | :white_check_mark: |
-| Redis | `redis` | :white_check_mark: |
-| Resource Manager | `project` | :white_check_mark: |
-| Secrets Manager | `secrets-manager` | :white_check_mark: |
-| Server Backup Management | `server backup` | :white_check_mark: |
-| Server Command (Run Command) | `server command` | :white_check_mark: |
-| Service Account | `service-account` | :white_check_mark: |
-| SQLServer Flex | `beta sqlserverflex` | :white_check_mark: (beta) |
-| File Storage (SFS) | `beta sfs` | :white_check_mark: (beta) |
+| Service | CLI Commands | Status |
+|------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------|
+| Application Load Balancer | `beta alb` | :white_check_mark: (beta) |
+| Authorization | `project`, `organization` | :white_check_mark: |
+| DNS | `dns` | :white_check_mark: |
+| Edge Cloud | `beta edge-cloud` | :white_check_mark: (beta) |
+| Git | `git` | :white_check_mark: |
+| Infrastructure as a Service (IaaS) | `affinity-group`
`image`
`key-pair`
`network`
`network-area`
`network-interface`
`public-ip`
`quota`
`security-group`
`server`
`volume` | :white_check_mark: |
+| Intake | `beta intake` | :white_check_mark: (beta) |
+| Key Management Service (KMS) | `beta kms` | :white_check_mark: (beta) |
+| Kubernetes Engine (SKE) | `ske` | :white_check_mark: |
+| Load Balancer | `load-balancer` | :white_check_mark: |
+| LogMe | `logme` | :white_check_mark: |
+| MariaDB | `mariadb` | :white_check_mark: |
+| MongoDB Flex | `mongodbflex` | :white_check_mark: |
+| Observability | `observability` | :white_check_mark: |
+| Object Storage | `object-storage` | :white_check_mark: |
+| OpenSearch | `opensearch` | :white_check_mark: |
+| PostgreSQL Flex | `postgresflex` | :white_check_mark: |
+| RabbitMQ | `rabbitmq` | :white_check_mark: |
+| Redis | `redis` | :white_check_mark: |
+| Resource Manager | `project` | :white_check_mark: |
+| Secrets Manager | `secrets-manager` | :white_check_mark: |
+| Server Backup Management | `server backup` | :white_check_mark: |
+| Server Command (Run Command) | `server command` | :white_check_mark: |
+| Service Account | `service-account` | :white_check_mark: |
+| SQLServer Flex | `sqlserverflex` | :white_check_mark: |
+| File Storage (SFS) | `beta sfs` | :white_check_mark: (beta) |
## Authentication
diff --git a/docs/stackit.md b/docs/stackit.md
index e00b8b8ac..ff6fb11f5 100644
--- a/docs/stackit.md
+++ b/docs/stackit.md
@@ -59,5 +59,6 @@ stackit [flags]
* [stackit server](./stackit_server.md) - Provides functionality for servers
* [stackit service-account](./stackit_service-account.md) - Provides functionality for service accounts
* [stackit ske](./stackit_ske.md) - Provides functionality for SKE
+* [stackit sqlserverflex](./stackit_sqlserverflex.md) - Provides functionality for SQLServer Flex
* [stackit volume](./stackit_volume.md) - Provides functionality for volumes
diff --git a/docs/stackit_beta.md b/docs/stackit_beta.md
index cf35a0536..697e72855 100644
--- a/docs/stackit_beta.md
+++ b/docs/stackit_beta.md
@@ -47,6 +47,5 @@ stackit beta [flags]
* [stackit beta edge-cloud](./stackit_beta_edge-cloud.md) - Provides functionality for Edge Cloud services.
* [stackit beta intake](./stackit_beta_intake.md) - Provides functionality for intake
* [stackit beta sfs](./stackit_beta_sfs.md) - Provides functionality for SFS (STACKIT File Storage)
-* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
* [stackit beta vpn](./stackit_beta_vpn.md) - Provides functionality for VPN
diff --git a/docs/stackit_beta_sqlserverflex.md b/docs/stackit_beta_sqlserverflex.md
deleted file mode 100644
index d25971ba7..000000000
--- a/docs/stackit_beta_sqlserverflex.md
+++ /dev/null
@@ -1,38 +0,0 @@
-## stackit beta sqlserverflex
-
-Provides functionality for SQLServer Flex
-
-### Synopsis
-
-Provides functionality for SQLServer Flex.
-
-```
-stackit beta sqlserverflex [flags]
-```
-
-### Options
-
-```
- -h, --help Help for "stackit beta sqlserverflex"
-```
-
-### Options inherited from parent commands
-
-```
- -y, --assume-yes If set, skips all confirmation prompts
- --async If set, runs the command asynchronously
- -o, --output-format string Output format, (one of: [json, pretty, none, yaml])
- -p, --project-id string Project ID
- --region string Target region for region-specific requests
- --verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
-```
-
-### SEE ALSO
-
-* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
-* [stackit beta sqlserverflex database](./stackit_beta_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
-* [stackit beta sqlserverflex flavor](./stackit_beta_sqlserverflex_flavor.md) - Provides functionality for SQLServer Flex flavors
-* [stackit beta sqlserverflex instance](./stackit_beta_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
-* [stackit beta sqlserverflex user](./stackit_beta_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
-* [stackit beta sqlserverflex version](./stackit_beta_sqlserverflex_version.md) - Provides functionality for SQLServer Flex versions
-
diff --git a/docs/stackit_beta_sqlserverflex_database.md b/docs/stackit_beta_sqlserverflex_database.md
deleted file mode 100644
index a0cd73855..000000000
--- a/docs/stackit_beta_sqlserverflex_database.md
+++ /dev/null
@@ -1,37 +0,0 @@
-## stackit beta sqlserverflex database
-
-Provides functionality for SQLServer Flex databases
-
-### Synopsis
-
-Provides functionality for SQLServer Flex databases.
-
-```
-stackit beta sqlserverflex database [flags]
-```
-
-### Options
-
-```
- -h, --help Help for "stackit beta sqlserverflex database"
-```
-
-### Options inherited from parent commands
-
-```
- -y, --assume-yes If set, skips all confirmation prompts
- --async If set, runs the command asynchronously
- -o, --output-format string Output format, (one of: [json, pretty, none, yaml])
- -p, --project-id string Project ID
- --region string Target region for region-specific requests
- --verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
-```
-
-### SEE ALSO
-
-* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
-* [stackit beta sqlserverflex database create](./stackit_beta_sqlserverflex_database_create.md) - Creates a SQLServer Flex database
-* [stackit beta sqlserverflex database delete](./stackit_beta_sqlserverflex_database_delete.md) - Deletes a SQLServer Flex database
-* [stackit beta sqlserverflex database describe](./stackit_beta_sqlserverflex_database_describe.md) - Shows details of an SQLServer Flex database
-* [stackit beta sqlserverflex database list](./stackit_beta_sqlserverflex_database_list.md) - Lists all SQLServer Flex databases
-
diff --git a/docs/stackit_beta_sqlserverflex_instance.md b/docs/stackit_beta_sqlserverflex_instance.md
deleted file mode 100644
index 45a99559e..000000000
--- a/docs/stackit_beta_sqlserverflex_instance.md
+++ /dev/null
@@ -1,41 +0,0 @@
-## stackit beta sqlserverflex instance
-
-Provides functionality for SQLServer Flex instances
-
-### Synopsis
-
-Provides functionality for SQLServer Flex instances.
-
-```
-stackit beta sqlserverflex instance [flags]
-```
-
-### Options
-
-```
- -h, --help Help for "stackit beta sqlserverflex instance"
-```
-
-### Options inherited from parent commands
-
-```
- -y, --assume-yes If set, skips all confirmation prompts
- --async If set, runs the command asynchronously
- -o, --output-format string Output format, (one of: [json, pretty, none, yaml])
- -p, --project-id string Project ID
- --region string Target region for region-specific requests
- --verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
-```
-
-### SEE ALSO
-
-* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
-* [stackit beta sqlserverflex instance create](./stackit_beta_sqlserverflex_instance_create.md) - Creates a SQLServer Flex instance
-* [stackit beta sqlserverflex instance db-collation](./stackit_beta_sqlserverflex_instance_db-collation.md) - Provides functionality for SQLServer Flex database collations
-* [stackit beta sqlserverflex instance db-compatibility](./stackit_beta_sqlserverflex_instance_db-compatibility.md) - Provides functionality for SQLServer Flex database compatibilities
-* [stackit beta sqlserverflex instance delete](./stackit_beta_sqlserverflex_instance_delete.md) - Deletes a SQLServer Flex instance
-* [stackit beta sqlserverflex instance describe](./stackit_beta_sqlserverflex_instance_describe.md) - Shows details of a SQLServer Flex instance
-* [stackit beta sqlserverflex instance list](./stackit_beta_sqlserverflex_instance_list.md) - Lists all SQLServer Flex instances
-* [stackit beta sqlserverflex instance update](./stackit_beta_sqlserverflex_instance_update.md) - Updates a SQLServer Flex instance
-* [stackit beta sqlserverflex instance user-role](./stackit_beta_sqlserverflex_instance_user-role.md) - Provides functionality for SQLServer Flex user roles
-
diff --git a/docs/stackit_beta_sqlserverflex_user.md b/docs/stackit_beta_sqlserverflex_user.md
deleted file mode 100644
index d0c71e9d7..000000000
--- a/docs/stackit_beta_sqlserverflex_user.md
+++ /dev/null
@@ -1,38 +0,0 @@
-## stackit beta sqlserverflex user
-
-Provides functionality for SQLServer Flex users
-
-### Synopsis
-
-Provides functionality for SQLServer Flex users.
-
-```
-stackit beta sqlserverflex user [flags]
-```
-
-### Options
-
-```
- -h, --help Help for "stackit beta sqlserverflex user"
-```
-
-### Options inherited from parent commands
-
-```
- -y, --assume-yes If set, skips all confirmation prompts
- --async If set, runs the command asynchronously
- -o, --output-format string Output format, (one of: [json, pretty, none, yaml])
- -p, --project-id string Project ID
- --region string Target region for region-specific requests
- --verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
-```
-
-### SEE ALSO
-
-* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
-* [stackit beta sqlserverflex user create](./stackit_beta_sqlserverflex_user_create.md) - Creates a SQLServer Flex user
-* [stackit beta sqlserverflex user delete](./stackit_beta_sqlserverflex_user_delete.md) - Deletes a SQLServer Flex user
-* [stackit beta sqlserverflex user describe](./stackit_beta_sqlserverflex_user_describe.md) - Shows details of a SQLServer Flex user
-* [stackit beta sqlserverflex user list](./stackit_beta_sqlserverflex_user_list.md) - Lists all SQLServer Flex users of an instance
-* [stackit beta sqlserverflex user reset-password](./stackit_beta_sqlserverflex_user_reset-password.md) - Resets the password of a SQLServer Flex user
-
diff --git a/docs/stackit_sqlserverflex.md b/docs/stackit_sqlserverflex.md
new file mode 100644
index 000000000..d410d0614
--- /dev/null
+++ b/docs/stackit_sqlserverflex.md
@@ -0,0 +1,38 @@
+## stackit sqlserverflex
+
+Provides functionality for SQLServer Flex
+
+### Synopsis
+
+Provides functionality for SQLServer Flex.
+
+```
+stackit sqlserverflex [flags]
+```
+
+### Options
+
+```
+ -h, --help Help for "stackit sqlserverflex"
+```
+
+### Options inherited from parent commands
+
+```
+ -y, --assume-yes If set, skips all confirmation prompts
+ --async If set, runs the command asynchronously
+ -o, --output-format string Output format, (one of: [json, pretty, none, yaml])
+ -p, --project-id string Project ID
+ --region string Target region for region-specific requests
+ --verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
+```
+
+### SEE ALSO
+
+* [stackit](./stackit.md) - Manage STACKIT resources using the command line
+* [stackit sqlserverflex database](./stackit_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
+* [stackit sqlserverflex flavor](./stackit_sqlserverflex_flavor.md) - Provides functionality for SQLServer Flex flavors
+* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
+* [stackit sqlserverflex user](./stackit_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
+* [stackit sqlserverflex version](./stackit_sqlserverflex_version.md) - Provides functionality for SQLServer Flex versions
+
diff --git a/docs/stackit_sqlserverflex_database.md b/docs/stackit_sqlserverflex_database.md
new file mode 100644
index 000000000..3a0fd1913
--- /dev/null
+++ b/docs/stackit_sqlserverflex_database.md
@@ -0,0 +1,37 @@
+## stackit sqlserverflex database
+
+Provides functionality for SQLServer Flex databases
+
+### Synopsis
+
+Provides functionality for SQLServer Flex databases.
+
+```
+stackit sqlserverflex database [flags]
+```
+
+### Options
+
+```
+ -h, --help Help for "stackit sqlserverflex database"
+```
+
+### Options inherited from parent commands
+
+```
+ -y, --assume-yes If set, skips all confirmation prompts
+ --async If set, runs the command asynchronously
+ -o, --output-format string Output format, (one of: [json, pretty, none, yaml])
+ -p, --project-id string Project ID
+ --region string Target region for region-specific requests
+ --verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
+```
+
+### SEE ALSO
+
+* [stackit sqlserverflex](./stackit_sqlserverflex.md) - Provides functionality for SQLServer Flex
+* [stackit sqlserverflex database create](./stackit_sqlserverflex_database_create.md) - Creates a SQLServer Flex database
+* [stackit sqlserverflex database delete](./stackit_sqlserverflex_database_delete.md) - Deletes a SQLServer Flex database
+* [stackit sqlserverflex database describe](./stackit_sqlserverflex_database_describe.md) - Shows details of an SQLServer Flex database
+* [stackit sqlserverflex database list](./stackit_sqlserverflex_database_list.md) - Lists all SQLServer Flex databases
+
diff --git a/docs/stackit_beta_sqlserverflex_database_create.md b/docs/stackit_sqlserverflex_database_create.md
similarity index 68%
rename from docs/stackit_beta_sqlserverflex_database_create.md
rename to docs/stackit_sqlserverflex_database_create.md
index ea1e13797..0b92e552e 100644
--- a/docs/stackit_beta_sqlserverflex_database_create.md
+++ b/docs/stackit_sqlserverflex_database_create.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex database create
+## stackit sqlserverflex database create
Creates a SQLServer Flex database
@@ -8,20 +8,20 @@ Creates a SQLServer Flex database.
This operation cannot be triggered asynchronously (the "--async" flag will have no effect).
```
-stackit beta sqlserverflex database create DATABASE_NAME [flags]
+stackit sqlserverflex database create DATABASE_NAME [flags]
```
### Examples
```
Create a SQLServer Flex database with name "my-database" on instance with ID "xxx"
- $ stackit beta sqlserverflex database create my-database --instance-id xxx --owner some-username
+ $ stackit sqlserverflex database create my-database --instance-id xxx --owner some-username
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex database create"
+ -h, --help Help for "stackit sqlserverflex database create"
--instance-id string SQLServer Flex instance ID
--owner string Username of the owner user
```
@@ -39,5 +39,5 @@ stackit beta sqlserverflex database create DATABASE_NAME [flags]
### SEE ALSO
-* [stackit beta sqlserverflex database](./stackit_beta_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
+* [stackit sqlserverflex database](./stackit_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
diff --git a/docs/stackit_beta_sqlserverflex_database_delete.md b/docs/stackit_sqlserverflex_database_delete.md
similarity index 68%
rename from docs/stackit_beta_sqlserverflex_database_delete.md
rename to docs/stackit_sqlserverflex_database_delete.md
index 343c22956..9b7f0c2fd 100644
--- a/docs/stackit_beta_sqlserverflex_database_delete.md
+++ b/docs/stackit_sqlserverflex_database_delete.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex database delete
+## stackit sqlserverflex database delete
Deletes a SQLServer Flex database
@@ -8,20 +8,20 @@ Deletes a SQLServer Flex database.
This operation cannot be triggered asynchronously (the "--async" flag will have no effect).
```
-stackit beta sqlserverflex database delete DATABASE_NAME [flags]
+stackit sqlserverflex database delete DATABASE_NAME [flags]
```
### Examples
```
Delete a SQLServer Flex database with name "my-database" of instance with ID "xxx"
- $ stackit beta sqlserverflex database delete my-database --instance-id xxx
+ $ stackit sqlserverflex database delete my-database --instance-id xxx
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex database delete"
+ -h, --help Help for "stackit sqlserverflex database delete"
--instance-id string SQLServer Flex instance ID
```
@@ -38,5 +38,5 @@ stackit beta sqlserverflex database delete DATABASE_NAME [flags]
### SEE ALSO
-* [stackit beta sqlserverflex database](./stackit_beta_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
+* [stackit sqlserverflex database](./stackit_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
diff --git a/docs/stackit_beta_sqlserverflex_database_describe.md b/docs/stackit_sqlserverflex_database_describe.md
similarity index 64%
rename from docs/stackit_beta_sqlserverflex_database_describe.md
rename to docs/stackit_sqlserverflex_database_describe.md
index 07262c6e1..897040e33 100644
--- a/docs/stackit_beta_sqlserverflex_database_describe.md
+++ b/docs/stackit_sqlserverflex_database_describe.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex database describe
+## stackit sqlserverflex database describe
Shows details of an SQLServer Flex database
@@ -7,23 +7,23 @@ Shows details of an SQLServer Flex database
Shows details of an SQLServer Flex database.
```
-stackit beta sqlserverflex database describe DATABASE_NAME [flags]
+stackit sqlserverflex database describe DATABASE_NAME [flags]
```
### Examples
```
Get details of an SQLServer Flex database with name "my-database" of instance with ID "xxx"
- $ stackit beta sqlserverflex database describe my-database --instance-id xxx
+ $ stackit sqlserverflex database describe my-database --instance-id xxx
Get details of an SQLServer Flex database with name "my-database" of instance with ID "xxx" in JSON format
- $ stackit beta sqlserverflex database describe my-database --instance-id xxx --output-format json
+ $ stackit sqlserverflex database describe my-database --instance-id xxx --output-format json
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex database describe"
+ -h, --help Help for "stackit sqlserverflex database describe"
--instance-id string SQLServer Flex instance ID
```
@@ -40,5 +40,5 @@ stackit beta sqlserverflex database describe DATABASE_NAME [flags]
### SEE ALSO
-* [stackit beta sqlserverflex database](./stackit_beta_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
+* [stackit sqlserverflex database](./stackit_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
diff --git a/docs/stackit_beta_sqlserverflex_database_list.md b/docs/stackit_sqlserverflex_database_list.md
similarity index 64%
rename from docs/stackit_beta_sqlserverflex_database_list.md
rename to docs/stackit_sqlserverflex_database_list.md
index 044800699..7d15b4558 100644
--- a/docs/stackit_beta_sqlserverflex_database_list.md
+++ b/docs/stackit_sqlserverflex_database_list.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex database list
+## stackit sqlserverflex database list
Lists all SQLServer Flex databases
@@ -7,26 +7,26 @@ Lists all SQLServer Flex databases
Lists all SQLServer Flex databases.
```
-stackit beta sqlserverflex database list [flags]
+stackit sqlserverflex database list [flags]
```
### Examples
```
List all SQLServer Flex databases of instance with ID "xxx"
- $ stackit beta sqlserverflex database list --instance-id xxx
+ $ stackit sqlserverflex database list --instance-id xxx
List all SQLServer Flex databases of instance with ID "xxx" in JSON format
- $ stackit beta sqlserverflex database list --instance-id xxx --output-format json
+ $ stackit sqlserverflex database list --instance-id xxx --output-format json
List up to 10 SQLServer Flex databases of instance with ID "xxx"
- $ stackit beta sqlserverflex database list --instance-id xxx --limit 10
+ $ stackit sqlserverflex database list --instance-id xxx --limit 10
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex database list"
+ -h, --help Help for "stackit sqlserverflex database list"
--instance-id string SQLServer Flex instance ID
--limit int Maximum number of entries to list
```
@@ -44,5 +44,5 @@ stackit beta sqlserverflex database list [flags]
### SEE ALSO
-* [stackit beta sqlserverflex database](./stackit_beta_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
+* [stackit sqlserverflex database](./stackit_sqlserverflex_database.md) - Provides functionality for SQLServer Flex databases
diff --git a/docs/stackit_beta_sqlserverflex_flavor.md b/docs/stackit_sqlserverflex_flavor.md
similarity index 56%
rename from docs/stackit_beta_sqlserverflex_flavor.md
rename to docs/stackit_sqlserverflex_flavor.md
index bc7a83b95..667349fd4 100644
--- a/docs/stackit_beta_sqlserverflex_flavor.md
+++ b/docs/stackit_sqlserverflex_flavor.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex flavor
+## stackit sqlserverflex flavor
Provides functionality for SQLServer Flex flavors
@@ -7,13 +7,13 @@ Provides functionality for SQLServer Flex flavors
Provides functionality for SQLServer Flex flavors.
```
-stackit beta sqlserverflex flavor [flags]
+stackit sqlserverflex flavor [flags]
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex flavor"
+ -h, --help Help for "stackit sqlserverflex flavor"
```
### Options inherited from parent commands
@@ -29,7 +29,7 @@ stackit beta sqlserverflex flavor [flags]
### SEE ALSO
-* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
-* [stackit beta sqlserverflex flavor describe](./stackit_beta_sqlserverflex_flavor_describe.md) - Show details of a SQLServer Flex flavor
-* [stackit beta sqlserverflex flavor list](./stackit_beta_sqlserverflex_flavor_list.md) - Lists SQLServer Flex flavors
+* [stackit sqlserverflex](./stackit_sqlserverflex.md) - Provides functionality for SQLServer Flex
+* [stackit sqlserverflex flavor describe](./stackit_sqlserverflex_flavor_describe.md) - Show details of a SQLServer Flex flavor
+* [stackit sqlserverflex flavor list](./stackit_sqlserverflex_flavor_list.md) - Lists SQLServer Flex flavors
diff --git a/docs/stackit_beta_sqlserverflex_flavor_describe.md b/docs/stackit_sqlserverflex_flavor_describe.md
similarity index 67%
rename from docs/stackit_beta_sqlserverflex_flavor_describe.md
rename to docs/stackit_sqlserverflex_flavor_describe.md
index 56022aa3d..266be22a6 100644
--- a/docs/stackit_beta_sqlserverflex_flavor_describe.md
+++ b/docs/stackit_sqlserverflex_flavor_describe.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex flavor describe
+## stackit sqlserverflex flavor describe
Show details of a SQLServer Flex flavor
@@ -7,20 +7,20 @@ Show details of a SQLServer Flex flavor
Show details of a SQLServer Flex flavor.
```
-stackit beta sqlserverflex flavor describe [flags]
+stackit sqlserverflex flavor describe [flags]
```
### Examples
```
Show SQLServer Flex flavor details
- $ stackit beta sqlserverflex flavor describe xxx
+ $ stackit sqlserverflex flavor describe xxx
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex flavor describe"
+ -h, --help Help for "stackit sqlserverflex flavor describe"
```
### Options inherited from parent commands
@@ -36,5 +36,5 @@ stackit beta sqlserverflex flavor describe [flags]
### SEE ALSO
-* [stackit beta sqlserverflex flavor](./stackit_beta_sqlserverflex_flavor.md) - Provides functionality for SQLServer Flex flavors
+* [stackit sqlserverflex flavor](./stackit_sqlserverflex_flavor.md) - Provides functionality for SQLServer Flex flavors
diff --git a/docs/stackit_beta_sqlserverflex_flavor_list.md b/docs/stackit_sqlserverflex_flavor_list.md
similarity index 66%
rename from docs/stackit_beta_sqlserverflex_flavor_list.md
rename to docs/stackit_sqlserverflex_flavor_list.md
index f60b2582f..5f91fd4aa 100644
--- a/docs/stackit_beta_sqlserverflex_flavor_list.md
+++ b/docs/stackit_sqlserverflex_flavor_list.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex flavor list
+## stackit sqlserverflex flavor list
Lists SQLServer Flex flavors
@@ -7,23 +7,23 @@ Lists SQLServer Flex flavors
Lists SQLServer Flex flavors.
```
-stackit beta sqlserverflex flavor list [flags]
+stackit sqlserverflex flavor list [flags]
```
### Examples
```
List SQLServer Flex flavors
- $ stackit beta sqlserverflex flavor list
+ $ stackit sqlserverflex flavor list
List up to 10 SQLServer Flex flavors
- $ stackit beta sqlserverflex flavor list --limit 10
+ $ stackit sqlserverflex flavor list --limit 10
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex flavor list"
+ -h, --help Help for "stackit sqlserverflex flavor list"
--limit int Maximum number of entries to list
```
@@ -40,5 +40,5 @@ stackit beta sqlserverflex flavor list [flags]
### SEE ALSO
-* [stackit beta sqlserverflex flavor](./stackit_beta_sqlserverflex_flavor.md) - Provides functionality for SQLServer Flex flavors
+* [stackit sqlserverflex flavor](./stackit_sqlserverflex_flavor.md) - Provides functionality for SQLServer Flex flavors
diff --git a/docs/stackit_sqlserverflex_instance.md b/docs/stackit_sqlserverflex_instance.md
new file mode 100644
index 000000000..ac4b3ca46
--- /dev/null
+++ b/docs/stackit_sqlserverflex_instance.md
@@ -0,0 +1,41 @@
+## stackit sqlserverflex instance
+
+Provides functionality for SQLServer Flex instances
+
+### Synopsis
+
+Provides functionality for SQLServer Flex instances.
+
+```
+stackit sqlserverflex instance [flags]
+```
+
+### Options
+
+```
+ -h, --help Help for "stackit sqlserverflex instance"
+```
+
+### Options inherited from parent commands
+
+```
+ -y, --assume-yes If set, skips all confirmation prompts
+ --async If set, runs the command asynchronously
+ -o, --output-format string Output format, (one of: [json, pretty, none, yaml])
+ -p, --project-id string Project ID
+ --region string Target region for region-specific requests
+ --verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
+```
+
+### SEE ALSO
+
+* [stackit sqlserverflex](./stackit_sqlserverflex.md) - Provides functionality for SQLServer Flex
+* [stackit sqlserverflex instance create](./stackit_sqlserverflex_instance_create.md) - Creates a SQLServer Flex instance
+* [stackit sqlserverflex instance db-collation](./stackit_sqlserverflex_instance_db-collation.md) - Provides functionality for SQLServer Flex database collations
+* [stackit sqlserverflex instance db-compatibility](./stackit_sqlserverflex_instance_db-compatibility.md) - Provides functionality for SQLServer Flex database compatibilities
+* [stackit sqlserverflex instance delete](./stackit_sqlserverflex_instance_delete.md) - Deletes a SQLServer Flex instance
+* [stackit sqlserverflex instance describe](./stackit_sqlserverflex_instance_describe.md) - Shows details of a SQLServer Flex instance
+* [stackit sqlserverflex instance list](./stackit_sqlserverflex_instance_list.md) - Lists all SQLServer Flex instances
+* [stackit sqlserverflex instance update](./stackit_sqlserverflex_instance_update.md) - Updates a SQLServer Flex instance
+* [stackit sqlserverflex instance user-role](./stackit_sqlserverflex_instance_user-role.md) - Provides functionality for SQLServer Flex user roles
+
diff --git a/docs/stackit_beta_sqlserverflex_instance_create.md b/docs/stackit_sqlserverflex_instance_create.md
similarity index 70%
rename from docs/stackit_beta_sqlserverflex_instance_create.md
rename to docs/stackit_sqlserverflex_instance_create.md
index 76abfe1c5..8db88a5f0 100644
--- a/docs/stackit_beta_sqlserverflex_instance_create.md
+++ b/docs/stackit_sqlserverflex_instance_create.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance create
+## stackit sqlserverflex instance create
Creates a SQLServer Flex instance
@@ -7,18 +7,18 @@ Creates a SQLServer Flex instance
Creates a SQLServer Flex instance.
```
-stackit beta sqlserverflex instance create [flags]
+stackit sqlserverflex instance create [flags]
```
### Examples
```
Create a SQLServer Flex instance with name "my-instance" and specify flavor by ID.
- The flavor ID can be retrieved by running "$ stackit beta sqlserverflex flavor list"
- $ stackit beta sqlserverflex instance create --name my-instance --flavor-id xxx --backup-schedule "0 2 * * *" --retention-days 30 --storage-class premium-perf2-stackit --storage-size 10 --version 2022 --acl 1.2.3.0/24
+ The flavor ID can be retrieved by running "$ stackit sqlserverflex flavor list"
+ $ stackit sqlserverflex instance create --name my-instance --flavor-id xxx --backup-schedule "0 2 * * *" --retention-days 30 --storage-class premium-perf2-stackit --storage-size 10 --version 2022 --acl 1.2.3.0/24
Create a SQLServer Flex instance with name "my-instance", specify flavor by ID, set storage size to 20 GB, and restrict access to a specific range of IP addresses.
- $ stackit beta sqlserverflex instance create --name my-instance --flavor-id xxx --storage-size 20 --backup-schedule "0 2 * * *" --retention-days 30 --storage-class premium-perf2-stackit --version 2022 --acl 1.2.3.0/24
+ $ stackit sqlserverflex instance create --name my-instance --flavor-id xxx --storage-size 20 --backup-schedule "0 2 * * *" --retention-days 30 --storage-class premium-perf2-stackit --version 2022 --acl 1.2.3.0/24
```
### Options
@@ -32,7 +32,7 @@ stackit beta sqlserverflex instance create [flags]
--encryption-kek-keyring-id string The keyring identifier
--encryption-service-account string The service account
--flavor-id string ID of the flavor. This flag will be required after 2027-02-28.
- -h, --help Help for "stackit beta sqlserverflex instance create"
+ -h, --help Help for "stackit sqlserverflex instance create"
-n, --name string Instance name
--retention-days int32 The days for how long the backup files should be stored before being cleaned up
--storage-class string Storage class
@@ -53,5 +53,5 @@ stackit beta sqlserverflex instance create [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance](./stackit_beta_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
+* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
diff --git a/docs/stackit_beta_sqlserverflex_instance_db-collation.md b/docs/stackit_sqlserverflex_instance_db-collation.md
similarity index 57%
rename from docs/stackit_beta_sqlserverflex_instance_db-collation.md
rename to docs/stackit_sqlserverflex_instance_db-collation.md
index 702c9896c..c98b8ea42 100644
--- a/docs/stackit_beta_sqlserverflex_instance_db-collation.md
+++ b/docs/stackit_sqlserverflex_instance_db-collation.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance db-collation
+## stackit sqlserverflex instance db-collation
Provides functionality for SQLServer Flex database collations
@@ -7,13 +7,13 @@ Provides functionality for SQLServer Flex database collations
Provides functionality for SQLServer Flex database collations.
```
-stackit beta sqlserverflex instance db-collation [flags]
+stackit sqlserverflex instance db-collation [flags]
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex instance db-collation"
+ -h, --help Help for "stackit sqlserverflex instance db-collation"
```
### Options inherited from parent commands
@@ -29,6 +29,6 @@ stackit beta sqlserverflex instance db-collation [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance](./stackit_beta_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
-* [stackit beta sqlserverflex instance db-collation list](./stackit_beta_sqlserverflex_instance_db-collation_list.md) - Lists supported SQLServer Flex database collations of an instance
+* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
+* [stackit sqlserverflex instance db-collation list](./stackit_sqlserverflex_instance_db-collation_list.md) - Lists supported SQLServer Flex database collations of an instance
diff --git a/docs/stackit_beta_sqlserverflex_instance_db-collation_list.md b/docs/stackit_sqlserverflex_instance_db-collation_list.md
similarity index 62%
rename from docs/stackit_beta_sqlserverflex_instance_db-collation_list.md
rename to docs/stackit_sqlserverflex_instance_db-collation_list.md
index 2383661dd..6a638a608 100644
--- a/docs/stackit_beta_sqlserverflex_instance_db-collation_list.md
+++ b/docs/stackit_sqlserverflex_instance_db-collation_list.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance db-collation list
+## stackit sqlserverflex instance db-collation list
Lists supported SQLServer Flex database collations of an instance
@@ -7,26 +7,26 @@ Lists supported SQLServer Flex database collations of an instance
Lists supported SQLServer Flex database collations of an instance.
```
-stackit beta sqlserverflex instance db-collation list [flags]
+stackit sqlserverflex instance db-collation list [flags]
```
### Examples
```
List SQLServer Flex database collations of instance with ID "xxx"
- $ stackit beta sqlserverflex instance db-collation list --instance-id xxx
+ $ stackit sqlserverflex instance db-collation list --instance-id xxx
List SQLServer Flex database collations of instance with ID "xxx" in JSON format
- $ stackit beta sqlserverflex instance db-collation list --instance-id xxx --output-format json
+ $ stackit sqlserverflex instance db-collation list --instance-id xxx --output-format json
List up to 10 SQLServer Flex database collations of instance with ID "xxx"
- $ stackit beta sqlserverflex instance db-collation list --instance-id xxx --limit 10
+ $ stackit sqlserverflex instance db-collation list --instance-id xxx --limit 10
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex instance db-collation list"
+ -h, --help Help for "stackit sqlserverflex instance db-collation list"
--instance-id string Instance ID
--limit int Maximum number of entries to list
```
@@ -44,5 +44,5 @@ stackit beta sqlserverflex instance db-collation list [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance db-collation](./stackit_beta_sqlserverflex_instance_db-collation.md) - Provides functionality for SQLServer Flex database collations
+* [stackit sqlserverflex instance db-collation](./stackit_sqlserverflex_instance_db-collation.md) - Provides functionality for SQLServer Flex database collations
diff --git a/docs/stackit_beta_sqlserverflex_instance_db-compatibility.md b/docs/stackit_sqlserverflex_instance_db-compatibility.md
similarity index 56%
rename from docs/stackit_beta_sqlserverflex_instance_db-compatibility.md
rename to docs/stackit_sqlserverflex_instance_db-compatibility.md
index fabf3a909..f4ee5a882 100644
--- a/docs/stackit_beta_sqlserverflex_instance_db-compatibility.md
+++ b/docs/stackit_sqlserverflex_instance_db-compatibility.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance db-compatibility
+## stackit sqlserverflex instance db-compatibility
Provides functionality for SQLServer Flex database compatibilities
@@ -7,13 +7,13 @@ Provides functionality for SQLServer Flex database compatibilities
Provides functionality for SQLServer Flex database compatibilities.
```
-stackit beta sqlserverflex instance db-compatibility [flags]
+stackit sqlserverflex instance db-compatibility [flags]
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex instance db-compatibility"
+ -h, --help Help for "stackit sqlserverflex instance db-compatibility"
```
### Options inherited from parent commands
@@ -29,6 +29,6 @@ stackit beta sqlserverflex instance db-compatibility [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance](./stackit_beta_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
-* [stackit beta sqlserverflex instance db-compatibility list](./stackit_beta_sqlserverflex_instance_db-compatibility_list.md) - Lists supported SQLServer Flex database compatibilities of an instance
+* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
+* [stackit sqlserverflex instance db-compatibility list](./stackit_sqlserverflex_instance_db-compatibility_list.md) - Lists supported SQLServer Flex database compatibilities of an instance
diff --git a/docs/stackit_beta_sqlserverflex_instance_db-compatibility_list.md b/docs/stackit_sqlserverflex_instance_db-compatibility_list.md
similarity index 61%
rename from docs/stackit_beta_sqlserverflex_instance_db-compatibility_list.md
rename to docs/stackit_sqlserverflex_instance_db-compatibility_list.md
index a6ac50418..fce7b0616 100644
--- a/docs/stackit_beta_sqlserverflex_instance_db-compatibility_list.md
+++ b/docs/stackit_sqlserverflex_instance_db-compatibility_list.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance db-compatibility list
+## stackit sqlserverflex instance db-compatibility list
Lists supported SQLServer Flex database compatibilities of an instance
@@ -7,26 +7,26 @@ Lists supported SQLServer Flex database compatibilities of an instance
Lists supported SQLServer Flex database compatibilities of an instance.
```
-stackit beta sqlserverflex instance db-compatibility list [flags]
+stackit sqlserverflex instance db-compatibility list [flags]
```
### Examples
```
List SQLServer Flex database compatibilities of instance with ID "xxx"
- $ stackit beta sqlserverflex instance db-compatibility list --instance-id xxx
+ $ stackit sqlserverflex instance db-compatibility list --instance-id xxx
List SQLServer Flex database compatibilities of instance with ID "xxx" in JSON format
- $ stackit beta sqlserverflex instance db-compatibility list --instance-id xxx --output-format json
+ $ stackit sqlserverflex instance db-compatibility list --instance-id xxx --output-format json
List up to 10 SQLServer Flex database compatibilities of instance with ID "xxx"
- $ stackit beta sqlserverflex instance db-compatibility list --instance-id xxx --limit 10
+ $ stackit sqlserverflex instance db-compatibility list --instance-id xxx --limit 10
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex instance db-compatibility list"
+ -h, --help Help for "stackit sqlserverflex instance db-compatibility list"
--instance-id string Instance ID
--limit int Maximum number of entries to list
```
@@ -44,5 +44,5 @@ stackit beta sqlserverflex instance db-compatibility list [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance db-compatibility](./stackit_beta_sqlserverflex_instance_db-compatibility.md) - Provides functionality for SQLServer Flex database compatibilities
+* [stackit sqlserverflex instance db-compatibility](./stackit_sqlserverflex_instance_db-compatibility.md) - Provides functionality for SQLServer Flex database compatibilities
diff --git a/docs/stackit_beta_sqlserverflex_instance_delete.md b/docs/stackit_sqlserverflex_instance_delete.md
similarity index 65%
rename from docs/stackit_beta_sqlserverflex_instance_delete.md
rename to docs/stackit_sqlserverflex_instance_delete.md
index 1e4d05649..11c9c758c 100644
--- a/docs/stackit_beta_sqlserverflex_instance_delete.md
+++ b/docs/stackit_sqlserverflex_instance_delete.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance delete
+## stackit sqlserverflex instance delete
Deletes a SQLServer Flex instance
@@ -7,20 +7,20 @@ Deletes a SQLServer Flex instance
Deletes a SQLServer Flex instance.
```
-stackit beta sqlserverflex instance delete INSTANCE_ID [flags]
+stackit sqlserverflex instance delete INSTANCE_ID [flags]
```
### Examples
```
Delete a SQLServer Flex instance with ID "xxx"
- $ stackit beta sqlserverflex instance delete xxx
+ $ stackit sqlserverflex instance delete xxx
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex instance delete"
+ -h, --help Help for "stackit sqlserverflex instance delete"
```
### Options inherited from parent commands
@@ -36,5 +36,5 @@ stackit beta sqlserverflex instance delete INSTANCE_ID [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance](./stackit_beta_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
+* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
diff --git a/docs/stackit_beta_sqlserverflex_instance_describe.md b/docs/stackit_sqlserverflex_instance_describe.md
similarity index 64%
rename from docs/stackit_beta_sqlserverflex_instance_describe.md
rename to docs/stackit_sqlserverflex_instance_describe.md
index 5f1ab6ed4..840caa171 100644
--- a/docs/stackit_beta_sqlserverflex_instance_describe.md
+++ b/docs/stackit_sqlserverflex_instance_describe.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance describe
+## stackit sqlserverflex instance describe
Shows details of a SQLServer Flex instance
@@ -7,23 +7,23 @@ Shows details of a SQLServer Flex instance
Shows details of a SQLServer Flex instance.
```
-stackit beta sqlserverflex instance describe INSTANCE_ID [flags]
+stackit sqlserverflex instance describe INSTANCE_ID [flags]
```
### Examples
```
Get details of a SQLServer Flex instance with ID "xxx"
- $ stackit beta sqlserverflex instance describe xxx
+ $ stackit sqlserverflex instance describe xxx
Get details of a SQLServer Flex instance with ID "xxx" in JSON format
- $ stackit beta sqlserverflex instance describe xxx --output-format json
+ $ stackit sqlserverflex instance describe xxx --output-format json
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex instance describe"
+ -h, --help Help for "stackit sqlserverflex instance describe"
```
### Options inherited from parent commands
@@ -39,5 +39,5 @@ stackit beta sqlserverflex instance describe INSTANCE_ID [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance](./stackit_beta_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
+* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
diff --git a/docs/stackit_beta_sqlserverflex_instance_list.md b/docs/stackit_sqlserverflex_instance_list.md
similarity index 64%
rename from docs/stackit_beta_sqlserverflex_instance_list.md
rename to docs/stackit_sqlserverflex_instance_list.md
index c6ffaaaf1..50bcf6cee 100644
--- a/docs/stackit_beta_sqlserverflex_instance_list.md
+++ b/docs/stackit_sqlserverflex_instance_list.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance list
+## stackit sqlserverflex instance list
Lists all SQLServer Flex instances
@@ -7,26 +7,26 @@ Lists all SQLServer Flex instances
Lists all SQLServer Flex instances.
```
-stackit beta sqlserverflex instance list [flags]
+stackit sqlserverflex instance list [flags]
```
### Examples
```
List all SQLServer Flex instances
- $ stackit beta sqlserverflex instance list
+ $ stackit sqlserverflex instance list
List all SQLServer Flex instances in JSON format
- $ stackit beta sqlserverflex instance list --output-format json
+ $ stackit sqlserverflex instance list --output-format json
List up to 10 SQLServer Flex instances
- $ stackit beta sqlserverflex instance list --limit 10
+ $ stackit sqlserverflex instance list --limit 10
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex instance list"
+ -h, --help Help for "stackit sqlserverflex instance list"
--limit int Maximum number of entries to list
```
@@ -43,5 +43,5 @@ stackit beta sqlserverflex instance list [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance](./stackit_beta_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
+* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
diff --git a/docs/stackit_beta_sqlserverflex_instance_update.md b/docs/stackit_sqlserverflex_instance_update.md
similarity index 69%
rename from docs/stackit_beta_sqlserverflex_instance_update.md
rename to docs/stackit_sqlserverflex_instance_update.md
index 336140e3d..f78b6867f 100644
--- a/docs/stackit_beta_sqlserverflex_instance_update.md
+++ b/docs/stackit_sqlserverflex_instance_update.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance update
+## stackit sqlserverflex instance update
Updates a SQLServer Flex instance
@@ -7,17 +7,17 @@ Updates a SQLServer Flex instance
Updates a SQLServer Flex instance.
```
-stackit beta sqlserverflex instance update INSTANCE_ID [flags]
+stackit sqlserverflex instance update INSTANCE_ID [flags]
```
### Examples
```
Update the name of a SQLServer Flex instance with ID "xxx"
- $ stackit beta sqlserverflex instance update xxx --name my-new-name
+ $ stackit sqlserverflex instance update xxx --name my-new-name
Update the backup schedule of a SQLServer Flex instance with ID "xxx"
- $ stackit beta sqlserverflex instance update xxx --backup-schedule "30 0 * * *"
+ $ stackit sqlserverflex instance update xxx --backup-schedule "30 0 * * *"
```
### Options
@@ -26,7 +26,7 @@ stackit beta sqlserverflex instance update INSTANCE_ID [flags]
--acl strings Lists of IP networks in CIDR notation which are allowed to access this instance (default [])
--backup-schedule string Backup schedule
--flavor-id string ID of the flavor
- -h, --help Help for "stackit beta sqlserverflex instance update"
+ -h, --help Help for "stackit sqlserverflex instance update"
-n, --name string Instance name
--version string Version
```
@@ -44,5 +44,5 @@ stackit beta sqlserverflex instance update INSTANCE_ID [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance](./stackit_beta_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
+* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
diff --git a/docs/stackit_beta_sqlserverflex_instance_user-role.md b/docs/stackit_sqlserverflex_instance_user-role.md
similarity index 58%
rename from docs/stackit_beta_sqlserverflex_instance_user-role.md
rename to docs/stackit_sqlserverflex_instance_user-role.md
index cb1a63566..2759e767d 100644
--- a/docs/stackit_beta_sqlserverflex_instance_user-role.md
+++ b/docs/stackit_sqlserverflex_instance_user-role.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance user-role
+## stackit sqlserverflex instance user-role
Provides functionality for SQLServer Flex user roles
@@ -7,13 +7,13 @@ Provides functionality for SQLServer Flex user roles
Provides functionality for SQLServer Flex user roles.
```
-stackit beta sqlserverflex instance user-role [flags]
+stackit sqlserverflex instance user-role [flags]
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex instance user-role"
+ -h, --help Help for "stackit sqlserverflex instance user-role"
```
### Options inherited from parent commands
@@ -29,6 +29,6 @@ stackit beta sqlserverflex instance user-role [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance](./stackit_beta_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
-* [stackit beta sqlserverflex instance user-role list](./stackit_beta_sqlserverflex_instance_user-role_list.md) - Lists supported SQLServer Flex user roles of an instance
+* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances
+* [stackit sqlserverflex instance user-role list](./stackit_sqlserverflex_instance_user-role_list.md) - Lists supported SQLServer Flex user roles of an instance
diff --git a/docs/stackit_beta_sqlserverflex_instance_user-role_list.md b/docs/stackit_sqlserverflex_instance_user-role_list.md
similarity index 62%
rename from docs/stackit_beta_sqlserverflex_instance_user-role_list.md
rename to docs/stackit_sqlserverflex_instance_user-role_list.md
index cb493ab62..ede0f2a9a 100644
--- a/docs/stackit_beta_sqlserverflex_instance_user-role_list.md
+++ b/docs/stackit_sqlserverflex_instance_user-role_list.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex instance user-role list
+## stackit sqlserverflex instance user-role list
Lists supported SQLServer Flex user roles of an instance
@@ -7,26 +7,26 @@ Lists supported SQLServer Flex user roles of an instance
Lists supported SQLServer Flex user roles of an instance.
```
-stackit beta sqlserverflex instance user-role list [flags]
+stackit sqlserverflex instance user-role list [flags]
```
### Examples
```
List SQLServer Flex user roles of instance with ID "xxx"
- $ stackit beta sqlserverflex instance user-role list --instance-id xxx
+ $ stackit sqlserverflex instance user-role list --instance-id xxx
List SQLServer Flex user roles of instance with ID "xxx" in JSON format
- $ stackit beta sqlserverflex instance user-role list --instance-id xxx --output-format json
+ $ stackit sqlserverflex instance user-role list --instance-id xxx --output-format json
List up to 10 SQLServer Flex user roles of instance with ID "xxx"
- $ stackit beta sqlserverflex instance user-role list --instance-id xxx --limit 10
+ $ stackit sqlserverflex instance user-role list --instance-id xxx --limit 10
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex instance user-role list"
+ -h, --help Help for "stackit sqlserverflex instance user-role list"
--instance-id string Instance ID
--limit int Maximum number of entries to list
```
@@ -44,5 +44,5 @@ stackit beta sqlserverflex instance user-role list [flags]
### SEE ALSO
-* [stackit beta sqlserverflex instance user-role](./stackit_beta_sqlserverflex_instance_user-role.md) - Provides functionality for SQLServer Flex user roles
+* [stackit sqlserverflex instance user-role](./stackit_sqlserverflex_instance_user-role.md) - Provides functionality for SQLServer Flex user roles
diff --git a/docs/stackit_sqlserverflex_user.md b/docs/stackit_sqlserverflex_user.md
new file mode 100644
index 000000000..6cdf18fa1
--- /dev/null
+++ b/docs/stackit_sqlserverflex_user.md
@@ -0,0 +1,38 @@
+## stackit sqlserverflex user
+
+Provides functionality for SQLServer Flex users
+
+### Synopsis
+
+Provides functionality for SQLServer Flex users.
+
+```
+stackit sqlserverflex user [flags]
+```
+
+### Options
+
+```
+ -h, --help Help for "stackit sqlserverflex user"
+```
+
+### Options inherited from parent commands
+
+```
+ -y, --assume-yes If set, skips all confirmation prompts
+ --async If set, runs the command asynchronously
+ -o, --output-format string Output format, (one of: [json, pretty, none, yaml])
+ -p, --project-id string Project ID
+ --region string Target region for region-specific requests
+ --verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
+```
+
+### SEE ALSO
+
+* [stackit sqlserverflex](./stackit_sqlserverflex.md) - Provides functionality for SQLServer Flex
+* [stackit sqlserverflex user create](./stackit_sqlserverflex_user_create.md) - Creates a SQLServer Flex user
+* [stackit sqlserverflex user delete](./stackit_sqlserverflex_user_delete.md) - Deletes a SQLServer Flex user
+* [stackit sqlserverflex user describe](./stackit_sqlserverflex_user_describe.md) - Shows details of a SQLServer Flex user
+* [stackit sqlserverflex user list](./stackit_sqlserverflex_user_list.md) - Lists all SQLServer Flex users of an instance
+* [stackit sqlserverflex user reset-password](./stackit_sqlserverflex_user_reset-password.md) - Resets the password of a SQLServer Flex user
+
diff --git a/docs/stackit_beta_sqlserverflex_user_create.md b/docs/stackit_sqlserverflex_user_create.md
similarity index 65%
rename from docs/stackit_beta_sqlserverflex_user_create.md
rename to docs/stackit_sqlserverflex_user_create.md
index 086d7bfd7..43b5b1da6 100644
--- a/docs/stackit_beta_sqlserverflex_user_create.md
+++ b/docs/stackit_sqlserverflex_user_create.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex user create
+## stackit sqlserverflex user create
Creates a SQLServer Flex user
@@ -8,30 +8,30 @@ Creates a SQLServer Flex user for an instance.
The password is only visible upon creation and cannot be retrieved later.
Alternatively, you can reset the password and access the new one by running:
- $ stackit beta sqlserverflex user reset-password USER_ID --instance-id INSTANCE_ID
+ $ stackit sqlserverflex user reset-password USER_ID --instance-id INSTANCE_ID
Please refer to https://docs.stackit.cloud/products/databases/sqlserver-flex/how-tos/create-logins-and-users-in-sqlserver-flex-instances/ for additional information.
The allowed user roles for your instance can be obtained by running:
- $ stackit beta sqlserverflex instance user-role list --instance-id INSTANCE_ID
+ $ stackit sqlserverflex instance user-role list --instance-id INSTANCE_ID
```
-stackit beta sqlserverflex user create [flags]
+stackit sqlserverflex user create [flags]
```
### Examples
```
Create a SQLServer Flex user for instance with ID "xxx" and specify the username, role and database
- $ stackit beta sqlserverflex user create --instance-id xxx --username johndoe --roles "##STACKIT_DatabaseManager##"
+ $ stackit sqlserverflex user create --instance-id xxx --username johndoe --roles "##STACKIT_DatabaseManager##"
Create a SQLServer Flex user for instance with ID "xxx", specifying multiple roles
- $ stackit beta sqlserverflex user create --instance-id xxx --username johndoe --roles "##STACKIT_LoginManager##,##STACKIT_DatabaseManager##"
+ $ stackit sqlserverflex user create --instance-id xxx --username johndoe --roles "##STACKIT_LoginManager##,##STACKIT_DatabaseManager##"
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex user create"
+ -h, --help Help for "stackit sqlserverflex user create"
--instance-id string ID of the instance
--roles strings Roles of the user
--username string Username of the user
@@ -50,5 +50,5 @@ stackit beta sqlserverflex user create [flags]
### SEE ALSO
-* [stackit beta sqlserverflex user](./stackit_beta_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
+* [stackit sqlserverflex user](./stackit_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
diff --git a/docs/stackit_beta_sqlserverflex_user_delete.md b/docs/stackit_sqlserverflex_user_delete.md
similarity index 65%
rename from docs/stackit_beta_sqlserverflex_user_delete.md
rename to docs/stackit_sqlserverflex_user_delete.md
index 78a9ade81..33855b923 100644
--- a/docs/stackit_beta_sqlserverflex_user_delete.md
+++ b/docs/stackit_sqlserverflex_user_delete.md
@@ -1,27 +1,27 @@
-## stackit beta sqlserverflex user delete
+## stackit sqlserverflex user delete
Deletes a SQLServer Flex user
### Synopsis
Deletes a SQLServer Flex user by ID. You can get the IDs of users for an instance by running:
- $ stackit beta sqlserverflex user list --instance-id
+ $ stackit sqlserverflex user list --instance-id
```
-stackit beta sqlserverflex user delete USER_ID [flags]
+stackit sqlserverflex user delete USER_ID [flags]
```
### Examples
```
Delete a SQLServer Flex user with ID "xxx" for instance with ID "yyy"
- $ stackit beta sqlserverflex user delete xxx --instance-id yyy
+ $ stackit sqlserverflex user delete xxx --instance-id yyy
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex user delete"
+ -h, --help Help for "stackit sqlserverflex user delete"
--instance-id string Instance ID
```
@@ -38,5 +38,5 @@ stackit beta sqlserverflex user delete USER_ID [flags]
### SEE ALSO
-* [stackit beta sqlserverflex user](./stackit_beta_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
+* [stackit sqlserverflex user](./stackit_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
diff --git a/docs/stackit_beta_sqlserverflex_user_describe.md b/docs/stackit_sqlserverflex_user_describe.md
similarity index 63%
rename from docs/stackit_beta_sqlserverflex_user_describe.md
rename to docs/stackit_sqlserverflex_user_describe.md
index b62e40039..3d43fd0c6 100644
--- a/docs/stackit_beta_sqlserverflex_user_describe.md
+++ b/docs/stackit_sqlserverflex_user_describe.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex user describe
+## stackit sqlserverflex user describe
Shows details of a SQLServer Flex user
@@ -6,26 +6,26 @@ Shows details of a SQLServer Flex user
Shows details of a SQLServer Flex user.
The user password is only visible upon creation. You can reset it by running:
- $ stackit beta sqlserverflex user reset-password USER_ID --instance-id INSTANCE_ID
+ $ stackit sqlserverflex user reset-password USER_ID --instance-id INSTANCE_ID
```
-stackit beta sqlserverflex user describe USER_ID [flags]
+stackit sqlserverflex user describe USER_ID [flags]
```
### Examples
```
Get details of a SQLServer Flex user with ID "xxx" of instance with ID "yyy"
- $ stackit beta sqlserverflex user describe xxx --instance-id yyy
+ $ stackit sqlserverflex user describe xxx --instance-id yyy
Get details of a SQLServer Flex user with ID "xxx" of instance with ID "yyy" in JSON format
- $ stackit beta sqlserverflex user describe xxx --instance-id yyy --output-format json
+ $ stackit sqlserverflex user describe xxx --instance-id yyy --output-format json
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex user describe"
+ -h, --help Help for "stackit sqlserverflex user describe"
--instance-id string ID of the instance
```
@@ -42,5 +42,5 @@ stackit beta sqlserverflex user describe USER_ID [flags]
### SEE ALSO
-* [stackit beta sqlserverflex user](./stackit_beta_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
+* [stackit sqlserverflex user](./stackit_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
diff --git a/docs/stackit_beta_sqlserverflex_user_list.md b/docs/stackit_sqlserverflex_user_list.md
similarity index 66%
rename from docs/stackit_beta_sqlserverflex_user_list.md
rename to docs/stackit_sqlserverflex_user_list.md
index 616cd0a74..1cbe51239 100644
--- a/docs/stackit_beta_sqlserverflex_user_list.md
+++ b/docs/stackit_sqlserverflex_user_list.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex user list
+## stackit sqlserverflex user list
Lists all SQLServer Flex users of an instance
@@ -7,26 +7,26 @@ Lists all SQLServer Flex users of an instance
Lists all SQLServer Flex users of an instance.
```
-stackit beta sqlserverflex user list [flags]
+stackit sqlserverflex user list [flags]
```
### Examples
```
List all SQLServer Flex users of instance with ID "xxx"
- $ stackit beta sqlserverflex user list --instance-id xxx
+ $ stackit sqlserverflex user list --instance-id xxx
List all SQLServer Flex users of instance with ID "xxx" in JSON format
- $ stackit beta sqlserverflex user list --instance-id xxx --output-format json
+ $ stackit sqlserverflex user list --instance-id xxx --output-format json
List up to 10 SQLServer Flex users of instance with ID "xxx"
- $ stackit beta sqlserverflex user list --instance-id xxx --limit 10
+ $ stackit sqlserverflex user list --instance-id xxx --limit 10
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex user list"
+ -h, --help Help for "stackit sqlserverflex user list"
--instance-id string Instance ID
--limit int Maximum number of entries to list
```
@@ -44,5 +44,5 @@ stackit beta sqlserverflex user list [flags]
### SEE ALSO
-* [stackit beta sqlserverflex user](./stackit_beta_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
+* [stackit sqlserverflex user](./stackit_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
diff --git a/docs/stackit_beta_sqlserverflex_user_reset-password.md b/docs/stackit_sqlserverflex_user_reset-password.md
similarity index 69%
rename from docs/stackit_beta_sqlserverflex_user_reset-password.md
rename to docs/stackit_sqlserverflex_user_reset-password.md
index feb99fd6a..8c051addf 100644
--- a/docs/stackit_beta_sqlserverflex_user_reset-password.md
+++ b/docs/stackit_sqlserverflex_user_reset-password.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex user reset-password
+## stackit sqlserverflex user reset-password
Resets the password of a SQLServer Flex user
@@ -8,20 +8,20 @@ Resets the password of a SQLServer Flex user.
The new password is visible after resetting and cannot be retrieved later.
```
-stackit beta sqlserverflex user reset-password USER_ID [flags]
+stackit sqlserverflex user reset-password USER_ID [flags]
```
### Examples
```
Reset the password of a SQLServer Flex user with ID "xxx" of instance with ID "yyy"
- $ stackit beta sqlserverflex user reset-password xxx --instance-id yyy
+ $ stackit sqlserverflex user reset-password xxx --instance-id yyy
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex user reset-password"
+ -h, --help Help for "stackit sqlserverflex user reset-password"
--instance-id string ID of the instance
```
@@ -38,5 +38,5 @@ stackit beta sqlserverflex user reset-password USER_ID [flags]
### SEE ALSO
-* [stackit beta sqlserverflex user](./stackit_beta_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
+* [stackit sqlserverflex user](./stackit_sqlserverflex_user.md) - Provides functionality for SQLServer Flex users
diff --git a/docs/stackit_beta_sqlserverflex_version.md b/docs/stackit_sqlserverflex_version.md
similarity index 64%
rename from docs/stackit_beta_sqlserverflex_version.md
rename to docs/stackit_sqlserverflex_version.md
index 5a859f99a..83fe0a5f7 100644
--- a/docs/stackit_beta_sqlserverflex_version.md
+++ b/docs/stackit_sqlserverflex_version.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex version
+## stackit sqlserverflex version
Provides functionality for SQLServer Flex versions
@@ -7,13 +7,13 @@ Provides functionality for SQLServer Flex versions
Provides functionality for SQLServer Flex versions.
```
-stackit beta sqlserverflex version [flags]
+stackit sqlserverflex version [flags]
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex version"
+ -h, --help Help for "stackit sqlserverflex version"
```
### Options inherited from parent commands
@@ -29,6 +29,6 @@ stackit beta sqlserverflex version [flags]
### SEE ALSO
-* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
-* [stackit beta sqlserverflex version list](./stackit_beta_sqlserverflex_version_list.md) - Lists SQLServer Flex versions
+* [stackit sqlserverflex](./stackit_sqlserverflex.md) - Provides functionality for SQLServer Flex
+* [stackit sqlserverflex version list](./stackit_sqlserverflex_version_list.md) - Lists SQLServer Flex versions
diff --git a/docs/stackit_beta_sqlserverflex_version_list.md b/docs/stackit_sqlserverflex_version_list.md
similarity index 67%
rename from docs/stackit_beta_sqlserverflex_version_list.md
rename to docs/stackit_sqlserverflex_version_list.md
index c2b308832..f9f9f8ff8 100644
--- a/docs/stackit_beta_sqlserverflex_version_list.md
+++ b/docs/stackit_sqlserverflex_version_list.md
@@ -1,4 +1,4 @@
-## stackit beta sqlserverflex version list
+## stackit sqlserverflex version list
Lists SQLServer Flex versions
@@ -7,20 +7,20 @@ Lists SQLServer Flex versions
Lists SQLServer Flex versions.
```
-stackit beta sqlserverflex version list [flags]
+stackit sqlserverflex version list [flags]
```
### Examples
```
List SQLServer Flex version options
- $ stackit beta sqlserverflex version list
+ $ stackit sqlserverflex version list
```
### Options
```
- -h, --help Help for "stackit beta sqlserverflex version list"
+ -h, --help Help for "stackit sqlserverflex version list"
```
### Options inherited from parent commands
@@ -36,5 +36,5 @@ stackit beta sqlserverflex version list [flags]
### SEE ALSO
-* [stackit beta sqlserverflex version](./stackit_beta_sqlserverflex_version.md) - Provides functionality for SQLServer Flex versions
+* [stackit sqlserverflex version](./stackit_sqlserverflex_version.md) - Provides functionality for SQLServer Flex versions
diff --git a/internal/cmd/beta/beta.go b/internal/cmd/beta/beta.go
index 5ee25e6cb..9b419a617 100644
--- a/internal/cmd/beta/beta.go
+++ b/internal/cmd/beta/beta.go
@@ -11,7 +11,6 @@ import (
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/edge"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sfs"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/vpn"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/examples"
@@ -43,7 +42,6 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
}
func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
- cmd.AddCommand(sqlserverflex.NewCmd(params))
cmd.AddCommand(sfs.NewCmd(params))
cmd.AddCommand(alb.NewCmd(params))
cmd.AddCommand(albwaf.NewCmd(params))
diff --git a/internal/cmd/beta/sqlserverflex/options/options.go b/internal/cmd/beta/sqlserverflex/options/options.go
deleted file mode 100644
index 7dbb8e4a5..000000000
--- a/internal/cmd/beta/sqlserverflex/options/options.go
+++ /dev/null
@@ -1,393 +0,0 @@
-package options
-
-import (
- "context"
- "fmt"
-
- sqlserverflexUtils "github.com/stackitcloud/stackit-cli/internal/pkg/services/sqlserverflex/utils"
- "github.com/stackitcloud/stackit-cli/internal/pkg/types"
- "github.com/stackitcloud/stackit-cli/internal/pkg/utils"
-
- "github.com/stackitcloud/stackit-cli/internal/pkg/args"
- "github.com/stackitcloud/stackit-cli/internal/pkg/examples"
- "github.com/stackitcloud/stackit-cli/internal/pkg/flags"
- "github.com/stackitcloud/stackit-cli/internal/pkg/globalflags"
- "github.com/stackitcloud/stackit-cli/internal/pkg/print"
- "github.com/stackitcloud/stackit-cli/internal/pkg/services/sqlserverflex/client"
- "github.com/stackitcloud/stackit-cli/internal/pkg/tables"
-
- "github.com/spf13/cobra"
- sqlserverflex "github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex/v3api"
-)
-
-const (
- // Deprecated: Will be removed after 2027-02-28.
- flavorsFlag = "flavors"
- // Deprecated: Will be removed after 2027-02-28.
- versionsFlag = "versions"
- // Deprecated: Will be removed after 2027-02-28.
- storagesFlag = "storages"
- // Deprecated: Will be removed after 2027-02-28.
- userRolesFlag = "user-roles"
- // Deprecated: Will be removed after 2027-02-28.
- dbCollationsFlag = "db-collations"
- // Deprecated: Will be removed after 2027-02-28.
- dbCompatibilitiesFlag = "db-compatibilities"
-
- // Deprecated: Will be removed after 2027-02-28.
- flavorIdFlag = "flavor-id"
- // Deprecated: Will be removed after 2027-02-28.
- instanceIdFlag = "instance-id"
-)
-
-// Deprecated: Will be removed after 2027-02-28.
-type inputModel struct {
- *globalflags.GlobalFlagModel
-
- Flavors bool
- Versions bool
- Storages bool
- UserRoles bool
- DBCollations bool
- DBCompatibilities bool
-
- FlavorId *string
- InstanceId *string
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-type options struct {
- Flavors []sqlserverflex.ListFlavors `json:"flavors,omitempty"`
- Versions []sqlserverflex.Version `json:"versions,omitempty"`
- Storages *flavorStorages `json:"flavorStorages,omitempty"`
- UserRoles *instanceUserRoles `json:"userRoles,omitempty"`
- DBCollations *instanceDBCollations `json:"dbCollations,omitempty"`
- DBCompatibilities *instanceDBCompatibilities `json:"dbCompatibilities,omitempty"`
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-type flavorStorages struct {
- FlavorId string `json:"flavorId"`
- Storages *sqlserverflex.ListStoragesResponse `json:"storages"`
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-type instanceUserRoles struct {
- InstanceId string `json:"instanceId"`
- UserRoles []string `json:"userRoles"`
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-type instanceDBCollations struct {
- InstanceId string `json:"instanceId"`
- DBCollations []sqlserverflex.DatabaseGetcollation `json:"dbCollations"`
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-type instanceDBCompatibilities struct {
- InstanceId string `json:"instanceId"`
- DBCompatibilities []sqlserverflex.DatabaseGetcompatibility `json:"dbCompatibilities"`
-}
-
-// Deprecated: Will be removed after 2027-02-28. Use "flavor list", "flavor describe", "version list",
-// "instance user-role list", "instance db-collation list" and "instance db-compatibility list" instead.
-func NewCmd(params *types.CmdParams) *cobra.Command {
- cmd := &cobra.Command{
- Use: "options",
- Short: "Lists SQL Server Flex options",
- Long: "Lists SQL Server Flex options (flavors, versions and storages for a given flavor)\nPass one or more flags to filter what categories are shown.",
- Args: args.NoArgs,
- Example: examples.Build(
- examples.NewExample(
- `List SQL Server Flex flavors options`,
- "$ stackit beta sqlserverflex options --flavors"),
- examples.NewExample(
- `List SQL Server Flex available versions`,
- "$ stackit beta sqlserverflex options --versions"),
- examples.NewExample(
- `List SQL Server Flex storage options for a given flavor. The flavor ID can be retrieved by running "$ stackit beta sqlserverflex options --flavors"`,
- "$ stackit beta sqlserverflex options --storages --flavor-id "),
- examples.NewExample(
- `List SQL Server Flex user roles and database compatibilities for a given instance. The IDs of existing instances can be obtained by running "$ stackit beta sqlserverflex instance list"`,
- "$ stackit beta sqlserverflex options --user-roles --db-compatibilities --instance-id "),
- ),
- Deprecated: `command "stackit beta sqlserverflex options" is deprecated and will be removed after 2027-02-28. Please use "stackit beta sqlserverflex flavor list", "stackit beta sqlserverflex flavor describe", "stackit beta sqlserverflex version list", "stackit beta sqlserverflex instance user-role list", "stackit beta sqlserverflex instance db-collation list" and "stackit beta sqlserverflex instance db-compatibility list" instead.`,
- RunE: func(cmd *cobra.Command, args []string) error {
- ctx := context.Background()
- model, err := parseInput(params.Printer, cmd, args)
- if err != nil {
- return err
- }
-
- // Configure API client
- apiClient, err := client.ConfigureClient(params.Printer, params.CliVersion)
- if err != nil {
- return err
- }
-
- // Call API
- err = buildAndExecuteRequest(ctx, params.Printer, model, apiClient.DefaultAPI)
- if err != nil {
- return fmt.Errorf("get SQL Server Flex options: %w", err)
- }
-
- return nil
- },
- }
- configureFlags(cmd)
- return cmd
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func configureFlags(cmd *cobra.Command) {
- cmd.Flags().Bool(flavorsFlag, false, "Lists supported flavors")
- cmd.Flags().Bool(versionsFlag, false, "Lists supported versions")
- cmd.Flags().Bool(storagesFlag, false, "Lists supported storages for a given flavor")
- cmd.Flags().Bool(userRolesFlag, false, "Lists supported user roles for a given instance")
- cmd.Flags().Bool(dbCollationsFlag, false, "Lists supported database collations for a given instance")
- cmd.Flags().Bool(dbCompatibilitiesFlag, false, "Lists supported database compatibilities for a given instance")
- cmd.Flags().String(flavorIdFlag, "", `The flavor ID to show storages for. Only relevant when "--storages" is passed`)
- cmd.Flags().String(instanceIdFlag, "", `The instance ID to show user roles, database collations and database compatibilities for. Only relevant when "--user-roles", "--db-collations" or "--db-compatibilities" is passed`)
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func parseInput(p *print.Printer, cmd *cobra.Command, _ []string) (*inputModel, error) {
- globalFlags := globalflags.Parse(p, cmd)
-
- flavors := flags.FlagToBoolValue(p, cmd, flavorsFlag)
- versions := flags.FlagToBoolValue(p, cmd, versionsFlag)
- storages := flags.FlagToBoolValue(p, cmd, storagesFlag)
- userRoles := flags.FlagToBoolValue(p, cmd, userRolesFlag)
- dbCollations := flags.FlagToBoolValue(p, cmd, dbCollationsFlag)
- dbCompatibilities := flags.FlagToBoolValue(p, cmd, dbCompatibilitiesFlag)
-
- flavorId := flags.FlagToStringPointer(p, cmd, flavorIdFlag)
- instanceId := flags.FlagToStringPointer(p, cmd, instanceIdFlag)
-
- if !flavors && !versions && !storages && !userRoles && !dbCollations && !dbCompatibilities {
- return nil, fmt.Errorf("%s\n\n%s",
- "please specify at least one category for which to list the available options.",
- "Get details on the available flags by re-running your command with the --help flag.")
- }
-
- if storages && flavorId == nil {
- return nil, fmt.Errorf("%s\n\n%s\n%s",
- `please specify a flavor ID to show storages for by setting the flag "--flavor-id ".`,
- "You can get the available flavor IDs by running:",
- " $ stackit beta sqlserverflex options --flavors")
- }
-
- if (userRoles || dbCollations || dbCompatibilities) && instanceId == nil {
- return nil, fmt.Errorf("%s\n\n%s\n%s",
- `please specify an instance ID to show user roles, database collations or database compatibilities for by setting the flag "--instance-id ".`,
- "You can get the available instances and their IDs by running:",
- " $ stackit beta sqlserverflex instance list")
- }
-
- model := inputModel{
- GlobalFlagModel: globalFlags,
- Flavors: flavors,
- Versions: versions,
- Storages: storages,
- UserRoles: userRoles,
- DBCollations: dbCollations,
- DBCompatibilities: dbCompatibilities,
- FlavorId: flavorId,
- InstanceId: instanceId,
- }
-
- p.DebugInputModel(model)
- return &model, nil
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func buildAndExecuteRequest(ctx context.Context, p *print.Printer, model *inputModel, apiClient sqlserverflex.DefaultAPI) error {
- var flavors []sqlserverflex.ListFlavors
- var versions *sqlserverflex.ListVersionsResponse
- var storages *sqlserverflex.ListStoragesResponse
- var userRoles *sqlserverflex.ListRolesResponse
- var dbCollations *sqlserverflex.ListCollationsResponse
- var dbCompatibilities *sqlserverflex.ListCompatibilityResponse
- var err error
-
- if model.Flavors {
- flavors, err = sqlserverflexUtils.ListAllFlavors(ctx, apiClient, model.ProjectId, model.Region)
- if err != nil {
- return fmt.Errorf("get SQL Server Flex flavors: %w", err)
- }
- }
- if model.Versions {
- versions, err = apiClient.ListVersions(ctx, model.ProjectId, model.Region).Execute()
- if err != nil {
- return fmt.Errorf("get SQL Server Flex versions: %w", err)
- }
- }
- if model.Storages {
- storages, err = apiClient.ListStorages(ctx, model.ProjectId, model.Region, *model.FlavorId).Execute()
- if err != nil {
- return fmt.Errorf("get SQL Server Flex storages: %w", err)
- }
- }
- if model.UserRoles {
- userRoles, err = apiClient.ListRoles(ctx, model.ProjectId, model.Region, *model.InstanceId).Execute()
- if err != nil {
- return fmt.Errorf("get SQL Server Flex user roles: %w", err)
- }
- }
- if model.DBCollations {
- dbCollations, err = apiClient.ListCollations(ctx, model.ProjectId, model.Region, *model.InstanceId).Execute()
- if err != nil {
- return fmt.Errorf("get SQL Server Flex DB collations: %w", err)
- }
- }
- if model.DBCompatibilities {
- dbCompatibilities, err = apiClient.ListCompatibilities(ctx, model.ProjectId, model.Region, *model.InstanceId).Execute()
- if err != nil {
- return fmt.Errorf("get SQL Server Flex DB compatibilities: %w", err)
- }
- }
-
- return outputResult(p, model, flavors, versions, storages, userRoles, dbCollations, dbCompatibilities)
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func outputResult(p *print.Printer, model *inputModel, flavors []sqlserverflex.ListFlavors, versions *sqlserverflex.ListVersionsResponse, storages *sqlserverflex.ListStoragesResponse, userRoles *sqlserverflex.ListRolesResponse, dbCollations *sqlserverflex.ListCollationsResponse, dbCompatibilities *sqlserverflex.ListCompatibilityResponse) error {
- options := &options{}
- if flavors != nil {
- options.Flavors = flavors
- }
- if versions != nil {
- options.Versions = versions.Versions
- }
- if storages != nil && model.FlavorId != nil {
- options.Storages = &flavorStorages{
- FlavorId: *model.FlavorId,
- Storages: storages,
- }
- }
- if userRoles != nil && model.InstanceId != nil {
- options.UserRoles = &instanceUserRoles{
- InstanceId: *model.InstanceId,
- UserRoles: userRoles.Roles,
- }
- }
- if dbCollations != nil && model.InstanceId != nil {
- options.DBCollations = &instanceDBCollations{
- InstanceId: *model.InstanceId,
- DBCollations: dbCollations.Collations,
- }
- }
- if dbCompatibilities != nil && model.InstanceId != nil {
- options.DBCompatibilities = &instanceDBCompatibilities{
- InstanceId: *model.InstanceId,
- DBCompatibilities: dbCompatibilities.Compatibilities,
- }
- }
-
- return p.OutputResult(model.OutputFormat, options, func() error {
- content := []tables.Table{}
- if model.Flavors && len(options.Flavors) != 0 {
- content = append(content, buildFlavorsTable(options.Flavors))
- }
- if model.Versions && len(options.Versions) != 0 {
- content = append(content, buildVersionsTable(options.Versions))
- }
- if model.Storages && options.Storages.Storages != nil && len(options.Storages.Storages.StorageClasses) != 0 {
- content = append(content, buildStoragesTable(*options.Storages.Storages))
- }
- if model.UserRoles && len(options.UserRoles.UserRoles) != 0 {
- content = append(content, buildUserRoles(options.UserRoles))
- }
- if model.DBCompatibilities && len(options.DBCompatibilities.DBCompatibilities) != 0 {
- content = append(content, buildDBCompatibilitiesTable(options.DBCompatibilities.DBCompatibilities))
- }
- // Rendered at last because table is very long
- if model.DBCollations && len(options.DBCollations.DBCollations) != 0 {
- content = append(content, buildDBCollationsTable(options.DBCollations.DBCollations))
- }
-
- err := tables.DisplayTables(p, content)
- if err != nil {
- return fmt.Errorf("display output: %w", err)
- }
-
- return nil
- })
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func buildFlavorsTable(flavors []sqlserverflex.ListFlavors) tables.Table {
- table := tables.NewTable()
- table.SetTitle("Flavors")
- table.SetHeader("ID", "CPU", "MEMORY", "DESCRIPTION")
- for i := range flavors {
- f := flavors[i]
- table.AddRow(f.Id, f.Cpu, f.Memory, f.Description)
- }
- return table
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func buildVersionsTable(versions []sqlserverflex.Version) tables.Table {
- table := tables.NewTable()
- table.SetTitle("Versions")
- table.SetHeader("VERSION", "RECOMMENDED", "BETA", "DEPRECATED")
- for i := range versions {
- v := versions[i]
- table.AddRow(v.Version, v.Recommend, v.Beta, v.Deprecated)
- }
- return table
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func buildStoragesTable(storagesResp sqlserverflex.ListStoragesResponse) tables.Table {
- storages := storagesResp.StorageClasses
- table := tables.NewTable()
- table.SetTitle("Storages")
- table.SetHeader("MINIMUM", "MAXIMUM", "STORAGE CLASS")
- for i := range storages {
- sc := storages[i]
- table.AddRow(storagesResp.StorageRange.Min, storagesResp.StorageRange.Max, sc.Class)
- }
- table.EnableAutoMergeOnColumns(1, 2, 3)
- return table
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func buildUserRoles(roles *instanceUserRoles) tables.Table {
- table := tables.NewTable()
- table.SetTitle("User Roles")
- table.SetHeader("ROLE")
- for i := range roles.UserRoles {
- table.AddRow(roles.UserRoles[i])
- }
- return table
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func buildDBCollationsTable(dbCollations []sqlserverflex.DatabaseGetcollation) tables.Table {
- table := tables.NewTable()
- table.SetTitle("DB Collations")
- table.SetHeader("NAME", "DESCRIPTION")
- for i := range dbCollations {
- table.AddRow(
- utils.PtrString(dbCollations[i].CollationName),
- utils.PtrString(dbCollations[i].Description),
- )
- }
- return table
-}
-
-// Deprecated: Will be removed after 2027-02-28.
-func buildDBCompatibilitiesTable(dbCompatibilities []sqlserverflex.DatabaseGetcompatibility) tables.Table {
- table := tables.NewTable()
- table.SetTitle("DB Compatibilities")
- table.SetHeader("COMPATIBILITY LEVEL", "DESCRIPTION")
- for i := range dbCompatibilities {
- table.AddRow(
- utils.PtrString(dbCompatibilities[i].CompatibilityLevel),
- utils.PtrString(dbCompatibilities[i].Description),
- )
- }
- return table
-}
diff --git a/internal/cmd/beta/sqlserverflex/options/options_test.go b/internal/cmd/beta/sqlserverflex/options/options_test.go
deleted file mode 100644
index 5d028bcb6..000000000
--- a/internal/cmd/beta/sqlserverflex/options/options_test.go
+++ /dev/null
@@ -1,511 +0,0 @@
-package options
-
-import (
- "context"
- "fmt"
- "testing"
-
- "github.com/google/uuid"
- sqlserverflex "github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex/v3api"
-
- "github.com/stackitcloud/stackit-cli/internal/pkg/testparams"
-
- "github.com/stackitcloud/stackit-cli/internal/pkg/globalflags"
- "github.com/stackitcloud/stackit-cli/internal/pkg/testutils"
- "github.com/stackitcloud/stackit-cli/internal/pkg/utils"
-)
-
-type testCtxKey struct{}
-
-var testCtx = context.WithValue(context.Background(), testCtxKey{}, "foo")
-var testInstanceId = uuid.NewString()
-
-type mockSettings struct {
- listFlavorsFails bool
- listVersionsFails bool
- listStoragesFails bool
- listUserRolesFails bool
- listDBCollationsFails bool
- listDBCompatibilitiesFails bool
-
- listFlavorsCalled bool
- listVersionsCalled bool
- listStoragesCalled bool
- listUserRolesCalled bool
- listDBCollationsCalled bool
- listDBCompatibilitiesCalled bool
-}
-
-func newAPIMock(s *mockSettings) sqlserverflex.DefaultAPI {
- return &sqlserverflex.DefaultAPIServiceMock{
- ListFlavorsExecuteMock: utils.Ptr(func(_ sqlserverflex.ApiListFlavorsRequest) (*sqlserverflex.ListFlavorsResponse, error) {
- s.listFlavorsCalled = true
- if s.listFlavorsFails {
- return nil, fmt.Errorf("list flavors failed")
- }
- return utils.Ptr(sqlserverflex.ListFlavorsResponse{
- Flavors: []sqlserverflex.ListFlavors{},
- }), nil
- }),
- ListVersionsExecuteMock: utils.Ptr(func(_ sqlserverflex.ApiListVersionsRequest) (*sqlserverflex.ListVersionsResponse, error) {
- s.listVersionsCalled = true
- if s.listVersionsFails {
- return nil, fmt.Errorf("list versions failed")
- }
- return utils.Ptr(sqlserverflex.ListVersionsResponse{
- Versions: []sqlserverflex.Version{},
- }), nil
- }),
- ListStoragesExecuteMock: utils.Ptr(func(_ sqlserverflex.ApiListStoragesRequest) (*sqlserverflex.ListStoragesResponse, error) {
- s.listStoragesCalled = true
- if s.listStoragesFails {
- return nil, fmt.Errorf("list storages failed")
- }
- return utils.Ptr(sqlserverflex.ListStoragesResponse{
- StorageClasses: []sqlserverflex.FlavorStorageClassesStorageClass{},
- StorageRange: sqlserverflex.FlavorStorageRange{
- Min: int32(10),
- Max: int32(100),
- },
- }), nil
- }),
- ListRolesExecuteMock: utils.Ptr(func(_ sqlserverflex.ApiListRolesRequest) (*sqlserverflex.ListRolesResponse, error) {
- s.listUserRolesCalled = true
- if s.listUserRolesFails {
- return nil, fmt.Errorf("list roles failed")
- }
- return utils.Ptr(sqlserverflex.ListRolesResponse{
- Roles: []string{},
- }), nil
- }),
- ListCollationsExecuteMock: utils.Ptr(func(_ sqlserverflex.ApiListCollationsRequest) (*sqlserverflex.ListCollationsResponse, error) {
- s.listDBCollationsCalled = true
- if s.listDBCollationsFails {
- return nil, fmt.Errorf("list collations failed")
- }
- return utils.Ptr(sqlserverflex.ListCollationsResponse{
- Collations: []sqlserverflex.DatabaseGetcollation{},
- }), nil
- }),
- ListCompatibilitiesExecuteMock: utils.Ptr(func(_ sqlserverflex.ApiListCompatibilitiesRequest) (*sqlserverflex.ListCompatibilityResponse, error) {
- s.listDBCompatibilitiesCalled = true
- if s.listDBCompatibilitiesFails {
- return nil, fmt.Errorf("list compatibilities failed")
- }
- return utils.Ptr(sqlserverflex.ListCompatibilityResponse{
- Compatibilities: []sqlserverflex.DatabaseGetcompatibility{},
- }), nil
- }),
- }
-}
-
-func fixtureFlagValues(mods ...func(flagValues map[string]string)) map[string]string {
- flagValues := map[string]string{
- flavorsFlag: "true",
- versionsFlag: "true",
- storagesFlag: "true",
- userRolesFlag: "true",
- dbCollationsFlag: "true",
- dbCompatibilitiesFlag: "true",
- flavorIdFlag: "2.4",
- instanceIdFlag: testInstanceId,
- }
- for _, mod := range mods {
- mod(flagValues)
- }
- return flagValues
-}
-
-func fixtureInputModelAllFalse(mods ...func(model *inputModel)) *inputModel {
- model := &inputModel{
- GlobalFlagModel: &globalflags.GlobalFlagModel{Verbosity: globalflags.VerbosityDefault},
- Flavors: false,
- Versions: false,
- Storages: false,
- UserRoles: false,
- DBCollations: false,
- DBCompatibilities: false,
- }
- for _, mod := range mods {
- mod(model)
- }
- return model
-}
-
-func fixtureInputModelAllTrue(mods ...func(model *inputModel)) *inputModel {
- model := &inputModel{
- GlobalFlagModel: &globalflags.GlobalFlagModel{Verbosity: globalflags.VerbosityDefault},
- Flavors: true,
- Versions: true,
- Storages: true,
- UserRoles: true,
- DBCollations: true,
- DBCompatibilities: true,
- FlavorId: utils.Ptr("2.4"),
- InstanceId: utils.Ptr(testInstanceId),
- }
- for _, mod := range mods {
- mod(model)
- }
- return model
-}
-
-func TestParseInput(t *testing.T) {
- tests := []struct {
- description string
- argValues []string
- flagValues map[string]string
- isValid bool
- expectedModel *inputModel
- }{
- {
- description: "all values",
- flagValues: fixtureFlagValues(),
- isValid: true,
- expectedModel: fixtureInputModelAllTrue(),
- },
- {
- description: "no values",
- flagValues: map[string]string{},
- isValid: false,
- },
- {
- description: "some values 1",
- flagValues: fixtureFlagValues(func(flagValues map[string]string) {
- flagValues[storagesFlag] = "false"
- delete(flagValues, flavorIdFlag)
- }),
- isValid: true,
- expectedModel: fixtureInputModelAllTrue(func(model *inputModel) {
- model.Storages = false
- model.FlavorId = nil
- }),
- },
- {
- description: "some values 2",
- flagValues: fixtureFlagValues(func(flagValues map[string]string) {
- delete(flagValues, flavorsFlag)
- delete(flagValues, versionsFlag)
- delete(flagValues, userRolesFlag)
- flagValues[storagesFlag] = "true"
- flagValues[flavorIdFlag] = "2.4"
- }),
- isValid: true,
- expectedModel: fixtureInputModelAllTrue(func(model *inputModel) {
- model.Flavors = false
- model.Versions = false
- model.UserRoles = false
- }),
- },
- {
- description: "storages without flavor-id",
- flagValues: fixtureFlagValues(func(flagValues map[string]string) {
- delete(flagValues, flavorIdFlag)
- }),
- isValid: false,
- },
- {
- description: "flavor-id without storage",
- flagValues: fixtureFlagValues(func(flagValues map[string]string) {
- delete(flagValues, storagesFlag)
- }),
- isValid: true,
- expectedModel: fixtureInputModelAllTrue(func(model *inputModel) {
- model.Storages = false
- }),
- },
- {
- description: "user roles without instance id",
- flagValues: fixtureFlagValues(func(flagValues map[string]string) {
- delete(flagValues, instanceIdFlag)
- delete(flagValues, dbCollationsFlag)
- delete(flagValues, dbCompatibilitiesFlag)
- }),
- isValid: false,
- },
- {
- description: "db collations without instance id",
- flagValues: fixtureFlagValues(func(flagValues map[string]string) {
- delete(flagValues, instanceIdFlag)
- delete(flagValues, userRolesFlag)
- delete(flagValues, dbCompatibilitiesFlag)
- }),
- isValid: false,
- },
- {
- description: "db compatibilities without instance id",
- flagValues: fixtureFlagValues(func(flagValues map[string]string) {
- delete(flagValues, instanceIdFlag)
- delete(flagValues, userRolesFlag)
- delete(flagValues, dbCollationsFlag)
- }),
- isValid: false,
- },
- {
- description: "instance id without user roles, db collations and db compatibilities",
- flagValues: fixtureFlagValues(func(flagValues map[string]string) {
- delete(flagValues, userRolesFlag)
- delete(flagValues, dbCollationsFlag)
- delete(flagValues, dbCompatibilitiesFlag)
- }),
- isValid: true,
- expectedModel: fixtureInputModelAllTrue(func(model *inputModel) {
- model.UserRoles = false
- model.DBCollations = false
- model.DBCompatibilities = false
- }),
- },
- }
-
- for _, tt := range tests {
- t.Run(tt.description, func(t *testing.T) {
- testutils.TestParseInput(t, NewCmd, parseInput, tt.expectedModel, tt.argValues, tt.flagValues, tt.isValid)
- })
- }
-}
-
-func TestBuildAndExecuteRequest(t *testing.T) {
- tests := []struct {
- description string
- model *inputModel
- isValid bool
- listFlavorsFails bool
- listVersionsFails bool
- listStoragesFails bool
- listUserRolesFails bool
- listDBCollationsFails bool
- listDBCompatibilitiesFails bool
-
- expectListFlavorsCalled bool
- expectListVersionsCalled bool
- expectListStoragesCalled bool
- expectListUserRolesCalled bool
- expectListDBCollationsCalled bool
- expectListDBCompatibilitiesCalled bool
- }{
- {
- description: "all values",
- model: fixtureInputModelAllTrue(),
- isValid: true,
- expectListFlavorsCalled: true,
- expectListVersionsCalled: true,
- expectListStoragesCalled: true,
- expectListUserRolesCalled: true,
- expectListDBCollationsCalled: true,
- expectListDBCompatibilitiesCalled: true,
- },
- {
- description: "no values",
- model: fixtureInputModelAllFalse(),
- isValid: true,
- expectListFlavorsCalled: false,
- expectListVersionsCalled: false,
- expectListStoragesCalled: false,
- expectListUserRolesCalled: false,
- expectListDBCollationsCalled: false,
- expectListDBCompatibilitiesCalled: false,
- },
- {
- description: "only flavors",
- model: fixtureInputModelAllFalse(func(model *inputModel) { model.Flavors = true }),
- isValid: true,
- expectListFlavorsCalled: true,
- },
- {
- description: "only versions",
- model: fixtureInputModelAllFalse(func(model *inputModel) { model.Versions = true }),
- isValid: true,
- expectListVersionsCalled: true,
- },
- {
- description: "only storages",
- model: fixtureInputModelAllFalse(func(model *inputModel) {
- model.Storages = true
- model.FlavorId = utils.Ptr("2.4")
- }),
- isValid: true,
- expectListStoragesCalled: true,
- },
- {
- description: "only user roles",
- model: fixtureInputModelAllFalse(func(model *inputModel) {
- model.UserRoles = true
- model.InstanceId = utils.Ptr(testInstanceId)
- }),
- isValid: true,
- expectListUserRolesCalled: true,
- },
- {
- description: "only db collations",
- model: fixtureInputModelAllFalse(func(model *inputModel) {
- model.DBCollations = true
- model.InstanceId = utils.Ptr(testInstanceId)
- }),
- isValid: true,
- expectListDBCollationsCalled: true,
- },
- {
- description: "only db compatibilities",
- model: fixtureInputModelAllFalse(func(model *inputModel) {
- model.DBCompatibilities = true
- model.InstanceId = utils.Ptr(testInstanceId)
- }),
- isValid: true,
- expectListDBCompatibilitiesCalled: true,
- },
- {
- description: "list flavors fails",
- model: fixtureInputModelAllTrue(),
- isValid: false,
- listFlavorsFails: true,
- expectListFlavorsCalled: true,
- expectListVersionsCalled: false,
- expectListStoragesCalled: false,
- expectListUserRolesCalled: false,
- expectListDBCollationsCalled: false,
- expectListDBCompatibilitiesCalled: false,
- },
- {
- description: "list versions fails",
- model: fixtureInputModelAllTrue(),
- isValid: false,
- listVersionsFails: true,
- expectListFlavorsCalled: true,
- expectListVersionsCalled: true,
- expectListStoragesCalled: false,
- expectListUserRolesCalled: false,
- expectListDBCollationsCalled: false,
- expectListDBCompatibilitiesCalled: false,
- },
- {
- description: "list storages fails",
- model: fixtureInputModelAllTrue(),
- isValid: false,
- listStoragesFails: true,
- expectListFlavorsCalled: true,
- expectListVersionsCalled: true,
- expectListStoragesCalled: true,
- expectListUserRolesCalled: false,
- expectListDBCollationsCalled: false,
- expectListDBCompatibilitiesCalled: false,
- },
- {
- description: "list user roles fails",
- model: fixtureInputModelAllTrue(),
- isValid: false,
- listUserRolesFails: true,
- expectListFlavorsCalled: true,
- expectListVersionsCalled: true,
- expectListStoragesCalled: true,
- expectListUserRolesCalled: true,
- expectListDBCollationsCalled: false,
- expectListDBCompatibilitiesCalled: false,
- },
- {
- description: "list db collations fails",
- model: fixtureInputModelAllTrue(),
- isValid: false,
- listDBCollationsFails: true,
- expectListFlavorsCalled: true,
- expectListVersionsCalled: true,
- expectListStoragesCalled: true,
- expectListUserRolesCalled: true,
- expectListDBCollationsCalled: true,
- expectListDBCompatibilitiesCalled: false,
- },
- {
- description: "list db compatibilities fails",
- model: fixtureInputModelAllTrue(),
- isValid: false,
- listDBCompatibilitiesFails: true,
- expectListFlavorsCalled: true,
- expectListVersionsCalled: true,
- expectListStoragesCalled: true,
- expectListUserRolesCalled: true,
- expectListDBCollationsCalled: true,
- expectListDBCompatibilitiesCalled: true,
- },
- }
-
- for _, tt := range tests {
- t.Run(tt.description, func(t *testing.T) {
- params := testparams.NewTestParams()
- settings := mockSettings{
- listFlavorsFails: tt.listFlavorsFails,
- listVersionsFails: tt.listVersionsFails,
- listStoragesFails: tt.listStoragesFails,
- listUserRolesFails: tt.listUserRolesFails,
- listDBCollationsFails: tt.listDBCollationsFails,
- listDBCompatibilitiesFails: tt.listDBCompatibilitiesFails,
- }
-
- err := buildAndExecuteRequest(testCtx, params.Printer, tt.model, newAPIMock(&settings))
- if err != nil && tt.isValid {
- t.Fatalf("error building and executing request: %v", err)
- }
- if err == nil && !tt.isValid {
- t.Fatalf("did not fail on invalid input")
- }
- if !tt.isValid {
- return
- }
-
- if tt.expectListFlavorsCalled != settings.listFlavorsCalled {
- t.Fatalf("expected listFlavorsCalled to be %v, got %v", tt.expectListFlavorsCalled, settings.listFlavorsCalled)
- }
- if tt.expectListVersionsCalled != settings.listVersionsCalled {
- t.Fatalf("expected listVersionsCalled to be %v, got %v", tt.expectListVersionsCalled, settings.listVersionsCalled)
- }
- if tt.expectListStoragesCalled != settings.listStoragesCalled {
- t.Fatalf("expected listStoragesCalled to be %v, got %v", tt.expectListStoragesCalled, settings.listStoragesCalled)
- }
- })
- }
-}
-
-func TestOutputResult(t *testing.T) {
- type args struct {
- model *inputModel
- flavors []sqlserverflex.ListFlavors
- versions *sqlserverflex.ListVersionsResponse
- storages *sqlserverflex.ListStoragesResponse
- userRoles *sqlserverflex.ListRolesResponse
- dbCollations *sqlserverflex.ListCollationsResponse
- dbCompatibilities *sqlserverflex.ListCompatibilityResponse
- }
- tests := []struct {
- name string
- args args
- wantErr bool
- }{
- {
- name: "empty - only model",
- args: args{
- model: fixtureInputModelAllFalse(),
- },
- wantErr: false,
- },
- {
- name: "all input set",
- args: args{
- model: fixtureInputModelAllTrue(),
- flavors: []sqlserverflex.ListFlavors{},
- versions: &sqlserverflex.ListVersionsResponse{Versions: []sqlserverflex.Version{}},
- storages: &sqlserverflex.ListStoragesResponse{StorageClasses: []sqlserverflex.FlavorStorageClassesStorageClass{}},
- userRoles: &sqlserverflex.ListRolesResponse{Roles: []string{}},
- dbCollations: &sqlserverflex.ListCollationsResponse{Collations: []sqlserverflex.DatabaseGetcollation{}},
- dbCompatibilities: &sqlserverflex.ListCompatibilityResponse{Compatibilities: []sqlserverflex.DatabaseGetcompatibility{}},
- },
- wantErr: false,
- },
- }
- params := testparams.NewTestParams()
-
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if err := outputResult(params.Printer, tt.args.model, tt.args.flavors, tt.args.versions, tt.args.storages, tt.args.userRoles, tt.args.dbCollations, tt.args.dbCompatibilities); (err != nil) != tt.wantErr {
- t.Errorf("outputResult() error = %v, wantErr %v", err, tt.wantErr)
- }
- })
- }
-}
diff --git a/internal/cmd/root.go b/internal/cmd/root.go
index 72d41c1c9..45118444a 100644
--- a/internal/cmd/root.go
+++ b/internal/cmd/root.go
@@ -5,6 +5,7 @@ import (
"strings"
"time"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
affinityGroups "github.com/stackitcloud/stackit-cli/internal/cmd/affinity-groups"
@@ -203,6 +204,7 @@ func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
cmd.AddCommand(affinityGroups.NewCmd(params))
cmd.AddCommand(git.NewCmd(params))
cmd.AddCommand(kms.NewCmd(params))
+ cmd.AddCommand(sqlserverflex.NewCmd(params))
}
// traverseCommands calls f for c and all of its children.
diff --git a/internal/cmd/beta/sqlserverflex/database/create/create.go b/internal/cmd/sqlserverflex/database/create/create.go
similarity index 97%
rename from internal/cmd/beta/sqlserverflex/database/create/create.go
rename to internal/cmd/sqlserverflex/database/create/create.go
index 0251bd609..fadf0257f 100644
--- a/internal/cmd/beta/sqlserverflex/database/create/create.go
+++ b/internal/cmd/sqlserverflex/database/create/create.go
@@ -46,7 +46,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Create a SQLServer Flex database with name "my-database" on instance with ID "xxx"`,
- "$ stackit beta sqlserverflex database create my-database --instance-id xxx --owner some-username"),
+ "$ stackit sqlserverflex database create my-database --instance-id xxx --owner some-username"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/database/create/create_test.go b/internal/cmd/sqlserverflex/database/create/create_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/database/create/create_test.go
rename to internal/cmd/sqlserverflex/database/create/create_test.go
diff --git a/internal/cmd/beta/sqlserverflex/database/database.go b/internal/cmd/sqlserverflex/database/database.go
similarity index 69%
rename from internal/cmd/beta/sqlserverflex/database/database.go
rename to internal/cmd/sqlserverflex/database/database.go
index 75113d255..22c96702c 100644
--- a/internal/cmd/beta/sqlserverflex/database/database.go
+++ b/internal/cmd/sqlserverflex/database/database.go
@@ -1,10 +1,10 @@
package database
import (
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/database/create"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/database/delete"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/database/describe"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/database/list"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/database/create"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/database/delete"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/database/describe"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/database/list"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
diff --git a/internal/cmd/beta/sqlserverflex/database/delete/delete.go b/internal/cmd/sqlserverflex/database/delete/delete.go
similarity index 97%
rename from internal/cmd/beta/sqlserverflex/database/delete/delete.go
rename to internal/cmd/sqlserverflex/database/delete/delete.go
index 3fc6fd933..18eaaf553 100644
--- a/internal/cmd/beta/sqlserverflex/database/delete/delete.go
+++ b/internal/cmd/sqlserverflex/database/delete/delete.go
@@ -43,7 +43,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Delete a SQLServer Flex database with name "my-database" of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex database delete my-database --instance-id xxx"),
+ "$ stackit sqlserverflex database delete my-database --instance-id xxx"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/database/delete/delete_test.go b/internal/cmd/sqlserverflex/database/delete/delete_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/database/delete/delete_test.go
rename to internal/cmd/sqlserverflex/database/delete/delete_test.go
diff --git a/internal/cmd/beta/sqlserverflex/database/describe/describe.go b/internal/cmd/sqlserverflex/database/describe/describe.go
similarity index 95%
rename from internal/cmd/beta/sqlserverflex/database/describe/describe.go
rename to internal/cmd/sqlserverflex/database/describe/describe.go
index 2bb092448..1b6be7d22 100644
--- a/internal/cmd/beta/sqlserverflex/database/describe/describe.go
+++ b/internal/cmd/sqlserverflex/database/describe/describe.go
@@ -40,10 +40,10 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Get details of an SQLServer Flex database with name "my-database" of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex database describe my-database --instance-id xxx"),
+ "$ stackit sqlserverflex database describe my-database --instance-id xxx"),
examples.NewExample(
`Get details of an SQLServer Flex database with name "my-database" of instance with ID "xxx" in JSON format`,
- "$ stackit beta sqlserverflex database describe my-database --instance-id xxx --output-format json"),
+ "$ stackit sqlserverflex database describe my-database --instance-id xxx --output-format json"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/database/describe/describe_test.go b/internal/cmd/sqlserverflex/database/describe/describe_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/database/describe/describe_test.go
rename to internal/cmd/sqlserverflex/database/describe/describe_test.go
diff --git a/internal/cmd/beta/sqlserverflex/database/list/list.go b/internal/cmd/sqlserverflex/database/list/list.go
similarity index 94%
rename from internal/cmd/beta/sqlserverflex/database/list/list.go
rename to internal/cmd/sqlserverflex/database/list/list.go
index 5d90aa0e7..bde279a0c 100644
--- a/internal/cmd/beta/sqlserverflex/database/list/list.go
+++ b/internal/cmd/sqlserverflex/database/list/list.go
@@ -40,13 +40,13 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`List all SQLServer Flex databases of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex database list --instance-id xxx"),
+ "$ stackit sqlserverflex database list --instance-id xxx"),
examples.NewExample(
`List all SQLServer Flex databases of instance with ID "xxx" in JSON format`,
- "$ stackit beta sqlserverflex database list --instance-id xxx --output-format json"),
+ "$ stackit sqlserverflex database list --instance-id xxx --output-format json"),
examples.NewExample(
`List up to 10 SQLServer Flex databases of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex database list --instance-id xxx --limit 10"),
+ "$ stackit sqlserverflex database list --instance-id xxx --limit 10"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/database/list/list_test.go b/internal/cmd/sqlserverflex/database/list/list_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/database/list/list_test.go
rename to internal/cmd/sqlserverflex/database/list/list_test.go
diff --git a/internal/cmd/beta/sqlserverflex/flavor/describe/describe.go b/internal/cmd/sqlserverflex/flavor/describe/describe.go
similarity index 98%
rename from internal/cmd/beta/sqlserverflex/flavor/describe/describe.go
rename to internal/cmd/sqlserverflex/flavor/describe/describe.go
index 9e7984545..91fa0bcca 100644
--- a/internal/cmd/beta/sqlserverflex/flavor/describe/describe.go
+++ b/internal/cmd/sqlserverflex/flavor/describe/describe.go
@@ -37,7 +37,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Show SQLServer Flex flavor details`,
- "$ stackit beta sqlserverflex flavor describe xxx"),
+ "$ stackit sqlserverflex flavor describe xxx"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/flavor/describe/describe_test.go b/internal/cmd/sqlserverflex/flavor/describe/describe_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/flavor/describe/describe_test.go
rename to internal/cmd/sqlserverflex/flavor/describe/describe_test.go
diff --git a/internal/cmd/beta/sqlserverflex/flavor/flavor.go b/internal/cmd/sqlserverflex/flavor/flavor.go
similarity index 80%
rename from internal/cmd/beta/sqlserverflex/flavor/flavor.go
rename to internal/cmd/sqlserverflex/flavor/flavor.go
index 89e6862dc..c6023aa38 100644
--- a/internal/cmd/beta/sqlserverflex/flavor/flavor.go
+++ b/internal/cmd/sqlserverflex/flavor/flavor.go
@@ -1,8 +1,8 @@
package flavor
import (
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/flavor/describe"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/flavor/list"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/flavor/describe"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/flavor/list"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
diff --git a/internal/cmd/beta/sqlserverflex/flavor/list/list.go b/internal/cmd/sqlserverflex/flavor/list/list.go
similarity index 96%
rename from internal/cmd/beta/sqlserverflex/flavor/list/list.go
rename to internal/cmd/sqlserverflex/flavor/list/list.go
index 4d0c58789..d2636a0af 100644
--- a/internal/cmd/beta/sqlserverflex/flavor/list/list.go
+++ b/internal/cmd/sqlserverflex/flavor/list/list.go
@@ -37,10 +37,10 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`List SQLServer Flex flavors`,
- "$ stackit beta sqlserverflex flavor list"),
+ "$ stackit sqlserverflex flavor list"),
examples.NewExample(
`List up to 10 SQLServer Flex flavors`,
- "$ stackit beta sqlserverflex flavor list --limit 10"),
+ "$ stackit sqlserverflex flavor list --limit 10"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/flavor/list/list_test.go b/internal/cmd/sqlserverflex/flavor/list/list_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/flavor/list/list_test.go
rename to internal/cmd/sqlserverflex/flavor/list/list_test.go
diff --git a/internal/cmd/beta/sqlserverflex/instance/create/create.go b/internal/cmd/sqlserverflex/instance/create/create.go
similarity index 95%
rename from internal/cmd/beta/sqlserverflex/instance/create/create.go
rename to internal/cmd/sqlserverflex/instance/create/create.go
index d121b57c9..d24076dad 100644
--- a/internal/cmd/beta/sqlserverflex/instance/create/create.go
+++ b/internal/cmd/sqlserverflex/instance/create/create.go
@@ -78,11 +78,11 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Create a SQLServer Flex instance with name "my-instance" and specify flavor by ID.
- The flavor ID can be retrieved by running "$ stackit beta sqlserverflex flavor list"`,
- `$ stackit beta sqlserverflex instance create --name my-instance --flavor-id xxx --backup-schedule "0 2 * * *" --retention-days 30 --storage-class premium-perf2-stackit --storage-size 10 --version 2022 --acl 1.2.3.0/24`),
+ The flavor ID can be retrieved by running "$ stackit sqlserverflex flavor list"`,
+ `$ stackit sqlserverflex instance create --name my-instance --flavor-id xxx --backup-schedule "0 2 * * *" --retention-days 30 --storage-class premium-perf2-stackit --storage-size 10 --version 2022 --acl 1.2.3.0/24`),
examples.NewExample(
`Create a SQLServer Flex instance with name "my-instance", specify flavor by ID, set storage size to 20 GB, and restrict access to a specific range of IP addresses.`,
- `$ stackit beta sqlserverflex instance create --name my-instance --flavor-id xxx --storage-size 20 --backup-schedule "0 2 * * *" --retention-days 30 --storage-class premium-perf2-stackit --version 2022 --acl 1.2.3.0/24`),
+ `$ stackit sqlserverflex instance create --name my-instance --flavor-id xxx --storage-size 20 --backup-schedule "0 2 * * *" --retention-days 30 --storage-class premium-perf2-stackit --version 2022 --acl 1.2.3.0/24`),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/instance/create/create_test.go b/internal/cmd/sqlserverflex/instance/create/create_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/instance/create/create_test.go
rename to internal/cmd/sqlserverflex/instance/create/create_test.go
diff --git a/internal/cmd/beta/sqlserverflex/instance/db-collation/db_collation.go b/internal/cmd/sqlserverflex/instance/db-collation/db_collation.go
similarity index 87%
rename from internal/cmd/beta/sqlserverflex/instance/db-collation/db_collation.go
rename to internal/cmd/sqlserverflex/instance/db-collation/db_collation.go
index a31f558e4..14cfc6fe1 100644
--- a/internal/cmd/beta/sqlserverflex/instance/db-collation/db_collation.go
+++ b/internal/cmd/sqlserverflex/instance/db-collation/db_collation.go
@@ -1,7 +1,7 @@
package dbcollation
import (
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/db-collation/list"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/db-collation/list"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
diff --git a/internal/cmd/beta/sqlserverflex/instance/db-collation/list/list.go b/internal/cmd/sqlserverflex/instance/db-collation/list/list.go
similarity index 94%
rename from internal/cmd/beta/sqlserverflex/instance/db-collation/list/list.go
rename to internal/cmd/sqlserverflex/instance/db-collation/list/list.go
index e80c3962c..8dded3cc4 100644
--- a/internal/cmd/beta/sqlserverflex/instance/db-collation/list/list.go
+++ b/internal/cmd/sqlserverflex/instance/db-collation/list/list.go
@@ -42,13 +42,13 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`List SQLServer Flex database collations of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex instance db-collation list --instance-id xxx"),
+ "$ stackit sqlserverflex instance db-collation list --instance-id xxx"),
examples.NewExample(
`List SQLServer Flex database collations of instance with ID "xxx" in JSON format`,
- "$ stackit beta sqlserverflex instance db-collation list --instance-id xxx --output-format json"),
+ "$ stackit sqlserverflex instance db-collation list --instance-id xxx --output-format json"),
examples.NewExample(
`List up to 10 SQLServer Flex database collations of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex instance db-collation list --instance-id xxx --limit 10"),
+ "$ stackit sqlserverflex instance db-collation list --instance-id xxx --limit 10"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/instance/db-collation/list/list_test.go b/internal/cmd/sqlserverflex/instance/db-collation/list/list_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/instance/db-collation/list/list_test.go
rename to internal/cmd/sqlserverflex/instance/db-collation/list/list_test.go
diff --git a/internal/cmd/beta/sqlserverflex/instance/db-compatibility/db_compatibility.go b/internal/cmd/sqlserverflex/instance/db-compatibility/db_compatibility.go
similarity index 87%
rename from internal/cmd/beta/sqlserverflex/instance/db-compatibility/db_compatibility.go
rename to internal/cmd/sqlserverflex/instance/db-compatibility/db_compatibility.go
index 9f2ede561..69fc04332 100644
--- a/internal/cmd/beta/sqlserverflex/instance/db-compatibility/db_compatibility.go
+++ b/internal/cmd/sqlserverflex/instance/db-compatibility/db_compatibility.go
@@ -1,7 +1,7 @@
package dbcompatibility
import (
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/db-compatibility/list"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/db-compatibility/list"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
diff --git a/internal/cmd/beta/sqlserverflex/instance/db-compatibility/list/list.go b/internal/cmd/sqlserverflex/instance/db-compatibility/list/list.go
similarity index 94%
rename from internal/cmd/beta/sqlserverflex/instance/db-compatibility/list/list.go
rename to internal/cmd/sqlserverflex/instance/db-compatibility/list/list.go
index 39c54a7f1..c478e19a0 100644
--- a/internal/cmd/beta/sqlserverflex/instance/db-compatibility/list/list.go
+++ b/internal/cmd/sqlserverflex/instance/db-compatibility/list/list.go
@@ -42,13 +42,13 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`List SQLServer Flex database compatibilities of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex instance db-compatibility list --instance-id xxx"),
+ "$ stackit sqlserverflex instance db-compatibility list --instance-id xxx"),
examples.NewExample(
`List SQLServer Flex database compatibilities of instance with ID "xxx" in JSON format`,
- "$ stackit beta sqlserverflex instance db-compatibility list --instance-id xxx --output-format json"),
+ "$ stackit sqlserverflex instance db-compatibility list --instance-id xxx --output-format json"),
examples.NewExample(
`List up to 10 SQLServer Flex database compatibilities of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex instance db-compatibility list --instance-id xxx --limit 10"),
+ "$ stackit sqlserverflex instance db-compatibility list --instance-id xxx --limit 10"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/instance/db-compatibility/list/list_test.go b/internal/cmd/sqlserverflex/instance/db-compatibility/list/list_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/instance/db-compatibility/list/list_test.go
rename to internal/cmd/sqlserverflex/instance/db-compatibility/list/list_test.go
diff --git a/internal/cmd/beta/sqlserverflex/instance/delete/delete.go b/internal/cmd/sqlserverflex/instance/delete/delete.go
similarity index 98%
rename from internal/cmd/beta/sqlserverflex/instance/delete/delete.go
rename to internal/cmd/sqlserverflex/instance/delete/delete.go
index f662ffcb0..b07393899 100644
--- a/internal/cmd/beta/sqlserverflex/instance/delete/delete.go
+++ b/internal/cmd/sqlserverflex/instance/delete/delete.go
@@ -39,7 +39,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Delete a SQLServer Flex instance with ID "xxx"`,
- "$ stackit beta sqlserverflex instance delete xxx"),
+ "$ stackit sqlserverflex instance delete xxx"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/instance/delete/delete_test.go b/internal/cmd/sqlserverflex/instance/delete/delete_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/instance/delete/delete_test.go
rename to internal/cmd/sqlserverflex/instance/delete/delete_test.go
diff --git a/internal/cmd/beta/sqlserverflex/instance/describe/describe.go b/internal/cmd/sqlserverflex/instance/describe/describe.go
similarity index 96%
rename from internal/cmd/beta/sqlserverflex/instance/describe/describe.go
rename to internal/cmd/sqlserverflex/instance/describe/describe.go
index dba4a5b26..87a6b760e 100644
--- a/internal/cmd/beta/sqlserverflex/instance/describe/describe.go
+++ b/internal/cmd/sqlserverflex/instance/describe/describe.go
@@ -39,10 +39,10 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Get details of a SQLServer Flex instance with ID "xxx"`,
- "$ stackit beta sqlserverflex instance describe xxx"),
+ "$ stackit sqlserverflex instance describe xxx"),
examples.NewExample(
`Get details of a SQLServer Flex instance with ID "xxx" in JSON format`,
- "$ stackit beta sqlserverflex instance describe xxx --output-format json"),
+ "$ stackit sqlserverflex instance describe xxx --output-format json"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/instance/describe/describe_test.go b/internal/cmd/sqlserverflex/instance/describe/describe_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/instance/describe/describe_test.go
rename to internal/cmd/sqlserverflex/instance/describe/describe_test.go
diff --git a/internal/cmd/beta/sqlserverflex/instance/instance.go b/internal/cmd/sqlserverflex/instance/instance.go
similarity index 59%
rename from internal/cmd/beta/sqlserverflex/instance/instance.go
rename to internal/cmd/sqlserverflex/instance/instance.go
index f3aa733f4..aafc63fee 100644
--- a/internal/cmd/beta/sqlserverflex/instance/instance.go
+++ b/internal/cmd/sqlserverflex/instance/instance.go
@@ -1,14 +1,14 @@
package instance
import (
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/create"
- dbcollation "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/db-collation"
- dbcompatibility "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/db-compatibility"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/delete"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/describe"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/list"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/update"
- userrole "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/user-role"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/create"
+ dbcollation "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/db-collation"
+ dbcompatibility "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/db-compatibility"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/delete"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/describe"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/list"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/update"
+ userrole "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/user-role"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
diff --git a/internal/cmd/beta/sqlserverflex/instance/list/list.go b/internal/cmd/sqlserverflex/instance/list/list.go
similarity index 95%
rename from internal/cmd/beta/sqlserverflex/instance/list/list.go
rename to internal/cmd/sqlserverflex/instance/list/list.go
index 78a4b8d78..d34fd9431 100644
--- a/internal/cmd/beta/sqlserverflex/instance/list/list.go
+++ b/internal/cmd/sqlserverflex/instance/list/list.go
@@ -38,13 +38,13 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`List all SQLServer Flex instances`,
- "$ stackit beta sqlserverflex instance list"),
+ "$ stackit sqlserverflex instance list"),
examples.NewExample(
`List all SQLServer Flex instances in JSON format`,
- "$ stackit beta sqlserverflex instance list --output-format json"),
+ "$ stackit sqlserverflex instance list --output-format json"),
examples.NewExample(
`List up to 10 SQLServer Flex instances`,
- "$ stackit beta sqlserverflex instance list --limit 10"),
+ "$ stackit sqlserverflex instance list --limit 10"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/instance/list/list_test.go b/internal/cmd/sqlserverflex/instance/list/list_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/instance/list/list_test.go
rename to internal/cmd/sqlserverflex/instance/list/list_test.go
diff --git a/internal/cmd/beta/sqlserverflex/instance/update/update.go b/internal/cmd/sqlserverflex/instance/update/update.go
similarity index 98%
rename from internal/cmd/beta/sqlserverflex/instance/update/update.go
rename to internal/cmd/sqlserverflex/instance/update/update.go
index 5f4302125..a675cd94e 100644
--- a/internal/cmd/beta/sqlserverflex/instance/update/update.go
+++ b/internal/cmd/sqlserverflex/instance/update/update.go
@@ -62,10 +62,10 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Update the name of a SQLServer Flex instance with ID "xxx"`,
- "$ stackit beta sqlserverflex instance update xxx --name my-new-name"),
+ "$ stackit sqlserverflex instance update xxx --name my-new-name"),
examples.NewExample(
`Update the backup schedule of a SQLServer Flex instance with ID "xxx"`,
- `$ stackit beta sqlserverflex instance update xxx --backup-schedule "30 0 * * *"`),
+ `$ stackit sqlserverflex instance update xxx --backup-schedule "30 0 * * *"`),
),
Args: args.SingleArg(instanceIdArg, utils.ValidateUUID),
RunE: func(cmd *cobra.Command, args []string) error {
diff --git a/internal/cmd/beta/sqlserverflex/instance/update/update_test.go b/internal/cmd/sqlserverflex/instance/update/update_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/instance/update/update_test.go
rename to internal/cmd/sqlserverflex/instance/update/update_test.go
diff --git a/internal/cmd/beta/sqlserverflex/instance/user-role/list/list.go b/internal/cmd/sqlserverflex/instance/user-role/list/list.go
similarity index 94%
rename from internal/cmd/beta/sqlserverflex/instance/user-role/list/list.go
rename to internal/cmd/sqlserverflex/instance/user-role/list/list.go
index 5d77495fa..c6ba5bea4 100644
--- a/internal/cmd/beta/sqlserverflex/instance/user-role/list/list.go
+++ b/internal/cmd/sqlserverflex/instance/user-role/list/list.go
@@ -41,13 +41,13 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`List SQLServer Flex user roles of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex instance user-role list --instance-id xxx"),
+ "$ stackit sqlserverflex instance user-role list --instance-id xxx"),
examples.NewExample(
`List SQLServer Flex user roles of instance with ID "xxx" in JSON format`,
- "$ stackit beta sqlserverflex instance user-role list --instance-id xxx --output-format json"),
+ "$ stackit sqlserverflex instance user-role list --instance-id xxx --output-format json"),
examples.NewExample(
`List up to 10 SQLServer Flex user roles of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex instance user-role list --instance-id xxx --limit 10"),
+ "$ stackit sqlserverflex instance user-role list --instance-id xxx --limit 10"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/instance/user-role/list/list_test.go b/internal/cmd/sqlserverflex/instance/user-role/list/list_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/instance/user-role/list/list_test.go
rename to internal/cmd/sqlserverflex/instance/user-role/list/list_test.go
diff --git a/internal/cmd/beta/sqlserverflex/instance/user-role/user_role.go b/internal/cmd/sqlserverflex/instance/user-role/user_role.go
similarity index 87%
rename from internal/cmd/beta/sqlserverflex/instance/user-role/user_role.go
rename to internal/cmd/sqlserverflex/instance/user-role/user_role.go
index 8e13a353d..8f410482a 100644
--- a/internal/cmd/beta/sqlserverflex/instance/user-role/user_role.go
+++ b/internal/cmd/sqlserverflex/instance/user-role/user_role.go
@@ -1,7 +1,7 @@
package userrole
import (
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance/user-role/list"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance/user-role/list"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
diff --git a/internal/cmd/beta/sqlserverflex/sqlserverflex.go b/internal/cmd/sqlserverflex/sqlserverflex.go
similarity index 57%
rename from internal/cmd/beta/sqlserverflex/sqlserverflex.go
rename to internal/cmd/sqlserverflex/sqlserverflex.go
index 8b329a33d..2f967dd1c 100644
--- a/internal/cmd/beta/sqlserverflex/sqlserverflex.go
+++ b/internal/cmd/sqlserverflex/sqlserverflex.go
@@ -1,12 +1,11 @@
package sqlserverflex
import (
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/database"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/flavor"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/instance"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/options"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/version"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/database"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/flavor"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/instance"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/user"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/version"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
@@ -29,7 +28,6 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
cmd.AddCommand(database.NewCmd(params))
cmd.AddCommand(instance.NewCmd(params))
- cmd.AddCommand(options.NewCmd(params)) //nolint:staticcheck // Command is deprecated but must be kept for backward compatibility
cmd.AddCommand(user.NewCmd(params))
cmd.AddCommand(version.NewCmd(params))
cmd.AddCommand(flavor.NewCmd(params))
diff --git a/internal/cmd/beta/sqlserverflex/user/create/create.go b/internal/cmd/sqlserverflex/user/create/create.go
similarity index 92%
rename from internal/cmd/beta/sqlserverflex/user/create/create.go
rename to internal/cmd/sqlserverflex/user/create/create.go
index 4a9800c81..0318ef3d2 100644
--- a/internal/cmd/beta/sqlserverflex/user/create/create.go
+++ b/internal/cmd/sqlserverflex/user/create/create.go
@@ -44,18 +44,18 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
"Creates a SQLServer Flex user for an instance.",
"The password is only visible upon creation and cannot be retrieved later.",
"Alternatively, you can reset the password and access the new one by running:",
- " $ stackit beta sqlserverflex user reset-password USER_ID --instance-id INSTANCE_ID",
+ " $ stackit sqlserverflex user reset-password USER_ID --instance-id INSTANCE_ID",
"Please refer to https://docs.stackit.cloud/products/databases/sqlserver-flex/how-tos/create-logins-and-users-in-sqlserver-flex-instances/ for additional information.",
"The allowed user roles for your instance can be obtained by running:",
- " $ stackit beta sqlserverflex instance user-role list --instance-id INSTANCE_ID",
+ " $ stackit sqlserverflex instance user-role list --instance-id INSTANCE_ID",
),
Example: examples.Build(
examples.NewExample(
`Create a SQLServer Flex user for instance with ID "xxx" and specify the username, role and database`,
- `$ stackit beta sqlserverflex user create --instance-id xxx --username johndoe --roles "##STACKIT_DatabaseManager##"`),
+ `$ stackit sqlserverflex user create --instance-id xxx --username johndoe --roles "##STACKIT_DatabaseManager##"`),
examples.NewExample(
`Create a SQLServer Flex user for instance with ID "xxx", specifying multiple roles`,
- `$ stackit beta sqlserverflex user create --instance-id xxx --username johndoe --roles "##STACKIT_LoginManager##,##STACKIT_DatabaseManager##"`),
+ `$ stackit sqlserverflex user create --instance-id xxx --username johndoe --roles "##STACKIT_LoginManager##,##STACKIT_DatabaseManager##"`),
),
Args: args.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
diff --git a/internal/cmd/beta/sqlserverflex/user/create/create_test.go b/internal/cmd/sqlserverflex/user/create/create_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/user/create/create_test.go
rename to internal/cmd/sqlserverflex/user/create/create_test.go
diff --git a/internal/cmd/beta/sqlserverflex/user/delete/delete.go b/internal/cmd/sqlserverflex/user/delete/delete.go
similarity index 96%
rename from internal/cmd/beta/sqlserverflex/user/delete/delete.go
rename to internal/cmd/sqlserverflex/user/delete/delete.go
index eed828b66..3ef175484 100644
--- a/internal/cmd/beta/sqlserverflex/user/delete/delete.go
+++ b/internal/cmd/sqlserverflex/user/delete/delete.go
@@ -41,12 +41,12 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Short: "Deletes a SQLServer Flex user",
Long: fmt.Sprintf("%s\n%s",
"Deletes a SQLServer Flex user by ID. You can get the IDs of users for an instance by running:",
- " $ stackit beta sqlserverflex user list --instance-id ",
+ " $ stackit sqlserverflex user list --instance-id ",
),
Example: examples.Build(
examples.NewExample(
`Delete a SQLServer Flex user with ID "xxx" for instance with ID "yyy"`,
- "$ stackit beta sqlserverflex user delete xxx --instance-id yyy"),
+ "$ stackit sqlserverflex user delete xxx --instance-id yyy"),
),
Args: args.SingleArg(userIdArg, nil),
RunE: func(cmd *cobra.Command, args []string) error {
diff --git a/internal/cmd/beta/sqlserverflex/user/delete/delete_test.go b/internal/cmd/sqlserverflex/user/delete/delete_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/user/delete/delete_test.go
rename to internal/cmd/sqlserverflex/user/delete/delete_test.go
diff --git a/internal/cmd/beta/sqlserverflex/user/describe/describe.go b/internal/cmd/sqlserverflex/user/describe/describe.go
similarity index 93%
rename from internal/cmd/beta/sqlserverflex/user/describe/describe.go
rename to internal/cmd/sqlserverflex/user/describe/describe.go
index fff87031d..13e75263c 100644
--- a/internal/cmd/beta/sqlserverflex/user/describe/describe.go
+++ b/internal/cmd/sqlserverflex/user/describe/describe.go
@@ -41,15 +41,15 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Long: fmt.Sprintf("%s\n%s\n%s",
"Shows details of a SQLServer Flex user.",
`The user password is only visible upon creation. You can reset it by running:`,
- " $ stackit beta sqlserverflex user reset-password USER_ID --instance-id INSTANCE_ID",
+ " $ stackit sqlserverflex user reset-password USER_ID --instance-id INSTANCE_ID",
),
Example: examples.Build(
examples.NewExample(
`Get details of a SQLServer Flex user with ID "xxx" of instance with ID "yyy"`,
- "$ stackit beta sqlserverflex user describe xxx --instance-id yyy"),
+ "$ stackit sqlserverflex user describe xxx --instance-id yyy"),
examples.NewExample(
`Get details of a SQLServer Flex user with ID "xxx" of instance with ID "yyy" in JSON format`,
- "$ stackit beta sqlserverflex user describe xxx --instance-id yyy --output-format json"),
+ "$ stackit sqlserverflex user describe xxx --instance-id yyy --output-format json"),
),
Args: args.SingleArg(userIdArg, nil),
RunE: func(cmd *cobra.Command, args []string) error {
diff --git a/internal/cmd/beta/sqlserverflex/user/describe/describe_test.go b/internal/cmd/sqlserverflex/user/describe/describe_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/user/describe/describe_test.go
rename to internal/cmd/sqlserverflex/user/describe/describe_test.go
diff --git a/internal/cmd/beta/sqlserverflex/user/list/list.go b/internal/cmd/sqlserverflex/user/list/list.go
similarity index 94%
rename from internal/cmd/beta/sqlserverflex/user/list/list.go
rename to internal/cmd/sqlserverflex/user/list/list.go
index 18d0fb593..59898b289 100644
--- a/internal/cmd/beta/sqlserverflex/user/list/list.go
+++ b/internal/cmd/sqlserverflex/user/list/list.go
@@ -40,13 +40,13 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`List all SQLServer Flex users of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex user list --instance-id xxx"),
+ "$ stackit sqlserverflex user list --instance-id xxx"),
examples.NewExample(
`List all SQLServer Flex users of instance with ID "xxx" in JSON format`,
- "$ stackit beta sqlserverflex user list --instance-id xxx --output-format json"),
+ "$ stackit sqlserverflex user list --instance-id xxx --output-format json"),
examples.NewExample(
`List up to 10 SQLServer Flex users of instance with ID "xxx"`,
- "$ stackit beta sqlserverflex user list --instance-id xxx --limit 10"),
+ "$ stackit sqlserverflex user list --instance-id xxx --limit 10"),
),
Args: args.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
diff --git a/internal/cmd/beta/sqlserverflex/user/list/list_test.go b/internal/cmd/sqlserverflex/user/list/list_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/user/list/list_test.go
rename to internal/cmd/sqlserverflex/user/list/list_test.go
diff --git a/internal/cmd/beta/sqlserverflex/user/reset-password/reset_password.go b/internal/cmd/sqlserverflex/user/reset-password/reset_password.go
similarity index 98%
rename from internal/cmd/beta/sqlserverflex/user/reset-password/reset_password.go
rename to internal/cmd/sqlserverflex/user/reset-password/reset_password.go
index eb8c6edbe..eb7f20131 100644
--- a/internal/cmd/beta/sqlserverflex/user/reset-password/reset_password.go
+++ b/internal/cmd/sqlserverflex/user/reset-password/reset_password.go
@@ -44,7 +44,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Reset the password of a SQLServer Flex user with ID "xxx" of instance with ID "yyy"`,
- "$ stackit beta sqlserverflex user reset-password xxx --instance-id yyy"),
+ "$ stackit sqlserverflex user reset-password xxx --instance-id yyy"),
),
Args: args.SingleArg(userIdArg, nil),
RunE: func(cmd *cobra.Command, args []string) error {
diff --git a/internal/cmd/beta/sqlserverflex/user/reset-password/reset_password_test.go b/internal/cmd/sqlserverflex/user/reset-password/reset_password_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/user/reset-password/reset_password_test.go
rename to internal/cmd/sqlserverflex/user/reset-password/reset_password_test.go
diff --git a/internal/cmd/beta/sqlserverflex/user/user.go b/internal/cmd/sqlserverflex/user/user.go
similarity index 69%
rename from internal/cmd/beta/sqlserverflex/user/user.go
rename to internal/cmd/sqlserverflex/user/user.go
index 572a9ea52..2cb6ea512 100644
--- a/internal/cmd/beta/sqlserverflex/user/user.go
+++ b/internal/cmd/sqlserverflex/user/user.go
@@ -1,11 +1,11 @@
package user
import (
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/create"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/delete"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/describe"
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/list"
- resetpassword "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/user/reset-password"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/user/create"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/user/delete"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/user/describe"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/user/list"
+ resetpassword "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/user/reset-password"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
diff --git a/internal/cmd/beta/sqlserverflex/version/list/list.go b/internal/cmd/sqlserverflex/version/list/list.go
similarity index 98%
rename from internal/cmd/beta/sqlserverflex/version/list/list.go
rename to internal/cmd/sqlserverflex/version/list/list.go
index 7213332ff..a134d661f 100644
--- a/internal/cmd/beta/sqlserverflex/version/list/list.go
+++ b/internal/cmd/sqlserverflex/version/list/list.go
@@ -31,7 +31,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
Example: examples.Build(
examples.NewExample(
`List SQLServer Flex version options`,
- "$ stackit beta sqlserverflex version list"),
+ "$ stackit sqlserverflex version list"),
),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
diff --git a/internal/cmd/beta/sqlserverflex/version/list/list_test.go b/internal/cmd/sqlserverflex/version/list/list_test.go
similarity index 100%
rename from internal/cmd/beta/sqlserverflex/version/list/list_test.go
rename to internal/cmd/sqlserverflex/version/list/list_test.go
diff --git a/internal/cmd/beta/sqlserverflex/version/version.go b/internal/cmd/sqlserverflex/version/version.go
similarity index 88%
rename from internal/cmd/beta/sqlserverflex/version/version.go
rename to internal/cmd/sqlserverflex/version/version.go
index 6add582ec..0b3a0cb62 100644
--- a/internal/cmd/beta/sqlserverflex/version/version.go
+++ b/internal/cmd/sqlserverflex/version/version.go
@@ -1,7 +1,7 @@
package version
import (
- "github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex/version/list"
+ "github.com/stackitcloud/stackit-cli/internal/cmd/sqlserverflex/version/list"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
diff --git a/internal/pkg/services/sqlserverflex/utils/utils.go b/internal/pkg/services/sqlserverflex/utils/utils.go
index d1d0c53d6..33bc32462 100644
--- a/internal/pkg/services/sqlserverflex/utils/utils.go
+++ b/internal/pkg/services/sqlserverflex/utils/utils.go
@@ -12,7 +12,7 @@ import (
)
const (
- ServiceCmd = "beta sqlserverflex"
+ ServiceCmd = "sqlserverflex"
)
func ValidateFlavorId(flavorId string, flavors []sqlserverflex.ListFlavors) error {