From fe6fc085373e6416b13f915a9c70be77306f7da7 Mon Sep 17 00:00:00 2001 From: Konrad Beiske Date: Wed, 10 Apr 2024 15:43:33 +0200 Subject: [PATCH] Upgrade cloud-sdk-go to 1.17.0 (#643) --- cmd/deployment/command.go | 2 - cmd/deployment/create_test.go | 3 + cmd/deployment/note/command.go | 169 ------------------------ cmd/deployment/template/list_test.go | 1 + cmd/deployment/template/show_test.go | 1 + docs/ecctl-command-reference-index.adoc | 5 - docs/ecctl_deployment.adoc | 1 - docs/ecctl_deployment.md | 1 - docs/ecctl_deployment_note.adoc | 48 ------- docs/ecctl_deployment_note.md | 45 ------- docs/ecctl_deployment_note_create.adoc | 45 ------- docs/ecctl_deployment_note_create.md | 42 ------ docs/ecctl_deployment_note_list.adoc | 44 ------ docs/ecctl_deployment_note_list.md | 41 ------ docs/ecctl_deployment_note_show.adoc | 45 ------- docs/ecctl_deployment_note_show.md | 42 ------ docs/ecctl_deployment_note_update.adoc | 46 ------- docs/ecctl_deployment_note_update.md | 43 ------ go.mod | 2 +- go.sum | 2 + 20 files changed, 8 insertions(+), 620 deletions(-) delete mode 100644 cmd/deployment/note/command.go delete mode 100644 docs/ecctl_deployment_note.adoc delete mode 100644 docs/ecctl_deployment_note.md delete mode 100644 docs/ecctl_deployment_note_create.adoc delete mode 100644 docs/ecctl_deployment_note_create.md delete mode 100644 docs/ecctl_deployment_note_list.adoc delete mode 100644 docs/ecctl_deployment_note_list.md delete mode 100644 docs/ecctl_deployment_note_show.adoc delete mode 100644 docs/ecctl_deployment_note_show.md delete mode 100644 docs/ecctl_deployment_note_update.adoc delete mode 100644 docs/ecctl_deployment_note_update.md diff --git a/cmd/deployment/command.go b/cmd/deployment/command.go index 28233eda..98753760 100644 --- a/cmd/deployment/command.go +++ b/cmd/deployment/command.go @@ -22,7 +22,6 @@ import ( cmdelasticsearch "github.com/elastic/ecctl/cmd/deployment/elasticsearch" cmddeploymentextension "github.com/elastic/ecctl/cmd/deployment/extension" - cmddeploymentnote "github.com/elastic/ecctl/cmd/deployment/note" cmddeploymentplan "github.com/elastic/ecctl/cmd/deployment/plan" cmddeploymentresource "github.com/elastic/ecctl/cmd/deployment/resource" cmddeploymenttemplate "github.com/elastic/ecctl/cmd/deployment/template" @@ -42,7 +41,6 @@ var Command = &cobra.Command{ func init() { Command.AddCommand( cmddeploymentextension.Command, - cmddeploymentnote.Command, cmddeploymentplan.Command, cmddeploymentresource.Command, cmddeploymenttemplate.Command, diff --git a/cmd/deployment/create_test.go b/cmd/deployment/create_test.go index 192d4999..27288233 100644 --- a/cmd/deployment/create_test.go +++ b/cmd/deployment/create_test.go @@ -297,6 +297,7 @@ Deployment [%s] - [Apm][%s]: running step "waiting-for-some-step" (Plan duration Query: url.Values{ "region": {"ece-region"}, "show_instance_configurations": {"true"}, + "show_max_zones": {"false"}, "stack_version": {"7.8.0"}, }, }, @@ -348,6 +349,7 @@ Deployment [%s] - [Apm][%s]: running step "waiting-for-some-step" (Plan duration Query: url.Values{ "region": {"ece-region"}, "show_instance_configurations": {"true"}, + "show_max_zones": {"false"}, "stack_version": {"7.11.2"}, }, }, @@ -479,6 +481,7 @@ Deployment [%s] - [Apm][%s]: running step "waiting-for-some-step" (Plan duration Query: url.Values{ "region": {"ece-region"}, "show_instance_configurations": {"true"}, + "show_max_zones": {"false"}, "stack_version": {"8.11.3"}, }, }, diff --git a/cmd/deployment/note/command.go b/cmd/deployment/note/command.go deleted file mode 100644 index c34d6f82..00000000 --- a/cmd/deployment/note/command.go +++ /dev/null @@ -1,169 +0,0 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -package cmddeploymentnote - -import ( - "path/filepath" - - "github.com/elastic/cloud-sdk-go/pkg/api" - "github.com/elastic/cloud-sdk-go/pkg/api/deploymentapi" - "github.com/elastic/cloud-sdk-go/pkg/api/deploymentapi/noteapi" - sdkcmdutil "github.com/elastic/cloud-sdk-go/pkg/util/cmdutil" - "github.com/spf13/cobra" - - cmdutil "github.com/elastic/ecctl/cmd/util" - "github.com/elastic/ecctl/pkg/ecctl" -) - -// Command represents the deployment note subcommand. -var Command = &cobra.Command{ - Use: "note", - Short: cmdutil.AdminReqDescription("Manages a deployment's notes"), - PreRunE: cobra.MaximumNArgs(0), - Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, -} - -var deploymentNoteCreateCmd = &cobra.Command{ - Use: "create --comment ", - Aliases: []string{"add"}, - Short: cmdutil.AdminReqDescription("Adds a note to a deployment"), - PreRunE: sdkcmdutil.MinimumNArgsAndUUID(1), - RunE: func(cmd *cobra.Command, args []string) error { - comment, _ := cmd.Flags().GetString("comment") - esID, err := getElasticsearchID(args[0], ecctl.Get().API) - if err != nil { - return err - } - - return noteapi.Add(noteapi.AddParams{ - Params: noteapi.Params{ - API: ecctl.Get().API, - Region: ecctl.Get().Config.Region, - ID: esID, - }, - Message: comment, - UserID: ecctl.Get().Config.User, - }) - }, -} - -var deploymentNoteListCmd = &cobra.Command{ - Use: "list ", - Short: cmdutil.AdminReqDescription("Lists the deployment notes"), - PreRunE: sdkcmdutil.MinimumNArgsAndUUID(1), - RunE: func(cmd *cobra.Command, args []string) error { - esID, err := getElasticsearchID(args[0], ecctl.Get().API) - if err != nil { - return err - } - - res, err := noteapi.List(noteapi.Params{ - API: ecctl.Get().API, - Region: ecctl.Get().Config.Region, - ID: esID, - }) - if err != nil { - return err - } - - return ecctl.Get().Formatter.Format(filepath.Join("deployment", "notelist"), res) - }, -} - -var deploymentNoteUpdateCmd = &cobra.Command{ - Use: "update --id --comment ", - Short: cmdutil.AdminReqDescription("Updates the deployment notes"), - PreRunE: sdkcmdutil.MinimumNArgsAndUUID(1), - RunE: func(cmd *cobra.Command, args []string) error { - comment, _ := cmd.Flags().GetString("comment") - noteID, _ := cmd.Flags().GetString("id") - esID, err := getElasticsearchID(args[0], ecctl.Get().API) - if err != nil { - return err - } - - return api.ReturnErrOnly( - noteapi.Update(noteapi.UpdateParams{ - Message: comment, - UserID: ecctl.Get().Config.User, - NoteID: noteID, - Params: noteapi.Params{ - API: ecctl.Get().API, - Region: ecctl.Get().Config.Region, - ID: esID, - }, - }), - ) - }, -} - -var deploymentNoteShowCmd = &cobra.Command{ - Use: "show --id ", - Short: cmdutil.AdminReqDescription("Shows a deployment note"), - PreRunE: sdkcmdutil.MinimumNArgsAndUUID(1), - RunE: func(cmd *cobra.Command, args []string) error { - noteID, _ := cmd.Flags().GetString("id") - esID, err := getElasticsearchID(args[0], ecctl.Get().API) - if err != nil { - return err - } - - res, err := noteapi.Get(noteapi.GetParams{ - NoteID: noteID, - Params: noteapi.Params{ - API: ecctl.Get().API, - Region: ecctl.Get().Config.Region, - ID: esID, - }, - }) - if err != nil { - return err - } - - return ecctl.Get().Formatter.Format(filepath.Join("deployment", "noteshow"), res) - }, -} - -func init() { - Command.AddCommand( - deploymentNoteCreateCmd, - deploymentNoteListCmd, - deploymentNoteUpdateCmd, - deploymentNoteShowCmd, - ) - - deploymentNoteCreateCmd.Flags().String("comment", "", "Content of your deployment note") - deploymentNoteCreateCmd.MarkFlagRequired("comment") - deploymentNoteUpdateCmd.Flags().String("comment", "", "Content of your deployment note") - deploymentNoteUpdateCmd.MarkFlagRequired("comment") - deploymentNoteUpdateCmd.Flags().String("id", "", "Note ID") - deploymentNoteUpdateCmd.MarkFlagRequired("id") - deploymentNoteShowCmd.Flags().String("id", "", "Note ID") - deploymentNoteShowCmd.MarkFlagRequired("id") -} - -// The notes endpoint only allows elasticsearch IDs, but the endpoint -// `deployments/DEPLOYMENT_ID/notes` endpoint is not specific to elasticsearch. -// For the time being the command layer will fetch the ES ID until the endpoint -// accepts deployment IDs. -func getElasticsearchID(deploymentID string, ecAPI *api.API) (string, error) { - return deploymentapi.GetElasticsearchID(deploymentapi.GetParams{ - API: ecAPI, - DeploymentID: deploymentID, - }) -} diff --git a/cmd/deployment/template/list_test.go b/cmd/deployment/template/list_test.go index d5c2d7b1..95623e39 100644 --- a/cmd/deployment/template/list_test.go +++ b/cmd/deployment/template/list_test.go @@ -43,6 +43,7 @@ func Test_listCmd(t *testing.T) { "region": []string{"ece-region"}, "show_hidden": []string{"false"}, "show_instance_configurations": []string{"true"}, + "show_max_zones": {"false"}, }, } diff --git a/cmd/deployment/template/show_test.go b/cmd/deployment/template/show_test.go index 889a3f54..771ba5cd 100644 --- a/cmd/deployment/template/show_test.go +++ b/cmd/deployment/template/show_test.go @@ -42,6 +42,7 @@ func Test_showCmd(t *testing.T) { Query: url.Values{ "region": []string{"ece-region"}, "show_instance_configurations": []string{"true"}, + "show_max_zones": []string{"false"}, }, } diff --git a/docs/ecctl-command-reference-index.adoc b/docs/ecctl-command-reference-index.adoc index 2b3fb4af..fb17b43b 100644 --- a/docs/ecctl-command-reference-index.adoc +++ b/docs/ecctl-command-reference-index.adoc @@ -25,11 +25,6 @@ include::ecctl_deployment_extension_list.adoc[] include::ecctl_deployment_extension_show.adoc[] include::ecctl_deployment_extension_update.adoc[] include::ecctl_deployment_list.adoc[] -include::ecctl_deployment_note.adoc[] -include::ecctl_deployment_note_create.adoc[] -include::ecctl_deployment_note_list.adoc[] -include::ecctl_deployment_note_show.adoc[] -include::ecctl_deployment_note_update.adoc[] include::ecctl_deployment_plan.adoc[] include::ecctl_deployment_plan_cancel.adoc[] include::ecctl_deployment_resource.adoc[] diff --git a/docs/ecctl_deployment.adoc b/docs/ecctl_deployment.adoc index 7d688343..7d672aed 100644 --- a/docs/ecctl_deployment.adoc +++ b/docs/ecctl_deployment.adoc @@ -47,7 +47,6 @@ ecctl deployment [flags] * xref:ecctl_deployment_elasticsearch[ecctl deployment elasticsearch] - Manages Elasticsearch resources * xref:ecctl_deployment_extension[ecctl deployment extension] - Manages deployment extensions, such as custom plugins or bundles * xref:ecctl_deployment_list[ecctl deployment list] - Lists the platform's deployments -* xref:ecctl_deployment_note[ecctl deployment note] - Manages a deployment's notes {ece-icon} (Available for ECE only) * xref:ecctl_deployment_plan[ecctl deployment plan] - Manages deployment plans * xref:ecctl_deployment_resource[ecctl deployment resource] - Manages deployment resources * xref:ecctl_deployment_restore[ecctl deployment restore] - Restores a previously shut down deployment and all of its associated sub-resources diff --git a/docs/ecctl_deployment.md b/docs/ecctl_deployment.md index 82d827af..84820c5f 100644 --- a/docs/ecctl_deployment.md +++ b/docs/ecctl_deployment.md @@ -43,7 +43,6 @@ ecctl deployment [flags] * [ecctl deployment elasticsearch](ecctl_deployment_elasticsearch.md) - Manages Elasticsearch resources * [ecctl deployment extension](ecctl_deployment_extension.md) - Manages deployment extensions, such as custom plugins or bundles * [ecctl deployment list](ecctl_deployment_list.md) - Lists the platform's deployments -* [ecctl deployment note](ecctl_deployment_note.md) - Manages a deployment's notes (Available for ECE only) * [ecctl deployment plan](ecctl_deployment_plan.md) - Manages deployment plans * [ecctl deployment resource](ecctl_deployment_resource.md) - Manages deployment resources * [ecctl deployment restore](ecctl_deployment_restore.md) - Restores a previously shut down deployment and all of its associated sub-resources diff --git a/docs/ecctl_deployment_note.adoc b/docs/ecctl_deployment_note.adoc deleted file mode 100644 index c7a9ea63..00000000 --- a/docs/ecctl_deployment_note.adoc +++ /dev/null @@ -1,48 +0,0 @@ -[#ecctl_deployment_note] -== ecctl deployment note - -Manages a deployment's notes {ece-icon} (Available for ECE only) - ----- -ecctl deployment note [flags] ----- - -[float] -=== Options - ----- - -h, --help help for note ----- - -[float] -=== Options inherited from parent commands - ----- - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file ----- - -[float] -=== SEE ALSO - -* xref:ecctl_deployment[ecctl deployment] - Manages deployments -* xref:ecctl_deployment_note_create[ecctl deployment note create] - Adds a note to a deployment {ece-icon} (Available for ECE only) -* xref:ecctl_deployment_note_list[ecctl deployment note list] - Lists the deployment notes {ece-icon} (Available for ECE only) -* xref:ecctl_deployment_note_show[ecctl deployment note show] - Shows a deployment note {ece-icon} (Available for ECE only) -* xref:ecctl_deployment_note_update[ecctl deployment note update] - Updates the deployment notes {ece-icon} (Available for ECE only) diff --git a/docs/ecctl_deployment_note.md b/docs/ecctl_deployment_note.md deleted file mode 100644 index 52fd7499..00000000 --- a/docs/ecctl_deployment_note.md +++ /dev/null @@ -1,45 +0,0 @@ -## ecctl deployment note - -Manages a deployment's notes (Available for ECE only) - -``` -ecctl deployment note [flags] -``` - -### Options - -``` - -h, --help help for note -``` - -### Options inherited from parent commands - -``` - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file -``` - -### SEE ALSO - -* [ecctl deployment](ecctl_deployment.md) - Manages deployments -* [ecctl deployment note create](ecctl_deployment_note_create.md) - Adds a note to a deployment (Available for ECE only) -* [ecctl deployment note list](ecctl_deployment_note_list.md) - Lists the deployment notes (Available for ECE only) -* [ecctl deployment note show](ecctl_deployment_note_show.md) - Shows a deployment note (Available for ECE only) -* [ecctl deployment note update](ecctl_deployment_note_update.md) - Updates the deployment notes (Available for ECE only) - diff --git a/docs/ecctl_deployment_note_create.adoc b/docs/ecctl_deployment_note_create.adoc deleted file mode 100644 index f4914e9e..00000000 --- a/docs/ecctl_deployment_note_create.adoc +++ /dev/null @@ -1,45 +0,0 @@ -[#ecctl_deployment_note_create] -== ecctl deployment note create - -Adds a note to a deployment {ece-icon} (Available for ECE only) - ----- -ecctl deployment note create --comment [flags] ----- - -[float] -=== Options - ----- - --comment string Content of your deployment note - -h, --help help for create ----- - -[float] -=== Options inherited from parent commands - ----- - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file ----- - -[float] -=== SEE ALSO - -* xref:ecctl_deployment_note[ecctl deployment note] - Manages a deployment's notes {ece-icon} (Available for ECE only) diff --git a/docs/ecctl_deployment_note_create.md b/docs/ecctl_deployment_note_create.md deleted file mode 100644 index b0669c21..00000000 --- a/docs/ecctl_deployment_note_create.md +++ /dev/null @@ -1,42 +0,0 @@ -## ecctl deployment note create - -Adds a note to a deployment (Available for ECE only) - -``` -ecctl deployment note create --comment [flags] -``` - -### Options - -``` - --comment string Content of your deployment note - -h, --help help for create -``` - -### Options inherited from parent commands - -``` - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file -``` - -### SEE ALSO - -* [ecctl deployment note](ecctl_deployment_note.md) - Manages a deployment's notes (Available for ECE only) - diff --git a/docs/ecctl_deployment_note_list.adoc b/docs/ecctl_deployment_note_list.adoc deleted file mode 100644 index 61d79667..00000000 --- a/docs/ecctl_deployment_note_list.adoc +++ /dev/null @@ -1,44 +0,0 @@ -[#ecctl_deployment_note_list] -== ecctl deployment note list - -Lists the deployment notes {ece-icon} (Available for ECE only) - ----- -ecctl deployment note list [flags] ----- - -[float] -=== Options - ----- - -h, --help help for list ----- - -[float] -=== Options inherited from parent commands - ----- - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file ----- - -[float] -=== SEE ALSO - -* xref:ecctl_deployment_note[ecctl deployment note] - Manages a deployment's notes {ece-icon} (Available for ECE only) diff --git a/docs/ecctl_deployment_note_list.md b/docs/ecctl_deployment_note_list.md deleted file mode 100644 index baeebe3a..00000000 --- a/docs/ecctl_deployment_note_list.md +++ /dev/null @@ -1,41 +0,0 @@ -## ecctl deployment note list - -Lists the deployment notes (Available for ECE only) - -``` -ecctl deployment note list [flags] -``` - -### Options - -``` - -h, --help help for list -``` - -### Options inherited from parent commands - -``` - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file -``` - -### SEE ALSO - -* [ecctl deployment note](ecctl_deployment_note.md) - Manages a deployment's notes (Available for ECE only) - diff --git a/docs/ecctl_deployment_note_show.adoc b/docs/ecctl_deployment_note_show.adoc deleted file mode 100644 index 8cf4f0fa..00000000 --- a/docs/ecctl_deployment_note_show.adoc +++ /dev/null @@ -1,45 +0,0 @@ -[#ecctl_deployment_note_show] -== ecctl deployment note show - -Shows a deployment note {ece-icon} (Available for ECE only) - ----- -ecctl deployment note show --id [flags] ----- - -[float] -=== Options - ----- - -h, --help help for show - --id string Note ID ----- - -[float] -=== Options inherited from parent commands - ----- - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file ----- - -[float] -=== SEE ALSO - -* xref:ecctl_deployment_note[ecctl deployment note] - Manages a deployment's notes {ece-icon} (Available for ECE only) diff --git a/docs/ecctl_deployment_note_show.md b/docs/ecctl_deployment_note_show.md deleted file mode 100644 index 086ec86a..00000000 --- a/docs/ecctl_deployment_note_show.md +++ /dev/null @@ -1,42 +0,0 @@ -## ecctl deployment note show - -Shows a deployment note (Available for ECE only) - -``` -ecctl deployment note show --id [flags] -``` - -### Options - -``` - -h, --help help for show - --id string Note ID -``` - -### Options inherited from parent commands - -``` - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file -``` - -### SEE ALSO - -* [ecctl deployment note](ecctl_deployment_note.md) - Manages a deployment's notes (Available for ECE only) - diff --git a/docs/ecctl_deployment_note_update.adoc b/docs/ecctl_deployment_note_update.adoc deleted file mode 100644 index d0432fc8..00000000 --- a/docs/ecctl_deployment_note_update.adoc +++ /dev/null @@ -1,46 +0,0 @@ -[#ecctl_deployment_note_update] -== ecctl deployment note update - -Updates the deployment notes {ece-icon} (Available for ECE only) - ----- -ecctl deployment note update --id --comment [flags] ----- - -[float] -=== Options - ----- - --comment string Content of your deployment note - -h, --help help for update - --id string Note ID ----- - -[float] -=== Options inherited from parent commands - ----- - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file ----- - -[float] -=== SEE ALSO - -* xref:ecctl_deployment_note[ecctl deployment note] - Manages a deployment's notes {ece-icon} (Available for ECE only) diff --git a/docs/ecctl_deployment_note_update.md b/docs/ecctl_deployment_note_update.md deleted file mode 100644 index 1d32dfc5..00000000 --- a/docs/ecctl_deployment_note_update.md +++ /dev/null @@ -1,43 +0,0 @@ -## ecctl deployment note update - -Updates the deployment notes (Available for ECE only) - -``` -ecctl deployment note update --id --comment [flags] -``` - -### Options - -``` - --comment string Content of your deployment note - -h, --help help for update - --id string Note ID -``` - -### Options inherited from parent commands - -``` - --api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable) - --config string Config name, used to have multiple configs in $HOME/.ecctl/ (default "config") - --force Do not ask for confirmation - --format string Formats the output using a Go template - --host string Base URL to use - --insecure Skips all TLS validation - --message string A message to set on cluster operation - --output string Output format [text|json] (default "text") - --pass string Password to use to authenticate (If empty will look for EC_PASS environment variable) - --pprof Enables pprofing and saves the profile to pprof-20060102150405 - -q, --quiet Suppresses the configuration file used for the run, if any - --region string Elasticsearch Service region - --timeout duration Timeout to use on all HTTP calls (default 30s) - --trace Enables tracing saves the trace to trace-20060102150405 - --user string Username to use to authenticate (If empty will look for EC_USER environment variable) - --verbose Enable verbose mode - --verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text - --verbose-file string When set, the verbose request/response trail will be written to the defined file -``` - -### SEE ALSO - -* [ecctl deployment note](ecctl_deployment_note.md) - Manages a deployment's notes (Available for ECE only) - diff --git a/go.mod b/go.mod index 6321b956..5b7c336a 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.20 require ( github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d github.com/blang/semver/v4 v4.0.0 - github.com/elastic/cloud-sdk-go v1.16.0 + github.com/elastic/cloud-sdk-go v1.17.0 github.com/go-openapi/runtime v0.23.0 github.com/go-openapi/strfmt v0.21.2 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index 773ae8f2..a414c684 100644 --- a/go.sum +++ b/go.sum @@ -25,6 +25,8 @@ github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/elastic/cloud-sdk-go v1.16.0 h1:kpULwHy6AiB36n+IA0sq8v+yH7VV0r4YuezbB8AD2bQ= github.com/elastic/cloud-sdk-go v1.16.0/go.mod h1:1FJKODMG9oCiBsZZmFC/a6GvAj+8BoFL8ULDI3bI00Q= +github.com/elastic/cloud-sdk-go v1.17.0 h1:DI75RYG/X37vxFNVRFGlUZtRS+WilvKXpYgFlpLLNzw= +github.com/elastic/cloud-sdk-go v1.17.0/go.mod h1:8ijASzuND0kK8km08a/FIfedmPVjf0whGIJDVGHpgQ4= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=