Alan Colon 7 лет назад
Сommit
ed98f13e6b
100 измененных файлов с 4583 добавлено и 0 удалено
  1. 1 0
      .gitignore
  2. 23 0
      .swagger-codegen-ignore
  3. 1 0
      .swagger-codegen/VERSION
  4. 7 0
      .travis.yml
  5. 3 0
      README.md
  6. 55 0
      docs/AuthApi.md
  7. 9 0
      docs/AuthenticateUserRequest.md
  8. 8 0
      docs/AuthenticateUserResponse.md
  9. 10 0
      docs/AzureCredentials.md
  10. 10 0
      docs/DockerHub.md
  11. 9 0
      docs/DockerHubSubset.md
  12. 10 0
      docs/DockerHubUpdateRequest.md
  13. 110 0
      docs/DockerhubApi.md
  14. 17 0
      docs/Endpoint.md
  15. 9 0
      docs/EndpointAccessUpdateRequest.md
  16. 13 0
      docs/EndpointGroup.md
  17. 9 0
      docs/EndpointGroupAccessUpdateRequest.md
  18. 11 0
      docs/EndpointGroupCreateRequest.md
  19. 7 0
      docs/EndpointGroupListResponse.md
  20. 11 0
      docs/EndpointGroupUpdateRequest.md
  21. 332 0
      docs/EndpointGroupsApi.md
  22. 9 0
      docs/EndpointJobRequest.md
  23. 7 0
      docs/EndpointListResponse.md
  24. 16 0
      docs/EndpointSubset.md
  25. 17 0
      docs/EndpointUpdateRequest.md
  26. 430 0
      docs/EndpointsApi.md
  27. 8 0
      docs/GenericError.md
  28. 10 0
      docs/LDAPGroupSearchSettings.md
  29. 10 0
      docs/LDAPSearchSettings.md
  30. 15 0
      docs/LDAPSettings.md
  31. 9 0
      docs/Pair.md
  32. 12 0
      docs/PublicSettingsInspectResponse.md
  33. 332 0
      docs/RegistriesApi.md
  34. 15 0
      docs/Registry.md
  35. 9 0
      docs/RegistryAccessUpdateRequest.md
  36. 12 0
      docs/RegistryCreateRequest.md
  37. 7 0
      docs/RegistryListResponse.md
  38. 14 0
      docs/RegistrySubset.md
  39. 12 0
      docs/RegistryUpdateRequest.md
  40. 13 0
      docs/ResourceControl.md
  41. 13 0
      docs/ResourceControlCreateRequest.md
  42. 10 0
      docs/ResourceControlUpdateRequest.md
  43. 173 0
      docs/ResourceControlsApi.md
  44. 15 0
      docs/Settings.md
  45. 212 0
      docs/SettingsApi.md
  46. 9 0
      docs/SettingsBlackListedLabels.md
  47. 8 0
      docs/SettingsLDAPCheckRequest.md
  48. 15 0
      docs/SettingsUpdateRequest.md
  49. 15 0
      docs/Stack.md
  50. 17 0
      docs/StackCreateRequest.md
  51. 9 0
      docs/StackEnv.md
  52. 8 0
      docs/StackFileInspectResponse.md
  53. 7 0
      docs/StackListResponse.md
  54. 10 0
      docs/StackMigrateRequest.md
  55. 10 0
      docs/StackUpdateRequest.md
  56. 426 0
      docs/StacksApi.md
  57. 11 0
      docs/Status.md
  58. 56 0
      docs/StatusApi.md
  59. 12 0
      docs/TLSConfiguration.md
  60. 9 0
      docs/Tag.md
  61. 8 0
      docs/TagCreateRequest.md
  62. 7 0
      docs/TagListResponse.md
  63. 164 0
      docs/TagsApi.md
  64. 9 0
      docs/Team.md
  65. 8 0
      docs/TeamCreateRequest.md
  66. 7 0
      docs/TeamListResponse.md
  67. 11 0
      docs/TeamMembership.md
  68. 10 0
      docs/TeamMembershipCreateRequest.md
  69. 7 0
      docs/TeamMembershipListResponse.md
  70. 10 0
      docs/TeamMembershipUpdateRequest.md
  71. 221 0
      docs/TeamMembershipsApi.md
  72. 7 0
      docs/TeamMembershipsResponse.md
  73. 8 0
      docs/TeamUpdateRequest.md
  74. 329 0
      docs/TeamsApi.md
  75. 30 0
      docs/Template.md
  76. 29 0
      docs/TemplateCreateRequest.md
  77. 13 0
      docs/TemplateEnv.md
  78. 10 0
      docs/TemplateEnvSelect.md
  79. 7 0
      docs/TemplateListResponse.md
  80. 9 0
      docs/TemplateRepository.md
  81. 29 0
      docs/TemplateUpdateRequest.md
  82. 10 0
      docs/TemplateVolume.md
  83. 275 0
      docs/TemplatesApi.md
  84. 69 0
      docs/UploadApi.md
  85. 11 0
      docs/User.md
  86. 9 0
      docs/UserAdminInitRequest.md
  87. 10 0
      docs/UserCreateRequest.md
  88. 7 0
      docs/UserListResponse.md
  89. 7 0
      docs/UserMembershipsResponse.md
  90. 8 0
      docs/UserPasswordCheckRequest.md
  91. 8 0
      docs/UserPasswordCheckResponse.md
  92. 10 0
      docs/UserSubset.md
  93. 9 0
      docs/UserUpdateRequest.md
  94. 488 0
      docs/UsersApi.md
  95. 52 0
      git_push.sh
  96. 1 0
      mocha.opts
  97. 3 0
      package.json
  98. 2 0
      src/ApiClient.js
  99. 2 0
      src/api/AuthApi.js
  100. 2 0
      src/api/DockerhubApi.js

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+node_modules/

+ 23 - 0
.swagger-codegen-ignore

@@ -0,0 +1,23 @@
+# Swagger Codegen Ignore
+# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md

+ 1 - 0
.swagger-codegen/VERSION

@@ -0,0 +1 @@
+2.4.0

+ 7 - 0
.travis.yml

@@ -0,0 +1,7 @@
+language: node_js
+node_js:
+  - "6"
+  - "6.1"
+  - "5"
+  - "5.11"
+

Разница между файлами не показана из-за своего большого размера
+ 3 - 0
README.md


+ 55 - 0
docs/AuthApi.md

