pulp_npm_client 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3ffa04ef0af653222b741e825a2060973aedd6832b3bcc86ff747337b4c49a6
4
- data.tar.gz: 7f6c7b3642a66ce030d3788f0df62f250f294ea425f0144e2f7c6964db397c7c
3
+ metadata.gz: 89f88d57de19039309728aa796d324aec9e768f65fce35b10287d8ea48d33514
4
+ data.tar.gz: 827fbbd404efbf3ccd63f6e35cba94251cdad2e7bcb07562fea6b2cbdabbe1ea
5
5
  SHA512:
6
- metadata.gz: f90b8196258b84fb447b65e7ea171dabe71fadca85827f27a1b0aae8d688253ad76cfbb09634157db92d3b292e50179b9d1fd3c55f3db203b9759158758845e3
7
- data.tar.gz: 18adecbe1e765238209bc09234f966c6f920dbf4a4cb7caccaef989675e88fda42664849a5789d3f8014b6eacf3fe5c2908b1aa9acd369e4541d2fa75f0d0e5a
6
+ metadata.gz: 265e9dc18fd7b0cef556ec67c2803a0d3c8438c88e5fb8830ba0ba2a28e1e23d70ab0a2f842274d18add20287a95b92d24477e948385a38029168dac34dc2dc0
7
+ data.tar.gz: 198c9139ff3af43bf7f4648e5230185a5e6148b4e6e6bd98ff8dec03250cc628ecb5a15324e072ae9db13611762f9dfa7755f8f9327e7956782ed310d1bbf0f6
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.8.0
10
+ - Package version: 0.9.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.8.0.gem
28
+ gem install ./pulp_npm_client-0.9.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_npm_client-0.8.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_npm_client-0.9.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.8.0'
37
+ gem 'pulp_npm_client', '~> 0.9.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -71,6 +71,7 @@ api_instance = PulpNpmClient::ContentPackagesApi.new
71
71
  opts = {
72
72
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
73
73
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
74
+ overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
74
75
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
75
76
  artifact: 'artifact_example', # String | Artifact file representing the physical content
76
77
  relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version.
@@ -36,6 +36,7 @@ api_instance = PulpNpmClient::ContentPackagesApi.new
36
36
  opts = {
37
37
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
38
38
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
39
+ overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
39
40
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
40
41
  artifact: 'artifact_example', # String | Artifact file representing the physical content
41
42
  relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version.
@@ -80,6 +81,7 @@ end
80
81
  | ---- | ---- | ----------- | ----- |
81
82
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
82
83
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
84
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
83
85
  | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
84
86
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
85
87
  | **relative_path** | **String** | Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version. | [optional] |
@@ -461,6 +463,7 @@ end
461
463
  api_instance = PulpNpmClient::ContentPackagesApi.new
462
464
  opts = {
463
465
  x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
466
+ overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
464
467
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
465
468
  artifact: 'artifact_example', # String | Artifact file representing the physical content
466
469
  relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version.
@@ -504,6 +507,7 @@ end
504
507
  | Name | Type | Description | Notes |
505
508
  | ---- | ---- | ----------- | ----- |
506
509
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
510
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
507
511
  | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
508
512
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
509
513
  | **relative_path** | **String** | Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version. | [optional] |
@@ -7,6 +7,7 @@
7
7
  | **add_content_units** | **Array&lt;String&gt;** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional] |
8
8
  | **remove_content_units** | **Array&lt;String&gt;** | A list of content units to remove from the latest repository version. You may also specify &#39;*&#39; as an entry to remove all content. This content is removed before add_content_units are added. | [optional] |
9
9
  | **base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional] |
10
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true. | [optional][default to true] |
10
11
 
11
12
  ## Example
12
13
 
@@ -16,7 +17,8 @@ require 'pulp_npm_client'
16
17
  instance = PulpNpmClient::RepositoryAddRemoveContent.new(
17
18
  add_content_units: null,
18
19
  remove_content_units: null,
19
- base_version: null
20
+ base_version: null,
21
+ overwrite: null
20
22
  )
21
23
  ```
22
24
 
@@ -24,6 +24,7 @@ module PulpNpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
27
28
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
29
  # @option opts [String] :artifact Artifact file representing the physical content
29
30
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version.
@@ -44,6 +45,7 @@ module PulpNpmClient
44
45
  # @param [Hash] opts the optional parameters
45
46
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
46
47
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
48
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
47
49
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
48
50
  # @option opts [String] :artifact Artifact file representing the physical content
49
51
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version.
@@ -94,6 +96,7 @@ module PulpNpmClient
94
96
  # form parameters
95
97
  form_params = opts[:form_params] || {}
96
98
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
99
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
97
100
  form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
98
101
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
99
102
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
@@ -472,6 +475,7 @@ module PulpNpmClient
472
475
  # Create an npm package content unit synchronously.
473
476
  # @param [Hash] opts the optional parameters
474
477
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
478
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
475
479
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
476
480
  # @option opts [String] :artifact Artifact file representing the physical content
477
481
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version.
@@ -491,6 +495,7 @@ module PulpNpmClient
491
495
  # Create an npm package content unit synchronously.
492
496
  # @param [Hash] opts the optional parameters
493
497
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
498
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
494
499
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
495
500
  # @option opts [String] :artifact Artifact file representing the physical content
496
501
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version.
@@ -540,6 +545,7 @@ module PulpNpmClient
540
545
 
541
546
  # form parameters
542
547
  form_params = opts[:form_params] || {}
548
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
543
549
  form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
544
550
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
545
551
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
@@ -25,12 +25,16 @@ module PulpNpmClient
25
25
  # A repository version whose content will be used as the initial set of content for the new repository version
26
26
  attr_accessor :base_version
27
27
 
28
+ # When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.
29
+ attr_accessor :overwrite
30
+
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
29
32
  def self.attribute_map
30
33
  {
31
34
  :'add_content_units' => :'add_content_units',
32
35
  :'remove_content_units' => :'remove_content_units',
33
- :'base_version' => :'base_version'
36
+ :'base_version' => :'base_version',
37
+ :'overwrite' => :'overwrite'
34
38
  }
35
39
  end
36
40
 
@@ -44,7 +48,8 @@ module PulpNpmClient
44
48
  {
45
49
  :'add_content_units' => :'Array<String>',
46
50
  :'remove_content_units' => :'Array<String>',
47
- :'base_version' => :'String'
51
+ :'base_version' => :'String',
52
+ :'overwrite' => :'Boolean'
48
53
  }
49
54
  end
50
55
 
@@ -84,6 +89,12 @@ module PulpNpmClient
84
89
  if attributes.key?(:'base_version')
85
90
  self.base_version = attributes[:'base_version']
86
91
  end
92
+
93
+ if attributes.key?(:'overwrite')
94
+ self.overwrite = attributes[:'overwrite']
95
+ else
96
+ self.overwrite = true
97
+ end
87
98
  end
88
99
 
89
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -108,7 +119,8 @@ module PulpNpmClient
108
119
  self.class == o.class &&
109
120
  add_content_units == o.add_content_units &&
110
121
  remove_content_units == o.remove_content_units &&
111
- base_version == o.base_version
122
+ base_version == o.base_version &&
123
+ overwrite == o.overwrite
112
124
  end
113
125
 
114
126
  # @see the `==` method
@@ -120,7 +132,7 @@ module PulpNpmClient
120
132
  # Calculates hash code according to all attributes.
121
133
  # @return [Integer] Hash code
122
134
  def hash
123
- [add_content_units, remove_content_units, base_version].hash
135
+ [add_content_units, remove_content_units, base_version, overwrite].hash
124
136
  end
125
137
 
126
138
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpNpmClient
14
- VERSION = '0.8.0'
14
+ VERSION = '0.9.0'
15
15
  end
@@ -38,6 +38,7 @@ describe 'ContentPackagesApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
40
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
41
42
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
42
43
  # @option opts [String] :artifact Artifact file representing the physical content
43
44
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version.
@@ -130,6 +131,7 @@ describe 'ContentPackagesApi' do
130
131
  # Create an npm package content unit synchronously.
131
132
  # @param [Hash] opts the optional parameters
132
133
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
134
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
133
135
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
134
136
  # @option opts [String] :artifact Artifact file representing the physical content
135
137
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path. If not provided, it will be computed from name and version.
@@ -45,4 +45,10 @@ describe PulpNpmClient::RepositoryAddRemoveContent do
45
45
  end
46
46
  end
47
47
 
48
+ describe 'test attribute "overwrite"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
48
54
  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.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-12 00:00:00.000000000 Z
11
+ date: 2026-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -231,40 +231,40 @@ specification_version: 4
231
231
  summary: Pulp 3 API Ruby Gem
232
232
  test_files:
233
233
  - spec/api/repositories_npm_versions_api_spec.rb
234
- - spec/api/remotes_npm_api_spec.rb
235
- - spec/api/distributions_npm_api_spec.rb
236
- - spec/api/npm_ping_api_spec.rb
237
- - spec/api/npm_api_spec.rb
238
234
  - spec/api/content_packages_api_spec.rb
239
- - spec/api/repositories_npm_api_spec.rb
240
235
  - spec/api/npm_whoami_api_spec.rb
236
+ - spec/api/npm_api_spec.rb
237
+ - spec/api/npm_ping_api_spec.rb
238
+ - spec/api/repositories_npm_api_spec.rb
239
+ - spec/api/distributions_npm_api_spec.rb
240
+ - spec/api/remotes_npm_api_spec.rb
241
+ - spec/models/patchednpm_npm_repository_spec.rb
242
+ - spec/models/npm_npm_remote_spec.rb
243
+ - spec/models/npm_npm_repository_spec.rb
244
+ - spec/models/paginatednpm_npm_remote_response_list_spec.rb
245
+ - spec/models/repair_spec.rb
246
+ - spec/models/unset_label_spec.rb
241
247
  - spec/models/paginatednpm_npm_distribution_response_list_spec.rb
242
- - spec/models/unset_label_response_spec.rb
248
+ - spec/models/policy_enum_spec.rb
243
249
  - spec/models/npm_package_response_spec.rb
244
- - spec/models/paginatednpm_npm_repository_response_list_spec.rb
245
- - spec/models/repository_add_remove_content_spec.rb
246
- - spec/models/patchednpm_npm_repository_spec.rb
247
250
  - spec/models/async_operation_response_spec.rb
248
- - spec/models/policy_enum_spec.rb
249
- - spec/models/repository_sync_url_spec.rb
250
- - spec/models/remote_network_config_spec.rb
251
- - spec/models/npm_npm_repository_spec.rb
251
+ - spec/models/paginated_repository_version_response_list_spec.rb
252
+ - spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
252
253
  - spec/models/patchednpm_npm_remote_spec.rb
253
- - spec/models/remote_network_config_response_spec.rb
254
254
  - spec/models/npm_npm_distribution_response_spec.rb
255
- - spec/models/paginatednpm_npm_remote_response_list_spec.rb
256
- - spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
257
- - spec/models/unset_label_spec.rb
255
+ - spec/models/npm_npm_distribution_spec.rb
256
+ - spec/models/npm_npm_repository_response_spec.rb
257
+ - spec/models/remote_network_config_spec.rb
258
+ - spec/models/unset_label_response_spec.rb
259
+ - spec/models/remote_network_config_response_spec.rb
260
+ - spec/models/paginatednpm_npm_repository_response_list_spec.rb
258
261
  - spec/models/paginatednpm_package_response_list_spec.rb
259
- - spec/models/content_summary_response_spec.rb
260
- - spec/models/patchednpm_npm_distribution_spec.rb
261
262
  - spec/models/repository_version_response_spec.rb
262
- - spec/models/npm_npm_remote_spec.rb
263
- - spec/models/npm_npm_remote_response_spec.rb
264
263
  - spec/models/set_label_response_spec.rb
265
- - spec/models/paginated_repository_version_response_list_spec.rb
266
- - spec/models/npm_npm_repository_response_spec.rb
267
- - spec/models/npm_npm_distribution_spec.rb
268
- - spec/models/repair_spec.rb
264
+ - spec/models/repository_sync_url_spec.rb
265
+ - spec/models/npm_npm_remote_response_spec.rb
266
+ - spec/models/repository_add_remove_content_spec.rb
267
+ - spec/models/content_summary_response_spec.rb
268
+ - spec/models/patchednpm_npm_distribution_spec.rb
269
269
  - spec/models/set_label_spec.rb
270
270
  - spec/spec_helper.rb