-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat.] DMS: Add new resource opentelekomcloud_dms_topic_v2 #2766
Conversation
docs/resources/dms_topic_v2.md
Outdated
|
||
The following arguments are supported: | ||
|
||
* `instance_id` - (Required) Indicates the ID of primary DMS instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add type and forcenew details
|
||
* `remain_partitions` - Number of remaining partitions. | ||
|
||
* `max_partitions` - Total partitions number. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import?
resource.Test(t, resource.TestCase{ | ||
PreCheck: func() { common.TestAccPreCheck(t) }, | ||
ProviderFactories: common.TestAccProviderFactories, | ||
CheckDestroy: testAccCheckDmsV1InstanceDestroy, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use InitResourceCheck
@@ -10,6 +10,7 @@ const ( | |||
errCreationClient = "error creating OpenTelekomCloud DMSv1 client: %w" | |||
errCreationClientV2 = "error creating OpenTelekomCloud DMSv2 client: %w" | |||
dmsClientV2 = "dms-v2-client" | |||
dmsV1Deprecated = "This resource API is deprecated. Please use opentelekomcloud_dms_topic_v2 instead." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also add message in doc
Build succeeded. ✔️ build-otc-releasenotes SUCCESS in 4m 02s |
Summary of the Pull Request
New resource
opentelekomcloud_dms_topic_v2
introduced.opentelekomcloud_dms_topic_v1
is deprecated due to api going out-of-date.PR Checklist
Acceptance Steps Performed