pulp_npm_client 0.1.0 → 0.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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -4
  3. data/docs/ContentPackagesApi.md +152 -2
  4. data/docs/DistributionsNpmApi.md +4 -2
  5. data/docs/NpmNpmDistribution.md +3 -1
  6. data/docs/NpmNpmDistributionResponse.md +3 -1
  7. data/docs/NpmPackageResponse.md +2 -0
  8. data/docs/PatchednpmNpmDistribution.md +3 -1
  9. data/lib/pulp_npm_client/api/content_packages_api.rb +157 -3
  10. data/lib/pulp_npm_client/api/distributions_npm_api.rb +6 -3
  11. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +16 -5
  12. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +16 -5
  13. data/lib/pulp_npm_client/models/npm_npm_remote.rb +1 -1
  14. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +1 -1
  15. data/lib/pulp_npm_client/models/npm_npm_repository.rb +1 -1
  16. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +1 -1
  17. data/lib/pulp_npm_client/models/npm_package_response.rb +14 -2
  18. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +16 -5
  19. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +1 -1
  20. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +1 -1
  21. data/lib/pulp_npm_client/models/unset_label.rb +1 -1
  22. data/lib/pulp_npm_client/models/unset_label_response.rb +1 -1
  23. data/lib/pulp_npm_client/version.rb +1 -1
  24. data/spec/api/content_packages_api_spec.rb +29 -1
  25. data/spec/api/distributions_npm_api_spec.rb +2 -1
  26. data/spec/models/npm_npm_distribution_response_spec.rb +6 -0
  27. data/spec/models/npm_npm_distribution_spec.rb +6 -0
  28. data/spec/models/npm_package_response_spec.rb +6 -0
  29. data/spec/models/patchednpm_npm_distribution_spec.rb +6 -0
  30. metadata +24 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 119e880b645d5ae43a04c69fb8189160df80d0722e85dee931fb003414e523fd
4
- data.tar.gz: 5d2877c5c6920f9c5fea88aa89fa9dd4d5336a79d7520af04fa2ac06a104ee47
3
+ metadata.gz: bf3b07f23db45ab3605283f95ddbd46dd763247471268914b28073b347c1be8d
4
+ data.tar.gz: 3dee0074035125e9a58806ffa36036f851928d6d3a2e010f57bc861cc6afe60a
5
5
  SHA512:
6
- metadata.gz: 222323df7d9ebfa079c3bc74be9e1cdde7c224fc828f544c2fd566e7c919f7b7e9f15b9529187e18357d1c5b1420fe1e1b6c4e5458a4307e5d94430e41a5bc4b
7
- data.tar.gz: 8d8b3ad258e5bfd5b5b85f8dc6d102f799f219c0015dfd4226632472e31bc724fc34ee9876c18e0e35531eb0177ff66f197956000a7db58a357dc9b25a963f06
6
+ metadata.gz: 566b49257bddc369dc5d477c41e7c102f9714236b057d1b45a79e650b5a60e446871d3cd5fa51d2be21f284b64422b6efbcd120300a937df984987b01dfaaa0e
7
+ data.tar.gz: 1c917adf47504ee2f81d824cf9386f971376d901a329c606cdbd074854277092e65ba4e16ab88d24e2f8d497ae41c7a8df99997589b801868615eac0a4755864
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 0.1.0
10
+ - Package version: 0.3.0
11
11
  - Generator version: 7.10.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
