Skip to content
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

NO-JIRA: Adding a deprecation notice to the widget deployment resource #1460

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading