Skip to content

Commit c96cced

Browse files
committed
updates improving api clients
1 parent d75daef commit c96cced

1,983 files changed

Lines changed: 16670 additions & 11572 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

OPENAPI-REST-API/openapi-client/ada/src/client/-clients.adb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,18 @@ package body .Clients is
8585
-- Removes an IP address range from the account's access restriction list. If this is the last range, IP limiting is effectively disabled and the account becomes accessible from any IP address.
8686
procedure Delete_Ip_Limit
8787
(Client : in out Client_Type;
88+
Ip_Limit_Range_Type : in .Models.IpLimitRange_Type;
8889
Result : out .Models.GenericResponse_Type) is
8990
URI : Swagger.Clients.URI_Type;
91+
Req : Swagger.Clients.Request_Type;
9092
Reply : Swagger.Value_Type;
9193
begin
9294
Client.Set_Accept (Media_List_1);
93-
95+
Client.Initialize (Req, Media_List_1);
96+
.Models.Serialize (Req.Stream, "", Ip_Limit_Range_Type);
9497

9598
URI.Set_Path ("/account/iplimits");
96-
Client.Call (Swagger.Clients.PATCH, URI, Reply);
99+
Client.Call (Swagger.Clients.PATCH, URI, Req, Reply);
97100
.Models.Deserialize (Reply, "", Result);
98101
end Delete_Ip_Limit;
99102

@@ -1826,14 +1829,17 @@ package body .Clients is
18261829
-- List Floating IPs
18271830
-- Returns all Floating IP services on the account with their current status and assignment details.
18281831
procedure Get_Floating_Ips_List
1829-
(Client : in out Client_Type) is
1832+
(Client : in out Client_Type;
1833+
Result : out Swagger.Object_Vectors.Vector) is
18301834
URI : Swagger.Clients.URI_Type;
1835+
Reply : Swagger.Value_Type;
18311836
begin
18321837
Client.Set_Accept (Media_List_1);
18331838

18341839

18351840
URI.Set_Path ("/floating_ips");
1836-
Client.Call (Swagger.Clients.GET, URI);
1841+
Client.Call (Swagger.Clients.GET, URI, Reply);
1842+
.Models.Deserialize (Reply, "", Result);
18371843
end Get_Floating_Ips_List;
18381844

18391845
-- Resend Floating IPs Welcome Email

OPENAPI-REST-API/openapi-client/ada/src/client/-clients.ads

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ package .Clients is
3838
-- Removes an IP address range from the account's access restriction list. If this is the last range, IP limiting is effectively disabled and the account becomes accessible from any IP address.
3939
procedure Delete_Ip_Limit
4040
(Client : in out Client_Type;
41+
Ip_Limit_Range_Type : in .Models.IpLimitRange_Type;
4142
Result : out .Models.GenericResponse_Type);
4243

4344
-- Retrieve Account Details
@@ -709,7 +710,8 @@ package .Clients is
709710
-- List Floating IPs
710711
-- Returns all Floating IP services on the account with their current status and assignment details.
711712
procedure Get_Floating_Ips_List
712-
(Client : in out Client_Type);
713+
(Client : in out Client_Type;
714+
Result : out Swagger.Object_Vectors.Vector);
713715

714716
-- Resend Floating IPs Welcome Email
715717
-- Resends the welcome email for the Floating IP service. The email contains setup instructions and connection details.

0 commit comments

Comments
 (0)