pulp_container_client 1.2.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7755b1457202dde04b2f5a181fd22f9a4f4125960fb531358430afa97998c488
4
- data.tar.gz: 9868afec1641b57b3025c0dcf986bba761cce57133e8d70c52e014de770a0f03
3
+ metadata.gz: fe229a3005dfe565f7fc2286326892ea158ffcfda5981b9cb203031bc989acc2
4
+ data.tar.gz: f4203ed1cd2917ea662e338bbb8bbb70d8582516635f755575181f17108830f5
5
5
  SHA512:
6
- metadata.gz: 74d67629e6c78eabf9044fe340de8db360930f37fa06fc23865ea20c9e3ea36cc8e4d3b5b309bc15ce001dd4b164ff71c51c35c613f5f80837b16ad27c18170d
7
- data.tar.gz: c834b03c484e8cad34541843b946d224902ac2e71de5dc8be1ef3f0704278c2aa0acf40d603894487c44429c8e0c3369c5a1dc93432761de91a27a2fa3c6ebf9
6
+ metadata.gz: be6edfee08bf761852b55e8c5b44eda74b63df5c8b76580873b41739a9cb8719aea1b1f3180c17ef78cd2387d25505c9737928a2016a795834aec99119a12e4f
7
+ data.tar.gz: 144e8b41e7c548c137c2227d052d09e16140a7f907034da5727ec76c5206ecec4ebf5142b8910077395b3a6e1367aca94417755d4b67d6ae242124e11b723591
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
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: 1.2.0
10
+ - Package version: 1.3.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build pulp_container_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./pulp_container_client-1.2.0.gem
26
+ gem install ./pulp_container_client-1.3.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulp_container_client-1.2.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulp_container_client-1.3.0.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'pulp_container_client', '~> 1.2.0'
35
+ gem 'pulp_container_client', '~> 1.3.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -65,6 +65,7 @@ end
65
65
 
66
66
  api_instance = PulpContainerClient::ContentBlobsApi.new
