Skip to content

Commit 1d811a2

Browse files
authored
Merge pull request #13 from TheJumpCloud/PYTHON-SDK-V1-Updates-7.31.18
PYTHON SDK V1 Updates 7.31.18
2 parents 35b309a + 2b50885 commit 1d811a2

43 files changed

Lines changed: 1763 additions & 262 deletions

Some content is hidden

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

config_v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"packageName": "jcapiv1",
3-
"packageVersion": "1.0.2"
3+
"packageVersion": "1.0.3"
44
}

jcapiv1/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ V1 & V2 versions of JumpCloud's API. The previous version of JumpCloud's API. Th
44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

66
- API version: 1.0
7-
- Package version: 1.0.1
7+
- Package version: 1.0.3
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -90,6 +90,7 @@ Class | Method | HTTP request | Description
9090
*CommandsApi* | [**commands_list**](docs/CommandsApi.md#commands_list) | **GET** /commands/ | List All Commands
9191
*CommandsApi* | [**commands_post**](docs/CommandsApi.md#commands_post) | **POST** /commands/ | Create A Command
9292
*CommandsApi* | [**commands_put**](docs/CommandsApi.md#commands_put) | **PUT** /commands/{id} | Update a Command
93+
*OrganizationsApi* | [**organization_list**](docs/OrganizationsApi.md#organization_list) | **GET** /organizations | Get Organization Details
9394
*RadiusServersApi* | [**radius_servers_list**](docs/RadiusServersApi.md#radius_servers_list) | **GET** /radiusservers | List Radius Servers
9495
*RadiusServersApi* | [**radius_servers_post**](docs/RadiusServersApi.md#radius_servers_post) | **POST** /radiusservers | Create a Radius Server
9596
*RadiusServersApi* | [**radius_servers_put**](docs/RadiusServersApi.md#radius_servers_put) | **PUT** /radiusservers:id | Update Radius Servers
@@ -130,12 +131,16 @@ Class | Method | HTTP request | Description
130131
- [Body](docs/Body.md)
131132
- [Command](docs/Command.md)
132133
- [Commandfilereturn](docs/Commandfilereturn.md)
134+
- [CommandfilereturnResults](docs/CommandfilereturnResults.md)
133135
- [Commandresult](docs/Commandresult.md)
134136
- [CommandresultResponse](docs/CommandresultResponse.md)
135137
- [CommandresultResponseData](docs/CommandresultResponseData.md)
136138
- [Commandresultslist](docs/Commandresultslist.md)
137139
- [Commandslist](docs/Commandslist.md)
140+
- [CommandslistResults](docs/CommandslistResults.md)
138141
- [InlineResponse400](docs/InlineResponse400.md)
142+
- [Organizationslist](docs/Organizationslist.md)
143+
- [OrganizationslistResults](docs/OrganizationslistResults.md)
139144
- [Radiusserver](docs/Radiusserver.md)
140145
- [Radiusserverpost](docs/Radiusserverpost.md)
141146
- [Radiusserverput](docs/Radiusserverput.md)

jcapiv1/docs/Command.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**name** | **str** | | [optional]
77
**command** | **str** | The command to execute on the server. |
8+
**command_type** | **str** | The Command OS | [optional]
9+
**command_runners** | **list[str]** | an array of IDs of the Command Runner Users that can execute this command. | [optional]
810
**user** | **str** | The ID of the system user to run the command as. |
11+
**sudo** | **bool** | | [optional]
912
**systems** | **list[str]** | An array of system IDs to run the command on. Not available if you are using Groups. | [optional]
13+
**launch_type** | **str** | How the command will execute. | [optional]
14+
**listens_to** | **str** | | [optional]
15+
**schedule_repeat_type** | **str** | When the command will repeat. | [optional]
1016
**schedule** | **str** | A crontab that consists of: [ (seconds) (minutes) (hours) (days of month) (months) (weekdays) ] or [ immediate ]. If you send this as an empty string, it will run immediately. | [optional]
1117
**files** | **list[str]** | An array of file IDs to include with the command. | [optional]
12-
**tags** | **list[str]** | An array of tag IDs to run the command on. Not available if you are using Groups. | [optional]
1318
**timeout** | **str** | The time in seconds to allow the command to run for. | [optional]
19+
**organization** | **str** | The ID of the organization. | [optional]
1420

1521
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1622

jcapiv1/docs/CommandResultsApi.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Name | Type | Description | Notes
6767
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
6868

6969
# **command_results_get**
70-
> Commandresult command_results_get(id, content_type, accept, fields=fields, limit=limit, skip=skip, sort=sort)
70+
> Commandresult command_results_get(id, content_type, accept, fields=fields)
7171
7272
List an individual Command result
7373

@@ -92,13 +92,10 @@ id = 'id_example' # str |
9292
content_type = 'application/json' # str | (default to application/json)
9393
accept = 'application/json' # str | (default to application/json)
9494
fields = '' # str | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (optional) (default to )
95-
limit = 10 # int | The number of records to return at once. Limited to 100. (optional) (default to 10)
96-
skip = 0 # int | The offset into the records to return. (optional) (default to 0)
97-
sort = '' # str | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (optional) (default to )
9895

9996
try:
10097
# List an individual Command result
101-
api_response = api_instance.command_results_get(id, content_type, accept, fields=fields, limit=limit, skip=skip, sort=sort)
98+
api_response = api_instance.command_results_get(id, content_type, accept, fields=fields)
10299
pprint(api_response)
103100
except ApiException as e:
104101
print("Exception when calling CommandResultsApi->command_results_get: %s\n" % e)
@@ -112,9 +109,6 @@ Name | Type | Description | Notes
112109
**content_type** | **str**| | [default to application/json]
113110
**accept** | **str**| | [default to application/json]
114111
**fields** | **str**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ]
115-
**limit** | **int**| The number of records to return at once. Limited to 100. | [optional] [default to 10]
116-
**skip** | **int**| The offset into the records to return. | [optional] [default to 0]
117-
**sort** | **str**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ]
118112

119113
### Return type
120114

jcapiv1/docs/Commandfilereturn.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**name** | **str** | name of file. | [optional]
7-
**destination** | **str** | the destination on the local machine where the file will be stored. | [optional]
8-
**id** | **str** | the ID of the file. | [optional]
6+
**total_count** | **int** | The total number of commands files | [optional]
7+
**results** | [**CommandfilereturnResults**](CommandfilereturnResults.md) | | [optional]
98

109
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1110

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CommandfilereturnResults
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **str** | The file name. | [optional]
7+
**destination** | **str** | the location where the file willl be stored. | [optional]
8+
**id** | **str** | The ID of the file. | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

jcapiv1/docs/Commandresult.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**command** | **str** | The command that was executed on the system. | [optional]
77
**name** | **str** | The name of the command. | [optional]
8-
**system** | **str** | The id of the system the command was executed on. | [optional]
9-
**organization** | **str** | The id of the organization. | [optional]
8+
**system** | **str** | The name of the system the command was executed on. | [optional]
9+
**system_id** | **str** | The id of the system the command was executed on. | [optional]
10+
**organization** | **str** | The ID of the organization. | [optional]
1011
**workflow_id** | **str** | | [optional]
1112
**workflow_instance_id** | **str** | | [optional]
1213
**user** | **str** | The user the command ran as. | [optional]
@@ -15,7 +16,7 @@ Name | Type | Description | Notes
1516
**request_time** | **int** | The time that the command was sent. | [optional]
1617
**response_time** | **int** | The time that the command was completed. | [optional]
1718
**response** | [**CommandresultResponse**](CommandresultResponse.md) | | [optional]
18-
**id** | **str** | | [optional]
19+
**id** | **str** | The ID of the command. | [optional]
1920

2021
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2122

jcapiv1/docs/CommandsApi.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void (empty response body)
132132
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
133133

134134
# **commands_get**
135-
> Command commands_get(id, content_type, accept, fields=fields, limit=limit, skip=skip, sort=sort)
135+
> Command commands_get(id, content_type, accept, fields=fields)
136136
137137
List an individual Command
138138

@@ -157,13 +157,10 @@ id = 'id_example' # str |
157157
content_type = 'application/json' # str | (default to application/json)
158158
accept = 'application/json' # str | (default to application/json)
159159
fields = '' # str | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (optional) (default to )
160-
limit = 10 # int | The number of records to return at once. Limited to 100. (optional) (default to 10)
161-
skip = 0 # int | The offset into the records to return. (optional) (default to 0)
162-
sort = '' # str | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (optional) (default to )
163160

164161
try:
165162
# List an individual Command
166-
api_response = api_instance.commands_get(id, content_type, accept, fields=fields, limit=limit, skip=skip, sort=sort)
163+
api_response = api_instance.commands_get(id, content_type, accept, fields=fields)
167164
pprint(api_response)
168165
except ApiException as e:
169166
print("Exception when calling CommandsApi->commands_get: %s\n" % e)
@@ -177,9 +174,6 @@ Name | Type | Description | Notes
177174
**content_type** | **str**| | [default to application/json]
178175
**accept** | **str**| | [default to application/json]
179176
**fields** | **str**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ]
180-
**limit** | **int**| The number of records to return at once. Limited to 100. | [optional] [default to 10]
181-
**skip** | **int**| The offset into the records to return. | [optional] [default to 0]
182-
**sort** | **str**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ]
183177

184178
### Return type
185179

jcapiv1/docs/Commandslist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**total_count** | **int** | The total number of commands. | [optional]
7-
**results** | [**list[Command]**](Command.md) | The list of commands. | [optional]
6+
**total_count** | **int** | The total number of commands | [optional]
7+
**results** | [**CommandslistResults**](CommandslistResults.md) | | [optional]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CommandslistResults
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **str** | The name of the Command. | [optional]
7+
**command** | **str** | The Command to execute. | [optional]
8+
**command_type** | **str** | The Command OS. | [optional]
9+
**launch_type** | **str** | How the Command is excecuted. | [optional]
10+
**listens_to** | **str** | | [optional]
11+
**schedule** | **str** | A crontab that consists of: [ (seconds) (minutes) (hours) (days of month) (months) (weekdays) ] or [ immediate ]. If you send this as an empty string, it will run immediately. | [optional]
12+
**trigger** | **str** | trigger to execute command. | [optional]
13+
**schedule_repeat_type** | **str** | When the command will repeat. | [optional]
14+
**organization** | **str** | The ID of the Organization. | [optional]
15+
**id** | **str** | The ID of the command. | [optional]
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+

0 commit comments

Comments
 (0)