-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continuous Integration Build Artifacts (eMASS Clients)
- Loading branch information
1 parent
6b59323
commit e1c24e6
Showing
251 changed files
with
282 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.1.1-SNAPSHOT | ||
6.2.1-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
@@ -23,7 +23,8 @@ Gem::Specification.new do |s| | |
s.email = ["[email protected]"] | ||
s.homepage = "https://openapi-generator.tech" | ||
s.summary = "Enterprise Mission Assurance Support Service (eMASS) Ruby Gem" | ||
s.description = "The Enterprise Mission Assurance Support Service (eMASS) Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. <strong>Register External Application (that use the eMASS API)</strong></br> New users will need to [register](https://nisp.emass.apps.mil/Content/Help/jobaids/eMASS_OT_NewUser_Job_Aid.pdf) an API key with the eMASS development team prior to accessing the site for the first time. The eMASS REST API requires a client certificate (SSL/TLS, DoD PKI only). Use the `Registration` endpoint to register the client certificate.</br></br> Every call to the eMASS REST API will require the use of the agreed upon public key certificate and API key. The API key must be provided in the request header for all endpoint calls (api-key). If the service receives an untrusted certificate or API key, a 401 error response code will be returned along with an error message.</br></br> <strong>Available Request Headers</strong></br> <table> <tr> <th align=left>key</th> <th align=left>Example Value</th> <th align=left>Description</th> </tr> <tr> <td>`api-key`</td> <td>api-key-provided-by-emass</td> <td>This API key must be provided in the request header for all endpoint calls</td> </tr> <tr> <td>`user-uid`</td> <td>USER.UID.KEY</td> <td>This User unique identifier key must be provided in the request header for all PUT, POST, and DELETE endpoint calls</td> </tr> <tr> <td></td><td></td> <td> Note: For DoD users this is the DoD ID Number (EIDIPI) on their DoD CAC </td> </tr> </table> </br><strong>Approve API Client for Actionable Requests</strong></br> Users are required to log-in to eMASS and grant permissions for a client to update data within eMASS on their behalf. This is only required for actionable requests (PUT, POST, DELETE). The Registration Endpoint and all GET requests can be accessed without completing this process with the correct permissions. Please note that leaving a field parameter blank (for PUT/POST requests) has the potential to clear information in the active eMASS records. To establish an account with eMASS and/or acquire an api-key/user-uid, contact one of the listed POC: " | ||
# s.description = "The Enterprise Mission Assurance Support Service (eMASS) Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. <strong>Register External Application (that use the eMASS API)</strong></br> New users will need to [register](https://nisp.emass.apps.mil/Content/Help/jobaids/eMASS_OT_NewUser_Job_Aid.pdf) an API key with the eMASS development team prior to accessing the site for the first time. The eMASS REST API requires a client certificate (SSL/TLS, DoD PKI only). Use the `Registration` endpoint to register the client certificate.</br></br> Every call to the eMASS REST API will require the use of the agreed upon public key certificate and API key. The API key must be provided in the request header for all endpoint calls (api-key). If the service receives an untrusted certificate or API key, a 401 error response code will be returned along with an error message.</br></br> <strong>Available Request Headers</strong></br> <table> <tr> <th align=left>key</th> <th align=left>Example Value</th> <th align=left>Description</th> </tr> <tr> <td>`api-key`</td> <td>api-key-provided-by-emass</td> <td>This API key must be provided in the request header for all endpoint calls</td> </tr> <tr> <td>`user-uid`</td> <td>USER.UID.KEY</td> <td>This User unique identifier key must be provided in the request header for all PUT, POST, and DELETE endpoint calls</td> </tr> <tr> <td></td><td></td> <td> Note: For DoD users this is the DoD ID Number (EIDIPI) on their DoD CAC </td> </tr> </table> </br><strong>Approve API Client for Actionable Requests</strong></br> Users are required to log-in to eMASS and grant permissions for a client to update data within eMASS on their behalf. This is only required for actionable requests (PUT, POST, DELETE). The Registration Endpoint and all GET requests can be accessed without completing this process with the correct permissions. Please note that leaving a field parameter blank (for PUT/POST requests) has the potential to clear information in the active eMASS records. To establish an account with eMASS and/or acquire an api-key/user-uid, contact one of the listed POC: " | ||
s.description = "The emass_client is a ruby gem that implements the Enterprise Mission Assurance Support Service (eMASS) Representational State Transfer (REST) Application Programming Interface (API) specifications" | ||
s.license = "Apache-2.0" | ||
s.required_ruby_version = ">= 2.4" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
@@ -20,28 +20,22 @@ def initialize(api_client = ApiClient.default) | |
@api_client = api_client | ||
end | ||
# Register user certificate and obtain an API key | ||
# Returns the api-key - This API key must be provided in the request header for all endpoint calls (api-key). | ||
# @param register_user_request_post_body [RegisterUserRequestPostBody] Register certificate provided by eMASS. | ||
# Returns the API Key (api-key) that must be provided in the request header for all endpoint calls. | ||
# @param [Hash] opts the optional parameters | ||
# @return [Register] | ||
def register_user(register_user_request_post_body, opts = {}) | ||
data, _status_code, _headers = register_user_with_http_info(register_user_request_post_body, opts) | ||
def register_user(opts = {}) | ||
data, _status_code, _headers = register_user_with_http_info(opts) | ||
data | ||
end | ||
|
||
# Register user certificate and obtain an API key | ||
# Returns the api-key - This API key must be provided in the request header for all endpoint calls (api-key). | ||
# @param register_user_request_post_body [RegisterUserRequestPostBody] Register certificate provided by eMASS. | ||
# Returns the API Key (api-key) that must be provided in the request header for all endpoint calls. | ||
# @param [Hash] opts the optional parameters | ||
# @return [Array<(Register, Integer, Hash)>] Register data, response status code and response headers | ||
def register_user_with_http_info(register_user_request_post_body, opts = {}) | ||
def register_user_with_http_info(opts = {}) | ||
if @api_client.config.debugging | ||
@api_client.config.logger.debug 'Calling API: RegistrationApi.register_user ...' | ||
end | ||
# verify the required parameter 'register_user_request_post_body' is set | ||
if @api_client.config.client_side_validation && register_user_request_post_body.nil? | ||
fail ArgumentError, "Missing the required parameter 'register_user_request_post_body' when calling RegistrationApi.register_user" | ||
end | ||
# resource path | ||
local_var_path = '/api/api-key' | ||
|
||
|
@@ -52,17 +46,12 @@ def register_user_with_http_info(register_user_request_post_body, opts = {}) | |
header_params = opts[:header_params] || {} | ||
# HTTP header 'Accept' (if needed) | ||
header_params['Accept'] = @api_client.select_header_accept(['application/json']) | ||
# HTTP header 'Content-Type' | ||
content_type = @api_client.select_header_content_type(['application/json']) | ||
if !content_type.nil? | ||
header_params['Content-Type'] = content_type | ||
end | ||
|
||
# form parameters | ||
form_params = opts[:form_params] || {} | ||
|
||
# http body (model) | ||
post_body = opts[:debug_body] || @api_client.object_to_http_body(register_user_request_post_body) | ||
post_body = opts[:debug_body] | ||
|
||
# return_type | ||
return_type = opts[:debug_return_type] || 'Register' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
The version of the OpenAPI document: v3.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 6.1.1-SNAPSHOT | ||
OpenAPI Generator version: 6.2.1-SNAPSHOT | ||
=end | ||
|
||
|
Oops, something went wrong.