Skip to content

Commit 5381a17

Browse files
committed
Merge the recent changes from openapi-generator
1 parent 94d85b5 commit 5381a17

File tree

552 files changed

+4553
-4521
lines changed

Some content is hidden

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

552 files changed

+4553
-4521
lines changed

kubernetes/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ cmake_minimum_required (VERSION 2.6...3.10.2)
22
project (CGenerator)
33

44
cmake_policy(SET CMP0063 NEW)
5+
56
set(CMAKE_C_VISIBILITY_PRESET default)
67
set(CMAKE_CXX_VISIBILITY_PRESET default)
78
set(CMAKE_VISIBILITY_INLINES_HIDDEN OFF)

kubernetes/api/AdmissionregistrationAPI.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ AdmissionregistrationAPI_getAPIGroup(apiClient_t *apiClient)
2020
list_t *localVarQueryParameters = NULL;
2121
list_t *localVarHeaderParameters = NULL;
2222
list_t *localVarFormParameters = NULL;
23-
list_t *localVarHeaderType = list_create();
23+
list_t *localVarHeaderType = list_createList();
2424
list_t *localVarContentType = NULL;
2525
char *localVarBodyParameters = NULL;
2626

@@ -67,7 +67,7 @@ AdmissionregistrationAPI_getAPIGroup(apiClient_t *apiClient)
6767

6868

6969

70-
list_free(localVarHeaderType);
70+
list_freeList(localVarHeaderType);
7171

7272
free(localVarPath);
7373
return elementToReturn;

kubernetes/api/AdmissionregistrationV1API.c

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

kubernetes/api/AdmissionregistrationV1API.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "../external/cJSON.h"
66
#include "../include/keyValuePair.h"
77
#include "../include/binary.h"
8+
#include "../model/object.h"
89
#include "../model/v1_api_resource_list.h"
910
#include "../model/v1_delete_options.h"
1011
#include "../model/v1_mutating_webhook_configuration.h"

kubernetes/api/ApiextensionsAPI.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ApiextensionsAPI_getAPIGroup(apiClient_t *apiClient)
2020
list_t *localVarQueryParameters = NULL;
2121
list_t *localVarHeaderParameters = NULL;
2222
list_t *localVarFormParameters = NULL;
23-
list_t *localVarHeaderType = list_create();
23+
list_t *localVarHeaderType = list_createList();
2424
list_t *localVarContentType = NULL;
2525
char *localVarBodyParameters = NULL;
2626

@@ -67,7 +67,7 @@ ApiextensionsAPI_getAPIGroup(apiClient_t *apiClient)
6767

6868

6969

70-
list_free(localVarHeaderType);
70+
list_freeList(localVarHeaderType);
7171

7272
free(localVarPath);
7373
return elementToReturn;

