Skip to content

Commit

Permalink
Merge pull request #31 from TheJumpCloud/jc-add-systemuser-mfa
Browse files Browse the repository at this point in the history
API v1 and v2 updates 2019-2-20
  • Loading branch information
jcasey-jc authored Feb 28, 2019
2 parents 1dd262c + 8442338 commit 811c1bf
Show file tree
Hide file tree
Showing 46 changed files with 1,012 additions and 311 deletions.
2 changes: 1 addition & 1 deletion config_v1.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packageName": "v1",
"packageVersion": "1.35.0"
"packageVersion": "2.1.0"
}
2 changes: 1 addition & 1 deletion config_v2.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packageName": "v2",
"packageVersion": "1.35.0"
"packageVersion": "2.1.0"
}
4 changes: 3 additions & 1 deletion v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.

- API version: 1.0
- Package version: 1.35.0
- Package version: 2.1.0
- Build package: io.swagger.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -56,6 +56,7 @@ Class | Method | HTTP request | Description
*SystemusersApi* | [**SystemusersResetmfa**](docs/SystemusersApi.md#systemusersresetmfa) | **Post** /systemusers/{id}/resetmfa | Reset a system user's MFA token
*SystemusersApi* | [**SystemusersSystemsBindingList**](docs/SystemusersApi.md#systemuserssystemsbindinglist) | **Get** /systemusers/{id}/systems | List system user binding
*SystemusersApi* | [**SystemusersSystemsBindingPut**](docs/SystemusersApi.md#systemuserssystemsbindingput) | **Put** /systemusers/{id}/systems | Update a system user binding
*SystemusersApi* | [**SystemusersUnlock**](docs/SystemusersApi.md#systemusersunlock) | **Post** /systemusers/{id}/unlock | Unlock a system user
*TagsApi* | [**TagsDelete**](docs/TagsApi.md#tagsdelete) | **Delete** /tags/{name} | Delete a Tag
*TagsApi* | [**TagsGet**](docs/TagsApi.md#tagsget) | **Get** /Tags/{name} | List a Tag
*TagsApi* | [**TagsList**](docs/TagsApi.md#tagslist) | **Get** /tags | List All Tags
Expand Down Expand Up @@ -87,6 +88,7 @@ Class | Method | HTTP request | Description
- [CommandslistResults](docs/CommandslistResults.md)
- [Errorresponse](docs/Errorresponse.md)
- [Fde](docs/Fde.md)
- [Mfa](docs/Mfa.md)
- [Organizationslist](docs/Organizationslist.md)
- [OrganizationslistResults](docs/OrganizationslistResults.md)
- [Radiusserver](docs/Radiusserver.md)
Expand Down
350 changes: 301 additions & 49 deletions v1/api/swagger.yaml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions v1/applications_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type ApplicationsApiService service
@param "limit" (int32) The number of records to return at once.
@param "skip" (int32) The offset into the records to return.
@param "sort" (string)
@param "filter" (string) A filter to apply to the query.
@param "xOrgId" (string)
@return Applicationslist*/
func (a *ApplicationsApiService) ApplicationsList(ctx context.Context, contentType string, accept string, localVarOptionals map[string]interface{}) (Applicationslist, *http.Response, error) {
Expand Down Expand Up @@ -66,6 +67,9 @@ func (a *ApplicationsApiService) ApplicationsList(ctx context.Context, contentTy
if err := typeCheckParameter(localVarOptionals["sort"], "string", "sort"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["filter"], "string", "filter"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["xOrgId"], "string", "xOrgId"); err != nil {
return successPayload, nil, err
}
Expand All @@ -82,6 +86,9 @@ func (a *ApplicationsApiService) ApplicationsList(ctx context.Context, contentTy
if localVarTempParam, localVarOk := localVarOptionals["sort"].(string); localVarOk {
localVarQueryParams.Add("sort", parameterToString(localVarTempParam, ""))
}
if localVarTempParam, localVarOk := localVarOptionals["filter"].(string); localVarOk {
localVarQueryParams.Add("filter", parameterToString(localVarTempParam, ""))
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{ "application/json", }

Expand Down
16 changes: 15 additions & 1 deletion v1/command_results_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,14 @@ func (a *CommandResultsApiService) CommandResultsDelete(ctx context.Context, id
}

/* CommandResultsApiService List an individual Command result
This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```
This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```
* @param ctx context.Context for authentication, logging, tracing, etc.
@param id
@param contentType
@param accept
@param optional (nil or map[string]interface{}) with one or more of:
@param "fields" (string) 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.
@param "filter" (string) A filter to apply to the query.
@param "xOrgId" (string)
@return Commandresult*/
func (a *CommandResultsApiService) CommandResultsGet(ctx context.Context, id string, contentType string, accept string, localVarOptionals map[string]interface{}) (Commandresult, *http.Response, error) {
Expand All @@ -146,13 +147,19 @@ func (a *CommandResultsApiService) CommandResultsGet(ctx context.Context, id str
if err := typeCheckParameter(localVarOptionals["fields"], "string", "fields"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["filter"], "string", "filter"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["xOrgId"], "string", "xOrgId"); err != nil {
return successPayload, nil, err
}

if localVarTempParam, localVarOk := localVarOptionals["fields"].(string); localVarOk {
localVarQueryParams.Add("fields", parameterToString(localVarTempParam, ""))
}
if localVarTempParam, localVarOk := localVarOptionals["filter"].(string); localVarOk {
localVarQueryParams.Add("filter", parameterToString(localVarTempParam, ""))
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{ "application/json", }

Expand Down Expand Up @@ -222,6 +229,7 @@ func (a *CommandResultsApiService) CommandResultsGet(ctx context.Context, id str
@param "limit" (int32) The number of records to return at once. Limited to 100.
@param "skip" (int32) The offset into the records to return.
@param "sort" (string) Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending.
@param "filter" (string) A filter to apply to the query.
@param "xOrgId" (string)
@return Commandresultslist*/
func (a *CommandResultsApiService) CommandResultsList(ctx context.Context, contentType string, accept string, localVarOptionals map[string]interface{}) (Commandresultslist, *http.Response, error) {
Expand Down Expand Up @@ -252,6 +260,9 @@ func (a *CommandResultsApiService) CommandResultsList(ctx context.Context, conte
if err := typeCheckParameter(localVarOptionals["sort"], "string", "sort"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["filter"], "string", "filter"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["xOrgId"], "string", "xOrgId"); err != nil {
return successPayload, nil, err
}
Expand All @@ -268,6 +279,9 @@ func (a *CommandResultsApiService) CommandResultsList(ctx context.Context, conte
if localVarTempParam, localVarOk := localVarOptionals["sort"].(string); localVarOk {
localVarQueryParams.Add("sort", parameterToString(localVarTempParam, ""))
}
if localVarTempParam, localVarOk := localVarOptionals["filter"].(string); localVarOk {
localVarQueryParams.Add("filter", parameterToString(localVarTempParam, ""))
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{ "application/json", }

Expand Down
14 changes: 14 additions & 0 deletions v1/commands_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ func (a *CommandsApiService) CommandsDelete(ctx context.Context, id string, cont
@param accept
@param optional (nil or map[string]interface{}) with one or more of:
@param "fields" (string) 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.
@param "filter" (string) A filter to apply to the query.
@param "xOrgId" (string)
@return Command*/
func (a *CommandsApiService) CommandsGet(ctx context.Context, id string, contentType string, accept string, localVarOptionals map[string]interface{}) (Command, *http.Response, error) {
Expand All @@ -250,13 +251,19 @@ func (a *CommandsApiService) CommandsGet(ctx context.Context, id string, content
if err := typeCheckParameter(localVarOptionals["fields"], "string", "fields"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["filter"], "string", "filter"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["xOrgId"], "string", "xOrgId"); err != nil {
return successPayload, nil, err
}

if localVarTempParam, localVarOk := localVarOptionals["fields"].(string); localVarOk {
localVarQueryParams.Add("fields", parameterToString(localVarTempParam, ""))
}
if localVarTempParam, localVarOk := localVarOptionals["filter"].(string); localVarOk {
localVarQueryParams.Add("filter", parameterToString(localVarTempParam, ""))
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{ "application/json", }

Expand Down Expand Up @@ -326,6 +333,7 @@ func (a *CommandsApiService) CommandsGet(ctx context.Context, id string, content
@param "fields" (string) 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.
@param "limit" (int32) The number of records to return at once. Limited to 100.
@param "sort" (string) Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending.
@param "filter" (string) A filter to apply to the query.
@param "xOrgId" (string)
@return Commandslist*/
func (a *CommandsApiService) CommandsList(ctx context.Context, contentType string, accept string, localVarOptionals map[string]interface{}) (Commandslist, *http.Response, error) {
Expand Down Expand Up @@ -356,6 +364,9 @@ func (a *CommandsApiService) CommandsList(ctx context.Context, contentType strin
if err := typeCheckParameter(localVarOptionals["sort"], "string", "sort"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["filter"], "string", "filter"); err != nil {
return successPayload, nil, err
}
if err := typeCheckParameter(localVarOptionals["xOrgId"], "string", "xOrgId"); err != nil {
return successPayload, nil, err
}
Expand All @@ -372,6 +383,9 @@ func (a *CommandsApiService) CommandsList(ctx context.Context, contentType strin
if localVarTempParam, localVarOk := localVarOptionals["sort"].(string); localVarOk {
localVarQueryParams.Add("sort", parameterToString(localVarTempParam, ""))
}
if localVarTempParam, localVarOk := localVarOptionals["filter"].(string); localVarOk {
localVarQueryParams.Add("filter", parameterToString(localVarTempParam, ""))
}
// to determine the Content-Type header
localVarHttpContentTypes := []string{ "application/json", }

Expand Down
2 changes: 1 addition & 1 deletion v1/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func NewConfiguration() *Configuration {
cfg := &Configuration{
BasePath: "https://console.jumpcloud.com/api",
DefaultHeader: make(map[string]string),
UserAgent: "Swagger-Codegen/1.35.0/go",
UserAgent: "Swagger-Codegen/2.1.0/go",
}
return cfg
}
Expand Down
1 change: 1 addition & 0 deletions v1/docs/ApplicationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Name | Type | Description | Notes
**limit** | **int32**| The number of records to return at once. |
**skip** | **int32**| The offset into the records to return. |
**sort** | **string**| | [default to The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.]
**filter** | **string**| A filter to apply to the query. |
**xOrgId** | **string**| | [default to ]

### Return type
Expand Down
4 changes: 3 additions & 1 deletion v1/docs/CommandResultsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Name | Type | Description | Notes
> Commandresult CommandResultsGet(ctx, id, contentType, accept, optional)
List an individual Command result

This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```
This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```

### Required Parameters

Expand All @@ -75,6 +75,7 @@ Name | Type | Description | Notes
**contentType** | **string**| | [default to application/json]
**accept** | **string**| | [default to application/json]
**fields** | **string**| 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. | [default to ]
**filter** | **string**| A filter to apply to the query. |
**xOrgId** | **string**| | [default to ]

### Return type
Expand Down Expand Up @@ -118,6 +119,7 @@ Name | Type | Description | Notes
**limit** | **int32**| The number of records to return at once. Limited to 100. | [default to 10]
**skip** | **int32**| The offset into the records to return. | [default to 0]
**sort** | **string**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [default to ]
**filter** | **string**| A filter to apply to the query. |
**xOrgId** | **string**| | [default to ]

### Return type
Expand Down
2 changes: 2 additions & 0 deletions v1/docs/CommandsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Name | Type | Description | Notes
**contentType** | **string**| | [default to application/json]
**accept** | **string**| | [default to application/json]
**fields** | **string**| 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. | [default to ]
**filter** | **string**| A filter to apply to the query. |
**xOrgId** | **string**| | [default to ]

### Return type
Expand Down Expand Up @@ -165,6 +166,7 @@ Name | Type | Description | Notes
**fields** | **string**| 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. | [default to ]
**limit** | **int32**| The number of records to return at once. Limited to 100. | [default to 10]
**sort** | **string**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [default to ]
**filter** | **string**| A filter to apply to the query. |
**xOrgId** | **string**| | [default to ]

### Return type
Expand Down
12 changes: 12 additions & 0 deletions v1/docs/Mfa.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Mfa

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Exclusion** | **bool** | | [optional] [default to null]
**ExclusionUntil** | [**time.Time**](time.Time.md) | | [optional] [default to null]
**Configured** | **bool** | | [optional] [default to null]

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


3 changes: 2 additions & 1 deletion v1/docs/OrganizationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ Name | Type | Description | Notes
**contentType** | **string**| | [default to application/json]
**accept** | **string**| | [default to application/json]
**fields** | **string**| 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. | [default to ]
**filter** | **string**| A filter to apply to the query. |
**limit** | **int32**| The number of records to return at once. Limited to 100. | [default to 10]
**skip** | **int32**| The offset into the records to return. | [default to 0]
**sort** | **string**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [default to ]
**search** | **string**| |
**search** | **string**| A nested object containing a string `searchTerm` and a list of `fields` to search on. |

### Return type

Expand Down
1 change: 1 addition & 0 deletions v1/docs/RadiusServersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Name | Type | Description | Notes
**contentType** | **string**| | [default to application/json]
**accept** | **string**| | [default to application/json]
**fields** | **string**| 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. | [default to ]
**filter** | **string**| A filter to apply to the query. |
**limit** | **int32**| The number of records to return at once. Limited to 100. | [default to 10]
**skip** | **int32**| The offset into the records to return. | [default to 0]
**sort** | **string**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [default to ]
Expand Down
Loading

0 comments on commit 811c1bf

Please sign in to comment.