pulp_npm_client 0.3.3 → 0.5.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentPackagesApi.md +22 -8
  4. data/docs/DistributionsNpmApi.md +58 -30
  5. data/docs/NpmNpmRemoteResponse.md +1 -1
  6. data/docs/NpmPackageResponse.md +2 -0
  7. data/docs/RemotesNpmApi.md +58 -30
  8. data/docs/RepositoriesNpmApi.md +74 -38
  9. data/docs/RepositoriesNpmVersionsApi.md +22 -10
  10. data/docs/RepositoryVersionResponse.md +3 -1
  11. data/lib/pulp_npm_client/api/content_packages_api.rb +15 -0
  12. data/lib/pulp_npm_client/api/distributions_npm_api.rb +34 -10
  13. data/lib/pulp_npm_client/api/remotes_npm_api.rb +34 -10
  14. data/lib/pulp_npm_client/api/repositories_npm_api.rb +40 -10
  15. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +15 -3
  16. data/lib/pulp_npm_client/models/npm_npm_remote.rb +0 -15
  17. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +0 -15
  18. data/lib/pulp_npm_client/models/npm_npm_repository.rb +0 -15
  19. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +0 -15
  20. data/lib/pulp_npm_client/models/npm_package_response.rb +10 -1
  21. data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +0 -2
  22. data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +0 -2
  23. data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +0 -2
  24. data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +0 -2
  25. data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +0 -2
  26. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +0 -15
  27. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +0 -15
  28. data/lib/pulp_npm_client/models/repository_version_response.rb +13 -4
  29. data/lib/pulp_npm_client/version.rb +1 -1
  30. data/pulp_npm_client.gemspec +0 -1
  31. data/spec/api/content_packages_api_spec.rb +5 -0
  32. data/spec/api/distributions_npm_api_spec.rb +12 -4
  33. data/spec/api/remotes_npm_api_spec.rb +12 -4
  34. data/spec/api/repositories_npm_api_spec.rb +14 -4
  35. data/spec/api/repositories_npm_versions_api_spec.rb +5 -1
  36. data/spec/models/npm_package_response_spec.rb +6 -0
  37. data/spec/models/repository_version_response_spec.rb +6 -0
  38. metadata +24 -44
@@ -329,10 +329,6 @@ module PulpNpmClient
329
329
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
330
330
  end
331
331
 
332
- if !@download_concurrency.nil? && @download_concurrency < 1
333
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
334
- end
335
-
336
332
  if !@total_timeout.nil? && @total_timeout < 0.0
337
333
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
338
334
  end
@@ -366,7 +362,6 @@ module PulpNpmClient
366
362
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
367
363
  return false if !@username.nil? && @username.to_s.length < 1
368
364
  return false if !@password.nil? && @password.to_s.length < 1
369
- return false if !@download_concurrency.nil? && @download_concurrency < 1
370
365
  return false if !@total_timeout.nil? && @total_timeout < 0.0
371
366
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
372
367
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -482,16 +477,6 @@ module PulpNpmClient
482
477
  @password = password
483
478
  end
484
479
 
485
- # Custom attribute writer method with validation
486
- # @param [Object] download_concurrency Value to be assigned
487
- def download_concurrency=(download_concurrency)
488
- if !download_concurrency.nil? && download_concurrency < 1
489
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
490
- end
491
-
492
- @download_concurrency = download_concurrency
493
- end
494
-
495
480
  # Custom attribute writer method with validation
496
481
  # @param [Object] total_timeout Value to be assigned
497
482
  def total_timeout=(total_timeout)
@@ -117,10 +117,6 @@ module PulpNpmClient
117
117
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
118
118
  end
119
119
 
120
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
121
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
122
- end
123
-
124
120
  invalid_properties
125
121
  end
126
122
 
@@ -130,7 +126,6 @@ module PulpNpmClient
130
126
  warn '[DEPRECATED] the `valid?` method is obsolete'
131
127
  return false if !@name.nil? && @name.to_s.length < 1
132
128
  return false if !@description.nil? && @description.to_s.length < 1
133
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
134
129
  true
135
130
  end
136
131
 
@@ -158,16 +153,6 @@ module PulpNpmClient
158
153
  @description = description
159
154
  end
160
155
 
