From f1ce9547d1eb4c98f0cd8d5ee10697e6665f21e7 Mon Sep 17 00:00:00 2001 From: TIP Automation User Date: Thu, 3 Aug 2023 17:44:16 +0000 Subject: [PATCH] Update OpenAPI docs for GitHub pages --- docs/index.html | 102 ++++++++++++++++++------------------------------ 1 file changed, 38 insertions(+), 64 deletions(-) diff --git a/docs/index.html b/docs/index.html index 2eae08e..b7f01c7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1480,11 +1480,6 @@ ul.nav-tabs { }, { "$ref" : "#/components/schemas/Dashboard" } ] -}; - defs["getSystemCommand_200_response"] = { - "oneOf" : [ { - "$ref" : "#/components/schemas/SystemInfoResults" - } ] }; defs["getVenues_200_response"] = { "oneOf" : [ { @@ -2515,6 +2510,10 @@ ul.nav-tabs { defs["SystemCommandResults"] = { "type" : "object", "oneOf" : [ { + "$ref" : "#/components/schemas/SystemResources" + }, { + "$ref" : "#/components/schemas/SystemInfoResults" + }, { "$ref" : "#/components/schemas/StringList" }, { "$ref" : "#/components/schemas/TagValuePairList" @@ -2599,6 +2598,31 @@ ul.nav-tabs { "format" : "int64" } } +}; + defs["SystemResources"] = { + "type" : "object", + "properties" : { + "numberOfFileDescriptors" : { + "type" : "integer", + "format" : "int64" + }, + "currRealMem" : { + "type" : "integer", + "format" : "int64" + }, + "peakRealMem" : { + "type" : "integer", + "format" : "int64" + }, + "currVirtMem" : { + "type" : "integer", + "format" : "int64" + }, + "peakVirtMem" : { + "type" : "integer", + "format" : "int64" + } + } }; defs["TagIntPair"] = { "type" : "object", @@ -40804,7 +40828,6 @@ pub fn main() {
curl -X GET \
 -H "X-API-KEY: [[apiKey]]" \
  -H "Authorization: Bearer [[accessToken]]" \
- -H "Accept: application/json" \
  "https://localhost:16005/api/v1/system?command=command_example"
 
@@ -40836,8 +40859,7 @@ public class SystemCommandsApiExample { String command = command_example; // String | Get a value try { - getSystemCommand_200_response result = apiInstance.getSystemCommand(command); - System.out.println(result); + apiInstance.getSystemCommand(command); } catch (ApiException e) { System.err.println("Exception when calling SystemCommandsApi#getSystemCommand"); e.printStackTrace(); @@ -40856,8 +40878,7 @@ public class SystemCommandsApiExample { String command = command_example; // String | Get a value try { - getSystemCommand_200_response result = apiInstance.getSystemCommand(command); - System.out.println(result); + apiInstance.getSystemCommand(command); } catch (ApiException e) { System.err.println("Exception when calling SystemCommandsApi#getSystemCommand"); e.printStackTrace(); @@ -40886,10 +40907,7 @@ String *command = command_example; // Get a value (default to null) // Retrieve different values from the running service. [apiInstance getSystemCommandWith:command - completionHandler: ^(getSystemCommand_200_response output, NSError* error) { - if (output) { - NSLog(@"%@", output); - } + completionHandler: ^(NSError* error) { if (error) { NSLog(@"Error: %@", error); } @@ -40919,7 +40937,7 @@ var callback = function(error, data, response) { if (error) { console.error(error); } else { - console.log('API called successfully. Returned data: ' + data); + console.log('API called successfully.'); } }; api.getSystemCommand(command, callback); @@ -40955,8 +40973,7 @@ namespace Example try { // Retrieve different values from the running service. - getSystemCommand_200_response result = apiInstance.getSystemCommand(command); - Debug.WriteLine(result); + apiInstance.getSystemCommand(command); } catch (Exception e) { Debug.Print("Exception when calling SystemCommandsApi.getSystemCommand: " + e.Message ); } @@ -40983,8 +41000,7 @@ $api_instance = new OpenAPITools\Client\Api\SystemCommandsApi(); $command = command_example; // String | Get a value try { - $result = $api_instance->getSystemCommand($command); - print_r($result); + $api_instance->getSystemCommand($command); } catch (Exception $e) { echo 'Exception when calling SystemCommandsApi->getSystemCommand: ', $e->getMessage(), PHP_EOL; } @@ -41009,8 +41025,7 @@ my $api_instance = WWW::OPenAPIClient::SystemCommandsApi->new(); my $command = command_example; # String | Get a value eval { - my $result = $api_instance->getSystemCommand(command => $command); - print Dumper($result); + $api_instance->getSystemCommand(command => $command); }; if ($@) { warn "Exception when calling SystemCommandsApi->getSystemCommand: $@\n"; @@ -41038,8 +41053,7 @@ command = command_example # String | Get a value (default to null) try: # Retrieve different values from the running service. - api_response = api_instance.get_system_command(command) - pprint(api_response) + api_instance.get_system_command(command) except ApiException as e: print("Exception when calling SystemCommandsApi->getSystemCommand: %s\n" % e) @@ -41105,7 +41119,7 @@ Get a value

- - -