Skip to content

Commit

Permalink
NO-JIRA: Adding a deprecation notice to the widget deployment resource
Browse files Browse the repository at this point in the history
  • Loading branch information
carnellj-genesys committed Jan 8, 2025
1 parent 5ac0d4d commit 1a4ea07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions genesyscloud/data_source_genesyscloud_widget_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import (

func dataSourceWidgetDeployments() *schema.Resource {
return &schema.Resource{
Description: "Data source for Genesys Cloud Widget Deployment. Select a widget deployment.",
ReadContext: provider.ReadWithPooledClient(dataSourceWidgetDeploymentRead),
Description: "Data source for Genesys Cloud Widget Deployment. Select a widget deployment.",
DeprecationMessage: "The CX as Code team will be removing the genesyscloud_widget_deployment resource and data source from the CX as Code Terraform provider in mid-April. If you are using these resources you must upgrade your CX as Code provider version after mid-April and before mid-June, you will experience errors in your CI/CD pipelines and CX as Code exports with the removal of /api/v2/widgets/deployments APIs.",
ReadContext: provider.ReadWithPooledClient(dataSourceWidgetDeploymentRead),
Schema: map[string]*schema.Schema{
"name": {
Description: "Widget Deployment Name.",
Expand Down
12 changes: 6 additions & 6 deletions genesyscloud/resource_genesyscloud_widget_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ func WidgetDeploymentExporter() *resourceExporter.ResourceExporter {

func ResourceWidgetDeployment() *schema.Resource {
return &schema.Resource{
Description: "Genesys Cloud Widget Deployment",

CreateContext: provider.CreateWithPooledClient(createWidgetDeployment),
ReadContext: provider.ReadWithPooledClient(readWidgetDeployment),
UpdateContext: provider.UpdateWithPooledClient(updateWidgetDeployment),
DeleteContext: provider.DeleteWithPooledClient(deleteWidgetDeployment),
Description: "Genesys Cloud Widget Deployment",
DeprecationMessage: "The CX as Code team will be removing the genesyscloud_widget_deployment resource and data source from the CX as Code Terraform provider in mid-April. If you are using these resources you must upgrade your CX as Code provider version after mid-April and before mid-June, you will experience errors in your CI/CD pipelines and CX as Code exports with the removal of /api/v2/widgets/deployments APIs.",
CreateContext: provider.CreateWithPooledClient(createWidgetDeployment),
ReadContext: provider.ReadWithPooledClient(readWidgetDeployment),
UpdateContext: provider.UpdateWithPooledClient(updateWidgetDeployment),
DeleteContext: provider.DeleteWithPooledClient(deleteWidgetDeployment),
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Expand Down

0 comments on commit 1a4ea07

Please sign in to comment.