@@ -0,0 +1,55 @@
+# PortainerApi.AuthApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**authenticateUser**](AuthApi.md#authenticateUser) | **POST** /auth | Authenticate a user
+
+
+<a name="authenticateUser"></a>
+# **authenticateUser**
+> AuthenticateUserResponse authenticateUser(body)
+
+Authenticate a user
+
+Use this endpoint to authenticate against Portainer using a username and password. **Access policy**: public 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+
+var apiInstance = new PortainerApi.AuthApi();
+
+var body = new PortainerApi.AuthenticateUserRequest(); // AuthenticateUserRequest | Credentials used for authentication
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.authenticateUser(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**AuthenticateUserRequest**](AuthenticateUserRequest.md)| Credentials used for authentication | 
+
+### Return type
+
+[**AuthenticateUserResponse**](AuthenticateUserResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 9 - 0
docs/AuthenticateUserRequest.md

@@ -0,0 +1,9 @@
+# PortainerApi.AuthenticateUserRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**username** | **String** | Username | 
+**password** | **String** | Password | 
+
+

+ 8 - 0
docs/AuthenticateUserResponse.md

@@ -0,0 +1,8 @@
+# PortainerApi.AuthenticateUserResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**jwt** | **String** | JWT token used to authenticate against the API | [optional] 
+
+

+ 10 - 0
docs/AzureCredentials.md

@@ -0,0 +1,10 @@
+# PortainerApi.AzureCredentials
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**applicationID** | **String** | Azure application ID | [optional] 
+**tenantID** | **String** | Azure tenant ID | [optional] 
+**authenticationKey** | **String** | Azure authentication key | [optional] 
+
+

+ 10 - 0
docs/DockerHub.md

@@ -0,0 +1,10 @@
+# PortainerApi.DockerHub
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authentication** | **Boolean** | Is authentication against DockerHub enabled | [optional] 
+**username** | **String** | Username used to authenticate against the DockerHub | [optional] 
+**password** | **String** | Password used to authenticate against the DockerHub | [optional] 
+
+

+ 9 - 0
docs/DockerHubSubset.md

@@ -0,0 +1,9 @@
+# PortainerApi.DockerHubSubset
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authentication** | **Boolean** | Is authentication against DockerHub enabled | [optional] 
+**username** | **String** | Username used to authenticate against the DockerHub | [optional] 
+
+

+ 10 - 0
docs/DockerHubUpdateRequest.md

@@ -0,0 +1,10 @@
+# PortainerApi.DockerHubUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authentication** | **Boolean** | Enable authentication against DockerHub | 
+**username** | **String** | Username used to authenticate against the DockerHub | 
+**password** | **String** | Password used to authenticate against the DockerHub | 
+
+

+ 110 - 0
docs/DockerhubApi.md

@@ -0,0 +1,110 @@
+# PortainerApi.DockerhubApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**dockerHubInspect**](DockerhubApi.md#dockerHubInspect) | **GET** /dockerhub | Retrieve DockerHub information
+[**dockerHubUpdate**](DockerhubApi.md#dockerHubUpdate) | **PUT** /dockerhub | Update DockerHub information
+
+
+<a name="dockerHubInspect"></a>
+# **dockerHubInspect**
+> DockerHubSubset dockerHubInspect()
+
+Retrieve DockerHub information
+
+Use this endpoint to retrieve the information used to connect to the DockerHub **Access policy**: authenticated 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.DockerhubApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.dockerHubInspect(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**DockerHubSubset**](DockerHubSubset.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="dockerHubUpdate"></a>
+# **dockerHubUpdate**
+> DockerHub dockerHubUpdate(body)
+
+Update DockerHub information
+
+Use this endpoint to update the information used to connect to the DockerHub **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.DockerhubApi();
+
+var body = new PortainerApi.DockerHubUpdateRequest(); // DockerHubUpdateRequest | DockerHub information
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.dockerHubUpdate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**DockerHubUpdateRequest**](DockerHubUpdateRequest.md)| DockerHub information | 
+
+### Return type
+
+[**DockerHub**](DockerHub.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 17 - 0
docs/Endpoint.md

@@ -0,0 +1,17 @@
+# PortainerApi.Endpoint
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | Endpoint identifier | [optional] 
+**name** | **String** | Endpoint name | [optional] 
+**type** | **Number** | Endpoint environment type. 1 for a Docker environment, 2 for an agent on Docker environment or 3 for an Azure environment. | [optional] 
+**URL** | **String** | URL or IP address of the Docker host associated to this endpoint | [optional] 
+**publicURL** | **String** | URL or IP address where exposed containers will be reachable | [optional] 
+**groupID** | **Number** | Endpoint group identifier | [optional] 
+**authorizedUsers** | **[Number]** | List of user identifiers authorized to connect to this endpoint | [optional] 
+**authorizedTeams** | **[Number]** | List of team identifiers authorized to connect to this endpoint | [optional] 
+**tLSConfig** | [**TLSConfiguration**](TLSConfiguration.md) |  | [optional] 
+**azureCredentials** | [**AzureCredentials**](AzureCredentials.md) |  | [optional] 
+
+

+ 9 - 0
docs/EndpointAccessUpdateRequest.md

@@ -0,0 +1,9 @@
+# PortainerApi.EndpointAccessUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authorizedUsers** | **[Number]** | List of user identifiers authorized to connect to this endpoint | [optional] 
+**authorizedTeams** | **[Number]** | List of team identifiers authorized to connect to this endpoint | [optional] 
+
+

+ 13 - 0
docs/EndpointGroup.md

@@ -0,0 +1,13 @@
+# PortainerApi.EndpointGroup
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | Endpoint group identifier | [optional] 
+**name** | **String** | Endpoint group name | [optional] 
+**description** | **String** | Endpoint group description | [optional] 
+**authorizedUsers** | **[Number]** | List of user identifiers authorized to connect to this endpoint group. Will be inherited by endpoints that are part of the group | [optional] 
+**authorizedTeams** | **[Number]** | List of team identifiers authorized to connect to this endpoint. Will be inherited by endpoints that are part of the group | [optional] 
+**labels** | [**[Pair]**](Pair.md) |  | [optional] 
+
+

+ 9 - 0
docs/EndpointGroupAccessUpdateRequest.md

@@ -0,0 +1,9 @@
+# PortainerApi.EndpointGroupAccessUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authorizedUsers** | **[Number]** | List of user identifiers authorized to connect to this endpoint | [optional] 
+**authorizedTeams** | **[Number]** | List of team identifiers authorized to connect to this endpoint | [optional] 
+
+

+ 11 - 0
docs/EndpointGroupCreateRequest.md

@@ -0,0 +1,11 @@
+# PortainerApi.EndpointGroupCreateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Endpoint group name | 
+**description** | **String** | Endpoint group description | [optional] 
+**labels** | [**[Pair]**](Pair.md) |  | [optional] 
+**associatedEndpoints** | **[Number]** | List of endpoint identifiers that will be part of this group | [optional] 
+
+

+ 7 - 0
docs/EndpointGroupListResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.EndpointGroupListResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 11 - 0
docs/EndpointGroupUpdateRequest.md

@@ -0,0 +1,11 @@
+# PortainerApi.EndpointGroupUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Endpoint group name | [optional] 
+**description** | **String** | Endpoint group description | [optional] 
+**labels** | [**[Pair]**](Pair.md) |  | [optional] 
+**associatedEndpoints** | **[Number]** | List of endpoint identifiers that will be part of this group | [optional] 
+
+

+ 332 - 0
docs/EndpointGroupsApi.md

@@ -0,0 +1,332 @@
+# PortainerApi.EndpointGroupsApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**endpointGroupAccessUpdate**](EndpointGroupsApi.md#endpointGroupAccessUpdate) | **PUT** /endpoint_groups/{id}/access | Manage accesses to an endpoint group
+[**endpointGroupCreate**](EndpointGroupsApi.md#endpointGroupCreate) | **POST** /endpoint_groups | Create a new endpoint
+[**endpointGroupDelete**](EndpointGroupsApi.md#endpointGroupDelete) | **DELETE** /endpoint_groups/{id} | Remove an endpoint group
+[**endpointGroupInspect**](EndpointGroupsApi.md#endpointGroupInspect) | **GET** /endpoint_groups/{id} | Inspect an endpoint group
+[**endpointGroupList**](EndpointGroupsApi.md#endpointGroupList) | **GET** /endpoint_groups | List endpoint groups
+[**endpointGroupUpdate**](EndpointGroupsApi.md#endpointGroupUpdate) | **PUT** /endpoint_groups/{id} | Update an endpoint group
+
+
+<a name="endpointGroupAccessUpdate"></a>
+# **endpointGroupAccessUpdate**
+> EndpointGroup endpointGroupAccessUpdate(id, body)
+
+Manage accesses to an endpoint group
+
+Manage user and team accesses to an endpoint group. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointGroupsApi();
+
+var id = 56; // Number | EndpointGroup identifier
+
+var body = new PortainerApi.EndpointGroupAccessUpdateRequest(); // EndpointGroupAccessUpdateRequest | Authorizations details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointGroupAccessUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| EndpointGroup identifier | 
+ **body** | [**EndpointGroupAccessUpdateRequest**](EndpointGroupAccessUpdateRequest.md)| Authorizations details | 
+
+### Return type
+
+[**EndpointGroup**](EndpointGroup.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="endpointGroupCreate"></a>
+# **endpointGroupCreate**
+> EndpointGroup endpointGroupCreate(body)
+
+Create a new endpoint
+
+Create a new endpoint group. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointGroupsApi();
+
+var body = new PortainerApi.EndpointGroupCreateRequest(); // EndpointGroupCreateRequest | Registry details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointGroupCreate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**EndpointGroupCreateRequest**](EndpointGroupCreateRequest.md)| Registry details | 
+
+### Return type
+
+[**EndpointGroup**](EndpointGroup.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="endpointGroupDelete"></a>
+# **endpointGroupDelete**
+> endpointGroupDelete(id)
+
+Remove an endpoint group
+
+Remove an endpoint group. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointGroupsApi();
+
+var id = 56; // Number | EndpointGroup identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.endpointGroupDelete(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| EndpointGroup identifier | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="endpointGroupInspect"></a>
+# **endpointGroupInspect**
+> EndpointGroup endpointGroupInspect(id)
+
+Inspect an endpoint group
+
+Retrieve details abount an endpoint group. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointGroupsApi();
+
+var id = 56; // Number | Endpoint group identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointGroupInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Endpoint group identifier | 
+
+### Return type
+
+[**EndpointGroup**](EndpointGroup.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="endpointGroupList"></a>
+# **endpointGroupList**
+> EndpointGroupListResponse endpointGroupList()
+
+List endpoint groups
+
+List all endpoint groups based on the current user authorizations. Will return all endpoint groups if using an administrator account otherwise it will only return authorized endpoint groups. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointGroupsApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointGroupList(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**EndpointGroupListResponse**](EndpointGroupListResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="endpointGroupUpdate"></a>
+# **endpointGroupUpdate**
+> EndpointGroup endpointGroupUpdate(id, body)
+
+Update an endpoint group
+
+Update an endpoint group. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointGroupsApi();
+
+var id = 56; // Number | EndpointGroup identifier
+
+var body = new PortainerApi.EndpointGroupUpdateRequest(); // EndpointGroupUpdateRequest | EndpointGroup details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointGroupUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| EndpointGroup identifier | 
+ **body** | [**EndpointGroupUpdateRequest**](EndpointGroupUpdateRequest.md)| EndpointGroup details | 
+
+### Return type
+
+[**EndpointGroup**](EndpointGroup.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 9 - 0
docs/EndpointJobRequest.md

@@ -0,0 +1,9 @@
+# PortainerApi.EndpointJobRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**image** | **String** | Container image which will be used to execute the job | 
+**fileContent** | **String** | Content of the job script | 
+
+

+ 7 - 0
docs/EndpointListResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.EndpointListResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 16 - 0
docs/EndpointSubset.md

@@ -0,0 +1,16 @@
+# PortainerApi.EndpointSubset
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | Endpoint identifier | [optional] 
+**name** | **String** | Endpoint name | [optional] 
+**type** | **Number** | Endpoint environment type. 1 for a Docker environment, 2 for an agent on Docker environment, 3 for an Azure environment. | [optional] 
+**URL** | **String** | URL or IP address of the Docker host associated to this endpoint | [optional] 
+**publicURL** | **String** | URL or IP address where exposed containers will be reachable | [optional] 
+**groupID** | **Number** | Endpoint group identifier | [optional] 
+**authorizedUsers** | **[Number]** | List of user identifiers authorized to connect to this endpoint | [optional] 
+**authorizedTeams** | **[Number]** | List of team identifiers authorized to connect to this endpoint | [optional] 
+**tLSConfig** | [**TLSConfiguration**](TLSConfiguration.md) |  | [optional] 
+
+

+ 17 - 0
docs/EndpointUpdateRequest.md

@@ -0,0 +1,17 @@
+# PortainerApi.EndpointUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Name that will be used to identify this endpoint | [optional] 
+**URL** | **String** | URL or IP address of a Docker host | [optional] 
+**publicURL** | **String** | URL or IP address where exposed containers will be reachable. Defaults to URL if not specified | [optional] 
+**groupID** | **Number** | Group identifier | [optional] 
+**TLS** | **Boolean** | Require TLS to connect against this endpoint | [optional] 
+**tLSSkipVerify** | **Boolean** | Skip server verification when using TLS | [optional] 
+**tLSSkipClientVerify** | **Boolean** | Skip client verification when using TLS | [optional] 
+**applicationID** | **String** | Azure application ID | [optional] 
+**tenantID** | **String** | Azure tenant ID | [optional] 
+**authenticationKey** | **String** | Azure authentication key | [optional] 
+
+

+ 430 - 0
docs/EndpointsApi.md

@@ -0,0 +1,430 @@
+# PortainerApi.EndpointsApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**endpointAccessUpdate**](EndpointsApi.md#endpointAccessUpdate) | **PUT** /endpoints/{id}/access | Manage accesses to an endpoint
+[**endpointCreate**](EndpointsApi.md#endpointCreate) | **POST** /endpoints | Create a new endpoint
+[**endpointDelete**](EndpointsApi.md#endpointDelete) | **DELETE** /endpoints/{id} | Remove an endpoint
+[**endpointInspect**](EndpointsApi.md#endpointInspect) | **GET** /endpoints/{id} | Inspect an endpoint
+[**endpointJob**](EndpointsApi.md#endpointJob) | **POST** /endpoints/{id}/job | Execute a job on the endpoint host
+[**endpointList**](EndpointsApi.md#endpointList) | **GET** /endpoints | List endpoints
+[**endpointUpdate**](EndpointsApi.md#endpointUpdate) | **PUT** /endpoints/{id} | Update an endpoint
+
+
+<a name="endpointAccessUpdate"></a>
+# **endpointAccessUpdate**
+> Endpoint endpointAccessUpdate(id, body)
+
+Manage accesses to an endpoint
+
+Manage user and team accesses to an endpoint. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointsApi();
+
+var id = 56; // Number | Endpoint identifier
+
+var body = new PortainerApi.EndpointAccessUpdateRequest(); // EndpointAccessUpdateRequest | Authorizations details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointAccessUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Endpoint identifier | 
+ **body** | [**EndpointAccessUpdateRequest**](EndpointAccessUpdateRequest.md)| Authorizations details | 
+
+### Return type
+
+[**Endpoint**](Endpoint.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="endpointCreate"></a>
+# **endpointCreate**
+> Endpoint endpointCreate(name, endpointType, opts)
+
+Create a new endpoint
+
+Create a new endpoint that will be used to manage a Docker environment. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointsApi();
+
+var name = "name_example"; // String | Name that will be used to identify this endpoint (example: my-endpoint)
+
+var endpointType = 56; // Number | Environment type. Value must be one of: 1 (Docker environment), 2 (Agent environment) or 3 (Azure environment)
+
+var opts = { 
+  'URL': "URL_example", // String | URL or IP address of a Docker host (example: docker.mydomain.tld:2375). Defaults to local if not specified (Linux: /var/run/docker.sock, Windows: //./pipe/docker_engine)
+  'publicURL': "publicURL_example", // String | URL or IP address where exposed containers will be reachable. Defaults to URL if not specified (example: docker.mydomain.tld:2375)
+  'groupID': "groupID_example", // String | Endpoint group identifier. If not specified will default to 1 (unassigned).
+  'TLS': "TLS_example", // String | Require TLS to connect against this endpoint (example: true)
+  'tLSSkipVerify': "tLSSkipVerify_example", // String | Skip server verification when using TLS (example: false)
+  'tLSSkipClientVerify': "tLSSkipClientVerify_example", // String | Skip client verification when using TLS (example: false)
+  'tLSCACertFile': "/path/to/file.txt", // File | TLS CA certificate file
+  'tLSCertFile': "/path/to/file.txt", // File | TLS client certificate file
+  'tLSKeyFile': "/path/to/file.txt", // File | TLS client key file
+  'azureApplicationID': "azureApplicationID_example", // String | Azure application ID. Required if endpoint type is set to 3
+  'azureTenantID': "azureTenantID_example", // String | Azure tenant ID. Required if endpoint type is set to 3
+  'azureAuthenticationKey': "azureAuthenticationKey_example" // String | Azure authentication key. Required if endpoint type is set to 3
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointCreate(name, endpointType, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **name** | **String**| Name that will be used to identify this endpoint (example: my-endpoint) | 
+ **endpointType** | **Number**| Environment type. Value must be one of: 1 (Docker environment), 2 (Agent environment) or 3 (Azure environment) | 
+ **URL** | **String**| URL or IP address of a Docker host (example: docker.mydomain.tld:2375). Defaults to local if not specified (Linux: /var/run/docker.sock, Windows: //./pipe/docker_engine) | [optional] 
+ **publicURL** | **String**| URL or IP address where exposed containers will be reachable. Defaults to URL if not specified (example: docker.mydomain.tld:2375) | [optional] 
+ **groupID** | **String**| Endpoint group identifier. If not specified will default to 1 (unassigned). | [optional] 
+ **TLS** | **String**| Require TLS to connect against this endpoint (example: true) | [optional] 
+ **tLSSkipVerify** | **String**| Skip server verification when using TLS (example: false) | [optional] 
+ **tLSSkipClientVerify** | **String**| Skip client verification when using TLS (example: false) | [optional] 
+ **tLSCACertFile** | **File**| TLS CA certificate file | [optional] 
+ **tLSCertFile** | **File**| TLS client certificate file | [optional] 
+ **tLSKeyFile** | **File**| TLS client key file | [optional] 
+ **azureApplicationID** | **String**| Azure application ID. Required if endpoint type is set to 3 | [optional] 
+ **azureTenantID** | **String**| Azure tenant ID. Required if endpoint type is set to 3 | [optional] 
+ **azureAuthenticationKey** | **String**| Azure authentication key. Required if endpoint type is set to 3 | [optional] 
+
+### Return type
+
+[**Endpoint**](Endpoint.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
+<a name="endpointDelete"></a>
+# **endpointDelete**
+> endpointDelete(id)
+
+Remove an endpoint
+
+Remove an endpoint. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointsApi();
+
+var id = 56; // Number | Endpoint identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.endpointDelete(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Endpoint identifier | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="endpointInspect"></a>
+# **endpointInspect**
+> Endpoint endpointInspect(id)
+
+Inspect an endpoint
+
+Retrieve details abount an endpoint. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointsApi();
+
+var id = 56; // Number | Endpoint identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Endpoint identifier | 
+
+### Return type
+
+[**Endpoint**](Endpoint.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="endpointJob"></a>
+# **endpointJob**
+> Endpoint endpointJob(id, method, nodeName, body, opts)
+
+Execute a job on the endpoint host
+
+Execute a job (script) on the underlying host of the endpoint. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointsApi();
+
+var id = 56; // Number | Endpoint identifier
+
+var method = "method_example"; // String | Job execution method. Possible values: file or string.
+
+var nodeName = "nodeName_example"; // String | Optional. Hostname of a node when targeting a Portainer agent cluster.
+
+var body = new PortainerApi.EndpointJobRequest(); // EndpointJobRequest | Job details. Required when method equals string.
+
+var opts = { 
+  'image': "image_example", // String | Container image which will be used to execute the job. Required when method equals file.
+  'file': "/path/to/file.txt" // File | Job script file. Required when method equals file.
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointJob(id, method, nodeName, body, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Endpoint identifier | 
+ **method** | **String**| Job execution method. Possible values: file or string. | 
+ **nodeName** | **String**| Optional. Hostname of a node when targeting a Portainer agent cluster. | 
+ **body** | [**EndpointJobRequest**](EndpointJobRequest.md)| Job details. Required when method equals string. | 
+ **image** | **String**| Container image which will be used to execute the job. Required when method equals file. | [optional] 
+ **file** | **File**| Job script file. Required when method equals file. | [optional] 
+
+### Return type
+
+[**Endpoint**](Endpoint.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="endpointList"></a>
+# **endpointList**
+> EndpointListResponse endpointList()
+
+List endpoints
+
+List all endpoints based on the current user authorizations. Will return all endpoints if using an administrator account otherwise it will only return authorized endpoints. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointsApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.endpointList(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**EndpointListResponse**](EndpointListResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="endpointUpdate"></a>
+# **endpointUpdate**
+> endpointUpdate(id, body)
+
+Update an endpoint
+
+Update an endpoint. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.EndpointsApi();
+
+var id = 56; // Number | Endpoint identifier
+
+var body = new PortainerApi.EndpointUpdateRequest(); // EndpointUpdateRequest | Endpoint details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.endpointUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Endpoint identifier | 
+ **body** | [**EndpointUpdateRequest**](EndpointUpdateRequest.md)| Endpoint details | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 8 - 0
docs/GenericError.md

@@ -0,0 +1,8 @@
+# PortainerApi.GenericError
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**err** | **String** | Error message | [optional] 
+
+

+ 10 - 0
docs/LDAPGroupSearchSettings.md

@@ -0,0 +1,10 @@
+# PortainerApi.LDAPGroupSearchSettings
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**groupBaseDN** | **String** | The distinguished name of the element from which the LDAP server will search for groups. | [optional] 
+**groupFilter** | **String** | The LDAP search filter used to select group elements, optional. | [optional] 
+**groupAttribute** | **String** | LDAP attribute which denotes the group membership. | [optional] 
+
+

+ 10 - 0
docs/LDAPSearchSettings.md

@@ -0,0 +1,10 @@
+# PortainerApi.LDAPSearchSettings
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**baseDN** | **String** | The distinguished name of the element from which the LDAP server will search for users | [optional] 
+**filter** | **String** | Optional LDAP search filter used to select user elements | [optional] 
+**userNameAttribute** | **String** | LDAP attribute which denotes the username | [optional] 
+
+

+ 15 - 0
docs/LDAPSettings.md

@@ -0,0 +1,15 @@
+# PortainerApi.LDAPSettings
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**readerDN** | **String** | Account that will be used to search for users | [optional] 
+**password** | **String** | Password of the account that will be used to search users | [optional] 
+**URL** | **String** | URL or IP address of the LDAP server | [optional] 
+**tLSConfig** | [**TLSConfiguration**](TLSConfiguration.md) |  | [optional] 
+**startTLS** | **Boolean** | Whether LDAP connection should use StartTLS | [optional] 
+**searchSettings** | [**[LDAPSearchSettings]**](LDAPSearchSettings.md) |  | [optional] 
+**groupSearchSettings** | [**[LDAPGroupSearchSettings]**](LDAPGroupSearchSettings.md) |  | [optional] 
+**autoCreateUsers** | **Boolean** | Automatically provision users and assign them to matching LDAP group names | [optional] 
+
+

+ 9 - 0
docs/Pair.md

@@ -0,0 +1,9 @@
+# PortainerApi.Pair
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** |  | [optional] 
+**value** | **String** |  | [optional] 
+
+

+ 12 - 0
docs/PublicSettingsInspectResponse.md

@@ -0,0 +1,12 @@
+# PortainerApi.PublicSettingsInspectResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**logoURL** | **String** | URL to a logo that will be displayed on the login page as well as on top of the sidebar. Will use default Portainer logo when value is empty string | [optional] 
+**displayExternalContributors** | **Boolean** | Whether to display or not external templates contributions as sub-menus in the UI. | [optional] 
+**authenticationMethod** | **Number** | Active authentication method for the Portainer instance. Valid values are: 1 for managed or 2 for LDAP. | [optional] 
+**allowBindMountsForRegularUsers** | **Boolean** | Whether non-administrator should be able to use bind mounts when creating containers | [optional] 
+**allowPrivilegedModeForRegularUsers** | **Boolean** | Whether non-administrator should be able to use privileged mode when creating containers | [optional] 
+
+

+ 332 - 0
docs/RegistriesApi.md

@@ -0,0 +1,332 @@
+# PortainerApi.RegistriesApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**registryAccessUpdate**](RegistriesApi.md#registryAccessUpdate) | **PUT** /registries/{id}/access | Manage accesses to a registry
+[**registryCreate**](RegistriesApi.md#registryCreate) | **POST** /registries | Create a new registry
+[**registryDelete**](RegistriesApi.md#registryDelete) | **DELETE** /registries/{id} | Remove a registry
+[**registryInspect**](RegistriesApi.md#registryInspect) | **GET** /registries/{id} | Inspect a registry
+[**registryList**](RegistriesApi.md#registryList) | **GET** /registries | List registries
+[**registryUpdate**](RegistriesApi.md#registryUpdate) | **PUT** /registries/{id} | Update a registry
+
+
+<a name="registryAccessUpdate"></a>
+# **registryAccessUpdate**
+> Registry registryAccessUpdate(id, body)
+
+Manage accesses to a registry
+
+Manage user and team accesses to a registry. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.RegistriesApi();
+
+var id = 56; // Number | Registry identifier
+
+var body = new PortainerApi.RegistryAccessUpdateRequest(); // RegistryAccessUpdateRequest | Authorizations details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.registryAccessUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Registry identifier | 
+ **body** | [**RegistryAccessUpdateRequest**](RegistryAccessUpdateRequest.md)| Authorizations details | 
+
+### Return type
+
+[**Registry**](Registry.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="registryCreate"></a>
+# **registryCreate**
+> Registry registryCreate(body)
+
+Create a new registry
+
+Create a new registry. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.RegistriesApi();
+
+var body = new PortainerApi.RegistryCreateRequest(); // RegistryCreateRequest | Registry details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.registryCreate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**RegistryCreateRequest**](RegistryCreateRequest.md)| Registry details | 
+
+### Return type
+
+[**Registry**](Registry.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="registryDelete"></a>
+# **registryDelete**
+> registryDelete(id)
+
+Remove a registry
+
+Remove a registry. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.RegistriesApi();
+
+var id = 56; // Number | Registry identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.registryDelete(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Registry identifier | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="registryInspect"></a>
+# **registryInspect**
+> Registry registryInspect(id)
+
+Inspect a registry
+
+Retrieve details about a registry. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.RegistriesApi();
+
+var id = 56; // Number | Registry identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.registryInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Registry identifier | 
+
+### Return type
+
+[**Registry**](Registry.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="registryList"></a>
+# **registryList**
+> RegistryListResponse registryList()
+
+List registries
+
+List all registries based on the current user authorizations. Will return all registries if using an administrator account otherwise it will only return authorized registries. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.RegistriesApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.registryList(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**RegistryListResponse**](RegistryListResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="registryUpdate"></a>
+# **registryUpdate**
+> Registry registryUpdate(id, body)
+
+Update a registry
+
+Update a registry. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.RegistriesApi();
+
+var id = 56; // Number | Registry identifier
+
+var body = new PortainerApi.RegistryUpdateRequest(); // RegistryUpdateRequest | Registry details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.registryUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Registry identifier | 
+ **body** | [**RegistryUpdateRequest**](RegistryUpdateRequest.md)| Registry details | 
+
+### Return type
+
+[**Registry**](Registry.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 15 - 0
docs/Registry.md

@@ -0,0 +1,15 @@
+# PortainerApi.Registry
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | Registry identifier | [optional] 
+**name** | **String** | Registry name | [optional] 
+**URL** | **String** | URL or IP address of the Docker registry | [optional] 
+**authentication** | **Boolean** | Is authentication against this registry enabled | [optional] 
+**username** | **String** | Username used to authenticate against this registry | [optional] 
+**password** | **String** | Password used to authenticate against this registry | [optional] 
+**authorizedUsers** | **[Number]** | List of user identifiers authorized to use this registry | [optional] 
+**authorizedTeams** | **[Number]** | List of team identifiers authorized to use this registry | [optional] 
+
+

+ 9 - 0
docs/RegistryAccessUpdateRequest.md

@@ -0,0 +1,9 @@
+# PortainerApi.RegistryAccessUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authorizedUsers** | **[Number]** | List of user identifiers authorized to use thi registry | [optional] 
+**authorizedTeams** | **[Number]** | List of team identifiers authorized to use thi registry | [optional] 
+
+

+ 12 - 0
docs/RegistryCreateRequest.md

@@ -0,0 +1,12 @@
+# PortainerApi.RegistryCreateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Name that will be used to identify this registry | 
+**URL** | **String** | URL or IP address of the Docker registry | 
+**authentication** | **Boolean** | Is authentication against this registry enabled | 
+**username** | **String** | Username used to authenticate against this registry | 
+**password** | **String** | Password used to authenticate against this registry | 
+
+

+ 7 - 0
docs/RegistryListResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.RegistryListResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 14 - 0
docs/RegistrySubset.md

@@ -0,0 +1,14 @@
+# PortainerApi.RegistrySubset
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | Registry identifier | [optional] 
+**name** | **String** | Registry name | [optional] 
+**URL** | **String** | URL or IP address of the Docker registry | [optional] 
+**authentication** | **Boolean** | Is authentication against this registry enabled | [optional] 
+**username** | **String** | Username used to authenticate against this registry | [optional] 
+**authorizedUsers** | **[Number]** | List of user identifiers authorized to use this registry | [optional] 
+**authorizedTeams** | **[Number]** | List of team identifiers authorized to use this registry | [optional] 
+
+

+ 12 - 0
docs/RegistryUpdateRequest.md

@@ -0,0 +1,12 @@
+# PortainerApi.RegistryUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Name that will be used to identify this registry | 
+**URL** | **String** | URL or IP address of the Docker registry | 
+**authentication** | **Boolean** | Is authentication against this registry enabled | [optional] 
+**username** | **String** | Username used to authenticate against this registry | [optional] 
+**password** | **String** | Password used to authenticate against this registry | [optional] 
+
+

+ 13 - 0
docs/ResourceControl.md

@@ -0,0 +1,13 @@
+# PortainerApi.ResourceControl
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**resourceID** | **String** | Docker resource identifier on which access control will be applied. In the case of a resource control applied to a stack, use the stack name as identifier | [optional] 
+**type** | **String** | Type of Docker resource. Valid values are: container, volume service, secret, config or stack | [optional] 
+**_public** | **Boolean** | Permit access to the associated resource to any user | [optional] 
+**users** | **[Number]** | List of user identifiers with access to the associated resource | [optional] 
+**teams** | **[Number]** | List of team identifiers with access to the associated resource | [optional] 
+**subResourceIDs** | **[String]** | List of Docker resources that will inherit this access control | [optional] 
+
+

+ 13 - 0
docs/ResourceControlCreateRequest.md

@@ -0,0 +1,13 @@
+# PortainerApi.ResourceControlCreateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**resourceID** | **String** | Docker resource identifier on which access control will be applied. In the case of a resource control applied to a stack, use the stack name as identifier | 
+**type** | **String** | Type of Docker resource. Valid values are: container, volume service, secret, config or stack | 
+**_public** | **Boolean** | Permit access to the associated resource to any user | [optional] 
+**users** | **[Number]** | List of user identifiers with access to the associated resource | [optional] 
+**teams** | **[Number]** | List of team identifiers with access to the associated resource | [optional] 
+**subResourceIDs** | **[String]** | List of Docker resources that will inherit this access control | [optional] 
+
+

+ 10 - 0
docs/ResourceControlUpdateRequest.md

@@ -0,0 +1,10 @@
+# PortainerApi.ResourceControlUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**_public** | **Boolean** | Permit access to the associated resource to any user | [optional] 
+**users** | **[Number]** | List of user identifiers with access to the associated resource | [optional] 
+**teams** | **[Number]** | List of team identifiers with access to the associated resource | [optional] 
+
+

+ 173 - 0
docs/ResourceControlsApi.md

@@ -0,0 +1,173 @@
+# PortainerApi.ResourceControlsApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**resourceControlCreate**](ResourceControlsApi.md#resourceControlCreate) | **POST** /resource_controls | Create a new resource control
+[**resourceControlDelete**](ResourceControlsApi.md#resourceControlDelete) | **DELETE** /resource_controls/{id} | Remove a resource control
+[**resourceControlUpdate**](ResourceControlsApi.md#resourceControlUpdate) | **PUT** /resource_controls/{id} | Update a resource control
+
+
+<a name="resourceControlCreate"></a>
+# **resourceControlCreate**
+> ResourceControl resourceControlCreate(body)
+
+Create a new resource control
+
+Create a new resource control to restrict access to a Docker resource. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.ResourceControlsApi();
+
+var body = new PortainerApi.ResourceControlCreateRequest(); // ResourceControlCreateRequest | Resource control details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.resourceControlCreate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**ResourceControlCreateRequest**](ResourceControlCreateRequest.md)| Resource control details | 
+
+### Return type
+
+[**ResourceControl**](ResourceControl.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="resourceControlDelete"></a>
+# **resourceControlDelete**
+> resourceControlDelete(id)
+
+Remove a resource control
+
+Remove a resource control. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.ResourceControlsApi();
+
+var id = 56; // Number | Resource control identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.resourceControlDelete(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Resource control identifier | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="resourceControlUpdate"></a>
+# **resourceControlUpdate**
+> ResourceControl resourceControlUpdate(id, body)
+
+Update a resource control
+
+Update a resource control. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.ResourceControlsApi();
+
+var id = 56; // Number | Resource control identifier
+
+var body = new PortainerApi.ResourceControlUpdateRequest(); // ResourceControlUpdateRequest | Resource control details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.resourceControlUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Resource control identifier | 
+ **body** | [**ResourceControlUpdateRequest**](ResourceControlUpdateRequest.md)| Resource control details | 
+
+### Return type
+
+[**ResourceControl**](ResourceControl.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 15 - 0
docs/Settings.md

@@ -0,0 +1,15 @@
+# PortainerApi.Settings
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**templatesURL** | **String** | URL to the templates that will be displayed in the UI when navigating to App Templates | [optional] 
+**logoURL** | **String** | URL to a logo that will be displayed on the login page as well as on top of the sidebar. Will use default Portainer logo when value is empty string | [optional] 
+**blackListedLabels** | [**[SettingsBlackListedLabels]**](SettingsBlackListedLabels.md) | A list of label name &amp; value that will be used to hide containers when querying containers | [optional] 
+**displayExternalContributors** | **Boolean** | Whether to display or not external templates contributions as sub-menus in the UI. | [optional] 
+**authenticationMethod** | **Number** | Active authentication method for the Portainer instance. Valid values are: 1 for managed or 2 for LDAP. | [optional] 
+**lDAPSettings** | [**LDAPSettings**](LDAPSettings.md) |  | [optional] 
+**allowBindMountsForRegularUsers** | **Boolean** | Whether non-administrator should be able to use bind mounts when creating containers | [optional] 
+**allowPrivilegedModeForRegularUsers** | **Boolean** | Whether non-administrator should be able to use privileged mode when creating containers | [optional] 
+
+

+ 212 - 0
docs/SettingsApi.md

@@ -0,0 +1,212 @@
+# PortainerApi.SettingsApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**publicSettingsInspect**](SettingsApi.md#publicSettingsInspect) | **GET** /settings/public | Retrieve Portainer public settings
+[**settingsInspect**](SettingsApi.md#settingsInspect) | **GET** /settings | Retrieve Portainer settings
+[**settingsLDAPCheck**](SettingsApi.md#settingsLDAPCheck) | **PUT** /settings/authentication/checkLDAP | Test LDAP connectivity
+[**settingsUpdate**](SettingsApi.md#settingsUpdate) | **PUT** /settings | Update Portainer settings
+
+
+<a name="publicSettingsInspect"></a>
+# **publicSettingsInspect**
+> PublicSettingsInspectResponse publicSettingsInspect()
+
+Retrieve Portainer public settings
+
+Retrieve public settings. Returns a small set of settings that are not reserved to administrators only. **Access policy**: public 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.SettingsApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.publicSettingsInspect(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**PublicSettingsInspectResponse**](PublicSettingsInspectResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="settingsInspect"></a>
+# **settingsInspect**
+> Settings settingsInspect()
+
+Retrieve Portainer settings
+
+Retrieve Portainer settings. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.SettingsApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.settingsInspect(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**Settings**](Settings.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="settingsLDAPCheck"></a>
+# **settingsLDAPCheck**
+> settingsLDAPCheck(body)
+
+Test LDAP connectivity
+
+Test LDAP connectivity using LDAP details. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.SettingsApi();
+
+var body = new PortainerApi.SettingsLDAPCheckRequest(); // SettingsLDAPCheckRequest | LDAP settings
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.settingsLDAPCheck(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SettingsLDAPCheckRequest**](SettingsLDAPCheckRequest.md)| LDAP settings | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="settingsUpdate"></a>
+# **settingsUpdate**
+> Settings settingsUpdate(body)
+
+Update Portainer settings
+
+Update Portainer settings. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.SettingsApi();
+
+var body = new PortainerApi.SettingsUpdateRequest(); // SettingsUpdateRequest | New settings
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.settingsUpdate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SettingsUpdateRequest**](SettingsUpdateRequest.md)| New settings | 
+
+### Return type
+
+[**Settings**](Settings.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 9 - 0
docs/SettingsBlackListedLabels.md

@@ -0,0 +1,9 @@
+# PortainerApi.SettingsBlackListedLabels
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** |  | [optional] 
+**value** | **String** |  | [optional] 
+
+

+ 8 - 0
docs/SettingsLDAPCheckRequest.md

@@ -0,0 +1,8 @@
+# PortainerApi.SettingsLDAPCheckRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**lDAPSettings** | [**LDAPSettings**](LDAPSettings.md) |  | [optional] 
+
+

+ 15 - 0
docs/SettingsUpdateRequest.md

@@ -0,0 +1,15 @@
+# PortainerApi.SettingsUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**templatesURL** | **String** | URL to the templates that will be displayed in the UI when navigating to App Templates | 
+**logoURL** | **String** | URL to a logo that will be displayed on the login page as well as on top of the sidebar. Will use default Portainer logo when value is empty string | [optional] 
+**blackListedLabels** | [**[SettingsBlackListedLabels]**](SettingsBlackListedLabels.md) | A list of label name &amp; value that will be used to hide containers when querying containers | [optional] 
+**displayExternalContributors** | **Boolean** | Whether to display or not external templates contributions as sub-menus in the UI. | [optional] 
+**authenticationMethod** | **Number** | Active authentication method for the Portainer instance. Valid values are: 1 for managed or 2 for LDAP. | 
+**lDAPSettings** | [**LDAPSettings**](LDAPSettings.md) |  | [optional] 
+**allowBindMountsForRegularUsers** | **Boolean** | Whether non-administrator users should be able to use bind mounts when creating containers | [optional] 
+**allowPrivilegedModeForRegularUsers** | **Boolean** | Whether non-administrator users should be able to use privileged mode when creating containers | [optional] 
+
+

+ 15 - 0
docs/Stack.md

@@ -0,0 +1,15 @@
+# PortainerApi.Stack
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | Stack identifier | [optional] 
+**name** | **String** | Stack name | [optional] 
+**type** | **Number** | Stack type. 1 for a Swarm stack, 2 for a Compose stack | [optional] 
+**endpointID** | **Number** | Endpoint identifier. Reference the endpoint that will be used for deployment  | [optional] 
+**entryPoint** | **String** | Path to the Stack file | [optional] 
+**swarmID** | **String** | Cluster identifier of the Swarm cluster where the stack is deployed | [optional] 
+**projectPath** | **String** | Path on disk to the repository hosting the Stack file | [optional] 
+**env** | [**[StackEnv]**](StackEnv.md) | A list of environment variables used during stack deployment | [optional] 
+
+

+ 17 - 0
docs/StackCreateRequest.md

@@ -0,0 +1,17 @@
+# PortainerApi.StackCreateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Name of the stack | 
+**swarmID** | **String** | Swarm cluster identifier. Required when creating a Swarm stack (type 1). | [optional] 
+**stackFileContent** | **String** | Content of the Stack file. Required when using the &#39;string&#39; deployment method. | [optional] 
+**repositoryURL** | **String** | URL of a Git repository hosting the Stack file. Required when using the &#39;repository&#39; deployment method. | [optional] 
+**repositoryReferenceName** | **String** | Reference name of a Git repository hosting the Stack file. Used in &#39;repository&#39; deployment method. | [optional] 
+**composeFilePathInRepository** | **String** | Path to the Stack file inside the Git repository. Will default to &#39;docker-compose.yml&#39; if not specified. | [optional] 
+**repositoryAuthentication** | **Boolean** | Use basic authentication to clone the Git repository. | [optional] 
+**repositoryUsername** | **String** | Username used in basic authentication. Required when RepositoryAuthentication is true. | [optional] 
+**repositoryPassword** | **String** | Password used in basic authentication. Required when RepositoryAuthentication is true. | [optional] 
+**env** | [**[StackEnv]**](StackEnv.md) | A list of environment variables used during stack deployment | [optional] 
+
+

+ 9 - 0
docs/StackEnv.md

@@ -0,0 +1,9 @@
+# PortainerApi.StackEnv
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** |  | [optional] 
+**value** | **String** |  | [optional] 
+
+

+ 8 - 0
docs/StackFileInspectResponse.md

@@ -0,0 +1,8 @@
+# PortainerApi.StackFileInspectResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stackFileContent** | **String** | Content of the Stack file. | [optional] 
+
+

+ 7 - 0
docs/StackListResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.StackListResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 10 - 0
docs/StackMigrateRequest.md

@@ -0,0 +1,10 @@
+# PortainerApi.StackMigrateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**endpointID** | **Number** | Endpoint identifier of the target endpoint where the stack will be relocated | 
+**swarmID** | **String** | Swarm cluster identifier, must match the identifier of the cluster where the stack will be relocated | [optional] 
+**name** | **String** | If provided will rename the migrated stack | [optional] 
+
+

+ 10 - 0
docs/StackUpdateRequest.md

@@ -0,0 +1,10 @@
+# PortainerApi.StackUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stackFileContent** | **String** | New content of the Stack file. | [optional] 
+**env** | [**[StackEnv]**](StackEnv.md) | A list of environment variables used during stack deployment | [optional] 
+**prune** | **Boolean** | Prune services that are no longer referenced (only available for Swarm stacks) | [optional] 
+
+

+ 426 - 0
docs/StacksApi.md

@@ -0,0 +1,426 @@
+# PortainerApi.StacksApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**stackCreate**](StacksApi.md#stackCreate) | **POST** /stacks | Deploy a new stack
+[**stackDelete**](StacksApi.md#stackDelete) | **DELETE** /stacks/{id} | Remove a stack
+[**stackFileInspect**](StacksApi.md#stackFileInspect) | **GET** /stacks/{id}/file | Retrieve the content of the Stack file for the specified stack
+[**stackInspect**](StacksApi.md#stackInspect) | **GET** /stacks/{id} | Inspect a stack
+[**stackList**](StacksApi.md#stackList) | **GET** /stacks | List stacks
+[**stackMigrate**](StacksApi.md#stackMigrate) | **POST** /stacks/{id}/migrate | Migrate a stack to another endpoint
+[**stackUpdate**](StacksApi.md#stackUpdate) | **PUT** /stacks/{id} | Update a stack
+
+
+<a name="stackCreate"></a>
+# **stackCreate**
+> Stack stackCreate(type, method, endpointId, opts)
+
+Deploy a new stack
+
+Deploy a new stack into a Docker environment specified via the endpoint identifier. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.StacksApi();
+
+var type = 56; // Number | Stack deployment type. Possible values: 1 (Swarm stack) or 2 (Compose stack).
+
+var method = "method_example"; // String | Stack deployment method. Possible values: file, string or repository.
+
+var endpointId = 56; // Number | Identifier of the endpoint that will be used to deploy the stack.
+
+var opts = { 
+  'body': new PortainerApi.StackCreateRequest(), // StackCreateRequest | Stack details. Required when method equals string or repository.
+  'name': "name_example", // String | Name of the stack. Required when method equals file.
+  'endpointID': "endpointID_example", // String | Endpoint identifier used to deploy the stack. Required when method equals file.
+  'swarmID': "swarmID_example", // String | Swarm cluster identifier. Required when method equals file and type equals 1.
+  'file': "/path/to/file.txt", // File | Stack file. Required when method equals file.
+  'env': "env_example" // String | Environment variables passed during deployment, represented as a JSON array [{'name': 'name', 'value': 'value'}]. Optional, used when method equals file and type equals 1.
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.stackCreate(type, method, endpointId, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **type** | **Number**| Stack deployment type. Possible values: 1 (Swarm stack) or 2 (Compose stack). | 
+ **method** | **String**| Stack deployment method. Possible values: file, string or repository. | 
+ **endpointId** | **Number**| Identifier of the endpoint that will be used to deploy the stack. | 
+ **body** | [**StackCreateRequest**](StackCreateRequest.md)| Stack details. Required when method equals string or repository. | [optional] 
+ **name** | **String**| Name of the stack. Required when method equals file. | [optional] 
+ **endpointID** | **String**| Endpoint identifier used to deploy the stack. Required when method equals file. | [optional] 
+ **swarmID** | **String**| Swarm cluster identifier. Required when method equals file and type equals 1. | [optional] 
+ **file** | **File**| Stack file. Required when method equals file. | [optional] 
+ **env** | **String**| Environment variables passed during deployment, represented as a JSON array [{&#39;name&#39;: &#39;name&#39;, &#39;value&#39;: &#39;value&#39;}]. Optional, used when method equals file and type equals 1. | [optional] 
+
+### Return type
+
+[**Stack**](Stack.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="stackDelete"></a>
+# **stackDelete**
+> stackDelete(id, opts)
+
+Remove a stack
+
+Remove a stack. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.StacksApi();
+
+var id = 56; // Number | Stack identifier
+
+var opts = { 
+  'external': true, // Boolean | Set to true to delete an external stack. Only external Swarm stacks are supported.
+  'endpointId': "endpointId_example" // String | Endpoint identifier used to remove an external stack (required when external is set to true)
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.stackDelete(id, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Stack identifier | 
+ **external** | **Boolean**| Set to true to delete an external stack. Only external Swarm stacks are supported. | [optional] 
+ **endpointId** | **String**| Endpoint identifier used to remove an external stack (required when external is set to true) | [optional] 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="stackFileInspect"></a>
+# **stackFileInspect**
+> StackFileInspectResponse stackFileInspect(id)
+
+Retrieve the content of the Stack file for the specified stack
+
+Get Stack file content. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.StacksApi();
+
+var id = 56; // Number | Stack identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.stackFileInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Stack identifier | 
+
+### Return type
+
+[**StackFileInspectResponse**](StackFileInspectResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="stackInspect"></a>
+# **stackInspect**
+> Stack stackInspect(id)
+
+Inspect a stack
+
+Retrieve details about a stack. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.StacksApi();
+
+var id = 56; // Number | Stack identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.stackInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Stack identifier | 
+
+### Return type
+
+[**Stack**](Stack.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="stackList"></a>
+# **stackList**
+> StackListResponse stackList(opts)
+
+List stacks
+
+List all stacks based on the current user authorizations. Will return all stacks if using an administrator account otherwise it will only return the list of stacks the user have access to. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.StacksApi();
+
+var opts = { 
+  'filters': "filters_example" // String | Filters to process on the stack list. Encoded as JSON (a map[string]string). For example, {\"SwarmID\": \"jpofkc0i9uo9wtx1zesuk649w\"} will only return stacks that are part of the specified Swarm cluster. Available filters: EndpointID, SwarmID. 
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.stackList(opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **filters** | **String**| Filters to process on the stack list. Encoded as JSON (a map[string]string). For example, {\&quot;SwarmID\&quot;: \&quot;jpofkc0i9uo9wtx1zesuk649w\&quot;} will only return stacks that are part of the specified Swarm cluster. Available filters: EndpointID, SwarmID.  | [optional] 
+
+### Return type
+
+[**StackListResponse**](StackListResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="stackMigrate"></a>
+# **stackMigrate**
+> Stack stackMigrate(id, opts)
+
+Migrate a stack to another endpoint
+
+Migrate a stack from an endpoint to another endpoint. It will re-create the stack inside the target endpoint before removing the original stack. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.StacksApi();
+
+var id = 56; // Number | Stack identifier
+
+var opts = { 
+  'endpointId': 56, // Number | Stacks created before version 1.18.0 might not have an associated endpoint identifier. Use this optional parameter to set the endpoint identifier used by the stack.
+  'body': new PortainerApi.StackMigrateRequest() // StackMigrateRequest | Stack migration details.
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.stackMigrate(id, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Stack identifier | 
+ **endpointId** | **Number**| Stacks created before version 1.18.0 might not have an associated endpoint identifier. Use this optional parameter to set the endpoint identifier used by the stack. | [optional] 
+ **body** | [**StackMigrateRequest**](StackMigrateRequest.md)| Stack migration details. | [optional] 
+
+### Return type
+
+[**Stack**](Stack.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="stackUpdate"></a>
+# **stackUpdate**
+> Stack stackUpdate(id, body, opts)
+
+Update a stack
+
+Update a stack. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.StacksApi();
+
+var id = 56; // Number | Stack identifier
+
+var body = new PortainerApi.StackUpdateRequest(); // StackUpdateRequest | Stack details
+
+var opts = { 
+  'endpointId': 56 // Number | Stacks created before version 1.18.0 might not have an associated endpoint identifier. Use this optional parameter to set the endpoint identifier used by the stack.
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.stackUpdate(id, body, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Stack identifier | 
+ **body** | [**StackUpdateRequest**](StackUpdateRequest.md)| Stack details | 
+ **endpointId** | **Number**| Stacks created before version 1.18.0 might not have an associated endpoint identifier. Use this optional parameter to set the endpoint identifier used by the stack. | [optional] 
+
+### Return type
+
+[**Stack**](Stack.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 11 - 0
docs/Status.md

@@ -0,0 +1,11 @@
+# PortainerApi.Status
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**authentication** | **Boolean** | Is authentication enabled | [optional] 
+**endpointManagement** | **Boolean** | Is endpoint management enabled | [optional] 
+**analytics** | **Boolean** | Is analytics enabled | [optional] 
+**version** | **String** | Portainer API version | [optional] 
+
+

+ 56 - 0
docs/StatusApi.md

@@ -0,0 +1,56 @@
+# PortainerApi.StatusApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**statusInspect**](StatusApi.md#statusInspect) | **GET** /status | Check Portainer status
+
+
+<a name="statusInspect"></a>
+# **statusInspect**
+> Status statusInspect()
+
+Check Portainer status
+
+Retrieve Portainer status. **Access policy**: public 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.StatusApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.statusInspect(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**Status**](Status.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+

+ 12 - 0
docs/TLSConfiguration.md

@@ -0,0 +1,12 @@
+# PortainerApi.TLSConfiguration
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**TLS** | **Boolean** | Use TLS | [optional] 
+**tLSSkipVerify** | **Boolean** | Skip the verification of the server TLS certificate | [optional] 
+**tLSCACertPath** | **String** | Path to the TLS CA certificate file | [optional] 
+**tLSCertPath** | **String** | Path to the TLS client certificate file | [optional] 
+**tLSKeyPath** | **String** | Path to the TLS client key file | [optional] 
+
+

+ 9 - 0
docs/Tag.md

@@ -0,0 +1,9 @@
+# PortainerApi.Tag
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | Tag identifier | [optional] 
+**name** | **String** | Tag name | [optional] 
+
+

+ 8 - 0
docs/TagCreateRequest.md

@@ -0,0 +1,8 @@
+# PortainerApi.TagCreateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Name | 
+
+

+ 7 - 0
docs/TagListResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.TagListResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 164 - 0
docs/TagsApi.md

@@ -0,0 +1,164 @@
+# PortainerApi.TagsApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**tagCreate**](TagsApi.md#tagCreate) | **POST** /tags | Create a new tag
+[**tagDelete**](TagsApi.md#tagDelete) | **DELETE** /tags/{id} | Remove a tag
+[**tagList**](TagsApi.md#tagList) | **GET** /tags | List tags
+
+
+<a name="tagCreate"></a>
+# **tagCreate**
+> Tag tagCreate(body)
+
+Create a new tag
+
+Create a new tag. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TagsApi();
+
+var body = new PortainerApi.TagCreateRequest(); // TagCreateRequest | Tag details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.tagCreate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**TagCreateRequest**](TagCreateRequest.md)| Tag details | 
+
+### Return type
+
+[**Tag**](Tag.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="tagDelete"></a>
+# **tagDelete**
+> tagDelete(id)
+
+Remove a tag
+
+Remove a tag. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TagsApi();
+
+var id = 56; // Number | Tag identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.tagDelete(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Tag identifier | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="tagList"></a>
+# **tagList**
+> TagListResponse tagList()
+
+List tags
+
+List tags. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TagsApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.tagList(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**TagListResponse**](TagListResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+

+ 9 - 0
docs/Team.md

@@ -0,0 +1,9 @@
+# PortainerApi.Team
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | Team identifier | [optional] 
+**name** | **String** | Team name | [optional] 
+
+

+ 8 - 0
docs/TeamCreateRequest.md

@@ -0,0 +1,8 @@
+# PortainerApi.TeamCreateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Name | 
+
+

+ 7 - 0
docs/TeamListResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.TeamListResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 11 - 0
docs/TeamMembership.md

@@ -0,0 +1,11 @@
+# PortainerApi.TeamMembership
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | Membership identifier | [optional] 
+**userID** | **Number** | User identifier | [optional] 
+**teamID** | **Number** | Team identifier | [optional] 
+**role** | **Number** | Team role (1 for team leader and 2 for team member) | [optional] 
+
+

+ 10 - 0
docs/TeamMembershipCreateRequest.md

@@ -0,0 +1,10 @@
+# PortainerApi.TeamMembershipCreateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**userID** | **Number** | User identifier | 
+**teamID** | **Number** | Team identifier | 
+**role** | **Number** | Role for the user inside the team (1 for leader and 2 for regular member) | 
+
+

+ 7 - 0
docs/TeamMembershipListResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.TeamMembershipListResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 10 - 0
docs/TeamMembershipUpdateRequest.md

@@ -0,0 +1,10 @@
+# PortainerApi.TeamMembershipUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**userID** | **Number** | User identifier | 
+**teamID** | **Number** | Team identifier | 
+**role** | **Number** | Role for the user inside the team (1 for leader and 2 for regular member) | 
+
+

+ 221 - 0
docs/TeamMembershipsApi.md

@@ -0,0 +1,221 @@
+# PortainerApi.TeamMembershipsApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**teamMembershipCreate**](TeamMembershipsApi.md#teamMembershipCreate) | **POST** /team_memberships | Create a new team membership
+[**teamMembershipDelete**](TeamMembershipsApi.md#teamMembershipDelete) | **DELETE** /team_memberships/{id} | Remove a team membership
+[**teamMembershipList**](TeamMembershipsApi.md#teamMembershipList) | **GET** /team_memberships | List team memberships
+[**teamMembershipUpdate**](TeamMembershipsApi.md#teamMembershipUpdate) | **PUT** /team_memberships/{id} | Update a team membership
+
+
+<a name="teamMembershipCreate"></a>
+# **teamMembershipCreate**
+> TeamMembership teamMembershipCreate(body)
+
+Create a new team membership
+
+Create a new team memberships. Access is only available to administrators leaders of the associated team. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamMembershipsApi();
+
+var body = new PortainerApi.TeamMembershipCreateRequest(); // TeamMembershipCreateRequest | Team membership details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.teamMembershipCreate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**TeamMembershipCreateRequest**](TeamMembershipCreateRequest.md)| Team membership details | 
+
+### Return type
+
+[**TeamMembership**](TeamMembership.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="teamMembershipDelete"></a>
+# **teamMembershipDelete**
+> teamMembershipDelete(id)
+
+Remove a team membership
+
+Remove a team membership. Access is only available to administrators leaders of the associated team. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamMembershipsApi();
+
+var id = 56; // Number | TeamMembership identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.teamMembershipDelete(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| TeamMembership identifier | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="teamMembershipList"></a>
+# **teamMembershipList**
+> TeamMembershipListResponse teamMembershipList()
+
+List team memberships
+
+List team memberships. Access is only available to administrators and team leaders. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamMembershipsApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.teamMembershipList(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**TeamMembershipListResponse**](TeamMembershipListResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="teamMembershipUpdate"></a>
+# **teamMembershipUpdate**
+> TeamMembership teamMembershipUpdate(id, body)
+
+Update a team membership
+
+Update a team membership. Access is only available to administrators leaders of the associated team. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamMembershipsApi();
+
+var id = 56; // Number | Team membership identifier
+
+var body = new PortainerApi.TeamMembershipUpdateRequest(); // TeamMembershipUpdateRequest | Team membership details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.teamMembershipUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Team membership identifier | 
+ **body** | [**TeamMembershipUpdateRequest**](TeamMembershipUpdateRequest.md)| Team membership details | 
+
+### Return type
+
+[**TeamMembership**](TeamMembership.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 7 - 0
docs/TeamMembershipsResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.TeamMembershipsResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 8 - 0
docs/TeamUpdateRequest.md

@@ -0,0 +1,8 @@
+# PortainerApi.TeamUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Name | 
+
+

+ 329 - 0
docs/TeamsApi.md

@@ -0,0 +1,329 @@
+# PortainerApi.TeamsApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**teamCreate**](TeamsApi.md#teamCreate) | **POST** /teams | Create a new team
+[**teamDelete**](TeamsApi.md#teamDelete) | **DELETE** /teams/{id} | Remove a team
+[**teamInspect**](TeamsApi.md#teamInspect) | **GET** /teams/{id} | Inspect a team
+[**teamList**](TeamsApi.md#teamList) | **GET** /teams | List teams
+[**teamMembershipsInspect**](TeamsApi.md#teamMembershipsInspect) | **GET** /teams/{id}/memberships | Inspect a team memberships
+[**teamUpdate**](TeamsApi.md#teamUpdate) | **PUT** /teams/{id} | Update a team
+
+
+<a name="teamCreate"></a>
+# **teamCreate**
+> Team teamCreate(body)
+
+Create a new team
+
+Create a new team. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamsApi();
+
+var body = new PortainerApi.TeamCreateRequest(); // TeamCreateRequest | Team details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.teamCreate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**TeamCreateRequest**](TeamCreateRequest.md)| Team details | 
+
+### Return type
+
+[**Team**](Team.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="teamDelete"></a>
+# **teamDelete**
+> teamDelete(id)
+
+Remove a team
+
+Remove a team. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamsApi();
+
+var id = 56; // Number | Team identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.teamDelete(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Team identifier | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="teamInspect"></a>
+# **teamInspect**
+> Team teamInspect(id)
+
+Inspect a team
+
+Retrieve details about a team. Access is only available for administrator and leaders of that team. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamsApi();
+
+var id = 56; // Number | Team identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.teamInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Team identifier | 
+
+### Return type
+
+[**Team**](Team.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="teamList"></a>
+# **teamList**
+> TeamListResponse teamList()
+
+List teams
+
+List teams. For non-administrator users, will only list the teams they are member of. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamsApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.teamList(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**TeamListResponse**](TeamListResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="teamMembershipsInspect"></a>
+# **teamMembershipsInspect**
+> TeamMembershipsResponse teamMembershipsInspect(id)
+
+Inspect a team memberships
+
+Inspect a team memberships. Access is only available for administrator and leaders of that team. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamsApi();
+
+var id = 56; // Number | Team identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.teamMembershipsInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Team identifier | 
+
+### Return type
+
+[**TeamMembershipsResponse**](TeamMembershipsResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="teamUpdate"></a>
+# **teamUpdate**
+> teamUpdate(id, body)
+
+Update a team
+
+Update a team. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TeamsApi();
+
+var id = 56; // Number | Team identifier
+
+var body = new PortainerApi.TeamUpdateRequest(); // TeamUpdateRequest | Team details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.teamUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Team identifier | 
+ **body** | [**TeamUpdateRequest**](TeamUpdateRequest.md)| Team details | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 30 - 0
docs/Template.md

@@ -0,0 +1,30 @@
+# PortainerApi.Template
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | Template identifier | [optional] 
+**type** | **Number** | Template type. Valid values are: 1 (container), 2 (Swarm stack) or 3 (Compose stack) | [optional] 
+**title** | **String** | Title of the template | [optional] 
+**description** | **String** | Description of the template | [optional] 
+**administratorOnly** | **Boolean** | Whether the template should be available to administrators only | [optional] 
+**image** | **String** | Image associated to a container template. Mandatory for a container template | [optional] 
+**repository** | [**TemplateRepository**](TemplateRepository.md) |  | [optional] 
+**name** | **String** | Default name for the stack/container to be used on deployment | [optional] 
+**logo** | **String** | URL of the template&#39;s logo | [optional] 
+**env** | [**[TemplateEnv]**](TemplateEnv.md) | A list of environment variables used during the template deployment | [optional] 
+**note** | **String** | A note that will be displayed in the UI. Supports HTML content | [optional] 
+**platform** | **String** | Platform associated to the template. Valid values are: &#39;linux&#39;, &#39;windows&#39; or leave empty for multi-platform | [optional] 
+**categories** | **[String]** | A list of categories associated to the template | [optional] 
+**registry** | **String** | The URL of a registry associated to the image for a container template | [optional] 
+**command** | **String** | The command that will be executed in a container template | [optional] 
+**network** | **String** | Name of a network that will be used on container deployment if it exists inside the environment | [optional] 
+**volumes** | [**[TemplateVolume]**](TemplateVolume.md) | A list of volumes used during the container template deployment | [optional] 
+**ports** | **[String]** | A list of ports exposed by the container | [optional] 
+**labels** | [**[Pair]**](Pair.md) | Container labels | [optional] 
+**privileged** | **Boolean** | Whether the container should be started in privileged mode | [optional] 
+**interactive** | **Boolean** | Whether the container should be started in interactive mode (-i -t equivalent on the CLI) | [optional] 
+**restartPolicy** | **String** | Container restart policy | [optional] 
+**hostname** | **String** | Container hostname | [optional] 
+
+

+ 29 - 0
docs/TemplateCreateRequest.md

@@ -0,0 +1,29 @@
+# PortainerApi.TemplateCreateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **Number** | Template type. Valid values are: 1 (container), 2 (Swarm stack) or 3 (Compose stack) | 
+**title** | **String** | Title of the template | 
+**description** | **String** | Description of the template | 
+**administratorOnly** | **Boolean** | Whether the template should be available to administrators only | [optional] 
+**image** | **String** | Image associated to a container template. Mandatory for a container template | [optional] 
+**repository** | [**TemplateRepository**](TemplateRepository.md) |  | [optional] 
+**name** | **String** | Default name for the stack/container to be used on deployment | [optional] 
+**logo** | **String** | URL of the template&#39;s logo | [optional] 
+**env** | [**[TemplateEnv]**](TemplateEnv.md) | A list of environment variables used during the template deployment | [optional] 
+**note** | **String** | A note that will be displayed in the UI. Supports HTML content | [optional] 
+**platform** | **String** | Platform associated to the template. Valid values are: &#39;linux&#39;, &#39;windows&#39; or leave empty for multi-platform | [optional] 
+**categories** | **[String]** | A list of categories associated to the template | [optional] 
+**registry** | **String** | The URL of a registry associated to the image for a container template | [optional] 
+**command** | **String** | The command that will be executed in a container template | [optional] 
+**network** | **String** | Name of a network that will be used on container deployment if it exists inside the environment | [optional] 
+**volumes** | [**[TemplateVolume]**](TemplateVolume.md) | A list of volumes used during the container template deployment | [optional] 
+**ports** | **[String]** | A list of ports exposed by the container | [optional] 
+**labels** | [**[Pair]**](Pair.md) | Container labels | [optional] 
+**privileged** | **Boolean** | Whether the container should be started in privileged mode | [optional] 
+**interactive** | **Boolean** | Whether the container should be started in interactive mode (-i -t equivalent on the CLI) | [optional] 
+**restartPolicy** | **String** | Container restart policy | [optional] 
+**hostname** | **String** | Container hostname | [optional] 
+
+

+ 13 - 0
docs/TemplateEnv.md

@@ -0,0 +1,13 @@
+# PortainerApi.TemplateEnv
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | name of the environment variable | [optional] 
+**label** | **String** | Text for the label that will be generated in the UI | [optional] 
+**description** | **String** | Content of the tooltip that will be generated in the UI | [optional] 
+**_default** | **String** | Default value that will be set for the variable | [optional] 
+**preset** | **Boolean** | If set to true, will not generate any input for this variable in the UI | [optional] 
+**select** | [**[TemplateEnvSelect]**](TemplateEnvSelect.md) | A list of name/value that will be used to generate a dropdown in the UI | [optional] 
+
+

+ 10 - 0
docs/TemplateEnvSelect.md

@@ -0,0 +1,10 @@
+# PortainerApi.TemplateEnvSelect
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**text** | **String** | Some text that will displayed as a choice | [optional] 
+**value** | **String** | A value that will be associated to the choice | [optional] 
+**_default** | **Boolean** | Will set this choice as the default choice | [optional] 
+
+

+ 7 - 0
docs/TemplateListResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.TemplateListResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 9 - 0
docs/TemplateRepository.md

@@ -0,0 +1,9 @@
+# PortainerApi.TemplateRepository
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**URL** | **String** | URL of a git repository used to deploy a stack template. Mandatory for a Swarm/Compose stack template | 
+**stackfile** | **String** | Path to the stack file inside the git repository | [optional] 
+
+

+ 29 - 0
docs/TemplateUpdateRequest.md

@@ -0,0 +1,29 @@
+# PortainerApi.TemplateUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **Number** | Template type. Valid values are: 1 (container), 2 (Swarm stack) or 3 (Compose stack) | [optional] 
+**title** | **String** | Title of the template | [optional] 
+**description** | **String** | Description of the template | [optional] 
+**administratorOnly** | **Boolean** | Whether the template should be available to administrators only | [optional] 
+**image** | **String** | Image associated to a container template. Mandatory for a container template | [optional] 
+**repository** | [**TemplateRepository**](TemplateRepository.md) |  | [optional] 
+**name** | **String** | Default name for the stack/container to be used on deployment | [optional] 
+**logo** | **String** | URL of the template&#39;s logo | [optional] 
+**env** | [**[TemplateEnv]**](TemplateEnv.md) | A list of environment variables used during the template deployment | [optional] 
+**note** | **String** | A note that will be displayed in the UI. Supports HTML content | [optional] 
+**platform** | **String** | Platform associated to the template. Valid values are: &#39;linux&#39;, &#39;windows&#39; or leave empty for multi-platform | [optional] 
+**categories** | **[String]** | A list of categories associated to the template | [optional] 
+**registry** | **String** | The URL of a registry associated to the image for a container template | [optional] 
+**command** | **String** | The command that will be executed in a container template | [optional] 
+**network** | **String** | Name of a network that will be used on container deployment if it exists inside the environment | [optional] 
+**volumes** | [**[TemplateVolume]**](TemplateVolume.md) | A list of volumes used during the container template deployment | [optional] 
+**ports** | **[String]** | A list of ports exposed by the container | [optional] 
+**labels** | [**[Pair]**](Pair.md) | Container labels | [optional] 
+**privileged** | **Boolean** | Whether the container should be started in privileged mode | [optional] 
+**interactive** | **Boolean** | Whether the container should be started in interactive mode (-i -t equivalent on the CLI) | [optional] 
+**restartPolicy** | **String** | Container restart policy | [optional] 
+**hostname** | **String** | Container hostname | [optional] 
+
+

+ 10 - 0
docs/TemplateVolume.md

@@ -0,0 +1,10 @@
+# PortainerApi.TemplateVolume
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**container** | **String** | Path inside the container | [optional] 
+**bind** | **String** | Path on the host | [optional] 
+**readonly** | **Boolean** | Whether the volume used should be readonly | [optional] 
+
+

+ 275 - 0
docs/TemplatesApi.md

@@ -0,0 +1,275 @@
+# PortainerApi.TemplatesApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**templateCreate**](TemplatesApi.md#templateCreate) | **POST** /templates | Create a new template
+[**templateDelete**](TemplatesApi.md#templateDelete) | **DELETE** /templates/{id} | Remove a template
+[**templateInspect**](TemplatesApi.md#templateInspect) | **GET** /templates/{id} | Inspect a template
+[**templateList**](TemplatesApi.md#templateList) | **GET** /templates | List available templates
+[**templateUpdate**](TemplatesApi.md#templateUpdate) | **PUT** /templates/{id} | Update a template
+
+
+<a name="templateCreate"></a>
+# **templateCreate**
+> Template templateCreate(body)
+
+Create a new template
+
+Create a new template. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TemplatesApi();
+
+var body = new PortainerApi.TemplateCreateRequest(); // TemplateCreateRequest | Template details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.templateCreate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**TemplateCreateRequest**](TemplateCreateRequest.md)| Template details | 
+
+### Return type
+
+[**Template**](Template.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="templateDelete"></a>
+# **templateDelete**
+> templateDelete(id)
+
+Remove a template
+
+Remove a template. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TemplatesApi();
+
+var id = 56; // Number | Template identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.templateDelete(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Template identifier | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="templateInspect"></a>
+# **templateInspect**
+> Template templateInspect(id)
+
+Inspect a template
+
+Retrieve details about a template. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TemplatesApi();
+
+var id = 56; // Number | Template identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.templateInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Template identifier | 
+
+### Return type
+
+[**Template**](Template.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="templateList"></a>
+# **templateList**
+> TemplateListResponse templateList()
+
+List available templates
+
+List available templates. Administrator templates will not be listed for non-administrator users. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TemplatesApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.templateList(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**TemplateListResponse**](TemplateListResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="templateUpdate"></a>
+# **templateUpdate**
+> templateUpdate(id, body)
+
+Update a template
+
+Update a template. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.TemplatesApi();
+
+var id = 56; // Number | Template identifier
+
+var body = new PortainerApi.TemplateUpdateRequest(); // TemplateUpdateRequest | Template details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.templateUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| Template identifier | 
+ **body** | [**TemplateUpdateRequest**](TemplateUpdateRequest.md)| Template details | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 69 - 0
docs/UploadApi.md

@@ -0,0 +1,69 @@
+# PortainerApi.UploadApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**uploadTLS**](UploadApi.md#uploadTLS) | **POST** /upload/tls/{certificate} | Upload TLS files
+
+
+<a name="uploadTLS"></a>
+# **uploadTLS**
+> uploadTLS(certificate, folder, opts)
+
+Upload TLS files
+
+Use this endpoint to upload TLS files. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UploadApi();
+
+var certificate = "certificate_example"; // String | TLS file type. Valid values are 'ca', 'cert' or 'key'.
+
+var folder = "folder_example"; // String | Folder where the TLS file will be stored. Will be created if not existing.
+
+var opts = { 
+  'file': "/path/to/file.txt" // File | The file to upload.
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.uploadTLS(certificate, folder, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **certificate** | **String**| TLS file type. Valid values are &#39;ca&#39;, &#39;cert&#39; or &#39;key&#39;. | 
+ **folder** | **String**| Folder where the TLS file will be stored. Will be created if not existing. | 
+ **file** | **File**| The file to upload. | [optional] 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+

+ 11 - 0
docs/User.md

@@ -0,0 +1,11 @@
+# PortainerApi.User
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | User identifier | [optional] 
+**username** | **String** | Username | [optional] 
+**password** | **String** | Password | [optional] 
+**role** | **Number** | User role (1 for administrator account and 2 for regular account) | [optional] 
+
+

+ 9 - 0
docs/UserAdminInitRequest.md

@@ -0,0 +1,9 @@
+# PortainerApi.UserAdminInitRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**username** | **String** | Username for the admin user | [optional] 
+**password** | **String** | Password for the admin user | [optional] 
+
+

+ 10 - 0
docs/UserCreateRequest.md

@@ -0,0 +1,10 @@
+# PortainerApi.UserCreateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**username** | **String** | Username | 
+**password** | **String** | Password | 
+**role** | **Number** | User role (1 for administrator account and 2 for regular account) | 
+
+

+ 7 - 0
docs/UserListResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.UserListResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 7 - 0
docs/UserMembershipsResponse.md

@@ -0,0 +1,7 @@
+# PortainerApi.UserMembershipsResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+

+ 8 - 0
docs/UserPasswordCheckRequest.md

@@ -0,0 +1,8 @@
+# PortainerApi.UserPasswordCheckRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**password** | **String** | Password | 
+
+

+ 8 - 0
docs/UserPasswordCheckResponse.md

@@ -0,0 +1,8 @@
+# PortainerApi.UserPasswordCheckResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**valid** | **Boolean** | Is the password valid | [optional] 
+
+

+ 10 - 0
docs/UserSubset.md

@@ -0,0 +1,10 @@
+# PortainerApi.UserSubset
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | User identifier | [optional] 
+**username** | **String** | Username | [optional] 
+**role** | **Number** | User role (1 for administrator account and 2 for regular account) | [optional] 
+
+

+ 9 - 0
docs/UserUpdateRequest.md

@@ -0,0 +1,9 @@
+# PortainerApi.UserUpdateRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**password** | **String** | Password | [optional] 
+**role** | **Number** | User role (1 for administrator account and 2 for regular account) | [optional] 
+
+

+ 488 - 0
docs/UsersApi.md

@@ -0,0 +1,488 @@
+# PortainerApi.UsersApi
+
+All URIs are relative to *http://portainer.domain/api*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**userAdminCheck**](UsersApi.md#userAdminCheck) | **GET** /users/admin/check | Check administrator account existence
+[**userAdminInit**](UsersApi.md#userAdminInit) | **POST** /users/admin/init | Initialize administrator account
+[**userCreate**](UsersApi.md#userCreate) | **POST** /users | Create a new user
+[**userDelete**](UsersApi.md#userDelete) | **DELETE** /users/{id} | Remove a user
+[**userInspect**](UsersApi.md#userInspect) | **GET** /users/{id} | Inspect a user
+[**userList**](UsersApi.md#userList) | **GET** /users | List users
+[**userMembershipsInspect**](UsersApi.md#userMembershipsInspect) | **GET** /users/{id}/memberships | Inspect a user memberships
+[**userPasswordCheck**](UsersApi.md#userPasswordCheck) | **POST** /users/{id}/passwd | Check password validity for a user
+[**userUpdate**](UsersApi.md#userUpdate) | **PUT** /users/{id} | Update a user
+
+
+<a name="userAdminCheck"></a>
+# **userAdminCheck**
+> userAdminCheck()
+
+Check administrator account existence
+
+Check if an administrator account exists in the database. **Access policy**: public 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UsersApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.userAdminCheck(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="userAdminInit"></a>
+# **userAdminInit**
+> User userAdminInit(body)
+
+Initialize administrator account
+
+Initialize the &#39;admin&#39; user account. **Access policy**: public 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UsersApi();
+
+var body = new PortainerApi.UserAdminInitRequest(); // UserAdminInitRequest | User details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.userAdminInit(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**UserAdminInitRequest**](UserAdminInitRequest.md)| User details | 
+
+### Return type
+
+[**User**](User.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="userCreate"></a>
+# **userCreate**
+> UserSubset userCreate(body)
+
+Create a new user
+
+Create a new Portainer user. Only team leaders and administrators can create users. Only administrators can create an administrator user account. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UsersApi();
+
+var body = new PortainerApi.UserCreateRequest(); // UserCreateRequest | User details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.userCreate(body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**UserCreateRequest**](UserCreateRequest.md)| User details | 
+
+### Return type
+
+[**UserSubset**](UserSubset.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="userDelete"></a>
+# **userDelete**
+> userDelete(id)
+
+Remove a user
+
+Remove a user. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UsersApi();
+
+var id = 56; // Number | User identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+apiInstance.userDelete(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| User identifier | 
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+<a name="userInspect"></a>
+# **userInspect**
+> User userInspect(id)
+
+Inspect a user
+
+Retrieve details about a user. **Access policy**: administrator 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UsersApi();
+
+var id = 56; // Number | User identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.userInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| User identifier | 
+
+### Return type
+
+[**User**](User.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="userList"></a>
+# **userList**
+> UserListResponse userList()
+
+List users
+
+List Portainer users. Non-administrator users will only be able to list other non-administrator user accounts. **Access policy**: restricted 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UsersApi();
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.userList(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**UserListResponse**](UserListResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="userMembershipsInspect"></a>
+# **userMembershipsInspect**
+> UserMembershipsResponse userMembershipsInspect(id)
+
+Inspect a user memberships
+
+Inspect a user memberships. **Access policy**: authenticated 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UsersApi();
+
+var id = 56; // Number | User identifier
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.userMembershipsInspect(id, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| User identifier | 
+
+### Return type
+
+[**UserMembershipsResponse**](UserMembershipsResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+<a name="userPasswordCheck"></a>
+# **userPasswordCheck**
+> UserPasswordCheckResponse userPasswordCheck(id, body)
+
+Check password validity for a user
+
+Check if the submitted password is valid for the specified user. **Access policy**: authenticated 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UsersApi();
+
+var id = 56; // Number | User identifier
+
+var body = new PortainerApi.UserPasswordCheckRequest(); // UserPasswordCheckRequest | User details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.userPasswordCheck(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| User identifier | 
+ **body** | [**UserPasswordCheckRequest**](UserPasswordCheckRequest.md)| User details | 
+
+### Return type
+
+[**UserPasswordCheckResponse**](UserPasswordCheckResponse.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+<a name="userUpdate"></a>
+# **userUpdate**
+> User userUpdate(id, body)
+
+Update a user
+
+Update user details. A regular user account can only update his details. **Access policy**: authenticated 
+
+### Example
+```javascript
+var PortainerApi = require('portainer_api');
+var defaultClient = PortainerApi.ApiClient.instance;
+
+// Configure API key authorization: jwt
+var jwt = defaultClient.authentications['jwt'];
+jwt.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//jwt.apiKeyPrefix = 'Token';
+
+var apiInstance = new PortainerApi.UsersApi();
+
+var id = 56; // Number | User identifier
+
+var body = new PortainerApi.UserUpdateRequest(); // UserUpdateRequest | User details
+
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+apiInstance.userUpdate(id, body, callback);
+```
+
+### Parameters
+
+Name | Type | Description  | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **Number**| User identifier | 
+ **body** | [**UserUpdateRequest**](UserUpdateRequest.md)| User details | 
+
+### Return type
+
+[**User**](User.md)
+
+### Authorization
+
+[jwt](../README.md#jwt)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+

+ 52 - 0
git_push.sh

@@ -0,0 +1,52 @@
+#!/bin/sh
+# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
+#
+# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
+
+git_user_id=$1
+git_repo_id=$2
+release_note=$3
+
+if [ "$git_user_id" = "" ]; then
+    git_user_id=""
+    echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
+fi
+
+if [ "$git_repo_id" = "" ]; then
+    git_repo_id=""
+    echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
+fi
+
+if [ "$release_note" = "" ]; then
+    release_note=""
+    echo "[INFO] No command line input provided. Set \$release_note to $release_note"
+fi
+
+# Initialize the local directory as a Git repository
+git init
+
+# Adds the files in the local repository and stages them for commit.
+git add .
+
+# Commits the tracked changes and prepares them to be pushed to a remote repository. 
+git commit -m "$release_note"
+
+# Sets the new remote
+git_remote=`git remote`
+if [ "$git_remote" = "" ]; then # git remote not defined
+
+    if [ "$GIT_TOKEN" = "" ]; then
+        echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment."
+        git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
+    else
+        git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
+    fi
+
+fi
+
+git pull origin master
+
+# Pushes (Forces) the changes in the local repository up to the remote repository
+echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
+git push origin master 2>&1 | grep -v 'To https'
+

+ 1 - 0
mocha.opts

@@ -0,0 +1 @@
+--timeout 10000

Разница между файлами не показана из-за своего большого размера
+ 3 - 0
package.json


Разница между файлами не показана из-за своего большого размера
+ 2 - 0
src/ApiClient.js


Разница между файлами не показана из-за своего большого размера
+ 2 - 0
src/api/AuthApi.js


Разница между файлами не показана из-за своего большого размера
+ 2 - 0
src/api/DockerhubApi.js


Некоторые файлы не были показаны из-за большого количества измененных файлов