@@ -25,16 +25,16 @@ gem build pulp_npm_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_npm_client-0.1.0.gem
28
+ gem install ./pulp_npm_client-0.3.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_npm_client-0.1.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_npm_client-0.3.0.gem` to install the development dependencies)
32
32
 
33
33
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
34
34
 
35
35
  Finally add this to the Gemfile:
36
36
 
37
- gem 'pulp_npm_client', '~> 0.1.0'
37
+ gem 'pulp_npm_client', '~> 0.3.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -73,6 +73,7 @@ name = 'name_example' # String |
73
73
  version = 'version_example' # String |
74
74
  opts = {
75
75
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
76
+ pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
76
77
  artifact: 'artifact_example', # String | Artifact file representing the physical content
77
78
  file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
78
79
  upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
@@ -98,6 +99,8 @@ Class | Method | HTTP request | Description
98
99
  *PulpNpmClient::ContentPackagesApi* | [**create**](docs/ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/npm/packages/ | Create a package
99
100
  *PulpNpmClient::ContentPackagesApi* | [**list**](docs/ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/npm/packages/ | List packages
100
101
  *PulpNpmClient::ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {npm_package_href} | Inspect a package
102
+ *PulpNpmClient::ContentPackagesApi* | [**set_label**](docs/ContentPackagesApi.md#set_label) | **POST** {npm_package_href}set_label/ | Set a label
103
+ *PulpNpmClient::ContentPackagesApi* | [**unset_label**](docs/ContentPackagesApi.md#unset_label) | **POST** {npm_package_href}unset_label/ | Unset a label
101
104
  *PulpNpmClient::DistributionsNpmApi* | [**create**](docs/DistributionsNpmApi.md#create) | **POST** /pulp/api/v3/distributions/npm/npm/ | Create a npm distribution
102
105
  *PulpNpmClient::DistributionsNpmApi* | [**delete**](docs/DistributionsNpmApi.md#delete) | **DELETE** {npm_npm_distribution_href} | Delete a npm distribution
103
106
  *PulpNpmClient::DistributionsNpmApi* | [**list**](docs/DistributionsNpmApi.md#list) | **GET** /pulp/api/v3/distributions/npm/npm/ | List npm distributions
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
7
7
  | [**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/npm/packages/ | Create a package |
8
8
  | [**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/npm/packages/ | List packages |
9
9
  | [**read**](ContentPackagesApi.md#read) | **GET** {npm_package_href} | Inspect a package |
10
+ | [**set_label**](ContentPackagesApi.md#set_label) | **POST** {npm_package_href}set_label/ | Set a label |
11
+ | [**unset_label**](ContentPackagesApi.md#unset_label) | **POST** {npm_package_href}unset_label/ | Unset a label |
10
12
 
11
13
 
12
14
  ## create
@@ -35,6 +37,7 @@ name = 'name_example' # String |
35
37
  version = 'version_example' # String |
36
38
  opts = {
37
39
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
40
+ pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
38
41
  artifact: 'artifact_example', # String | Artifact file representing the physical content
39
42
  file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
40
43
  upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
@@ -76,6 +79,7 @@ end
76
79
  | **name** | **String** | | |
77
80
  | **version** | **String** | | |
78
81
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
82
+ | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
79
83
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
80
84
  | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
81
85
  | **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
@@ -121,11 +125,12 @@ opts = {
121
125
  name: 'name_example', # String | Filter results where name matches value
122
126
  name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
123
127
  offset: 56, # Integer | The initial index from which to return the results.
124
- ordering: ['-name'], # 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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `pk` - Pk * `-pk` - Pk (descending)
128
+ ordering: ['-name'], # 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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `pk` - Pk * `-pk` - Pk (descending)
125
129
  orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
126
130
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
127
131
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
128
132
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
133
+ pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
129
134
  q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
130
135
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
131
136
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
@@ -169,11 +174,12 @@ end
169
174
  | **name** | **String** | Filter results where name matches value | [optional] |
170
175
  | **name__in** | [**Array&lt;String&gt;**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
171
176
  | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
172
- | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
177
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
173
178
  | **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
174
179
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
175
180
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
176
181
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
182
+ | **pulp_label_select** | **String** | Filter labels by search string | [optional] |
177
183
  | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
178
184
  | **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
179
185
  | **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
@@ -270,3 +276,147 @@ end
270
276
  - **Content-Type**: Not defined
271
277
  - **Accept**: application/json
272
278
 
279
+
280
+ ## set_label
281
+
282
+ > <SetLabelResponse> set_label(npm_package_href, set_label)
283
+
284
+ Set a label
285
+
286
+ Set a single pulp_label on the object to a specific value or null.
287
+
288
+ ### Examples
289
+
290
+ ```ruby
291
+ require 'time'
292
+ require 'pulp_npm_client'
293
+ # setup authorization
294
+ PulpNpmClient.configure do |config|
295
+ # Configure HTTP basic authorization: basicAuth
296
+ config.username = 'YOUR USERNAME'
297
+ config.password = 'YOUR PASSWORD'
298
+ end
299
+
300
+ api_instance = PulpNpmClient::ContentPackagesApi.new
301
+ npm_package_href = 'npm_package_href_example' # String |
302
+ set_label = PulpNpmClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
303
+
304
+ begin
305
+ # Set a label
306
+ result = api_instance.set_label(npm_package_href, set_label)
307
+ p result
308
+ rescue PulpNpmClient::ApiError => e
309
+ puts "Error when calling ContentPackagesApi->set_label: #{e}"
310
+ end
311
+ ```
312
+
313
+ #### Using the set_label_with_http_info variant
314
+
315
+ This returns an Array which contains the response data, status code and headers.
316
+
317
+ > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(npm_package_href, set_label)
318
+
319
+ ```ruby
320
+ begin
321
+ # Set a label
322
+ data, status_code, headers = api_instance.set_label_with_http_info(npm_package_href, set_label)
323
+ p status_code # => 2xx
324
+ p headers # => { ... }
325
+ p data # => <SetLabelResponse>
326
+ rescue PulpNpmClient::ApiError => e
327
+ puts "Error when calling ContentPackagesApi->set_label_with_http_info: #{e}"
328
+ end
329
+ ```
330
+
331
+ ### Parameters
332
+
333
+ | Name | Type | Description | Notes |
334
+ | ---- | ---- | ----------- | ----- |
335
+ | **npm_package_href** | **String** | | |
336
+ | **set_label** | [**SetLabel**](SetLabel.md) | | |
337
+
338
+ ### Return type
339
+
340
+ [**SetLabelResponse**](SetLabelResponse.md)
341
+
342
+ ### Authorization
343
+
344
+ [basicAuth](../README.md#basicAuth)
345
+
346
+ ### HTTP request headers
347
+
348
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
349
+ - **Accept**: application/json
350
+
351
+
352
+ ## unset_label
353
+
354
+ > <UnsetLabelResponse> unset_label(npm_package_href, unset_label)
355
+
356
+ Unset a label
357
+
358
+ Unset a single pulp_label on the object.
359
+
360
+ ### Examples
361
+
362
+ ```ruby
363
+ require 'time'
364
+ require 'pulp_npm_client'
365
+ # setup authorization
366
+ PulpNpmClient.configure do |config|
367
+ # Configure HTTP basic authorization: basicAuth
368
+ config.username = 'YOUR USERNAME'
369
+ config.password = 'YOUR PASSWORD'
370
+ end
371
+
372
+ api_instance = PulpNpmClient::ContentPackagesApi.new
373
+ npm_package_href = 'npm_package_href_example' # String |
374
+ unset_label = PulpNpmClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
375
+
376
+ begin
377
+ # Unset a label
378
+ result = api_instance.unset_label(npm_package_href, unset_label)
379
+ p result
380
+ rescue PulpNpmClient::ApiError => e
381
+ puts "Error when calling ContentPackagesApi->unset_label: #{e}"
382
+ end
383
+ ```
384
+
385
+ #### Using the unset_label_with_http_info variant
386
+
387
+ This returns an Array which contains the response data, status code and headers.
388
+
389
+ > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(npm_package_href, unset_label)
390
+
391
+ ```ruby
392
+ begin
393
+ # Unset a label
394
+ data, status_code, headers = api_instance.unset_label_with_http_info(npm_package_href, unset_label)
395
+ p status_code # => 2xx
396
+ p headers # => { ... }
397
+ p data # => <UnsetLabelResponse>
398
+ rescue PulpNpmClient::ApiError => e
399
+ puts "Error when calling ContentPackagesApi->unset_label_with_http_info: #{e}"
400
+ end
401
+ ```
402
+
403
+ ### Parameters
404
+
405
+ | Name | Type | Description | Notes |
406
+ | ---- | ---- | ----------- | ----- |
407
+ | **npm_package_href** | **String** | | |
408
+ | **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
409
+
410
+ ### Return type
411
+
412
+ [**UnsetLabelResponse**](UnsetLabelResponse.md)
413
+
414
+ ### Authorization
415
+
416
+ [basicAuth](../README.md#basicAuth)
417
+
418
+ ### HTTP request headers
419
+
420
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
421
+ - **Accept**: application/json
422
+
@@ -180,6 +180,7 @@ opts = {
180
180
  base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
181
181
  base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
182
182
  base_path__in: ['inner_example'], # Array<String> | Filter results where base_path is in a comma-separated list of values
183
+ checkpoint: true, # Boolean | Filter results where checkpoint matches value
183
184
  limit: 56, # Integer | Number of results to return per page.
184
185
  name: 'name_example', # String | Filter results where name matches value
185
186
  name__contains: 'name__contains_example', # String | Filter results where name contains value
@@ -191,7 +192,7 @@ opts = {
191
192
  name__regex: 'name__regex_example', # String | Filter results where name matches regex value
192
193
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
193
194
  offset: 56, # Integer | The initial index from which to return the results.
194
- ordering: ['-base_path'], # 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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
195
+ ordering: ['-base_path'], # 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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
195
196
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
196
197
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
197
198
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
@@ -239,6 +240,7 @@ end
239
240
  | **base_path__contains** | **String** | Filter results where base_path contains value | [optional] |
240
241
  | **base_path__icontains** | **String** | Filter results where base_path contains value | [optional] |
241
242
  | **base_path__in** | [**Array&lt;String&gt;**](String.md) | Filter results where base_path is in a comma-separated list of values | [optional] |
243
+ | **checkpoint** | **Boolean** | Filter results where checkpoint matches value | [optional] |
242
244
  | **limit** | **Integer** | Number of results to return per page. | [optional] |
243
245
  | **name** | **String** | Filter results where name matches value | [optional] |
244
246
  | **name__contains** | **String** | Filter results where name contains value | [optional] |
@@ -250,7 +252,7 @@ end
250
252
  | **name__regex** | **String** | Filter results where name matches regex value | [optional] |
251
253
  | **name__startswith** | **String** | Filter results where name starts with value | [optional] |
252
254
  | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
253
- | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
255
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
254
256
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
255
257
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
256
258
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
@@ -10,6 +10,7 @@
10
10
  | **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional] |
11
11
  | **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | |
12
12
  | **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
13
+ | **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
13
14
 
14
15
  ## Example
15
16
 
@@ -22,7 +23,8 @@ instance = PulpNpmClient::NpmNpmDistribution.new(
22
23
  hidden: null,
23
24
  pulp_labels: null,
24
25
  name: null,
25
- repository: null
26
+ repository: null,
27
+ remote: null
26
28
  )
27
29
  ```
