Skip to content

Commit

Permalink
Merge pull request #41 from TheJumpCloud/jcapi-publish-1565227015
Browse files Browse the repository at this point in the history
Publish autogenerated SDK
  • Loading branch information
joshjumpcloud authored Aug 15, 2019
2 parents 15c28c9 + 94e075c commit 19d4b07
Show file tree
Hide file tree
Showing 126 changed files with 12,901 additions and 3,944 deletions.
4 changes: 2 additions & 2 deletions config_v1.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packageName": "v1",
"packageVersion": "2.2.0"
}
"packageVersion": "2.3.0"
}
4 changes: 2 additions & 2 deletions config_v2.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packageName": "v2",
"packageVersion": "2.2.0"
}
"packageVersion": "2.3.0"
}
2 changes: 1 addition & 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: 2.2.0
- Package version: 2.3.0
- Build package: io.swagger.codegen.languages.GoClientCodegen

## Installation
Expand Down
130 changes: 94 additions & 36 deletions v1/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ schemes:
consumes:
- "application/json"
produces:
- "application/json; charset=utf-8"
- "application/json"
paths:
/applications:
get:
Expand All @@ -22,7 +22,7 @@ paths:
description: "The endpoint returns all your SSO / SAML Applications.\n\n####\
\ Sample Request\n```\ncurl -X GET https://console.jumpcloud.com/api/applications\
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \n\n```"
\ \\\n -H 'x-api-key: {API_KEY}'\n\n```"
operationId: "applications_list"
parameters:
- name: "fields"
Expand Down Expand Up @@ -291,7 +291,7 @@ paths:
description: "This endpoint returns a specific command based on the command\
\ ID.\n\n#### Sample Request\n```\ncurl -X GET https://console.jumpcloud.com/api/commands/{CommandID}\
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \n```"
\ \\\n -H 'x-api-key: {API_KEY}'\n```"
operationId: "commands_get"
parameters:
- name: "id"
Expand Down Expand Up @@ -465,7 +465,7 @@ paths:
description: "This endpoint returns the uploaded file(s) associated with a specific\
\ command.\n\n#### Sample Request\n\n```\ncurl -X GET https://console.jumpcloud.com/api/files/command/{commandID}\
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \n ```"
\ \\\n -H 'x-api-key: {API_KEY}'\n ```"
operationId: "command_file_get"
parameters:
- name: "id"
Expand Down Expand Up @@ -624,7 +624,7 @@ paths:
description: "This endpoint returns a specific command result.\n\n#### Sample\
\ Request\n```\ncurl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID}\
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \n ```"
\ \\\n -H 'x-api-key: {API_KEY}'\n ```"
operationId: "command_results_get"
parameters:
- name: "id"
Expand Down Expand Up @@ -689,7 +689,7 @@ paths:
description: "This endpoint deletes a specific command result.\n\n#### Sample\
\ Request\n```\ncurl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID}\
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \n ````"
\ \\\n -H 'x-api-key: {API_KEY}'\n ````"
operationId: "command_results_delete"
parameters:
- name: "id"
Expand Down Expand Up @@ -738,9 +738,9 @@ paths:
tags:
- "Organizations"
summary: "Get Organization Details"
description: "This endpoint returns Organization Details.\n\n#### Sample Request\
\ \n\n```\ncurl -X GET \\\n https://console.jumpcloud.com/api/organizations\
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
description: "This endpoint returns Organization Details.\n\n#### Sample Request\n\
\n```\ncurl -X GET \\\n https://console.jumpcloud.com/api/organizations \\\
\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}'\n ```"
operationId: "organization_list"
parameters:
Expand Down Expand Up @@ -903,7 +903,8 @@ paths:
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \\\n -d '{\n \"name\": \"{test_radius}\"\
,\n \"networkSourceIp\": \"{0.0.0.0}\",\n \"sharedSecret\":\"{secretpassword}\"\
\n}'\n```"
,\n \"userLockoutAction\": \"REMOVE\",\n \"userPasswordExpirationAction\"\
: \"MAINTAIN\"\n}'\n```"
operationId: "radius_servers_post"
parameters:
- in: "body"
Expand Down Expand Up @@ -952,10 +953,11 @@ paths:
- "Radius Servers"
summary: "Update Radius Servers"
description: "This endpoint allows you to update RADIUS servers in your organization.\n\
\n#### \n```\ncurl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID}\
\n####\n```\ncurl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID}\
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \\\n -d '{\n \"name\": \"{name_update}\"\
,\n \"networkSourceIp\": \"{0.0.0.0}\"\n}'\n```"
,\n \"networkSourceIp\": \"{0.0.0.0}\",\n \"userLockoutAction\": \"\
REMOVE\",\n \"userPasswordExpirationAction\": \"MAINTAIN\"\n}'\n```"
operationId: "radius_servers_put"
parameters:
- in: "body"
Expand Down Expand Up @@ -1005,9 +1007,9 @@ paths:
summary: "Search Organizations"
description: "This endpoint will return Organization data based on your search\
\ parameters. This endpoint WILL NOT allow you to add a new Organization.\n\
\nYou can use the supported parameters and pass those in the body of request.\
\ \n\nThe parameters must be passed as Content-Type application/json.\n\n\n\
#### Sample Request\n```\ncurl -X POST https://console.jumpcloud.com/api/search/organizations\
\nYou can use the supported parameters and pass those in the body of request.\n\
\nThe parameters must be passed as Content-Type application/json.\n\n\n####\
\ Sample Request\n```\ncurl -X POST https://console.jumpcloud.com/api/search/organizations\
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \\\n -d '{\n \"search\":{\n \"fields\"\
\ : [\"settings.name\"],\n \"searchTerm\": \"Second\"\n },\n \"fields\"\
Expand Down Expand Up @@ -1091,7 +1093,7 @@ paths:
\ /api/search/* routes. The `filter` and `searchFilter` parameters must be\
\ passed as Content-Type application/json.\n\nThe `filter` parameter is an\
\ object with a single property, either `and` or `or` with the value of the\
\ property being an array of query expressions. \n\nThis allows you to filter\
\ property being an array of query expressions.\n\nThis allows you to filter\
\ records using the logic of matching ALL or ANY records in the array of query\
\ expressions. If the `and` or `or` are not included the default behavior\
\ is to match ALL query expressions.\n\nThe `searchFilter` parameter allows\
Expand Down Expand Up @@ -1199,7 +1201,7 @@ paths:
\ of POST /api/search/* routes. The `filter` and `searchFilter` parameters\
\ must be passed as Content-Type application/json.\n\nThe `filter` parameter\
\ is an object with a single property, either `and` or `or` with the value\
\ of the property being an array of query expressions. \n\nThis allows you\
\ of the property being an array of query expressions.\n\nThis allows you\
\ to filter records using the logic of matching ALL or ANY records in the\
\ array of query expressions. If the `and` or `or` are not included the default\
\ behavior is to match ALL query expressions.\n\nThe `searchFilter` parameter\
Expand Down Expand Up @@ -1303,8 +1305,8 @@ paths:
summary: "List All Systems"
description: "This endpoint returns all Systems.\n\n#### Sample Requests\n```\n\
curl -X GET https://console.jumpcloud.com/api/systems \\\n -H 'Accept: application/json'\
\ \\\n -H 'Content-Type: application/json' \\\n -H 'x-api-key: {API_KEY}'\
\ \n\n```"
\ \\\n -H 'Content-Type: application/json' \\\n -H 'x-api-key: {API_KEY}'\n\
\n```"
operationId: "systems_list"
parameters:
- name: "fields"
Expand Down Expand Up @@ -1391,7 +1393,7 @@ paths:
description: "This endpoint returns an individual system.\n\n#### Sample Request\n\
```\ncurl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\\n\
\ -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \n ```"
\ \\\n -H 'x-api-key: {API_KEY}'\n ```"
operationId: "systems_get"
parameters:
- name: "id"
Expand Down Expand Up @@ -1753,7 +1755,7 @@ paths:
description: "This endpoint returns all systemusers.\n\n#### Sample Request\n\
\n```\ncurl -X GET https://console.jumpcloud.com/api/systemusers \\\n -H\
\ 'Accept: application/json' \\\n -H 'Content-Type: application/json' \\\n\
\ -H 'x-api-key: {API_KEY}' \n```"
\ -H 'x-api-key: {API_KEY}'\n```"
operationId: "systemusers_list"
parameters:
- name: "limit"
Expand Down Expand Up @@ -2020,7 +2022,7 @@ paths:
description: "This endpoint allows you to delete a particular system user.\n\
\n#### Sample Request\n```\ncurl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID}\
\ \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json'\
\ \\\n -H 'x-api-key: {API_KEY}' \n```"
\ \\\n -H 'x-api-key: {API_KEY}'\n```"
operationId: "systemusers_delete"
parameters:
- name: "id"
Expand Down Expand Up @@ -2070,7 +2072,7 @@ paths:
- "Systemusers"
summary: "List system user binding"
description: "Hidden as Tags is deprecated\n\nAdds or removes a system binding\
\ for a user. \n\nThis endpoint is only used for users still using JumpCloud\
\ for a user.\n\nThis endpoint is only used for users still using JumpCloud\
\ Tags. If you are using JumpCloud Groups please refer to the documentation\
\ found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system).\n\
\n\nList system bindings for a specific system user in a system and user binding\
Expand Down Expand Up @@ -2162,7 +2164,7 @@ paths:
- "Systemusers"
summary: "Update a system user binding"
description: "Hidden as Tags is deprecated\n\nAdds or removes a system binding\
\ for a user. \n\nThis endpoint is only used for users still using JumpCloud\
\ for a user.\n\nThis endpoint is only used for users still using JumpCloud\
\ Tags. If you are using JumpCloud Groups please refer to the documentation\
\ found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system).\n\
\n### Example\n\n#### Add (or remove) system to system user\n\n```\ncurl \\\
Expand Down Expand Up @@ -2230,11 +2232,11 @@ paths:
\ be aware that if the user does not complete MFA setup before the `exclusionUntil`\
\ date, they will be locked out of any resources that require MFA.\n\nPlease\
\ refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud)\
\ on setting up MFA for more information. \n\n#### Sample Request \n```\n\
curl -X POST \\\n https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa\
\ on setting up MFA for more information.\n\n#### Sample Request\n```\ncurl\
\ -X POST \\\n https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa\
\ \\\n -H 'x-api-key: {API_KEY}' \\\n -H 'Content-Type: application/json'\
\ \\\n -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}'\n\
\ \n\n```"
\ \\\n -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}'\n\n\
\n```"
operationId: "systemusers_resetmfa"
parameters:
- name: "id"
Expand Down Expand Up @@ -2616,7 +2618,7 @@ paths:
schema:
$ref: "#/definitions/tag"
examples:
application/json; charset=utf-8:
application/json:
_id: "58ea6b6610caf935133a3822"
name: "test123"
systems: []
Expand Down Expand Up @@ -3585,11 +3587,25 @@ definitions:
type: "array"
items:
type: "string"
userLockoutAction:
type: "string"
userPasswordExpirationAction:
type: "string"
mfa:
type: "string"
enum:
- "DISABLED"
- "ENABLED"
- "REQUIRED"
- "ALWAYS"
title: "RadiusServer"
example:
networkSourceIp: "networkSourceIp"
userLockoutAction: "userLockoutAction"
organization: "organization"
name: "name"
mfa: "DISABLED"
userPasswordExpirationAction: "userPasswordExpirationAction"
_id: "_id"
sharedSecret: "sharedSecret"
tagNames:
Expand All @@ -3616,8 +3632,11 @@ definitions:
totalCount: 0
results:
- networkSourceIp: "networkSourceIp"
userLockoutAction: "userLockoutAction"
organization: "organization"
name: "name"
mfa: "DISABLED"
userPasswordExpirationAction: "userPasswordExpirationAction"
_id: "_id"
sharedSecret: "sharedSecret"
tagNames:
Expand All @@ -3627,8 +3646,11 @@ definitions:
- "tags"
- "tags"
- networkSourceIp: "networkSourceIp"
userLockoutAction: "userLockoutAction"
organization: "organization"
name: "name"
mfa: "DISABLED"
userPasswordExpirationAction: "userPasswordExpirationAction"
_id: "_id"
sharedSecret: "sharedSecret"
tagNames:
Expand Down Expand Up @@ -3841,10 +3863,24 @@ definitions:
type: "array"
items:
type: "string"
userLockoutAction:
type: "string"
userPasswordExpirationAction:
type: "string"
mfa:
type: "string"
enum:
- "DISABLED"
- "ENABLED"
- "REQUIRED"
- "ALWAYS"
title: "RadiusServerPut"
example:
networkSourceIp: "networkSourceIp"
userLockoutAction: "userLockoutAction"
name: "name"
mfa: "DISABLED"
userPasswordExpirationAction: "userPasswordExpirationAction"
_id: "_id"
tagNames:
- "tagNames"
Expand Down Expand Up @@ -4651,6 +4687,17 @@ definitions:
sharedSecret:
type: "string"
description: "RADIUS shared secret between the server and client."
userLockoutAction:
type: "string"
userPasswordExpirationAction:
type: "string"
mfa:
type: "string"
enum:
- "DISABLED"
- "ENABLED"
- "REQUIRED"
- "ALWAYS"
title: "RadiusServerPost"
x-stoplight:
id: "radiusserverpost"
Expand Down Expand Up @@ -4862,6 +4909,17 @@ definitions:
type: "array"
items:
type: "string"
userLockoutAction:
type: "string"
userPasswordExpirationAction:
type: "string"
mfa:
type: "string"
enum:
- "DISABLED"
- "ENABLED"
- "REQUIRED"
- "ALWAYS"
example:
name: "test radius"
networkSourceIp: "0.0.0.0"
Expand Down Expand Up @@ -5346,6 +5404,13 @@ parameters:
required: false
type: "string"
x-exportParamName: "Fields"
trait:filter:filter:
name: "filter"
in: "query"
description: "A filter to apply to the query."
required: false
type: "string"
x-exportParamName: "Filter"
trait:skip:skip:
name: "skip"
in: "query"
Expand All @@ -5362,13 +5427,6 @@ parameters:
type: "integer"
default: 10
x-exportParamName: "Limit"
trait:filter:filter:
name: "filter"
in: "query"
description: "A filter to apply to the query."
required: false
type: "string"
x-exportParamName: "Filter"
trait:requestHeaders:Content-Type:
name: "Content-Type"
in: "header"
Expand Down
4 changes: 2 additions & 2 deletions v1/applications_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type ApplicationsApiService service


/* ApplicationsApiService Applications
The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```
The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -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 contentType
@param accept
Expand Down Expand Up @@ -100,7 +100,7 @@ func (a *ApplicationsApiService) ApplicationsList(ctx context.Context, contentTy

// to determine the Accept header
localVarHttpHeaderAccepts := []string{
"application/json; charset=utf-8",
"application/json",
}

// set Accept header
Expand Down
6 changes: 6 additions & 0 deletions v1/body.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ type Body struct {
NetworkSourceIp string `json:"networkSourceIp"`

Tags []string `json:"tags,omitempty"`

UserLockoutAction string `json:"userLockoutAction,omitempty"`

UserPasswordExpirationAction string `json:"userPasswordExpirationAction,omitempty"`

Mfa string `json:"mfa,omitempty"`
}
Loading

0 comments on commit 19d4b07

Please sign in to comment.