@@ -12,7 +12,6 @@ import (
1212 "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns"
1313 "github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex"
1414 "github.com/IBM-Cloud/terraform-provider-ibm/ibm/validate"
15- "github.com/IBM/vpc-beta-go-sdk/vpcbetav1"
1615 "github.com/IBM/vpc-go-sdk/vpcv1"
1716 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
1817 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
@@ -127,7 +126,7 @@ func resourceIBMISSecurityGroupTargetCreate(d *schema.ResourceData, meta interfa
127126 return errsgt
128127 }
129128 } else if crn != nil && * crn != "" && strings .Contains (* crn , "virtual_network_interfaces" ) {
130- vpcClient , err := meta .(conns.ClientSession ).VpcV1BetaAPI ()
129+ vpcClient , err := meta .(conns.ClientSession ).VpcV1API ()
131130 if err != nil {
132131 return err
133132 }
@@ -338,7 +337,7 @@ func isLBSgTargetRefreshFunc(sess *vpcv1.VpcV1, lbId string) resource.StateRefre
338337 }
339338}
340339
341- func isWaitForVNISgTargetCreateAvailable (sess * vpcbetav1. VpcbetaV1 , vniId string , timeout time.Duration ) (interface {}, error ) {
340+ func isWaitForVNISgTargetCreateAvailable (sess * vpcv1. VpcV1 , vniId string , timeout time.Duration ) (interface {}, error ) {
342341 log .Printf ("Waiting for virtual network interface (%s) to be available." , vniId )
343342
344343 stateConf := & resource.StateChangeConf {
@@ -353,10 +352,10 @@ func isWaitForVNISgTargetCreateAvailable(sess *vpcbetav1.VpcbetaV1, vniId string
353352 return stateConf .WaitForState ()
354353}
355354
356- func isVNISgTargetRefreshFunc (vpcClient * vpcbetav1. VpcbetaV1 , vniId string ) resource.StateRefreshFunc {
355+ func isVNISgTargetRefreshFunc (vpcClient * vpcv1. VpcV1 , vniId string ) resource.StateRefreshFunc {
357356 return func () (interface {}, string , error ) {
358357
359- getVNIOptions := & vpcbetav1 .GetVirtualNetworkInterfaceOptions {
358+ getVNIOptions := & vpcv1 .GetVirtualNetworkInterfaceOptions {
360359 ID : & vniId ,
361360 }
362361 vni , response , err := vpcClient .GetVirtualNetworkInterface (getVNIOptions )
0 commit comments