@@ -31,14 +31,14 @@ type mongoDBFlexClientMocked struct {
3131 listStoragesFails bool
3232 listStoragesResp * mongodbflex.ListStoragesResponse
3333 getInstanceFails bool
34- getInstanceResp * mongodbflex.GetInstanceResponse
34+ getInstanceResp * mongodbflex.InstanceResponse
3535}
3636
3737func (c * mongoDBFlexClientMocked ) PartialUpdateInstance (ctx context.Context , projectId , instanceId , region string ) mongodbflex.ApiPartialUpdateInstanceRequest {
3838 return testClient .PartialUpdateInstance (ctx , projectId , instanceId , region )
3939}
4040
41- func (c * mongoDBFlexClientMocked ) GetInstanceExecute (_ context.Context , _ , _ , _ string ) (* mongodbflex.GetInstanceResponse , error ) {
41+ func (c * mongoDBFlexClientMocked ) GetInstanceExecute (_ context.Context , _ , _ , _ string ) (* mongodbflex.InstanceResponse , error ) {
4242 if c .getInstanceFails {
4343 return nil , fmt .Errorf ("get instance failed" )
4444 }
@@ -354,7 +354,7 @@ func TestBuildRequest(t *testing.T) {
354354 model * inputModel
355355 expectedRequest mongodbflex.ApiPartialUpdateInstanceRequest
356356 getInstanceFails bool
357- getInstanceResp * mongodbflex.GetInstanceResponse
357+ getInstanceResp * mongodbflex.InstanceResponse
358358 listFlavorsFails bool
359359 listFlavorsResp * mongodbflex.ListFlavorsResponse
360360 listStoragesFails bool
@@ -414,7 +414,7 @@ func TestBuildRequest(t *testing.T) {
414414 model .StorageClass = utils .Ptr ("class" )
415415 }),
416416 isValid : true ,
417- getInstanceResp : & mongodbflex.GetInstanceResponse {
417+ getInstanceResp : & mongodbflex.InstanceResponse {
418418 Item : & mongodbflex.Instance {
419419 Flavor : & mongodbflex.Flavor {
420420 Id : utils .Ptr (testFlavorId ),
@@ -442,7 +442,7 @@ func TestBuildRequest(t *testing.T) {
442442 model .StorageSize = utils .Ptr (int64 (10 ))
443443 }),
444444 isValid : true ,
445- getInstanceResp : & mongodbflex.GetInstanceResponse {
445+ getInstanceResp : & mongodbflex.InstanceResponse {
446446 Item : & mongodbflex.Instance {
447447 Flavor : & mongodbflex.Flavor {
448448 Id : utils .Ptr (testFlavorId ),
@@ -528,7 +528,7 @@ func TestBuildRequest(t *testing.T) {
528528 model .StorageClass = utils .Ptr ("non-existing-class" )
529529 },
530530 ),
531- getInstanceResp : & mongodbflex.GetInstanceResponse {
531+ getInstanceResp : & mongodbflex.InstanceResponse {
532532 Item : & mongodbflex.Instance {
533533 Flavor : & mongodbflex.Flavor {
534534 Id : utils .Ptr (testFlavorId ),
@@ -551,7 +551,7 @@ func TestBuildRequest(t *testing.T) {
551551 model .StorageSize = utils .Ptr (int64 (9 ))
552552 },
553553 ),
554- getInstanceResp : & mongodbflex.GetInstanceResponse {
554+ getInstanceResp : & mongodbflex.InstanceResponse {
555555 Item : & mongodbflex.Instance {
556556 Flavor : & mongodbflex.Flavor {
557557 Id : utils .Ptr (testFlavorId ),
0 commit comments