Skip to content

Commit

Permalink
WORKITEMS-3995 update platform SDK to v150.0 (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
maikow-genesys authored Jan 3, 2025
1 parent de6d1f9 commit bfbfd2c
Show file tree
Hide file tree
Showing 463 changed files with 470 additions and 468 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func DataSourceArchitectDatatableRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

type Datatableproperty struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"errors"
"net/http"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

// internalProxy holds a proxy instance that can be used throughout the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func TestAccResourceArchitectDatatable(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

// Row IDs structured as {table-id}/{key-value}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

type Datatableproperty struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
rc "terraform-provider-genesyscloud/genesyscloud/resource_cache"

"github.com/mitchellh/mapstructure"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

// Type definitions for each func on our proxy so we can easily mock them out later
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func TestAccResourceArchitectDatatableRow(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

var internalProxy *architectEmergencyGroupProxy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func getAllEmergencyGroups(ctx context.Context, clientConfig *platformclientv2.Configuration) (resourceExporter.ResourceIDMetaMap, diag.Diagnostics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func TestAccResourceArchitectEmergencyGroups(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package architect_emergencygroup

import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func buildSdkEmergencyGroupCallFlows(d *schema.ResourceData) *[]platformclientv2.Emergencycallflow {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
rc "terraform-provider-genesyscloud/genesyscloud/resource_cache"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

var internalProxy *architectFlowProxy
Expand Down
2 changes: 1 addition & 1 deletion genesyscloud/architect_flow/resource_genesyscloud_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func getAllFlows(ctx context.Context, clientConfig *platformclientv2.Configuration) (resourceExporter.ResourceIDMetaMap, diag.Diagnostics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

// lockFlow will search for a specific flow and then lock it. This is to specifically test the force_unlock flag where I want to create a flow, simulate some one locking it and then attempt to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
rc "terraform-provider-genesyscloud/genesyscloud/resource_cache"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func TestAccResourceArchitectGrammar(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"terraform-provider-genesyscloud/genesyscloud/util/files"
"time"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

type FileType int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func TestAccResourceArchitectGrammarLanguage(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
"github.com/stretchr/testify/assert"

"github.com/google/uuid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
utillists "terraform-provider-genesyscloud/genesyscloud/util/lists"
"time"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"

"github.com/google/uuid"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func TestUnitUploadIvrDnisChunksSuccess(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

// getAllIvrConfigs retrieves all architect IVRs and is used for the exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func TestAccResourceIvrConfigBasic(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
"github.com/stretchr/testify/assert"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"terraform-provider-genesyscloud/genesyscloud/util/lists"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

type IvrConfigStruct struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func TestAccResourceArchitectScheduleGroups(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
rc "terraform-provider-genesyscloud/genesyscloud/resource_cache"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"terraform-provider-genesyscloud/genesyscloud/util/constants"
"terraform-provider-genesyscloud/genesyscloud/util/resourcedata"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func getAllArchitectSchedules(ctx context.Context, clientConfig *platformclientv2.Configuration) (resourceExporter.ResourceIDMetaMap, diag.Diagnostics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

const errorMessageToMatch = "invalid start date."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

// internalProxy holds a proxy instance that can be used throughout the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func getAllUserPrompts(ctx context.Context, clientConfig *platformclientv2.Configuration) (resourceExporter.ResourceIDMetaMap, diag.Diagnostics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func TestAccResourceUserPromptBasic(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"terraform-provider-genesyscloud/genesyscloud/util/testrunner"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

type PromptAudioData struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
rc "terraform-provider-genesyscloud/genesyscloud/resource_cache"

"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

var internalProxy *authDivisionProxy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

func getAllAuthDivisions(ctx context.Context, clientConfig *platformclientv2.Configuration) (resourceExporter.ResourceIDMetaMap, diag.Diagnostics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/mypurecloud/platform-client-sdk-go/v149/platformclientv2"
"github.com/mypurecloud/platform-client-sdk-go/v150/platformclientv2"
)

var (
Expand Down
Loading

0 comments on commit bfbfd2c

Please sign in to comment.