Skip to content

Commit

Permalink
Merge pull request #27 from TheJumpCloud/publish-1.35.0
Browse files Browse the repository at this point in the history
Update Golang SDK to latest OAS definition. Major release 2.0.0
  • Loading branch information
Bob authored Jan 21, 2019
2 parents 3201460 + 2ab591a commit 3b7ccff
Show file tree
Hide file tree
Showing 78 changed files with 3,168 additions and 852 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.34.0"
"packageVersion": "1.35.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.34.0"
"packageVersion": "1.35.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.34.0
- Package version: 1.35.0
- Build package: io.swagger.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -75,6 +75,7 @@ Class | Method | HTTP request | Description
- [ApplicationConfigIdpEntityIdTooltipVariables](docs/ApplicationConfigIdpEntityIdTooltipVariables.md)
- [Applicationslist](docs/Applicationslist.md)
- [Body](docs/Body.md)
- [Body1](docs/Body1.md)
- [Command](docs/Command.md)
- [Commandfilereturn](docs/Commandfilereturn.md)
- [CommandfilereturnResults](docs/CommandfilereturnResults.md)
Expand All @@ -97,6 +98,7 @@ Class | Method | HTTP request | Description
- [Sshkeypost](docs/Sshkeypost.md)
- [System](docs/System.md)
- [SystemNetworkInterfaces](docs/SystemNetworkInterfaces.md)
- [SystemSshdParams](docs/SystemSshdParams.md)
- [Systemput](docs/Systemput.md)
- [SystemputAgentBoundMessages](docs/SystemputAgentBoundMessages.md)
- [Systemslist](docs/Systemslist.md)
Expand Down
208 changes: 125 additions & 83 deletions v1/api/swagger.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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
21 changes: 21 additions & 0 deletions v1/body_1.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* JumpCloud APIs
*
* JumpCloud's V1 API. This set of endpoints allows JumpCloud customers to manage commands, systems, & system users.
*
* API version: 1.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/

package v1

import (
"time"
)

type Body1 struct {

Exclusion bool `json:"exclusion,omitempty"`

ExclusionUntil time.Time `json:"exclusionUntil,omitempty"`
}
4 changes: 2 additions & 2 deletions v1/command_results_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CommandResultsApiService service


