@@ -30,7 +30,7 @@ func TestMapFields(t *testing.T) {
3030 name string
3131 state * Model
3232 region string
33- input * sfs.GetResourcePoolResponseResourcePool
33+ input * sfs.ResourcePool
3434 expected * Model
3535 isValid bool
3636 }{
@@ -41,7 +41,7 @@ func TestMapFields(t *testing.T) {
4141 ProjectId : testProjectId ,
4242 },
4343 testRegion .ValueString (),
44- & sfs.GetResourcePoolResponseResourcePool {
44+ & sfs.ResourcePool {
4545 Id : testResourcePoolId .ValueStringPointer (),
4646 },
4747 & Model {
@@ -52,7 +52,7 @@ func TestMapFields(t *testing.T) {
5252 IpAcl : types .ListNull (types .StringType ),
5353 Name : types .StringNull (),
5454 PerformanceClass : types .StringNull (),
55- SizeGigabytes : types .Int64Null (),
55+ SizeGigabytes : types .Int32Null (),
5656 Region : testRegion ,
5757 },
5858 true ,
@@ -64,23 +64,23 @@ func TestMapFields(t *testing.T) {
6464 ProjectId : testProjectId ,
6565 },
6666 region : testRegion .ValueString (),
67- input : & sfs.GetResourcePoolResponseResourcePool {
67+ input : & sfs.ResourcePool {
6868 AvailabilityZone : testAvailabilityZone .ValueStringPointer (),
69- CountShares : utils.Ptr [int64 ](42 ),
69+ CountShares : utils.Ptr [int32 ](42 ),
7070 CreatedAt : & testTime ,
7171 Id : testResourcePoolId .ValueStringPointer (),
72- IpAcl : & []string {"foo" , "bar" , "baz" },
72+ IpAcl : []string {"foo" , "bar" , "baz" },
7373 MountPath : new ("mountpoint "),
7474 Name : new ("testname "),
7575 PerformanceClass : & sfs.ResourcePoolPerformanceClass {
7676 Name : new ("performance "),
77- PeakIops : utils.Ptr [int64 ](42 ),
78- Throughput : utils.Ptr [int64 ](54 ),
77+ PeakIops : utils.Ptr [int32 ](42 ),
78+ Throughput : utils.Ptr [int32 ](54 ),
7979 },
8080 PerformanceClassDowngradableAt : & testTime ,
8181 SizeReducibleAt : & testTime ,
8282 Space : & sfs.ResourcePoolSpace {
83- SizeGigabytes : utils.Ptr [int64 ](42 ),
83+ SizeGigabytes : utils.Ptr [int32 ](42 ),
8484 },
8585 State : new ("state "),
8686 },
@@ -96,7 +96,7 @@ func TestMapFields(t *testing.T) {
9696 }),
9797 Name : types .StringValue ("testname" ),
9898 PerformanceClass : types .StringValue ("performance" ),
99- SizeGigabytes : types .Int64Value (42 ),
99+ SizeGigabytes : types .Int32Value (42 ),
100100 Region : testRegion ,
101101 },
102102 isValid : true ,
@@ -134,14 +134,14 @@ func TestToCreatePayload(t *testing.T) {
134134 IpAcl : testIpAcl ,
135135 Name : types .StringValue ("testname" ),
136136 PerformanceClass : types .StringValue ("performance" ),
137- SizeGigabytes : types .Int64Value (42 ),
137+ SizeGigabytes : types .Int32Value (42 ),
138138 },
139139 & sfs.CreateResourcePoolPayload {
140- AvailabilityZone : testAvailabilityZone .ValueStringPointer (),
141- IpAcl : new ( []string {"foo ", "bar" , "baz" }) ,
142- Name : new ( "testname ") ,
143- PerformanceClass : new ( "performance ") ,
144- SizeGigabytes : utils. Ptr [ int64 ]( 42 ) ,
140+ AvailabilityZone : testAvailabilityZone .ValueString (),
141+ IpAcl : []string {"foo" , "bar" , "baz" },
142+ Name : "testname" ,
143+ PerformanceClass : "performance" ,
144+ SizeGigabytes : 42 ,
145145 },
146146 false ,
147147 },
@@ -155,14 +155,14 @@ func TestToCreatePayload(t *testing.T) {
155155 IpAcl : types .ListNull (types .StringType ),
156156 Name : types .StringValue ("testname" ),
157157 PerformanceClass : types .StringValue ("performance" ),
158- SizeGigabytes : types .Int64Value (42 ),
158+ SizeGigabytes : types .Int32Value (42 ),
159159 },
160160 & sfs.CreateResourcePoolPayload {
161- AvailabilityZone : testAvailabilityZone .ValueStringPointer (),
161+ AvailabilityZone : testAvailabilityZone .ValueString (),
162162 IpAcl : nil ,
163- Name : new ( "testname ") ,
164- PerformanceClass : new ( "performance ") ,
165- SizeGigabytes : utils. Ptr [ int64 ]( 42 ) ,
163+ Name : "testname" ,
164+ PerformanceClass : "performance" ,
165+ SizeGigabytes : 42 ,
166166 },
167167 false ,
168168 },
@@ -198,13 +198,13 @@ func TestToUpdatePayload(t *testing.T) {
198198 IpAcl : testIpAcl ,
199199 Name : types .StringValue ("testname" ),
200200 PerformanceClass : types .StringValue ("performance" ),
201- SizeGigabytes : types .Int64Value (42 ),
201+ SizeGigabytes : types .Int32Value (42 ),
202202 SnapshotsAreVisible : types .BoolValue (true ),
203203 },
204204 & sfs.UpdateResourcePoolPayload {
205- IpAcl : new ( []string {"foo ", "bar" , "baz" }) ,
205+ IpAcl : []string {"foo" , "bar" , "baz" },
206206 PerformanceClass : new ("performance "),
207- SizeGigabytes : utils.Ptr [int64 ](42 ),
207+ SizeGigabytes : * sfs . NewNullableInt32 ( utils.Ptr [int32 ](42 ) ),
208208 SnapshotsAreVisible : new (true ),
209209 },
210210 false ,
@@ -219,12 +219,12 @@ func TestToUpdatePayload(t *testing.T) {
219219 IpAcl : types .ListNull (types .StringType ),
220220 Name : types .StringValue ("testname" ),
221221 PerformanceClass : types .StringValue ("performance" ),
222- SizeGigabytes : types .Int64Value (42 ),
222+ SizeGigabytes : types .Int32Value (42 ),
223223 },
224224 & sfs.UpdateResourcePoolPayload {
225225 IpAcl : nil ,
226226 PerformanceClass : new ("performance "),
227- SizeGigabytes : utils.Ptr [int64 ](42 ),
227+ SizeGigabytes : * sfs . NewNullableInt32 ( utils.Ptr [int32 ](42 ) ),
228228 },
229229 false ,
230230 },
@@ -238,12 +238,12 @@ func TestToUpdatePayload(t *testing.T) {
238238 IpAcl : types .ListValueMust (types .StringType , []attr.Value {}),
239239 Name : types .StringValue ("testname" ),
240240 PerformanceClass : types .StringValue ("performance" ),
241- SizeGigabytes : types .Int64Value (42 ),
241+ SizeGigabytes : types .Int32Value (42 ),
242242 },
243243 & sfs.UpdateResourcePoolPayload {
244- IpAcl : new ( []string {}) ,
244+ IpAcl : []string {},
245245 PerformanceClass : new ("performance "),
246- SizeGigabytes : utils.Ptr [int64 ](42 ),
246+ SizeGigabytes : * sfs . NewNullableInt32 ( utils.Ptr [int32 ](42 ) ),
247247 },
248248 false ,
249249 },
0 commit comments