28
30
 
@@ -16,6 +16,7 @@
16
16
  | **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional] |
17
17
  | **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | |
18
18
  | **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
19
+ | **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
19
20
 
20
21
  ## Example
21
22
 
@@ -34,7 +35,8 @@ instance = PulpNpmClient::NpmNpmDistributionResponse.new(
34
35
  hidden: null,
35
36
  pulp_labels: null,
36
37
  name: null,
37
- repository: null
38
+ repository: null,
39
+ remote: null
38
40
  )
39
41
  ```
40
42
 
@@ -8,6 +8,7 @@
8
8
  | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
9
9
  | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
10
10
  | **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
11
+ | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
11
12
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
12
13
  | **relative_path** | **String** | | |
13
14
  | **name** | **String** | | |
@@ -23,6 +24,7 @@ instance = PulpNpmClient::NpmPackageResponse.new(
23
24
  prn: null,
24
25
  pulp_created: null,
25
26
  pulp_last_updated: null,
27
+ pulp_labels: null,
26
28
  artifact: null,
27
29
  relative_path: null,
28
30
  name: null,
@@ -10,6 +10,7 @@
10
10
  | **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional] |
11
11
  | **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | [optional] |
12
12
  | **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
13
+ | **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
13
14
 
14
15
  ## Example
15
16
 
@@ -22,7 +23,8 @@ instance = PulpNpmClient::PatchednpmNpmDistribution.new(
22
23
  hidden: null,
23
24
  pulp_labels: null,
24
25
  name: null,
25
- repository: null
26
+ repository: null,
27
+ remote: null
26
28
  )
27
29
  ```
28
30
 
@@ -26,6 +26,7 @@ module PulpNpmClient
26
26
  # @param version [String]
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
29
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
29
30
  # @option opts [String] :artifact Artifact file representing the physical content
30
31
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
31
32
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -43,6 +44,7 @@ module PulpNpmClient
43
44
  # @param version [String]
44
45
  # @param [Hash] opts the optional parameters
45
46
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
47
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
46
48
  # @option opts [String] :artifact Artifact file representing the physical content
47
49
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
48
50
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -102,6 +104,7 @@ module PulpNpmClient
102
104
  form_params['name'] = name
103
105
  form_params['version'] = version
104
106
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
107
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
105
108
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
106
109
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
107
110
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
@@ -140,11 +143,12 @@ module PulpNpmClient
140
143
  # @option opts [String] :name Filter results where name matches value
141
144
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
142
145
  # @option opts [Integer] :offset The initial index from which to return the results.