kubernetes/api/ApiextensionsV1API.c

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
v1_custom_resource_definition_t*
1818
ApiextensionsV1API_createCustomResourceDefinition(apiClient_t *apiClient, v1_custom_resource_definition_t * body , char * pretty , char * dryRun , char * fieldManager )
1919
{
20-
list_t *localVarQueryParameters = list_create();
20+
list_t *localVarQueryParameters = list_createList();
2121
list_t *localVarHeaderParameters = NULL;
2222
list_t *localVarFormParameters = NULL;
23-
list_t *localVarHeaderType = list_create();
23+
list_t *localVarHeaderType = list_createList();
2424
list_t *localVarContentType = NULL;
2525
char *localVarBodyParameters = NULL;
2626

@@ -115,10 +115,10 @@ ApiextensionsV1API_createCustomResourceDefinition(apiClient_t *apiClient, v1_cus
115115
apiClient->dataReceived = NULL;
116116
apiClient->dataReceivedLen = 0;
117117
}
118-
list_free(localVarQueryParameters);
118+
list_freeList(localVarQueryParameters);
119119

120120

121-
list_free(localVarHeaderType);
121+
list_freeList(localVarHeaderType);
122122

123123
free(localVarPath);
124124
if (localVarSingleItemJSON_body) {
@@ -174,10 +174,10 @@ ApiextensionsV1API_createCustomResourceDefinition(apiClient_t *apiClient, v1_cus
174174
v1_status_t*
175175
ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body )
176176
{
177-
list_t *localVarQueryParameters = list_create();
177+
list_t *localVarQueryParameters = list_createList();
178178
list_t *localVarHeaderParameters = NULL;
179179
list_t *localVarFormParameters = NULL;
180-
list_t *localVarHeaderType = list_create();
180+
list_t *localVarHeaderType = list_createList();
181181
list_t *localVarContentType = NULL;
182182
char *localVarBodyParameters = NULL;
183183

@@ -378,10 +378,10 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
378378
apiClient->dataReceived = NULL;
379379
apiClient->dataReceivedLen = 0;
380380
}
381-
list_free(localVarQueryParameters);
381+
list_freeList(localVarQueryParameters);
382382

383383

384-
list_free(localVarHeaderType);
384+
list_freeList(localVarHeaderType);
385385

386386
free(localVarPath);
387387
if (localVarSingleItemJSON_body) {
@@ -545,10 +545,10 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
545545
v1_status_t*
546546
ApiextensionsV1API_deleteCustomResourceDefinition(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body )
547547
{
548-
list_t *localVarQueryParameters = list_create();
548+
list_t *localVarQueryParameters = list_createList();
549549
list_t *localVarHeaderParameters = NULL;
550550
list_t *localVarFormParameters = NULL;
551-
list_t *localVarHeaderType = list_create();
551+
list_t *localVarHeaderType = list_createList();
552552
list_t *localVarContentType = NULL;
553553
char *localVarBodyParameters = NULL;
554554

@@ -676,10 +676,10 @@ ApiextensionsV1API_deleteCustomResourceDefinition(apiClient_t *apiClient, char *
676676
apiClient->dataReceived = NULL;
677677
apiClient->dataReceivedLen = 0;
678678
}
679-
list_free(localVarQueryParameters);
679+
list_freeList(localVarQueryParameters);
680680

681681

682-
list_free(localVarHeaderType);
682+
list_freeList(localVarHeaderType);
683683

684684
free(localVarPath);
685685
free(localVarToReplace_name);
@@ -763,7 +763,7 @@ ApiextensionsV1API_getAPIResources(apiClient_t *apiClient)
763763
list_t *localVarQueryParameters = NULL;
764764
list_t *localVarHeaderParameters = NULL;
765765
list_t *localVarFormParameters = NULL;
766-
list_t *localVarHeaderType = list_create();
766+
list_t *localVarHeaderType = list_createList();
767767
list_t *localVarContentType = NULL;
768768
char *localVarBodyParameters = NULL;
769769

@@ -810,7 +810,7 @@ ApiextensionsV1API_getAPIResources(apiClient_t *apiClient)
810810

811811

812812

813-
list_free(localVarHeaderType);
813+
list_freeList(localVarHeaderType);
814814

815815
free(localVarPath);
816816
return elementToReturn;
@@ -825,10 +825,10 @@ ApiextensionsV1API_getAPIResources(apiClient_t *apiClient)
825825
v1_custom_resource_definition_list_t*
826826
ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch )
827827
{
828-
list_t *localVarQueryParameters = list_create();
828+
list_t *localVarQueryParameters = list_createList();
829829
list_t *localVarHeaderParameters = NULL;
830830
list_t *localVarFormParameters = NULL;
831-
list_t *localVarHeaderType = list_create();
831+
list_t *localVarHeaderType = list_createList();
832832
list_t *localVarContentType = NULL;
833833
char *localVarBodyParameters = NULL;
834834

@@ -998,10 +998,10 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
998998
apiClient->dataReceived = NULL;
999999
apiClient->dataReceivedLen = 0;
10001000
}
1001-
list_free(localVarQueryParameters);
1001+
list_freeList(localVarQueryParameters);
10021002

10031003

1004-
list_free(localVarHeaderType);
1004+
list_freeList(localVarHeaderType);
10051005

10061006
free(localVarPath);
10071007
if(keyQuery_pretty){
@@ -1136,11 +1136,11 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
11361136
v1_custom_resource_definition_t*
11371137
ApiextensionsV1API_patchCustomResourceDefinition(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , int force )
11381138
{
1139-
list_t *localVarQueryParameters = list_create();
1139+
list_t *localVarQueryParameters = list_createList();
11401140
list_t *localVarHeaderParameters = NULL;
11411141
list_t *localVarFormParameters = NULL;
1142-
list_t *localVarHeaderType = list_create();
1143-
list_t *localVarContentType = list_create();
1142+
list_t *localVarHeaderType = list_createList();
1143+
list_t *localVarContentType = list_createList();
11441144
char *localVarBodyParameters = NULL;
11451145

11461146
// create the path
@@ -1258,11 +1258,11 @@ ApiextensionsV1API_patchCustomResourceDefinition(apiClient_t *apiClient, char *
12581258
apiClient->dataReceived = NULL;
12591259
apiClient->dataReceivedLen = 0;
12601260
}
1261-
list_free(localVarQueryParameters);
1261+
list_freeList(localVarQueryParameters);
12621262

12631263

1264-
list_free(localVarHeaderType);
1265-
list_free(localVarContentType);
1264+
list_freeList(localVarHeaderType);
1265+
list_freeList(localVarContentType);
12661266
free(localVarPath);
12671267
free(localVarToReplace_name);
12681268
if (localVarSingleItemJSON_body) {
@@ -1330,11 +1330,11 @@ ApiextensionsV1API_patchCustomResourceDefinition(apiClient_t *apiClient, char *
13301330
v1_custom_resource_definition_t*
13311331
ApiextensionsV1API_patchCustomResourceDefinitionStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , int force )
13321332
{
1333-
list_t *localVarQueryParameters = list_create();
1333+
list_t *localVarQueryParameters = list_createList();
13341334
list_t *localVarHeaderParameters = NULL;
13351335
list_t *localVarFormParameters = NULL;
1336-
list_t *localVarHeaderType = list_create();
1337-
list_t *localVarContentType = list_create();
1336+
list_t *localVarHeaderType = list_createList();
1337+
list_t *localVarContentType = list_createList();
13381338
char *localVarBodyParameters = NULL;
13391339

13401340
// create the path
@@ -1452,11 +1452,11 @@ ApiextensionsV1API_patchCustomResourceDefinitionStatus(apiClient_t *apiClient, c
14521452
apiClient->dataReceived = NULL;
14531453
apiClient->dataReceivedLen = 0;
14541454
}
1455-
list_free(localVarQueryParameters);
1455+
list_freeList(localVarQueryParameters);
14561456

14571457

1458-
list_free(localVarHeaderType);
1459-
list_free(localVarContentType);
1458+
list_freeList(localVarHeaderType);
1459+
list_freeList(localVarContentType);
14601460
free(localVarPath);
14611461
free(localVarToReplace_name);
14621462
if (localVarSingleItemJSON_body) {
@@ -1524,10 +1524,10 @@ ApiextensionsV1API_patchCustomResourceDefinitionStatus(apiClient_t *apiClient, c
15241524
v1_custom_resource_definition_t*
15251525
ApiextensionsV1API_readCustomResourceDefinition(apiClient_t *apiClient, char * name , char * pretty )
15261526
{
1527-
list_t *localVarQueryParameters = list_create();
1527+
list_t *localVarQueryParameters = list_createList();
15281528
list_t *localVarHeaderParameters = NULL;
15291529
list_t *localVarFormParameters = NULL;
1530-
list_t *localVarHeaderType = list_create();
1530+
list_t *localVarHeaderType = list_createList();
15311531
list_t *localVarContentType = NULL;
15321532
char *localVarBodyParameters = NULL;
15331533

@@ -1593,10 +1593,10 @@ ApiextensionsV1API_readCustomResourceDefinition(apiClient_t *apiClient, char * n
15931593
apiClient->dataReceived = NULL;
15941594
apiClient->dataReceivedLen = 0;
15951595
}
1596-
list_free(localVarQueryParameters);
1596+
list_freeList(localVarQueryParameters);
15971597

15981598

1599-
list_free(localVarHeaderType);
1599+
list_freeList(localVarHeaderType);
16001600

16011601
free(localVarPath);
16021602
free(localVarToReplace_name);
@@ -1624,10 +1624,10 @@ ApiextensionsV1API_readCustomResourceDefinition(apiClient_t *apiClient, char * n
16241624
v1_custom_resource_definition_t*
16251625
ApiextensionsV1API_readCustomResourceDefinitionStatus(apiClient_t *apiClient, char * name , char * pretty )
16261626
{
1627-
list_t *localVarQueryParameters = list_create();
1627+
list_t *localVarQueryParameters = list_createList();
16281628
list_t *localVarHeaderParameters = NULL;
16291629
list_t *localVarFormParameters = NULL;
1630-
list_t *localVarHeaderType = list_create();
1630+
list_t *localVarHeaderType = list_createList();
16311631
list_t *localVarContentType = NULL;
16321632
char *localVarBodyParameters = NULL;
16331633

@@ -1693,10 +1693,10 @@ ApiextensionsV1API_readCustomResourceDefinitionStatus(apiClient_t *apiClient, ch
16931693
apiClient->dataReceived = NULL;
16941694
apiClient->dataReceivedLen = 0;
16951695
}
1696-
list_free(localVarQueryParameters);
1696+
list_freeList(localVarQueryParameters);
16971697

16981698

1699-
list_free(localVarHeaderType);
1699+
list_freeList(localVarHeaderType);
17001700

17011701
free(localVarPath);
17021702
free(localVarToReplace_name);
@@ -1724,10 +1724,10 @@ ApiextensionsV1API_readCustomResourceDefinitionStatus(apiClient_t *apiClient, ch
17241724
v1_custom_resource_definition_t*
17251725
ApiextensionsV1API_replaceCustomResourceDefinition(apiClient_t *apiClient, char * name , v1_custom_resource_definition_t * body , char * pretty , char * dryRun , char * fieldManager )
17261726
{
1727-
list_t *localVarQueryParameters = list_create();
1727+
list_t *localVarQueryParameters = list_createList();
17281728
list_t *localVarHeaderParameters = NULL;
17291729
list_t *localVarFormParameters = NULL;
1730-
list_t *localVarHeaderType = list_create();
1730+
list_t *localVarHeaderType = list_createList();
17311731
list_t *localVarContentType = NULL;
17321732
char *localVarBodyParameters = NULL;
17331733

@@ -1829,10 +1829,10 @@ ApiextensionsV1API_replaceCustomResourceDefinition(apiClient_t *apiClient, char
18291829
apiClient->dataReceived = NULL;
18301830
apiClient->dataReceivedLen = 0;
18311831
}
1832-
list_free(localVarQueryParameters);
1832+
list_freeList(localVarQueryParameters);
18331833

18341834

1835-
list_free(localVarHeaderType);
1835+
list_freeList(localVarHeaderType);
18361836

18371837
free(localVarPath);
18381838
free(localVarToReplace_name);
@@ -1889,10 +1889,10 @@ ApiextensionsV1API_replaceCustomResourceDefinition(apiClient_t *apiClient, char
18891889
v1_custom_resource_definition_t*
18901890
ApiextensionsV1API_replaceCustomResourceDefinitionStatus(apiClient_t *apiClient, char * name , v1_custom_resource_definition_t * body , char * pretty , char * dryRun , char * fieldManager )
18911891
{
1892-
list_t *localVarQueryParameters = list_create();
1892+
list_t *localVarQueryParameters = list_createList();
18931893
list_t *localVarHeaderParameters = NULL;
18941894
list_t *localVarFormParameters = NULL;
1895-
list_t *localVarHeaderType = list_create();
1895+
list_t *localVarHeaderType = list_createList();
18961896
list_t *localVarContentType = NULL;
18971897
char *localVarBodyParameters = NULL;
18981898

@@ -1994,10 +1994,10 @@ ApiextensionsV1API_replaceCustomResourceDefinitionStatus(apiClient_t *apiClient,
19941994
apiClient->dataReceived = NULL;
19951995
apiClient->dataReceivedLen = 0;
19961996
}
1997-
list_free(localVarQueryParameters);
1997+
list_freeList(localVarQueryParameters);
19981998

19991999

2000-
list_free(localVarHeaderType);
2000+
list_freeList(localVarHeaderType);
20012001

20022002
free(localVarPath);
20032003
free(localVarToReplace_name);

kubernetes/api/ApiextensionsV1API.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "../external/cJSON.h"
66
#include "../include/keyValuePair.h"
77
#include "../include/binary.h"
8+
#include "../model/object.h"
89
#include "../model/v1_api_resource_list.h"
910
#include "../model/v1_custom_resource_definition.h"
1011
#include "../model/v1_custom_resource_definition_list.h"

kubernetes/api/ApiregistrationAPI.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ApiregistrationAPI_getAPIGroup(apiClient_t *apiClient)
2020
list_t *localVarQueryParameters = NULL;
2121
list_t *localVarHeaderParameters = NULL;
2222
list_t *localVarFormParameters = NULL;
23-
list_t *localVarHeaderType = list_create();
23+
list_t *localVarHeaderType = list_createList();
2424
list_t *localVarContentType = NULL;
2525
char *localVarBodyParameters = NULL;
2626

@@ -67,7 +67,7 @@ ApiregistrationAPI_getAPIGroup(apiClient_t *apiClient)
6767

6868

6969

70-
list_free(localVarHeaderType);
70+
list_freeList(localVarHeaderType);
7171

7272
free(localVarPath);
7373
return elementToReturn;

0 commit comments

Comments
 (0)