-
Notifications
You must be signed in to change notification settings - Fork 1
v0.0.15 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
v0.0.15 #18
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| 3.0.64 | ||
| 3.0.73 | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| =begin | ||
| #API Reference | ||
|
|
||
| #Review our [API Introduction](../api-introduction) to get started. | ||
|
|
||
| OpenAPI spec version: 1.0 | ||
|
|
||
| Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
| =end | ||
|
|
||
| module TurnkeyClient | ||
| class AppProofApi | ||
| attr_accessor :api_client | ||
|
|
||
| def initialize(api_client = ApiClient.default) | ||
| @api_client = api_client | ||
| end | ||
| # List app proofs for an activity | ||
| # List the app proofs for the given activity. | ||
| # @param body | ||
| # @param [Hash] opts the optional parameters | ||
| # @return [GetAppProofsResponse] | ||
| def get_app_proofs(body, opts = {}) | ||
| data, _status_code, _headers = get_app_proofs_with_http_info(body, opts) | ||
| data | ||
| end | ||
|
|
||
| # List app proofs for an activity | ||
| # List the app proofs for the given activity. | ||
| # @param body | ||
| # @param [Hash] opts the optional parameters | ||
| # @return [Array<(GetAppProofsResponse, Integer, Hash)>] GetAppProofsResponse data, response status code and response headers | ||
| def get_app_proofs_with_http_info(body, opts = {}) | ||
| if @api_client.config.debugging | ||
| @api_client.config.logger.debug 'Calling API: AppProofApi.get_app_proofs ...' | ||
| end | ||
| # verify the required parameter 'body' is set | ||
| if @api_client.config.client_side_validation && body.nil? | ||
| fail ArgumentError, "Missing the required parameter 'body' when calling AppProofApi.get_app_proofs" | ||
| end | ||
| # resource path | ||
| local_var_path = '/public/v1/query/list_app_proofs' | ||
|
|
||
| # query parameters | ||
| query_params = opts[:query_params] || {} | ||
|
|
||
| # header parameters | ||
| header_params = opts[:header_params] || {} | ||
| # HTTP header 'Accept' (if needed) | ||
| header_params['Accept'] = @api_client.select_header_accept(['application/json']) | ||
| # HTTP header 'Content-Type' | ||
| header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) | ||
|
|
||
| # form parameters | ||
| form_params = opts[:form_params] || {} | ||
|
|
||
| # http body (model) | ||
| post_body = opts[:body] || @api_client.object_to_http_body(body) | ||
|
|
||
| return_type = opts[:return_type] || 'GetAppProofsResponse' | ||
|
|
||
| auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth'] | ||
| data, status_code, headers = @api_client.call_api(:POST, local_var_path, | ||
| :header_params => header_params, | ||
| :query_params => query_params, | ||
| :form_params => form_params, | ||
| :body => post_body, | ||
| :auth_names => auth_names, | ||
| :return_type => return_type) | ||
|
|
||
| if @api_client.config.debugging | ||
| @api_client.config.logger.debug "API called: AppProofApi#get_app_proofs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" | ||
| end | ||
| return data, status_code, headers | ||
| end | ||
| end | ||
| end |
135 changes: 135 additions & 0 deletions
135
turnkey_client/lib/turnkey_client/api/boot_proof_api.rb
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,135 @@ | ||
| =begin | ||
| #API Reference | ||
|
|
||
| #Review our [API Introduction](../api-introduction) to get started. | ||
|
|
||
| OpenAPI spec version: 1.0 | ||
|
|
||
| Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
| =end | ||
|
|
||
| module TurnkeyClient | ||
| class BootProofApi | ||
| attr_accessor :api_client | ||
|
|
||
| def initialize(api_client = ApiClient.default) | ||
| @api_client = api_client | ||
| end | ||
| # Get a specific boot proof | ||
| # Get the boot proof for a given ephemeral key. | ||
| # @param body | ||
| # @param [Hash] opts the optional parameters | ||
| # @return [BootProofResponse] | ||
| def get_boot_proof(body, opts = {}) | ||
| data, _status_code, _headers = get_boot_proof_with_http_info(body, opts) | ||
| data | ||
| end | ||
|
|
||
| # Get a specific boot proof | ||
| # Get the boot proof for a given ephemeral key. | ||
| # @param body | ||
| # @param [Hash] opts the optional parameters | ||
| # @return [Array<(BootProofResponse, Integer, Hash)>] BootProofResponse data, response status code and response headers | ||
| def get_boot_proof_with_http_info(body, opts = {}) | ||
| if @api_client.config.debugging | ||
| @api_client.config.logger.debug 'Calling API: BootProofApi.get_boot_proof ...' | ||
| end | ||
| # verify the required parameter 'body' is set | ||
| if @api_client.config.client_side_validation && body.nil? | ||
| fail ArgumentError, "Missing the required parameter 'body' when calling BootProofApi.get_boot_proof" | ||
| end | ||
| # resource path | ||
| local_var_path = '/public/v1/query/get_boot_proof' | ||
|
|
||
| # query parameters | ||
| query_params = opts[:query_params] || {} | ||
|
|
||
| # header parameters | ||
| header_params = opts[:header_params] || {} | ||
| # HTTP header 'Accept' (if needed) | ||
| header_params['Accept'] = @api_client.select_header_accept(['application/json']) | ||
| # HTTP header 'Content-Type' | ||
| header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) | ||
|
|
||
| # form parameters | ||
| form_params = opts[:form_params] || {} | ||
|
|
||
| # http body (model) | ||
| post_body = opts[:body] || @api_client.object_to_http_body(body) | ||
|
|
||
| return_type = opts[:return_type] || 'BootProofResponse' | ||
|
|
||
| auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth'] | ||
| data, status_code, headers = @api_client.call_api(:POST, local_var_path, | ||
| :header_params => header_params, | ||
| :query_params => query_params, | ||
| :form_params => form_params, | ||
| :body => post_body, | ||
| :auth_names => auth_names, | ||
| :return_type => return_type) | ||
|
|
||
| if @api_client.config.debugging | ||
| @api_client.config.logger.debug "API called: BootProofApi#get_boot_proof\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" | ||
| end | ||
| return data, status_code, headers | ||
| end | ||
| # Get the latest boot proof for an app | ||
| # Get the latest boot proof for a given enclave app name. | ||
| # @param body | ||
| # @param [Hash] opts the optional parameters | ||
| # @return [BootProofResponse] | ||
| def get_latest_boot_proof(body, opts = {}) | ||
| data, _status_code, _headers = get_latest_boot_proof_with_http_info(body, opts) | ||
| data | ||
| end | ||
|
|
||
| # Get the latest boot proof for an app | ||
| # Get the latest boot proof for a given enclave app name. | ||
| # @param body | ||
| # @param [Hash] opts the optional parameters | ||
| # @return [Array<(BootProofResponse, Integer, Hash)>] BootProofResponse data, response status code and response headers | ||
| def get_latest_boot_proof_with_http_info(body, opts = {}) | ||
| if @api_client.config.debugging | ||
| @api_client.config.logger.debug 'Calling API: BootProofApi.get_latest_boot_proof ...' | ||
| end | ||
| # verify the required parameter 'body' is set | ||
| if @api_client.config.client_side_validation && body.nil? | ||
| fail ArgumentError, "Missing the required parameter 'body' when calling BootProofApi.get_latest_boot_proof" | ||
| end | ||
| # resource path | ||
| local_var_path = '/public/v1/query/get_latest_boot_proof' | ||
|
|
||
| # query parameters | ||
| query_params = opts[:query_params] || {} | ||
|
|
||
| # header parameters | ||
| header_params = opts[:header_params] || {} | ||
| # HTTP header 'Accept' (if needed) | ||
| header_params['Accept'] = @api_client.select_header_accept(['application/json']) | ||
| # HTTP header 'Content-Type' | ||
| header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) | ||
|
|
||
| # form parameters | ||
| form_params = opts[:form_params] || {} | ||
|
|
||
| # http body (model) | ||
| post_body = opts[:body] || @api_client.object_to_http_body(body) | ||
|
|
||
| return_type = opts[:return_type] || 'BootProofResponse' | ||
|
|
||
| auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth'] | ||
| data, status_code, headers = @api_client.call_api(:POST, local_var_path, | ||
| :header_params => header_params, | ||
| :query_params => query_params, | ||
| :form_params => form_params, | ||
| :body => post_body, | ||
| :auth_names => auth_names, | ||
| :return_type => return_type) | ||
|
|
||
| if @api_client.config.debugging | ||
| @api_client.config.logger.debug "API called: BootProofApi#get_latest_boot_proof\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" | ||
| end | ||
| return data, status_code, headers | ||
| end | ||
| end | ||
| end |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity - why does this change? Looking at other commits this always gets bumped so not a problem, more so just curious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just checked my
swagger-codegenversion and I see that its 3.0.73, so its probably the version ofswagger-codegenof whoever built the client