143
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
146
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
144
147
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
145
148
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
146
149
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
147
150
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
151
+ # @option opts [String] :pulp_label_select Filter labels by search string
148
152
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
149
153
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
150
154
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -164,11 +168,12 @@ module PulpNpmClient
164
168
  # @option opts [String] :name Filter results where name matches value
165
169
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
166
170
  # @option opts [Integer] :offset The initial index from which to return the results.
167
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
171
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
168
172
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
169
173
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
170
174
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
171
175
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
176
+ # @option opts [String] :pulp_label_select Filter labels by search string
172
177
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
173
178
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
174
179
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -180,7 +185,7 @@ module PulpNpmClient
180
185
  if @api_client.config.debugging
181
186
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
182
187
  end
183
- allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "-version", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id", "version"]
188
+ allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "-version", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id", "version"]
184
189
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
185
190
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
186
191
  end
@@ -198,6 +203,7 @@ module PulpNpmClient
198
203
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
199
204
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
200
205
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
206
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
201
207
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
202
208
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
203
209
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -307,5 +313,153 @@ module PulpNpmClient
307
313
  end
308
314
  return data, status_code, headers
309
315
  end
316
+
317
+ # Set a label
318
+ # Set a single pulp_label on the object to a specific value or null.
319
+ # @param npm_package_href [String]
320
+ # @param set_label [SetLabel]
321
+ # @param [Hash] opts the optional parameters
322
+ # @return [SetLabelResponse]
323
+ def set_label(npm_package_href, set_label, opts = {})
324
+ data, _status_code, _headers = set_label_with_http_info(npm_package_href, set_label, opts)
325
+ data
326
+ end
327
+
328
+ # Set a label
329
+ # Set a single pulp_label on the object to a specific value or null.
330
+ # @param npm_package_href [String]
331
+ # @param set_label [SetLabel]
332
+ # @param [Hash] opts the optional parameters
333
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
334
+ def set_label_with_http_info(npm_package_href, set_label, opts = {})
335
+ if @api_client.config.debugging
336
+ @api_client.config.logger.debug 'Calling API: ContentPackagesApi.set_label ...'
337
+ end
338
+ # verify the required parameter 'npm_package_href' is set
339
+ if @api_client.config.client_side_validation && npm_package_href.nil?
340
+ fail ArgumentError, "Missing the required parameter 'npm_package_href' when calling ContentPackagesApi.set_label"
341
+ end
342
+ # verify the required parameter 'set_label' is set
343
+ if @api_client.config.client_side_validation && set_label.nil?
344
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackagesApi.set_label"
345
+ end
346
+ # resource path
347
+ local_var_path = '{npm_package_href}set_label/'.sub('{' + 'npm_package_href' + '}', CGI.escape(npm_package_href.to_s).gsub('%2F', '/'))
348
+
349
+ # query parameters
350
+ query_params = opts[:query_params] || {}
351
+
352
+ # header parameters
353
+ header_params = opts[:header_params] || {}
354
+ # HTTP header 'Accept' (if needed)
355
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
356
+ # HTTP header 'Content-Type'
357
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
358
+ if !content_type.nil?
359
+ header_params['Content-Type'] = content_type
360
+ end
361
+
362
+ # form parameters
363
+ form_params = opts[:form_params] || {}
364
+
365
+ # http body (model)
366
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
367
+
368
+ # return_type
369
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
370
+
371
+ # auth_names
372
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
373
+
374
+ new_options = opts.merge(
375
+ :operation => :"ContentPackagesApi.set_label",
376
+ :header_params => header_params,
377
+ :query_params => query_params,
378
+ :form_params => form_params,
379
+ :body => post_body,
380
+ :auth_names => auth_names,
381
+ :return_type => return_type
382
+ )
383
+
384
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
385
+ if @api_client.config.debugging
386
+ @api_client.config.logger.debug "API called: ContentPackagesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
387
+ end
388
+ return data, status_code, headers
389
+ end
390
+
391
+ # Unset a label
392
+ # Unset a single pulp_label on the object.
393
+ # @param npm_package_href [String]
394
+ # @param unset_label [UnsetLabel]
395
+ # @param [Hash] opts the optional parameters
396
+ # @return [UnsetLabelResponse]
397
+ def unset_label(npm_package_href, unset_label, opts = {})
398
+ data, _status_code, _headers = unset_label_with_http_info(npm_package_href, unset_label, opts)
399
+ data
400
+ end
401
+
402
+ # Unset a label
403
+ # Unset a single pulp_label on the object.
404
+ # @param npm_package_href [String]
405
+ # @param unset_label [UnsetLabel]
406
+ # @param [Hash] opts the optional parameters
407
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
408
+ def unset_label_with_http_info(npm_package_href, unset_label, opts = {})
409
+ if @api_client.config.debugging
410
+ @api_client.config.logger.debug 'Calling API: ContentPackagesApi.unset_label ...'
411
+ end
412
+ # verify the required parameter 'npm_package_href' is set
413
+ if @api_client.config.client_side_validation && npm_package_href.nil?
414
+ fail ArgumentError, "Missing the required parameter 'npm_package_href' when calling ContentPackagesApi.unset_label"
415
+ end
416
+ # verify the required parameter 'unset_label' is set
417
+ if @api_client.config.client_side_validation && unset_label.nil?
418
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackagesApi.unset_label"
419
+ end
420
+ # resource path
421
+ local_var_path = '{npm_package_href}unset_label/'.sub('{' + 'npm_package_href' + '}', CGI.escape(npm_package_href.to_s).gsub('%2F', '/'))
422
+
423
+ # query parameters
424
+ query_params = opts[:query_params] || {}
425
+
426
+ # header parameters
427
+ header_params = opts[:header_params] || {}
428
+ # HTTP header 'Accept' (if needed)
429
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
430
+ # HTTP header 'Content-Type'
431
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
432
+ if !content_type.nil?
433
+ header_params['Content-Type'] = content_type
434
+ end
435
+
436
+ # form parameters
437
+ form_params = opts[:form_params] || {}
438
+
439
+ # http body (model)
440
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
441
+
442
+ # return_type
443
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
444
+
445
+ # auth_names
446
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
447
+
448
+ new_options = opts.merge(
449
+ :operation => :"ContentPackagesApi.unset_label",
450
+ :header_params => header_params,
451
+ :query_params => query_params,
452
+ :form_params => form_params,
453
+ :body => post_body,
454
+ :auth_names => auth_names,
455
+ :return_type => return_type
456
+ )
457
+
458
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
459
+ if @api_client.config.debugging
460
+ @api_client.config.logger.debug "API called: ContentPackagesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
461
+ end
462
+ return data, status_code, headers
463
+ end
310
464
  end
