triglav_client 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +79 -0
- data/LICENSE +201 -0
- data/README.md +136 -0
- data/Rakefile +1 -0
- data/docs/AggregatedResourceEachResponse.md +11 -0
- data/docs/AuthApi.md +150 -0
- data/docs/BulkinsertResponse.md +8 -0
- data/docs/Credential.md +10 -0
- data/docs/ErrorModel.md +9 -0
- data/docs/JobEachResponse.md +12 -0
- data/docs/JobMessageEachResponse.md +11 -0
- data/docs/JobMessagesApi.md +117 -0
- data/docs/JobRequest.md +12 -0
- data/docs/JobResponse.md +14 -0
- data/docs/JobsApi.md +217 -0
- data/docs/LastJobMessageIdResponse.md +8 -0
- data/docs/LastMessageIdResponse.md +8 -0
- data/docs/MessageEachResponse.md +16 -0
- data/docs/MessageFetchRequest.md +10 -0
- data/docs/MessageRequest.md +13 -0
- data/docs/MessageResponse.md +16 -0
- data/docs/MessagesApi.md +170 -0
- data/docs/ResourceEachResponse.md +13 -0
- data/docs/ResourceRequest.md +15 -0
- data/docs/ResourceResponse.md +17 -0
- data/docs/ResourcesApi.md +335 -0
- data/docs/TokenResponse.md +9 -0
- data/docs/UserEachResponse.md +11 -0
- data/docs/UserRequest.md +13 -0
- data/docs/UserResponse.md +15 -0
- data/docs/UsersApi.md +274 -0
- data/example/example.rb +40 -0
- data/git_push.sh +67 -0
- data/lib/triglav_client.rb +77 -0
- data/lib/triglav_client/api/auth_api.rb +196 -0
- data/lib/triglav_client/api/job_messages_api.rb +153 -0
- data/lib/triglav_client/api/jobs_api.rb +257 -0
- data/lib/triglav_client/api/messages_api.rb +208 -0
- data/lib/triglav_client/api/resources_api.rb +379 -0
- data/lib/triglav_client/api/users_api.rb +318 -0
- data/lib/triglav_client/api_client.rb +379 -0
- data/lib/triglav_client/api_error.rb +47 -0
- data/lib/triglav_client/configuration.rb +214 -0
- data/lib/triglav_client/models/aggregated_resource_each_response.rb +230 -0
- data/lib/triglav_client/models/bulkinsert_response.rb +200 -0
- data/lib/triglav_client/models/credential.rb +252 -0
- data/lib/triglav_client/models/error_model.rb +212 -0
- data/lib/triglav_client/models/job_each_response.rb +235 -0
- data/lib/triglav_client/models/job_message_each_response.rb +229 -0
- data/lib/triglav_client/models/job_request.rb +241 -0
- data/lib/triglav_client/models/job_response.rb +259 -0
- data/lib/triglav_client/models/last_job_message_id_response.rb +200 -0
- data/lib/triglav_client/models/last_message_id_response.rb +200 -0
- data/lib/triglav_client/models/message_each_response.rb +281 -0
- data/lib/triglav_client/models/message_fetch_request.rb +223 -0
- data/lib/triglav_client/models/message_request.rb +254 -0
- data/lib/triglav_client/models/message_response.rb +281 -0
- data/lib/triglav_client/models/resource_each_response.rb +250 -0
- data/lib/triglav_client/models/resource_request.rb +269 -0
- data/lib/triglav_client/models/resource_response.rb +287 -0
- data/lib/triglav_client/models/token_response.rb +208 -0
- data/lib/triglav_client/models/user_each_response.rb +262 -0
- data/lib/triglav_client/models/user_request.rb +280 -0
- data/lib/triglav_client/models/user_response.rb +300 -0
- data/lib/triglav_client/version.rb +26 -0
- data/spec/api/auth_api_spec.rb +80 -0
- data/spec/api/job_messages_api_spec.rb +71 -0
- data/spec/api/jobs_api_spec.rb +93 -0
- data/spec/api/messages_api_spec.rb +74 -0
- data/spec/api/resources_api_spec.rb +109 -0
- data/spec/api/users_api_spec.rb +106 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +53 -0
- data/spec/models/aggregated_resource_each_response_spec.rb +71 -0
- data/spec/models/bulkinsert_response_spec.rb +53 -0
- data/spec/models/credential_spec.rb +69 -0
- data/spec/models/error_model_spec.rb +59 -0
- data/spec/models/job_each_response_spec.rb +77 -0
- data/spec/models/job_message_each_response_spec.rb +65 -0
- data/spec/models/job_request_spec.rb +71 -0
- data/spec/models/job_response_spec.rb +89 -0
- data/spec/models/last_job_message_id_response_spec.rb +53 -0
- data/spec/models/last_message_id_response_spec.rb +53 -0
- data/spec/models/message_each_response_spec.rb +89 -0
- data/spec/models/message_fetch_request_spec.rb +65 -0
- data/spec/models/message_request_spec.rb +59 -0
- data/spec/models/message_response_spec.rb +89 -0
- data/spec/models/resource_each_response_spec.rb +71 -0
- data/spec/models/resource_request_spec.rb +83 -0
- data/spec/models/resource_response_spec.rb +101 -0
- data/spec/models/token_response_spec.rb +59 -0
- data/spec/models/user_each_response_spec.rb +75 -0
- data/spec/models/user_request_spec.rb +87 -0
- data/spec/models/user_response_spec.rb +99 -0
- data/spec/spec_helper.rb +122 -0
- data/triglav_client.gemspec +55 -0
- metadata +351 -0
data/docs/AuthApi.md
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
# TriglavClient::AuthApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_token**](AuthApi.md#create_token) | **POST** /auth/token |
|
8
|
+
[**delete_token**](AuthApi.md#delete_token) | **DELETE** /auth/token |
|
9
|
+
[**me**](AuthApi.md#me) | **GET** /auth/me |
|
10
|
+
|
11
|
+
|
12
|
+
# **create_token**
|
13
|
+
> TokenResponse create_token(credential)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Creates a new token
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'triglav_client'
|
23
|
+
|
24
|
+
api_instance = TriglavClient::AuthApi.new
|
25
|
+
|
26
|
+
credential = TriglavClient::Credential.new # Credential |
|
27
|
+
|
28
|
+
|
29
|
+
begin
|
30
|
+
result = api_instance.create_token(credential)
|
31
|
+
p result
|
32
|
+
rescue TriglavClient::ApiError => e
|
33
|
+
puts "Exception when calling AuthApi->create_token: #{e}"
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
### Parameters
|
38
|
+
|
39
|
+
Name | Type | Description | Notes
|
40
|
+
------------- | ------------- | ------------- | -------------
|
41
|
+
**credential** | [**Credential**](Credential.md)| |
|
42
|
+
|
43
|
+
### Return type
|
44
|
+
|
45
|
+
[**TokenResponse**](TokenResponse.md)
|
46
|
+
|
47
|
+
### Authorization
|
48
|
+
|
49
|
+
No authorization required
|
50
|
+
|
51
|
+
### HTTP request headers
|
52
|
+
|
53
|
+
- **Content-Type**: application/json
|
54
|
+
- **Accept**: application/json
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
# **delete_token**
|
59
|
+
> delete_token
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
Deletes (Expires) a token of header
|
64
|
+
|
65
|
+
### Example
|
66
|
+
```ruby
|
67
|
+
# load the gem
|
68
|
+
require 'triglav_client'
|
69
|
+
# setup authorization
|
70
|
+
TriglavClient.configure do |config|
|
71
|
+
# Configure API key authorization: api_key
|
72
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
73
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
74
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
75
|
+
end
|
76
|
+
|
77
|
+
api_instance = TriglavClient::AuthApi.new
|
78
|
+
|
79
|
+
begin
|
80
|
+
api_instance.delete_token
|
81
|
+
rescue TriglavClient::ApiError => e
|
82
|
+
puts "Exception when calling AuthApi->delete_token: #{e}"
|
83
|
+
end
|
84
|
+
```
|
85
|
+
|
86
|
+
### Parameters
|
87
|
+
This endpoint does not need any parameter.
|
88
|
+
|
89
|
+
### Return type
|
90
|
+
|
91
|
+
nil (empty response body)
|
92
|
+
|
93
|
+
### Authorization
|
94
|
+
|
95
|
+
[api_key](../README.md#api_key)
|
96
|
+
|
97
|
+
### HTTP request headers
|
98
|
+
|
99
|
+
- **Content-Type**: application/json
|
100
|
+
- **Accept**: application/json
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
# **me**
|
105
|
+
> UserResponse me
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
Returns a user property of the access_token
|
110
|
+
|
111
|
+
### Example
|
112
|
+
```ruby
|
113
|
+
# load the gem
|
114
|
+
require 'triglav_client'
|
115
|
+
# setup authorization
|
116
|
+
TriglavClient.configure do |config|
|
117
|
+
# Configure API key authorization: api_key
|
118
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
119
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
120
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
121
|
+
end
|
122
|
+
|
123
|
+
api_instance = TriglavClient::AuthApi.new
|
124
|
+
|
125
|
+
begin
|
126
|
+
result = api_instance.me
|
127
|
+
p result
|
128
|
+
rescue TriglavClient::ApiError => e
|
129
|
+
puts "Exception when calling AuthApi->me: #{e}"
|
130
|
+
end
|
131
|
+
```
|
132
|
+
|
133
|
+
### Parameters
|
134
|
+
This endpoint does not need any parameter.
|
135
|
+
|
136
|
+
### Return type
|
137
|
+
|
138
|
+
[**UserResponse**](UserResponse.md)
|
139
|
+
|
140
|
+
### Authorization
|
141
|
+
|
142
|
+
[api_key](../README.md#api_key)
|
143
|
+
|
144
|
+
### HTTP request headers
|
145
|
+
|
146
|
+
- **Content-Type**: application/json
|
147
|
+
- **Accept**: application/json
|
148
|
+
|
149
|
+
|
150
|
+
|
data/docs/Credential.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# TriglavClient::Credential
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**username** | **String** | |
|
7
|
+
**password** | **String** | |
|
8
|
+
**authenticator** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/ErrorModel.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# TriglavClient::JobEachResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**uri** | **String** | | [optional]
|
8
|
+
**logical_op** | **String** | | [optional]
|
9
|
+
**created_at** | **DateTime** | | [optional]
|
10
|
+
**updated_at** | **DateTime** | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# TriglavClient::JobMessageEachResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**job_id** | **Integer** | Job ID | [optional]
|
8
|
+
**time** | **Integer** | Time of event in unix timestamp such as 1476025200 (2016-10-10 in +09:00) | [optional]
|
9
|
+
**timezone** | **String** | Timezone of event time, that is, timezone of %Y-%m-%d for hdfs://path/to/%Y-%m-%d such as +09:00 | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# TriglavClient::JobMessagesApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**fetch_job_messages**](JobMessagesApi.md#fetch_job_messages) | **GET** /job_messages |
|
8
|
+
[**get_last_job_message_id**](JobMessagesApi.md#get_last_job_message_id) | **GET** /job_messages/last_id |
|
9
|
+
|
10
|
+
|
11
|
+
# **fetch_job_messages**
|
12
|
+
> Array<JobMessageEachResponse> fetch_job_messages(offset, job_id, opts)
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
Fetch Job messages
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'triglav_client'
|
22
|
+
# setup authorization
|
23
|
+
TriglavClient.configure do |config|
|
24
|
+
# Configure API key authorization: api_key
|
25
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = TriglavClient::JobMessagesApi.new
|
31
|
+
|
32
|
+
offset = 789 # Integer | Offset (Greater than or equal to) ID for Messages to fetch from
|
33
|
+
|
34
|
+
job_id = 789 # Integer | Job ID
|
35
|
+
|
36
|
+
opts = {
|
37
|
+
limit: 789 # Integer | Number of limits
|
38
|
+
}
|
39
|
+
|
40
|
+
begin
|
41
|
+
result = api_instance.fetch_job_messages(offset, job_id, opts)
|
42
|
+
p result
|
43
|
+
rescue TriglavClient::ApiError => e
|
44
|
+
puts "Exception when calling JobMessagesApi->fetch_job_messages: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**offset** | **Integer**| Offset (Greater than or equal to) ID for Messages to fetch from |
|
53
|
+
**job_id** | **Integer**| Job ID |
|
54
|
+
**limit** | **Integer**| Number of limits | [optional]
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**Array<JobMessageEachResponse>**](JobMessageEachResponse.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[api_key](../README.md#api_key)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: application/json
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
# **get_last_job_message_id**
|
72
|
+
> LastJobMessageIdResponse get_last_job_message_id
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
Get the current last message id which would be used as a first offset to fetch messages
|
77
|
+
|
78
|
+
### Example
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'triglav_client'
|
82
|
+
# setup authorization
|
83
|
+
TriglavClient.configure do |config|
|
84
|
+
# Configure API key authorization: api_key
|
85
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
86
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
87
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
88
|
+
end
|
89
|
+
|
90
|
+
api_instance = TriglavClient::JobMessagesApi.new
|
91
|
+
|
92
|
+
begin
|
93
|
+
result = api_instance.get_last_job_message_id
|
94
|
+
p result
|
95
|
+
rescue TriglavClient::ApiError => e
|
96
|
+
puts "Exception when calling JobMessagesApi->get_last_job_message_id: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
This endpoint does not need any parameter.
|
102
|
+
|
103
|
+
### Return type
|
104
|
+
|
105
|
+
[**LastJobMessageIdResponse**](LastJobMessageIdResponse.md)
|
106
|
+
|
107
|
+
### Authorization
|
108
|
+
|
109
|
+
[api_key](../README.md#api_key)
|
110
|
+
|
111
|
+
### HTTP request headers
|
112
|
+
|
113
|
+
- **Content-Type**: application/json
|
114
|
+
- **Accept**: application/json
|
115
|
+
|
116
|
+
|
117
|
+
|
data/docs/JobRequest.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# TriglavClient::JobRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**uri** | **String** | | [optional]
|
8
|
+
**logical_op** | **String** | | [optional]
|
9
|
+
**input_resources** | [**Array<ResourceRequest>**](ResourceRequest.md) | New resources are created if id is not given. Update if id is given | [optional]
|
10
|
+
**output_resources** | [**Array<ResourceRequest>**](ResourceRequest.md) | New resources are created if id is not given. Update if id is given | [optional]
|
11
|
+
|
12
|
+
|
data/docs/JobResponse.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# TriglavClient::JobResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**uri** | **String** | | [optional]
|
8
|
+
**logical_op** | **String** | | [optional]
|
9
|
+
**input_resources** | [**Array<ResourceResponse>**](ResourceResponse.md) | Input resources | [optional]
|
10
|
+
**output_resources** | [**Array<ResourceResponse>**](ResourceResponse.md) | Output resources | [optional]
|
11
|
+
**created_at** | **DateTime** | | [optional]
|
12
|
+
**updated_at** | **DateTime** | | [optional]
|
13
|
+
|
14
|
+
|
data/docs/JobsApi.md
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
# TriglavClient::JobsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_or_update_job**](JobsApi.md#create_or_update_job) | **PATCH** /jobs |
|
8
|
+
[**delete_job**](JobsApi.md#delete_job) | **DELETE** /jobs/{id_or_uri} |
|
9
|
+
[**get_job**](JobsApi.md#get_job) | **GET** /jobs/{id_or_uri} |
|
10
|
+
[**list_jobs**](JobsApi.md#list_jobs) | **GET** /jobs |
|
11
|
+
|
12
|
+
|
13
|
+
# **create_or_update_job**
|
14
|
+
> JobResponse create_or_update_job(job)
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
Creates or Updates a single job
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'triglav_client'
|
24
|
+
# setup authorization
|
25
|
+
TriglavClient.configure do |config|
|
26
|
+
# Configure API key authorization: api_key
|
27
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = TriglavClient::JobsApi.new
|
33
|
+
|
34
|
+
job = TriglavClient::JobRequest.new # JobRequest | Job parameters
|
35
|
+
|
36
|
+
|
37
|
+
begin
|
38
|
+
result = api_instance.create_or_update_job(job)
|
39
|
+
p result
|
40
|
+
rescue TriglavClient::ApiError => e
|
41
|
+
puts "Exception when calling JobsApi->create_or_update_job: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**job** | [**JobRequest**](JobRequest.md)| Job parameters |
|
50
|
+
|
51
|
+
### Return type
|
52
|
+
|
53
|
+
[**JobResponse**](JobResponse.md)
|
54
|
+
|
55
|
+
### Authorization
|
56
|
+
|
57
|
+
[api_key](../README.md#api_key)
|
58
|
+
|
59
|
+
### HTTP request headers
|
60
|
+
|
61
|
+
- **Content-Type**: application/json
|
62
|
+
- **Accept**: application/json
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
# **delete_job**
|
67
|
+
> delete_job(id_or_uri)
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
Deletes single job
|
72
|
+
|
73
|
+
### Example
|
74
|
+
```ruby
|
75
|
+
# load the gem
|
76
|
+
require 'triglav_client'
|
77
|
+
# setup authorization
|
78
|
+
TriglavClient.configure do |config|
|
79
|
+
# Configure API key authorization: api_key
|
80
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
81
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
82
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
83
|
+
end
|
84
|
+
|
85
|
+
api_instance = TriglavClient::JobsApi.new
|
86
|
+
|
87
|
+
id_or_uri = "id_or_uri_example" # String | ID or URI of job to fetch
|
88
|
+
|
89
|
+
|
90
|
+
begin
|
91
|
+
api_instance.delete_job(id_or_uri)
|
92
|
+
rescue TriglavClient::ApiError => e
|
93
|
+
puts "Exception when calling JobsApi->delete_job: #{e}"
|
94
|
+
end
|
95
|
+
```
|
96
|
+
|
97
|
+
### Parameters
|
98
|
+
|
99
|
+
Name | Type | Description | Notes
|
100
|
+
------------- | ------------- | ------------- | -------------
|
101
|
+
**id_or_uri** | **String**| ID or URI of job to fetch |
|
102
|
+
|
103
|
+
### Return type
|
104
|
+
|
105
|
+
nil (empty response body)
|
106
|
+
|
107
|
+
### Authorization
|
108
|
+
|
109
|
+
[api_key](../README.md#api_key)
|
110
|
+
|
111
|
+
### HTTP request headers
|
112
|
+
|
113
|
+
- **Content-Type**: application/json
|
114
|
+
- **Accept**: application/json
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
# **get_job**
|
119
|
+
> JobResponse get_job(id_or_uri)
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
Returns a single job
|
124
|
+
|
125
|
+
### Example
|
126
|
+
```ruby
|
127
|
+
# load the gem
|
128
|
+
require 'triglav_client'
|
129
|
+
# setup authorization
|
130
|
+
TriglavClient.configure do |config|
|
131
|
+
# Configure API key authorization: api_key
|
132
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
133
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
134
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
135
|
+
end
|
136
|
+
|
137
|
+
api_instance = TriglavClient::JobsApi.new
|
138
|
+
|
139
|
+
id_or_uri = "id_or_uri_example" # String | ID or URI of job to fetch
|
140
|
+
|
141
|
+
|
142
|
+
begin
|
143
|
+
result = api_instance.get_job(id_or_uri)
|
144
|
+
p result
|
145
|
+
rescue TriglavClient::ApiError => e
|
146
|
+
puts "Exception when calling JobsApi->get_job: #{e}"
|
147
|
+
end
|
148
|
+
```
|
149
|
+
|
150
|
+
### Parameters
|
151
|
+
|
152
|
+
Name | Type | Description | Notes
|
153
|
+
------------- | ------------- | ------------- | -------------
|
154
|
+
**id_or_uri** | **String**| ID or URI of job to fetch |
|
155
|
+
|
156
|
+
### Return type
|
157
|
+
|
158
|
+
[**JobResponse**](JobResponse.md)
|
159
|
+
|
160
|
+
### Authorization
|
161
|
+
|
162
|
+
[api_key](../README.md#api_key)
|
163
|
+
|
164
|
+
### HTTP request headers
|
165
|
+
|
166
|
+
- **Content-Type**: application/json
|
167
|
+
- **Accept**: application/json
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
# **list_jobs**
|
172
|
+
> Array<JobEachResponse> list_jobs
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
Returns all jobs
|
177
|
+
|
178
|
+
### Example
|
179
|
+
```ruby
|
180
|
+
# load the gem
|
181
|
+
require 'triglav_client'
|
182
|
+
# setup authorization
|
183
|
+
TriglavClient.configure do |config|
|
184
|
+
# Configure API key authorization: api_key
|
185
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
186
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
187
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
188
|
+
end
|
189
|
+
|
190
|
+
api_instance = TriglavClient::JobsApi.new
|
191
|
+
|
192
|
+
begin
|
193
|
+
result = api_instance.list_jobs
|
194
|
+
p result
|
195
|
+
rescue TriglavClient::ApiError => e
|
196
|
+
puts "Exception when calling JobsApi->list_jobs: #{e}"
|
197
|
+
end
|
198
|
+
```
|
199
|
+
|
200
|
+
### Parameters
|
201
|
+
This endpoint does not need any parameter.
|
202
|
+
|
203
|
+
### Return type
|
204
|
+
|
205
|
+
[**Array<JobEachResponse>**](JobEachResponse.md)
|
206
|
+
|
207
|
+
### Authorization
|
208
|
+
|
209
|
+
[api_key](../README.md#api_key)
|
210
|
+
|
211
|
+
### HTTP request headers
|
212
|
+
|
213
|
+
- **Content-Type**: application/json
|
214
|
+
- **Accept**: application/json
|
215
|
+
|
216
|
+
|
217
|
+
|