161
- # Custom attribute writer method with validation
162
- # @param [Object] retain_repo_versions Value to be assigned
163
- def retain_repo_versions=(retain_repo_versions)
164
- if !retain_repo_versions.nil? && retain_repo_versions < 1
165
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
166
- end
167
-
168
- @retain_repo_versions = retain_repo_versions
169
- end
170
-
171
156
  # Checks equality by comparing each attribute.
172
157
  # @param [Object] Object to be compared
173
158
  def ==(o)
@@ -37,6 +37,8 @@ module PulpNpmClient
37
37
  # Various count summaries of the content in the version and the HREF to view them.
38
38
  attr_accessor :content_summary
39
39
 
40
+ attr_accessor :vuln_report
41
+
40
42
  # Attribute mapping from ruby-style variable name to JSON key.
41
43
  def self.attribute_map
42
44
  {
@@ -47,7 +49,8 @@ module PulpNpmClient
47
49
  :'number' => :'number',
48
50
  :'repository' => :'repository',
49
51
  :'base_version' => :'base_version',
50
- :'content_summary' => :'content_summary'
52
+ :'content_summary' => :'content_summary',
53
+ :'vuln_report' => :'vuln_report'
51
54
  }
52
55
  end
53
56
 
@@ -66,7 +69,8 @@ module PulpNpmClient
66
69
  :'number' => :'Integer',
67
70
  :'repository' => :'String',
68
71
  :'base_version' => :'String',
69
- :'content_summary' => :'ContentSummaryResponse'
72
+ :'content_summary' => :'ContentSummaryResponse',
73
+ :'vuln_report' => :'String'
70
74
  }
71
75
  end
72
76
 
@@ -122,6 +126,10 @@ module PulpNpmClient
122
126
  if attributes.key?(:'content_summary')
123
127
  self.content_summary = attributes[:'content_summary']
124
128
  end
129
+
130
+ if attributes.key?(:'vuln_report')
131
+ self.vuln_report = attributes[:'vuln_report']
132
+ end
125
133
  end
126
134
 
127
135
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -151,7 +159,8 @@ module PulpNpmClient
151
159
  number == o.number &&
152
160
  repository == o.repository &&
153
161
  base_version == o.base_version &&
154
- content_summary == o.content_summary
162
+ content_summary == o.content_summary &&
163
+ vuln_report == o.vuln_report
155
164
  end
156
165
 
157
166
  # @see the `==` method
@@ -163,7 +172,7 @@ module PulpNpmClient
163
172
  # Calculates hash code according to all attributes.
164
173
  # @return [Integer] Hash code
165
174
  def hash