311
465
  end
@@ -157,6 +157,7 @@ module PulpNpmClient
157
157
  # @option opts [String] :base_path__contains Filter results where base_path contains value
158
158
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
159
159
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
160
+ # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
160
161
  # @option opts [Integer] :limit Number of results to return per page.
161
162
  # @option opts [String] :name Filter results where name matches value
162
163
  # @option opts [String] :name__contains Filter results where name contains value
@@ -168,7 +169,7 @@ module PulpNpmClient
168
169
  # @option opts [String] :name__regex Filter results where name matches regex value
169
170
  # @option opts [String] :name__startswith Filter results where name starts with value
170
171
  # @option opts [Integer] :offset The initial index from which to return the results.
171
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
172
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
172
173
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
173
174
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
174
175
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -192,6 +193,7 @@ module PulpNpmClient
192
193
  # @option opts [String] :base_path__contains Filter results where base_path contains value
193
194
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
194
195
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
196
+ # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
195
197
  # @option opts [Integer] :limit Number of results to return per page.
196
198
  # @option opts [String] :name Filter results where name matches value
197
199
  # @option opts [String] :name__contains Filter results where name contains value
@@ -203,7 +205,7 @@ module PulpNpmClient
203
205
  # @option opts [String] :name__regex Filter results where name matches regex value
204
206
  # @option opts [String] :name__startswith Filter results where name starts with value
205
207
  # @option opts [Integer] :offset The initial index from which to return the results.
206
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
208
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
207
209
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
208
210
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
209
211
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -219,7 +221,7 @@ module PulpNpmClient
219
221
  if @api_client.config.debugging
220
222
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.list ...'
221
223
  end
222
- allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
224
+ allowable_values = ["-base_path", "-checkpoint", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "checkpoint", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
223
225
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
224
226
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
225
227
  end
@@ -232,6 +234,7 @@ module PulpNpmClient
232
234
  query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
233
235
  query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
234
236
  query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
237
+ query_params[:'checkpoint'] = opts[:'checkpoint'] if !opts[:'checkpoint'].nil?
235
238
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
236
239
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
237
240
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
@@ -33,6 +33,9 @@ module PulpNpmClient
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
36
+ # Remote that can be used to fetch content when using pull-through caching.
37
+ attr_accessor :remote
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -41,7 +44,8 @@ module PulpNpmClient
41
44
  :'hidden' => :'hidden',
42
45
  :'pulp_labels' => :'pulp_labels',
43
46
  :'name' => :'name',
44
- :'repository' => :'repository'
47
+ :'repository' => :'repository',
48
+ :'remote' => :'remote'
45
49
  }
46
50
  end
47
51
 
@@ -58,7 +62,8 @@ module PulpNpmClient
58
62
  :'hidden' => :'Boolean',
59
63
  :'pulp_labels' => :'Hash<String, String>',
60
64
  :'name' => :'String',
61
- :'repository' => :'String'
65
+ :'repository' => :'String',
66
+ :'remote' => :'String'
62
67
  }
63
68
  end
64
69
 
@@ -66,7 +71,8 @@ module PulpNpmClient
66
71
  def self.openapi_nullable
67
72
  Set.new([
68
73
  :'content_guard',
69
- :'repository'
74
+ :'repository',
75
+ :'remote'
70
76
  ])
71
77
  end
72
78
 
@@ -116,6 +122,10 @@ module PulpNpmClient
116
122
  if attributes.key?(:'repository')
117
123
  self.repository = attributes[:'repository']
118
124
  end
125
+
126
+ if attributes.key?(:'remote')
127
+ self.remote = attributes[:'remote']
128
+ end
119
129
  end
120
130
 
121
131
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -191,7 +201,8 @@ module PulpNpmClient
191
201
  hidden == o.hidden &&
192
202
  pulp_labels == o.pulp_labels &&
193
203
  name == o.name &&
194
- repository == o.repository
204
+ repository == o.repository &&
205
+ remote == o.remote
195
206
  end
196
207
 
197
208
  # @see the `==` method
@@ -203,7 +214,7 @@ module PulpNpmClient
203
214
  # Calculates hash code according to all attributes.
204
215
  # @return [Integer] Hash code
205
216
  def hash
206
- [base_path, content_guard, hidden, pulp_labels, name, repository].hash
217
+ [base_path, content_guard, hidden, pulp_labels, name, repository, remote].hash
207
218
  end
208
219
 
209
220
  # Builds the object from hash
@@ -50,6 +50,9 @@ module PulpNpmClient
50
50
  # The latest RepositoryVersion for this Repository will be served.
51
51
  attr_accessor :repository
52
52
 
53
+ # Remote that can be used to fetch content when using pull-through caching.
54
+ attr_accessor :remote
55
+
53
56
  # Attribute mapping from ruby-style variable name to JSON key.
54
57
  def self.attribute_map
