pulp_container_client 2.24.1 → 2.24.3
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 +13 -4
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- data/docs/ContentBlobsApi.md +158 -0
- data/docs/ContentManifestsApi.md +158 -0
- data/docs/ContentSignaturesApi.md +158 -0
- data/docs/ContentTagsApi.md +158 -0
- data/docs/DistributionsContainerApi.md +76 -34
- data/docs/DistributionsPullThroughApi.md +76 -34
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PulpContainerNamespacesApi.md +40 -16
- data/docs/RemotesContainerApi.md +72 -32
- data/docs/RemotesPullThroughApi.md +72 -32
- data/docs/RepositoriesContainerApi.md +138 -64
- data/docs/RepositoriesContainerPushApi.md +80 -36
- data/docs/RepositoriesContainerPushVersionsApi.md +22 -10
- data/docs/RepositoriesContainerVersionsApi.md +22 -10
- data/docs/TokenApi.md +14 -5
- data/lib/pulp_container_client/api/content_blobs_api.rb +160 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +160 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +160 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +160 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +42 -3
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +42 -3
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +36 -0
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +36 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +63 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +39 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +15 -3
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -3
- data/lib/pulp_container_client/api/token_api.rb +9 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +22 -22
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +49 -49
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +22 -22
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +49 -49
- data/lib/pulp_container_client/models/container_container_push_repository.rb +46 -46
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +69 -69
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +22 -22
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +22 -22
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -46
- data/lib/pulp_container_client/models/unset_label.rb +1 -1
- data/lib/pulp_container_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +0 -1
- data/spec/api/content_blobs_api_spec.rb +30 -0
- data/spec/api/content_manifests_api_spec.rb +30 -0
- data/spec/api/content_signatures_api_spec.rb +30 -0
- data/spec/api/content_tags_api_spec.rb +30 -0
- data/spec/api/distributions_container_api_spec.rb +14 -1
- data/spec/api/distributions_pull_through_api_spec.rb +14 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
- data/spec/api/remotes_container_api_spec.rb +12 -0
- data/spec/api/remotes_pull_through_api_spec.rb +12 -0
- data/spec/api/repositories_container_api_spec.rb +21 -0
- data/spec/api/repositories_container_push_api_spec.rb +13 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +5 -1
- data/spec/api/repositories_container_versions_api_spec.rb +5 -1
- data/spec/api/token_api_spec.rb +3 -0
- data/spec/models/container_container_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +60 -80
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost:24817*
|
|
|
12
12
|
|
|
13
13
|
## delete
|
|
14
14
|
|
|
15
|
-
> <AsyncOperationResponse> delete(container_container_repository_version_href)
|
|
15
|
+
> <AsyncOperationResponse> delete(container_container_repository_version_href, opts)
|
|
16
16
|
|
|
17
17
|
Delete a repository version
|
|
18
18
|
|
|
@@ -32,10 +32,13 @@ end
|
|
|
32
32
|
|
|
33
33
|
api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
|
|
34
34
|
container_container_repository_version_href = 'container_container_repository_version_href_example' # String |
|
|
35
|
+
opts = {
|
|
36
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
37
|
+
}
|
|
35
38
|
|
|
36
39
|
begin
|
|
37
40
|
# Delete a repository version
|
|
38
|
-
result = api_instance.delete(container_container_repository_version_href)
|
|
41
|
+
result = api_instance.delete(container_container_repository_version_href, opts)
|
|
39
42
|
p result
|
|
40
43
|
rescue PulpContainerClient::ApiError => e
|
|
41
44
|
puts "Error when calling RepositoriesContainerVersionsApi->delete: #{e}"
|
|
@@ -46,12 +49,12 @@ end
|
|
|
46
49
|
|
|
47
50
|
This returns an Array which contains the response data, status code and headers.
|
|
48
51
|
|
|
49
|
-
> <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(container_container_repository_version_href)
|
|
52
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(container_container_repository_version_href, opts)
|
|
50
53
|
|
|
51
54
|
```ruby
|
|
52
55
|
begin
|
|
53
56
|
# Delete a repository version
|
|
54
|
-
data, status_code, headers = api_instance.delete_with_http_info(container_container_repository_version_href)
|
|
57
|
+
data, status_code, headers = api_instance.delete_with_http_info(container_container_repository_version_href, opts)
|
|
55
58
|
p status_code # => 2xx
|
|
56
59
|
p headers # => { ... }
|
|
57
60
|
p data # => <AsyncOperationResponse>
|
|
@@ -65,6 +68,7 @@ end
|
|
|
65
68
|
| Name | Type | Description | Notes |
|
|
66
69
|
| ---- | ---- | ----------- | ----- |
|
|
67
70
|
| **container_container_repository_version_href** | **String** | | |
|
|
71
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
68
72
|
|
|
69
73
|
### Return type
|
|
70
74
|
|
|
@@ -103,6 +107,7 @@ end
|
|
|
103
107
|
api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
|
|
104
108
|
container_container_repository_href = 'container_container_repository_href_example' # String |
|
|
105
109
|
opts = {
|
|
110
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
106
111
|
content: 'content_example', # String | Content Unit referenced by HREF/PRN
|
|
107
112
|
content__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
108
113
|
limit: 56, # Integer | Number of results to return per page.
|
|
@@ -113,7 +118,7 @@ opts = {
|
|
|
113
118
|
number__lte: 56, # Integer | Filter results where number is less than or equal to value
|
|
114
119
|
number__range: [37], # Array<Integer> | Filter results where number is between two comma separated values
|
|
115
120
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
116
|
-
ordering: ['-complete'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
121
|
+
ordering: ['-complete'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
117
122
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
118
123
|
pulp_created: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created matches value
|
|
119
124
|
pulp_created__gt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than value
|
|
@@ -160,6 +165,7 @@ end
|
|
|
160
165
|
| Name | Type | Description | Notes |
|
|
161
166
|
| ---- | ---- | ----------- | ----- |
|
|
162
167
|
| **container_container_repository_href** | **String** | | |
|
|
168
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
163
169
|
| **content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
|
|
164
170
|
| **content__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
165
171
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
@@ -170,7 +176,7 @@ end
|
|
|
170
176
|
| **number__lte** | **Integer** | Filter results where number is less than or equal to value | [optional] |
|
|
171
177
|
| **number__range** | [**Array<Integer>**](Integer.md) | Filter results where number is between two comma separated values | [optional] |
|
|
172
178
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
173
|
-
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
179
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
174
180
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
175
181
|
| **pulp_created** | **Time** | Filter results where pulp_created matches value | [optional] |
|
|
176
182
|
| **pulp_created__gt** | **Time** | Filter results where pulp_created is greater than value | [optional] |
|
|
@@ -221,6 +227,7 @@ end
|
|
|
221
227
|
api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
|
|
222
228
|
container_container_repository_version_href = 'container_container_repository_version_href_example' # String |
|
|
223
229
|
opts = {
|
|
230
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
224
231
|
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
225
232
|
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
226
233
|
}
|
|
@@ -257,6 +264,7 @@ end
|
|
|
257
264
|
| Name | Type | Description | Notes |
|
|
258
265
|
| ---- | ---- | ----------- | ----- |
|
|
259
266
|
| **container_container_repository_version_href** | **String** | | |
|
|
267
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
260
268
|
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
261
269
|
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
262
270
|
|
|
@@ -276,7 +284,7 @@ end
|
|
|
276
284
|
|
|
277
285
|
## repair
|
|
278
286
|
|
|
279
|
-
> <AsyncOperationResponse> repair(container_container_repository_version_href, repair)
|
|
287
|
+
> <AsyncOperationResponse> repair(container_container_repository_version_href, repair, opts)
|
|
280
288
|
|
|
281
289
|
|
|
282
290
|
|
|
@@ -297,10 +305,13 @@ end
|
|
|
297
305
|
api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
|
|
298
306
|
container_container_repository_version_href = 'container_container_repository_version_href_example' # String |
|
|
299
307
|
repair = PulpContainerClient::Repair.new # Repair |
|
|
308
|
+
opts = {
|
|
309
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
310
|
+
}
|
|
300
311
|
|
|
301
312
|
begin
|
|
302
313
|
|
|
303
|
-
result = api_instance.repair(container_container_repository_version_href, repair)
|
|
314
|
+
result = api_instance.repair(container_container_repository_version_href, repair, opts)
|
|
304
315
|
p result
|
|
305
316
|
rescue PulpContainerClient::ApiError => e
|
|
306
317
|
puts "Error when calling RepositoriesContainerVersionsApi->repair: #{e}"
|
|
@@ -311,12 +322,12 @@ end
|
|
|
311
322
|
|
|
312
323
|
This returns an Array which contains the response data, status code and headers.
|
|
313
324
|
|
|
314
|
-
> <Array(<AsyncOperationResponse>, Integer, Hash)> repair_with_http_info(container_container_repository_version_href, repair)
|
|
325
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> repair_with_http_info(container_container_repository_version_href, repair, opts)
|
|
315
326
|
|
|
316
327
|
```ruby
|
|
317
328
|
begin
|
|
318
329
|
|
|
319
|
-
data, status_code, headers = api_instance.repair_with_http_info(container_container_repository_version_href, repair)
|
|
330
|
+
data, status_code, headers = api_instance.repair_with_http_info(container_container_repository_version_href, repair, opts)
|
|
320
331
|
p status_code # => 2xx
|
|
321
332
|
p headers # => { ... }
|
|
322
333
|
p data # => <AsyncOperationResponse>
|
|
@@ -331,6 +342,7 @@ end
|
|
|
331
342
|
| ---- | ---- | ----------- | ----- |
|
|
332
343
|
| **container_container_repository_version_href** | **String** | | |
|
|
333
344
|
| **repair** | [**Repair**](Repair.md) | | |
|
|
345
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
334
346
|
|
|
335
347
|
### Return type
|
|
336
348
|
|
data/docs/TokenApi.md
CHANGED
|
@@ -9,7 +9,7 @@ All URIs are relative to *http://localhost:24817*
|
|
|
9
9
|
|
|
10
10
|
## get
|
|
11
11
|
|
|
12
|
-
> get
|
|
12
|
+
> get(opts)
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -28,10 +28,15 @@ PulpContainerClient.configure do |config|
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
api_instance = PulpContainerClient::TokenApi.new
|
|
31
|
+
opts = {
|
|
32
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
33
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
34
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
35
|
+
}
|
|
31
36
|
|
|
32
37
|
begin
|
|
33
38
|
|
|
34
|
-
api_instance.get
|
|
39
|
+
api_instance.get(opts)
|
|
35
40
|
rescue PulpContainerClient::ApiError => e
|
|
36
41
|
puts "Error when calling TokenApi->get: #{e}"
|
|
37
42
|
end
|
|
@@ -41,12 +46,12 @@ end
|
|
|
41
46
|
|
|
42
47
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
43
48
|
|
|
44
|
-
> <Array(nil, Integer, Hash)> get_with_http_info
|
|
49
|
+
> <Array(nil, Integer, Hash)> get_with_http_info(opts)
|
|
45
50
|
|
|
46
51
|
```ruby
|
|
47
52
|
begin
|
|
48
53
|
|
|
49
|
-
data, status_code, headers = api_instance.get_with_http_info
|
|
54
|
+
data, status_code, headers = api_instance.get_with_http_info(opts)
|
|
50
55
|
p status_code # => 2xx
|
|
51
56
|
p headers # => { ... }
|
|
52
57
|
p data # => nil
|
|
@@ -57,7 +62,11 @@ end
|
|
|
57
62
|
|
|
58
63
|
### Parameters
|
|
59
64
|
|
|
60
|
-
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
|
67
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
68
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
69
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
61
70
|
|
|
62
71
|
### Return type
|
|
63
72
|
|
|
@@ -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 [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
25
26
|
# @option opts [String] :digest Filter results where digest matches value
|
|
26
27
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
27
28
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -47,6 +48,7 @@ module PulpContainerClient
|
|
|
47
48
|
# List blobs
|
|
48
49
|
# ViewSet for Blobs.
|
|
49
50
|
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
50
52
|
# @option opts [String] :digest Filter results where digest matches value
|
|
51
53
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
52
54
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -98,6 +100,7 @@ module PulpContainerClient
|
|
|
98
100
|
header_params = opts[:header_params] || {}
|
|
99
101
|
# HTTP header 'Accept' (if needed)
|
|
100
102
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
103
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
101
104
|
|
|
102
105
|
# form parameters
|
|
103
106
|
form_params = opts[:form_params] || {}
|
|
@@ -132,6 +135,7 @@ module PulpContainerClient
|
|
|
132
135
|
# ViewSet for Blobs.
|
|
133
136
|
# @param container_blob_href [String]
|
|
134
137
|
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
135
139
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
136
140
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
137
141
|
# @return [ContainerBlobResponse]
|
|
@@ -144,6 +148,7 @@ module PulpContainerClient
|
|
|
144
148
|
# ViewSet for Blobs.
|
|
145
149
|
# @param container_blob_href [String]
|
|
146
150
|
# @param [Hash] opts the optional parameters
|
|
151
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
147
152
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
148
153
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
149
154
|
# @return [Array<(ContainerBlobResponse, Integer, Hash)>] ContainerBlobResponse data, response status code and response headers
|
|
@@ -167,6 +172,7 @@ module PulpContainerClient
|
|
|
167
172
|
header_params = opts[:header_params] || {}
|
|
168
173
|
# HTTP header 'Accept' (if needed)
|
|
169
174
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
175
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
170
176
|
|
|
171
177
|
# form parameters
|
|
172
178
|
form_params = opts[:form_params] || {}
|
|
@@ -196,5 +202,159 @@ module PulpContainerClient
|
|
|
196
202
|
end
|
|
197
203
|
return data, status_code, headers
|
|
198
204
|
end
|
|
205
|
+
|
|
206
|
+
# Set a label
|
|
207
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
208
|
+
# @param container_blob_href [String]
|
|
209
|
+
# @param set_label [SetLabel]
|
|
210
|
+
# @param [Hash] opts the optional parameters
|
|
211
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
212
|
+
# @return [SetLabelResponse]
|
|
213
|
+
def set_label(container_blob_href, set_label, opts = {})
|
|
214
|
+
data, _status_code, _headers = set_label_with_http_info(container_blob_href, set_label, opts)
|
|
215
|
+
data
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Set a label
|
|
219
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
220
|
+
# @param container_blob_href [String]
|
|
221
|
+
# @param set_label [SetLabel]
|
|
222
|
+
# @param [Hash] opts the optional parameters
|
|
223
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
224
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
|
225
|
+
def set_label_with_http_info(container_blob_href, set_label, opts = {})
|
|
226
|
+
if @api_client.config.debugging
|
|
227
|
+
@api_client.config.logger.debug 'Calling API: ContentBlobsApi.set_label ...'
|
|
228
|
+
end
|
|
229
|
+
# verify the required parameter 'container_blob_href' is set
|
|
230
|
+
if @api_client.config.client_side_validation && container_blob_href.nil?
|
|
231
|
+
fail ArgumentError, "Missing the required parameter 'container_blob_href' when calling ContentBlobsApi.set_label"
|
|
232
|
+
end
|
|
233
|
+
# verify the required parameter 'set_label' is set
|
|
234
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
|
235
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentBlobsApi.set_label"
|
|
236
|
+
end
|
|
237
|
+
# resource path
|
|
238
|
+
local_var_path = '{container_blob_href}set_label/'.sub('{' + 'container_blob_href' + '}', CGI.escape(container_blob_href.to_s).gsub('%2F', '/'))
|
|
239
|
+
|
|
240
|
+
# query parameters
|
|
241
|
+
query_params = opts[:query_params] || {}
|
|
242
|
+
|
|
243
|
+
# header parameters
|
|
244
|
+
header_params = opts[:header_params] || {}
|
|
245
|
+
# HTTP header 'Accept' (if needed)
|
|
246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
247
|
+
# HTTP header 'Content-Type'
|
|
248
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
249
|
+
if !content_type.nil?
|
|
250
|
+
header_params['Content-Type'] = content_type
|
|
251
|
+
end
|
|
252
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
253
|
+
|
|
254
|
+
# form parameters
|
|
255
|
+
form_params = opts[:form_params] || {}
|
|
256
|
+
|
|
257
|
+
# http body (model)
|
|
258
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
|
259
|
+
|
|
260
|
+
# return_type
|
|
261
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
|
262
|
+
|
|
263
|
+
# auth_names
|
|
264
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
265
|
+
|
|
266
|
+
new_options = opts.merge(
|
|
267
|
+
:operation => :"ContentBlobsApi.set_label",
|
|
268
|
+
:header_params => header_params,
|
|
269
|
+
:query_params => query_params,
|
|
270
|
+
:form_params => form_params,
|
|
271
|
+
:body => post_body,
|
|
272
|
+
:auth_names => auth_names,
|
|
273
|
+
:return_type => return_type
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
277
|
+
if @api_client.config.debugging
|
|
278
|
+
@api_client.config.logger.debug "API called: ContentBlobsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
279
|
+
end
|
|
280
|
+
return data, status_code, headers
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# Unset a label
|
|
284
|
+
# Unset a single pulp_label on the object.
|
|
285
|
+
# @param container_blob_href [String]
|
|
286
|
+
# @param unset_label [UnsetLabel]
|
|
287
|
+
# @param [Hash] opts the optional parameters
|
|
288
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
289
|
+
# @return [UnsetLabelResponse]
|
|
290
|
+
def unset_label(container_blob_href, unset_label, opts = {})
|
|
291
|
+
data, _status_code, _headers = unset_label_with_http_info(container_blob_href, unset_label, opts)
|
|
292
|
+
data
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Unset a label
|
|
296
|
+
# Unset a single pulp_label on the object.
|
|
297
|
+
# @param container_blob_href [String]
|
|
298
|
+
# @param unset_label [UnsetLabel]
|
|
299
|
+
# @param [Hash] opts the optional parameters
|
|
300
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
301
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
|
302
|
+
def unset_label_with_http_info(container_blob_href, unset_label, opts = {})
|
|
303
|
+
if @api_client.config.debugging
|
|
304
|
+
@api_client.config.logger.debug 'Calling API: ContentBlobsApi.unset_label ...'
|
|
305
|
+
end
|
|
306
|
+
# verify the required parameter 'container_blob_href' is set
|
|
307
|
+
if @api_client.config.client_side_validation && container_blob_href.nil?
|
|
308
|
+
fail ArgumentError, "Missing the required parameter 'container_blob_href' when calling ContentBlobsApi.unset_label"
|
|
309
|
+
end
|
|
310
|
+
# verify the required parameter 'unset_label' is set
|
|
311
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
|
312
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentBlobsApi.unset_label"
|
|
313
|
+
end
|
|
314
|
+
# resource path
|
|
315
|
+
local_var_path = '{container_blob_href}unset_label/'.sub('{' + 'container_blob_href' + '}', CGI.escape(container_blob_href.to_s).gsub('%2F', '/'))
|
|
316
|
+
|
|
317
|
+
# query parameters
|
|
318
|
+
query_params = opts[:query_params] || {}
|
|
319
|
+
|
|
320
|
+
# header parameters
|
|
321
|
+
header_params = opts[:header_params] || {}
|
|
322
|
+
# HTTP header 'Accept' (if needed)
|
|
323
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
324
|
+
# HTTP header 'Content-Type'
|
|
325
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
326
|
+
if !content_type.nil?
|
|
327
|
+
header_params['Content-Type'] = content_type
|
|
328
|
+
end
|
|
329
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
330
|
+
|
|
331
|
+
# form parameters
|
|
332
|
+
form_params = opts[:form_params] || {}
|
|
333
|
+
|
|
334
|
+
# http body (model)
|
|
335
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
|
336
|
+
|
|
337
|
+
# return_type
|
|
338
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
|
339
|
+
|
|
340
|
+
# auth_names
|
|
341
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
342
|
+
|
|
343
|
+
new_options = opts.merge(
|
|
344
|
+
:operation => :"ContentBlobsApi.unset_label",
|
|
345
|
+
:header_params => header_params,
|
|
346
|
+
:query_params => query_params,
|
|
347
|
+
:form_params => form_params,
|
|
348
|
+
:body => post_body,
|
|
349
|
+
:auth_names => auth_names,
|
|
350
|
+
:return_type => return_type
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
354
|
+
if @api_client.config.debugging
|
|
355
|
+
@api_client.config.logger.debug "API called: ContentBlobsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
356
|
+
end
|
|
357
|
+
return data, status_code, headers
|
|
358
|
+
end
|
|
199
359
|
end
|
|
200
360
|
end
|
|
@@ -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 [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
25
26
|
# @option opts [String] :digest Filter results where digest matches value
|
|
26
27
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
27
28
|
# @option opts [Boolean] :is_bootable Filter results where is_bootable matches value
|
|
@@ -50,6 +51,7 @@ module PulpContainerClient
|
|
|
50
51
|
# List manifests
|
|
51
52
|
# ViewSet for Manifest.
|
|
52
53
|
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
53
55
|
# @option opts [String] :digest Filter results where digest matches value
|
|
54
56
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
55
57
|
# @option opts [Boolean] :is_bootable Filter results where is_bootable matches value
|
|
@@ -111,6 +113,7 @@ module PulpContainerClient
|
|
|
111
113
|
header_params = opts[:header_params] || {}
|
|
112
114
|
# HTTP header 'Accept' (if needed)
|
|
113
115
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
116
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
114
117
|
|
|
115
118
|
# form parameters
|
|
116
119
|
form_params = opts[:form_params] || {}
|
|
@@ -145,6 +148,7 @@ module PulpContainerClient
|
|
|
145
148
|
# ViewSet for Manifest.
|
|
146
149
|
# @param container_manifest_href [String]
|
|
147
150
|
# @param [Hash] opts the optional parameters
|
|
151
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
148
152
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
149
153
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
150
154
|
# @return [ContainerManifestResponse]
|
|
@@ -157,6 +161,7 @@ module PulpContainerClient
|
|
|
157
161
|
# ViewSet for Manifest.
|
|
158
162
|
# @param container_manifest_href [String]
|
|
159
163
|
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
160
165
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
161
166
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
162
167
|
# @return [Array<(ContainerManifestResponse, Integer, Hash)>] ContainerManifestResponse data, response status code and response headers
|
|
@@ -180,6 +185,7 @@ module PulpContainerClient
|
|
|
180
185
|
header_params = opts[:header_params] || {}
|
|
181
186
|
# HTTP header 'Accept' (if needed)
|
|
182
187
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
188
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
183
189
|
|
|
184
190
|
# form parameters
|
|
185
191
|
form_params = opts[:form_params] || {}
|
|
@@ -209,5 +215,159 @@ module PulpContainerClient
|
|
|
209
215
|
end
|
|
210
216
|
return data, status_code, headers
|
|
211
217
|
end
|
|
218
|
+
|
|
219
|
+
# Set a label
|
|
220
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
221
|
+
# @param container_manifest_href [String]
|
|
222
|
+
# @param set_label [SetLabel]
|
|
223
|
+
# @param [Hash] opts the optional parameters
|
|
224
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
225
|
+
# @return [SetLabelResponse]
|
|
226
|
+
def set_label(container_manifest_href, set_label, opts = {})
|
|
227
|
+
data, _status_code, _headers = set_label_with_http_info(container_manifest_href, set_label, opts)
|
|
228
|
+
data
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Set a label
|
|
232
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
233
|
+
# @param container_manifest_href [String]
|
|
234
|
+
# @param set_label [SetLabel]
|
|
235
|
+
# @param [Hash] opts the optional parameters
|
|
236
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
237
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
|
238
|
+
def set_label_with_http_info(container_manifest_href, set_label, opts = {})
|
|
239
|
+
if @api_client.config.debugging
|
|
240
|
+
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.set_label ...'
|
|
241
|
+
end
|
|
242
|
+
# verify the required parameter 'container_manifest_href' is set
|
|
243
|
+
if @api_client.config.client_side_validation && container_manifest_href.nil?
|
|
244
|
+
fail ArgumentError, "Missing the required parameter 'container_manifest_href' when calling ContentManifestsApi.set_label"
|
|
245
|
+
end
|
|
246
|
+
# verify the required parameter 'set_label' is set
|
|
247
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
|
248
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentManifestsApi.set_label"
|
|
249
|
+
end
|
|
250
|
+
# resource path
|
|
251
|
+
local_var_path = '{container_manifest_href}set_label/'.sub('{' + 'container_manifest_href' + '}', CGI.escape(container_manifest_href.to_s).gsub('%2F', '/'))
|
|
252
|
+
|
|
253
|
+
# query parameters
|
|
254
|
+
query_params = opts[:query_params] || {}
|
|
255
|
+
|
|
256
|
+
# header parameters
|
|
257
|
+
header_params = opts[:header_params] || {}
|
|
258
|
+
# HTTP header 'Accept' (if needed)
|
|
259
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
260
|
+
# HTTP header 'Content-Type'
|
|
261
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
262
|
+
if !content_type.nil?
|
|
263
|
+
header_params['Content-Type'] = content_type
|
|
264
|
+
end
|
|
265
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
266
|
+
|
|
267
|
+
# form parameters
|
|
268
|
+
form_params = opts[:form_params] || {}
|
|
269
|
+
|
|
270
|
+
# http body (model)
|
|
271
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
|
272
|
+
|
|
273
|
+
# return_type
|
|
274
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
|
275
|
+
|
|
276
|
+
# auth_names
|
|
277
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
278
|
+
|
|
279
|
+
new_options = opts.merge(
|
|
280
|
+
:operation => :"ContentManifestsApi.set_label",
|
|
281
|
+
:header_params => header_params,
|
|
282
|
+
:query_params => query_params,
|
|
283
|
+
:form_params => form_params,
|
|
284
|
+
:body => post_body,
|
|
285
|
+
:auth_names => auth_names,
|
|
286
|
+
:return_type => return_type
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
290
|
+
if @api_client.config.debugging
|
|
291
|
+
@api_client.config.logger.debug "API called: ContentManifestsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
292
|
+
end
|
|
293
|
+
return data, status_code, headers
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Unset a label
|
|
297
|
+
# Unset a single pulp_label on the object.
|
|
298
|
+
# @param container_manifest_href [String]
|
|
299
|
+
# @param unset_label [UnsetLabel]
|
|
300
|
+
# @param [Hash] opts the optional parameters
|
|
301
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
302
|
+
# @return [UnsetLabelResponse]
|
|
303
|
+
def unset_label(container_manifest_href, unset_label, opts = {})
|
|
304
|
+
data, _status_code, _headers = unset_label_with_http_info(container_manifest_href, unset_label, opts)
|
|
305
|
+
data
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Unset a label
|
|
309
|
+
# Unset a single pulp_label on the object.
|
|
310
|
+
# @param container_manifest_href [String]
|
|
311
|
+
# @param unset_label [UnsetLabel]
|
|
312
|
+
# @param [Hash] opts the optional parameters
|
|
313
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
314
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
|
315
|
+
def unset_label_with_http_info(container_manifest_href, unset_label, opts = {})
|
|
316
|
+
if @api_client.config.debugging
|
|
317
|
+
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.unset_label ...'
|
|
318
|
+
end
|
|
319
|
+
# verify the required parameter 'container_manifest_href' is set
|
|
320
|
+
if @api_client.config.client_side_validation && container_manifest_href.nil?
|
|
321
|
+
fail ArgumentError, "Missing the required parameter 'container_manifest_href' when calling ContentManifestsApi.unset_label"
|
|
322
|
+
end
|
|
323
|
+
# verify the required parameter 'unset_label' is set
|
|
324
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
|
325
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentManifestsApi.unset_label"
|
|
326
|
+
end
|
|
327
|
+
# resource path
|
|
328
|
+
local_var_path = '{container_manifest_href}unset_label/'.sub('{' + 'container_manifest_href' + '}', CGI.escape(container_manifest_href.to_s).gsub('%2F', '/'))
|
|
329
|
+
|
|
330
|
+
# query parameters
|
|
331
|
+
query_params = opts[:query_params] || {}
|
|
332
|
+
|
|
333
|
+
# header parameters
|
|
334
|
+
header_params = opts[:header_params] || {}
|
|
335
|
+
# HTTP header 'Accept' (if needed)
|
|
336
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
337
|
+
# HTTP header 'Content-Type'
|
|
338
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
339
|
+
if !content_type.nil?
|
|
340
|
+
header_params['Content-Type'] = content_type
|
|
341
|
+
end
|
|
342
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
343
|
+
|
|
344
|
+
# form parameters
|
|
345
|
+
form_params = opts[:form_params] || {}
|
|
346
|
+
|
|
347
|
+
# http body (model)
|
|
348
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
|
349
|
+
|
|
350
|
+
# return_type
|
|
351
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
|
352
|
+
|
|
353
|
+
# auth_names
|
|
354
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
355
|
+
|
|
356
|
+
new_options = opts.merge(
|
|
357
|
+
:operation => :"ContentManifestsApi.unset_label",
|
|
358
|
+
:header_params => header_params,
|
|
359
|
+
:query_params => query_params,
|
|
360
|
+
:form_params => form_params,
|
|
361
|
+
:body => post_body,
|
|
362
|
+
:auth_names => auth_names,
|
|
363
|
+
:return_type => return_type
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
367
|
+
if @api_client.config.debugging
|
|
368
|
+
@api_client.config.logger.debug "API called: ContentManifestsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
369
|
+
end
|
|
370
|
+
return data, status_code, headers
|
|
371
|
+
end
|
|
212
372
|
end
|
|
213
373
|
end
|