/* CommandResultsApiService Delete a Command result
This endpoint deletes 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 deletes 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}' ````
* @param ctx context.Context for authentication, logging, tracing, etc.
@param id
@param contentType
Expand Down Expand Up @@ -117,7 +117,7 @@ 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/{CommandID} \\ -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
Expand Down
4 changes: 2 additions & 2 deletions v1/commandresult.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ type Commandresult struct {
Files []string `json:"files,omitempty"`

// The time that the command was sent.
RequestTime int32 `json:"requestTime,omitempty"`
RequestTime string `json:"requestTime,omitempty"`

// The time that the command was completed.
ResponseTime int32 `json:"responseTime,omitempty"`
ResponseTime string `json:"responseTime,omitempty"`

Response *CommandresultResponse `json:"response,omitempty"`

Expand Down
4 changes: 2 additions & 2 deletions v1/commands_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CommandsApiService service


/* CommandsApiService Get a Command File
This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```
This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -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
Expand Down Expand Up @@ -221,7 +221,7 @@ func (a *CommandsApiService) CommandsDelete(ctx context.Context, id string, cont
}

/* CommandsApiService List an individual Command
This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```
This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -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
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.34.0/go",
UserAgent: "Swagger-Codegen/1.35.0/go",
}
return cfg
}
Expand Down
2 changes: 1 addition & 1 deletion v1/docs/ApplicationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Method | HTTP request | Description
> Applicationslist ApplicationsList(ctx, contentType, accept, optional)
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}' ```

### Required Parameters

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Exclusion** | **bool** | | [optional] [default to null]
**ExclusionUntil** | [**time.Time**](time.Time.md) | | [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)


4 changes: 2 additions & 2 deletions v1/docs/CommandResultsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Method | HTTP request | Description
> Commandresult CommandResultsDelete(ctx, id, contentType, accept, optional)
Delete a Command result

This endpoint deletes 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 deletes 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}' ````

### Required Parameters

Expand Down 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/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```

### Required Parameters

Expand Down
4 changes: 2 additions & 2 deletions v1/docs/Commandresult.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Name | Type | Description | Notes
**User** | **string** | The user the command ran as. | [optional] [default to null]
**Sudo** | **bool** | If the user had sudo rights | [optional] [default to null]
**Files** | **[]string** | An array of file ids that were included in the command | [optional] [default to null]
**RequestTime** | **int32** | The time that the command was sent. | [optional] [default to null]
**ResponseTime** | **int32** | The time that the command was completed. | [optional] [default to null]
**RequestTime** | **string** | The time that the command was sent. | [optional] [default to null]
**ResponseTime** | **string** | The time that the command was completed. | [optional] [default to null]
**Response** | [***CommandresultResponse**](commandresult_response.md) | | [optional] [default to null]
**Id** | **string** | The ID of the command. | [optional] [default to null]

Expand Down
4 changes: 2 additions & 2 deletions v1/docs/CommandsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Method | HTTP request | Description
> Commandfilereturn CommandFileGet(ctx, id, contentType, accept, optional)
Get a Command File

This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```
This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```

### Required Parameters

Expand Down Expand Up @@ -101,7 +101,7 @@ Name | Type | Description | Notes
> Command CommandsGet(ctx, id, contentType, accept, optional)
List an individual Command

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

### Required Parameters

Expand Down
1 change: 1 addition & 0 deletions v1/docs/Fde.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**KeyPresent** | **bool** | | [optional] [default to null]
**Active** | **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)

Expand Down
2 changes: 1 addition & 1 deletion v1/docs/OrganizationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Method | HTTP request | Description
> Organizationslist OrganizationList(ctx, contentType, accept, optional)
Get Organization Details

This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```
This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```

### Required Parameters

Expand Down
2 changes: 1 addition & 1 deletion v1/docs/RadiusServersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Name | Type | Description | Notes
> Radiusserverput RadiusServersPut(ctx, contentType, accept, optional)
Update Radius Servers

This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ```
This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ```

### Required Parameters

Expand Down
6 changes: 3 additions & 3 deletions v1/docs/SearchApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Method | HTTP request | Description
> Organizationslist SearchOrganizationsPost(ctx, contentType, accept, optional)
Search Organizations

This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ```
This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ```

### Required Parameters

Expand Down Expand Up @@ -55,7 +55,7 @@ Name | Type | Description | Notes
> Systemslist SearchSystemsPost(ctx, contentType, accept, optional)
Search Systems

Return Systems in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/_* routes. The `filter` parameter must be passed as Content-Type application/json supports advanced filtering using the MongoDB JSON query syntax. The `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. This 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. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : { \"or\" : [ {\"hostname\" : { \"$regex\" : \"^www\" }}, {\"hostname\" : {\"$regex\" : \"^db\"}} ] }, \"fields\" : \"os hostname displayName\" }' ```
Return Systems in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/_* routes. The `filter` parameter must be passed as Content-Type application/json. The `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. This 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. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : { \"or\" : [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ```

### Required Parameters

Expand Down Expand Up @@ -98,7 +98,7 @@ Name | Type | Description | Notes
> Systemuserslist SearchSystemusersPost(ctx, contentType, accept, optional)
Search System Users

Return System Users in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/_* routes. The `filter` parameter must be passed as Content-Type application/json supports advanced filtering using the MongoDB JSON query syntax. The `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. This 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. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"email\" : { \"$regex\" : \"gmail.com$\"}}], \"fields\" : \"email username sudo\" }' ```
Return System Users in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/_* routes. The `filter` parameter must be passed as Content-Type application/json. The `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. This 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. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"email\" : \"[email protected]\"}], \"fields\" : \"email username sudo\" }' ```

### Required Parameters

Expand Down
Loading

0 comments on commit 3b7ccff

Please sign in to comment.