67
67
  opts = {
68
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
68
69
  digest: 'digest_example', # String | Filter results where digest matches value
69
70
  digest__in: 'digest__in_example', # String | Filter results where digest is in a comma-separated list of values
70
71
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
@@ -128,6 +129,7 @@ Class | Method | HTTP request | Description
128
129
  *PulpContainerClient::RepositoriesContainerVersionsApi* | [**delete**](docs/RepositoriesContainerVersionsApi.md#delete) | **DELETE** {container_repository_version_href} | Delete a repository version
129
130
  *PulpContainerClient::RepositoriesContainerVersionsApi* | [**list**](docs/RepositoriesContainerVersionsApi.md#list) | **GET** {container_repository_href}versions/ | List repository versions
130
131
  *PulpContainerClient::RepositoriesContainerVersionsApi* | [**read**](docs/RepositoriesContainerVersionsApi.md#read) | **GET** {container_repository_version_href} | Inspect a repository version
132
+ *PulpContainerClient::RepositoriesContainerVersionsApi* | [**repair**](docs/RepositoriesContainerVersionsApi.md#repair) | **POST** {container_repository_version_href}repair/ |
131
133
 
132
134
 
133
135
  ## Documentation for Models
@@ -4,11 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **repository_version** | **String** | RepositoryVersion to be served | [optional]
8
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
9
- **content_guard** | **String** | An optional content-guard. | [optional]
10
7
  **pulp_href** | **String** | | [optional] [readonly]
8
+ **repository_version** | **String** | RepositoryVersion to be served | [optional]
11
9
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
+ **content_guard** | **String** | An optional content-guard. | [optional]
11
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
12
12
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
13
13
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
14
14
  **registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
@@ -18,11 +18,11 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::ContainerContainerDistribution.new(repository_version: null,
22
- base_path: null,
23
- content_guard: null,
24
- pulp_href: null,
21
+ instance = PulpContainerClient::ContainerContainerDistribution.new(pulp_href: null,
22
+ repository_version: null,
25
23
  repository: null,
24
+ content_guard: null,
25
+ base_path: null,
26
26
  pulp_created: null,
27
27
  name: null,
28
28
  registry_path: null)
@@ -31,6 +31,7 @@ end
31
31
 
32
32
  api_instance = PulpContainerClient::ContentBlobsApi.new
33
33
  opts = {
34
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
34
35
  digest: 'digest_example', # String | Filter results where digest matches value
35
36
  digest__in: 'digest__in_example', # String | Filter results where digest is in a comma-separated list of values
36
37
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
@@ -57,6 +58,7 @@ end
57
58
 
58
59
  Name | Type | Description | Notes
59
60
  ------------- | ------------- | ------------- | -------------
61
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
60
62
  **digest** | **String**| Filter results where digest matches value | [optional]
61
63
  **digest__in** | **String**| Filter results where digest is in a comma-separated list of values | [optional]
62
64
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
@@ -31,6 +31,7 @@ end
31
31
 
32
32
  api_instance = PulpContainerClient::ContentManifestsApi.new
33
33
  opts = {
34
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
34
35
  digest: 'digest_example', # String | Filter results where digest matches value
35
36
  digest__in: 'digest__in_example', # String | Filter results where digest is in a comma-separated list of values
36
37
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
@@ -57,6 +58,7 @@ end
57
58
 
58
59
  Name | Type | Description | Notes
59
60
  ------------- | ------------- | ------------- | -------------
61
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
60
62
  **digest** | **String**| Filter results where digest matches value | [optional]
61
63
  **digest__in** | **String**| Filter results where digest is in a comma-separated list of values | [optional]
62
64
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
@@ -31,6 +31,7 @@ end
31
31
 
32
32
  api_instance = PulpContainerClient::ContentTagsApi.new
33
33
  opts = {
34
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
34
35
  name: 'name_example', # String | Filter results where name matches value
35
36
  name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
36
37
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
@@ -58,6 +59,7 @@ end
58
59
 
59
60
  Name | Type | Description | Notes
60
61
  ------------- | ------------- | ------------- | -------------
62
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
61
63
  **name** | **String**| Filter results where name matches value | [optional]
62
64
  **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
63
65
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
@@ -141,6 +141,7 @@ end
141
141
 
142
142
  api_instance = PulpContainerClient::DistributionsContainerApi.new
143
143
  opts = {
144
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
144
145
  name: 'name_example', # String |
145
146
  name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
146
147
  base_path: 'base_path_example', # String |
@@ -167,6 +168,7 @@ end
167
168
 
168
169
  Name | Type | Description | Notes
169
170
  ------------- | ------------- | ------------- | -------------
171
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
170
172
  **name** | **String**| | [optional]
171
173
  **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
172
174
  **base_path** | **String**| | [optional]
@@ -141,6 +141,7 @@ end
141
141
 
142
142
  api_instance = PulpContainerClient::RemotesContainerApi.new
143
143
  opts = {
144
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
144
145
  name: 'name_example', # String |
145
146
  name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
146
147
  pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | Filter results where pulp_last_updated is less than value
@@ -169,6 +170,7 @@ end
169
170
 
170
171
  Name | Type | Description | Notes
171
172
  ------------- | ------------- | ------------- | -------------
173
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
172
174
  **name** | **String**| | [optional]
173
175
  **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
174
176
  **pulp_last_updated__lt** | **String**| Filter results where pulp_last_updated is less than value | [optional]
@@ -377,6 +377,7 @@ end
377
377
 
378
378
  api_instance = PulpContainerClient::RepositoriesContainerApi.new
379
379
  opts = {
380
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
380
381
  name: 'name_example', # String |
381
382
  name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
382
383
  limit: 56, # Integer | Number of results to return per page.
@@ -399,6 +400,7 @@ end
399
400
 
400
401
  Name | Type | Description | Notes
401
402
  ------------- | ------------- | ------------- | -------------
403
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
402
404
  **name** | **String**| | [optional]
403
405
  **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
404
406
  **limit** | **Integer**| Number of results to return per page. | [optional]
@@ -7,6 +7,7 @@ Method | HTTP request | Description
7
7
  [**delete**](RepositoriesContainerVersionsApi.md#delete) | **DELETE** {container_repository_version_href} | Delete a repository version
8
8
  [**list**](RepositoriesContainerVersionsApi.md#list) | **GET** {container_repository_href}versions/ | List repository versions
9
9
  [**read**](RepositoriesContainerVersionsApi.md#read) | **GET** {container_repository_version_href} | Inspect a repository version
10
+ [**repair**](RepositoriesContainerVersionsApi.md#repair) | **POST** {container_repository_version_href}repair/ |
10
11
 
11
12
 
12
13
 
@@ -212,3 +213,57 @@ Name | Type | Description | Notes
212
213
  - **Content-Type**: Not defined
213
214
  - **Accept**: application/json
214
215
 
216
+
217
+ ## repair
218
+
219
+ > AsyncOperationResponse repair(container_repository_version_href, data)
220
+
221
+
222
+
223
+ Trigger an asynchronous task to repair a repositroy version.
224
+
225
+ ### Example
226
+
227
+ ```ruby
228
+ # load the gem
229
+ require 'pulp_container_client'
230
+ # setup authorization
231
+ PulpContainerClient.configure do |config|
232
+ # Configure HTTP basic authorization: Basic
233
+ config.username = 'YOUR USERNAME'
234
+ config.password = 'YOUR PASSWORD'
235
+ end
236
+
237
+ api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
238
+ container_repository_version_href = 'container_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/
239
+ data = PulpContainerClient::RepositoryVersion.new # RepositoryVersion |
240
+
241
+ begin
242
+ result = api_instance.repair(container_repository_version_href, data)
243
+ p result
244
+ rescue PulpContainerClient::ApiError => e
245
+ puts "Exception when calling RepositoriesContainerVersionsApi->repair: #{e}"
246
+ end
247
+ ```
248
+
249
+ ### Parameters
250
+
251
+
252
+ Name | Type | Description | Notes
253
+ ------------- | ------------- | ------------- | -------------
254
+ **container_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/ |
255
+ **data** | [**RepositoryVersion**](RepositoryVersion.md)| |
256
+
257
+ ### Return type
258
+
259
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
260
+
261
+ ### Authorization
262
+
263
+ [Basic](../README.md#Basic)
264
+
265
+ ### HTTP request headers
266
+
267
+ - **Content-Type**: application/json
268
+ - **Accept**: application/json
269
+
@@ -22,6 +22,7 @@ module PulpContainerClient
22
22
  # List blobs
23
23
  # ViewSet for Blobs.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :ordering Which field to use when ordering the results.
25
26
  # @option opts [String] :digest Filter results where digest matches value
26
27
  # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
27
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -41,6 +42,7 @@ module PulpContainerClient
41
42
  # List blobs
42
43
  # ViewSet for Blobs.
43
44
  # @param [Hash] opts the optional parameters
45
+ # @option opts [String] :ordering Which field to use when ordering the results.
44
46
  # @option opts [String] :digest Filter results where digest matches value
45
47
  # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
46
48
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -61,6 +63,7 @@ module PulpContainerClient
61
63
 
62
64
  # query parameters
63
65
  query_params = opts[:query_params] || {}
66
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
64
67
  query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
65
68
  query_params[:'digest__in'] = opts[:'digest__in'] if !opts[:'digest__in'].nil?
66
69
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -22,6 +22,7 @@ module PulpContainerClient
22
22
  # List manifests
23
23
  # ViewSet for Manifest.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :ordering Which field to use when ordering the results.
25
26
  # @option opts [String] :digest Filter results where digest matches value
26
27
  # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
27
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -41,6 +42,7 @@ module PulpContainerClient
41
42
  # List manifests
42
43
  # ViewSet for Manifest.
43
44
  # @param [Hash] opts the optional parameters
45
+ # @option opts [String] :ordering Which field to use when ordering the results.
44
46
  # @option opts [String] :digest Filter results where digest matches value
45
47
  # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
46
48
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -61,6 +63,7 @@ module PulpContainerClient
61
63
 
62
64
  # query parameters
63
65
  query_params = opts[:query_params] || {}
66
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
64
67
  query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
65
68
  query_params[:'digest__in'] = opts[:'digest__in'] if !opts[:'digest__in'].nil?
66
69
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -22,6 +22,7 @@ module PulpContainerClient
22
22
  # List tags
23
23
  # ViewSet for Tag.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :ordering Which field to use when ordering the results.
25
26
  # @option opts [String] :name Filter results where name matches value
26
27
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
27
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -42,6 +43,7 @@ module PulpContainerClient
42
43
  # List tags
43
44
  # ViewSet for Tag.
44
45
  # @param [Hash] opts the optional parameters
46
+ # @option opts [String] :ordering Which field to use when ordering the results.
45
47
  # @option opts [String] :name Filter results where name matches value
46
48
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
47
49
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -63,6 +65,7 @@ module PulpContainerClient
63
65
 
64
66
  # query parameters
65
67
  query_params = opts[:query_params] || {}
68
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
66
69
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
67
70
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
68
71
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -148,6 +148,7 @@ module PulpContainerClient
148
148
  # List container distributions
149
149
  # The Container Distribution will serve the latest version of a Repository if ``repository`` is specified. The Container Distribution will serve a specific repository version if ``repository_version``. Note that **either** ``repository`` or ``repository_version`` can be set on a Container Distribution, but not both.
150
150
  # @param [Hash] opts the optional parameters
151
+ # @option opts [String] :ordering Which field to use when ordering the results.
151
152
  # @option opts [String] :name
152
153
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
153
154
  # @option opts [String] :base_path
@@ -167,6 +168,7 @@ module PulpContainerClient
167
168
  # List container distributions
168
169
  # The Container Distribution will serve the latest version of a Repository if ``repository`` is specified. The Container Distribution will serve a specific repository version if ``repository_version``. Note that **either** ``repository`` or ``repository_version`` can be set on a Container Distribution, but not both.
169
170
  # @param [Hash] opts the optional parameters
171
+ # @option opts [String] :ordering Which field to use when ordering the results.
170
172
  # @option opts [String] :name
171
173
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
172
174
  # @option opts [String] :base_path
@@ -187,6 +189,7 @@ module PulpContainerClient
187
189
 
188
190
  # query parameters
189
191
  query_params = opts[:query_params] || {}
192
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
190
193
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
191
194
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
192
195
  query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
@@ -148,6 +148,7 @@ module PulpContainerClient
148
148
  # List container remotes
149
149
  # Container remotes represent an external repository that implements the Container Registry API. Container remotes support deferred downloading by configuring the ``policy`` field. ``on_demand`` and ``streamed`` policies can provide significant disk space savings.
150
150
  # @param [Hash] opts the optional parameters
151
+ # @option opts [String] :ordering Which field to use when ordering the results.
151
152
  # @option opts [String] :name
152
153
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
153
154
  # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
@@ -169,6 +170,7 @@ module PulpContainerClient
169
170
  # List container remotes
170
171
  # Container remotes represent an external repository that implements the Container Registry API. Container remotes support deferred downloading by configuring the ``policy`` field. ``on_demand`` and ``streamed`` policies can provide significant disk space savings.
171
172
  # @param [Hash] opts the optional parameters
173
+ # @option opts [String] :ordering Which field to use when ordering the results.
172
174
  # @option opts [String] :name
173
175
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
174
176
  # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
@@ -191,6 +193,7 @@ module PulpContainerClient
191
193
 
192
194
  # query parameters
193
195
  query_params = opts[:query_params] || {}
196
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
194
197
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
195
198
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
196
199
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
@@ -438,6 +438,7 @@ module PulpContainerClient
438
438
  # List container repositorys
439
439
  # ViewSet for container repo.
440
440
  # @param [Hash] opts the optional parameters
441
+ # @option opts [String] :ordering Which field to use when ordering the results.
441
442
  # @option opts [String] :name
442
443
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
443
444
  # @option opts [Integer] :limit Number of results to return per page.
@@ -453,6 +454,7 @@ module PulpContainerClient
453
454
  # List container repositorys
454
455
  # ViewSet for container repo.
455
456
  # @param [Hash] opts the optional parameters
457
+ # @option opts [String] :ordering Which field to use when ordering the results.
456
458
  # @option opts [String] :name
457
459
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
458
460
  # @option opts [Integer] :limit Number of results to return per page.
@@ -469,6 +471,7 @@ module PulpContainerClient
469
471
 
470
472
  # query parameters
471
473
  query_params = opts[:query_params] || {}
474
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
472
475
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
473
476
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
474
477
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
@@ -264,5 +264,73 @@ module PulpContainerClient
264
264
  end
265
265
  return data, status_code, headers
266
266
  end
267
+
268
+ # Trigger an asynchronous task to repair a repositroy version.
269
+ # @param container_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/
270
+ # @param data [RepositoryVersion]
271
+ # @param [Hash] opts the optional parameters
272
+ # @return [AsyncOperationResponse]
273
+ def repair(container_repository_version_href, data, opts = {})
274
+ data, _status_code, _headers = repair_with_http_info(container_repository_version_href, data, opts)
275
+ data
276
+ end
277
+
278
+ # Trigger an asynchronous task to repair a repositroy version.
279
+ # @param container_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/
280
+ # @param data [RepositoryVersion]
281
+ # @param [Hash] opts the optional parameters
282
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
283
+ def repair_with_http_info(container_repository_version_href, data, opts = {})
284
+ if @api_client.config.debugging
285
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.repair ...'
286
+ end
287
+ # verify the required parameter 'container_repository_version_href' is set
288
+ if @api_client.config.client_side_validation && container_repository_version_href.nil?
289
+ fail ArgumentError, "Missing the required parameter 'container_repository_version_href' when calling RepositoriesContainerVersionsApi.repair"
290
+ end
291
+ # verify the required parameter 'data' is set
292
+ if @api_client.config.client_side_validation && data.nil?
293
+ fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesContainerVersionsApi.repair"
294
+ end
295
+ # resource path
296
+ local_var_path = '{container_repository_version_href}repair/'.sub('{' + 'container_repository_version_href' + '}', CGI.escape(container_repository_version_href.to_s).gsub('%2F', '/'))
297
+
298
+ # query parameters
299
+ query_params = opts[:query_params] || {}
300
+
301
+ # header parameters
302
+ header_params = opts[:header_params] || {}
303
+ # HTTP header 'Accept' (if needed)
304
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
305
+ # HTTP header 'Content-Type'
306
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
307
+
308
+ # form parameters
309
+ form_params = opts[:form_params] || {}
310
+
311
+ # http body (model)
312
+ post_body = opts[:body] || @api_client.object_to_http_body(data)
313
+
314
+ # return_type
315
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
316
+
317
+ # auth_names
318
+ auth_names = opts[:auth_names] || ['Basic']
319
+
320
+ new_options = opts.merge(
321
+ :header_params => header_params,
322
+ :query_params => query_params,
323
+ :form_params => form_params,
324
+ :body => post_body,
325
+ :auth_names => auth_names,
326
+ :return_type => return_type
327
+ )
328
+
329
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
330
+ if @api_client.config.debugging
331
+ @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
332
+ end
333
+ return data, status_code, headers
334
+ end
267
335
  end
268
336
  end
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module PulpContainerClient
16
16
  class ContainerContainerDistribution
17
+ attr_accessor :pulp_href
18
+
17
19
  # RepositoryVersion to be served
18
20
  attr_accessor :repository_version
19
21
 
20
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
21
- attr_accessor :base_path
22
+ # The latest RepositoryVersion for this Repository will be served.
23
+ attr_accessor :repository
22
24
 
23
25
  # An optional content-guard.
24
26
  attr_accessor :content_guard
25
27
 
26
- attr_accessor :pulp_href
27
-
28
- # The latest RepositoryVersion for this Repository will be served.
29
- attr_accessor :repository
28
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
29
+ attr_accessor :base_path
30
30
 
31
31
  # Timestamp of creation.
32
32
  attr_accessor :pulp_created
@@ -40,11 +40,11 @@ module PulpContainerClient
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
- :'repository_version' => :'repository_version',
44
- :'base_path' => :'base_path',
45
- :'content_guard' => :'content_guard',
46
43
  :'pulp_href' => :'pulp_href',
44
+ :'repository_version' => :'repository_version',
47
45
  :'repository' => :'repository',
46
+ :'content_guard' => :'content_guard',
47
+ :'base_path' => :'base_path',
48
48
  :'pulp_created' => :'pulp_created',
49
49
  :'name' => :'name',
50
50
  :'registry_path' => :'registry_path'
@@ -54,11 +54,11 @@ module PulpContainerClient
54
54
  # Attribute type mapping.
55
55
  def self.openapi_types
56
56
  {
57
- :'repository_version' => :'String',
58
- :'base_path' => :'String',
59
- :'content_guard' => :'String',
60
57
  :'pulp_href' => :'String',
58
+ :'repository_version' => :'String',
61
59
  :'repository' => :'String',
60
+ :'content_guard' => :'String',
61
+ :'base_path' => :'String',
62
62
  :'pulp_created' => :'DateTime',
63
63
  :'name' => :'String',
64
64
  :'registry_path' => :'String'
@@ -69,8 +69,8 @@ module PulpContainerClient
69
69
  def self.openapi_nullable
70
70
  Set.new([
71
71
  :'repository_version',
72
- :'content_guard',
73
72
  :'repository',
73
+ :'content_guard',
74
74
  ])
75
75
  end
76
76
 
@@ -89,24 +89,24 @@ module PulpContainerClient
89
89
  h[k.to_sym] = v
90
90
  }
91
91
 
92
+ if attributes.key?(:'pulp_href')
93
+ self.pulp_href = attributes[:'pulp_href']
94
+ end
95
+
92
96
  if attributes.key?(:'repository_version')
93
97
  self.repository_version = attributes[:'repository_version']
94
98
  end
95
99
 
96
- if attributes.key?(:'base_path')
97
- self.base_path = attributes[:'base_path']
100
+ if attributes.key?(:'repository')
101
+ self.repository = attributes[:'repository']
98
102
  end
99
103
 
100
104
  if attributes.key?(:'content_guard')
101
105
  self.content_guard = attributes[:'content_guard']
102
106
  end
103
107
 
104
- if attributes.key?(:'pulp_href')
105
- self.pulp_href = attributes[:'pulp_href']
106
- end
107
-
108
- if attributes.key?(:'repository')
109
- self.repository = attributes[:'repository']
108
+ if attributes.key?(:'base_path')
109
+ self.base_path = attributes[:'base_path']
110
110
  end
111
111
 
112
112
  if attributes.key?(:'pulp_created')
@@ -203,11 +203,11 @@ module PulpContainerClient
203
203
  def ==(o)
204
204
  return true if self.equal?(o)
205
205
  self.class == o.class &&
206
- repository_version == o.repository_version &&
207
- base_path == o.base_path &&
208
- content_guard == o.content_guard &&
209
206
  pulp_href == o.pulp_href &&
207
+ repository_version == o.repository_version &&
210
208
  repository == o.repository &&
209
+ content_guard == o.content_guard &&
210
+ base_path == o.base_path &&
211
211
  pulp_created == o.pulp_created &&
212
212
  name == o.name &&
213
213
  registry_path == o.registry_path
@@ -222,7 +222,7 @@ module PulpContainerClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [repository_version, base_path, content_guard, pulp_href, repository, pulp_created, name, registry_path].hash
225
+ [pulp_href, repository_version, repository, content_guard, base_path, pulp_created, name, registry_path].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '1.2.0'
14
+ VERSION = '1.3.0'
15
15
  end
@@ -36,6 +36,7 @@ describe 'ContentBlobsApi' do
36
36
  # List blobs
37
37
  # ViewSet for Blobs.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :ordering Which field to use when ordering the results.
39
40
  # @option opts [String] :digest Filter results where digest matches value
40
41
  # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
41
42
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -36,6 +36,7 @@ describe 'ContentManifestsApi' do
36
36
  # List manifests
37
37
  # ViewSet for Manifest.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :ordering Which field to use when ordering the results.
39
40
  # @option opts [String] :digest Filter results where digest matches value
40
41
  # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
41
42
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -36,6 +36,7 @@ describe 'ContentTagsApi' do
36
36
  # List tags
37
37
  # ViewSet for Tag.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :ordering Which field to use when ordering the results.
39
40
  # @option opts [String] :name Filter results where name matches value
40
41
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
41
42
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -60,6 +60,7 @@ describe 'DistributionsContainerApi' do
60
60
  # List container distributions
61
61
  # The Container Distribution will serve the latest version of a Repository if &#x60;&#x60;repository&#x60;&#x60; is specified. The Container Distribution will serve a specific repository version if &#x60;&#x60;repository_version&#x60;&#x60;. Note that **either** &#x60;&#x60;repository&#x60;&#x60; or &#x60;&#x60;repository_version&#x60;&#x60; can be set on a Container Distribution, but not both.
62
62
  # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :ordering Which field to use when ordering the results.
63
64
  # @option opts [String] :name
64
65
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
65
66
  # @option opts [String] :base_path
@@ -60,6 +60,7 @@ describe 'RemotesContainerApi' do
60
60
  # List container remotes
61
61
  # Container remotes represent an external repository that implements the Container Registry API. Container remotes support deferred downloading by configuring the &#x60;&#x60;policy&#x60;&#x60; field. &#x60;&#x60;on_demand&#x60;&#x60; and &#x60;&#x60;streamed&#x60;&#x60; policies can provide significant disk space savings.
62
62
  # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :ordering Which field to use when ordering the results.
63
64
  # @option opts [String] :name
64
65
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
65
66
  # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
@@ -115,6 +115,7 @@ describe 'RepositoriesContainerApi' do
115
115
  # List container repositorys
116
116
  # ViewSet for container repo.
117
117
  # @param [Hash] opts the optional parameters
118
+ # @option opts [String] :ordering Which field to use when ordering the results.
118
119
  # @option opts [String] :name
119
120
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
120
121
  # @option opts [Integer] :limit Number of results to return per page.
@@ -88,4 +88,16 @@ describe 'RepositoriesContainerVersionsApi' do
88
88
  end
89
89
  end
90
90
 
91
+ # unit tests for repair
92
+ # Trigger an asynchronous task to repair a repositroy version.
93
+ # @param container_repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/
94
+ # @param data
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [AsyncOperationResponse]
97
+ describe 'repair test' do
98
+ it 'should work' do
99
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
100
+ end
101
+ end
102
+
91
103
  end
@@ -32,31 +32,31 @@ describe 'ContainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "repository_version"' do
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 "base_path"' do
41
+ describe 'test attribute "repository_version"' 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
45
45
  end
46
46
 
47
- describe 'test attribute "content_guard"' do
47
+ describe 'test attribute "repository"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "pulp_href"' do
53
+ describe 'test attribute "content_guard"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "repository"' do
59
+ describe 'test attribute "base_path"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_container_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.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-03-05 00:00:00.000000000 Z
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday