Skip to content

Commit 5465f9a

Browse files
committed
updated samples
1 parent 7ad4c15 commit 5465f9a

13,064 files changed

Lines changed: 43567 additions & 1808039 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: 165 additions & 66 deletions
Large diffs are not rendered by default.

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

Lines changed: 66 additions & 33 deletions
Large diffs are not rendered by default.

OPENAPI-REST-API/openapi-client/ada/src/model/-models.adb

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,59 @@ package body .Models is
667667
end loop;
668668
end Deserialize;
669669

670+
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
671+
Name : in String;
672+
Value : in .Models.AddServer200Response_Type) is
673+
begin
674+
Into.Start_Entity (Name);
675+
if not Value.Text.Is_Null then
676+
Into.Write_Entity ("text", Value.Text);
677+
end if;
678+
if not Value.Invoice.Is_Null then
679+
Into.Write_Entity ("invoice", Value.Invoice);
680+
end if;
681+
if not Value.Order.Is_Null then
682+
Into.Write_Entity ("order", Value.Order);
683+
end if;
684+
Into.End_Entity (Name);
685+
end Serialize;
686+
687+
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
688+
Name : in String;
689+
Value : in AddServer200Response_Type_Vectors.Vector) is
690+
begin
691+
Into.Start_Array (Name);
692+
for Item of Value loop
693+
Serialize (Into, "", Item);
694+
end loop;
695+
Into.End_Array (Name);
696+
end Serialize;
697+
698+
procedure Deserialize (From : in Swagger.Value_Type;
699+
Name : in String;
700+
Value : out .Models.AddServer200Response_Type) is
701+
Object : Swagger.Value_Type;
702+
begin
703+
Swagger.Streams.Deserialize (From, Name, Object);
704+
Swagger.Streams.Deserialize (Object, "text", Value.Text);
705+
Swagger.Streams.Deserialize (Object, "invoice", Value.Invoice);
706+
Swagger.Streams.Deserialize (Object, "order", Value.Order);
707+
end Deserialize;
708+
709+
procedure Deserialize (From : in Swagger.Value_Type;
710+
Name : in String;
711+
Value : in out AddServer200Response_Type_Vectors.Vector) is
712+
List : Swagger.Value_Array_Type;
713+
Item : .Models.AddServer200Response_Type;
714+
begin
715+
Value.Clear;
716+
Swagger.Streams.Deserialize (From, Name, List);
717+
for Data of List loop
718+
Deserialize (Data, "", Item);
719+
Value.Append (Item);
720+
end loop;
721+
end Deserialize;
722+
670723
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
671724
Name : in String;
672725
Value : in .Models.AffiliateBannerRow_Type) is
@@ -13881,6 +13934,73 @@ package body .Models is
1388113934
end loop;
1388213935
end Deserialize;
1388313936