55
58
  {
@@ -64,7 +67,8 @@ module PulpNpmClient
64
67
  :'hidden' => :'hidden',
65
68
  :'pulp_labels' => :'pulp_labels',
66
69
  :'name' => :'name',
67
- :'repository' => :'repository'
70
+ :'repository' => :'repository',
71
+ :'remote' => :'remote'
68
72
  }
69
73
  end
70
74
 
@@ -87,7 +91,8 @@ module PulpNpmClient
87
91
  :'hidden' => :'Boolean',
88
92
  :'pulp_labels' => :'Hash<String, String>',
89
93
  :'name' => :'String',
90
- :'repository' => :'String'
94
+ :'repository' => :'String',
95
+ :'remote' => :'String'
91
96
  }
92
97
  end
93
98
 
@@ -95,7 +100,8 @@ module PulpNpmClient
95
100
  def self.openapi_nullable
96
101
  Set.new([
97
102
  :'content_guard',
98
- :'repository'
103
+ :'repository',
104
+ :'remote'
99
105
  ])
100
106
  end
101
107
 
@@ -169,6 +175,10 @@ module PulpNpmClient
169
175
  if attributes.key?(:'repository')
170
176
  self.repository = attributes[:'repository']
171
177
  end
178
+
179
+ if attributes.key?(:'remote')
180
+ self.remote = attributes[:'remote']
181
+ end
172
182
  end
173
183
 
174
184
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -212,7 +222,8 @@ module PulpNpmClient
212
222
  hidden == o.hidden &&
213
223
  pulp_labels == o.pulp_labels &&
214
224
  name == o.name &&
215
- repository == o.repository
225
+ repository == o.repository &&
226
+ remote == o.remote
216
227
  end
217
228
 
218
229
  # @see the `==` method
@@ -224,7 +235,7 @@ module PulpNpmClient
224
235
  # Calculates hash code according to all attributes.
225
236
  # @return [Integer] Hash code
226
237
  def hash
227
- [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository].hash
238
+ [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, remote].hash
228
239
  end
229
240
 
230
241
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # A Serializer for NpmRemote. Add any new fields if defined on NpmRemote. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2] By default the 'policy' field in platform.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows::
17
+ # A Serializer for NpmRemote. Add any new fields if defined on NpmRemote. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = core_serializers.RemoteSerializer.Meta.validators + [myValidator1, ...] By default the 'policy' field in core_serializers.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows::
18
18
  class NpmNpmRemote
19
19
  # A unique name for this remote.
20
20
  attr_accessor :name
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # A Serializer for NpmRemote. Add any new fields if defined on NpmRemote. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2] By default the 'policy' field in platform.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows::
17
+ # A Serializer for NpmRemote. Add any new fields if defined on NpmRemote. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = core_serializers.RemoteSerializer.Meta.validators + [myValidator1, ...] By default the 'policy' field in core_serializers.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows::
18
18
  class NpmNpmRemoteResponse
19
19
  attr_accessor :pulp_href
20
20
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # A Serializer for NpmRepository. Add any new fields if defined on NpmRepository. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RepositorySerializer.Meta.validators + [myValidator1, myValidator2]
17
+ # A Serializer for NpmRepository. Add any new fields if defined on NpmRepository. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = core_serializers.RepositorySerializer.Meta.validators + [myValidator1, ...]
18
18
  class NpmNpmRepository
19
19
  attr_accessor :pulp_labels
20
20
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # A Serializer for NpmRepository. Add any new fields if defined on NpmRepository. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RepositorySerializer.Meta.validators + [myValidator1, myValidator2]
17
+ # A Serializer for NpmRepository. Add any new fields if defined on NpmRepository. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = core_serializers.RepositorySerializer.Meta.validators + [myValidator1, ...]
18
18
  class NpmNpmRepositoryResponse
19
19
  attr_accessor :pulp_href
20
20
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # A Serializer for Package. Add serializers for the new fields defined in Package and add those fields to the Meta class keeping fields from the parent class as well. For example:: field1 = serializers.TextField() field2 = serializers.IntegerField() field3 = serializers.CharField() class Meta: fields = platform.SingleArtifactContentSerializer.Meta.fields + ( 'field1', 'field2', 'field3' ) model = models.Package
17
+ # A Serializer for Package. Add serializers for the new fields defined in Package and add those fields to the Meta class keeping fields from the parent class as well. For example:: field1 = serializers.TextField() field2 = serializers.IntegerField() field3 = serializers.CharField() class Meta: fields = core_serializers.SingleArtifactContentSerializer.Meta.fields + ( 'field1', 'field2', 'field3' ) model = models.Package
18
18
  class NpmPackageResponse
19
19
  attr_accessor :pulp_href
20
20
 
@@ -27,6 +27,9 @@ module PulpNpmClient
27
27
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  # Artifact file representing the physical content
31
34
  attr_accessor :artifact
32
35
 
@@ -43,6 +46,7 @@ module PulpNpmClient
43
46
  :'prn' => :'prn',
44
47
  :'pulp_created' => :'pulp_created',
45
48
  :'pulp_last_updated' => :'pulp_last_updated',
49
+ :'pulp_labels' => :'pulp_labels',
46
50
  :'artifact' => :'artifact',
47
51
  :'relative_path' => :'relative_path',
48
52
  :'name' => :'name',
@@ -62,6 +66,7 @@ module PulpNpmClient
62
66
  :'prn' => :'String',
63
67
  :'pulp_created' => :'Time',
64
68
  :'pulp_last_updated' => :'Time',
69
+ :'pulp_labels' => :'Hash<String, String>',
65
70
  :'artifact' => :'String',
66
71
  :'relative_path' => :'String',
67
72
  :'name' => :'String',
@@ -106,6 +111,12 @@ module PulpNpmClient
106
111
  self.pulp_last_updated = attributes[:'pulp_last_updated']
107
112
  end
108
113
 
