Skip to content

Commit efedb77

Browse files
committed
Upgrade vra-sdk-go to v0.5.0
Signed-off-by: Ferran Rodenas <[email protected]>
1 parent 315596c commit efedb77

19 files changed

+83
-212
lines changed

go.mod

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@ module github.com/vmware/terraform-provider-vra
33
go 1.16
44

55
require (
6-
github.com/go-openapi/errors v0.20.2 // indirect
7-
github.com/go-openapi/loads v0.21.1 // indirect
8-
github.com/go-openapi/runtime v0.22.0
9-
github.com/go-openapi/strfmt v0.21.1
10-
github.com/go-openapi/swag v0.21.1 // indirect
6+
github.com/go-openapi/runtime v0.24.1
7+
github.com/go-openapi/strfmt v0.21.3
118
github.com/hashicorp/terraform-plugin-sdk/v2 v2.16.0
12-
github.com/vmware/vra-sdk-go v0.4.0
13-
go.mongodb.org/mongo-driver v1.8.3 // indirect
14-
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
9+
github.com/vmware/vra-sdk-go v0.5.0
1510
)

go.sum

Lines changed: 38 additions & 162 deletions
Large diffs are not rendered by default.

vra/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (r *ReauthorizeRuntime) Submit(operation *runtime.ClientOperation) (interfa
109109
// Client the VRA Client
110110
type Client struct {
111111
url string
112-
apiClient *client.MulticloudIaaS
112+
apiClient *client.API
113113
}
114114

115115
// NewClientFromRefreshToken configures and returns a VRA "Client" struct using "refresh_token" from provider config
@@ -208,7 +208,7 @@ func createTransport(insecure bool) (http.RoundTripper, error) {
208208
}, nil
209209
}
210210

