Skip to content

Commit

Permalink
[Chore] Add V2 to the resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
muneeb-jan committed Jan 14, 2025
1 parent bc0b76e commit cb07814
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions docs/resources/dms_smart_connect_task_action.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
subcategory: "Distributed Message Service (DMS)"
layout: "opentelekomcloud"
page_title: "OpenTelekomCloud: opentelekomcloud_dms_smart_connect_task_action"
sidebar_current: "docs-opentelekomcloud-resource-dms-smart-connect-task-action"
page_title: "OpenTelekomCloud: opentelekomcloud_dms_smart_connect_task_action_v2"
sidebar_current: "docs-opentelekomcloud-resource-dms-smart-connect-task-action-v2"
description: |-
Start or pause an up-to-date DMS Smart Connect Task v2 resource within OpenTelekomCloud.
---

Up-to-date reference of API arguments for DMS instance you can get at
[documentation portal](https://docs.otc.t-systems.com/distributed-message-service/api-ref/apis_v2_recommended/smart_connect/index.html)

# opentelekomcloud_dms_smart_connect_task_action
# opentelekomcloud_dms_smart_connect_task_action_v2

Start or pause a DMS kafka smart connect task resource within OpenTelekomCloud.

Expand All @@ -22,7 +22,7 @@ Start or pause a DMS kafka smart connect task resource within OpenTelekomCloud.
variable "instance_id" {}
variable "task_id" {}
resource "opentelekomcloud_dms_smart_connect_task_action" "test" {
resource "opentelekomcloud_dms_smart_connect_task_action_v2" "test" {
instance_id = var.instance_id
task_id = var.task_id
action = "pause"
Expand All @@ -35,7 +35,7 @@ resource "opentelekomcloud_dms_smart_connect_task_action" "test" {
variable "instance_id" {}
variable "task_id" {}
resource "opentelekomcloud_dms_smart_connect_task_action" "test" {
resource "opentelekomcloud_dms_smart_connect_task_action_v2" "test" {
instance_id = var.instance_id
task_id = var.task_id
action = "resume"
Expand All @@ -48,7 +48,7 @@ resource "opentelekomcloud_dms_smart_connect_task_action" "test" {
variable "instance_id" {}
variable "task_id" {}
resource "opentelekomcloud_dms_smart_connect_task_action" "test" {
resource "opentelekomcloud_dms_smart_connect_task_action_v2" "test" {
instance_id = var.instance_id
task_id = var.task_id
action = "restart"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/opentelekomcloud/terraform-provider-opentelekomcloud/opentelekomcloud/acceptance/env"
)

func TestAccDmsKafkav2SmartConnectTaskAction_basic(t *testing.T) {
func TestAccDmsKafkav2SmartConnectTaskActionV2_basic(t *testing.T) {
var obj interface{}
rName := fmt.Sprintf("dms-acc-api%s", acctest.RandString(5))
resourceName := "opentelekomcloud_dms_smart_connect_task_v2.test"
Expand Down Expand Up @@ -83,7 +83,7 @@ resource "opentelekomcloud_dms_smart_connect_task_v2" "test" {
}
}
resource "opentelekomcloud_dms_smart_connect_task_action" "test" {
resource "opentelekomcloud_dms_smart_connect_task_action_v2" "test" {
depends_on = [opentelekomcloud_dms_smart_connect_task_v2.test]
instance_id = opentelekomcloud_dms_dedicated_instance_v2.test.id
Expand Down
2 changes: 1 addition & 1 deletion opentelekomcloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ func Provider() *schema.Provider {
"opentelekomcloud_dms_dedicated_instance_v2": dms.ResourceDmsDedicatedInstanceV2(),
"opentelekomcloud_dms_smart_connect_v2": dms.ResourceDmsSmartConnectV2(),
"opentelekomcloud_dms_smart_connect_task_v2": dms.ResourceDmsSmartConnectTaskV2(),
"opentelekomcloud_dms_smart_connect_task_action": dms.ResourceDmsSmartConnectTaskAction(),
"opentelekomcloud_dms_smart_connect_task_action_v2": dms.ResourceDmsSmartConnectTaskActionV2(),
"opentelekomcloud_dms_topic_v1": dms.ResourceDmsTopicsV1(),
"opentelekomcloud_dms_topic_v2": dms.ResourceDmsTopicsV2(),
"opentelekomcloud_dms_user_v2": dms.ResourceDmsUsersV2(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/opentelekomcloud/terraform-provider-opentelekomcloud/opentelekomcloud/common/fmterr"
)

func ResourceDmsSmartConnectTaskAction() *schema.Resource {
func ResourceDmsSmartConnectTaskActionV2() *schema.Resource {
return &schema.Resource{
CreateContext: resourceDmsV2SmartConnectTaskActionCreate,
ReadContext: resourceDmsV2SmartConnectTaskActionRead,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
features:
- |
**[DMS]** Add new resource ``resource/opentelekomcloud_dms_smart_connect_task_action`` (`#2680 <https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/2680>`_)
**[DMS]** Add new resource ``resource/opentelekomcloud_dms_smart_connect_task_action_v2`` (`#2680 <https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/2680>`_)

0 comments on commit cb07814

Please sign in to comment.