114
+ if attributes.key?(:'pulp_labels')
115
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
116
+ self.pulp_labels = value
117
+ end
118
+ end
119
+
109
120
  if attributes.key?(:'artifact')
110
121
  self.artifact = attributes[:'artifact']
111
122
  end
@@ -168,6 +179,7 @@ module PulpNpmClient
168
179
  prn == o.prn &&
169
180
  pulp_created == o.pulp_created &&
170
181
  pulp_last_updated == o.pulp_last_updated &&
182
+ pulp_labels == o.pulp_labels &&
171
183
  artifact == o.artifact &&
172
184
  relative_path == o.relative_path &&
173
185
  name == o.name &&
@@ -183,7 +195,7 @@ module PulpNpmClient
183
195
  # Calculates hash code according to all attributes.
184
196
  # @return [Integer] Hash code
185
197
  def hash
186
- [pulp_href, prn, pulp_created, pulp_last_updated, artifact, relative_path, name, version].hash
198
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, relative_path, name, version].hash
187
199
  end
188
200
 
189
201
  # Builds the object from hash
@@ -33,6 +33,9 @@ module PulpNpmClient
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
36
+ # Remote that can be used to fetch content when using pull-through caching.
37
+ attr_accessor :remote
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -41,7 +44,8 @@ module PulpNpmClient
41
44
  :'hidden' => :'hidden',
42
45
  :'pulp_labels' => :'pulp_labels',
43
46
  :'name' => :'name',
44
- :'repository' => :'repository'
47
+ :'repository' => :'repository',
48
+ :'remote' => :'remote'
45
49
  }
46
50
  end
47
51
 
@@ -58,7 +62,8 @@ module PulpNpmClient
58
62
  :'hidden' => :'Boolean',
59
63
  :'pulp_labels' => :'Hash<String, String>',
60
64
  :'name' => :'String',
61
- :'repository' => :'String'
65
+ :'repository' => :'String',
66
+ :'remote' => :'String'
62
67
  }
63
68
  end
64
69
 
@@ -66,7 +71,8 @@ module PulpNpmClient
66
71
  def self.openapi_nullable
67
72
  Set.new([
68
73
  :'content_guard',
69
- :'repository'
74
+ :'repository',
75
+ :'remote'
70
76
  ])
71
77
  end
72
78
 
@@ -112,6 +118,10 @@ module PulpNpmClient
112
118
  if attributes.key?(:'repository')
113
119
  self.repository = attributes[:'repository']
114
120
  end
121
+
122
+ if attributes.key?(:'remote')
123
+ self.remote = attributes[:'remote']
124
+ end
115
125
  end
116
126
 
117
127
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -177,7 +187,8 @@ module PulpNpmClient
177
187
  hidden == o.hidden &&
178
188
  pulp_labels == o.pulp_labels &&
179
189
  name == o.name &&
180
- repository == o.repository
190
+ repository == o.repository &&
191
+ remote == o.remote
181
192
  end
182
193
 
183
194
  # @see the `==` method
@@ -189,7 +200,7 @@ module PulpNpmClient
189
200
  # Calculates hash code according to all attributes.
190
201
  # @return [Integer] Hash code
191
202
  def hash
192
- [base_path, content_guard, hidden, pulp_labels, name, repository].hash
203
+ [base_path, content_guard, hidden, pulp_labels, name, repository, remote].hash
193
204
  end
194
205
 
195
206
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # A Serializer for NpmRemote. Add any new fields if defined on NpmRemote. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2] By default the 'policy' field in platform.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows::
17
+ # A Serializer for NpmRemote. Add any new fields if defined on NpmRemote. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = core_serializers.RemoteSerializer.Meta.validators + [myValidator1, ...] By default the 'policy' field in core_serializers.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows::
18
18
  class PatchednpmNpmRemote
19
19
  # A unique name for this remote.
20
20
  attr_accessor :name
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # A Serializer for NpmRepository. Add any new fields if defined on NpmRepository. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RepositorySerializer.Meta.validators + [myValidator1, myValidator2]
17
+ # A Serializer for NpmRepository. Add any new fields if defined on NpmRepository. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = core_serializers.RepositorySerializer.Meta.validators + [myValidator1, ...]
18
18
  class PatchednpmNpmRepository
19
19
  attr_accessor :pulp_labels
20
20
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # Serializer for synchronously setting a label.
17
+ # Serializer for synchronously UNsetting a label.
18
18
  class UnsetLabel
19
19
  attr_accessor :key
20
20
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # Serializer for synchronously setting a label.
17
+ # Serializer for synchronously UNsetting a label.
18
18
  class UnsetLabelResponse
19
19
  attr_accessor :key
20
20
 
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpNpmClient
14
- VERSION = '0.1.0'
14
+ VERSION = '0.3.0'
15
15
  end
@@ -40,6 +40,7 @@ describe 'ContentPackagesApi' do
40
40
  # @param version
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
43
44
  # @option opts [String] :artifact Artifact file representing the physical content
44
45
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
45
46
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -59,11 +60,12 @@ describe 'ContentPackagesApi' do
59
60
  # @option opts [String] :name Filter results where name matches value
60
61
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
61
62
  # @option opts [Integer] :offset The initial index from which to return the results.
62
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
63
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
63
64
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
64
65
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
65
66
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
66
67
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
68
+ # @option opts [String] :pulp_label_select Filter labels by search string
67
69
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
68
70
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
69
71
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -91,4 +93,30 @@ describe 'ContentPackagesApi' do
91
93
  end
92
94
  end
93
95
 