211-
func getAPIClient(url string, token string, insecure bool) (*client.MulticloudIaaS, error) {
211+
func getAPIClient(url string, token string, insecure bool) (*client.API, error) {
212212
parsedURL, err := neturl.Parse(url)
213213
if err != nil {
214214
return nil, err

vra/data_source_region_enumeration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func dataSourceRegionEnumerationRead(ctx context.Context, d *schema.ResourceData
121121
return nil
122122
}
123123

124-
func dataSourceRegionEnumerationReadRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
124+
func dataSourceRegionEnumerationReadRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
125125
return func() (interface{}, string, error) {
126126
reqResp, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
127127
if err != nil {

vra/resource_block_device.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func resourceBlockDeviceCreate(ctx context.Context, d *schema.ResourceData, m in
225225
return resourceBlockDeviceRead(ctx, d, m)
226226
}
227227

228-
func blockDeviceStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
228+
func blockDeviceStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
229229
return func() (interface{}, string, error) {
230230
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
231231
if err != nil {
@@ -324,7 +324,7 @@ func resourceBlockDeviceUpdate(ctx context.Context, d *schema.ResourceData, m in
324324
return resourceBlockDeviceRead(ctx, d, m)
325325
}
326326

327-
func resizeDisk(ctx context.Context, d *schema.ResourceData, apiClient *client.MulticloudIaaS, id string) error {
327+
func resizeDisk(ctx context.Context, d *schema.ResourceData, apiClient *client.API, id string) error {
328328

329329
log.Printf("Starting resize of vra_block_device resource with name %s", d.Get("name"))
330330

vra/resource_block_device_snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func resourceBlockDeviceSnapshotCreate(ctx context.Context, d *schema.ResourceDa
112112
return resourceBlockDeviceSnapshotRead(ctx, d, m)
113113
}
114114

115-
func BlockDeviceSnapshotStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
115+
func BlockDeviceSnapshotStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
116116
return func() (interface{}, string, error) {
117117
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
118118
if err != nil {

vra/resource_cloud_account_aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func resourceCloudAccountAWSDelete(ctx context.Context, d *schema.ResourceData,
232232
return nil
233233
}
234234

235-
func resourceCloudAccountAWSStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
235+
func resourceCloudAccountAWSStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
236236
return func() (interface{}, string, error) {
237237
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
238238
if err != nil {

vra/resource_cloud_account_azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func resourceCloudAccountAzureDelete(ctx context.Context, d *schema.ResourceData
245245
return nil
246246
}
247247

248-
func resourceCloudAccountAzureStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
248+
func resourceCloudAccountAzureStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
249249
return func() (interface{}, string, error) {
250250
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
251251
if err != nil {

vra/resource_cloud_account_gcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func resourceCloudAccountGCPDelete(ctx context.Context, d *schema.ResourceData,
245245
return nil
246246
}
247247

248-
func resourceCloudAccountGCPStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
248+
func resourceCloudAccountGCPStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
249249
return func() (interface{}, string, error) {
250250
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
251251
if err != nil {

vra/resource_cloud_account_nsxt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func resourceCloudAccountNSXTDelete(ctx context.Context, d *schema.ResourceData,
228228
return nil
229229
}
230230

231-
func resourceCloudAccountNSXTStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
231+
func resourceCloudAccountNSXTStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
232232
return func() (interface{}, string, error) {
233233
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
234234
if err != nil {

vra/resource_cloud_account_nsxv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func resourceCloudAccountNSXVDelete(ctx context.Context, d *schema.ResourceData,
210210
return nil
211211
}
212212

213-
func resourceCloudAccountNSXVStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
213+
func resourceCloudAccountNSXVStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
214214
return func() (interface{}, string, error) {
215215
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
216216
if err != nil {

vra/resource_cloud_account_vmc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func resourceCloudAccountVMCDelete(ctx context.Context, d *schema.ResourceData,
257257
apiClient := m.(*Client).apiClient
258258

259259
id := d.Id()
260-
if _, err := apiClient.CloudAccount.DeleteCloudAccount(cloud_account.NewDeleteCloudAccountParams().WithID(id)); err != nil {
260+
if _, _, err := apiClient.CloudAccount.DeleteCloudAccount(cloud_account.NewDeleteCloudAccountParams().WithID(id)); err != nil {
261261
return diag.FromErr(err)
262262
}
263263

@@ -266,7 +266,7 @@ func resourceCloudAccountVMCDelete(ctx context.Context, d *schema.ResourceData,
266266
return nil
267267
}
268268

269-
func resourceCloudAccountVMCStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
269+
func resourceCloudAccountVMCStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
270270
return func() (interface{}, string, error) {
271271
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
272272
if err != nil {

vra/resource_cloud_account_vsphere.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func resourceCloudAccountVsphereDelete(ctx context.Context, d *schema.ResourceDa
283283
return nil
284284
}
285285

286-
func resourceCloudAccountVsphereStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
286+
func resourceCloudAccountVsphereStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
287287
return func() (interface{}, string, error) {
288288
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
289289
if err != nil {

vra/resource_deployment.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ func resourceDeploymentDelete(ctx context.Context, d *schema.ResourceData, m int
545545
}
546546

547547
// Gets the inputs and their types as map[string]string
548-
func getInputTypesMap(d *schema.ResourceData, apiClient *client.MulticloudIaaS) map[string]string {
548+
func getInputTypesMap(d *schema.ResourceData, apiClient *client.API) map[string]string {
549549
inputTypesMap := make(map[string]string)
550550

551551
if _, ok := d.GetOk("inputs"); !ok {
@@ -584,7 +584,7 @@ func getInputTypesMap(d *schema.ResourceData, apiClient *client.MulticloudIaaS)
584584
return inputTypesMap
585585
}
586586

587-
func getCatalogItemInputsByType(apiClient *client.MulticloudIaaS, catalogItemID string, catalogItemVersion string, inputValues interface{}) (map[string]interface{}, error) {
587+
func getCatalogItemInputsByType(apiClient *client.API, catalogItemID string, catalogItemVersion string, inputValues interface{}) (map[string]interface{}, error) {
588588
inputTypesMap, err := getCatalogItemInputTypesMap(apiClient, catalogItemID, catalogItemVersion)
589589
if err != nil {
590590
return nil, err
@@ -599,7 +599,7 @@ func getCatalogItemInputsByType(apiClient *client.MulticloudIaaS, catalogItemID
599599
return inputs, nil
600600
}
601601

602-
func getCatalogItemInputTypesMap(apiClient *client.MulticloudIaaS, catalogItemID string, catalogItemVersion string) (map[string]string, error) {
602+
func getCatalogItemInputTypesMap(apiClient *client.API, catalogItemID string, catalogItemVersion string) (map[string]string, error) {
603603
log.Printf("Getting Catalog Item Schema for catalog_item_id: [%v], catalog_item_version: [%v]", catalogItemID, catalogItemVersion)
604604
inputsSchemaMap, err := getCatalogItemSchema(apiClient, catalogItemID, catalogItemVersion)
605605
if err != nil {
@@ -614,7 +614,7 @@ func getCatalogItemInputTypesMap(apiClient *client.MulticloudIaaS, catalogItemID
614614
return inputTypesMap, nil
615615
}
616616

617-
func getBlueprintInputsByType(apiClient *client.MulticloudIaaS, blueprintID string, blueprintVersion string, inputValues interface{}) (map[string]interface{}, error) {
617+
func getBlueprintInputsByType(apiClient *client.API, blueprintID string, blueprintVersion string, inputValues interface{}) (map[string]interface{}, error) {
618618
inputTypesMap, err := getBlueprintInputTypesMap(apiClient, blueprintID, blueprintVersion)
619619
if err != nil {
620620
return nil, err
@@ -629,7 +629,7 @@ func getBlueprintInputsByType(apiClient *client.MulticloudIaaS, blueprintID stri
629629
return inputs, nil
630630
}
631631

632-
func getBlueprintInputTypesMap(apiClient *client.MulticloudIaaS, blueprintID string, blueprintVersion string) (map[string]string, error) {
632+
func getBlueprintInputTypesMap(apiClient *client.API, blueprintID string, blueprintVersion string) (map[string]string, error) {
633633
log.Printf("Getting Blueprint Schema for blueprint_id: [%v], blueprint_version: [%v]", blueprintID, blueprintVersion)
634634
inputsSchemaMap, err := getBlueprintSchema(apiClient, blueprintID, blueprintVersion)
635635
if err != nil {
@@ -644,7 +644,7 @@ func getBlueprintInputTypesMap(apiClient *client.MulticloudIaaS, blueprintID str
644644
return inputTypesMap, nil
645645
}
646646

647-
func getCatalogItemSchema(apiClient *client.MulticloudIaaS, catalogItemID string, catalogItemVersion string) (map[string]interface{}, error) {
647+
func getCatalogItemSchema(apiClient *client.API, catalogItemID string, catalogItemVersion string) (map[string]interface{}, error) {
648648
// Getting the catalog item schema
649649
log.Printf("Getting the schema for catalog item: %v version: %v", catalogItemID, catalogItemVersion)
650650
var catalogItemSchema interface{}
@@ -669,7 +669,7 @@ func getCatalogItemSchema(apiClient *client.MulticloudIaaS, catalogItemID string
669669
return make(map[string]interface{}), nil
670670
}
671671

672-
func getBlueprintSchema(apiClient *client.MulticloudIaaS, blueprintID string, blueprintVersion string) (map[string]models.PropertyDefinition, error) {
672+
func getBlueprintSchema(apiClient *client.API, blueprintID string, blueprintVersion string) (map[string]models.PropertyDefinition, error) {
673673
// Getting the blueprint inputs schema
674674
log.Printf("Getting the schema for catalog item: %v version: %v", blueprintID, blueprintVersion)
675675
var blueprintInputsSchema map[string]models.PropertyDefinition
@@ -691,7 +691,7 @@ func getBlueprintSchema(apiClient *client.MulticloudIaaS, blueprintID string, bl
691691
return blueprintInputsSchema, nil
692692
}
693693

694-
func deploymentStatusRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
694+
func deploymentStatusRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
695695
return func() (interface{}, string, error) {
696696
ret, err := apiClient.Deployments.GetDeploymentByIDV3UsingGET(
697697
deployments.NewGetDeploymentByIDV3UsingGETParams().
@@ -717,7 +717,7 @@ func deploymentStatusRefreshFunc(apiClient client.MulticloudIaaS, id string) res
717717
}
718718
}
719719

720-
func updateDeploymentWithNewBlueprint(ctx context.Context, d *schema.ResourceData, m interface{}, apiClient *client.MulticloudIaaS) diag.Diagnostics {
720+
func updateDeploymentWithNewBlueprint(ctx context.Context, d *schema.ResourceData, m interface{}, apiClient *client.API) diag.Diagnostics {
721721
log.Printf("Noticed changes to blueprint_id/blueprint_version/blueprint_content. Starting to update existing deployment...")
722722

723723
blueprintID, blueprintVersion, blueprintContent := "", "", ""
@@ -831,7 +831,7 @@ func updateDeploymentWithNewBlueprint(ctx context.Context, d *schema.ResourceDat
831831
return nil
832832
}
833833

834-
func updateDeploymentMetadata(d *schema.ResourceData, apiClient *client.MulticloudIaaS, deploymentUUID strfmt.UUID) error {
834+
func updateDeploymentMetadata(d *schema.ResourceData, apiClient *client.API, deploymentUUID strfmt.UUID) error {
835835
log.Printf("Starting to update deployment name and description")
836836
description := d.Get("description").(string)
837837
name := d.Get("name").(string)
@@ -852,7 +852,7 @@ func updateDeploymentMetadata(d *schema.ResourceData, apiClient *client.Multiclo
852852
return nil
853853
}
854854

855-
func runDeploymentUpdateAction(ctx context.Context, d *schema.ResourceData, apiClient *client.MulticloudIaaS, deploymentUUID strfmt.UUID) error {
855+
func runDeploymentUpdateAction(ctx context.Context, d *schema.ResourceData, apiClient *client.API, deploymentUUID strfmt.UUID) error {
856856
log.Printf("Noticed changes to inputs. Starting to update deployment with inputs")
857857
// Get the deployment actions
858858
deploymentActions, err := apiClient.DeploymentActions.GetDeploymentActionsUsingGET2(deployment_actions.
@@ -997,7 +997,7 @@ func getInputTypesMapFromBlueprintInputsSchema(schema map[string]models.Property
997997
}
998998

999999
// Returns whether the day2 action is valid currently, exact action ID for a given action string
1000-
func getDeploymentDay2ActionID(apiClient *client.MulticloudIaaS, deploymentUUID strfmt.UUID, actionName string) (bool, string, error) {
1000+
func getDeploymentDay2ActionID(apiClient *client.API, deploymentUUID strfmt.UUID, actionName string) (bool, string, error) {
10011001
// Get the deployment actions
10021002
deploymentActions, err := apiClient.DeploymentActions.GetDeploymentActionsUsingGET2(deployment_actions.
10031003
NewGetDeploymentActionsUsingGET2Params().WithDeploymentID(deploymentUUID))
@@ -1026,7 +1026,7 @@ func getDeploymentDay2ActionID(apiClient *client.MulticloudIaaS, deploymentUUID
10261026
}
10271027

10281028
// Gets the schema for a given deployment action id
1029-
func getDeploymentActionSchema(apiClient *client.MulticloudIaaS, deploymentUUID strfmt.UUID, actionID string) (map[string]interface{}, error) {
1029+
func getDeploymentActionSchema(apiClient *client.API, deploymentUUID strfmt.UUID, actionID string) (map[string]interface{}, error) {
10301030
// Getting the catalog item schema
10311031
log.Printf("Getting the schema for deploymentID: %v, actionID: %v", deploymentUUID, actionID)
10321032
var actionSchema interface{}
@@ -1046,7 +1046,7 @@ func getDeploymentActionSchema(apiClient *client.MulticloudIaaS, deploymentUUID
10461046
return make(map[string]interface{}), nil
10471047
}
10481048

1049-
func getDeploymentActionInputTypesMap(apiClient *client.MulticloudIaaS, deploymentUUID strfmt.UUID, actionID string) (map[string]string, error) {
1049+
func getDeploymentActionInputTypesMap(apiClient *client.API, deploymentUUID strfmt.UUID, actionID string) (map[string]string, error) {
10501050
inputsSchemaMap, err := getDeploymentActionSchema(apiClient, deploymentUUID, actionID)
10511051
if err != nil {
10521052
return nil, err
@@ -1059,7 +1059,7 @@ func getDeploymentActionInputTypesMap(apiClient *client.MulticloudIaaS, deployme
10591059
return inputTypesMap, nil
10601060
}
10611061

1062-
func runChangeOwnerDeploymentAction(ctx context.Context, d *schema.ResourceData, apiClient *client.MulticloudIaaS, deploymentUUID strfmt.UUID) error {
1062+
func runChangeOwnerDeploymentAction(ctx context.Context, d *schema.ResourceData, apiClient *client.API, deploymentUUID strfmt.UUID) error {
10631063
oldOwner, newOwner := d.GetChange("owner")
10641064
log.Printf("Noticed changes to owner. Starting to change deployment owner from %s to %s", oldOwner.(string), newOwner.(string))
10651065

@@ -1097,7 +1097,7 @@ func runChangeOwnerDeploymentAction(ctx context.Context, d *schema.ResourceData,
10971097
return nil
10981098
}
10991099

1100-
func runAction(ctx context.Context, d *schema.ResourceData, apiClient *client.MulticloudIaaS, deploymentUUID strfmt.UUID, actionID string, inputs map[string]interface{}, reason string) error {
1100+
func runAction(ctx context.Context, d *schema.ResourceData, apiClient *client.API, deploymentUUID strfmt.UUID, actionID string, inputs map[string]interface{}, reason string) error {
11011101
resourceActionRequest := models.ResourceActionRequest{
11021102
ActionID: actionID,
11031103
Reason: reason,
@@ -1129,7 +1129,7 @@ func runAction(ctx context.Context, d *schema.ResourceData, apiClient *client.Mu
11291129
return nil
11301130
}
11311131

1132-
func deploymentActionStatusRefreshFunc(apiClient client.MulticloudIaaS, deploymentUUID strfmt.UUID, requestID strfmt.UUID) resource.StateRefreshFunc {
1132+
func deploymentActionStatusRefreshFunc(apiClient client.API, deploymentUUID strfmt.UUID, requestID strfmt.UUID) resource.StateRefreshFunc {
11331133
return func() (interface{}, string, error) {
11341134
ret, err := apiClient.Deployments.GetDeploymentByIDV3UsingGET(
11351135
deployments.NewGetDeploymentByIDV3UsingGETParams().
@@ -1158,7 +1158,7 @@ func deploymentActionStatusRefreshFunc(apiClient client.MulticloudIaaS, deployme
11581158
}
11591159
}
11601160

1161-
func deploymentDeleteStatusRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
1161+
func deploymentDeleteStatusRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
11621162
return func() (interface{}, string, error) {
11631163
ret, err := apiClient.Deployments.GetDeploymentByIDV3UsingGET(
11641164
deployments.NewGetDeploymentByIDV3UsingGETParams().

vra/resource_integration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func resourceIntegrationDelete(ctx context.Context, d *schema.ResourceData, m in
264264
apiClient := m.(*Client).apiClient
265265

266266
id := d.Id()
267-
if _, err := apiClient.Integration.DeleteIntegration(integration.NewDeleteIntegrationParams().WithAPIVersion(withString(IaaSAPIVersion)).WithID(id)); err != nil {
267+
if _, _, err := apiClient.Integration.DeleteIntegration(integration.NewDeleteIntegrationParams().WithAPIVersion(withString(IaaSAPIVersion)).WithID(id)); err != nil {
268268
return diag.FromErr(err)
269269
}
270270

@@ -273,7 +273,7 @@ func resourceIntegrationDelete(ctx context.Context, d *schema.ResourceData, m in
273273
return nil
274274
}
275275

276-
func resourceIntegrationStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
276+
func resourceIntegrationStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
277277
return func() (interface{}, string, error) {
278278
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
279279
if err != nil {

vra/resource_load_balancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func resourceLoadBalancerCreate(ctx context.Context, d *schema.ResourceData, m i
164164
return resourceLoadBalancerRead(ctx, d, m)
165165
}
166166

167-
func loadBalancerStateRefreshFunc(apiClient client.MulticloudIaaS, id string) resource.StateRefreshFunc {
167+
func loadBalancerStateRefreshFunc(apiClient client.API, id string) resource.StateRefreshFunc {
168168
return func() (interface{}, string, error) {
169169
ret, err := apiClient.Request.GetRequestTracker(request.NewGetRequestTrackerParams().WithID(id))
170170
if err != nil {

0 commit comments

Comments
 (0)