pulp_docker_client 4.0.0b7 → 4.0.0b8.dev01573482113
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.
Potentially problematic release.
This version of pulp_docker_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +24 -16
- data/docs/ContentBlobsApi.md +8 -58
- data/docs/ContentManifestsApi.md +8 -58
- data/docs/ContentTagsApi.md +8 -58
- data/docs/DistributionsDockerApi.md +14 -10
- data/docs/{Blob.md → DockerBlob.md} +5 -9
- data/docs/{DockerDistribution.md → DockerDockerDistribution.md} +11 -11
- data/docs/{DockerRemote.md → DockerDockerRemote.md} +8 -14
- data/docs/{Manifest.md → DockerManifest.md} +5 -9
- data/docs/{Tag.md → DockerTag.md} +5 -9
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/RemotesDockerApi.md +28 -24
- data/lib/pulp_docker_client/api/content_blobs_api.rb +10 -68
- data/lib/pulp_docker_client/api/content_manifests_api.rb +10 -68
- data/lib/pulp_docker_client/api/content_tags_api.rb +10 -68
- data/lib/pulp_docker_client/api/distributions_docker_api.rb +16 -10
- data/lib/pulp_docker_client/api/docker_copy_api.rb +1 -1
- data/lib/pulp_docker_client/api/docker_recursive_add_api.rb +1 -1
- data/lib/pulp_docker_client/api/docker_recursive_remove_api.rb +1 -1
- data/lib/pulp_docker_client/api/docker_tag_api.rb +1 -1
- data/lib/pulp_docker_client/api/docker_untag_api.rb +1 -1
- data/lib/pulp_docker_client/api/remotes_docker_api.rb +37 -31
- data/lib/pulp_docker_client/api_client.rb +1 -1
- data/lib/pulp_docker_client/api_error.rb +1 -1
- data/lib/pulp_docker_client/configuration.rb +1 -1
- data/lib/pulp_docker_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_docker_client/models/{blob.rb → docker_blob.rb} +28 -76
- data/lib/pulp_docker_client/models/{docker_distribution.rb → docker_docker_distribution.rb} +52 -39
- data/lib/pulp_docker_client/models/{docker_remote.rb → docker_docker_remote.rb} +44 -116
- data/lib/pulp_docker_client/models/{manifest.rb → docker_manifest.rb} +28 -76
- data/lib/pulp_docker_client/models/{tag.rb → docker_tag.rb} +28 -76
- data/lib/pulp_docker_client/models/inline_response200.rb +15 -3
- data/lib/pulp_docker_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_docker_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_docker_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_docker_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_docker_client/models/manifest_copy.rb +12 -2
- data/lib/pulp_docker_client/models/recursive_manage.rb +12 -2
- data/lib/pulp_docker_client/models/repository_sync_url.rb +12 -2
- data/lib/pulp_docker_client/models/tag_copy.rb +12 -2
- data/lib/pulp_docker_client/models/tag_image.rb +12 -2
- data/lib/pulp_docker_client/models/un_tag_image.rb +12 -2
- data/lib/pulp_docker_client/version.rb +2 -2
- data/lib/pulp_docker_client.rb +6 -6
- data/pulp_docker_client.gemspec +1 -1
- data/spec/api/content_blobs_api_spec.rb +4 -14
- data/spec/api/content_manifests_api_spec.rb +4 -14
- data/spec/api/content_tags_api_spec.rb +4 -14
- data/spec/api/distributions_docker_api_spec.rb +4 -2
- data/spec/api/docker_copy_api_spec.rb +1 -1
- data/spec/api/docker_recursive_add_api_spec.rb +1 -1
- data/spec/api/docker_recursive_remove_api_spec.rb +1 -1
- data/spec/api/docker_tag_api_spec.rb +1 -1
- data/spec/api/docker_untag_api_spec.rb +1 -1
- data/spec/api/remotes_docker_api_spec.rb +11 -9
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/{blob_spec.rb → docker_blob_spec.rb} +9 -21
- data/spec/models/{docker_distribution_spec.rb → docker_docker_distribution_spec.rb} +14 -14
- data/spec/models/{docker_remote_spec.rb → docker_docker_remote_spec.rb} +10 -28
- data/spec/models/{manifest_spec.rb → docker_manifest_spec.rb} +9 -21
- data/spec/models/{tag_spec.rb → docker_tag_spec.rb} +9 -21
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/manifest_copy_spec.rb +1 -1
- data/spec/models/recursive_manage_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/tag_copy_spec.rb +1 -1
- data/spec/models/tag_image_spec.rb +1 -1
- data/spec/models/un_tag_image_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +22 -22
@@ -1,12 +1,11 @@
|
|
1
|
-
# PulpDockerClient::
|
1
|
+
# PulpDockerClient::DockerDockerRemote
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**
|
9
|
-
**_type** | **String** | | [optional]
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
9
|
**name** | **String** | A unique name for this remote. |
|
11
10
|
**url** | **String** | The URL of an external content source. |
|
12
11
|
**ssl_ca_certificate** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
@@ -14,22 +13,19 @@ Name | Type | Description | Notes
|
|
14
13
|
**ssl_client_key** | **String** | A PEM encoded private key used for authentication. Returns SHA256 sum on GET. | [optional]
|
15
14
|
**ssl_validation** | **Boolean** | If True, SSL peer validation must be performed. | [optional]
|
16
15
|
**proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
|
17
|
-
**
|
18
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
19
|
-
**_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional]
|
16
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
20
17
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
21
18
|
**policy** | **String** | immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. | [optional] [default to 'immediate']
|
22
19
|
**upstream_name** | **String** | Name of the upstream repository |
|
23
|
-
**whitelist_tags** | **String
|
20
|
+
**whitelist_tags** | **Array<String>** | A list of whitelisted tags to sync | [optional]
|
24
21
|
|
25
22
|
## Code Sample
|
26
23
|
|
27
24
|
```ruby
|
28
25
|
require 'PulpDockerClient'
|
29
26
|
|
30
|
-
instance = PulpDockerClient::
|
31
|
-
|
32
|
-
_type: null,
|
27
|
+
instance = PulpDockerClient::DockerDockerRemote.new(pulp_href: null,
|
28
|
+
pulp_created: null,
|
33
29
|
name: null,
|
34
30
|
url: null,
|
35
31
|
ssl_ca_certificate: null,
|
@@ -37,9 +33,7 @@ instance = PulpDockerClient::DockerRemote.new(_href: null,
|
|
37
33
|
ssl_client_key: null,
|
38
34
|
ssl_validation: null,
|
39
35
|
proxy_url: null,
|
40
|
-
|
41
|
-
password: null,
|
42
|
-
_last_updated: null,
|
36
|
+
pulp_last_updated: null,
|
43
37
|
download_concurrency: null,
|
44
38
|
policy: null,
|
45
39
|
upstream_name: null,
|
@@ -1,14 +1,12 @@
|
|
1
|
-
# PulpDockerClient::
|
1
|
+
# PulpDockerClient::DockerManifest
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**
|
9
|
-
**_type** | **String** | | [optional]
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
9
|
**artifact** | **String** | Artifact file representing the physical content |
|
11
|
-
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
|
12
10
|
**digest** | **String** | sha256 of the Manifest file |
|
13
11
|
**schema_version** | **Integer** | Docker schema version |
|
14
12
|
**media_type** | **String** | Docker media type of the file |
|
@@ -21,11 +19,9 @@ Name | Type | Description | Notes
|
|
21
19
|
```ruby
|
22
20
|
require 'PulpDockerClient'
|
23
21
|
|
24
|
-
instance = PulpDockerClient::
|
25
|
-
|
26
|
-
_type: null,
|
22
|
+
instance = PulpDockerClient::DockerManifest.new(pulp_href: null,
|
23
|
+
pulp_created: null,
|
27
24
|
artifact: null,
|
28
|
-
relative_path: null,
|
29
25
|
digest: null,
|
30
26
|
schema_version: null,
|
31
27
|
media_type: null,
|
@@ -1,14 +1,12 @@
|
|
1
|
-
# PulpDockerClient::
|
1
|
+
# PulpDockerClient::DockerTag
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**
|
9
|
-
**_type** | **String** | | [optional]
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
9
|
**artifact** | **String** | Artifact file representing the physical content |
|
11
|
-
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
|
12
10
|
**name** | **String** | Tag name |
|
13
11
|
**tagged_manifest** | **String** | Manifest that is tagged |
|
14
12
|
|
@@ -17,11 +15,9 @@ Name | Type | Description | Notes
|
|
17
15
|
```ruby
|
18
16
|
require 'PulpDockerClient'
|
19
17
|
|
20
|
-
instance = PulpDockerClient::
|
21
|
-
|
22
|
-
_type: null,
|
18
|
+
instance = PulpDockerClient::DockerTag.new(pulp_href: null,
|
19
|
+
pulp_created: null,
|
23
20
|
artifact: null,
|
24
|
-
relative_path: null,
|
25
21
|
name: null,
|
26
22
|
tagged_manifest: null)
|
27
23
|
```
|
data/docs/InlineResponse200.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<
|
10
|
+
**results** | [**Array<DockerBlob>**](DockerBlob.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/InlineResponse2001.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<
|
10
|
+
**results** | [**Array<DockerManifest>**](DockerManifest.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/InlineResponse2002.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<
|
10
|
+
**results** | [**Array<DockerTag>**](DockerTag.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/InlineResponse2003.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<
|
10
|
+
**results** | [**Array<DockerDockerDistribution>**](DockerDockerDistribution.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/InlineResponse2004.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<
|
10
|
+
**results** | [**Array<DockerDockerRemote>**](DockerDockerRemote.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/RemotesDockerApi.md
CHANGED
@@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|
16
16
|
|
17
17
|
## create
|
18
18
|
|
19
|
-
>
|
19
|
+
> DockerDockerRemote create(data)
|
20
20
|
|
21
21
|
Create a docker remote
|
22
22
|
|
@@ -35,7 +35,7 @@ PulpDockerClient.configure do |config|
|
|
35
35
|
end
|
36
36
|
|
37
37
|
api_instance = PulpDockerClient::RemotesDockerApi.new
|
38
|
-
data = PulpDockerClient::
|
38
|
+
data = PulpDockerClient::DockerDockerRemote.new # DockerDockerRemote |
|
39
39
|
|
40
40
|
begin
|
41
41
|
#Create a docker remote
|
@@ -51,11 +51,11 @@ end
|
|
51
51
|
|
52
52
|
Name | Type | Description | Notes
|
53
53
|
------------- | ------------- | ------------- | -------------
|
54
|
-
**data** | [**
|
54
|
+
**data** | [**DockerDockerRemote**](DockerDockerRemote.md)| |
|
55
55
|
|
56
56
|
### Return type
|
57
57
|
|
58
|
-
[**
|
58
|
+
[**DockerDockerRemote**](DockerDockerRemote.md)
|
59
59
|
|
60
60
|
### Authorization
|
61
61
|
|
@@ -144,15 +144,16 @@ api_instance = PulpDockerClient::RemotesDockerApi.new
|
|
144
144
|
opts = {
|
145
145
|
name: 'name_example', # String |
|
146
146
|
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
147
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | Filter results where pulp_last_updated is less than value
|
148
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | Filter results where pulp_last_updated is less than or equal to value
|
149
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | Filter results where pulp_last_updated is greater than value
|
150
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | Filter results where pulp_last_updated is greater than or equal to value
|
151
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example', # String | Filter results where pulp_last_updated is between two comma separated values
|
152
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | ISO 8601 formatted dates are supported
|
153
153
|
limit: 56, # Integer | Number of results to return per page.
|
154
154
|
offset: 56, # Integer | The initial index from which to return the results.
|
155
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
155
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
156
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
156
157
|
}
|
157
158
|
|
158
159
|
begin
|
@@ -171,15 +172,16 @@ Name | Type | Description | Notes
|
|
171
172
|
------------- | ------------- | ------------- | -------------
|
172
173
|
**name** | **String**| | [optional]
|
173
174
|
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
174
|
-
**
|
175
|
-
**
|
176
|
-
**
|
177
|
-
**
|
178
|
-
**
|
179
|
-
**
|
175
|
+
**pulp_last_updated__lt** | **String**| Filter results where pulp_last_updated is less than value | [optional]
|
176
|
+
**pulp_last_updated__lte** | **String**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
177
|
+
**pulp_last_updated__gt** | **String**| Filter results where pulp_last_updated is greater than value | [optional]
|
178
|
+
**pulp_last_updated__gte** | **String**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
|
179
|
+
**pulp_last_updated__range** | **String**| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
180
|
+
**pulp_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
|
180
181
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
181
182
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
182
183
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
184
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
183
185
|
|
184
186
|
### Return type
|
185
187
|
|
@@ -217,7 +219,7 @@ end
|
|
217
219
|
|
218
220
|
api_instance = PulpDockerClient::RemotesDockerApi.new
|
219
221
|
docker_remote_href = 'docker_remote_href_example' # String | URI of Docker Remote. e.g.: /pulp/api/v3/remotes/docker/docker/1/
|
220
|
-
data = PulpDockerClient::
|
222
|
+
data = PulpDockerClient::DockerDockerRemote.new # DockerDockerRemote |
|
221
223
|
|
222
224
|
begin
|
223
225
|
#Partially update a docker remote
|
@@ -234,7 +236,7 @@ end
|
|
234
236
|
Name | Type | Description | Notes
|
235
237
|
------------- | ------------- | ------------- | -------------
|
236
238
|
**docker_remote_href** | **String**| URI of Docker Remote. e.g.: /pulp/api/v3/remotes/docker/docker/1/ |
|
237
|
-
**data** | [**
|
239
|
+
**data** | [**DockerDockerRemote**](DockerDockerRemote.md)| |
|
238
240
|
|
239
241
|
### Return type
|
240
242
|
|
@@ -252,7 +254,7 @@ Name | Type | Description | Notes
|
|
252
254
|
|
253
255
|
## read
|
254
256
|
|
255
|
-
>
|
257
|
+
> DockerDockerRemote read(docker_remote_href, opts)
|
256
258
|
|
257
259
|
Inspect a docker remote
|
258
260
|
|
@@ -273,7 +275,8 @@ end
|
|
273
275
|
api_instance = PulpDockerClient::RemotesDockerApi.new
|
274
276
|
docker_remote_href = 'docker_remote_href_example' # String | URI of Docker Remote. e.g.: /pulp/api/v3/remotes/docker/docker/1/
|
275
277
|
opts = {
|
276
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
278
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
279
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
277
280
|
}
|
278
281
|
|
279
282
|
begin
|
@@ -292,10 +295,11 @@ Name | Type | Description | Notes
|
|
292
295
|
------------- | ------------- | ------------- | -------------
|
293
296
|
**docker_remote_href** | **String**| URI of Docker Remote. e.g.: /pulp/api/v3/remotes/docker/docker/1/ |
|
294
297
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
298
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
295
299
|
|
296
300
|
### Return type
|
297
301
|
|
298
|
-
[**
|
302
|
+
[**DockerDockerRemote**](DockerDockerRemote.md)
|
299
303
|
|
300
304
|
### Authorization
|
301
305
|
|
@@ -383,7 +387,7 @@ end
|
|
383
387
|
|
384
388
|
api_instance = PulpDockerClient::RemotesDockerApi.new
|
385
389
|
docker_remote_href = 'docker_remote_href_example' # String | URI of Docker Remote. e.g.: /pulp/api/v3/remotes/docker/docker/1/
|
386
|
-
data = PulpDockerClient::
|
390
|
+
data = PulpDockerClient::DockerDockerRemote.new # DockerDockerRemote |
|
387
391
|
|
388
392
|
begin
|
389
393
|
#Update a docker remote
|
@@ -400,7 +404,7 @@ end
|
|
400
404
|
Name | Type | Description | Notes
|
401
405
|
------------- | ------------- | ------------- | -------------
|
402
406
|
**docker_remote_href** | **String**| URI of Docker Remote. e.g.: /pulp/api/v3/remotes/docker/docker/1/ |
|
403
|
-
**data** | [**
|
407
|
+
**data** | [**DockerDockerRemote**](DockerDockerRemote.md)| |
|
404
408
|
|
405
409
|
### Return type
|
406
410
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,70 +19,6 @@ module PulpDockerClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create a blob
|
23
|
-
# Create a new Blob from a request.
|
24
|
-
# @param data [Blob]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [Blob]
|
27
|
-
def create(data, opts = {})
|
28
|
-
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Create a blob
|
33
|
-
# Create a new Blob from a request.
|
34
|
-
# @param data [Blob]
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(Blob, Integer, Hash)>] Blob data, response status code and response headers
|
37
|
-
def create_with_http_info(data, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: ContentBlobsApi.create ...'
|
40
|
-
end
|
41
|
-
# verify the required parameter 'data' is set
|
42
|
-
if @api_client.config.client_side_validation && data.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling ContentBlobsApi.create"
|
44
|
-
end
|
45
|
-
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/content/docker/blobs/'
|
47
|
-
|
48
|
-
# query parameters
|
49
|
-
query_params = opts[:query_params] || {}
|
50
|
-
|
51
|
-
# header parameters
|
52
|
-
header_params = opts[:header_params] || {}
|
53
|
-
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
-
# HTTP header 'Content-Type'
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
-
|
58
|
-
# form parameters
|
59
|
-
form_params = opts[:form_params] || {}
|
60
|
-
|
61
|
-
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
|
-
|
64
|
-
# return_type
|
65
|
-
return_type = opts[:return_type] || 'Blob'
|
66
|
-
|
67
|
-
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['Basic']
|
69
|
-
|
70
|
-
new_options = opts.merge(
|
71
|
-
:header_params => header_params,
|
72
|
-
:query_params => query_params,
|
73
|
-
:form_params => form_params,
|
74
|
-
:body => post_body,
|
75
|
-
:auth_names => auth_names,
|
76
|
-
:return_type => return_type
|
77
|
-
)
|
78
|
-
|
79
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
-
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: ContentBlobsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
-
end
|
83
|
-
return data, status_code, headers
|
84
|
-
end
|
85
|
-
|
86
22
|
# List blobs
|
87
23
|
# ViewSet for Blobs.
|
88
24
|
# @param [Hash] opts the optional parameters
|
@@ -95,6 +31,7 @@ module PulpDockerClient
|
|
95
31
|
# @option opts [Integer] :limit Number of results to return per page.
|
96
32
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
97
33
|
# @option opts [String] :fields A list of fields to include in the response.
|
34
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
98
35
|
# @return [InlineResponse200]
|
99
36
|
def list(opts = {})
|
100
37
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -113,6 +50,7 @@ module PulpDockerClient
|
|
113
50
|
# @option opts [Integer] :limit Number of results to return per page.
|
114
51
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
115
52
|
# @option opts [String] :fields A list of fields to include in the response.
|
53
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
116
54
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
117
55
|
def list_with_http_info(opts = {})
|
118
56
|
if @api_client.config.debugging
|
@@ -132,6 +70,7 @@ module PulpDockerClient
|
|
132
70
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
133
71
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
134
72
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
73
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
135
74
|
|
136
75
|
# header parameters
|
137
76
|
header_params = opts[:header_params] || {}
|
@@ -171,7 +110,8 @@ module PulpDockerClient
|
|
171
110
|
# @param blob_href [String] URI of Blob. e.g.: /pulp/api/v3/content/docker/blobs/1/
|
172
111
|
# @param [Hash] opts the optional parameters
|
173
112
|
# @option opts [String] :fields A list of fields to include in the response.
|
174
|
-
# @
|
113
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
114
|
+
# @return [DockerBlob]
|
175
115
|
def read(blob_href, opts = {})
|
176
116
|
data, _status_code, _headers = read_with_http_info(blob_href, opts)
|
177
117
|
data
|
@@ -182,7 +122,8 @@ module PulpDockerClient
|
|
182
122
|
# @param blob_href [String] URI of Blob. e.g.: /pulp/api/v3/content/docker/blobs/1/
|
183
123
|
# @param [Hash] opts the optional parameters
|
184
124
|
# @option opts [String] :fields A list of fields to include in the response.
|
185
|
-
# @
|
125
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
126
|
+
# @return [Array<(DockerBlob, Integer, Hash)>] DockerBlob data, response status code and response headers
|
186
127
|
def read_with_http_info(blob_href, opts = {})
|
187
128
|
if @api_client.config.debugging
|
188
129
|
@api_client.config.logger.debug 'Calling API: ContentBlobsApi.read ...'
|
@@ -197,6 +138,7 @@ module PulpDockerClient
|
|
197
138
|
# query parameters
|
198
139
|
query_params = opts[:query_params] || {}
|
199
140
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
141
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
200
142
|
|
201
143
|
# header parameters
|
202
144
|
header_params = opts[:header_params] || {}
|
@@ -210,7 +152,7 @@ module PulpDockerClient
|
|
210
152
|
post_body = opts[:body]
|
211
153
|
|
212
154
|
# return_type
|
213
|
-
return_type = opts[:return_type] || '
|
155
|
+
return_type = opts[:return_type] || 'DockerBlob'
|
214
156
|
|
215
157
|
# auth_names
|
216
158
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,70 +19,6 @@ module PulpDockerClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create a manifest
|
23
|
-
# Create a new Manifest from a request.
|
24
|
-
# @param data [Manifest]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [Manifest]
|
27
|
-
def create(data, opts = {})
|
28
|
-
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Create a manifest
|
33
|
-
# Create a new Manifest from a request.
|
34
|
-
# @param data [Manifest]
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(Manifest, Integer, Hash)>] Manifest data, response status code and response headers
|
37
|
-
def create_with_http_info(data, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.create ...'
|
40
|
-
end
|
41
|
-
# verify the required parameter 'data' is set
|
42
|
-
if @api_client.config.client_side_validation && data.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling ContentManifestsApi.create"
|
44
|
-
end
|
45
|
-
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/content/docker/manifests/'
|
47
|
-
|
48
|
-
# query parameters
|
49
|
-
query_params = opts[:query_params] || {}
|
50
|
-
|
51
|
-
# header parameters
|
52
|
-
header_params = opts[:header_params] || {}
|
53
|
-
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
-
# HTTP header 'Content-Type'
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
-
|
58
|
-
# form parameters
|
59
|
-
form_params = opts[:form_params] || {}
|
60
|
-
|
61
|
-
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
|
-
|
64
|
-
# return_type
|
65
|
-
return_type = opts[:return_type] || 'Manifest'
|
66
|
-
|
67
|
-
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['Basic']
|
69
|
-
|
70
|
-
new_options = opts.merge(
|
71
|
-
:header_params => header_params,
|
72
|
-
:query_params => query_params,
|
73
|
-
:form_params => form_params,
|
74
|
-
:body => post_body,
|
75
|
-
:auth_names => auth_names,
|
76
|
-
:return_type => return_type
|
77
|
-
)
|
78
|
-
|
79
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
-
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: ContentManifestsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
-
end
|
83
|
-
return data, status_code, headers
|
84
|
-
end
|
85
|
-
|
86
22
|
# List manifests
|
87
23
|
# ViewSet for Manifest.
|
88
24
|
# @param [Hash] opts the optional parameters
|
@@ -95,6 +31,7 @@ module PulpDockerClient
|
|
95
31
|
# @option opts [Integer] :limit Number of results to return per page.
|
96
32
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
97
33
|
# @option opts [String] :fields A list of fields to include in the response.
|
34
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
98
35
|
# @return [InlineResponse2001]
|
99
36
|
def list(opts = {})
|
100
37
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -113,6 +50,7 @@ module PulpDockerClient
|
|
113
50
|
# @option opts [Integer] :limit Number of results to return per page.
|
114
51
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
115
52
|
# @option opts [String] :fields A list of fields to include in the response.
|
53
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
116
54
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
117
55
|
def list_with_http_info(opts = {})
|
118
56
|
if @api_client.config.debugging
|
@@ -132,6 +70,7 @@ module PulpDockerClient
|
|
132
70
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
133
71
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
134
72
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
73
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
135
74
|
|
136
75
|
# header parameters
|
137
76
|
header_params = opts[:header_params] || {}
|
@@ -171,7 +110,8 @@ module PulpDockerClient
|
|
171
110
|
# @param manifest_href [String] URI of Manifest. e.g.: /pulp/api/v3/content/docker/manifests/1/
|
172
111
|
# @param [Hash] opts the optional parameters
|
173
112
|
# @option opts [String] :fields A list of fields to include in the response.
|
174
|
-
# @
|
113
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
114
|
+
# @return [DockerManifest]
|
175
115
|
def read(manifest_href, opts = {})
|
176
116
|
data, _status_code, _headers = read_with_http_info(manifest_href, opts)
|
177
117
|
data
|
@@ -182,7 +122,8 @@ module PulpDockerClient
|
|
182
122
|
# @param manifest_href [String] URI of Manifest. e.g.: /pulp/api/v3/content/docker/manifests/1/
|
183
123
|
# @param [Hash] opts the optional parameters
|
184
124
|
# @option opts [String] :fields A list of fields to include in the response.
|
185
|
-
# @
|
125
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
126
|
+
# @return [Array<(DockerManifest, Integer, Hash)>] DockerManifest data, response status code and response headers
|
186
127
|
def read_with_http_info(manifest_href, opts = {})
|
187
128
|
if @api_client.config.debugging
|
188
129
|
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.read ...'
|
@@ -197,6 +138,7 @@ module PulpDockerClient
|
|
197
138
|
# query parameters
|
198
139
|
query_params = opts[:query_params] || {}
|
199
140
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
141
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
200
142
|
|
201
143
|
# header parameters
|
202
144
|
header_params = opts[:header_params] || {}
|
@@ -210,7 +152,7 @@ module PulpDockerClient
|
|
210
152
|
post_body = opts[:body]
|
211
153
|
|
212
154
|
# return_type
|
213
|
-
return_type = opts[:return_type] || '
|
155
|
+
return_type = opts[:return_type] || 'DockerManifest'
|
214
156
|
|
215
157
|
# auth_names
|
216
158
|
auth_names = opts[:auth_names] || ['Basic']
|