13937+
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
13938+
Name : in String;
13939+
Value : in .Models.ServiceOrderPostResponse_Type) is
13940+
begin
13941+
Into.Start_Entity (Name);
13942+
if not Value.Continue.Is_Null then
13943+
Into.Write_Entity ("continue", Value.Continue);
13944+
end if;
13945+
Serialize (Into, "errors", Value.Errors);
13946+
if not Value.Total_Cost.Is_Null then
13947+
Into.Write_Entity ("total_cost", Value.Total_Cost);
13948+
end if;
13949+
if not Value.Iid.Is_Null then
13950+
Into.Write_Entity ("iid", Value.Iid);
13951+
end if;
13952+
Serialize (Into, "iids", Value.Iids);
13953+
Serialize (Into, "real_iids", Value.Real_Iids);
13954+
if not Value.Service_Id.Is_Null then
13955+
Into.Write_Entity ("serviceId", Value.Service_Id);
13956+
end if;
13957+
if not Value.Invoice_Description.Is_Null then
13958+
Into.Write_Entity ("invoice_description", Value.Invoice_Description);
13959+
end if;
13960+
Into.End_Entity (Name);
13961+
end Serialize;
13962+
13963+
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
13964+
Name : in String;
13965+
Value : in ServiceOrderPostResponse_Type_Vectors.Vector) is
13966+
begin
13967+
Into.Start_Array (Name);
13968+
for Item of Value loop
13969+
Serialize (Into, "", Item);
13970+
end loop;
13971+
Into.End_Array (Name);
13972+
end Serialize;
13973+
13974+
procedure Deserialize (From : in Swagger.Value_Type;
13975+
Name : in String;
13976+
Value : out .Models.ServiceOrderPostResponse_Type) is
13977+
Object : Swagger.Value_Type;
13978+
begin
13979+
Swagger.Streams.Deserialize (From, Name, Object);
13980+
Swagger.Streams.Deserialize (Object, "continue", Value.Continue);
13981+
Swagger.Streams.Deserialize (Object, "errors", Value.Errors);
13982+
Swagger.Streams.Deserialize (Object, "total_cost", Value.Total_Cost);
13983+
Swagger.Streams.Deserialize (Object, "iid", Value.Iid);
13984+
Swagger.Streams.Deserialize (Object, "iids", Value.Iids);
13985+
Swagger.Streams.Deserialize (Object, "real_iids", Value.Real_Iids);
13986+
Swagger.Streams.Deserialize (Object, "serviceId", Value.Service_Id);
13987+
Swagger.Streams.Deserialize (Object, "invoice_description", Value.Invoice_Description);
13988+
end Deserialize;
13989+
13990+
procedure Deserialize (From : in Swagger.Value_Type;
13991+
Name : in String;
13992+
Value : in out ServiceOrderPostResponse_Type_Vectors.Vector) is
13993+
List : Swagger.Value_Array_Type;
13994+
Item : .Models.ServiceOrderPostResponse_Type;
13995+
begin
13996+
Value.Clear;
13997+
Swagger.Streams.Deserialize (From, Name, List);
13998+
for Data of List loop
13999+
Deserialize (Data, "", Item);
14000+
Value.Append (Item);
14001+
end loop;
14002+
end Deserialize;
14003+
1388414004
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
1388514005
Name : in String;
1388614006
Value : in .Models.ServiceType_Type) is

OPENAPI-REST-API/openapi-client/ada/src/model/-models.ads

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,33 @@ package .Models is
370370
Value : in out AccountSshKey_Type_Vectors.Vector);
371371

372372

373+
374+
type AddServer200Response_Type is
375+
record
376+
Text : Swagger.Nullable_UString;
377+
Invoice : Swagger.Nullable_Integer;
378+
Order : Swagger.Nullable_Integer;
379+
end record;
380+
381+
382+
package AddServer200Response_Type_Vectors is
383+
new Ada.Containers.Vectors (Index_Type => Positive,
384+
Element_Type => .Models.AddServer200Response_Type);
385+
386+
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
387+
Name : in String;
388+
Value : in .Models.AddServer200Response_Type);
389+
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
390+
Name : in String;
391+
Value : in AddServer200Response_Type_Vectors.Vector);
392+
procedure Deserialize (From : in Swagger.Value_Type;
393+
Name : in String;
394+
Value : out .Models.AddServer200Response_Type);
395+
procedure Deserialize (From : in Swagger.Value_Type;
396+
Name : in String;
397+
Value : in out AddServer200Response_Type_Vectors.Vector);
398+
399+
373400
-- ------------------------------
374401
-- AffiliateBannerRow
375402
-- An affiliate banner image details.
@@ -6371,7 +6398,7 @@ package .Models is
63716398

63726399
-- ------------------------------
63736400
-- Root Type for ServerIpmiLiveInfo
6374-
-- Information about the IPMI connectioj.
6401+
-- Information about the IPMI connection.
63756402
-- ------------------------------
63766403
type ServerIpmiLiveInfo_Type is
63776404
record
@@ -7005,6 +7032,41 @@ package .Models is
70057032
Value : in out ServiceCategory_Type_Vectors.Vector);
70067033

70077034

7035+
-- ------------------------------
7036+
-- ServiceOrderPostResponse
7037+
-- Generic response returned after placing a service order. Contains invoice IDs for payment and the new service ID.
7038+
-- ------------------------------
7039+
type ServiceOrderPostResponse_Type is
7040+
record
7041+
Continue : Swagger.Nullable_Boolean;
7042+
Errors : Swagger.UString_Vectors.Vector;
7043+
Total_Cost : Swagger.Nullable_UString;
7044+
Iid : Swagger.Nullable_UString;
7045+
Iids : Swagger.UString_Vectors.Vector;
7046+
Real_Iids : Swagger.UString_Vectors.Vector;
7047+
Service_Id : Swagger.Nullable_Integer;
7048+
Invoice_Description : Swagger.Nullable_UString;
7049+
end record;
7050+
7051+
7052+
package ServiceOrderPostResponse_Type_Vectors is
7053+
new Ada.Containers.Vectors (Index_Type => Positive,
7054+
Element_Type => .Models.ServiceOrderPostResponse_Type);
7055+
7056+
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
7057+
Name : in String;
7058+
Value : in .Models.ServiceOrderPostResponse_Type);
7059+
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
7060+
Name : in String;
7061+
Value : in ServiceOrderPostResponse_Type_Vectors.Vector);
7062+
procedure Deserialize (From : in Swagger.Value_Type;
7063+
Name : in String;
7064+
Value : out .Models.ServiceOrderPostResponse_Type);
7065+
procedure Deserialize (From : in Swagger.Value_Type;
7066+
Name : in String;
7067+
Value : in out ServiceOrderPostResponse_Type_Vectors.Vector);
7068+
7069+
70087070
-- ------------------------------
70097071
-- ServiceType
70107072
-- A general grouping of services within a category.

OPENAPI-REST-API/openapi-client/apex/.openapi-generator/FILES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ force-app/main/default/classes/OASAccountSshKey.cls
8383
force-app/main/default/classes/OASAccountSshKey.cls-meta.xml
8484
force-app/main/default/classes/OASAccountSshKeyTest.cls
8585
force-app/main/default/classes/OASAccountSshKeyTest.cls-meta.xml
86+
force-app/main/default/classes/OASAddServer200Response.cls
87+
force-app/main/default/classes/OASAddServer200Response.cls-meta.xml
88+
force-app/main/default/classes/OASAddServer200ResponseTest.cls
89+
force-app/main/default/classes/OASAddServer200ResponseTest.cls-meta.xml
8690
force-app/main/default/classes/OASAffiliateBannerRow.cls
8791
force-app/main/default/classes/OASAffiliateBannerRow.cls-meta.xml
8892
force-app/main/default/classes/OASAffiliateBannerRowTest.cls
@@ -1433,6 +1437,10 @@ force-app/main/default/classes/OASServiceCategory.cls
14331437
force-app/main/default/classes/OASServiceCategory.cls-meta.xml
14341438
force-app/main/default/classes/OASServiceCategoryTest.cls
14351439
force-app/main/default/classes/OASServiceCategoryTest.cls-meta.xml
1440+
force-app/main/default/classes/OASServiceOrderPostResponse.cls
1441+
force-app/main/default/classes/OASServiceOrderPostResponse.cls-meta.xml
1442+
force-app/main/default/classes/OASServiceOrderPostResponseTest.cls
1443+
force-app/main/default/classes/OASServiceOrderPostResponseTest.cls-meta.xml
14361444
force-app/main/default/classes/OASServiceTest.cls
14371445
force-app/main/default/classes/OASServiceTest.cls-meta.xml
14381446
force-app/main/default/classes/OASServiceType.cls

