Skip to content

Commit

Permalink
Merge pull request #12 from TheJumpCloud/PYTHON-SDK-V2-Updates-6.11.18
Browse files Browse the repository at this point in the history
Python sdk v2 updates 6.11.18
  • Loading branch information
jpvajda authored Jun 20, 2018
2 parents 864cba0 + f510d8f commit 0e6f151
Show file tree
Hide file tree
Showing 73 changed files with 2,441 additions and 1,410 deletions.
2 changes: 1 addition & 1 deletion config_v2.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packageName": "jcapiv2",
"packageVersion": "1.0.2"
"packageVersion": "1.0.3"
}
21 changes: 12 additions & 9 deletions jcapiv2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ V1 & V2 versions of JumpCloud's API. The next version of JumpCloud's API. This s
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 2.0
- Package version: 1.0.2
- Package version: 1.0.3
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -86,8 +86,8 @@ Class | Method | HTTP request | Description
*ApplicationsApi* | [**graph_application_associations_post**](docs/ApplicationsApi.md#graph_application_associations_post) | **POST** /applications/{application_id}/associations | Manage the associations of an Application
*ApplicationsApi* | [**graph_application_traverse_user**](docs/ApplicationsApi.md#graph_application_traverse_user) | **GET** /applications/{application_id}/users | List the Users bound to an Application
*ApplicationsApi* | [**graph_application_traverse_user_group**](docs/ApplicationsApi.md#graph_application_traverse_user_group) | **GET** /applications/{application_id}/usergroups | List the User Groups bound to an Application
*BulkJobRequestsApi* | [**job_get**](docs/BulkJobRequestsApi.md#job_get) | **GET** /jobs/{id} | Get Job
*BulkJobRequestsApi* | [**job_results**](docs/BulkJobRequestsApi.md#job_results) | **GET** /jobs/{id}/results | List Job Results
*BulkJobRequestsApi* | [**jobs_get**](docs/BulkJobRequestsApi.md#jobs_get) | **GET** /jobs/{id} | Get Job (incomplete)
*BulkJobRequestsApi* | [**jobs_results**](docs/BulkJobRequestsApi.md#jobs_results) | **GET** /jobs/{id}/results | List Job Results
*CommandsApi* | [**graph_command_associations_list**](docs/CommandsApi.md#graph_command_associations_list) | **GET** /commands/{command_id}/associations | List the associations of a Command
*CommandsApi* | [**graph_command_associations_post**](docs/CommandsApi.md#graph_command_associations_post) | **POST** /commands/{command_id}/associations | Manage the associations of a Command
*CommandsApi* | [**graph_command_traverse_system**](docs/CommandsApi.md#graph_command_traverse_system) | **GET** /commands/{command_id}/systems | List the Systems bound to a Command
Expand Down Expand Up @@ -171,6 +171,7 @@ Class | Method | HTTP request | Description
*GraphApi* | [**graph_user_traverse_radius_server**](docs/GraphApi.md#graph_user_traverse_radius_server) | **GET** /users/{user_id}/radiusservers | List the RADIUS Servers bound to a User
*GraphApi* | [**graph_user_traverse_system**](docs/GraphApi.md#graph_user_traverse_system) | **GET** /users/{user_id}/systems | List the Systems bound to a User
*GraphApi* | [**graph_user_traverse_system_group**](docs/GraphApi.md#graph_user_traverse_system_group) | **GET** /users/{user_id}/systemgroups | List the System Groups bound to a User
*GraphApi* | [**policystatuses_list**](docs/GraphApi.md#policystatuses_list) | **GET** /systems/{system_id}/policystatuses | List the policy statuses for a system
*GroupsApi* | [**groups_list**](docs/GroupsApi.md#groups_list) | **GET** /groups | List All Groups
*LDAPServersApi* | [**graph_ldap_server_associations_list**](docs/LDAPServersApi.md#graph_ldap_server_associations_list) | **GET** /ldapservers/{ldapserver_id}/associations | List the associations of a LDAP Server
*LDAPServersApi* | [**graph_ldap_server_associations_post**](docs/LDAPServersApi.md#graph_ldap_server_associations_post) | **POST** /ldapservers/{ldapserver_id}/associations | Manage the associations of a LDAP Server
Expand All @@ -192,8 +193,10 @@ Class | Method | HTTP request | Description
*PoliciesApi* | [**policies_post**](docs/PoliciesApi.md#policies_post) | **POST** /policies | Create a new Policy
*PoliciesApi* | [**policies_put**](docs/PoliciesApi.md#policies_put) | **PUT** /policies/{id} | Update an existing Policy
*PoliciesApi* | [**policyresults_get**](docs/PoliciesApi.md#policyresults_get) | **GET** /policyresults/{id} | Get a specific Policy Result.
*PoliciesApi* | [**policyresults_list**](docs/PoliciesApi.md#policyresults_list) | **GET** /policies/{policy_id}/policyresults | Lists all the policy results of a given policy.
*PoliciesApi* | [**policyresults_list**](docs/PoliciesApi.md#policyresults_list) | **GET** /policies/{policy_id}/policyresults | Lists all the policy results of a policy.
*PoliciesApi* | [**policyresults_list_0**](docs/PoliciesApi.md#policyresults_list_0) | **GET** /policyresults | Lists all the policy results for an organization.
*PoliciesApi* | [**policystatuses_list**](docs/PoliciesApi.md#policystatuses_list) | **GET** /systems/{system_id}/policystatuses | List the policy statuses for a system
*PoliciesApi* | [**policystatuses_list_0**](docs/PoliciesApi.md#policystatuses_list_0) | **GET** /policies/{policy_id}/policystatuses | Lists the latest policy results of a policy.
*PoliciesApi* | [**policytemplates_get**](docs/PoliciesApi.md#policytemplates_get) | **GET** /policytemplates/{id} | Get a specific Policy Template
*PoliciesApi* | [**policytemplates_list**](docs/PoliciesApi.md#policytemplates_list) | **GET** /policytemplates | Lists all of the Policy Templates
*PolicytemplatesApi* | [**policytemplates_get**](docs/PolicytemplatesApi.md#policytemplates_get) | **GET** /policytemplates/{id} | Get a specific Policy Template
Expand Down Expand Up @@ -290,11 +293,12 @@ Class | Method | HTTP request | Description
*WorkdayImportApi* | [**workdays_deauthorize**](docs/WorkdayImportApi.md#workdays_deauthorize) | **DELETE** /workdays/{workday_id}/auth | Deauthorize Workday
*WorkdayImportApi* | [**workdays_delete**](docs/WorkdayImportApi.md#workdays_delete) | **DELETE** /workdays/{id} | Delete Workday
*WorkdayImportApi* | [**workdays_get**](docs/WorkdayImportApi.md#workdays_get) | **GET** /workdays/{id} | Get Workday
*WorkdayImportApi* | [**workdays_import**](docs/WorkdayImportApi.md#workdays_import) | **POST** /workdays/{workday_id}/import/ | Workday Import
*WorkdayImportApi* | [**workdays_import**](docs/WorkdayImportApi.md#workdays_import) | **POST** /workdays/{workday_id}/import | Workday Import
*WorkdayImportApi* | [**workdays_importresults**](docs/WorkdayImportApi.md#workdays_importresults) | **GET** /workdays/{id}/import/{job_id}/results | List Import Results
*WorkdayImportApi* | [**workdays_list**](docs/WorkdayImportApi.md#workdays_list) | **GET** /workdays | List Workdays
*WorkdayImportApi* | [**workdays_post**](docs/WorkdayImportApi.md#workdays_post) | **POST** /workdays | Create new Workday
*WorkdayImportApi* | [**workdays_put**](docs/WorkdayImportApi.md#workdays_put) | **PUT** /workdays/{id} | Update Workday
*WorkdayImportApi* | [**workdays_settings**](docs/WorkdayImportApi.md#workdays_settings) | **GET** /workdays/settings | Get Workday Settings
*WorkdayImportApi* | [**workdays_settings**](docs/WorkdayImportApi.md#workdays_settings) | **GET** /workdays/settings | Get Workday Settings (incomplete)
*WorkdayImportApi* | [**workdays_workers**](docs/WorkdayImportApi.md#workdays_workers) | **GET** /workdays/{workday_id}/workers | List Workday Workers


Expand All @@ -315,6 +319,7 @@ Class | Method | HTTP request | Description
- [GraphType](docs/GraphType.md)
- [Group](docs/Group.md)
- [GroupType](docs/GroupType.md)
- [InlineResponse204](docs/InlineResponse204.md)
- [JobDetails](docs/JobDetails.md)
- [JobId](docs/JobId.md)
- [JobWorkresult](docs/JobWorkresult.md)
Expand Down Expand Up @@ -349,11 +354,9 @@ Class | Method | HTTP request | Description
- [WorkdayFields](docs/WorkdayFields.md)
- [WorkdayInput](docs/WorkdayInput.md)
- [WorkdayOutput](docs/WorkdayOutput.md)
- [WorkdayReportRow](docs/WorkdayReportRow.md)
- [WorkdayRequest](docs/WorkdayRequest.md)
- [WorkdayWorker](docs/WorkdayWorker.md)
- [Workdayimportresult](docs/Workdayimportresult.md)
- [WorkdayimportresultResult](docs/WorkdayimportresultResult.md)
- [WorkdayWorkerImport](docs/WorkdayWorkerImport.md)
- [WorkdayoutputAuth](docs/WorkdayoutputAuth.md)
- [ActiveDirectoryOutput](docs/ActiveDirectoryOutput.md)
- [LdapServerOutput](docs/LdapServerOutput.md)
Expand Down
12 changes: 6 additions & 6 deletions jcapiv2/docs/ActiveDirectoryApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ content_type = 'application/json' # str | (default to application/json)
accept = 'application/json' # str | (default to application/json)
fields = ['fields_example'] # list[str] | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (optional)
filter = ['filter_example'] # list[str] | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (optional)
limit = 10 # int | The number of records to return at once. (optional) (default to 10)
limit = 10 # int | The number of records to return at once. Limited to 100. (optional) (default to 10)
skip = 0 # int | The offset into the records to return. (optional) (default to 0)
sort = ['sort_example'] # list[str] | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (optional)

Expand All @@ -172,7 +172,7 @@ Name | Type | Description | Notes
**accept** | **str**| | [default to application/json]
**fields** | [**list[str]**](str.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional]
**filter** | [**list[str]**](str.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional]
**limit** | **int**| The number of records to return at once. | [optional] [default to 10]
**limit** | **int**| The number of records to return at once. Limited to 100. | [optional] [default to 10]
**skip** | **int**| The offset into the records to return. | [optional] [default to 0]
**sort** | [**list[str]**](str.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional]

Expand Down Expand Up @@ -274,7 +274,7 @@ activedirectory_id = 'activedirectory_id_example' # str |
targets = ['targets_example'] # list[str] |
content_type = 'application/json' # str | (default to application/json)
accept = 'application/json' # str | (default to application/json)
limit = 10 # int | The number of records to return at once. (optional) (default to 10)
limit = 10 # int | The number of records to return at once. Limited to 100. (optional) (default to 10)
skip = 0 # int | The offset into the records to return. (optional) (default to 0)

try:
Expand All @@ -293,7 +293,7 @@ Name | Type | Description | Notes
**targets** | [**list[str]**](str.md)| |
**content_type** | **str**| | [default to application/json]
**accept** | **str**| | [default to application/json]
**limit** | **int**| The number of records to return at once. | [optional] [default to 10]
**limit** | **int**| The number of records to return at once. Limited to 100. | [optional] [default to 10]
**skip** | **int**| The offset into the records to return. | [optional] [default to 0]

### Return type
Expand Down Expand Up @@ -394,7 +394,7 @@ api_instance = jcapiv2.ActiveDirectoryApi()
activedirectory_id = 'activedirectory_id_example' # str | ObjectID of the Active Directory instance.
content_type = 'application/json' # str | (default to application/json)
accept = 'application/json' # str | (default to application/json)
limit = 10 # int | The number of records to return at once. (optional) (default to 10)
limit = 10 # int | The number of records to return at once. Limited to 100. (optional) (default to 10)
skip = 0 # int | The offset into the records to return. (optional) (default to 0)

try:
Expand All @@ -412,7 +412,7 @@ Name | Type | Description | Notes
**activedirectory_id** | **str**| ObjectID of the Active Directory instance. |
**content_type** | **str**| | [default to application/json]
**accept** | **str**| | [default to application/json]
**limit** | **int**| The number of records to return at once. | [optional] [default to 10]
**limit** | **int**| The number of records to return at once. Limited to 100. | [optional] [default to 10]
**skip** | **int**| The offset into the records to return. | [optional] [default to 0]

### Return type
Expand Down
12 changes: 6 additions & 6 deletions jcapiv2/docs/ApplicationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ application_id = 'application_id_example' # str | ObjectID of the Application.
targets = ['targets_example'] # list[str] |
content_type = 'application/json' # str | (default to application/json)
accept = 'application/json' # str | (default to application/json)
limit = 10 # int | The number of records to return at once. (optional) (default to 10)
limit = 10 # int | The number of records to return at once. Limited to 100. (optional) (default to 10)
skip = 0 # int | The offset into the records to return. (optional) (default to 0)

try:
Expand All @@ -55,7 +55,7 @@ Name | Type | Description | Notes
**targets** | [**list[str]**](str.md)| |
**content_type** | **str**| | [default to application/json]
**accept** | **str**| | [default to application/json]
**limit** | **int**| The number of records to return at once. | [optional] [default to 10]
**limit** | **int**| The number of records to return at once. Limited to 100. | [optional] [default to 10]
**skip** | **int**| The offset into the records to return. | [optional] [default to 0]

### Return type
Expand Down Expand Up @@ -156,7 +156,7 @@ api_instance = jcapiv2.ApplicationsApi()
application_id = 'application_id_example' # str | ObjectID of the Application.
content_type = 'application/json' # str | (default to application/json)
accept = 'application/json' # str | (default to application/json)
limit = 10 # int | The number of records to return at once. (optional) (default to 10)
limit = 10 # int | The number of records to return at once. Limited to 100. (optional) (default to 10)
skip = 0 # int | The offset into the records to return. (optional) (default to 0)

try:
Expand All @@ -174,7 +174,7 @@ Name | Type | Description | Notes
**application_id** | **str**| ObjectID of the Application. |
**content_type** | **str**| | [default to application/json]
**accept** | **str**| | [default to application/json]
**limit** | **int**| The number of records to return at once. | [optional] [default to 10]
**limit** | **int**| The number of records to return at once. Limited to 100. | [optional] [default to 10]
**skip** | **int**| The offset into the records to return. | [optional] [default to 0]

### Return type
Expand Down Expand Up @@ -217,7 +217,7 @@ api_instance = jcapiv2.ApplicationsApi()
application_id = 'application_id_example' # str | ObjectID of the Application.
content_type = 'application/json' # str | (default to application/json)
accept = 'application/json' # str | (default to application/json)
limit = 10 # int | The number of records to return at once. (optional) (default to 10)
limit = 10 # int | The number of records to return at once. Limited to 100. (optional) (default to 10)
skip = 0 # int | The offset into the records to return. (optional) (default to 0)

try:
Expand All @@ -235,7 +235,7 @@ Name | Type | Description | Notes
**application_id** | **str**| ObjectID of the Application. |
**content_type** | **str**| | [default to application/json]
**accept** | **str**| | [default to application/json]
**limit** | **int**| The number of records to return at once. | [optional] [default to 10]
**limit** | **int**| The number of records to return at once. Limited to 100. | [optional] [default to 10]
**skip** | **int**| The offset into the records to return. | [optional] [default to 0]

### Return type
Expand Down
32 changes: 16 additions & 16 deletions jcapiv2/docs/BulkJobRequestsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ All URIs are relative to *https://console.jumpcloud.com/api/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
[**job_get**](BulkJobRequestsApi.md#job_get) | **GET** /jobs/{id} | Get Job
[**job_results**](BulkJobRequestsApi.md#job_results) | **GET** /jobs/{id}/results | List Job Results
[**jobs_get**](BulkJobRequestsApi.md#jobs_get) | **GET** /jobs/{id} | Get Job (incomplete)
[**jobs_results**](BulkJobRequestsApi.md#jobs_results) | **GET** /jobs/{id}/results | List Job Results


# **job_get**
> JobDetails job_get(id, content_type, accept)
# **jobs_get**
> JobDetails jobs_get(id, content_type, accept)
Get Job
Get Job (incomplete)

Under development
**This endpoint is not complete and should remain hidden as it's not functional yet.**

### Example
```python
Expand All @@ -35,11 +35,11 @@ content_type = 'application/json' # str | (default to application/json)
accept = 'application/json' # str | (default to application/json)

try:
# Get Job
api_response = api_instance.job_get(id, content_type, accept)
# Get Job (incomplete)
api_response = api_instance.jobs_get(id, content_type, accept)
pprint(api_response)
except ApiException as e:
print("Exception when calling BulkJobRequestsApi->job_get: %s\n" % e)
print("Exception when calling BulkJobRequestsApi->jobs_get: %s\n" % e)
```

### Parameters
Expand All @@ -65,12 +65,12 @@ Name | Type | Description | Notes

[[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)

# **job_results**
> list[JobWorkresult] job_results(id, content_type, accept, limit=limit, skip=skip)
# **jobs_results**
> list[JobWorkresult] jobs_results(id, content_type, accept, limit=limit, skip=skip)
List Job Results

Under development
This endpoint will return the results of particular import job request. ###Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/v2/jobs/{ImportJobID}/results \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```

### Example
```python
Expand All @@ -90,15 +90,15 @@ api_instance = jcapiv2.BulkJobRequestsApi()
id = 'id_example' # str |
content_type = 'application/json' # str | (default to application/json)
accept = 'application/json' # str | (default to application/json)
limit = 10 # int | The number of records to return at once. (optional) (default to 10)
limit = 10 # int | The number of records to return at once. Limited to 100. (optional) (default to 10)
skip = 0 # int | The offset into the records to return. (optional) (default to 0)

try:
# List Job Results
api_response = api_instance.job_results(id, content_type, accept, limit=limit, skip=skip)
api_response = api_instance.jobs_results(id, content_type, accept, limit=limit, skip=skip)
pprint(api_response)
except ApiException as e:
print("Exception when calling BulkJobRequestsApi->job_results: %s\n" % e)
print("Exception when calling BulkJobRequestsApi->jobs_results: %s\n" % e)
```

### Parameters
Expand All @@ -108,7 +108,7 @@ Name | Type | Description | Notes
**id** | **str**| |
**content_type** | **str**| | [default to application/json]
**accept** | **str**| | [default to application/json]
**limit** | **int**| The number of records to return at once. | [optional] [default to 10]
**limit** | **int**| The number of records to return at once. Limited to 100. | [optional] [default to 10]
**skip** | **int**| The offset into the records to return. | [optional] [default to 0]

### Return type
Expand Down
Loading

0 comments on commit 0e6f151

Please sign in to comment.