From 6049110923b4614a14dc90203403d028e25e0429 Mon Sep 17 00:00:00 2001 From: Simon Shillaker Date: Fri, 14 Aug 2026 15:24:41 +0100 Subject: [PATCH] chore(api): update api/x commands --- .gitignore | 3 + cmd/internal/x/x.gen.go | 675 ++++++++++++++++++++++------------------ 2 files changed, 377 insertions(+), 301 deletions(-) diff --git a/.gitignore b/.gitignore index 1d3bbafd9..0814b20ac 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ go.work .idea/ .vscode/ cli + +public-api.json +openapi.json diff --git a/cmd/internal/x/x.gen.go b/cmd/internal/x/x.gen.go index 9dabc8c72..59efcc2b8 100644 --- a/cmd/internal/x/x.gen.go +++ b/cmd/internal/x/x.gen.go @@ -197,140 +197,6 @@ func XGetAiApiKey(paramId string, params *viper.Viper) (*gentleman.Response, map return resp, decoded, nil } -// XUpdateAiApiKey [BETA] Update AI API Key -func XUpdateAiApiKey(paramId string, params *viper.Viper, body string) (*gentleman.Response, map[string]interface{}, error) { - handlerPath := "update-ai-api-key" - if xSubcommand { - handlerPath = "x " + handlerPath - } - - server := viper.GetString("server") - if server == "" { - server = xServers()[viper.GetInt("server-index")]["url"] - } - - url := server + "/ai/api-key/{id}" - url = strings.Replace(url, "{id}", paramId, 1) - - req := cli.Client.Patch().URL(url) - - if body != "" { - req = req.AddHeader("Content-Type", "application/json").BodyString(body) - } - - cli.HandleBefore(handlerPath, params, req) - - resp, err := req.Do() - if err != nil { - return nil, nil, errors.Wrap(err, "Request failed") - } - - var decoded map[string]interface{} - - if resp.StatusCode < 400 { - if err := cli.UnmarshalResponse(resp, &decoded); err != nil { - return nil, nil, errors.Wrap(err, "Unmarshalling response failed") - } - } else { - return nil, nil, errors.Errorf("HTTP %d: %s", resp.StatusCode, resp.String()) - } - - after := cli.HandleAfter(handlerPath, params, resp, decoded) - if after != nil { - decoded = after.(map[string]interface{}) - } - - return resp, decoded, nil -} - -// XRevealAiApiKey [BETA] Reveal AI API Key -func XRevealAiApiKey(paramId string, params *viper.Viper) (*gentleman.Response, map[string]interface{}, error) { - handlerPath := "reveal-ai-api-key" - if xSubcommand { - handlerPath = "x " + handlerPath - } - - server := viper.GetString("server") - if server == "" { - server = xServers()[viper.GetInt("server-index")]["url"] - } - - url := server + "/ai/api-key/{id}/reveal" - url = strings.Replace(url, "{id}", paramId, 1) - - req := cli.Client.Get().URL(url) - - cli.HandleBefore(handlerPath, params, req) - - resp, err := req.Do() - if err != nil { - return nil, nil, errors.Wrap(err, "Request failed") - } - - var decoded map[string]interface{} - - if resp.StatusCode < 400 { - if err := cli.UnmarshalResponse(resp, &decoded); err != nil { - return nil, nil, errors.Wrap(err, "Unmarshalling response failed") - } - } else { - return nil, nil, errors.Errorf("HTTP %d: %s", resp.StatusCode, resp.String()) - } - - after := cli.HandleAfter(handlerPath, params, resp, decoded) - if after != nil { - decoded = after.(map[string]interface{}) - } - - return resp, decoded, nil -} - -// XRotateAiApiKey [BETA] Rotate AI API Key -func XRotateAiApiKey(paramId string, params *viper.Viper, body string) (*gentleman.Response, map[string]interface{}, error) { - handlerPath := "rotate-ai-api-key" - if xSubcommand { - handlerPath = "x " + handlerPath - } - - server := viper.GetString("server") - if server == "" { - server = xServers()[viper.GetInt("server-index")]["url"] - } - - url := server + "/ai/api-key/{id}/rotate" - url = strings.Replace(url, "{id}", paramId, 1) - - req := cli.Client.Post().URL(url) - - if body != "" { - req = req.AddHeader("Content-Type", "").BodyString(body) - } - - cli.HandleBefore(handlerPath, params, req) - - resp, err := req.Do() - if err != nil { - return nil, nil, errors.Wrap(err, "Request failed") - } - - var decoded map[string]interface{} - - if resp.StatusCode < 400 { - if err := cli.UnmarshalResponse(resp, &decoded); err != nil { - return nil, nil, errors.Wrap(err, "Unmarshalling response failed") - } - } else { - return nil, nil, errors.Errorf("HTTP %d: %s", resp.StatusCode, resp.String()) - } - - after := cli.HandleAfter(handlerPath, params, resp, decoded) - if after != nil { - decoded = after.(map[string]interface{}) - } - - return resp, decoded, nil -} - // XCreateDeployment Create Deployment func XCreateDeployment(params *viper.Viper, body string) (*gentleman.Response, map[string]interface{}, error) { handlerPath := "create-deployment" @@ -839,11 +705,6 @@ func XListModels(params *viper.Viper) (*gentleman.Response, map[string]interface req := cli.Client.Get().URL(url) - paramVisibility := params.GetString("visibility") - if paramVisibility != "" { - req = req.AddQuery("visibility", fmt.Sprintf("%v", paramVisibility)) - } - cli.HandleBefore(handlerPath, params, req) resp, err := req.Do() @@ -2257,6 +2118,91 @@ func XGetDbaasClickhouseAclConfig(paramServiceName string, params *viper.Viper) return resp, decoded, nil } +// XListDbaasClickhouseRoles [BETA] List DBaaS ClickHouse roles +func XListDbaasClickhouseRoles(paramServiceName string, params *viper.Viper) (*gentleman.Response, map[string]interface{}, error) { + handlerPath := "list-dbaas-clickhouse-roles" + if xSubcommand { + handlerPath = "x " + handlerPath + } + + server := viper.GetString("server") + if server == "" { + server = xServers()[viper.GetInt("server-index")]["url"] + } + + url := server + "/dbaas-clickhouse/{service-name}/role" + url = strings.Replace(url, "{service-name}", paramServiceName, 1) + + req := cli.Client.Get().URL(url) + + cli.HandleBefore(handlerPath, params, req) + + resp, err := req.Do() + if err != nil { + return nil, nil, errors.Wrap(err, "Request failed") + } + + var decoded map[string]interface{} + + if resp.StatusCode < 400 { + if err := cli.UnmarshalResponse(resp, &decoded); err != nil { + return nil, nil, errors.Wrap(err, "Unmarshalling response failed") + } + } else { + return nil, nil, errors.Errorf("HTTP %d: %s", resp.StatusCode, resp.String()) + } + + after := cli.HandleAfter(handlerPath, params, resp, decoded) + if after != nil { + decoded = after.(map[string]interface{}) + } + + return resp, decoded, nil +} + +// XDeleteDbaasClickhouseRole [BETA] Delete a DBaaS ClickHouse role +func XDeleteDbaasClickhouseRole(paramServiceName string, paramRoleUuid string, params *viper.Viper) (*gentleman.Response, map[string]interface{}, error) { + handlerPath := "delete-dbaas-clickhouse-role" + if xSubcommand { + handlerPath = "x " + handlerPath + } + + server := viper.GetString("server") + if server == "" { + server = xServers()[viper.GetInt("server-index")]["url"] + } + + url := server + "/dbaas-clickhouse/{service-name}/role/{role-uuid}" + url = strings.Replace(url, "{service-name}", paramServiceName, 1) + url = strings.Replace(url, "{role-uuid}", paramRoleUuid, 1) + + req := cli.Client.Delete().URL(url) + + cli.HandleBefore(handlerPath, params, req) + + resp, err := req.Do() + if err != nil { + return nil, nil, errors.Wrap(err, "Request failed") + } + + var decoded map[string]interface{} + + if resp.StatusCode < 400 { + if err := cli.UnmarshalResponse(resp, &decoded); err != nil { + return nil, nil, errors.Wrap(err, "Unmarshalling response failed") + } + } else { + return nil, nil, errors.Errorf("HTTP %d: %s", resp.StatusCode, resp.String()) + } + + after := cli.HandleAfter(handlerPath, params, resp, decoded) + if after != nil { + decoded = after.(map[string]interface{}) + } + + return resp, decoded, nil +} + // XCreateDbaasClickhouseUser [BETA] Create a DBaaS ClickHouse user func XCreateDbaasClickhouseUser(paramServiceName string, params *viper.Viper, body string) (*gentleman.Response, map[string]interface{}, error) { handlerPath := "create-dbaas-clickhouse-user" @@ -2346,7 +2292,7 @@ func XListDbaasClickhouseUsers(paramServiceName string, params *viper.Viper) (*g } // XDeleteDbaasClickhouseUser [BETA] Delete a DBaaS ClickHouse user -func XDeleteDbaasClickhouseUser(paramServiceName string, paramUsername string, params *viper.Viper) (*gentleman.Response, map[string]interface{}, error) { +func XDeleteDbaasClickhouseUser(paramServiceName string, paramUserUuid string, params *viper.Viper) (*gentleman.Response, map[string]interface{}, error) { handlerPath := "delete-dbaas-clickhouse-user" if xSubcommand { handlerPath = "x " + handlerPath @@ -2357,9 +2303,9 @@ func XDeleteDbaasClickhouseUser(paramServiceName string, paramUsername string, p server = xServers()[viper.GetInt("server-index")]["url"] } - url := server + "/dbaas-clickhouse/{service-name}/user/{username}" + url := server + "/dbaas-clickhouse/{service-name}/user/{user-uuid}" url = strings.Replace(url, "{service-name}", paramServiceName, 1) - url = strings.Replace(url, "{username}", paramUsername, 1) + url = strings.Replace(url, "{user-uuid}", paramUserUuid, 1) req := cli.Client.Delete().URL(url) @@ -9126,10 +9072,97 @@ func XDetachInstanceFromElasticIp(paramId string, params *viper.Viper, body stri server = xServers()[viper.GetInt("server-index")]["url"] } - url := server + "/elastic-ip/{id}:detach" - url = strings.Replace(url, "{id}", paramId, 1) + url := server + "/elastic-ip/{id}:detach" + url = strings.Replace(url, "{id}", paramId, 1) + + req := cli.Client.Put().URL(url) + + if body != "" { + req = req.AddHeader("Content-Type", "application/json").BodyString(body) + } + + cli.HandleBefore(handlerPath, params, req) + + resp, err := req.Do() + if err != nil { + return nil, nil, errors.Wrap(err, "Request failed") + } + + var decoded map[string]interface{} + + if resp.StatusCode < 400 { + if err := cli.UnmarshalResponse(resp, &decoded); err != nil { + return nil, nil, errors.Wrap(err, "Unmarshalling response failed") + } + } else { + return nil, nil, errors.Errorf("HTTP %d: %s", resp.StatusCode, resp.String()) + } + + after := cli.HandleAfter(handlerPath, params, resp, decoded) + if after != nil { + decoded = after.(map[string]interface{}) + } + + return resp, decoded, nil +} + +// XGetEnvImpact [BETA] Retrieve organization environmental impact reports +func XGetEnvImpact(paramPeriod string, params *viper.Viper) (*gentleman.Response, map[string]interface{}, error) { + handlerPath := "get-env-impact" + if xSubcommand { + handlerPath = "x " + handlerPath + } + + server := viper.GetString("server") + if server == "" { + server = xServers()[viper.GetInt("server-index")]["url"] + } + + url := server + "/env-impact/{period}" + url = strings.Replace(url, "{period}", paramPeriod, 1) + + req := cli.Client.Get().URL(url) + + cli.HandleBefore(handlerPath, params, req) + + resp, err := req.Do() + if err != nil { + return nil, nil, errors.Wrap(err, "Request failed") + } + + var decoded map[string]interface{} + + if resp.StatusCode < 400 { + if err := cli.UnmarshalResponse(resp, &decoded); err != nil { + return nil, nil, errors.Wrap(err, "Unmarshalling response failed") + } + } else { + return nil, nil, errors.Errorf("HTTP %d: %s", resp.StatusCode, resp.String()) + } + + after := cli.HandleAfter(handlerPath, params, resp, decoded) + if after != nil { + decoded = after.(map[string]interface{}) + } + + return resp, decoded, nil +} + +// XGetImpactEstimate [BETA] Get an estimate of the impact of using products +func XGetImpactEstimate(params *viper.Viper, body string) (*gentleman.Response, map[string]interface{}, error) { + handlerPath := "get-impact-estimate" + if xSubcommand { + handlerPath = "x " + handlerPath + } + + server := viper.GetString("server") + if server == "" { + server = xServers()[viper.GetInt("server-index")]["url"] + } + + url := server + "/environmental-impact/estimate" - req := cli.Client.Put().URL(url) + req := cli.Client.Post().URL(url) if body != "" { req = req.AddHeader("Content-Type", "application/json").BodyString(body) @@ -9160,9 +9193,9 @@ func XDetachInstanceFromElasticIp(paramId string, params *viper.Viper, body stri return resp, decoded, nil } -// XGetEnvImpact [BETA] Retrieve organization environmental impact reports -func XGetEnvImpact(paramPeriod string, params *viper.Viper) (*gentleman.Response, map[string]interface{}, error) { - handlerPath := "get-env-impact" +// XGetImpactReport [BETA] Get an environmental impact report +func XGetImpactReport(params *viper.Viper) (*gentleman.Response, map[string]interface{}, error) { + handlerPath := "get-impact-report" if xSubcommand { handlerPath = "x " + handlerPath } @@ -9172,11 +9205,19 @@ func XGetEnvImpact(paramPeriod string, params *viper.Viper) (*gentleman.Response server = xServers()[viper.GetInt("server-index")]["url"] } - url := server + "/env-impact/{period}" - url = strings.Replace(url, "{period}", paramPeriod, 1) + url := server + "/environmental-impact/report" req := cli.Client.Get().URL(url) + paramFrom := params.GetString("from") + if paramFrom != "" { + req = req.AddQuery("from", fmt.Sprintf("%v", paramFrom)) + } + paramTo := params.GetString("to") + if paramTo != "" { + req = req.AddQuery("to", fmt.Sprintf("%v", paramTo)) + } + cli.HandleBefore(handlerPath, params, req) resp, err := req.Do() @@ -16503,119 +16544,6 @@ func xRegister(subcommand bool) { }() - func() { - params := viper.New() - - var examples string - - cmd := &cobra.Command{ - Use: "update-ai-api-key id", - Short: "[BETA] Update AI API Key", - Long: cli.Markdown("Update AI API key name and/or scope\n## Request Schema (application/json)\n\ndescription: Request to update an AI API key (at least one property required)\nminProperties: 1\nproperties:\n name:\n description: Human-readable name for the AI API key\n maxLength: 50\n minLength: 1\n pattern: ^[A-Za-z0-9](?:[A-Za-z0-9 _'()-]*[A-Za-z0-9])?$\n type: string\n scope:\n description: 'Key scope: ''public'' for all deployments, or a specific deployment UUID'\n type: string\ntype: object\n"), - Example: examples, - Args: cobra.MinimumNArgs(1), - Run: func(cmd *cobra.Command, args []string) { - body, err := cli.GetBody("application/json", args[1:]) - if err != nil { - log.Fatal().Err(err).Msg("Unable to get body") - } - - _, decoded, err := XUpdateAiApiKey(args[0], params, body) - if err != nil { - log.Fatal().Err(err).Msg("Error calling operation") - } - - if err := cli.Formatter.Format(decoded); err != nil { - log.Fatal().Err(err).Msg("Formatting failed") - } - - }, - } - - root.AddCommand(cmd) - - cli.SetCustomFlags(cmd) - - if cmd.Flags().HasFlags() { - params.BindPFlags(cmd.Flags()) - } - - }() - - func() { - params := viper.New() - - var examples string - - cmd := &cobra.Command{ - Use: "reveal-ai-api-key id", - Short: "[BETA] Reveal AI API Key", - Long: cli.Markdown("Reveal AI API key plaintext value"), - Example: examples, - Args: cobra.MinimumNArgs(1), - Run: func(cmd *cobra.Command, args []string) { - - _, decoded, err := XRevealAiApiKey(args[0], params) - if err != nil { - log.Fatal().Err(err).Msg("Error calling operation") - } - - if err := cli.Formatter.Format(decoded); err != nil { - log.Fatal().Err(err).Msg("Formatting failed") - } - - }, - } - - root.AddCommand(cmd) - - cli.SetCustomFlags(cmd) - - if cmd.Flags().HasFlags() { - params.BindPFlags(cmd.Flags()) - } - - }() - - func() { - params := viper.New() - - var examples string - - cmd := &cobra.Command{ - Use: "rotate-ai-api-key id", - Short: "[BETA] Rotate AI API Key", - Long: cli.Markdown("Rotate AI API key value"), - Example: examples, - Args: cobra.MinimumNArgs(1), - Run: func(cmd *cobra.Command, args []string) { - body, err := cli.GetBody("", args[1:]) - if err != nil { - log.Fatal().Err(err).Msg("Unable to get body") - } - - _, decoded, err := XRotateAiApiKey(args[0], params, body) - if err != nil { - log.Fatal().Err(err).Msg("Error calling operation") - } - - if err := cli.Formatter.Format(decoded); err != nil { - log.Fatal().Err(err).Msg("Formatting failed") - } - - }, - } - - root.AddCommand(cmd) - - cli.SetCustomFlags(cmd) - - if cmd.Flags().HasFlags() { - params.BindPFlags(cmd.Flags()) - } - - }() - func() { params := viper.New() @@ -17051,8 +16979,6 @@ func xRegister(subcommand bool) { root.AddCommand(cmd) - cmd.Flags().String("visibility", "", "") - cli.SetCustomFlags(cmd) if cmd.Flags().HasFlags() { @@ -17462,7 +17388,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-block-storage-volume", Short: "Create a block storage volume", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n block-storage-snapshot:\n $ref: '#/components/schemas/block-storage-snapshot-ref'\n labels:\n $ref: '#/components/schemas/labels'\n name:\n description: Volume name\n maxLength: 255\n type: string\n size:\n description: |-\n Volume size in GiB.\n When a snapshot ID is supplied, this defaults to the size of the source volume, but can be set to a larger value.\n format: int64\n minimum: 1\n type: integer\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n block-storage-snapshot:\n $ref: '#/components/schemas/block-storage-snapshot-ref'\n labels:\n $ref: '#/components/schemas/labels'\n name:\n description: Volume name\n maxLength: 255\n type: string\n size:\n description: |-\n Volume size in GiB.\n When a snapshot ID is supplied, this defaults to the size of the source volume, but can be set to a larger value.\n exclusiveMinimum: false\n format: int64\n minimum: 1\n type: integer\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(0), Run: func(cmd *cobra.Command, args []string) { @@ -18231,6 +18157,76 @@ func xRegister(subcommand bool) { }() + func() { + params := viper.New() + + var examples string + + cmd := &cobra.Command{ + Use: "list-dbaas-clickhouse-roles service-name", + Short: "[BETA] List DBaaS ClickHouse roles", + Long: cli.Markdown(""), + Example: examples, + Args: cobra.MinimumNArgs(1), + Run: func(cmd *cobra.Command, args []string) { + + _, decoded, err := XListDbaasClickhouseRoles(args[0], params) + if err != nil { + log.Fatal().Err(err).Msg("Error calling operation") + } + + if err := cli.Formatter.Format(decoded); err != nil { + log.Fatal().Err(err).Msg("Formatting failed") + } + + }, + } + + root.AddCommand(cmd) + + cli.SetCustomFlags(cmd) + + if cmd.Flags().HasFlags() { + params.BindPFlags(cmd.Flags()) + } + + }() + + func() { + params := viper.New() + + var examples string + + cmd := &cobra.Command{ + Use: "delete-dbaas-clickhouse-role service-name role-uuid", + Short: "[BETA] Delete a DBaaS ClickHouse role", + Long: cli.Markdown(""), + Example: examples, + Args: cobra.MinimumNArgs(2), + Run: func(cmd *cobra.Command, args []string) { + + _, decoded, err := XDeleteDbaasClickhouseRole(args[0], args[1], params) + if err != nil { + log.Fatal().Err(err).Msg("Error calling operation") + } + + if err := cli.Formatter.Format(decoded); err != nil { + log.Fatal().Err(err).Msg("Formatting failed") + } + + }, + } + + root.AddCommand(cmd) + + cli.SetCustomFlags(cmd) + + if cmd.Flags().HasFlags() { + params.BindPFlags(cmd.Flags()) + } + + }() + func() { params := viper.New() @@ -18311,7 +18307,7 @@ func xRegister(subcommand bool) { var examples string cmd := &cobra.Command{ - Use: "delete-dbaas-clickhouse-user service-name username", + Use: "delete-dbaas-clickhouse-user service-name user-uuid", Short: "[BETA] Delete a DBaaS ClickHouse user", Long: cli.Markdown(""), Example: examples, @@ -18492,7 +18488,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-dbaas-external-endpoint-datadog endpoint-id", Short: "update-dbaas-external-endpoint-datadog", - Long: cli.Markdown("[BETA] Update DataDog external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n datadog-api-key:\n description: Datadog API key\n maxLength: 256\n minLength: 1\n pattern: ^[A-Za-z0-9]{1,256}$\n type: string\n datadog-tags:\n description: Custom tags provided by user\n items:\n $ref: '#/components/schemas/dbaas-datadog-tag'\n type: array\n disable-consumer-stats:\n description: Disable kafka consumer group metrics. Applies only when attached to kafka services.\n type: boolean\n kafka-consumer-check-instances:\n description: Number of separate instances to fetch kafka consumer statistics with. Applies only when attached to kafka services.\n format: int64\n maximum: 100\n minimum: 1\n type: integer\n kafka-consumer-stats-timeout:\n description: Number of seconds that datadog will wait to get consumer statistics from brokers. Applies only when attached to kafka services.\n format: int64\n maximum: 300\n minimum: 2\n type: integer\n max-partition-contexts:\n description: Maximum number of partition contexts to send. Applies only when attached to kafka services.\n format: int64\n maximum: 200000\n minimum: 200\n type: integer\n site:\n $ref: '#/components/schemas/enum-datadog-site'\n required:\n - datadog-api-key\n type: object\ntype: object\n"), + Long: cli.Markdown("[BETA] Update DataDog external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n datadog-api-key:\n description: Datadog API key\n maxLength: 256\n minLength: 1\n pattern: ^[A-Za-z0-9]{1,256}$\n type: string\n datadog-tags:\n description: Custom tags provided by user\n items:\n $ref: '#/components/schemas/dbaas-datadog-tag'\n type: array\n disable-consumer-stats:\n description: Disable kafka consumer group metrics. Applies only when attached to kafka services.\n type: boolean\n kafka-consumer-check-instances:\n description: Number of separate instances to fetch kafka consumer statistics with. Applies only when attached to kafka services.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 100\n minimum: 1\n type: integer\n kafka-consumer-stats-timeout:\n description: Number of seconds that datadog will wait to get consumer statistics from brokers. Applies only when attached to kafka services.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 300\n minimum: 2\n type: integer\n max-partition-contexts:\n description: Maximum number of partition contexts to send. Applies only when attached to kafka services.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 200000\n minimum: 200\n type: integer\n site:\n $ref: '#/components/schemas/enum-datadog-site'\n required:\n - datadog-api-key\n type: object\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -18531,7 +18527,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-dbaas-external-endpoint-datadog name", Short: "create-dbaas-external-endpoint-datadog", - Long: cli.Markdown("[BETA] Create DataDog external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n datadog-api-key:\n description: Datadog API key\n maxLength: 256\n minLength: 1\n pattern: ^[A-Za-z0-9]{1,256}$\n type: string\n datadog-tags:\n description: Custom tags provided by user\n items:\n $ref: '#/components/schemas/dbaas-datadog-tag'\n type: array\n disable-consumer-stats:\n description: Disable kafka consumer group metrics. Applies only when attached to kafka services.\n type: boolean\n kafka-consumer-check-instances:\n description: Number of separate instances to fetch kafka consumer statistics with. Applies only when attached to kafka services.\n format: int64\n maximum: 100\n minimum: 1\n type: integer\n kafka-consumer-stats-timeout:\n description: Number of seconds that datadog will wait to get consumer statistics from brokers. Applies only when attached to kafka services.\n format: int64\n maximum: 300\n minimum: 2\n type: integer\n max-partition-contexts:\n description: Maximum number of partition contexts to send. Applies only when attached to kafka services.\n format: int64\n maximum: 200000\n minimum: 200\n type: integer\n site:\n $ref: '#/components/schemas/enum-datadog-site'\n required:\n - datadog-api-key\n - site\n type: object\ntype: object\n"), + Long: cli.Markdown("[BETA] Create DataDog external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n datadog-api-key:\n description: Datadog API key\n maxLength: 256\n minLength: 1\n pattern: ^[A-Za-z0-9]{1,256}$\n type: string\n datadog-tags:\n description: Custom tags provided by user\n items:\n $ref: '#/components/schemas/dbaas-datadog-tag'\n type: array\n disable-consumer-stats:\n description: Disable kafka consumer group metrics. Applies only when attached to kafka services.\n type: boolean\n kafka-consumer-check-instances:\n description: Number of separate instances to fetch kafka consumer statistics with. Applies only when attached to kafka services.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 100\n minimum: 1\n type: integer\n kafka-consumer-stats-timeout:\n description: Number of seconds that datadog will wait to get consumer statistics from brokers. Applies only when attached to kafka services.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 300\n minimum: 2\n type: integer\n max-partition-contexts:\n description: Maximum number of partition contexts to send. Applies only when attached to kafka services.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 200000\n minimum: 200\n type: integer\n site:\n $ref: '#/components/schemas/enum-datadog-site'\n required:\n - datadog-api-key\n - site\n type: object\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -18640,7 +18636,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-dbaas-external-endpoint-elasticsearch endpoint-id", Short: "update-dbaas-external-endpoint-elasticsearch", - Long: cli.Markdown("[BETA] Update ElasticSearch Logs external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n index-days-max:\n description: Maximum number of days of logs to keep\n format: int64\n maximum: 10000\n minimum: 1\n type: integer\n index-prefix:\n description: Elasticsearch index prefix\n maxLength: 1000\n minLength: 1\n pattern: ^[a-z0-9][a-z0-9-_.]+$\n type: string\n timeout:\n description: Elasticsearch request timeout limit\n format: int64\n maximum: 120\n minimum: 10\n type: integer\n url:\n description: Elasticsearch connection URL\n maxLength: 2048\n minLength: 12\n type: string\n type: object\ntype: object\n"), + Long: cli.Markdown("[BETA] Update ElasticSearch Logs external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n index-days-max:\n description: Maximum number of days of logs to keep\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 10000\n minimum: 1\n type: integer\n index-prefix:\n description: Elasticsearch index prefix\n maxLength: 1000\n minLength: 1\n pattern: ^[a-z0-9][a-z0-9-_.]+$\n type: string\n timeout:\n description: Elasticsearch request timeout limit\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 120\n minimum: 10\n type: integer\n url:\n description: Elasticsearch connection URL\n maxLength: 2048\n minLength: 12\n type: string\n type: object\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -18679,7 +18675,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-dbaas-external-endpoint-elasticsearch name", Short: "create-dbaas-external-endpoint-elasticsearch", - Long: cli.Markdown("[BETA] Create ElasticSearch Logs external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n index-days-max:\n description: Maximum number of days of logs to keep\n format: int64\n maximum: 10000\n minimum: 1\n type: integer\n index-prefix:\n description: Elasticsearch index prefix\n maxLength: 1000\n minLength: 1\n pattern: ^[a-z0-9][a-z0-9-_.]+$\n type: string\n timeout:\n description: Elasticsearch request timeout limit\n format: int64\n maximum: 120\n minimum: 10\n type: integer\n url:\n description: Elasticsearch connection URL\n maxLength: 2048\n minLength: 12\n type: string\n required:\n - url\n - index-prefix\n type: object\ntype: object\n"), + Long: cli.Markdown("[BETA] Create ElasticSearch Logs external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n index-days-max:\n description: Maximum number of days of logs to keep\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 10000\n minimum: 1\n type: integer\n index-prefix:\n description: Elasticsearch index prefix\n maxLength: 1000\n minLength: 1\n pattern: ^[a-z0-9][a-z0-9-_.]+$\n type: string\n timeout:\n description: Elasticsearch request timeout limit\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 120\n minimum: 10\n type: integer\n url:\n description: Elasticsearch connection URL\n maxLength: 2048\n minLength: 12\n type: string\n required:\n - url\n - index-prefix\n type: object\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -18788,7 +18784,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-dbaas-external-endpoint-opensearch endpoint-id", Short: "update-dbaas-external-endpoint-opensearch", - Long: cli.Markdown("[BETA] Update OpenSearch Logs external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n index-days-max:\n description: Maximum number of days of logs to keep\n format: int64\n maximum: 10000\n minimum: 1\n type: integer\n index-prefix:\n description: OpenSearch index prefix\n maxLength: 1000\n minLength: 1\n pattern: ^[a-z0-9][a-z0-9-_.]+$\n type: string\n timeout:\n description: OpenSearch request timeout limit\n format: int64\n maximum: 120\n minimum: 10\n type: integer\n url:\n description: OpenSearch connection URL\n maxLength: 2048\n minLength: 12\n type: string\n type: object\ntype: object\n"), + Long: cli.Markdown("[BETA] Update OpenSearch Logs external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n index-days-max:\n description: Maximum number of days of logs to keep\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 10000\n minimum: 1\n type: integer\n index-prefix:\n description: OpenSearch index prefix\n maxLength: 1000\n minLength: 1\n pattern: ^[a-z0-9][a-z0-9-_.]+$\n type: string\n timeout:\n description: OpenSearch request timeout limit\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 120\n minimum: 10\n type: integer\n url:\n description: OpenSearch connection URL\n maxLength: 2048\n minLength: 12\n type: string\n type: object\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -18827,7 +18823,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-dbaas-external-endpoint-opensearch name", Short: "create-dbaas-external-endpoint-opensearch", - Long: cli.Markdown("[BETA] Create OpenSearch Logs external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n index-days-max:\n description: Maximum number of days of logs to keep\n format: int64\n maximum: 10000\n minimum: 1\n type: integer\n index-prefix:\n description: OpenSearch index prefix\n maxLength: 1000\n minLength: 1\n pattern: ^[a-z0-9][a-z0-9-_.]+$\n type: string\n timeout:\n description: OpenSearch request timeout limit\n format: int64\n maximum: 120\n minimum: 10\n type: integer\n url:\n description: OpenSearch connection URL\n maxLength: 2048\n minLength: 12\n type: string\n required:\n - url\n - index-prefix\n type: object\ntype: object\n"), + Long: cli.Markdown("[BETA] Create OpenSearch Logs external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n index-days-max:\n description: Maximum number of days of logs to keep\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 10000\n minimum: 1\n type: integer\n index-prefix:\n description: OpenSearch index prefix\n maxLength: 1000\n minLength: 1\n pattern: ^[a-z0-9][a-z0-9-_.]+$\n type: string\n timeout:\n description: OpenSearch request timeout limit\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 120\n minimum: 10\n type: integer\n url:\n description: OpenSearch connection URL\n maxLength: 2048\n minLength: 12\n type: string\n required:\n - url\n - index-prefix\n type: object\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -19084,7 +19080,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-dbaas-external-endpoint-rsyslog endpoint-id", Short: "update-dbaas-external-endpoint-rsyslog", - Long: cli.Markdown("[BETA] Update RSyslog external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n cert:\n description: PEM encoded client certificate\n maxLength: 16384\n type: string\n format:\n $ref: '#/components/schemas/enum-rsyslog-format'\n key:\n description: PEM encoded client key\n maxLength: 16384\n type: string\n logline:\n description: Custom syslog message format\n maxLength: 512\n minLength: 1\n pattern: ^[ -~\\t]+$\n type: string\n max-message-size:\n description: Rsyslog max message size\n format: int64\n maximum: 2.147483647e+09\n minimum: 2048\n type: integer\n port:\n description: Rsyslog server port\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n sd:\n description: Structured data block for log message\n maxLength: 1024\n type: string\n server:\n description: Rsyslog server IP address or hostname\n maxLength: 255\n minLength: 4\n type: string\n tls:\n description: Require TLS\n type: boolean\n type: object\ntype: object\n"), + Long: cli.Markdown("[BETA] Update RSyslog external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n cert:\n description: PEM encoded client certificate\n maxLength: 16384\n type: string\n format:\n $ref: '#/components/schemas/enum-rsyslog-format'\n key:\n description: PEM encoded client key\n maxLength: 16384\n type: string\n logline:\n description: Custom syslog message format\n maxLength: 512\n minLength: 1\n pattern: ^[ -~\\t]+$\n type: string\n max-message-size:\n description: Rsyslog max message size\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 2.147483647e+09\n minimum: 2048\n type: integer\n port:\n description: Rsyslog server port\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n sd:\n description: Structured data block for log message\n maxLength: 1024\n type: string\n server:\n description: Rsyslog server IP address or hostname\n maxLength: 255\n minLength: 4\n type: string\n tls:\n description: Require TLS\n type: boolean\n type: object\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -19123,7 +19119,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-dbaas-external-endpoint-rsyslog name", Short: "create-dbaas-external-endpoint-rsyslog", - Long: cli.Markdown("[BETA] Create RSyslog external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n cert:\n description: PEM encoded client certificate\n maxLength: 16384\n type: string\n format:\n $ref: '#/components/schemas/enum-rsyslog-format'\n key:\n description: PEM encoded client key\n maxLength: 16384\n type: string\n logline:\n description: Custom syslog message format\n maxLength: 512\n minLength: 1\n pattern: ^[ -~\\t]+$\n type: string\n max-message-size:\n description: Rsyslog max message size\n format: int64\n maximum: 2.147483647e+09\n minimum: 2048\n type: integer\n port:\n description: Rsyslog server port\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n sd:\n description: Structured data block for log message\n maxLength: 1024\n type: string\n server:\n description: Rsyslog server IP address or hostname\n maxLength: 255\n minLength: 4\n type: string\n tls:\n description: Require TLS\n type: boolean\n required:\n - server\n - port\n - tls\n - format\n type: object\ntype: object\n"), + Long: cli.Markdown("[BETA] Create RSyslog external integration endpoint\n## Request Schema (application/json)\n\nproperties:\n settings:\n properties:\n ca:\n description: PEM encoded CA certificate\n maxLength: 16384\n type: string\n cert:\n description: PEM encoded client certificate\n maxLength: 16384\n type: string\n format:\n $ref: '#/components/schemas/enum-rsyslog-format'\n key:\n description: PEM encoded client key\n maxLength: 16384\n type: string\n logline:\n description: Custom syslog message format\n maxLength: 512\n minLength: 1\n pattern: ^[ -~\\t]+$\n type: string\n max-message-size:\n description: Rsyslog max message size\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 2.147483647e+09\n minimum: 2048\n type: integer\n port:\n description: Rsyslog server port\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n sd:\n description: Structured data block for log message\n maxLength: 1024\n type: string\n server:\n description: Rsyslog server IP address or hostname\n maxLength: 255\n minLength: 4\n type: string\n tls:\n description: Require TLS\n type: boolean\n required:\n - server\n - port\n - tls\n - format\n type: object\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -20521,7 +20517,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-dbaas-service-mysql name", Short: "Create a DBaaS MySQL service", - Long: cli.Markdown("Create a DBaaS MySQL service\n## Request Schema (application/json)\n\nproperties:\n admin-password:\n $ref: '#/components/schemas/dbaas-mysql-user-password'\n admin-username:\n description: Custom username for admin user. This must be set only when a new service is being created.\n maxLength: 64\n minLength: 1\n pattern: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,63}$\n type: string\n backup-schedule:\n properties:\n backup-hour:\n description: The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.\n format: int64\n maximum: 23\n minimum: 0\n nullable: true\n type: integer\n backup-minute:\n description: The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.\n format: int64\n maximum: 59\n minimum: 0\n nullable: true\n type: integer\n type: object\n binlog-retention-period:\n description: The minimum amount of time in seconds to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default for example if using the MySQL Debezium Kafka connector.\n format: int64\n maximum: 86400\n minimum: 600\n type: integer\n fork-from-service:\n $ref: '#/components/schemas/dbaas-service-name'\n integrations:\n description: Service integrations to be enabled when creating the service.\n items:\n properties:\n dest-service:\n $ref: '#/components/schemas/dbaas-service-name'\n settings:\n description: Integration settings\n type: object\n source-service:\n $ref: '#/components/schemas/dbaas-service-name'\n type:\n description: Integration type\n enum:\n - read_replica\n type: string\n required:\n - type\n type: object\n type: array\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n mysql-settings:\n $ref: '#/components/schemas/json-schema-mysql'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n recovery-backup-time:\n description: ISO time of a backup to recover from for services that support arbitrary times\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n version:\n description: MySQL major version\n minLength: 1\n type: string\nrequired:\n- plan\ntype: object\n"), + Long: cli.Markdown("Create a DBaaS MySQL service\n## Request Schema (application/json)\n\nproperties:\n admin-password:\n $ref: '#/components/schemas/dbaas-mysql-user-password'\n admin-username:\n description: Custom username for admin user. This must be set only when a new service is being created.\n maxLength: 64\n minLength: 1\n pattern: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,63}$\n type: string\n backup-schedule:\n properties:\n backup-hour:\n description: The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 23\n minimum: 0\n nullable: true\n type: integer\n backup-minute:\n description: The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 59\n minimum: 0\n nullable: true\n type: integer\n type: object\n binlog-retention-period:\n description: The minimum amount of time in seconds to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default for example if using the MySQL Debezium Kafka connector.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 86400\n minimum: 600\n type: integer\n fork-from-service:\n $ref: '#/components/schemas/dbaas-service-name'\n integrations:\n description: Service integrations to be enabled when creating the service.\n items:\n properties:\n dest-service:\n $ref: '#/components/schemas/dbaas-service-name'\n settings:\n description: Integration settings\n type: object\n source-service:\n $ref: '#/components/schemas/dbaas-service-name'\n type:\n description: Integration type\n enum:\n - read_replica\n type: string\n required:\n - type\n type: object\n type: array\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n mysql-settings:\n $ref: '#/components/schemas/json-schema-mysql'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n recovery-backup-time:\n description: ISO time of a backup to recover from for services that support arbitrary times\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n version:\n description: MySQL major version\n minLength: 1\n type: string\nrequired:\n- plan\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -20630,7 +20626,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-dbaas-service-mysql name", Short: "Update a DBaaS MySQL service", - Long: cli.Markdown("Update a DBaaS MySQL service\n## Request Schema (application/json)\n\nproperties:\n backup-schedule:\n properties:\n backup-hour:\n description: The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.\n format: int64\n maximum: 23\n minimum: 0\n nullable: true\n type: integer\n backup-minute:\n description: The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.\n format: int64\n maximum: 59\n minimum: 0\n nullable: true\n type: integer\n type: object\n binlog-retention-period:\n description: The minimum amount of time in seconds to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default for example if using the MySQL Debezium Kafka connector.\n format: int64\n maximum: 86400\n minimum: 600\n type: integer\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n mysql-settings:\n $ref: '#/components/schemas/json-schema-mysql'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n version:\n description: MySQL version\n type: string\ntype: object\n"), + Long: cli.Markdown("Update a DBaaS MySQL service\n## Request Schema (application/json)\n\nproperties:\n backup-schedule:\n properties:\n backup-hour:\n description: The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 23\n minimum: 0\n nullable: true\n type: integer\n backup-minute:\n description: The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 59\n minimum: 0\n nullable: true\n type: integer\n type: object\n binlog-retention-period:\n description: The minimum amount of time in seconds to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default for example if using the MySQL Debezium Kafka connector.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 86400\n minimum: 600\n type: integer\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n mysql-settings:\n $ref: '#/components/schemas/json-schema-mysql'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n version:\n description: MySQL version\n type: string\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -21008,7 +21004,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-dbaas-service-opensearch name", Short: "Create a DBaaS OpenSearch service", - Long: cli.Markdown("Create a DBaaS OpenSearch service\n## Request Schema (application/json)\n\nproperties:\n fork-from-service:\n $ref: '#/components/schemas/dbaas-service-name'\n index-patterns:\n description: 'Allows you to create glob style patterns and set a max number of indexes matching this pattern you want to keep. Creating indexes exceeding this value will cause the oldest one to get deleted. You could for example create a pattern looking like ''logs.?'' and then create index logs.1, logs.2 etc, it will delete logs.1 once you create logs.6. Do note ''logs.?'' does not apply to logs.10. Note: Setting max_index_count to 0 will do nothing and the pattern gets ignored.'\n items:\n properties:\n max-index-count:\n description: Maximum number of indexes to keep\n format: int64\n minimum: 0\n nullable: true\n type: integer\n pattern:\n description: fnmatch pattern\n maxLength: 1024\n type: string\n sorting-algorithm:\n description: Deletion sorting algorithm\n enum:\n - alphabetical\n - creation_date\n type: string\n type: object\n type: array\n index-template:\n description: Template settings for all new indexes\n properties:\n mapping-nested-objects-limit:\n description: The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps to prevent out of memory errors when a document contains too many nested objects. Default is 10000.\n format: int64\n maximum: 100000\n minimum: 0\n nullable: true\n type: integer\n number-of-replicas:\n description: The number of replicas each primary shard has.\n format: int64\n maximum: 29\n minimum: 0\n nullable: true\n type: integer\n number-of-shards:\n description: The number of primary shards that an index should have.\n format: int64\n maximum: 1024\n minimum: 1\n type: integer\n type: object\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n keep-index-refresh-interval:\n description: Aiven automation resets index.refresh_interval to default value for every index to be sure that indices are always visible to search. If it doesn't fit your case, you can disable this by setting up this flag to true.\n type: boolean\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n max-index-count:\n description: Maximum number of indexes to keep before deleting the oldest one\n format: int64\n minimum: 0\n nullable: true\n type: integer\n opensearch-dashboards:\n description: OpenSearch Dashboards settings\n properties:\n enabled:\n description: 'Enable or disable OpenSearch Dashboards (default: true)'\n type: boolean\n max-old-space-size:\n description: 'Limits the maximum amount of memory (in MiB) the OpenSearch Dashboards process can use. This sets the max_old_space_size option of the nodejs running the OpenSearch Dashboards. Note: the memory reserved by OpenSearch Dashboards is not available for OpenSearch. (default: 128)'\n format: int64\n maximum: 1024\n minimum: 64\n type: integer\n opensearch-request-timeout:\n description: 'Timeout in milliseconds for requests made by OpenSearch Dashboards towards OpenSearch (default: 30000)'\n format: int64\n maximum: 120000\n minimum: 5000\n type: integer\n type: object\n opensearch-settings:\n $ref: '#/components/schemas/json-schema-opensearch'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n recovery-backup-name:\n description: Name of a backup to recover from for services that support backup names\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n version:\n description: OpenSearch major version\n minLength: 1\n type: string\nrequired:\n- plan\ntype: object\n"), + Long: cli.Markdown("Create a DBaaS OpenSearch service\n## Request Schema (application/json)\n\nproperties:\n fork-from-service:\n $ref: '#/components/schemas/dbaas-service-name'\n index-patterns:\n description: 'Allows you to create glob style patterns and set a max number of indexes matching this pattern you want to keep. Creating indexes exceeding this value will cause the oldest one to get deleted. You could for example create a pattern looking like ''logs.?'' and then create index logs.1, logs.2 etc, it will delete logs.1 once you create logs.6. Do note ''logs.?'' does not apply to logs.10. Note: Setting max_index_count to 0 will do nothing and the pattern gets ignored.'\n items:\n properties:\n max-index-count:\n description: Maximum number of indexes to keep\n exclusiveMinimum: false\n format: int64\n minimum: 0\n nullable: true\n type: integer\n pattern:\n description: fnmatch pattern\n maxLength: 1024\n type: string\n sorting-algorithm:\n description: Deletion sorting algorithm\n enum:\n - alphabetical\n - creation_date\n type: string\n type: object\n type: array\n index-template:\n description: Template settings for all new indexes\n properties:\n mapping-nested-objects-limit:\n description: The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps to prevent out of memory errors when a document contains too many nested objects. Default is 10000.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 100000\n minimum: 0\n nullable: true\n type: integer\n number-of-replicas:\n description: The number of replicas each primary shard has.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 29\n minimum: 0\n nullable: true\n type: integer\n number-of-shards:\n description: The number of primary shards that an index should have.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 1024\n minimum: 1\n type: integer\n type: object\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n keep-index-refresh-interval:\n description: Aiven automation resets index.refresh_interval to default value for every index to be sure that indices are always visible to search. If it doesn't fit your case, you can disable this by setting up this flag to true.\n type: boolean\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n max-index-count:\n description: Maximum number of indexes to keep before deleting the oldest one\n exclusiveMinimum: false\n format: int64\n minimum: 0\n nullable: true\n type: integer\n opensearch-dashboards:\n description: OpenSearch Dashboards settings\n properties:\n enabled:\n description: 'Enable or disable OpenSearch Dashboards (default: true)'\n type: boolean\n max-old-space-size:\n description: 'Limits the maximum amount of memory (in MiB) the OpenSearch Dashboards process can use. This sets the max_old_space_size option of the nodejs running the OpenSearch Dashboards. Note: the memory reserved by OpenSearch Dashboards is not available for OpenSearch. (default: 128)'\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 1024\n minimum: 64\n type: integer\n opensearch-request-timeout:\n description: 'Timeout in milliseconds for requests made by OpenSearch Dashboards towards OpenSearch (default: 30000)'\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 120000\n minimum: 5000\n type: integer\n type: object\n opensearch-settings:\n $ref: '#/components/schemas/json-schema-opensearch'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n recovery-backup-name:\n description: Name of a backup to recover from for services that support backup names\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n version:\n description: OpenSearch major version\n minLength: 1\n type: string\nrequired:\n- plan\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -21117,7 +21113,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-dbaas-service-opensearch name", Short: "Update a DBaaS OpenSearch service", - Long: cli.Markdown("Update a DBaaS OpenSearch service\n## Request Schema (application/json)\n\nproperties:\n index-patterns:\n description: 'Allows you to create glob style patterns and set a max number of indexes matching this pattern you want to keep. Creating indexes exceeding this value will cause the oldest one to get deleted. You could for example create a pattern looking like ''logs.?'' and then create index logs.1, logs.2 etc, it will delete logs.1 once you create logs.6. Do note ''logs.?'' does not apply to logs.10. Note: Setting max_index_count to 0 will do nothing and the pattern gets ignored.'\n items:\n properties:\n max-index-count:\n description: Maximum number of indexes to keep\n format: int64\n minimum: 0\n nullable: true\n type: integer\n pattern:\n description: fnmatch pattern\n maxLength: 1024\n type: string\n sorting-algorithm:\n description: Deletion sorting algorithm\n enum:\n - alphabetical\n - creation_date\n type: string\n type: object\n type: array\n index-template:\n description: Template settings for all new indexes\n properties:\n mapping-nested-objects-limit:\n description: The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps to prevent out of memory errors when a document contains too many nested objects. Default is 10000.\n format: int64\n maximum: 100000\n minimum: 0\n nullable: true\n type: integer\n number-of-replicas:\n description: The number of replicas each primary shard has.\n format: int64\n maximum: 29\n minimum: 0\n nullable: true\n type: integer\n number-of-shards:\n description: The number of primary shards that an index should have.\n format: int64\n maximum: 1024\n minimum: 1\n type: integer\n type: object\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n keep-index-refresh-interval:\n description: Aiven automation resets index.refresh_interval to default value for every index to be sure that indices are always visible to search. If it doesn't fit your case, you can disable this by setting up this flag to true.\n type: boolean\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n max-index-count:\n description: Maximum number of indexes to keep before deleting the oldest one\n format: int64\n minimum: 0\n nullable: true\n type: integer\n opensearch-dashboards:\n description: OpenSearch Dashboards settings\n properties:\n enabled:\n description: 'Enable or disable OpenSearch Dashboards (default: true)'\n type: boolean\n max-old-space-size:\n description: 'Limits the maximum amount of memory (in MiB) the OpenSearch Dashboards process can use. This sets the max_old_space_size option of the nodejs running the OpenSearch Dashboards. Note: the memory reserved by OpenSearch Dashboards is not available for OpenSearch. (default: 128)'\n format: int64\n maximum: 1024\n minimum: 64\n type: integer\n opensearch-request-timeout:\n description: 'Timeout in milliseconds for requests made by OpenSearch Dashboards towards OpenSearch (default: 30000)'\n format: int64\n maximum: 120000\n minimum: 5000\n type: integer\n type: object\n opensearch-settings:\n $ref: '#/components/schemas/json-schema-opensearch'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n version:\n description: Version\n type: string\ntype: object\n"), + Long: cli.Markdown("Update a DBaaS OpenSearch service\n## Request Schema (application/json)\n\nproperties:\n index-patterns:\n description: 'Allows you to create glob style patterns and set a max number of indexes matching this pattern you want to keep. Creating indexes exceeding this value will cause the oldest one to get deleted. You could for example create a pattern looking like ''logs.?'' and then create index logs.1, logs.2 etc, it will delete logs.1 once you create logs.6. Do note ''logs.?'' does not apply to logs.10. Note: Setting max_index_count to 0 will do nothing and the pattern gets ignored.'\n items:\n properties:\n max-index-count:\n description: Maximum number of indexes to keep\n exclusiveMinimum: false\n format: int64\n minimum: 0\n nullable: true\n type: integer\n pattern:\n description: fnmatch pattern\n maxLength: 1024\n type: string\n sorting-algorithm:\n description: Deletion sorting algorithm\n enum:\n - alphabetical\n - creation_date\n type: string\n type: object\n type: array\n index-template:\n description: Template settings for all new indexes\n properties:\n mapping-nested-objects-limit:\n description: The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps to prevent out of memory errors when a document contains too many nested objects. Default is 10000.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 100000\n minimum: 0\n nullable: true\n type: integer\n number-of-replicas:\n description: The number of replicas each primary shard has.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 29\n minimum: 0\n nullable: true\n type: integer\n number-of-shards:\n description: The number of primary shards that an index should have.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 1024\n minimum: 1\n type: integer\n type: object\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n keep-index-refresh-interval:\n description: Aiven automation resets index.refresh_interval to default value for every index to be sure that indices are always visible to search. If it doesn't fit your case, you can disable this by setting up this flag to true.\n type: boolean\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n max-index-count:\n description: Maximum number of indexes to keep before deleting the oldest one\n exclusiveMinimum: false\n format: int64\n minimum: 0\n nullable: true\n type: integer\n opensearch-dashboards:\n description: OpenSearch Dashboards settings\n properties:\n enabled:\n description: 'Enable or disable OpenSearch Dashboards (default: true)'\n type: boolean\n max-old-space-size:\n description: 'Limits the maximum amount of memory (in MiB) the OpenSearch Dashboards process can use. This sets the max_old_space_size option of the nodejs running the OpenSearch Dashboards. Note: the memory reserved by OpenSearch Dashboards is not available for OpenSearch. (default: 128)'\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 1024\n minimum: 64\n type: integer\n opensearch-request-timeout:\n description: 'Timeout in milliseconds for requests made by OpenSearch Dashboards towards OpenSearch (default: 30000)'\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 120000\n minimum: 5000\n type: integer\n type: object\n opensearch-settings:\n $ref: '#/components/schemas/json-schema-opensearch'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n version:\n description: Version\n type: string\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -21417,7 +21413,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-dbaas-service-pg name", Short: "Create a DBaaS PostgreSQL service", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n admin-password:\n description: Custom password for admin user. Defaults to random string. This must be set only when a new service is being created.\n maxLength: 256\n minLength: 8\n pattern: ^[a-zA-Z0-9-_]+$\n type: string\n admin-username:\n description: Custom username for admin user. This must be set only when a new service is being created.\n maxLength: 64\n minLength: 1\n pattern: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,63}$\n type: string\n backup-schedule:\n properties:\n backup-hour:\n description: The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.\n format: int64\n maximum: 23\n minimum: 0\n nullable: true\n type: integer\n backup-minute:\n description: The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.\n format: int64\n maximum: 59\n minimum: 0\n nullable: true\n type: integer\n type: object\n fork-from-service:\n $ref: '#/components/schemas/dbaas-service-name'\n integrations:\n description: Service integrations to be enabled when creating the service.\n items:\n properties:\n dest-service:\n $ref: '#/components/schemas/dbaas-service-name'\n settings:\n description: Integration settings\n type: object\n source-service:\n $ref: '#/components/schemas/dbaas-service-name'\n type:\n description: Integration type\n enum:\n - read_replica\n type: string\n required:\n - type\n type: object\n type: array\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n pg-settings:\n $ref: '#/components/schemas/json-schema-pg'\n pgaudit-settings:\n $ref: '#/components/schemas/json-schema-pgaudit'\n pgbouncer-settings:\n $ref: '#/components/schemas/json-schema-pgbouncer'\n pglookout-settings:\n $ref: '#/components/schemas/json-schema-pglookout'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n recovery-backup-time:\n description: ISO time of a backup to recover from for services that support arbitrary times\n minLength: 1\n type: string\n shared-buffers-percentage:\n description: Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the shared_buffers configuration value.\n format: int64\n maximum: 60\n minimum: 20\n type: integer\n synchronous-replication:\n $ref: '#/components/schemas/enum-pg-synchronous-replication'\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n timescaledb-settings:\n $ref: '#/components/schemas/json-schema-timescaledb'\n variant:\n $ref: '#/components/schemas/enum-pg-variant'\n version:\n $ref: '#/components/schemas/dbaas-pg-target-versions'\n work-mem:\n description: Sets the maximum amount of memory to be used by a query operation (such as a sort or hash table) before writing to temporary disk files, in MB. Default is 1MB + 0.075% of total RAM (up to 32MB).\n format: int64\n maximum: 1024\n minimum: 1\n type: integer\nrequired:\n- plan\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n admin-password:\n description: Custom password for admin user. Defaults to random string. This must be set only when a new service is being created.\n maxLength: 256\n minLength: 8\n pattern: ^[a-zA-Z0-9-_]+$\n type: string\n admin-username:\n description: Custom username for admin user. This must be set only when a new service is being created.\n maxLength: 64\n minLength: 1\n pattern: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,63}$\n type: string\n backup-schedule:\n properties:\n backup-hour:\n description: The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 23\n minimum: 0\n nullable: true\n type: integer\n backup-minute:\n description: The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 59\n minimum: 0\n nullable: true\n type: integer\n type: object\n fork-from-service:\n $ref: '#/components/schemas/dbaas-service-name'\n integrations:\n description: Service integrations to be enabled when creating the service.\n items:\n properties:\n dest-service:\n $ref: '#/components/schemas/dbaas-service-name'\n settings:\n description: Integration settings\n type: object\n source-service:\n $ref: '#/components/schemas/dbaas-service-name'\n type:\n description: Integration type\n enum:\n - read_replica\n type: string\n required:\n - type\n type: object\n type: array\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n pg-settings:\n $ref: '#/components/schemas/json-schema-pg'\n pgaudit-settings:\n $ref: '#/components/schemas/json-schema-pgaudit'\n pgbouncer-settings:\n $ref: '#/components/schemas/json-schema-pgbouncer'\n pglookout-settings:\n $ref: '#/components/schemas/json-schema-pglookout'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n recovery-backup-time:\n description: ISO time of a backup to recover from for services that support arbitrary times\n minLength: 1\n type: string\n shared-buffers-percentage:\n description: Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the shared_buffers configuration value.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 60\n minimum: 20\n type: integer\n synchronous-replication:\n $ref: '#/components/schemas/enum-pg-synchronous-replication'\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n timescaledb-settings:\n $ref: '#/components/schemas/json-schema-timescaledb'\n variant:\n $ref: '#/components/schemas/enum-pg-variant'\n version:\n $ref: '#/components/schemas/dbaas-pg-target-versions'\n work-mem:\n description: Sets the maximum amount of memory to be used by a query operation (such as a sort or hash table) before writing to temporary disk files, in MB. Default is 1MB + 0.075% of total RAM (up to 32MB).\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 1024\n minimum: 1\n type: integer\nrequired:\n- plan\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -21526,7 +21522,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-dbaas-service-pg name", Short: "Update a DBaaS PostgreSQL service", - Long: cli.Markdown("Update a DBaaS PostgreSQL service\n## Request Schema (application/json)\n\nproperties:\n backup-schedule:\n properties:\n backup-hour:\n description: The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.\n format: int64\n maximum: 23\n minimum: 0\n nullable: true\n type: integer\n backup-minute:\n description: The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.\n format: int64\n maximum: 59\n minimum: 0\n nullable: true\n type: integer\n type: object\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n pg-settings:\n $ref: '#/components/schemas/json-schema-pg'\n pgaudit-settings:\n $ref: '#/components/schemas/json-schema-pgaudit'\n pgbouncer-settings:\n $ref: '#/components/schemas/json-schema-pgbouncer'\n pglookout-settings:\n $ref: '#/components/schemas/json-schema-pglookout'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n shared-buffers-percentage:\n description: Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the shared_buffers configuration value.\n format: int64\n maximum: 60\n minimum: 20\n type: integer\n synchronous-replication:\n $ref: '#/components/schemas/enum-pg-synchronous-replication'\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n timescaledb-settings:\n $ref: '#/components/schemas/json-schema-timescaledb'\n variant:\n $ref: '#/components/schemas/enum-pg-variant'\n version:\n description: Version\n type: string\n work-mem:\n description: Sets the maximum amount of memory to be used by a query operation (such as a sort or hash table) before writing to temporary disk files, in MB. Default is 1MB + 0.075% of total RAM (up to 32MB).\n format: int64\n maximum: 1024\n minimum: 1\n type: integer\ntype: object\n"), + Long: cli.Markdown("Update a DBaaS PostgreSQL service\n## Request Schema (application/json)\n\nproperties:\n backup-schedule:\n properties:\n backup-hour:\n description: The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 23\n minimum: 0\n nullable: true\n type: integer\n backup-minute:\n description: The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 59\n minimum: 0\n nullable: true\n type: integer\n type: object\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n pg-settings:\n $ref: '#/components/schemas/json-schema-pg'\n pgaudit-settings:\n $ref: '#/components/schemas/json-schema-pgaudit'\n pgbouncer-settings:\n $ref: '#/components/schemas/json-schema-pgbouncer'\n pglookout-settings:\n $ref: '#/components/schemas/json-schema-pglookout'\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n shared-buffers-percentage:\n description: Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the shared_buffers configuration value.\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 60\n minimum: 20\n type: integer\n synchronous-replication:\n $ref: '#/components/schemas/enum-pg-synchronous-replication'\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n timescaledb-settings:\n $ref: '#/components/schemas/json-schema-timescaledb'\n variant:\n $ref: '#/components/schemas/enum-pg-variant'\n version:\n description: Version\n type: string\n work-mem:\n description: Sets the maximum amount of memory to be used by a query operation (such as a sort or hash table) before writing to temporary disk files, in MB. Default is 1MB + 0.075% of total RAM (up to 32MB).\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 1024\n minimum: 1\n type: integer\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -22091,7 +22087,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "get-dbaas-service-logs service-name", Short: "Get logs of DBaaS service", - Long: cli.Markdown("Get logs of DBaaS service\n## Request Schema (application/json)\n\nproperties:\n limit:\n description: 'How many log entries to receive at most, up to 500 (default: 100)'\n format: int64\n maximum: 500\n minimum: 1\n type: integer\n offset:\n description: Opaque offset identifier\n type: string\n sort-order:\n $ref: '#/components/schemas/enum-sort-order'\ntype: object\n"), + Long: cli.Markdown("Get logs of DBaaS service\n## Request Schema (application/json)\n\nproperties:\n limit:\n description: 'How many log entries to receive at most, up to 500 (default: 100)'\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 500\n minimum: 1\n type: integer\n offset:\n description: Opaque offset identifier\n type: string\n sort-order:\n $ref: '#/components/schemas/enum-sort-order'\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -22850,7 +22846,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-dbaas-service-valkey name", Short: "Create a DBaaS Valkey service", - Long: cli.Markdown("Create a DBaaS Valkey service\n## Request Schema (application/json)\n\nproperties:\n fork-from-service:\n $ref: '#/components/schemas/dbaas-service-name'\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n recovery-backup-name:\n description: Name of a backup to recover from for services that support backup names\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n valkey-settings:\n $ref: '#/components/schemas/json-schema-valkey'\n version:\n description: Valkey major version\n minLength: 1\n type: string\nrequired:\n- plan\ntype: object\n"), + Long: cli.Markdown("Create a DBaaS Valkey service\n## Request Schema (application/json)\n\nproperties:\n fork-from-service:\n $ref: '#/components/schemas/dbaas-service-name'\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n recovery-backup-name:\n description: Name of a backup to recover from for services that support backup names\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n valkey-settings:\n $ref: '#/components/schemas/json-schema-valkey'\n version:\n description: Valkey major version\n minLength: 1\n type: string\nrequired:\n- plan\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -22959,7 +22955,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-dbaas-service-valkey name", Short: "update-dbaas-service-valkey", - Long: cli.Markdown("Update a DBaaS Valkey service\n## Request Schema (application/json)\n\nproperties:\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n valkey-settings:\n $ref: '#/components/schemas/json-schema-valkey'\n version:\n description: Valkey major version\n minLength: 1\n type: string\ntype: object\n"), + Long: cli.Markdown("Update a DBaaS Valkey service\n## Request Schema (application/json)\n\nproperties:\n ip-filter:\n description: Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'\n items:\n type: string\n type: array\n maintenance:\n description: Automatic maintenance settings\n properties:\n dow:\n description: Day of week for installing updates\n enum:\n - saturday\n - tuesday\n - never\n - wednesday\n - sunday\n - friday\n - monday\n - thursday\n type: string\n time:\n description: Time for installing updates, UTC\n maxLength: 8\n minLength: 8\n type: string\n required:\n - dow\n - time\n type: object\n migration:\n description: Migrate data from existing server\n properties:\n dbname:\n description: Database name for bootstrapping the initial connection\n maxLength: 63\n minLength: 1\n type: string\n host:\n description: Hostname or IP address of the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n ignore-dbs:\n description: Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)\n maxLength: 2048\n minLength: 1\n type: string\n method:\n $ref: '#/components/schemas/enum-migration-method'\n password:\n description: Password for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port number of the server where to migrate data from\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n ssl:\n description: The server where to migrate data from is secured with SSL\n type: boolean\n username:\n description: User name for authentication with the server where to migrate data from\n maxLength: 255\n minLength: 1\n type: string\n required:\n - host\n - port\n type: object\n plan:\n description: Subscription plan\n maxLength: 128\n minLength: 1\n type: string\n termination-protection:\n description: Service is protected against termination and powering off\n type: boolean\n valkey-settings:\n $ref: '#/components/schemas/json-schema-valkey'\n version:\n description: Valkey major version\n minLength: 1\n type: string\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -23442,7 +23438,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-dns-domain-record domain-id", Short: "Create DNS domain record", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n content:\n description: DNS domain record content\n type: string\n name:\n description: DNS domain record name\n type: string\n priority:\n description: DNS domain record priority\n format: int64\n minimum: 0\n type: integer\n ttl:\n description: DNS domain record TTL\n format: int64\n minimum: 0\n type: integer\n type:\n description: DNS domain record type\n enum:\n - NS\n - CAA\n - NAPTR\n - POOL\n - A\n - HINFO\n - CNAME\n - SSHFP\n - SRV\n - AAAA\n - MX\n - TXT\n - ALIAS\n - URL\n type: string\nrequired:\n- name\n- type\n- content\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n content:\n description: DNS domain record content\n type: string\n name:\n description: DNS domain record name\n type: string\n priority:\n description: DNS domain record priority\n exclusiveMinimum: false\n format: int64\n minimum: 0\n type: integer\n ttl:\n description: DNS domain record TTL\n exclusiveMinimum: false\n format: int64\n minimum: 0\n type: integer\n type:\n description: DNS domain record type\n enum:\n - NS\n - CAA\n - NAPTR\n - POOL\n - A\n - HINFO\n - CNAME\n - SSHFP\n - SRV\n - AAAA\n - MX\n - TXT\n - ALIAS\n - URL\n type: string\nrequired:\n- name\n- type\n- content\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -24053,6 +24049,83 @@ func xRegister(subcommand bool) { }() + func() { + params := viper.New() + + var examples string + + cmd := &cobra.Command{ + Use: "get-impact-estimate", + Short: "[BETA] Get an estimate of the impact of using products", + Long: cli.Markdown("[BETA] Returns an estimate of the impact of a unit of usage of one or more products, e.g. the impact of using a standard medium instance for one hour in ch-gva-2\n## Request Schema (application/json)\n\nproperties:\n metadata:\n type: object\n sku:\n description: Product SKU, e.g. compute:ch-gva-2:instance:standard:medium; can also include wildcards, e.g. compute:*:instance:standard:* for all standard instances in all zones\n type: string\nrequired:\n- sku\ntype: object\n"), + Example: examples, + Args: cobra.MinimumNArgs(0), + Run: func(cmd *cobra.Command, args []string) { + body, err := cli.GetBody("application/json", args[0:]) + if err != nil { + log.Fatal().Err(err).Msg("Unable to get body") + } + + _, decoded, err := XGetImpactEstimate(params, body) + if err != nil { + log.Fatal().Err(err).Msg("Error calling operation") + } + + if err := cli.Formatter.Format(decoded); err != nil { + log.Fatal().Err(err).Msg("Formatting failed") + } + + }, + } + + root.AddCommand(cmd) + + cli.SetCustomFlags(cmd) + + if cmd.Flags().HasFlags() { + params.BindPFlags(cmd.Flags()) + } + + }() + + func() { + params := viper.New() + + var examples string + + cmd := &cobra.Command{ + Use: "get-impact-report", + Short: "[BETA] Get an environmental impact report", + Long: cli.Markdown("[BETA] Returns a breakdown of the impact of your organization's usage over the given period"), + Example: examples, + Args: cobra.MinimumNArgs(0), + Run: func(cmd *cobra.Command, args []string) { + + _, decoded, err := XGetImpactReport(params) + if err != nil { + log.Fatal().Err(err).Msg("Error calling operation") + } + + if err := cli.Formatter.Format(decoded); err != nil { + log.Fatal().Err(err).Msg("Formatting failed") + } + + }, + } + + root.AddCommand(cmd) + + cmd.Flags().String("from", "", "") + cmd.Flags().String("to", "", "") + + cli.SetCustomFlags(cmd) + + if cmd.Flags().HasFlags() { + params.BindPFlags(cmd.Flags()) + } + + }() + func() { params := viper.New() @@ -24473,7 +24546,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-instance", Short: "Create a Compute instance", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n anti-affinity-groups:\n description: Instance Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n type: array\n uniqueItems: true\n application-consistent-snapshot-enabled:\n description: Enable application-consistent snapshot for the instance\n type: boolean\n auto-start:\n description: 'Start Instance on creation (default: true)'\n type: boolean\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n disk-size:\n description: Instance disk size in GiB\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n ipv6-enabled:\n description: 'Enable IPv6. DEPRECATED: use `public-ip-assignments`.'\n type: boolean\n labels:\n $ref: '#/components/schemas/labels'\n name:\n description: Instance name\n maxLength: 255\n minLength: 1\n type: string\n public-ip-assignment:\n $ref: '#/components/schemas/public-ip-assignment'\n secureboot-enabled:\n description: Enable secure boot\n type: boolean\n security-groups:\n description: Instance Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n type: array\n uniqueItems: true\n ssh-key:\n $ref: '#/components/schemas/ssh-key-ref'\n ssh-keys:\n description: Instance SSH Keys\n items:\n $ref: '#/components/schemas/ssh-key-ref'\n type: array\n uniqueItems: true\n template:\n $ref: '#/components/schemas/template-ref'\n tpm-enabled:\n description: Enable Trusted Platform Module (TPM)\n type: boolean\n user-data:\n description: Instance Cloud-init user-data (base64 encoded)\n maxLength: 32768\n minLength: 1\n type: string\nrequired:\n- disk-size\n- instance-type\n- template\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n anti-affinity-groups:\n description: Instance Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n type: array\n uniqueItems: true\n application-consistent-snapshot-enabled:\n description: Enable application-consistent snapshot for the instance\n type: boolean\n auto-start:\n description: 'Start Instance on creation (default: true)'\n type: boolean\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n disk-size:\n description: Instance disk size in GiB\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n ipv6-enabled:\n description: 'Enable IPv6. DEPRECATED: use `public-ip-assignments`.'\n type: boolean\n labels:\n $ref: '#/components/schemas/labels'\n name:\n description: Instance name\n maxLength: 255\n minLength: 1\n type: string\n public-ip-assignment:\n $ref: '#/components/schemas/public-ip-assignment'\n secureboot-enabled:\n description: Enable secure boot\n type: boolean\n security-groups:\n description: Instance Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n type: array\n uniqueItems: true\n ssh-key:\n $ref: '#/components/schemas/ssh-key-ref'\n ssh-keys:\n description: Instance SSH Keys\n items:\n $ref: '#/components/schemas/ssh-key-ref'\n type: array\n uniqueItems: true\n template:\n $ref: '#/components/schemas/template-ref'\n tpm-enabled:\n description: Enable Trusted Platform Module (TPM)\n type: boolean\n user-data:\n description: Instance Cloud-init user-data (base64 encoded)\n maxLength: 32768\n minLength: 1\n type: string\nrequired:\n- disk-size\n- instance-type\n- template\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(0), Run: func(cmd *cobra.Command, args []string) { @@ -24552,7 +24625,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-instance-pool", Short: "Create an Instance Pool", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n anti-affinity-groups:\n description: Instance Pool Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n type: array\n uniqueItems: true\n application-consistent-snapshot-enabled:\n description: Enable application consistent snapshots\n type: boolean\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n description:\n description: Instance Pool description\n maxLength: 255\n type: string\n disk-size:\n description: Instances disk size in GiB\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\n elastic-ips:\n description: Instances Elastic IPs\n items:\n $ref: '#/components/schemas/elastic-ip-ref'\n type: array\n uniqueItems: true\n instance-prefix:\n description: 'Prefix to apply to Instances names (default: pool)'\n maxLength: 30\n minLength: 1\n type: string\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n ipv6-enabled:\n description: 'Enable IPv6. DEPRECATED: use `public-ip-assignments`.'\n type: boolean\n labels:\n $ref: '#/components/schemas/labels'\n min-available:\n description: Minimum number of running Instances\n format: int64\n minimum: 0\n type: integer\n name:\n description: Instance Pool name\n maxLength: 255\n minLength: 1\n type: string\n private-networks:\n description: Instance Pool Private Networks\n items:\n $ref: '#/components/schemas/private-network-ref'\n type: array\n uniqueItems: true\n public-ip-assignment:\n description: Determines public IP assignment of the Instances. Type `none` is final and can't be changed later on.\n enum:\n - inet4\n - dual\n - none\n type: string\n security-groups:\n description: Instance Pool Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n type: array\n uniqueItems: true\n size:\n description: Number of Instances\n exclusiveMinimum: true\n format: int64\n minimum: 0\n type: integer\n ssh-key:\n $ref: '#/components/schemas/ssh-key-ref'\n ssh-keys:\n description: Instances SSH Keys\n items:\n $ref: '#/components/schemas/ssh-key-ref'\n type: array\n uniqueItems: true\n template:\n $ref: '#/components/schemas/template-ref'\n user-data:\n description: Instances Cloud-init user-data\n maxLength: 32768\n minLength: 1\n type: string\nrequired:\n- name\n- size\n- instance-type\n- template\n- disk-size\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n anti-affinity-groups:\n description: Instance Pool Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n type: array\n uniqueItems: true\n application-consistent-snapshot-enabled:\n description: Enable application consistent snapshots\n type: boolean\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n description:\n description: Instance Pool description\n maxLength: 255\n type: string\n disk-size:\n description: Instances disk size in GiB\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\n elastic-ips:\n description: Instances Elastic IPs\n items:\n $ref: '#/components/schemas/elastic-ip-ref'\n type: array\n uniqueItems: true\n instance-prefix:\n description: 'Prefix to apply to Instances names (default: pool)'\n maxLength: 30\n minLength: 1\n type: string\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n ipv6-enabled:\n description: 'Enable IPv6. DEPRECATED: use `public-ip-assignments`.'\n type: boolean\n labels:\n $ref: '#/components/schemas/labels'\n min-available:\n description: Minimum number of running Instances\n exclusiveMinimum: false\n format: int64\n minimum: 0\n type: integer\n name:\n description: Instance Pool name\n maxLength: 255\n minLength: 1\n type: string\n private-networks:\n description: Instance Pool Private Networks\n items:\n $ref: '#/components/schemas/private-network-ref'\n type: array\n uniqueItems: true\n public-ip-assignment:\n description: Determines public IP assignment of the Instances. Type `none` is final and can't be changed later on.\n enum:\n - inet4\n - dual\n - none\n type: string\n security-groups:\n description: Instance Pool Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n type: array\n uniqueItems: true\n size:\n description: Number of Instances\n exclusiveMinimum: true\n format: int64\n minimum: 0\n type: integer\n ssh-key:\n $ref: '#/components/schemas/ssh-key-ref'\n ssh-keys:\n description: Instances SSH Keys\n items:\n $ref: '#/components/schemas/ssh-key-ref'\n type: array\n uniqueItems: true\n template:\n $ref: '#/components/schemas/template-ref'\n user-data:\n description: Instances Cloud-init user-data\n maxLength: 32768\n minLength: 1\n type: string\nrequired:\n- name\n- size\n- instance-type\n- template\n- disk-size\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(0), Run: func(cmd *cobra.Command, args []string) { @@ -24696,7 +24769,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-instance-pool id", Short: "Update an Instance Pool", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n anti-affinity-groups:\n description: Instance Pool Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n nullable: true\n type: array\n uniqueItems: true\n application-consistent-snapshot-enabled:\n description: Enable application consistent snapshots\n type: boolean\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n description:\n description: Instance Pool description\n maxLength: 255\n type: string\n disk-size:\n description: Instances disk size in GiB\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\n elastic-ips:\n description: Instances Elastic IPs\n items:\n $ref: '#/components/schemas/elastic-ip-ref'\n nullable: true\n type: array\n instance-prefix:\n description: 'Prefix to apply to Instances names (default: pool)'\n nullable: true\n type: string\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n ipv6-enabled:\n description: 'Enable IPv6. DEPRECATED: use `public-ip-assignments`.'\n type: boolean\n labels:\n $ref: '#/components/schemas/labels'\n min-available:\n description: Minimum number of running Instances\n format: int64\n minimum: 0\n nullable: true\n type: integer\n name:\n description: Instance Pool name\n maxLength: 255\n minLength: 1\n type: string\n private-networks:\n description: Instance Pool Private Networks\n items:\n $ref: '#/components/schemas/private-network-ref'\n nullable: true\n type: array\n uniqueItems: true\n public-ip-assignment:\n description: Determines public IP assignment of the Instances.\n enum:\n - inet4\n - dual\n type: string\n security-groups:\n description: Instance Pool Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n nullable: true\n type: array\n uniqueItems: true\n ssh-key:\n $ref: '#/components/schemas/ssh-key-ref'\n ssh-keys:\n description: Instances SSH keys\n items:\n $ref: '#/components/schemas/ssh-key-ref'\n nullable: true\n type: array\n uniqueItems: true\n template:\n $ref: '#/components/schemas/template-ref'\n user-data:\n description: Instances Cloud-init user-data\n minLength: 1\n nullable: true\n type: string\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n anti-affinity-groups:\n description: Instance Pool Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n nullable: true\n type: array\n uniqueItems: true\n application-consistent-snapshot-enabled:\n description: Enable application consistent snapshots\n type: boolean\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n description:\n description: Instance Pool description\n maxLength: 255\n type: string\n disk-size:\n description: Instances disk size in GiB\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\n elastic-ips:\n description: Instances Elastic IPs\n items:\n $ref: '#/components/schemas/elastic-ip-ref'\n nullable: true\n type: array\n instance-prefix:\n description: 'Prefix to apply to Instances names (default: pool)'\n nullable: true\n type: string\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n ipv6-enabled:\n description: 'Enable IPv6. DEPRECATED: use `public-ip-assignments`.'\n type: boolean\n labels:\n $ref: '#/components/schemas/labels'\n min-available:\n description: Minimum number of running Instances\n exclusiveMinimum: false\n format: int64\n minimum: 0\n nullable: true\n type: integer\n name:\n description: Instance Pool name\n maxLength: 255\n minLength: 1\n type: string\n private-networks:\n description: Instance Pool Private Networks\n items:\n $ref: '#/components/schemas/private-network-ref'\n nullable: true\n type: array\n uniqueItems: true\n public-ip-assignment:\n description: Determines public IP assignment of the Instances.\n enum:\n - inet4\n - dual\n type: string\n security-groups:\n description: Instance Pool Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n nullable: true\n type: array\n uniqueItems: true\n ssh-key:\n $ref: '#/components/schemas/ssh-key-ref'\n ssh-keys:\n description: Instances SSH keys\n items:\n $ref: '#/components/schemas/ssh-key-ref'\n nullable: true\n type: array\n uniqueItems: true\n template:\n $ref: '#/components/schemas/template-ref'\n user-data:\n description: Instances Cloud-init user-data\n minLength: 1\n nullable: true\n type: string\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -24809,7 +24882,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "scale-instance-pool id", Short: "Scale an Instance Pool", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n size:\n description: Number of managed Instances\n format: int64\n minimum: 0\n type: integer\nrequired:\n- size\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n size:\n description: Number of managed Instances\n exclusiveMinimum: false\n format: int64\n minimum: 0\n type: integer\nrequired:\n- size\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -25292,7 +25365,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "reset-instance id", Short: "Reset a Compute instance to a base/target template", - Long: cli.Markdown("This operation re-installs a Compute instance to a base template. If target template is provided it will be used to recreated instance from. Warning: the operation wipes all data stored on the disk.\n## Request Schema (application/json)\n\nproperties:\n disk-size:\n description: Instance disk size in GiB\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\n template:\n $ref: '#/components/schemas/template-ref'\ntype: object\n"), + Long: cli.Markdown("This operation re-installs a Compute instance to a base template. If target template is provided it will be used to recreated instance from. Warning: the operation wipes all data stored on the disk.\n## Request Schema (application/json)\n\nproperties:\n disk-size:\n description: Instance disk size in GiB\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\n template:\n $ref: '#/components/schemas/template-ref'\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -25370,7 +25443,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "resize-instance-disk id", Short: "Resize a Compute instance disk", - Long: cli.Markdown("This operation resizes a Compute instance's disk volume. Note: the disk can only grow, cannot be shrunk.\n## Request Schema (application/json)\n\nproperties:\n disk-size:\n description: Instance disk size in GiB\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\nrequired:\n- disk-size\ntype: object\n"), + Long: cli.Markdown("This operation resizes a Compute instance's disk volume. Note: the disk can only grow, cannot be shrunk.\n## Request Schema (application/json)\n\nproperties:\n disk-size:\n description: Instance disk size in GiB\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 51200\n minimum: 10\n type: integer\nrequired:\n- disk-size\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -25565,7 +25638,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-kms-key", Short: "Create KMS Key", - Long: cli.Markdown("Create a customer-managed unique KMS Key in your organization. A KMS Key is a logical represention of a cryptographic key material. It also includes metadata such as a UUID, a name and its state.\n## Request Schema (application/json)\n\nproperties:\n description:\n description: An optional detailed description providing additional context about the key's intended use case.\n type: string\n multi-zone:\n default: false\n description: True if this is a multi-zone key.\n type: boolean\n name:\n description: A human-readable display name uniquely identifying the KMS key within the tenant space.\n type: string\n usage:\n default: encrypt-decrypt\n enum:\n - encrypt-decrypt\n type: string\nrequired:\n- name\ntype: object\n"), + Long: cli.Markdown("Create a customer-managed unique KMS Key in your organization. A KMS Key is a logical representation of a cryptographic key material. It also includes metadata such as a UUID, a name and its state.\n## Request Schema (application/json)\n\nproperties:\n description:\n description: An optional detailed description providing additional context about the key's intended use case.\n type: string\n multi-zone:\n default: false\n description: True if this is a multi-zone key.\n type: boolean\n name:\n description: A human-readable display name uniquely identifying the KMS key within the tenant space.\n type: string\n usage:\n default: encrypt-decrypt\n enum:\n - encrypt-decrypt\n type: string\nrequired:\n- name\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(0), Run: func(cmd *cobra.Command, args []string) { @@ -25830,7 +25903,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "enable-kms-key id", Short: "Enable KMS Key", - Long: cli.Markdown("Enables a KMS Key by setting its stated to \"enabled\". It restores the ability to fully use the KMS key for cryptographic operations and key lifecycle operations."), + Long: cli.Markdown("Enables a KMS Key by setting its state to \"enabled\". It restores the ability to fully use the KMS key for cryptographic operations and key lifecycle operations."), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -26395,7 +26468,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "add-service-to-load-balancer id", Short: "Add a Load Balancer Service", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n description:\n description: Load Balancer Service description\n maxLength: 255\n type: string\n healthcheck:\n $ref: '#/components/schemas/load-balancer-service-healthcheck'\n instance-pool:\n $ref: '#/components/schemas/instance-pool'\n name:\n description: Load Balancer Service name\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port exposed on the Load Balancer's public IP\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n protocol:\n description: Network traffic protocol\n enum:\n - tcp\n - udp\n type: string\n strategy:\n description: Load balancing strategy\n enum:\n - round-robin\n - maglev-hash\n - source-hash\n type: string\n target-port:\n description: Port on which the network traffic will be forwarded to on the receiving instance\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\nrequired:\n- name\n- instance-pool\n- protocol\n- strategy\n- port\n- target-port\n- healthcheck\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n description:\n description: Load Balancer Service description\n maxLength: 255\n type: string\n healthcheck:\n $ref: '#/components/schemas/load-balancer-service-healthcheck'\n instance-pool:\n $ref: '#/components/schemas/instance-pool'\n name:\n description: Load Balancer Service name\n maxLength: 255\n minLength: 1\n type: string\n port:\n description: Port exposed on the Load Balancer's public IP\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n protocol:\n description: Network traffic protocol\n enum:\n - tcp\n - udp\n type: string\n strategy:\n description: Load balancing strategy\n enum:\n - round-robin\n - maglev-hash\n - source-hash\n type: string\n target-port:\n description: Port on which the network traffic will be forwarded to on the receiving instance\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\nrequired:\n- name\n- instance-pool\n- protocol\n- strategy\n- port\n- target-port\n- healthcheck\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -26504,7 +26577,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-load-balancer-service id service-id", Short: "Update a Load Balancer Service", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n description:\n description: Load Balancer Service description\n maxLength: 255\n type: string\n healthcheck:\n $ref: '#/components/schemas/load-balancer-service-healthcheck'\n name:\n description: Load Balancer Service name\n maxLength: 255\n type: string\n port:\n description: Port exposed on the Load Balancer's public IP\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n protocol:\n description: Network traffic protocol\n enum:\n - tcp\n - udp\n type: string\n strategy:\n description: Load balancing strategy\n enum:\n - round-robin\n - maglev-hash\n - source-hash\n type: string\n target-port:\n description: Port on which the network traffic will be forwarded to on the receiving instance\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n description:\n description: Load Balancer Service description\n maxLength: 255\n type: string\n healthcheck:\n $ref: '#/components/schemas/load-balancer-service-healthcheck'\n name:\n description: Load Balancer Service name\n maxLength: 255\n type: string\n port:\n description: Port exposed on the Load Balancer's public IP\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n protocol:\n description: Network traffic protocol\n enum:\n - tcp\n - udp\n type: string\n strategy:\n description: Load balancing strategy\n enum:\n - round-robin\n - maglev-hash\n - source-hash\n type: string\n target-port:\n description: Port on which the network traffic will be forwarded to on the receiving instance\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(2), Run: func(cmd *cobra.Command, args []string) { @@ -27452,7 +27525,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "add-rule-to-security-group id", Short: "Create a Security Group rule", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n description:\n description: Security Group rule description\n maxLength: 255\n type: string\n end-port:\n description: End port of the range\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n flow-direction:\n description: Network flow direction to match\n enum:\n - ingress\n - egress\n type: string\n icmp:\n description: 'ICMP details (default: -1 (ANY))'\n properties:\n code:\n format: int64\n maximum: 254\n minimum: -1\n nullable: true\n type: integer\n type:\n format: int64\n maximum: 254\n minimum: -1\n nullable: true\n type: integer\n type: object\n network:\n description: CIDR-formatted network allowed\n type: string\n protocol:\n description: Network protocol\n enum:\n - tcp\n - esp\n - icmp\n - udp\n - gre\n - ah\n - ipip\n - icmpv6\n type: string\n security-group:\n $ref: '#/components/schemas/security-group-resource'\n start-port:\n description: Start port of the range\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\nrequired:\n- flow-direction\n- protocol\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n description:\n description: Security Group rule description\n maxLength: 255\n type: string\n end-port:\n description: End port of the range\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\n flow-direction:\n description: Network flow direction to match\n enum:\n - ingress\n - egress\n type: string\n icmp:\n description: 'ICMP details (default: -1 (ANY))'\n properties:\n code:\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 254\n minimum: -1\n nullable: true\n type: integer\n type:\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 254\n minimum: -1\n nullable: true\n type: integer\n type: object\n network:\n description: CIDR-formatted network allowed\n type: string\n protocol:\n description: Network protocol\n enum:\n - tcp\n - esp\n - all\n - icmp\n - udp\n - gre\n - ah\n - ipip\n - icmpv6\n type: string\n security-group:\n $ref: '#/components/schemas/security-group-resource'\n start-port:\n description: Start port of the range\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 65535\n minimum: 1\n type: integer\nrequired:\n- flow-direction\n- protocol\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -28124,7 +28197,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "create-sks-nodepool id", Short: "Create a new SKS Nodepool", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n addons:\n description: Nodepool addons\n items:\n enum:\n - storage-lvm\n type: string\n type: array\n uniqueItems: true\n anti-affinity-groups:\n description: Nodepool Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n maxItems: 8\n type: array\n uniqueItems: true\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n description:\n description: Nodepool description\n maxLength: 255\n type: string\n disk-size:\n description: Nodepool instances disk size in GiB\n format: int64\n maximum: 51200\n minimum: 20\n type: integer\n instance-prefix:\n description: 'Prefix to apply to instances names (default: pool), lowercase only'\n maxLength: 30\n minLength: 1\n type: string\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n kubelet-image-gc:\n $ref: '#/components/schemas/kubelet-image-gc'\n labels:\n $ref: '#/components/schemas/sks-nodepool-labels'\n name:\n description: Nodepool name, lowercase only\n maxLength: 255\n minLength: 1\n type: string\n nvidia-mig-profiles:\n $ref: '#/components/schemas/nvidia-mig-profiles'\n private-networks:\n description: Nodepool Private Networks\n items:\n $ref: '#/components/schemas/private-network-ref'\n maxItems: 16\n type: array\n uniqueItems: true\n public-ip-assignment:\n description: |-\n Configures public IP assignment of the Instances with:\n\n * IPv4 (`inet4`) addressing only (default);\n * both IPv4 and IPv6 (`dual`) addressing.\n enum:\n - inet4\n - dual\n type: string\n security-groups:\n description: Nodepool Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n maxItems: 16\n type: array\n uniqueItems: true\n size:\n description: Number of instances\n exclusiveMinimum: true\n format: int64\n minimum: 0\n type: integer\n taints:\n $ref: '#/components/schemas/sks-nodepool-taints'\nrequired:\n- name\n- size\n- disk-size\n- instance-type\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n addons:\n description: Nodepool addons\n items:\n enum:\n - storage-lvm\n type: string\n type: array\n uniqueItems: true\n anti-affinity-groups:\n description: Nodepool Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n maxItems: 8\n type: array\n uniqueItems: true\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n description:\n description: Nodepool description\n maxLength: 255\n type: string\n disk-size:\n description: Nodepool instances disk size in GiB\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 51200\n minimum: 20\n type: integer\n instance-prefix:\n description: 'Prefix to apply to instances names (default: pool), lowercase only'\n maxLength: 30\n minLength: 1\n type: string\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n kubelet-image-gc:\n $ref: '#/components/schemas/kubelet-image-gc'\n labels:\n $ref: '#/components/schemas/sks-nodepool-labels'\n name:\n description: Nodepool name, lowercase only\n maxLength: 255\n minLength: 1\n type: string\n nvidia-mig-profiles:\n $ref: '#/components/schemas/nvidia-mig-profiles'\n private-networks:\n description: Nodepool Private Networks\n items:\n $ref: '#/components/schemas/private-network-ref'\n maxItems: 16\n type: array\n uniqueItems: true\n public-ip-assignment:\n description: |-\n Configures public IP assignment of the Instances with:\n\n * IPv4 (`inet4`) addressing only (default);\n * both IPv4 and IPv6 (`dual`) addressing.\n enum:\n - inet4\n - dual\n type: string\n security-groups:\n description: Nodepool Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n maxItems: 16\n type: array\n uniqueItems: true\n size:\n description: Number of instances\n exclusiveMinimum: true\n format: int64\n minimum: 0\n type: integer\n taints:\n $ref: '#/components/schemas/sks-nodepool-taints'\nrequired:\n- name\n- size\n- disk-size\n- instance-type\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -28233,7 +28306,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-sks-nodepool id sks-nodepool-id", Short: "Update an SKS Nodepool", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n anti-affinity-groups:\n description: Nodepool Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n maxItems: 8\n type: array\n uniqueItems: true\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n description:\n description: Nodepool description\n maxLength: 255\n type: string\n disk-size:\n description: Nodepool instances disk size in GiB\n format: int64\n maximum: 51200\n minimum: 20\n type: integer\n instance-prefix:\n description: 'Prefix to apply to managed instances names (default: pool), lowercase only'\n maxLength: 30\n minLength: 1\n type: string\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n kubelet-image-gc:\n $ref: '#/components/schemas/kubelet-image-gc'\n labels:\n $ref: '#/components/schemas/sks-nodepool-labels'\n name:\n description: Nodepool name, lowercase only\n maxLength: 255\n minLength: 1\n type: string\n nvidia-mig-profiles:\n $ref: '#/components/schemas/nvidia-mig-profiles'\n private-networks:\n description: Nodepool Private Networks\n items:\n $ref: '#/components/schemas/private-network-ref'\n maxItems: 16\n type: array\n uniqueItems: true\n public-ip-assignment:\n description: |-\n Configures public IP assignment of the Instances with:\n\n * IPv4 (`inet4`) addressing only;\n * both IPv4 and IPv6 (`dual`) addressing.\n enum:\n - inet4\n - dual\n type: string\n security-groups:\n description: Nodepool Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n maxItems: 16\n type: array\n uniqueItems: true\n taints:\n $ref: '#/components/schemas/sks-nodepool-taints'\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n anti-affinity-groups:\n description: Nodepool Anti-affinity Groups\n items:\n $ref: '#/components/schemas/anti-affinity-group-ref'\n maxItems: 8\n type: array\n uniqueItems: true\n deploy-target:\n $ref: '#/components/schemas/deploy-target-ref'\n description:\n description: Nodepool description\n maxLength: 255\n type: string\n disk-size:\n description: Nodepool instances disk size in GiB\n exclusiveMaximum: false\n exclusiveMinimum: false\n format: int64\n maximum: 51200\n minimum: 20\n type: integer\n instance-prefix:\n description: 'Prefix to apply to managed instances names (default: pool), lowercase only'\n maxLength: 30\n minLength: 1\n type: string\n instance-type:\n $ref: '#/components/schemas/instance-type-ref'\n kubelet-image-gc:\n $ref: '#/components/schemas/kubelet-image-gc'\n labels:\n $ref: '#/components/schemas/sks-nodepool-labels'\n name:\n description: Nodepool name, lowercase only\n maxLength: 255\n minLength: 1\n type: string\n nvidia-mig-profiles:\n $ref: '#/components/schemas/nvidia-mig-profiles'\n private-networks:\n description: Nodepool Private Networks\n items:\n $ref: '#/components/schemas/private-network-ref'\n maxItems: 16\n type: array\n uniqueItems: true\n public-ip-assignment:\n description: |-\n Configures public IP assignment of the Instances with:\n\n * IPv4 (`inet4`) addressing only;\n * both IPv4 and IPv6 (`dual`) addressing.\n enum:\n - inet4\n - dual\n type: string\n security-groups:\n description: Nodepool Security Groups\n items:\n $ref: '#/components/schemas/security-group-ref'\n maxItems: 16\n type: array\n uniqueItems: true\n taints:\n $ref: '#/components/schemas/sks-nodepool-taints'\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(2), Run: func(cmd *cobra.Command, args []string) { @@ -28311,7 +28384,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "scale-sks-nodepool id sks-nodepool-id", Short: "Scale a SKS Nodepool", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n size:\n description: Number of instances\n format: int64\n minimum: 0\n type: integer\nrequired:\n- size\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n size:\n description: Number of instances\n exclusiveMinimum: false\n format: int64\n minimum: 0\n type: integer\nrequired:\n- size\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(2), Run: func(cmd *cobra.Command, args []string) { @@ -29790,7 +29863,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "update-subnet vpc-id id", Short: "[BETA] Update a Subnet", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n description:\n description: Subnet description\n maxLength: 4096\n nullable: true\n type: string\n ipv4-block:\n description: Subnet CIDR\n nullable: true\n type: string\n labels:\n $ref: '#/components/schemas/labels'\n name:\n description: Subnet name\n maxLength: 255\n minLength: 1\n nullable: true\n type: string\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n description:\n description: Subnet description\n maxLength: 4096\n nullable: true\n type: string\n labels:\n $ref: '#/components/schemas/labels'\n name:\n description: Subnet name\n maxLength: 255\n minLength: 1\n nullable: true\n type: string\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(2), Run: func(cmd *cobra.Command, args []string) { @@ -29829,7 +29902,7 @@ func xRegister(subcommand bool) { cmd := &cobra.Command{ Use: "attach-instance-to-subnet vpc-id subnet-id", Short: "[BETA] Attach a Compute instance to a Subnet", - Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n instance:\n $ref: '#/components/schemas/instance-ref'\nrequired:\n- instance\ntype: object\n"), + Long: cli.Markdown("\n## Request Schema (application/json)\n\nproperties:\n instance:\n $ref: '#/components/schemas/instance-ref'\n ipv4:\n description: Instance IPv4\n format: ipv4\n type: string\nrequired:\n- instance\ntype: object\n"), Example: examples, Args: cobra.MinimumNArgs(2), Run: func(cmd *cobra.Command, args []string) {