pulpcore_client 3.8.1 → 3.9.0
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 +4 -4
- data/README.md +5 -4
- data/docs/RepairApi.md +58 -0
- data/docs/TaskResponse.md +2 -0
- data/docs/WorkerResponse.md +3 -3
- data/lib/pulpcore_client/api/repair_api.rb +78 -0
- data/lib/pulpcore_client/models/task_response.rb +16 -1
- data/lib/pulpcore_client/models/worker_response.rb +10 -10
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +1 -0
- data/spec/api/repair_api_spec.rb +46 -0
- data/spec/models/task_response_spec.rb +6 -0
- data/spec/models/worker_response_spec.rb +2 -2
- metadata +63 -59
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b65ac4bfcdba00567568d471fd6d9ff63e9546dff39877a25866c9de89bdd3cb
|
|
4
|
+
data.tar.gz: 4a0ef60dbbb62eb77a45903e630fae376e7fa9b42012543c12d4b6d143ff3c48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa6fdd64bfc52bea608413fdcb8e4d7fa00aa305fe14cb44c56ec4726f3dcc7538fdd80bec6f8b10dd2938a586fa825b8af33b634c166fcb8fadafa6f33d7e32
|
|
7
|
+
data.tar.gz: 24d2d0a39f0e809b855ca517e8ec087b641fab5d647f6f00f472320675ed5d67d97be472f9168feb8e584efd0a793d8bc6355e6f6b4bd9f38c108bc6cd636b2f
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 3.
|
|
10
|
+
- Package version: 3.9.0
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build pulpcore_client.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./pulpcore_client-3.
|
|
27
|
+
gem install ./pulpcore_client-3.9.0.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./pulpcore_client-3.
|
|
30
|
+
(for development, run `gem install --dev ./pulpcore_client-3.9.0.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'pulpcore_client', '~> 3.
|
|
36
|
+
gem 'pulpcore_client', '~> 3.9.0'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -133,6 +133,7 @@ Class | Method | HTTP request | Description
|
|
|
133
133
|
*PulpcoreClient::ImportersPulpApi* | [**read**](docs/ImportersPulpApi.md#read) | **GET** {pulp_importer_href} | Inspect a pulp importer
|
|
134
134
|
*PulpcoreClient::ImportersPulpApi* | [**update**](docs/ImportersPulpApi.md#update) | **PUT** {pulp_importer_href} | Update a pulp importer
|
|
135
135
|
*PulpcoreClient::OrphansApi* | [**delete**](docs/OrphansApi.md#delete) | **DELETE** /pulp/api/v3/orphans/ | Delete orphans
|
|
136
|
+
*PulpcoreClient::RepairApi* | [**post**](docs/RepairApi.md#post) | **POST** /pulp/api/v3/repair/ | Repair Artifact Storage
|
|
136
137
|
*PulpcoreClient::SigningServicesApi* | [**list**](docs/SigningServicesApi.md#list) | **GET** /pulp/api/v3/signing-services/ | List signing services
|
|
137
138
|
*PulpcoreClient::SigningServicesApi* | [**read**](docs/SigningServicesApi.md#read) | **GET** {signing_service_href} | Inspect a signing service
|
|
138
139
|
*PulpcoreClient::StatusApi* | [**status_read**](docs/StatusApi.md#status_read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
|
data/docs/RepairApi.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# PulpcoreClient::RepairApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://pulp*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**post**](RepairApi.md#post) | **POST** /pulp/api/v3/repair/ | Repair Artifact Storage
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## post
|
|
12
|
+
|
|
13
|
+
> AsyncOperationResponse post
|
|
14
|
+
|
|
15
|
+
Repair Artifact Storage
|
|
16
|
+
|
|
17
|
+
Trigger an asynchronous task that checks for missing or corrupted artifacts, and attempts to redownload them.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
# load the gem
|
|
23
|
+
require 'pulpcore_client'
|
|
24
|
+
# setup authorization
|
|
25
|
+
PulpcoreClient.configure do |config|
|
|
26
|
+
# Configure HTTP basic authorization: basicAuth
|
|
27
|
+
config.username = 'YOUR USERNAME'
|
|
28
|
+
config.password = 'YOUR PASSWORD'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = PulpcoreClient::RepairApi.new
|
|
32
|
+
|
|
33
|
+
begin
|
|
34
|
+
#Repair Artifact Storage
|
|
35
|
+
result = api_instance.post
|
|
36
|
+
p result
|
|
37
|
+
rescue PulpcoreClient::ApiError => e
|
|
38
|
+
puts "Exception when calling RepairApi->post: #{e}"
|
|
39
|
+
end
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
This endpoint does not need any parameter.
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[basicAuth](../README.md#basicAuth)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: Not defined
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
data/docs/TaskResponse.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
9
|
**state** | **String** | The current state of the task. The possible values include: 'waiting', 'skipped', 'running', 'completed', 'failed' and 'canceled'. | [optional] [readonly]
|
|
10
10
|
**name** | **String** | The name of task. |
|
|
11
|
+
**logging_cid** | **String** | The logging correlation id associated with this task |
|
|
11
12
|
**started_at** | **DateTime** | Timestamp of the when this task started execution. | [optional] [readonly]
|
|
12
13
|
**finished_at** | **DateTime** | Timestamp of the when this task stopped execution. | [optional] [readonly]
|
|
13
14
|
**error** | [**Object**](.md) | A JSON Object of a fatal error encountered during the execution of this task. | [optional] [readonly]
|
|
@@ -28,6 +29,7 @@ instance = PulpcoreClient::TaskResponse.new(pulp_href: null,
|
|
|
28
29
|
pulp_created: null,
|
|
29
30
|
state: null,
|
|
30
31
|
name: null,
|
|
32
|
+
logging_cid: null,
|
|
31
33
|
started_at: null,
|
|
32
34
|
finished_at: null,
|
|
33
35
|
error: null,
|
data/docs/WorkerResponse.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
8
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
9
|
**name** | **String** | The name of the worker. | [optional] [readonly]
|
|
10
10
|
**last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
|
|
11
11
|
|
|
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'PulpcoreClient'
|
|
16
16
|
|
|
17
|
-
instance = PulpcoreClient::WorkerResponse.new(
|
|
18
|
-
|
|
17
|
+
instance = PulpcoreClient::WorkerResponse.new(pulp_href: null,
|
|
18
|
+
pulp_created: null,
|
|
19
19
|
name: null,
|
|
20
20
|
last_heartbeat: null)
|
|
21
21
|
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module PulpcoreClient
|
|
16
|
+
class RepairApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Repair Artifact Storage
|
|
23
|
+
# Trigger an asynchronous task that checks for missing or corrupted artifacts, and attempts to redownload them.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [AsyncOperationResponse]
|
|
26
|
+
def post(opts = {})
|
|
27
|
+
data, _status_code, _headers = post_with_http_info(opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Repair Artifact Storage
|
|
32
|
+
# Trigger an asynchronous task that checks for missing or corrupted artifacts, and attempts to redownload them.
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
35
|
+
def post_with_http_info(opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: RepairApi.post ...'
|
|
38
|
+
end
|
|
39
|
+
# resource path
|
|
40
|
+
local_var_path = '/pulp/api/v3/repair/'
|
|
41
|
+
|
|
42
|
+
# query parameters
|
|
43
|
+
query_params = opts[:query_params] || {}
|
|
44
|
+
|
|
45
|
+
# header parameters
|
|
46
|
+
header_params = opts[:header_params] || {}
|
|
47
|
+
# HTTP header 'Accept' (if needed)
|
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
49
|
+
|
|
50
|
+
# form parameters
|
|
51
|
+
form_params = opts[:form_params] || {}
|
|
52
|
+
|
|
53
|
+
# http body (model)
|
|
54
|
+
post_body = opts[:body]
|
|
55
|
+
|
|
56
|
+
# return_type
|
|
57
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
58
|
+
|
|
59
|
+
# auth_names
|
|
60
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
61
|
+
|
|
62
|
+
new_options = opts.merge(
|
|
63
|
+
:header_params => header_params,
|
|
64
|
+
:query_params => query_params,
|
|
65
|
+
:form_params => form_params,
|
|
66
|
+
:body => post_body,
|
|
67
|
+
:auth_names => auth_names,
|
|
68
|
+
:return_type => return_type
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
72
|
+
if @api_client.config.debugging
|
|
73
|
+
@api_client.config.logger.debug "API called: RepairApi#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
|
+
end
|
|
75
|
+
return data, status_code, headers
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
@@ -26,6 +26,9 @@ module PulpcoreClient
|
|
|
26
26
|
# The name of task.
|
|
27
27
|
attr_accessor :name
|
|
28
28
|
|
|
29
|
+
# The logging correlation id associated with this task
|
|
30
|
+
attr_accessor :logging_cid
|
|
31
|
+
|
|
29
32
|
# Timestamp of the when this task started execution.
|
|
30
33
|
attr_accessor :started_at
|
|
31
34
|
|
|
@@ -61,6 +64,7 @@ module PulpcoreClient
|
|
|
61
64
|
:'pulp_created' => :'pulp_created',
|
|
62
65
|
:'state' => :'state',
|
|
63
66
|
:'name' => :'name',
|
|
67
|
+
:'logging_cid' => :'logging_cid',
|
|
64
68
|
:'started_at' => :'started_at',
|
|
65
69
|
:'finished_at' => :'finished_at',
|
|
66
70
|
:'error' => :'error',
|
|
@@ -81,6 +85,7 @@ module PulpcoreClient
|
|
|
81
85
|
:'pulp_created' => :'DateTime',
|
|
82
86
|
:'state' => :'String',
|
|
83
87
|
:'name' => :'String',
|
|
88
|
+
:'logging_cid' => :'String',
|
|
84
89
|
:'started_at' => :'DateTime',
|
|
85
90
|
:'finished_at' => :'DateTime',
|
|
86
91
|
:'error' => :'Object',
|
|
@@ -131,6 +136,10 @@ module PulpcoreClient
|
|
|
131
136
|
self.name = attributes[:'name']
|
|
132
137
|
end
|
|
133
138
|
|
|
139
|
+
if attributes.key?(:'logging_cid')
|
|
140
|
+
self.logging_cid = attributes[:'logging_cid']
|
|
141
|
+
end
|
|
142
|
+
|
|
134
143
|
if attributes.key?(:'started_at')
|
|
135
144
|
self.started_at = attributes[:'started_at']
|
|
136
145
|
end
|
|
@@ -188,6 +197,10 @@ module PulpcoreClient
|
|
|
188
197
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
189
198
|
end
|
|
190
199
|
|
|
200
|
+
if @logging_cid.nil?
|
|
201
|
+
invalid_properties.push('invalid value for "logging_cid", logging_cid cannot be nil.')
|
|
202
|
+
end
|
|
203
|
+
|
|
191
204
|
invalid_properties
|
|
192
205
|
end
|
|
193
206
|
|
|
@@ -195,6 +208,7 @@ module PulpcoreClient
|
|
|
195
208
|
# @return true if the model is valid
|
|
196
209
|
def valid?
|
|
197
210
|
return false if @name.nil?
|
|
211
|
+
return false if @logging_cid.nil?
|
|
198
212
|
true
|
|
199
213
|
end
|
|
200
214
|
|
|
@@ -207,6 +221,7 @@ module PulpcoreClient
|
|
|
207
221
|
pulp_created == o.pulp_created &&
|
|
208
222
|
state == o.state &&
|
|
209
223
|
name == o.name &&
|
|
224
|
+
logging_cid == o.logging_cid &&
|
|
210
225
|
started_at == o.started_at &&
|
|
211
226
|
finished_at == o.finished_at &&
|
|
212
227
|
error == o.error &&
|
|
@@ -228,7 +243,7 @@ module PulpcoreClient
|
|
|
228
243
|
# Calculates hash code according to all attributes.
|
|
229
244
|
# @return [Integer] Hash code
|
|
230
245
|
def hash
|
|
231
|
-
[pulp_href, pulp_created, state, name, started_at, finished_at, error, worker, parent_task, child_tasks, task_group, progress_reports, created_resources, reserved_resources_record].hash
|
|
246
|
+
[pulp_href, pulp_created, state, name, logging_cid, started_at, finished_at, error, worker, parent_task, child_tasks, task_group, progress_reports, created_resources, reserved_resources_record].hash
|
|
232
247
|
end
|
|
233
248
|
|
|
234
249
|
# Builds the object from hash
|
|
@@ -15,11 +15,11 @@ require 'date'
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
# Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
|
17
17
|
class WorkerResponse
|
|
18
|
+
attr_accessor :pulp_href
|
|
19
|
+
|
|
18
20
|
# Timestamp of creation.
|
|
19
21
|
attr_accessor :pulp_created
|
|
20
22
|
|
|
21
|
-
attr_accessor :pulp_href
|
|
22
|
-
|
|
23
23
|
# The name of the worker.
|
|
24
24
|
attr_accessor :name
|
|
25
25
|
|
|
@@ -29,8 +29,8 @@ module PulpcoreClient
|
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
30
|
def self.attribute_map
|
|
31
31
|
{
|
|
32
|
-
:'pulp_created' => :'pulp_created',
|
|
33
32
|
:'pulp_href' => :'pulp_href',
|
|
33
|
+
:'pulp_created' => :'pulp_created',
|
|
34
34
|
:'name' => :'name',
|
|
35
35
|
:'last_heartbeat' => :'last_heartbeat'
|
|
36
36
|
}
|
|
@@ -39,8 +39,8 @@ module PulpcoreClient
|
|
|
39
39
|
# Attribute type mapping.
|
|
40
40
|
def self.openapi_types
|
|
41
41
|
{
|
|
42
|
-
:'pulp_created' => :'DateTime',
|
|
43
42
|
:'pulp_href' => :'String',
|
|
43
|
+
:'pulp_created' => :'DateTime',
|
|
44
44
|
:'name' => :'String',
|
|
45
45
|
:'last_heartbeat' => :'DateTime'
|
|
46
46
|
}
|
|
@@ -67,14 +67,14 @@ module PulpcoreClient
|
|
|
67
67
|
h[k.to_sym] = v
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
if attributes.key?(:'pulp_created')
|
|
71
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
72
|
-
end
|
|
73
|
-
|
|
74
70
|
if attributes.key?(:'pulp_href')
|
|
75
71
|
self.pulp_href = attributes[:'pulp_href']
|
|
76
72
|
end
|
|
77
73
|
|
|
74
|
+
if attributes.key?(:'pulp_created')
|
|
75
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
78
|
if attributes.key?(:'name')
|
|
79
79
|
self.name = attributes[:'name']
|
|
80
80
|
end
|
|
@@ -102,8 +102,8 @@ module PulpcoreClient
|
|
|
102
102
|
def ==(o)
|
|
103
103
|
return true if self.equal?(o)
|
|
104
104
|
self.class == o.class &&
|
|
105
|
-
pulp_created == o.pulp_created &&
|
|
106
105
|
pulp_href == o.pulp_href &&
|
|
106
|
+
pulp_created == o.pulp_created &&
|
|
107
107
|
name == o.name &&
|
|
108
108
|
last_heartbeat == o.last_heartbeat
|
|
109
109
|
end
|
|
@@ -117,7 +117,7 @@ module PulpcoreClient
|
|
|
117
117
|
# Calculates hash code according to all attributes.
|
|
118
118
|
# @return [Integer] Hash code
|
|
119
119
|
def hash
|
|
120
|
-
[
|
|
120
|
+
[pulp_href, pulp_created, name, last_heartbeat].hash
|
|
121
121
|
end
|
|
122
122
|
|
|
123
123
|
# Builds the object from hash
|
data/lib/pulpcore_client.rb
CHANGED
|
@@ -88,6 +88,7 @@ require 'pulpcore_client/api/groups_users_api'
|
|
|
88
88
|
require 'pulpcore_client/api/importers_core_imports_api'
|
|
89
89
|
require 'pulpcore_client/api/importers_pulp_api'
|
|
90
90
|
require 'pulpcore_client/api/orphans_api'
|
|
91
|
+
require 'pulpcore_client/api/repair_api'
|
|
91
92
|
require 'pulpcore_client/api/signing_services_api'
|
|
92
93
|
require 'pulpcore_client/api/status_api'
|
|
93
94
|
require 'pulpcore_client/api/task_groups_api'
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpcoreClient::RepairApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RepairApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpcoreClient::RepairApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RepairApi' do
|
|
30
|
+
it 'should create an instance of RepairApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpcoreClient::RepairApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for post
|
|
36
|
+
# Repair Artifact Storage
|
|
37
|
+
# Trigger an asynchronous task that checks for missing or corrupted artifacts, and attempts to redownload them.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [AsyncOperationResponse]
|
|
40
|
+
describe 'post test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
end
|
|
@@ -56,6 +56,12 @@ describe 'TaskResponse' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
describe 'test attribute "logging_cid"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
59
65
|
describe 'test attribute "started_at"' do
|
|
60
66
|
it 'should work' do
|
|
61
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -32,13 +32,13 @@ describe 'WorkerResponse' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(PulpcoreClient::WorkerResponse)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "pulp_href"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_created"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulpcore_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-12-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -128,6 +128,7 @@ files:
|
|
|
128
128
|
- docs/PulpImporter.md
|
|
129
129
|
- docs/PulpImporterResponse.md
|
|
130
130
|
- docs/RedisConnectionResponse.md
|
|
131
|
+
- docs/RepairApi.md
|
|
131
132
|
- docs/SigningServiceResponse.md
|
|
132
133
|
- docs/SigningServicesApi.md
|
|
133
134
|
- docs/StatusApi.md
|
|
@@ -163,6 +164,7 @@ files:
|
|
|
163
164
|
- lib/pulpcore_client/api/importers_core_imports_api.rb
|
|
164
165
|
- lib/pulpcore_client/api/importers_pulp_api.rb
|
|
165
166
|
- lib/pulpcore_client/api/orphans_api.rb
|
|
167
|
+
- lib/pulpcore_client/api/repair_api.rb
|
|
166
168
|
- lib/pulpcore_client/api/signing_services_api.rb
|
|
167
169
|
- lib/pulpcore_client/api/status_api.rb
|
|
168
170
|
- lib/pulpcore_client/api/task_groups_api.rb
|
|
@@ -244,6 +246,7 @@ files:
|
|
|
244
246
|
- spec/api/importers_core_imports_api_spec.rb
|
|
245
247
|
- spec/api/importers_pulp_api_spec.rb
|
|
246
248
|
- spec/api/orphans_api_spec.rb
|
|
249
|
+
- spec/api/repair_api_spec.rb
|
|
247
250
|
- spec/api/signing_services_api_spec.rb
|
|
248
251
|
- spec/api/status_api_spec.rb
|
|
249
252
|
- spec/api/task_groups_api_spec.rb
|
|
@@ -331,87 +334,88 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
331
334
|
- !ruby/object:Gem::Version
|
|
332
335
|
version: '0'
|
|
333
336
|
requirements: []
|
|
334
|
-
rubygems_version: 3.0.
|
|
337
|
+
rubygems_version: 3.0.3
|
|
335
338
|
signing_key:
|
|
336
339
|
specification_version: 4
|
|
337
340
|
summary: Pulp 3 API Ruby Gem
|
|
338
341
|
test_files:
|
|
339
|
-
- spec/api/exporters_core_exports_api_spec.rb
|
|
340
342
|
- spec/api/status_api_spec.rb
|
|
343
|
+
- spec/api/tasks_api_spec.rb
|
|
344
|
+
- spec/api/groups_api_spec.rb
|
|
341
345
|
- spec/api/importers_core_imports_api_spec.rb
|
|
346
|
+
- spec/api/exporters_core_exports_api_spec.rb
|
|
347
|
+
- spec/api/importers_pulp_api_spec.rb
|
|
348
|
+
- spec/api/groups_users_api_spec.rb
|
|
342
349
|
- spec/api/groups_model_permissions_api_spec.rb
|
|
350
|
+
- spec/api/users_api_spec.rb
|
|
343
351
|
- spec/api/uploads_api_spec.rb
|
|
344
|
-
- spec/api/
|
|
352
|
+
- spec/api/task_groups_api_spec.rb
|
|
345
353
|
- spec/api/groups_object_permissions_api_spec.rb
|
|
346
|
-
- spec/api/
|
|
354
|
+
- spec/api/exporters_pulp_api_spec.rb
|
|
355
|
+
- spec/api/orphans_api_spec.rb
|
|
356
|
+
- spec/api/repair_api_spec.rb
|
|
357
|
+
- spec/api/access_policies_api_spec.rb
|
|
347
358
|
- spec/api/workers_api_spec.rb
|
|
359
|
+
- spec/api/signing_services_api_spec.rb
|
|
348
360
|
- spec/api/artifacts_api_spec.rb
|
|
349
|
-
- spec/api/groups_users_api_spec.rb
|
|
350
|
-
- spec/api/users_api_spec.rb
|
|
351
|
-
- spec/api/groups_api_spec.rb
|
|
352
|
-
- spec/api/access_policies_api_spec.rb
|
|
353
|
-
- spec/api/importers_pulp_api_spec.rb
|
|
354
|
-
- spec/api/task_groups_api_spec.rb
|
|
355
|
-
- spec/api/orphans_api_spec.rb
|
|
356
|
-
- spec/api/tasks_api_spec.rb
|
|
357
361
|
- spec/api_client_spec.rb
|
|
358
362
|
- spec/configuration_spec.rb
|
|
363
|
+
- spec/models/upload_commit_spec.rb
|
|
364
|
+
- spec/models/redis_connection_response_spec.rb
|
|
365
|
+
- spec/models/storage_response_spec.rb
|
|
366
|
+
- spec/models/paginated_user_response_list_spec.rb
|
|
367
|
+
- spec/models/patched_pulp_exporter_spec.rb
|
|
368
|
+
- spec/models/version_response_spec.rb
|
|
359
369
|
- spec/models/upload_response_spec.rb
|
|
360
|
-
- spec/models/pulp_exporter_spec.rb
|
|
361
|
-
- spec/models/user_group_response_spec.rb
|
|
362
|
-
- spec/models/task_response_spec.rb
|
|
363
|
-
- spec/models/paginated_import_response_list_spec.rb
|
|
364
370
|
- spec/models/access_policy_response_spec.rb
|
|
365
|
-
- spec/models/paginated_task_response_list_spec.rb
|
|
366
|
-
- spec/models/group_user_response_spec.rb
|
|
367
|
-
- spec/models/storage_response_spec.rb
|
|
368
|
-
- spec/models/access_policy_spec.rb
|
|
369
|
-
- spec/models/pulp_import_spec.rb
|
|
370
|
-
- spec/models/artifact_response_spec.rb
|
|
371
|
-
- spec/models/pulp_importer_spec.rb
|
|
372
371
|
- spec/models/group_user_spec.rb
|
|
373
|
-
- spec/models/
|
|
372
|
+
- spec/models/signing_service_response_spec.rb
|
|
373
|
+
- spec/models/paginated_upload_response_list_spec.rb
|
|
374
|
+
- spec/models/artifact_spec.rb
|
|
375
|
+
- spec/models/patched_group_spec.rb
|
|
374
376
|
- spec/models/database_connection_response_spec.rb
|
|
375
377
|
- spec/models/permission_response_spec.rb
|
|
376
|
-
- spec/models/group_spec.rb
|
|
377
378
|
- spec/models/paginated_access_policy_response_list_spec.rb
|
|
378
|
-
- spec/models/patched_group_spec.rb
|
|
379
|
-
- spec/models/artifact_spec.rb
|
|
380
|
-
- spec/models/pulp_importer_response_spec.rb
|
|
381
|
-
- spec/models/paginated_worker_response_list_spec.rb
|
|
382
|
-
- spec/models/group_response_spec.rb
|
|
383
|
-
- spec/models/version_response_spec.rb
|
|
384
|
-
- spec/models/pulp_exporter_response_spec.rb
|
|
385
|
-
- spec/models/paginated_user_response_list_spec.rb
|
|
386
|
-
- spec/models/patched_access_policy_spec.rb
|
|
387
379
|
- spec/models/import_response_spec.rb
|
|
388
|
-
- spec/models/
|
|
389
|
-
- spec/models/
|
|
390
|
-
- spec/models/
|
|
391
|
-
- spec/models/
|
|
392
|
-
- spec/models/
|
|
380
|
+
- spec/models/pulp_export_response_spec.rb
|
|
381
|
+
- spec/models/pulp_export_spec.rb
|
|
382
|
+
- spec/models/task_group_response_spec.rb
|
|
383
|
+
- spec/models/paginated_pulp_importer_response_list_spec.rb
|
|
384
|
+
- spec/models/group_spec.rb
|
|
393
385
|
- spec/models/group_progress_report_response_spec.rb
|
|
394
|
-
- spec/models/
|
|
386
|
+
- spec/models/pulp_importer_spec.rb
|
|
387
|
+
- spec/models/pulp_exporter_response_spec.rb
|
|
388
|
+
- spec/models/patched_task_cancel_spec.rb
|
|
389
|
+
- spec/models/access_policy_spec.rb
|
|
395
390
|
- spec/models/paginated_task_group_response_list_spec.rb
|
|
396
|
-
- spec/models/async_operation_response_spec.rb
|
|
397
|
-
- spec/models/progress_report_response_spec.rb
|
|
398
|
-
- spec/models/upload_spec.rb
|
|
399
|
-
- spec/models/paginated_permission_response_list_spec.rb
|
|
400
|
-
- spec/models/paginated_group_user_response_list_spec.rb
|
|
401
|
-
- spec/models/upload_detail_response_spec.rb
|
|
402
|
-
- spec/models/upload_chunk_spec.rb
|
|
403
391
|
- spec/models/patched_pulp_importer_spec.rb
|
|
404
|
-
- spec/models/pulp_export_spec.rb
|
|
405
|
-
- spec/models/pulp_export_response_spec.rb
|
|
406
|
-
- spec/models/paginated_artifact_response_list_spec.rb
|
|
407
|
-
- spec/models/patched_task_cancel_spec.rb
|
|
408
|
-
- spec/models/paginated_pulp_importer_response_list_spec.rb
|
|
409
392
|
- spec/models/upload_chunk_response_spec.rb
|
|
393
|
+
- spec/models/paginated_pulp_export_response_list_spec.rb
|
|
394
|
+
- spec/models/paginated_artifact_response_list_spec.rb
|
|
395
|
+
- spec/models/artifact_response_spec.rb
|
|
396
|
+
- spec/models/paginated_signing_service_response_list_spec.rb
|
|
397
|
+
- spec/models/group_response_spec.rb
|
|
398
|
+
- spec/models/pulp_exporter_spec.rb
|
|
399
|
+
- spec/models/status_response_spec.rb
|
|
410
400
|
- spec/models/user_response_spec.rb
|
|
411
|
-
- spec/models/
|
|
412
|
-
- spec/models/
|
|
413
|
-
- spec/models/
|
|
401
|
+
- spec/models/upload_chunk_spec.rb
|
|
402
|
+
- spec/models/patched_access_policy_spec.rb
|
|
403
|
+
- spec/models/paginated_import_response_list_spec.rb
|
|
404
|
+
- spec/models/paginated_permission_response_list_spec.rb
|
|
405
|
+
- spec/models/upload_spec.rb
|
|
406
|
+
- spec/models/task_response_spec.rb
|
|
407
|
+
- spec/models/user_group_response_spec.rb
|
|
408
|
+
- spec/models/group_user_response_spec.rb
|
|
414
409
|
- spec/models/paginated_pulp_exporter_response_list_spec.rb
|
|
415
|
-
- spec/models/
|
|
416
|
-
- spec/models/
|
|
410
|
+
- spec/models/paginated_task_response_list_spec.rb
|
|
411
|
+
- spec/models/upload_detail_response_spec.rb
|
|
412
|
+
- spec/models/worker_response_spec.rb
|
|
413
|
+
- spec/models/pulp_importer_response_spec.rb
|
|
414
|
+
- spec/models/paginated_group_user_response_list_spec.rb
|
|
415
|
+
- spec/models/paginated_group_response_list_spec.rb
|
|
416
|
+
- spec/models/content_app_status_response_spec.rb
|
|
417
|
+
- spec/models/async_operation_response_spec.rb
|
|
418
|
+
- spec/models/progress_report_response_spec.rb
|
|
419
|
+
- spec/models/paginated_worker_response_list_spec.rb
|
|
420
|
+
- spec/models/pulp_import_spec.rb
|
|
417
421
|
- spec/spec_helper.rb
|