96
+ # unit tests for set_label
97
+ # Set a label
98
+ # Set a single pulp_label on the object to a specific value or null.
99
+ # @param npm_package_href
100
+ # @param set_label
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [SetLabelResponse]
103
+ describe 'set_label test' do
104
+ it 'should work' do
105
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
106
+ end
107
+ end
108
+
109
+ # unit tests for unset_label
110
+ # Unset a label
111
+ # Unset a single pulp_label on the object.
112
+ # @param npm_package_href
113
+ # @param unset_label
114
+ # @param [Hash] opts the optional parameters
115
+ # @return [UnsetLabelResponse]
116
+ describe 'unset_label test' do
117
+ it 'should work' do
118
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
119
+ end
120
+ end
121
+
94
122
  end
@@ -64,6 +64,7 @@ describe 'DistributionsNpmApi' do
64
64
  # @option opts [String] :base_path__contains Filter results where base_path contains value
65
65
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
66
66
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
67
+ # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
67
68
  # @option opts [Integer] :limit Number of results to return per page.
68
69
  # @option opts [String] :name Filter results where name matches value
69
70
  # @option opts [String] :name__contains Filter results where name contains value
@@ -75,7 +76,7 @@ describe 'DistributionsNpmApi' do
75
76
  # @option opts [String] :name__regex Filter results where name matches regex value
76
77
  # @option opts [String] :name__startswith Filter results where name starts with value
77
78
  # @option opts [Integer] :offset The initial index from which to return the results.
78
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
79
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
79
80
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
80
81
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
81
82
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -99,4 +99,10 @@ describe PulpNpmClient::NpmNpmDistributionResponse do
99
99
  end
100
100
  end
101
101
 
102
+ describe 'test attribute "remote"' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
105
+ end
106
+ end
107
+
102
108
  end
@@ -63,4 +63,10 @@ describe PulpNpmClient::NpmNpmDistribution do
63
63
  end
64
64
  end
65
65
 
66
+ describe 'test attribute "remote"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
66
72
  end
@@ -51,6 +51,12 @@ describe PulpNpmClient::NpmPackageResponse do
51
51
  end
52
52
  end
53
53
 
54
+ describe 'test attribute "pulp_labels"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
54
60
  describe 'test attribute "artifact"' do
55
61
  it 'should work' do
56
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -63,4 +63,10 @@ describe PulpNpmClient::PatchednpmNpmDistribution do
63
63
  end
64
64
  end
65
65
 
66
+ describe 'test attribute "remote"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
66
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_npm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.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: 2025-02-14 00:00:00.000000000 Z
11
+ date: 2025-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday-net_http
@@ -235,36 +235,36 @@ signing_key:
235
235
  specification_version: 4
236
236
  summary: Pulp 3 API Ruby Gem
237
237
  test_files:
238
- - spec/api/repositories_npm_api_spec.rb
239
- - spec/api/remotes_npm_api_spec.rb
240
238
  - spec/api/repositories_npm_versions_api_spec.rb
239
+ - spec/api/remotes_npm_api_spec.rb
241
240
  - spec/api/content_packages_api_spec.rb
242
241
  - spec/api/distributions_npm_api_spec.rb
243
- - spec/models/npm_npm_repository_response_spec.rb
244
- - spec/models/paginated_repository_version_response_list_spec.rb
245
- - spec/models/patchednpm_npm_distribution_spec.rb
246
- - spec/models/repository_sync_url_spec.rb
247
- - spec/models/set_label_response_spec.rb
248
- - spec/models/repository_add_remove_content_spec.rb
249
- - spec/models/npm_npm_distribution_response_spec.rb
250
- - spec/models/paginatednpm_npm_repository_response_list_spec.rb
251
- - spec/models/unset_label_spec.rb
252
- - spec/models/async_operation_response_spec.rb
253
- - spec/models/paginatednpm_npm_distribution_response_list_spec.rb
242
+ - spec/api/repositories_npm_api_spec.rb
254
243
  - spec/models/repair_spec.rb
255
- - spec/models/npm_npm_distribution_spec.rb
244
+ - spec/models/set_label_spec.rb
245
+ - spec/models/policy_enum_spec.rb
246
+ - spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
256
247
  - spec/models/npm_package_response_spec.rb
257
- - spec/models/paginatednpm_npm_remote_response_list_spec.rb
258
248
  - spec/models/npm_npm_repository_spec.rb
259
- - spec/models/npm_npm_remote_spec.rb
249
+ - spec/models/repository_add_remove_content_spec.rb
250
+ - spec/models/npm_npm_repository_response_spec.rb
260
251
  - spec/models/npm_npm_remote_response_spec.rb
252
+ - spec/models/paginatednpm_npm_repository_response_list_spec.rb
253
+ - spec/models/paginatednpm_npm_remote_response_list_spec.rb
254
+ - spec/models/repository_sync_url_spec.rb
255
+ - spec/models/unset_label_spec.rb
256
+ - spec/models/patchednpm_npm_repository_spec.rb
257
+ - spec/models/npm_npm_remote_spec.rb
261
258
  - spec/models/unset_label_response_spec.rb
262
- - spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
263
- - spec/models/policy_enum_spec.rb
259
+ - spec/models/paginatednpm_npm_distribution_response_list_spec.rb
264
260
  - spec/models/repository_version_response_spec.rb
265
- - spec/models/content_summary_response_spec.rb
266
- - spec/models/set_label_spec.rb
267
- - spec/models/paginatednpm_package_response_list_spec.rb
268
- - spec/models/patchednpm_npm_repository_spec.rb
261
+ - spec/models/npm_npm_distribution_spec.rb
262
+ - spec/models/paginated_repository_version_response_list_spec.rb
269
263
  - spec/models/patchednpm_npm_remote_spec.rb
264
+ - spec/models/patchednpm_npm_distribution_spec.rb
265
+ - spec/models/paginatednpm_package_response_list_spec.rb
266
+ - spec/models/set_label_response_spec.rb
267
+ - spec/models/content_summary_response_spec.rb
268
+ - spec/models/npm_npm_distribution_response_spec.rb
269
+ - spec/models/async_operation_response_spec.rb
270
270
  - spec/spec_helper.rb