166
- [pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
175
+ [pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary, vuln_report].hash
167
176
  end
168
177
 
169
178
  # 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.3.3'
14
+ VERSION = '0.5.0'
15
15
  end
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
28
28
  s.required_ruby_version = ">= 2.7"
29
29
  s.metadata = {}
30
30
 
31
- s.add_runtime_dependency 'faraday-net_http', '>= 2.0', '< 3.1'
32
31
  s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.9'
33
32
  s.add_runtime_dependency 'faraday-multipart'
34
33
  s.add_runtime_dependency 'marcel'
@@ -39,6 +39,7 @@ describe 'ContentPackagesApi' do
39
39
  # @param name
40
40
  # @param version
41
41
  # @param [Hash] opts the optional parameters
42
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
42
43
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
44
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
44
45
  # @option opts [String] :artifact Artifact file representing the physical content
@@ -56,6 +57,7 @@ describe 'ContentPackagesApi' do
56
57
  # List packages
57
58
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
58
59
  # @param [Hash] opts the optional parameters
60
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
59
61
  # @option opts [Integer] :limit Number of results to return per page.
60
62
  # @option opts [String] :name Filter results where name matches value
61
63
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -84,6 +86,7 @@ describe 'ContentPackagesApi' do
84
86
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
85
87
  # @param npm_package_href
86
88
  # @param [Hash] opts the optional parameters
89
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
87
90
  # @option opts [Array<String>] :fields A list of fields to include in the response.
88
91
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
89
92
  # @return [NpmPackageResponse]
@@ -99,6 +102,7 @@ describe 'ContentPackagesApi' do
99
102
  # @param npm_package_href
100
103
  # @param set_label
101
104
  # @param [Hash] opts the optional parameters
105
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
102
106
  # @return [SetLabelResponse]
103
107
  describe 'set_label test' do
104
108
  it 'should work' do
@@ -112,6 +116,7 @@ describe 'ContentPackagesApi' do
112
116
  # @param npm_package_href
113
117
  # @param unset_label
114
118
  # @param [Hash] opts the optional parameters
119
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
115
120
  # @return [UnsetLabelResponse]
116
121
  describe 'unset_label test' do
117
122
  it 'should work' do
@@ -37,6 +37,7 @@ describe 'DistributionsNpmApi' do
37
37
  # Trigger an asynchronous create task
38
38
  # @param npm_npm_distribution
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
41
  # @return [AsyncOperationResponse]
41
42
  describe 'create test' do
42
43
  it 'should work' do
@@ -49,6 +50,7 @@ describe 'DistributionsNpmApi' do
49
50
  # Trigger an asynchronous delete task
50
51
  # @param npm_npm_distribution_href
51
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
52
54
  # @return [AsyncOperationResponse]
53
55
  describe 'delete test' do
54
56
  it 'should work' do
@@ -60,6 +62,7 @@ describe 'DistributionsNpmApi' do
60
62
  # List npm distributions
61
63
  # ViewSet for NPM Distributions.
62
64
  # @param [Hash] opts the optional parameters
65
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
63
66
  # @option opts [String] :base_path Filter results where base_path matches value
64
67
  # @option opts [String] :base_path__contains Filter results where base_path contains value
65
68
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
@@ -96,11 +99,12 @@ describe 'DistributionsNpmApi' do
96
99
 
97
100
  # unit tests for partial_update
98
101
  # Update a npm distribution
99
- # Trigger an asynchronous partial update task
102
+ # Update the entity partially and trigger an asynchronous task if necessary
100
103
  # @param npm_npm_distribution_href
101
104
  # @param patchednpm_npm_distribution
102
105
  # @param [Hash] opts the optional parameters
103
- # @return [AsyncOperationResponse]
106
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
107
+ # @return [NpmNpmDistributionResponse]
104
108
  describe 'partial_update test' do
105
109
  it 'should work' do
106
110
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -112,6 +116,7 @@ describe 'DistributionsNpmApi' do
112
116
  # ViewSet for NPM Distributions.
113
117
  # @param npm_npm_distribution_href
114
118
  # @param [Hash] opts the optional parameters
119
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
115
120
  # @option opts [Array<String>] :fields A list of fields to include in the response.
116
121
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
117
122
  # @return [NpmNpmDistributionResponse]
@@ -127,6 +132,7 @@ describe 'DistributionsNpmApi' do
127
132
  # @param npm_npm_distribution_href
128
133
  # @param set_label
129
134
  # @param [Hash] opts the optional parameters
135
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
130
136
  # @return [SetLabelResponse]
131
137
  describe 'set_label test' do
132
138
  it 'should work' do
@@ -140,6 +146,7 @@ describe 'DistributionsNpmApi' do
140
146
  # @param npm_npm_distribution_href
141
147
  # @param unset_label
142
148
  # @param [Hash] opts the optional parameters
149
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
143
150
  # @return [UnsetLabelResponse]
144
151
  describe 'unset_label test' do
145
152
  it 'should work' do
@@ -149,11 +156,12 @@ describe 'DistributionsNpmApi' do
149
156
 
150
157
  # unit tests for update
151
158
  # Update a npm distribution
152
- # Trigger an asynchronous update task
159
+ # Update the entity and trigger an asynchronous task if necessary
153
160
  # @param npm_npm_distribution_href
154
161
  # @param npm_npm_distribution
155
162
  # @param [Hash] opts the optional parameters
156
- # @return [AsyncOperationResponse]
163
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
164
+ # @return [NpmNpmDistributionResponse]
157
165
  describe 'update test' do
158
166
  it 'should work' do
159
167
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -37,6 +37,7 @@ describe 'RemotesNpmApi' do
37
37
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
38
38
  # @param npm_npm_remote
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
41
  # @return [NpmNpmRemoteResponse]
41
42
  describe 'create test' do
42
43
  it 'should work' do
@@ -49,6 +50,7 @@ describe 'RemotesNpmApi' do
49
50
  # Trigger an asynchronous delete task
50
51
  # @param npm_npm_remote_href
51
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
52
54
  # @return [AsyncOperationResponse]
53
55
  describe 'delete test' do
54
56
  it 'should work' do
@@ -60,6 +62,7 @@ describe 'RemotesNpmApi' do
60
62
  # List npm remotes
61
63
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
62
64
  # @param [Hash] opts the optional parameters
65
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
63
66
  # @option opts [Integer] :limit Number of results to return per page.
64
67
  # @option opts [String] :name Filter results where name matches value
65
68
  # @option opts [String] :name__contains Filter results where name contains value
@@ -95,11 +98,12 @@ describe 'RemotesNpmApi' do
95
98
 
96
99
  # unit tests for partial_update
97
100
  # Update a npm remote
98
- # Trigger an asynchronous partial update task
101
+ # Update the entity partially and trigger an asynchronous task if necessary
99
102
  # @param npm_npm_remote_href
100
103
  # @param patchednpm_npm_remote
101
104
  # @param [Hash] opts the optional parameters
102
- # @return [AsyncOperationResponse]
105
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
106
+ # @return [NpmNpmRemoteResponse]
103
107
  describe 'partial_update test' do
104
108
  it 'should work' do
105
109
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -111,6 +115,7 @@ describe 'RemotesNpmApi' do
111
115
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
112
116
  # @param npm_npm_remote_href
113
117
  # @param [Hash] opts the optional parameters
118
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
114
119
  # @option opts [Array<String>] :fields A list of fields to include in the response.
115
120
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
116
121
  # @return [NpmNpmRemoteResponse]
@@ -126,6 +131,7 @@ describe 'RemotesNpmApi' do
126
131
  # @param npm_npm_remote_href
127
132
  # @param set_label
128
133
  # @param [Hash] opts the optional parameters
134
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
129
135
  # @return [SetLabelResponse]
130
136
  describe 'set_label test' do
131
137
  it 'should work' do
@@ -139,6 +145,7 @@ describe 'RemotesNpmApi' do
139
145
  # @param npm_npm_remote_href
140
146
  # @param unset_label
141
147
  # @param [Hash] opts the optional parameters
148
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
142
149
  # @return [UnsetLabelResponse]
143
150
  describe 'unset_label test' do
144
151
  it 'should work' do
@@ -148,11 +155,12 @@ describe 'RemotesNpmApi' do
148
155
 
149
156
  # unit tests for update
150
157
  # Update a npm remote
151
- # Trigger an asynchronous update task
158
+ # Update the entity and trigger an asynchronous task if necessary
152
159
  # @param npm_npm_remote_href
153
160
  # @param npm_npm_remote
154
161
  # @param [Hash] opts the optional parameters
155
- # @return [AsyncOperationResponse]
162
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
163
+ # @return [NpmNpmRemoteResponse]
156
164
  describe 'update test' do
157
165
  it 'should work' do
158
166
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -37,6 +37,7 @@ describe 'RepositoriesNpmApi' do
37
37
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
38
38
  # @param npm_npm_repository
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
41
  # @return [NpmNpmRepositoryResponse]
41
42
  describe 'create test' do
42
43
  it 'should work' do
@@ -49,6 +50,7 @@ describe 'RepositoriesNpmApi' do
49
50
  # Trigger an asynchronous delete task
50
51
  # @param npm_npm_repository_href
51
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
52
54
  # @return [AsyncOperationResponse]
53
55
  describe 'delete test' do
54
56
  it 'should work' do
@@ -60,6 +62,7 @@ describe 'RepositoriesNpmApi' do
60
62
  # List npm repositorys
61
63
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
62
64
  # @param [Hash] opts the optional parameters
65
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
63
66
  # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
64
67
  # @option opts [Integer] :limit Number of results to return per page.
65
68
  # @option opts [String] :name Filter results where name matches value
@@ -103,6 +106,7 @@ describe 'RepositoriesNpmApi' do
103
106
  # @param npm_npm_repository_href
104
107
  # @param repository_add_remove_content
105
108
  # @param [Hash] opts the optional parameters
109
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
106
110
  # @return [AsyncOperationResponse]
107
111
  describe 'modify test' do
108
112
  it 'should work' do
@@ -112,11 +116,12 @@ describe 'RepositoriesNpmApi' do
112
116
 
113
117
  # unit tests for partial_update
114
118
  # Update a npm repository
115
- # Trigger an asynchronous partial update task
119
+ # Update the entity partially and trigger an asynchronous task if necessary
116
120
  # @param npm_npm_repository_href
117
121
  # @param patchednpm_npm_repository
118
122
  # @param [Hash] opts the optional parameters
119
- # @return [AsyncOperationResponse]
123
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
124
+ # @return [NpmNpmRepositoryResponse]
120
125
  describe 'partial_update test' do
121
126
  it 'should work' do
122
127
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -128,6 +133,7 @@ describe 'RepositoriesNpmApi' do
128
133
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
129
134
  # @param npm_npm_repository_href
130
135
  # @param [Hash] opts the optional parameters
136
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
131
137
  # @option opts [Array<String>] :fields A list of fields to include in the response.
132
138
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
133
139
  # @return [NpmNpmRepositoryResponse]
@@ -143,6 +149,7 @@ describe 'RepositoriesNpmApi' do
143
149
  # @param npm_npm_repository_href
144
150
  # @param set_label
145
151
  # @param [Hash] opts the optional parameters
152
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
146
153
  # @return [SetLabelResponse]
147
154
  describe 'set_label test' do
148
155
  it 'should work' do
@@ -156,6 +163,7 @@ describe 'RepositoriesNpmApi' do
156
163
  # @param npm_npm_repository_href
157
164
  # @param repository_sync_url
158
165
  # @param [Hash] opts the optional parameters
166
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
159
167
  # @return [AsyncOperationResponse]
160
168
  describe 'sync test' do
161
169
  it 'should work' do
@@ -169,6 +177,7 @@ describe 'RepositoriesNpmApi' do
169
177
  # @param npm_npm_repository_href
170
178
  # @param unset_label
171
179
  # @param [Hash] opts the optional parameters
180
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
172
181
  # @return [UnsetLabelResponse]
173
182
  describe 'unset_label test' do
174
183
  it 'should work' do
@@ -178,11 +187,12 @@ describe 'RepositoriesNpmApi' do
178
187
 
179
188
  # unit tests for update
180
189
  # Update a npm repository
181
- # Trigger an asynchronous update task
190
+ # Update the entity and trigger an asynchronous task if necessary
182
191
  # @param npm_npm_repository_href
183
192
  # @param npm_npm_repository
184
193
  # @param [Hash] opts the optional parameters
185
- # @return [AsyncOperationResponse]
194
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
195
+ # @return [NpmNpmRepositoryResponse]
186
196
  describe 'update test' do
187
197
  it 'should work' do
188
198
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -37,6 +37,7 @@ describe 'RepositoriesNpmVersionsApi' do
37
37
  # Trigger an asynchronous task to delete a repository version.
38
38
  # @param npm_npm_repository_version_href
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
41
  # @return [AsyncOperationResponse]
41
42
  describe 'delete test' do
42
43
  it 'should work' do
@@ -49,6 +50,7 @@ describe 'RepositoriesNpmVersionsApi' do
49
50
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
50
51
  # @param npm_npm_repository_href
51
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
52
54
  # @option opts [String] :content Content Unit referenced by HREF/PRN
53
55
  # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
54
56
  # @option opts [Integer] :limit Number of results to return per page.
@@ -59,7 +61,7 @@ describe 'RepositoriesNpmVersionsApi' do
59
61
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
60
62
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
61
63
  # @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;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
64
+ # @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;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;content_ids&#x60; - Content ids * &#x60;-content_ids&#x60; - Content ids (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
63
65
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
64
66
  # @option opts [Time] :pulp_created Filter results where pulp_created matches value
65
67
  # @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
@@ -84,6 +86,7 @@ describe 'RepositoriesNpmVersionsApi' do
84
86
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
85
87
  # @param npm_npm_repository_version_href
86
88
  # @param [Hash] opts the optional parameters
89
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
87
90
  # @option opts [Array<String>] :fields A list of fields to include in the response.
88
91
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
89
92
  # @return [RepositoryVersionResponse]
@@ -98,6 +101,7 @@ describe 'RepositoriesNpmVersionsApi' do
98
101
  # @param npm_npm_repository_version_href
99
102
  # @param repair
100
103
  # @param [Hash] opts the optional parameters
104
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
101
105
  # @return [AsyncOperationResponse]
102
106
  describe 'repair test' do
103
107
  it 'should work' do
@@ -57,6 +57,12 @@ describe PulpNpmClient::NpmPackageResponse do
57
57
  end
58
58
  end
59
59
 
60
+ describe 'test attribute "vuln_report"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
60
66
  describe 'test attribute "artifact"' do
61
67
  it 'should work' do
62
68
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -75,4 +75,10 @@ describe PulpNpmClient::RepositoryVersionResponse do
75
75
  end
76
76
  end
77
77
 
78
+ describe 'test attribute "vuln_report"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
78
84
  end
metadata CHANGED
@@ -1,35 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_npm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.5.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-04-14 00:00:00.000000000 Z
11
+ date: 2026-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: faraday-net_http
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '2.0'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '3.1'
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '2.0'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '3.1'
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: faraday
35
15
  requirement: !ruby/object:Gem::Requirement
@@ -235,36 +215,36 @@ signing_key:
235
215
  specification_version: 4
236
216
  summary: Pulp 3 API Ruby Gem
237
217
  test_files:
238
- - spec/api/repositories_npm_versions_api_spec.rb
239
- - spec/api/remotes_npm_api_spec.rb
240
218
  - spec/api/content_packages_api_spec.rb
241
- - spec/api/distributions_npm_api_spec.rb
242
219
  - spec/api/repositories_npm_api_spec.rb
243
- - spec/models/repair_spec.rb
220
+ - spec/api/remotes_npm_api_spec.rb
221
+ - spec/api/repositories_npm_versions_api_spec.rb
222
+ - spec/api/distributions_npm_api_spec.rb
223
+ - spec/models/unset_label_response_spec.rb
224
+ - spec/models/repository_version_response_spec.rb
244
225
  - 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
247
- - spec/models/npm_package_response_spec.rb
248
- - spec/models/npm_npm_repository_spec.rb
249
- - spec/models/repository_add_remove_content_spec.rb
226
+ - spec/models/patchednpm_npm_repository_spec.rb
227
+ - spec/models/paginated_repository_version_response_list_spec.rb
228
+ - spec/models/repair_spec.rb
229
+ - spec/models/async_operation_response_spec.rb
250
230
  - spec/models/npm_npm_repository_response_spec.rb
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
231
+ - spec/models/repository_add_remove_content_spec.rb
232
+ - spec/models/paginatednpm_npm_distribution_response_list_spec.rb
233
+ - spec/models/paginatednpm_package_response_list_spec.rb
254
234
  - spec/models/repository_sync_url_spec.rb
235
+ - spec/models/set_label_response_spec.rb
255
236
  - spec/models/unset_label_spec.rb
256
- - spec/models/patchednpm_npm_repository_spec.rb
257
- - spec/models/npm_npm_remote_spec.rb
258
- - spec/models/unset_label_response_spec.rb
259
- - spec/models/paginatednpm_npm_distribution_response_list_spec.rb
260
- - spec/models/repository_version_response_spec.rb
261
237
  - spec/models/npm_npm_distribution_spec.rb
262
- - spec/models/paginated_repository_version_response_list_spec.rb
238
+ - spec/models/npm_npm_remote_response_spec.rb
239
+ - spec/models/policy_enum_spec.rb
240
+ - spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
241
+ - spec/models/paginatednpm_npm_remote_response_list_spec.rb
263
242
  - 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
243
  - spec/models/content_summary_response_spec.rb
244
+ - spec/models/paginatednpm_npm_repository_response_list_spec.rb
245
+ - spec/models/npm_npm_remote_spec.rb
246
+ - spec/models/npm_npm_repository_spec.rb
247
+ - spec/models/npm_package_response_spec.rb
248
+ - spec/models/patchednpm_npm_distribution_spec.rb
268
249
  - spec/models/npm_npm_distribution_response_spec.rb
269
- - spec/models/async_operation_response_spec.rb
270
250
  - spec/spec_helper.rb