OPENAPI-REST-API/openapi-client/apex/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ Class | Method | HTTP request | Description
391391
- [OASAccountInfoOauthproviders](OASAccountInfoOauthproviders.md)
392392
- [OASAccountInfoPost](OASAccountInfoPost.md)
393393
- [OASAccountSshKey](OASAccountSshKey.md)
394+
- [OASAddServer200Response](OASAddServer200Response.md)
394395
- [OASAffiliateBannerRow](OASAffiliateBannerRow.md)
395396
- [OASAffiliateDockSetup](OASAffiliateDockSetup.md)
396397
- [OASAffiliatePaymentSetup](OASAffiliatePaymentSetup.md)
@@ -716,6 +717,7 @@ Class | Method | HTTP request | Description
716717
- [OASService](OASService.md)
717718
- [OASServiceCategories](OASServiceCategories.md)
718719
- [OASServiceCategory](OASServiceCategory.md)
720+
- [OASServiceOrderPostResponse](OASServiceOrderPostResponse.md)
719721
- [OASServiceType](OASServiceType.md)
720722
- [OASServiceTypes](OASServiceTypes.md)
721723
- [OASServices](OASServices.md)

OPENAPI-REST-API/openapi-client/apex/force-app/main/default/classes/OASAccountApi.cls

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,10 @@ public class OASAccountApi {
311311
* @param disableServerNotifications Set to `true` to disable server notifications, or `false` to enable them. (optional)
312312
* @param disableEmailNotifications Set to `true` to disable email notifications, or `false` to enable them. (optional)
313313
* @param gstin Your GST identification number (if applicable). (optional)
314+
* @return OASSuccessTextResponse
314315
* @throws OAS.ApiException if fails to make API call
315316
*/
316-
public void updateAccountInfo(Map<String, Object> params) {
317+
public OASSuccessTextResponse updateAccountInfo(Map<String, Object> params) {
317318
client.assertNotNull(params.get('name'), 'name');
318319
client.assertNotNull(params.get('address'), 'address');
319320
client.assertNotNull(params.get('city'), 'city');
@@ -343,25 +344,26 @@ public class OASAccountApi {
343344
form.addAll(client.makeParam('disable_email_notifications', (Boolean) params.get('disableEmailNotifications')));
344345
form.addAll(client.makeParam('gstin', (String) params.get('gstin')));
345346

346-
client.invoke(
347+
return (OASSuccessTextResponse) client.invoke(
347348
'POST', '/account', '',
348349
query, form,
349350
new Map<String, Object>(),
350351
new Map<String, Object>(),
351352
new List<String>{ 'application/json' },
352353
new List<String>{ 'multipart/form-data', 'application/json' },
353354
new List<String> { 'sessionIdCookieAuth', 'apiKeyAuth', 'sessionIdHeaderAuth' },
354-
null
355+
OASSuccessTextResponse.class
355356
);
356357
}
357358
/**
358359
* Add IP Access Restriction
359360
* Adds an IP address range to the account\&#39;s access restriction list. Once IP limiting is active, only requests originating from allowed ranges can access the account. Provide the start and end of the range in dotted-quad notation.
360361
* @param start The begining (or first) IP address in the range. (required)
361362
* @param r_end The ending (or last) IP address in the range. (required)
363+
* @return OASSuccessTextResponse
362364
* @throws OAS.ApiException if fails to make API call
363365
*/
364-
public void updateAccountIpLimits(Map<String, Object> params) {
366+
public OASSuccessTextResponse updateAccountIpLimits(Map<String, Object> params) {
365367
client.assertNotNull(params.get('start'), 'start');
366368
client.assertNotNull(params.get('r_end'), 'r_end');
367369
List<OAS.Param> query = new List<OAS.Param>();
@@ -371,15 +373,15 @@ public class OASAccountApi {
371373
form.addAll(client.makeParam('start', (String) params.get('start')));
372374
form.addAll(client.makeParam('end', (String) params.get('r_end')));
373375

374-
client.invoke(
376+
return (OASSuccessTextResponse) client.invoke(
375377
'POST', '/account/iplimits', '',
376378
query, form,
377379
new Map<String, Object>(),
378380
new Map<String, Object>(),
379381
new List<String>{ 'application/json' },
380382
new List<String>{ 'multipart/form-data', 'application/json' },
381383
new List<String> { 'sessionIdCookieAuth', 'apiKeyAuth', 'sessionIdHeaderAuth' },
382-
null
384+
OASSuccessTextResponse.class
383385
);
384386
}
385387
/**

0 commit comments

Comments
 (0)