Skip to content

Commit

Permalink
support ckafka postpaid instance (#2130)
Browse files Browse the repository at this point in the history
* support ckafka prepaid instance

* add changelog

* add changelog

* update test

* update test

* update

* update

* update test

---------

Co-authored-by: mikatong <[email protected]>
  • Loading branch information
tongyiming and mikatong authored Sep 18, 2023
1 parent 29e64ee commit 657b57f
Show file tree
Hide file tree
Showing 11 changed files with 2,646 additions and 2,094 deletions.
3 changes: 3 additions & 0 deletions .changelog/2130.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_ckafka_instance: support create postpaid instance
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cfs v1.0.627
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/chdfs v1.0.600
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ciam v1.0.695
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.706
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.748
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.693
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.544
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.711
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ciam v1.0.695 h1:FGwsF1
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ciam v1.0.695/go.mod h1:HAasVoWz8ed6kAg7Q/DTg+8uZXiOgW7lmJeAGGrquEQ=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.706 h1:m1CDOlYmPBuYh8vTcyfxyrRglbQ1CzKyGkJsjYcm31o=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.706/go.mod h1:X78AG97YgOyUBW4ODoeOcTB5RW7RVjISDyheYQDEB3Y=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.748 h1:rVvRHow8cFGJFT31sk3cEVW17a9OewHWhC1acUGNg7c=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.748/go.mod h1:nvb4W+PgsAe8NFG1ZevZa9ZLfto3aeBcJqxzYCRI9V4=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.693 h1:3eI2Ciq3NOXgoxeW/eY6vgCzi8vcqEZv+FzHww6K9oU=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.693/go.mod h1:WhFqrn14QuRHB01xA5Q9sC+xw73BpqSE5+ZnqEznCW8=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.544 h1:ApY6rS7I9otgujOdAFy0+Epno1PNVCQmsOoWQxx724Y=
Expand Down
4 changes: 2 additions & 2 deletions tencentcloud/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ data "tencentcloud_instance_types" "default" {
// ckafka
const (
defaultKafkaInstanceId = "ckafka-vv7wpvae"
defaultKafkaVpcId = "vpc-68vi2d3h"
defaultKafkaSubnetId = "subnet-ob6clqwk"
defaultKafkaVpcId = "vpc-njbzmzyd"
defaultKafkaSubnetId = "subnet-2txtpql8"
)

const defaultKafkaVariable = `
Expand Down
5 changes: 5 additions & 0 deletions tencentcloud/extension_ckafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,8 @@ var CKAFKA_PERMISSION_TYPE_TO_STRING = map[int64]string{
//sdk ckafka not found error
const CkafkaInstanceNotFound = "InvalidParameterValue.InstanceNotExist"
const CkafkaFailedOperation = "FailedOperation"

const (
CKAFKA_CHARGE_TYPE_POSTPAID = COMMON_PAYTYPE_POSTPAID
CKAFKA_CHARGE_TYPE_PREPAID = COMMON_PAYTYPE_PREPAID
)
Loading

0 comments on commit 657b57f

Please sign in to comment.