@@ -163,13 +163,13 @@ func (r *ipPoolResource) Create(
163163 ctx , cancel := context .WithTimeout (ctx , createTimeout )
164164 defer cancel ()
165165
166- params := oxide.IpPoolCreateParams {
166+ params := oxide.SystemIpPoolCreateParams {
167167 Body : & oxide.IpPoolCreate {
168168 Description : plan .Description .ValueString (),
169169 Name : oxide .Name (plan .Name .ValueString ()),
170170 },
171171 }
172- ipPool , err := r .client .IpPoolCreate (ctx , params )
172+ ipPool , err := r .client .SystemIpPoolCreate (ctx , params )
173173 if err != nil {
174174 resp .Diagnostics .AddError (
175175 "Error creating IP Pool" ,
@@ -222,7 +222,7 @@ func (r *ipPoolResource) Read(
222222 ctx , cancel := context .WithTimeout (ctx , readTimeout )
223223 defer cancel ()
224224
225- ipPool , err := r .client .IpPoolView (ctx , oxide.IpPoolViewParams {
225+ ipPool , err := r .client .SystemIpPoolView (ctx , oxide.SystemIpPoolViewParams {
226226 Pool : oxide .NameOrId (state .ID .ValueString ()),
227227 })
228228 if err != nil {
@@ -245,11 +245,11 @@ func (r *ipPoolResource) Read(
245245 state .TimeModified = types .StringValue (ipPool .TimeCreated .String ())
246246
247247 // Append information about IP Pool ranges
248- listParams := oxide.IpPoolRangeListParams {
248+ listParams := oxide.SystemIpPoolRangeListParams {
249249 Pool : oxide .NameOrId (ipPool .Id ),
250250 Limit : oxide .NewPointer (1000000000 ),
251251 }
252- ipPoolRanges , err := r .client .IpPoolRangeList (ctx , listParams )
252+ ipPoolRanges , err := r .client .SystemIpPoolRangeList (ctx , listParams )
253253 if err != nil {
254254 resp .Diagnostics .AddError (
255255 "Unable to read IP Pool ranges:" ,
@@ -347,15 +347,15 @@ func (r *ipPoolResource) Update(
347347 return
348348 }
349349
350- params := oxide.IpPoolUpdateParams {
350+ params := oxide.SystemIpPoolUpdateParams {
351351 Pool : oxide .NameOrId (state .ID .ValueString ()),
352352 Body : & oxide.IpPoolUpdate {
353353 Description : plan .Description .ValueString (),
354354 Name : oxide .Name (plan .Name .ValueString ()),
355355 },
356356 }
357357
358- ipPool , err := r .client .IpPoolUpdate (ctx , params )
358+ ipPool , err := r .client .SystemIpPoolUpdate (ctx , params )
359359 if err != nil {
360360 resp .Diagnostics .AddError (
361361 "Error updating IP Pool" ,
@@ -405,9 +405,9 @@ func (r *ipPoolResource) Delete(
405405 defer cancel ()
406406
407407 // Remove all IP pool ranges first
408- ranges , err := r .client .IpPoolRangeList (
408+ ranges , err := r .client .SystemIpPoolRangeList (
409409 ctx ,
410- oxide.IpPoolRangeListParams {
410+ oxide.SystemIpPoolRangeListParams {
411411 Pool : oxide .NameOrId (state .ID .ValueString ()),
412412 Limit : oxide .NewPointer (1000000000 ),
413413 },
@@ -429,11 +429,11 @@ func (r *ipPoolResource) Delete(
429429
430430 for _ , item := range ranges .Items {
431431 // item.Range is now a struct with a Value field containing the variant
432- params := oxide.IpPoolRangeRemoveParams {
432+ params := oxide.SystemIpPoolRangeRemoveParams {
433433 Pool : oxide .NameOrId (state .ID .ValueString ()),
434434 Body : & item .Range ,
435435 }
436- if err := r .client .IpPoolRangeRemove (ctx , params ); err != nil {
436+ if err := r .client .SystemIpPoolRangeRemove (ctx , params ); err != nil {
437437 if ! is404 (err ) {
438438 resp .Diagnostics .AddError (
439439 "Error deleting IP Pool range:" ,
@@ -449,9 +449,9 @@ func (r *ipPoolResource) Delete(
449449 ), map [string ]any {"success" : true })
450450 }
451451
452- if err := r .client .IpPoolDelete (
452+ if err := r .client .SystemIpPoolDelete (
453453 ctx ,
454- oxide.IpPoolDeleteParams {
454+ oxide.SystemIpPoolDeleteParams {
455455 Pool : oxide .NameOrId (state .ID .ValueString ()),
456456 }); err != nil {
457457 if ! is404 (err ) {
@@ -490,12 +490,12 @@ func addRanges(
490490 return diags
491491 }
492492
493- params := oxide.IpPoolRangeAddParams {
493+ params := oxide.SystemIpPoolRangeAddParams {
494494 Pool : oxide .NameOrId (poolID ),
495495 Body : & body ,
496496 }
497497
498- ipR , err := client .IpPoolRangeAdd (ctx , params )
498+ ipR , err := client .SystemIpPoolRangeAdd (ctx , params )
499499 if err != nil {
500500 diags .AddError (
501501 "Error creating range within IP Pool" ,
@@ -539,12 +539,12 @@ func removeRanges(
539539 return diags
540540 }
541541
542- params := oxide.IpPoolRangeRemoveParams {
542+ params := oxide.SystemIpPoolRangeRemoveParams {
543543 Pool : oxide .NameOrId (poolID ),
544544 Body : & body ,
545545 }
546546
547- err = client .IpPoolRangeRemove (ctx , params )
547+ err = client .SystemIpPoolRangeRemove (ctx , params )
548548 if err != nil {
549549 diags .AddError (
550550 "Error removing range within IP Pool" ,
0 commit comments