insights-approval-api-client 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +142 -0
- data/Rakefile +10 -0
- data/client-meta.json +9 -0
- data/docs/Action.md +27 -0
- data/docs/ActionApi.md +172 -0
- data/docs/ActionCollection.md +21 -0
- data/docs/CollectionLinks.md +23 -0
- data/docs/CollectionMetadata.md +21 -0
- data/docs/GraphqlApi.md +62 -0
- data/docs/GraphqlIn.md +21 -0
- data/docs/GraphqlOut.md +19 -0
- data/docs/GroupRef.md +19 -0
- data/docs/HttpApiError.md +19 -0
- data/docs/HttpApiErrorCollection.md +17 -0
- data/docs/Request.md +49 -0
- data/docs/RequestApi.md +292 -0
- data/docs/RequestCollection.md +21 -0
- data/docs/RequestIn.md +23 -0
- data/docs/ResourceObject.md +21 -0
- data/docs/Tag.md +17 -0
- data/docs/TagResource.md +21 -0
- data/docs/Template.md +23 -0
- data/docs/TemplateApi.md +124 -0
- data/docs/TemplateCollection.md +21 -0
- data/docs/Workflow.md +29 -0
- data/docs/WorkflowApi.md +469 -0
- data/docs/WorkflowCollection.md +21 -0
- data/generate.sh +9 -0
- data/git_push.sh +58 -0
- data/insights-approval-api-client.gemspec +39 -0
- data/lib/insights-approval-api-client.rb +63 -0
- data/lib/insights-approval-api-client/api/action_api.rb +231 -0
- data/lib/insights-approval-api-client/api/graphql_api.rb +86 -0
- data/lib/insights-approval-api-client/api/request_api.rb +381 -0
- data/lib/insights-approval-api-client/api/template_api.rb +169 -0
- data/lib/insights-approval-api-client/api/workflow_api.rb +630 -0
- data/lib/insights-approval-api-client/api_client.rb +386 -0
- data/lib/insights-approval-api-client/api_error.rb +57 -0
- data/lib/insights-approval-api-client/configuration.rb +268 -0
- data/lib/insights-approval-api-client/models/action.rb +293 -0
- data/lib/insights-approval-api-client/models/action_collection.rb +226 -0
- data/lib/insights-approval-api-client/models/collection_links.rb +237 -0
- data/lib/insights-approval-api-client/models/collection_metadata.rb +227 -0
- data/lib/insights-approval-api-client/models/graphql_in.rb +237 -0
- data/lib/insights-approval-api-client/models/graphql_out.rb +219 -0
- data/lib/insights-approval-api-client/models/group_ref.rb +223 -0
- data/lib/insights-approval-api-client/models/http_api_error.rb +218 -0
- data/lib/insights-approval-api-client/models/http_api_error_collection.rb +210 -0
- data/lib/insights-approval-api-client/models/request.rb +417 -0
- data/lib/insights-approval-api-client/models/request_collection.rb +226 -0
- data/lib/insights-approval-api-client/models/request_in.rb +255 -0
- data/lib/insights-approval-api-client/models/resource_object.rb +243 -0
- data/lib/insights-approval-api-client/models/tag.rb +207 -0
- data/lib/insights-approval-api-client/models/tag_resource.rb +242 -0
- data/lib/insights-approval-api-client/models/template.rb +235 -0
- data/lib/insights-approval-api-client/models/template_collection.rb +226 -0
- data/lib/insights-approval-api-client/models/workflow.rb +283 -0
- data/lib/insights-approval-api-client/models/workflow_collection.rb +226 -0
- data/lib/insights-approval-api-client/version.rb +15 -0
- data/openapi.json +1540 -0
- data/spec/api/action_api_spec.rb +72 -0
- data/spec/api/graphql_api_spec.rb +47 -0
- data/spec/api/request_api_spec.rb +100 -0
- data/spec/api/template_api_spec.rb +62 -0
- data/spec/api/workflow_api_spec.rb +145 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/action_collection_spec.rb +53 -0
- data/spec/models/action_spec.rb +75 -0
- data/spec/models/collection_links_spec.rb +59 -0
- data/spec/models/collection_metadata_spec.rb +53 -0
- data/spec/models/graphql_in_spec.rb +53 -0
- data/spec/models/graphql_out_spec.rb +47 -0
- data/spec/models/group_ref_spec.rb +47 -0
- data/spec/models/http_api_error_collection_spec.rb +41 -0
- data/spec/models/http_api_error_spec.rb +47 -0
- data/spec/models/request_collection_spec.rb +53 -0
- data/spec/models/request_in_spec.rb +59 -0
- data/spec/models/request_spec.rb +145 -0
- data/spec/models/resource_object_spec.rb +53 -0
- data/spec/models/tag_resource_spec.rb +53 -0
- data/spec/models/tag_spec.rb +41 -0
- data/spec/models/template_collection_spec.rb +53 -0
- data/spec/models/template_spec.rb +59 -0
- data/spec/models/workflow_collection_spec.rb +53 -0
- data/spec/models/workflow_spec.rb +77 -0
- data/spec/spec_helper.rb +111 -0
- metadata +218 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3dbea180a4ad74df8918453b36b2f3fd98d38249d85bb003cbafa1ef87aa79e7
|
4
|
+
data.tar.gz: 1540ce146fab4470de3f8ced5545d2ad61fdfc6999a2606baf9244b0cb2f72db
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c3b0433715fd86775ffc00bca399f23d2f6af4bec7723c10eb45eeb68907963c45e6efff9019458fe0f0e2c8115621c53fbedfcf9d40e394ed163c40a553fa8a
|
7
|
+
data.tar.gz: 070d739ce6595bf34e816ee1bcbc4938b30054f765305ec0db65c471d38e100316429f16046c765fa292cee7ab71ecac635c97a4cb1e14ce633e120bc2be67e6
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
# approval-api-client-ruby
|
2
|
+
|
3
|
+
ApprovalApiClient - the Ruby gem for the Insights Service Approval APIs
|
4
|
+
|
5
|
+
APIs to query approval service
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
|
+
|
9
|
+
- API version: 1.0.0
|
10
|
+
- Package version: 1.0.0
|
11
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
### Build a gem
|
16
|
+
|
17
|
+
To build the Ruby code into a gem:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem build approval-api-client-ruby.gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
Then either install the gem locally:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
gem install ./approval-api-client-ruby-1.0.0.gem
|
27
|
+
```
|
28
|
+
(for development, run `gem install --dev ./approval-api-client-ruby-1.0.0.gem` to install the development dependencies)
|
29
|
+
|
30
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
|
+
|
32
|
+
Finally add this to the Gemfile:
|
33
|
+
|
34
|
+
gem 'approval-api-client-ruby', '~> 1.0.0'
|
35
|
+
|
36
|
+
### Install from Git
|
37
|
+
|
38
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
39
|
+
|
40
|
+
gem 'approval-api-client-ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
41
|
+
|
42
|
+
### Include the Ruby code directly
|
43
|
+
|
44
|
+
Include the Ruby code directly using `-I` as follows:
|
45
|
+
|
46
|
+
```shell
|
47
|
+
ruby -Ilib script.rb
|
48
|
+
```
|
49
|
+
|
50
|
+
## Getting Started
|
51
|
+
|
52
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
53
|
+
```ruby
|
54
|
+
# Load the gem
|
55
|
+
require 'approval-api-client-ruby'
|
56
|
+
|
57
|
+
# Setup authorization
|
58
|
+
ApprovalApiClient.configure do |config|
|
59
|
+
# Configure API key authorization: APIKey_auth
|
60
|
+
config.api_key['x-rh-identity'] = 'YOUR API KEY'
|
61
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
62
|
+
#config.api_key_prefix['x-rh-identity'] = 'Bearer'
|
63
|
+
|
64
|
+
# Configure HTTP basic authorization: Basic_auth
|
65
|
+
config.username = 'YOUR USERNAME'
|
66
|
+
config.password = 'YOUR PASSWORD'
|
67
|
+
end
|
68
|
+
|
69
|
+
api_instance = ApprovalApiClient::ActionApi.new
|
70
|
+
stage_id = 56 # Integer | Id of stage
|
71
|
+
action_in = ApprovalApiClient::ActionIn.new # ActionIn | Action object that will be added
|
72
|
+
|
73
|
+
begin
|
74
|
+
#Add an action to a given stage
|
75
|
+
result = api_instance.create_action(stage_id, action_in)
|
76
|
+
p result
|
77
|
+
rescue ApprovalApiClient::ApiError => e
|
78
|
+
puts "Exception when calling ActionApi->create_action: #{e}"
|
79
|
+
end
|
80
|
+
|
81
|
+
```
|
82
|
+
|
83
|
+
## Documentation for API Endpoints
|
84
|
+
|
85
|
+
All URIs are relative to *http://localhost/api/approval*
|
86
|
+
|
87
|
+
Class | Method | HTTP request | Description
|
88
|
+
------------ | ------------- | ------------- | -------------
|
89
|
+
*ApprovalApiClient::ActionApi* | [**create_action**](docs/ActionApi.md#create_action) | **POST** /stages/{stage_id}/actions | Add an action to a given stage
|
90
|
+
*ApprovalApiClient::ActionApi* | [**list_actions_by_stage**](docs/ActionApi.md#list_actions_by_stage) | **GET** /stages/{stage_id}/actions | Return actions in a given stage
|
91
|
+
*ApprovalApiClient::ActionApi* | [**show_action**](docs/ActionApi.md#show_action) | **GET** /actions/{id} | Return an user action by id
|
92
|
+
*ApprovalApiClient::RequestApi* | [**create_request**](docs/RequestApi.md#create_request) | **POST** /workflows/{workflow_id}/requests | Add an approval request by given parameters
|
93
|
+
*ApprovalApiClient::RequestApi* | [**list_requests**](docs/RequestApi.md#list_requests) | **GET** /requests | Return an array of approval requests
|
94
|
+
*ApprovalApiClient::RequestApi* | [**list_requests_by_workflow**](docs/RequestApi.md#list_requests_by_workflow) | **GET** /workflows/{workflow_id}/requests | Return approval requests by given workflow id
|
95
|
+
*ApprovalApiClient::RequestApi* | [**show_request**](docs/RequestApi.md#show_request) | **GET** /requests/{id} | Return an approval request by given id
|
96
|
+
*ApprovalApiClient::StageApi* | [**list_stages_by_request**](docs/StageApi.md#list_stages_by_request) | **GET** /requests/{request_id}/stages | Return an array of stages by given request id
|
97
|
+
*ApprovalApiClient::StageApi* | [**show_stage**](docs/StageApi.md#show_stage) | **GET** /stages/{id} | Return an approval stage by given id
|
98
|
+
*ApprovalApiClient::TemplateApi* | [**list_templates**](docs/TemplateApi.md#list_templates) | **GET** /templates | Return all templates
|
99
|
+
*ApprovalApiClient::TemplateApi* | [**show_template**](docs/TemplateApi.md#show_template) | **GET** /templates/{id} | Return a template by given id
|
100
|
+
*ApprovalApiClient::WorkflowApi* | [**add_workflow_to_template**](docs/WorkflowApi.md#add_workflow_to_template) | **POST** /templates/{template_id}/workflows | Add a workflow by given template id
|
101
|
+
*ApprovalApiClient::WorkflowApi* | [**destroy_workflow**](docs/WorkflowApi.md#destroy_workflow) | **DELETE** /workflows/{id} | Delete approval workflow by given id
|
102
|
+
*ApprovalApiClient::WorkflowApi* | [**list_workflows**](docs/WorkflowApi.md#list_workflows) | **GET** /workflows | Return all approval workflows
|
103
|
+
*ApprovalApiClient::WorkflowApi* | [**list_workflows_by_template**](docs/WorkflowApi.md#list_workflows_by_template) | **GET** /templates/{template_id}/workflows | Return an array of workflows by given template id
|
104
|
+
*ApprovalApiClient::WorkflowApi* | [**show_workflow**](docs/WorkflowApi.md#show_workflow) | **GET** /workflows/{id} | Return an approval workflow by given id
|
105
|
+
*ApprovalApiClient::WorkflowApi* | [**update_workflow**](docs/WorkflowApi.md#update_workflow) | **PATCH** /workflows/{id} | Update an approval workflow by given id
|
106
|
+
|
107
|
+
|
108
|
+
## Documentation for Models
|
109
|
+
|
110
|
+
- [ApprovalApiClient::ActionIn](docs/ActionIn.md)
|
111
|
+
- [ApprovalApiClient::ActionOut](docs/ActionOut.md)
|
112
|
+
- [ApprovalApiClient::ActionOutCollection](docs/ActionOutCollection.md)
|
113
|
+
- [ApprovalApiClient::CollectionLinks](docs/CollectionLinks.md)
|
114
|
+
- [ApprovalApiClient::CollectionMetadata](docs/CollectionMetadata.md)
|
115
|
+
- [ApprovalApiClient::RequestIn](docs/RequestIn.md)
|
116
|
+
- [ApprovalApiClient::RequestOut](docs/RequestOut.md)
|
117
|
+
- [ApprovalApiClient::RequestOutCollection](docs/RequestOutCollection.md)
|
118
|
+
- [ApprovalApiClient::StageOut](docs/StageOut.md)
|
119
|
+
- [ApprovalApiClient::StageOutCollection](docs/StageOutCollection.md)
|
120
|
+
- [ApprovalApiClient::TemplateOut](docs/TemplateOut.md)
|
121
|
+
- [ApprovalApiClient::TemplateOutCollection](docs/TemplateOutCollection.md)
|
122
|
+
- [ApprovalApiClient::WorkflowIn](docs/WorkflowIn.md)
|
123
|
+
- [ApprovalApiClient::WorkflowOut](docs/WorkflowOut.md)
|
124
|
+
- [ApprovalApiClient::WorkflowOutCollection](docs/WorkflowOutCollection.md)
|
125
|
+
|
126
|
+
|
127
|
+
## Documentation for Authorization
|
128
|
+
|
129
|
+
|
130
|
+
### APIKey_auth
|
131
|
+
|
132
|
+
- **Type**: API key
|
133
|
+
- **API key parameter name**: x-rh-identity
|
134
|
+
- **Location**: HTTP header
|
135
|
+
|
136
|
+
### Basic_auth
|
137
|
+
|
138
|
+
- **Type**: HTTP basic authentication
|
139
|
+
|
140
|
+
## License
|
141
|
+
|
142
|
+
This project is available as open source under the terms of the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).
|
data/Rakefile
ADDED
data/client-meta.json
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
{
|
2
|
+
"moduleName": "ApprovalApiClient",
|
3
|
+
"gemName": "insights-approval-api-client",
|
4
|
+
"gemHomepage" : "https://github.com/RedHatInsights/approval-api-client-ruby",
|
5
|
+
"gemAuthor" : "Insights Authors",
|
6
|
+
"gemLicense" : "Apache-2.0",
|
7
|
+
"gemVersion" : "1.2.0",
|
8
|
+
"gemDescription" : "Ruby client gem to connect to Insights Approval Service"
|
9
|
+
}
|
data/docs/Action.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# ApprovalApiClient::Action
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**id** | **String** | | [optional] [readonly]
|
8
|
+
**created_at** | **DateTime** | Timestamp of creation | [optional] [readonly]
|
9
|
+
**request_id** | **String** | Associated request id | [optional] [readonly]
|
10
|
+
**processed_by** | **String** | The person who performs the action | [optional]
|
11
|
+
**operation** | **String** | Types of action, may be one of the value (approve, cancel, deny, error, notify, memo, skip, or start). The request state will be updated according to the operation. | [optional] [default to 'memo']
|
12
|
+
**comments** | **String** | Comments for action | [optional]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ApprovalApiClient'
|
18
|
+
|
19
|
+
instance = ApprovalApiClient::Action.new(id: null,
|
20
|
+
created_at: null,
|
21
|
+
request_id: null,
|
22
|
+
processed_by: null,
|
23
|
+
operation: null,
|
24
|
+
comments: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
data/docs/ActionApi.md
ADDED
@@ -0,0 +1,172 @@
|
|
1
|
+
# ApprovalApiClient::ActionApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://cloud.redhat.com//api/approval/v1.2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_action**](ActionApi.md#create_action) | **POST** /requests/{request_id}/actions | Add an action to a given request
|
8
|
+
[**list_actions_by_request**](ActionApi.md#list_actions_by_request) | **GET** /requests/{request_id}/actions | List all actions of a request
|
9
|
+
[**show_action**](ActionApi.md#show_action) | **GET** /actions/{id} | Return an user action by id
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## create_action
|
14
|
+
|
15
|
+
> Action create_action(request_id, action)
|
16
|
+
|
17
|
+
Add an action to a given request
|
18
|
+
|
19
|
+
Add an action to a given request. Admin can do approve, deny, memo, and cancel operations; approver can do approve, deny and memo operations; while requester can do only cancel operation.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'insights-approval-api-client'
|
26
|
+
# setup authorization
|
27
|
+
ApprovalApiClient.configure do |config|
|
28
|
+
# Configure HTTP basic authorization: Basic_auth
|
29
|
+
config.username = 'YOUR USERNAME'
|
30
|
+
config.password = 'YOUR PASSWORD'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = ApprovalApiClient::ActionApi.new
|
34
|
+
request_id = 'request_id_example' # String | Id of request
|
35
|
+
action = ApprovalApiClient::Action.new # Action | Action object that will be added
|
36
|
+
|
37
|
+
begin
|
38
|
+
#Add an action to a given request
|
39
|
+
result = api_instance.create_action(request_id, action)
|
40
|
+
p result
|
41
|
+
rescue ApprovalApiClient::ApiError => e
|
42
|
+
puts "Exception when calling ActionApi->create_action: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**request_id** | **String**| Id of request |
|
52
|
+
**action** | [**Action**](Action.md)| Action object that will be added |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**Action**](Action.md)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[Basic_auth](../README.md#Basic_auth)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: application/json
|
65
|
+
- **Accept**: application/json
|
66
|
+
|
67
|
+
|
68
|
+
## list_actions_by_request
|
69
|
+
|
70
|
+
> ActionCollection list_actions_by_request(request_id)
|
71
|
+
|
72
|
+
List all actions of a request
|
73
|
+
|
74
|
+
Return actions in a given request, available for admin/approver
|
75
|
+
|
76
|
+
### Example
|
77
|
+
|
78
|
+
```ruby
|
79
|
+
# load the gem
|
80
|
+
require 'insights-approval-api-client'
|
81
|
+
# setup authorization
|
82
|
+
ApprovalApiClient.configure do |config|
|
83
|
+
# Configure HTTP basic authorization: Basic_auth
|
84
|
+
config.username = 'YOUR USERNAME'
|
85
|
+
config.password = 'YOUR PASSWORD'
|
86
|
+
end
|
87
|
+
|
88
|
+
api_instance = ApprovalApiClient::ActionApi.new
|
89
|
+
request_id = 'request_id_example' # String | Id of request
|
90
|
+
|
91
|
+
begin
|
92
|
+
#List all actions of a request
|
93
|
+
result = api_instance.list_actions_by_request(request_id)
|
94
|
+
p result
|
95
|
+
rescue ApprovalApiClient::ApiError => e
|
96
|
+
puts "Exception when calling ActionApi->list_actions_by_request: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
|
103
|
+
Name | Type | Description | Notes
|
104
|
+
------------- | ------------- | ------------- | -------------
|
105
|
+
**request_id** | **String**| Id of request |
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
[**ActionCollection**](ActionCollection.md)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[Basic_auth](../README.md#Basic_auth)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: application/json
|
119
|
+
|
120
|
+
|
121
|
+
## show_action
|
122
|
+
|
123
|
+
> Action show_action(id)
|
124
|
+
|
125
|
+
Return an user action by id
|
126
|
+
|
127
|
+
Return an user action by id, available to all
|
128
|
+
|
129
|
+
### Example
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
# load the gem
|
133
|
+
require 'insights-approval-api-client'
|
134
|
+
# setup authorization
|
135
|
+
ApprovalApiClient.configure do |config|
|
136
|
+
# Configure HTTP basic authorization: Basic_auth
|
137
|
+
config.username = 'YOUR USERNAME'
|
138
|
+
config.password = 'YOUR PASSWORD'
|
139
|
+
end
|
140
|
+
|
141
|
+
api_instance = ApprovalApiClient::ActionApi.new
|
142
|
+
id = 'id_example' # String | Query by id
|
143
|
+
|
144
|
+
begin
|
145
|
+
#Return an user action by id
|
146
|
+
result = api_instance.show_action(id)
|
147
|
+
p result
|
148
|
+
rescue ApprovalApiClient::ApiError => e
|
149
|
+
puts "Exception when calling ActionApi->show_action: #{e}"
|
150
|
+
end
|
151
|
+
```
|
152
|
+
|
153
|
+
### Parameters
|
154
|
+
|
155
|
+
|
156
|
+
Name | Type | Description | Notes
|
157
|
+
------------- | ------------- | ------------- | -------------
|
158
|
+
**id** | **String**| Query by id |
|
159
|
+
|
160
|
+
### Return type
|
161
|
+
|
162
|
+
[**Action**](Action.md)
|
163
|
+
|
164
|
+
### Authorization
|
165
|
+
|
166
|
+
[Basic_auth](../README.md#Basic_auth)
|
167
|
+
|
168
|
+
### HTTP request headers
|
169
|
+
|
170
|
+
- **Content-Type**: Not defined
|
171
|
+
- **Accept**: */*
|
172
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# ApprovalApiClient::ActionCollection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**meta** | [**CollectionMetadata**](CollectionMetadata.md) | | [optional]
|
8
|
+
**links** | [**CollectionLinks**](CollectionLinks.md) | | [optional]
|
9
|
+
**data** | [**Array<Action>**](Action.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ApprovalApiClient'
|
15
|
+
|
16
|
+
instance = ApprovalApiClient::ActionCollection.new(meta: null,
|
17
|
+
links: null,
|
18
|
+
data: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# ApprovalApiClient::CollectionLinks
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**first** | **String** | The link to fetch the first group of items in the result set | [optional]
|
8
|
+
**last** | **String** | The link to fetch the last group of items in the result set | [optional]
|
9
|
+
**prev** | **String** | The link to fetch the previous group of items in the result set | [optional]
|
10
|
+
**_next** | **String** | The link to fetch the next group of items in the result set | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ApprovalApiClient'
|
16
|
+
|
17
|
+
instance = ApprovalApiClient::CollectionLinks.new(first: null,
|
18
|
+
last: null,
|
19
|
+
prev: null,
|
20
|
+
_next: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# ApprovalApiClient::CollectionMetadata
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | This is the total number of items in the result set, of which only a subset is returned defined by the QueryLimit parameter | [optional]
|
8
|
+
**limit** | **Integer** | This is the number of items each page can display | [optional]
|
9
|
+
**offset** | **Integer** | This is the offset from beginning of the result set | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ApprovalApiClient'
|
15
|
+
|
16
|
+
instance = ApprovalApiClient::CollectionMetadata.new(count: null,
|
17
|
+
limit: null,
|
18
|
+
offset: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|