Skip to content

Commit

Permalink
release 1.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
contabo committed Feb 2, 2024
1 parent ac3911c commit d1bbc12
Show file tree
Hide file tree
Showing 37 changed files with 12,047 additions and 9,188 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cntb create image --name 'CentOS Cloud Image' --description 'CentOS 7 Cloud Imag
Using Cloud-Init to set ssh public key

```sh
cntb create instance --imageId "ae423751-50fa-4bf6-9978-015673bf51c4" --productId "V1" --region "EU" --userData 'ssh_authorized_keys:
cntb create instance --imageId "ae423751-50fa-4bf6-9978-015673bf51c4" --productId "V45" --region "EU" --userData 'ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAGEA3FSyQwBI6Z+nCSjUUk8EEAnnkhXlukKoUPND/RRClWz2s5TCzIkd3Ou5+Cyz71X0XmazM3l5WgeErvtIwQMyT1KjNoMhoJMrJnWqQPOt5Q8zWd9qG7PBl9+eiH5qV7NZ'
# once finished please login via ssh
# in case of the previously uploaded CentOS 7 Cloud Image please use `centos` as user
Expand All @@ -54,7 +54,7 @@ cntb create instance --imageId "ae423751-50fa-4bf6-9978-015673bf51c4" --productI
Using Cloud-Init to install apache2 with an already stored SSH public key

```sh
cntb create instance --imageId "ae423751-50fa-4bf6-9978-015673bf51c4" --productId "V1" --region "EU" --sshKeys '1,2' --userData 'package_update: true
cntb create instance --imageId "ae423751-50fa-4bf6-9978-015673bf51c4" --productId "V45" --region "EU" --sshKeys '1,2' --userData 'package_update: true
package_upgrade: true
packages:
- httpd'
Expand Down
6 changes: 3 additions & 3 deletions cmd/instances/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var instanceCreateCmd = &cobra.Command{
Short: "Create a new compute instance.",
Long: `Create a new compute instance.`,
Example: `create instance -p 12 --imageId "111eebb0-dc70-4bc2-a7d0-c525dbe016a9" ` +
`--license "PleskHost" --productId "V1" -r "EU"`,
`--license "PleskHost" --productId "V45" -r "EU"`,
Run: func(cmd *cobra.Command, args []string) {
createInstanceRequest := *instancesClient.NewCreateInstanceRequestWithDefaults()
content := contaboCmd.OpenStdinOrFile()
Expand All @@ -30,7 +30,7 @@ var instanceCreateCmd = &cobra.Command{
case nil:
// flags with default values
createInstanceRequest.ImageId = &createInstanceImageId
createInstanceRequest.ProductId = createInstanceProductId
createInstanceRequest.ProductId = &createInstanceProductId
createInstanceRequest.Region = &createInstanceRegion
createInstanceRequest.Period = createInstancePeriod
createInstanceRequest.DisplayName = &createInstanceDisplayName
Expand Down Expand Up @@ -127,7 +127,7 @@ func init() {
instanceCreateCmd.Flags().StringVar(&createInstanceImageId, "imageId", "db1409d2-ed92-4f2f-978e-7b2fa4a1ec90",
`Standard or custom image id. Defaults to 'Ubuntu 20.04'.`)

instanceCreateCmd.Flags().StringVar(&createInstanceProductId, "productId", "V1",
instanceCreateCmd.Flags().StringVar(&createInstanceProductId, "productId", "V45",
`Id of product to be used. See https://contabo.com/en/product-list/?show_ids=true`)

instanceCreateCmd.Flags().StringVarP(&createInstanceRegion, "region", "r", "EU",
Expand Down
4 changes: 2 additions & 2 deletions cmd/users/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

var userUpdateCmd = &cobra.Command{
Use: "user [userId]",
Short: "Updates a specific user",
Long: `Updates the specific user details`,
Short: "Updates a specific tag",
Long: `Updates the specific tag by setting new values either by file input or flags / environment variables`,
Run: func(cmd *cobra.Command, args []string) {
updateUserRequest := *userManagementClient.NewUpdateUserRequestWithDefaults()
content := contaboCmd.OpenStdinOrFile()
Expand Down
13 changes: 12 additions & 1 deletion openapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
Expand All @@ -24,6 +23,7 @@ api_tag_assignments.go
api_tag_assignments_audits.go
api_tags.go
api_tags_audits.go
api_tickets.go
api_users.go
api_users_audits.go
client.go
Expand Down Expand Up @@ -157,8 +157,10 @@ docs/ListSnapshotResponse.md
docs/ListSnapshotsAuditResponse.md
docs/ListTagAuditsResponse.md
docs/ListTagResponse.md
docs/ListTicketMetadataResponse.md
docs/ListUserAuditResponse.md
docs/ListUserResponse.md
docs/MetadataType.md
docs/MinimumRequirements.md
docs/ObjectStorageAuditResponse.md
docs/ObjectStorageResponse.md
Expand Down Expand Up @@ -208,6 +210,10 @@ docs/TagResponse.md
docs/TagResponse1.md
docs/TagsApi.md
docs/TagsAuditsApi.md
docs/TicketCreateRequest.md
docs/TicketCreateResponse.md
docs/TicketResponse.md
docs/TicketsApi.md
docs/UnassignInstancePrivateNetworkResponse.md
docs/UpdateCustomImageRequest.md
docs/UpdateCustomImageResponse.md
Expand Down Expand Up @@ -358,8 +364,10 @@ model_list_snapshot_response.go
model_list_snapshots_audit_response.go
model_list_tag_audits_response.go
model_list_tag_response.go
model_list_ticket_metadata_response.go
model_list_user_audit_response.go
model_list_user_response.go
model_metadata_type.go
model_minimum_requirements.go
model_object_storage_audit_response.go
model_object_storage_response.go
Expand Down Expand Up @@ -395,6 +403,9 @@ model_tag_assignment_self_links.go
model_tag_audit_response.go
model_tag_response.go
model_tag_response1.go
model_ticket_create_request.go
model_ticket_create_response.go
model_ticket_response.go
model_unassign_instance_private_network_response.go
model_update_custom_image_request.go
model_update_custom_image_response.go
Expand Down
7 changes: 7 additions & 0 deletions openapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ Class | Method | HTTP request | Description
*TagsApi* | [**RetrieveTagList**](docs/TagsApi.md#retrievetaglist) | **Get** /v1/tags | List tags
*TagsApi* | [**UpdateTag**](docs/TagsApi.md#updatetag) | **Patch** /v1/tags/{tagId} | Update specific tag by id
*TagsAuditsApi* | [**RetrieveTagAuditsList**](docs/TagsAuditsApi.md#retrievetagauditslist) | **Get** /v1/tags/audits | List history about your assignments (audit)
*TicketsApi* | [**CreateSupportTicket**](docs/TicketsApi.md#createsupportticket) | **Post** /v1/tickets | Create a new support ticket
*TicketsApi* | [**RetrieveTicketMetadata**](docs/TicketsApi.md#retrieveticketmetadata) | **Get** /v1/tickets/metadata | Retrieve ticket metadata
*UsersApi* | [**CreateUser**](docs/UsersApi.md#createuser) | **Post** /v1/users | Create a new user
*UsersApi* | [**DeleteUser**](docs/UsersApi.md#deleteuser) | **Delete** /v1/users/{userId} | Delete existing user by id
*UsersApi* | [**GenerateClientSecret**](docs/UsersApi.md#generateclientsecret) | **Put** /v1/users/client/secret | Generate new client secret
Expand Down Expand Up @@ -496,8 +498,10 @@ Class | Method | HTTP request | Description
- [ListSnapshotsAuditResponse](docs/ListSnapshotsAuditResponse.md)
- [ListTagAuditsResponse](docs/ListTagAuditsResponse.md)
- [ListTagResponse](docs/ListTagResponse.md)
- [ListTicketMetadataResponse](docs/ListTicketMetadataResponse.md)
- [ListUserAuditResponse](docs/ListUserAuditResponse.md)
- [ListUserResponse](docs/ListUserResponse.md)
- [MetadataType](docs/MetadataType.md)
- [MinimumRequirements](docs/MinimumRequirements.md)
- [ObjectStorageAuditResponse](docs/ObjectStorageAuditResponse.md)
- [ObjectStorageResponse](docs/ObjectStorageResponse.md)
Expand Down Expand Up @@ -533,6 +537,9 @@ Class | Method | HTTP request | Description
- [TagAuditResponse](docs/TagAuditResponse.md)
- [TagResponse](docs/TagResponse.md)
- [TagResponse1](docs/TagResponse1.md)
- [TicketCreateRequest](docs/TicketCreateRequest.md)
- [TicketCreateResponse](docs/TicketCreateResponse.md)
- [TicketResponse](docs/TicketResponse.md)
- [UnassignInstancePrivateNetworkResponse](docs/UnassignInstancePrivateNetworkResponse.md)
- [UpdateCustomImageRequest](docs/UpdateCustomImageRequest.md)
- [UpdateCustomImageResponse](docs/UpdateCustomImageResponse.md)
Expand Down
Loading

0 comments on commit d1bbc12

Please sign in to comment.