Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always send integer or boolean query parameters to the API server #160

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/delete_pod/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void delete_a_pod(apiClient_t * apiClient)
"default", // char *namespace
NULL, // char *pretty
NULL, // char *dryRun
0, // int gracePeriodSeconds
30, // int gracePeriodSeconds
0, // int orphanDependents
NULL, // char *propagationPolicy
NULL // v1_delete_options_t *body
Expand Down
44 changes: 22 additions & 22 deletions kubernetes/api/AdmissionregistrationV1API.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien
char *keyQuery_gracePeriodSeconds = NULL;
char * valueQuery_gracePeriodSeconds = NULL;
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
if (gracePeriodSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -479,7 +479,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien
char *keyQuery_limit = NULL;
char * valueQuery_limit = NULL;
keyValuePair_t *keyPairQuery_limit = 0;
if (limit)
if (1) // Always send integer parameters to the API server
{
keyQuery_limit = strdup("limit");
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -492,7 +492,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien
char *keyQuery_orphanDependents = NULL;
char * valueQuery_orphanDependents = NULL;
keyValuePair_t *keyPairQuery_orphanDependents = 0;
if (orphanDependents)
if (1) // Always send boolean parameters to the API server
{
keyQuery_orphanDependents = strdup("orphanDependents");
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -541,7 +541,7 @@ AdmissionregistrationV1API_deleteCollectionMutatingWebhookConfiguration(apiClien
char *keyQuery_timeoutSeconds = NULL;
char * valueQuery_timeoutSeconds = NULL;
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
if (timeoutSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -827,7 +827,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli
char *keyQuery_gracePeriodSeconds = NULL;
char * valueQuery_gracePeriodSeconds = NULL;
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
if (gracePeriodSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -852,7 +852,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli
char *keyQuery_limit = NULL;
char * valueQuery_limit = NULL;
keyValuePair_t *keyPairQuery_limit = 0;
if (limit)
if (1) // Always send integer parameters to the API server
{
keyQuery_limit = strdup("limit");
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -865,7 +865,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli
char *keyQuery_orphanDependents = NULL;
char * valueQuery_orphanDependents = NULL;
keyValuePair_t *keyPairQuery_orphanDependents = 0;
if (orphanDependents)
if (1) // Always send boolean parameters to the API server
{
keyQuery_orphanDependents = strdup("orphanDependents");
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -914,7 +914,7 @@ AdmissionregistrationV1API_deleteCollectionValidatingWebhookConfiguration(apiCli
char *keyQuery_timeoutSeconds = NULL;
char * valueQuery_timeoutSeconds = NULL;
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
if (timeoutSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -1186,7 +1186,7 @@ AdmissionregistrationV1API_deleteMutatingWebhookConfiguration(apiClient_t *apiCl
char *keyQuery_gracePeriodSeconds = NULL;
char * valueQuery_gracePeriodSeconds = NULL;
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
if (gracePeriodSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -1199,7 +1199,7 @@ AdmissionregistrationV1API_deleteMutatingWebhookConfiguration(apiClient_t *apiCl
char *keyQuery_orphanDependents = NULL;
char * valueQuery_orphanDependents = NULL;
keyValuePair_t *keyPairQuery_orphanDependents = 0;
if (orphanDependents)
if (1) // Always send boolean parameters to the API server
{
keyQuery_orphanDependents = strdup("orphanDependents");
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -1404,7 +1404,7 @@ AdmissionregistrationV1API_deleteValidatingWebhookConfiguration(apiClient_t *api
char *keyQuery_gracePeriodSeconds = NULL;
char * valueQuery_gracePeriodSeconds = NULL;
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
if (gracePeriodSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -1417,7 +1417,7 @@ AdmissionregistrationV1API_deleteValidatingWebhookConfiguration(apiClient_t *api
char *keyQuery_orphanDependents = NULL;
char * valueQuery_orphanDependents = NULL;
keyValuePair_t *keyPairQuery_orphanDependents = 0;
if (orphanDependents)
if (1) // Always send boolean parameters to the API server
{
keyQuery_orphanDependents = strdup("orphanDependents");
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -1667,7 +1667,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie
char *keyQuery_allowWatchBookmarks = NULL;
char * valueQuery_allowWatchBookmarks = NULL;
keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0;
if (allowWatchBookmarks)
if (1) // Always send boolean parameters to the API server
{
keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks");
valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -1716,7 +1716,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie
char *keyQuery_limit = NULL;
char * valueQuery_limit = NULL;
keyValuePair_t *keyPairQuery_limit = 0;
if (limit)
if (1) // Always send integer parameters to the API server
{
keyQuery_limit = strdup("limit");
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -1753,7 +1753,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie
char *keyQuery_timeoutSeconds = NULL;
char * valueQuery_timeoutSeconds = NULL;
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
if (timeoutSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -1766,7 +1766,7 @@ AdmissionregistrationV1API_listMutatingWebhookConfiguration(apiClient_t *apiClie
char *keyQuery_watch = NULL;
char * valueQuery_watch = NULL;
keyValuePair_t *keyPairQuery_watch = 0;
if (watch)
if (1) // Always send boolean parameters to the API server
{
keyQuery_watch = strdup("watch");
valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -1980,7 +1980,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl
char *keyQuery_allowWatchBookmarks = NULL;
char * valueQuery_allowWatchBookmarks = NULL;
keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0;
if (allowWatchBookmarks)
if (1) // Always send boolean parameters to the API server
{
keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks");
valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -2029,7 +2029,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl
char *keyQuery_limit = NULL;
char * valueQuery_limit = NULL;
keyValuePair_t *keyPairQuery_limit = 0;
if (limit)
if (1) // Always send integer parameters to the API server
{
keyQuery_limit = strdup("limit");
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -2066,7 +2066,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl
char *keyQuery_timeoutSeconds = NULL;
char * valueQuery_timeoutSeconds = NULL;
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
if (timeoutSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -2079,7 +2079,7 @@ AdmissionregistrationV1API_listValidatingWebhookConfiguration(apiClient_t *apiCl
char *keyQuery_watch = NULL;
char * valueQuery_watch = NULL;
keyValuePair_t *keyPairQuery_watch = 0;
if (watch)
if (1) // Always send boolean parameters to the API server
{
keyQuery_watch = strdup("watch");
valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -2339,7 +2339,7 @@ AdmissionregistrationV1API_patchMutatingWebhookConfiguration(apiClient_t *apiCli
char *keyQuery_force = NULL;
char * valueQuery_force = NULL;
keyValuePair_t *keyPairQuery_force = 0;
if (force)
if (1) // Always send boolean parameters to the API server
{
keyQuery_force = strdup("force");
valueQuery_force = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -2560,7 +2560,7 @@ AdmissionregistrationV1API_patchValidatingWebhookConfiguration(apiClient_t *apiC
char *keyQuery_force = NULL;
char * valueQuery_force = NULL;
keyValuePair_t *keyPairQuery_force = 0;
if (force)
if (1) // Always send boolean parameters to the API server
{
keyQuery_force = strdup("force");
valueQuery_force = calloc(1,MAX_NUMBER_LENGTH);
Expand Down
24 changes: 12 additions & 12 deletions kubernetes/api/ApiextensionsV1API.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
char *keyQuery_gracePeriodSeconds = NULL;
char * valueQuery_gracePeriodSeconds = NULL;
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
if (gracePeriodSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -294,7 +294,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
char *keyQuery_limit = NULL;
char * valueQuery_limit = NULL;
keyValuePair_t *keyPairQuery_limit = 0;
if (limit)
if (1) // Always send integer parameters to the API server
{
keyQuery_limit = strdup("limit");
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -307,7 +307,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
char *keyQuery_orphanDependents = NULL;
char * valueQuery_orphanDependents = NULL;
keyValuePair_t *keyPairQuery_orphanDependents = 0;
if (orphanDependents)
if (1) // Always send boolean parameters to the API server
{
keyQuery_orphanDependents = strdup("orphanDependents");
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -356,7 +356,7 @@ ApiextensionsV1API_deleteCollectionCustomResourceDefinition(apiClient_t *apiClie
char *keyQuery_timeoutSeconds = NULL;
char * valueQuery_timeoutSeconds = NULL;
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
if (timeoutSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -628,7 +628,7 @@ ApiextensionsV1API_deleteCustomResourceDefinition(apiClient_t *apiClient, char *
char *keyQuery_gracePeriodSeconds = NULL;
char * valueQuery_gracePeriodSeconds = NULL;
keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0;
if (gracePeriodSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds");
valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -641,7 +641,7 @@ ApiextensionsV1API_deleteCustomResourceDefinition(apiClient_t *apiClient, char *
char *keyQuery_orphanDependents = NULL;
char * valueQuery_orphanDependents = NULL;
keyValuePair_t *keyPairQuery_orphanDependents = 0;
if (orphanDependents)
if (1) // Always send boolean parameters to the API server
{
keyQuery_orphanDependents = strdup("orphanDependents");
valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -891,7 +891,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
char *keyQuery_allowWatchBookmarks = NULL;
char * valueQuery_allowWatchBookmarks = NULL;
keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0;
if (allowWatchBookmarks)
if (1) // Always send boolean parameters to the API server
{
keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks");
valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -940,7 +940,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
char *keyQuery_limit = NULL;
char * valueQuery_limit = NULL;
keyValuePair_t *keyPairQuery_limit = 0;
if (limit)
if (1) // Always send integer parameters to the API server
{
keyQuery_limit = strdup("limit");
valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -977,7 +977,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
char *keyQuery_timeoutSeconds = NULL;
char * valueQuery_timeoutSeconds = NULL;
keyValuePair_t *keyPairQuery_timeoutSeconds = 0;
if (timeoutSeconds)
if (1) // Always send integer parameters to the API server
{
keyQuery_timeoutSeconds = strdup("timeoutSeconds");
valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH);
Expand All @@ -990,7 +990,7 @@ ApiextensionsV1API_listCustomResourceDefinition(apiClient_t *apiClient, char * p
char *keyQuery_watch = NULL;
char * valueQuery_watch = NULL;
keyValuePair_t *keyPairQuery_watch = 0;
if (watch)
if (1) // Always send boolean parameters to the API server
{
keyQuery_watch = strdup("watch");
valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -1250,7 +1250,7 @@ ApiextensionsV1API_patchCustomResourceDefinition(apiClient_t *apiClient, char *
char *keyQuery_force = NULL;
char * valueQuery_force = NULL;
keyValuePair_t *keyPairQuery_force = 0;
if (force)
if (1) // Always send boolean parameters to the API server
{
keyQuery_force = strdup("force");
valueQuery_force = calloc(1,MAX_NUMBER_LENGTH);
Expand Down Expand Up @@ -1471,7 +1471,7 @@ ApiextensionsV1API_patchCustomResourceDefinitionStatus(apiClient_t *apiClient, c
char *keyQuery_force = NULL;
char * valueQuery_force = NULL;
keyValuePair_t *keyPairQuery_force = 0;
if (force)
if (1) // Always send boolean parameters to the API server
{
keyQuery_force = strdup("force");
valueQuery_force = calloc(1,MAX_NUMBER_LENGTH);
Expand Down
Loading