@@ -25,7 +25,6 @@ const (
2525 keyRingIdFlag = "key-ring"
2626
2727 algorithmFlag = "algorithm"
28- backendFlag = "backend"
2928 descriptionFlag = "description"
3029 displayNameFlag = "name"
3130 importOnlyFlag = "import-only"
@@ -37,7 +36,6 @@ type inputModel struct {
3736 KeyRingId string
3837
3938 Algorithm * string
40- Backend string // Keep "backend" as a variable, but set the default to "software" (see UI)
4139 Description * string
4240 Name * string
4341 ImportOnly bool // Default false
@@ -116,7 +114,6 @@ func parseInput(p *print.Printer, cmd *cobra.Command) (*inputModel, error) {
116114 GlobalFlagModel : globalFlags ,
117115 KeyRingId : flags .FlagToStringValue (p , cmd , keyRingIdFlag ),
118116 Algorithm : flags .FlagToStringPointer (p , cmd , algorithmFlag ),
119- Backend : flags .FlagWithDefaultToStringValue (p , cmd , backendFlag ),
120117 Name : flags .FlagToStringPointer (p , cmd , displayNameFlag ),
121118 Description : flags .FlagToStringPointer (p , cmd , descriptionFlag ),
122119 ImportOnly : flags .FlagToBoolValue (p , cmd , importOnlyFlag ),
@@ -147,7 +144,6 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient kmsKeyClient
147144 DisplayName : model .Name ,
148145 Description : model .Description ,
149146 Algorithm : kms .CreateKeyPayloadGetAlgorithmAttributeType (model .Algorithm ),
150- Backend : kms .CreateKeyPayloadGetBackendAttributeType (& model .Backend ),
151147 Purpose : kms .CreateKeyPayloadGetPurposeAttributeType (model .Purpose ),
152148 ImportOnly : & model .ImportOnly ,
153149 })
@@ -185,7 +181,6 @@ func outputResult(p *print.Printer, outputFormat, projectLabel string, resp *kms
185181func configureFlags (cmd * cobra.Command ) {
186182 cmd .Flags ().Var (flags .UUIDFlag (), keyRingIdFlag , "ID of the KMS Key Ring" )
187183 cmd .Flags ().String (algorithmFlag , "" , "En-/Decryption / signing algorithm" )
188- cmd .Flags ().String (backendFlag , "software" , "The backend that is responsible for maintaining this key" )
189184 cmd .Flags ().String (displayNameFlag , "" , "The display name to distinguish multiple keys" )
190185 cmd .Flags ().String (descriptionFlag , "" , "Optinal description of the Key" )
191186 cmd .Flags ().Bool (importOnlyFlag , false , "States whether versions can be created or only imported" )
0 commit comments