pulp_npm_client 0.1.0a4 → 0.1.0a5.dev1676862967
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulp_npm_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/ContentPackagesApi.md +8 -8
- data/docs/DistributionsNpmApi.md +18 -12
- data/docs/NpmNpmDistribution.md +1 -1
- data/docs/NpmNpmDistributionResponse.md +1 -1
- data/docs/NpmNpmRemote.md +1 -1
- data/docs/NpmNpmRemoteResponse.md +4 -2
- data/docs/NpmNpmRemoteResponseHiddenFields.md +19 -0
- data/docs/NpmNpmRepository.md +1 -1
- data/docs/NpmNpmRepositoryResponse.md +1 -1
- data/docs/PatchednpmNpmDistribution.md +1 -1
- data/docs/PatchednpmNpmRemote.md +1 -1
- data/docs/PatchednpmNpmRepository.md +1 -1
- data/docs/PulpNpmPackagesApi.md +4 -4
- data/docs/RemotesNpmApi.md +12 -12
- data/docs/RepositoriesNpmApi.md +28 -10
- data/docs/RepositoriesNpmVersionsApi.md +12 -12
- data/lib/pulp_npm_client/api/content_packages_api.rb +13 -13
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +26 -17
- data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +6 -6
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +17 -17
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +42 -15
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +17 -17
- data/lib/pulp_npm_client/api_client.rb +1 -1
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +4 -2
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +4 -2
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +4 -2
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +21 -7
- data/lib/pulp_npm_client/models/npm_npm_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +4 -2
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +4 -2
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +4 -2
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +4 -2
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +4 -2
- data/lib/pulp_npm_client/version.rb +1 -1
- data/lib/pulp_npm_client.rb +1 -0
- data/pulp_npm_client.gemspec +3 -3
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/distributions_npm_api_spec.rb +9 -6
- data/spec/api/pulp_npm_packages_api_spec.rb +2 -2
- data/spec/api/remotes_npm_api_spec.rb +6 -6
- data/spec/api/repositories_npm_api_spec.rb +14 -5
- data/spec/api/repositories_npm_versions_api_spec.rb +6 -6
- data/spec/models/npm_npm_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/npm_npm_remote_response_spec.rb +6 -0
- metadata +33 -30
- data/git_push.sh +0 -58
@@ -59,7 +59,7 @@ module PulpNpmClient
|
|
59
59
|
:'base_path' => :'String',
|
60
60
|
:'base_url' => :'String',
|
61
61
|
:'content_guard' => :'String',
|
62
|
-
:'pulp_labels' => :'
|
62
|
+
:'pulp_labels' => :'Hash<String, String>',
|
63
63
|
:'name' => :'String',
|
64
64
|
:'repository' => :'String'
|
65
65
|
}
|
@@ -109,7 +109,9 @@ module PulpNpmClient
|
|
109
109
|
end
|
110
110
|
|
111
111
|
if attributes.key?(:'pulp_labels')
|
112
|
-
|
112
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
113
|
+
self.pulp_labels = value
|
114
|
+
end
|
113
115
|
end
|
114
116
|
|
115
117
|
if attributes.key?(:'name')
|
@@ -118,7 +118,7 @@ module PulpNpmClient
|
|
118
118
|
:'proxy_password' => :'String',
|
119
119
|
:'username' => :'String',
|
120
120
|
:'password' => :'String',
|
121
|
-
:'pulp_labels' => :'
|
121
|
+
:'pulp_labels' => :'Hash<String, String>',
|
122
122
|
:'download_concurrency' => :'Integer',
|
123
123
|
:'max_retries' => :'Integer',
|
124
124
|
:'policy' => :'PolicyEnum',
|
@@ -212,7 +212,9 @@ module PulpNpmClient
|
|
212
212
|
end
|
213
213
|
|
214
214
|
if attributes.key?(:'pulp_labels')
|
215
|
-
|
215
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
216
|
+
self.pulp_labels = value
|
217
|
+
end
|
216
218
|
end
|
217
219
|
|
218
220
|
if attributes.key?(:'download_concurrency')
|
@@ -70,6 +70,9 @@ module PulpNpmClient
|
|
70
70
|
# Limits requests per second for each concurrent downloader
|
71
71
|
attr_accessor :rate_limit
|
72
72
|
|
73
|
+
# List of hidden (write only) fields
|
74
|
+
attr_accessor :hidden_fields
|
75
|
+
|
73
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
77
|
def self.attribute_map
|
75
78
|
{
|
@@ -91,7 +94,8 @@ module PulpNpmClient
|
|
91
94
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
92
95
|
:'sock_read_timeout' => :'sock_read_timeout',
|
93
96
|
:'headers' => :'headers',
|
94
|
-
:'rate_limit' => :'rate_limit'
|
97
|
+
:'rate_limit' => :'rate_limit',
|
98
|
+
:'hidden_fields' => :'hidden_fields'
|
95
99
|
}
|
96
100
|
end
|
97
101
|
|
@@ -106,7 +110,7 @@ module PulpNpmClient
|
|
106
110
|
:'client_cert' => :'String',
|
107
111
|
:'tls_validation' => :'Boolean',
|
108
112
|
:'proxy_url' => :'String',
|
109
|
-
:'pulp_labels' => :'
|
113
|
+
:'pulp_labels' => :'Hash<String, String>',
|
110
114
|
:'pulp_last_updated' => :'DateTime',
|
111
115
|
:'download_concurrency' => :'Integer',
|
112
116
|
:'max_retries' => :'Integer',
|
@@ -116,7 +120,8 @@ module PulpNpmClient
|
|
116
120
|
:'sock_connect_timeout' => :'Float',
|
117
121
|
:'sock_read_timeout' => :'Float',
|
118
122
|
:'headers' => :'Array<Object>',
|
119
|
-
:'rate_limit' => :'Integer'
|
123
|
+
:'rate_limit' => :'Integer',
|
124
|
+
:'hidden_fields' => :'Array<NpmNpmRemoteResponseHiddenFields>'
|
120
125
|
}
|
121
126
|
end
|
122
127
|
|
@@ -132,7 +137,7 @@ module PulpNpmClient
|
|
132
137
|
:'connect_timeout',
|
133
138
|
:'sock_connect_timeout',
|
134
139
|
:'sock_read_timeout',
|
135
|
-
:'rate_limit'
|
140
|
+
:'rate_limit',
|
136
141
|
])
|
137
142
|
end
|
138
143
|
|
@@ -184,7 +189,9 @@ module PulpNpmClient
|
|
184
189
|
end
|
185
190
|
|
186
191
|
if attributes.key?(:'pulp_labels')
|
187
|
-
|
192
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
193
|
+
self.pulp_labels = value
|
194
|
+
end
|
188
195
|
end
|
189
196
|
|
190
197
|
if attributes.key?(:'pulp_last_updated')
|
@@ -228,6 +235,12 @@ module PulpNpmClient
|
|
228
235
|
if attributes.key?(:'rate_limit')
|
229
236
|
self.rate_limit = attributes[:'rate_limit']
|
230
237
|
end
|
238
|
+
|
239
|
+
if attributes.key?(:'hidden_fields')
|
240
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
241
|
+
self.hidden_fields = value
|
242
|
+
end
|
243
|
+
end
|
231
244
|
end
|
232
245
|
|
233
246
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -351,7 +364,8 @@ module PulpNpmClient
|
|
351
364
|
sock_connect_timeout == o.sock_connect_timeout &&
|
352
365
|
sock_read_timeout == o.sock_read_timeout &&
|
353
366
|
headers == o.headers &&
|
354
|
-
rate_limit == o.rate_limit
|
367
|
+
rate_limit == o.rate_limit &&
|
368
|
+
hidden_fields == o.hidden_fields
|
355
369
|
end
|
356
370
|
|
357
371
|
# @see the `==` method
|
@@ -363,7 +377,7 @@ module PulpNpmClient
|
|
363
377
|
# Calculates hash code according to all attributes.
|
364
378
|
# @return [Integer] Hash code
|
365
379
|
def hash
|
366
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
380
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
|
367
381
|
end
|
368
382
|
|
369
383
|
# Builds the object from hash
|
@@ -0,0 +1,215 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpNpmClient
|
16
|
+
class NpmNpmRemoteResponseHiddenFields
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
attr_accessor :is_set
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'name' => :'name',
|
25
|
+
:'is_set' => :'is_set'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.openapi_types
|
31
|
+
{
|
32
|
+
:'name' => :'String',
|
33
|
+
:'is_set' => :'Boolean'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# List of attributes with nullable: true
|
38
|
+
def self.openapi_nullable
|
39
|
+
Set.new([
|
40
|
+
])
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
if (!attributes.is_a?(Hash))
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpNpmClient::NpmNpmRemoteResponseHiddenFields` initialize method"
|
48
|
+
end
|
49
|
+
|
50
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpNpmClient::NpmNpmRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
|
+
end
|
55
|
+
h[k.to_sym] = v
|
56
|
+
}
|
57
|
+
|
58
|
+
if attributes.key?(:'name')
|
59
|
+
self.name = attributes[:'name']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.key?(:'is_set')
|
63
|
+
self.is_set = attributes[:'is_set']
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
name == o.name &&
|
86
|
+
is_set == o.is_set
|
87
|
+
end
|
88
|
+
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Integer] Hash code
|
97
|
+
def hash
|
98
|
+
[name, is_set].hash
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def self.build_from_hash(attributes)
|
105
|
+
new.build_from_hash(attributes)
|
106
|
+
end
|
107
|
+
|
108
|
+
# Builds the object from hash
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
# @return [Object] Returns the model itself
|
111
|
+
def build_from_hash(attributes)
|
112
|
+
return nil unless attributes.is_a?(Hash)
|
113
|
+
self.class.openapi_types.each_pair do |key, type|
|
114
|
+
if type =~ /\AArray<(.*)>/i
|
115
|
+
# check to ensure the input is an array given that the attribute
|
116
|
+
# is documented as an array but the input is not
|
117
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
|
+
end
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
|
+
end
|
124
|
+
|
125
|
+
self
|
126
|
+
end
|
127
|
+
|
128
|
+
# Deserializes the data based on type
|
129
|
+
# @param string type Data type
|
130
|
+
# @param string value Value to be deserialized
|
131
|
+
# @return [Object] Deserialized data
|
132
|
+
def _deserialize(type, value)
|
133
|
+
case type.to_sym
|
134
|
+
when :DateTime
|
135
|
+
DateTime.parse(value)
|
136
|
+
when :Date
|
137
|
+
Date.parse(value)
|
138
|
+
when :String
|
139
|
+
value.to_s
|
140
|
+
when :Integer
|
141
|
+
value.to_i
|
142
|
+
when :Float
|
143
|
+
value.to_f
|
144
|
+
when :Boolean
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
+
true
|
147
|
+
else
|
148
|
+
false
|
149
|
+
end
|
150
|
+
when :Object
|
151
|
+
# generic object (usually a Hash), return directly
|
152
|
+
value
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
159
|
+
{}.tap do |hash|
|
160
|
+
value.each do |k, v|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
else # model
|
165
|
+
PulpNpmClient.const_get(type).build_from_hash(value)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# Returns the string representation of the object
|
170
|
+
# @return [String] String presentation of the object
|
171
|
+
def to_s
|
172
|
+
to_hash.to_s
|
173
|
+
end
|
174
|
+
|
175
|
+
# to_body is an alias to to_hash (backward compatibility)
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_body
|
178
|
+
to_hash
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the object in the form of hash
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_hash
|
184
|
+
hash = {}
|
185
|
+
self.class.attribute_map.each_pair do |attr, param|
|
186
|
+
value = self.send(attr)
|
187
|
+
if value.nil?
|
188
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
189
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
190
|
+
end
|
191
|
+
|
192
|
+
hash[param] = _to_hash(value)
|
193
|
+
end
|
194
|
+
hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Outputs non-array value in the form of hash
|
198
|
+
# For object, use to_hash. Otherwise, just return the value
|
199
|
+
# @param [Object] value Any valid value
|
200
|
+
# @return [Hash] Returns the value in the form of hash
|
201
|
+
def _to_hash(value)
|
202
|
+
if value.is_a?(Array)
|
203
|
+
value.compact.map { |v| _to_hash(v) }
|
204
|
+
elsif value.is_a?(Hash)
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
+
end
|
208
|
+
elsif value.respond_to? :to_hash
|
209
|
+
value.to_hash
|
210
|
+
else
|
211
|
+
value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
@@ -43,7 +43,7 @@ module PulpNpmClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'pulp_labels' => :'
|
46
|
+
:'pulp_labels' => :'Hash<String, String>',
|
47
47
|
:'name' => :'String',
|
48
48
|
:'description' => :'String',
|
49
49
|
:'retain_repo_versions' => :'Integer',
|
@@ -76,7 +76,9 @@ module PulpNpmClient
|
|
76
76
|
}
|
77
77
|
|
78
78
|
if attributes.key?(:'pulp_labels')
|
79
|
-
|
79
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
80
|
+
self.pulp_labels = value
|
81
|
+
end
|
80
82
|
end
|
81
83
|
|
82
84
|
if attributes.key?(:'name')
|
@@ -59,7 +59,7 @@ module PulpNpmClient
|
|
59
59
|
:'pulp_href' => :'String',
|
60
60
|
:'pulp_created' => :'DateTime',
|
61
61
|
:'versions_href' => :'String',
|
62
|
-
:'pulp_labels' => :'
|
62
|
+
:'pulp_labels' => :'Hash<String, String>',
|
63
63
|
:'latest_version_href' => :'String',
|
64
64
|
:'name' => :'String',
|
65
65
|
:'description' => :'String',
|
@@ -105,7 +105,9 @@ module PulpNpmClient
|
|
105
105
|
end
|
106
106
|
|
107
107
|
if attributes.key?(:'pulp_labels')
|
108
|
-
|
108
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
109
|
+
self.pulp_labels = value
|
110
|
+
end
|
109
111
|
end
|
110
112
|
|
111
113
|
if attributes.key?(:'latest_version_href')
|
@@ -45,7 +45,7 @@ module PulpNpmClient
|
|
45
45
|
{
|
46
46
|
:'base_path' => :'String',
|
47
47
|
:'content_guard' => :'String',
|
48
|
-
:'pulp_labels' => :'
|
48
|
+
:'pulp_labels' => :'Hash<String, String>',
|
49
49
|
:'name' => :'String',
|
50
50
|
:'repository' => :'String'
|
51
51
|
}
|
@@ -83,7 +83,9 @@ module PulpNpmClient
|
|
83
83
|
end
|
84
84
|
|
85
85
|
if attributes.key?(:'pulp_labels')
|
86
|
-
|
86
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
87
|
+
self.pulp_labels = value
|
88
|
+
end
|
87
89
|
end
|
88
90
|
|
89
91
|
if attributes.key?(:'name')
|
@@ -118,7 +118,7 @@ module PulpNpmClient
|
|
118
118
|
:'proxy_password' => :'String',
|
119
119
|
:'username' => :'String',
|
120
120
|
:'password' => :'String',
|
121
|
-
:'pulp_labels' => :'
|
121
|
+
:'pulp_labels' => :'Hash<String, String>',
|
122
122
|
:'download_concurrency' => :'Integer',
|
123
123
|
:'max_retries' => :'Integer',
|
124
124
|
:'policy' => :'PolicyEnum',
|
@@ -212,7 +212,9 @@ module PulpNpmClient
|
|
212
212
|
end
|
213
213
|
|
214
214
|
if attributes.key?(:'pulp_labels')
|
215
|
-
|
215
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
216
|
+
self.pulp_labels = value
|
217
|
+
end
|
216
218
|
end
|
217
219
|
|
218
220
|
if attributes.key?(:'download_concurrency')
|
@@ -43,7 +43,7 @@ module PulpNpmClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'pulp_labels' => :'
|
46
|
+
:'pulp_labels' => :'Hash<String, String>',
|
47
47
|
:'name' => :'String',
|
48
48
|
:'description' => :'String',
|
49
49
|
:'retain_repo_versions' => :'Integer',
|
@@ -76,7 +76,9 @@ module PulpNpmClient
|
|
76
76
|
}
|
77
77
|
|
78
78
|
if attributes.key?(:'pulp_labels')
|
79
|
-
|
79
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
80
|
+
self.pulp_labels = value
|
81
|
+
end
|
80
82
|
end
|
81
83
|
|
82
84
|
if attributes.key?(:'name')
|
data/lib/pulp_npm_client.rb
CHANGED
@@ -23,6 +23,7 @@ require 'pulp_npm_client/models/npm_npm_distribution'
|
|
23
23
|
require 'pulp_npm_client/models/npm_npm_distribution_response'
|
24
24
|
require 'pulp_npm_client/models/npm_npm_remote'
|
25
25
|
require 'pulp_npm_client/models/npm_npm_remote_response'
|
26
|
+
require 'pulp_npm_client/models/npm_npm_remote_response_hidden_fields'
|
26
27
|
require 'pulp_npm_client/models/npm_npm_repository'
|
27
28
|
require 'pulp_npm_client/models/npm_npm_repository_response'
|
28
29
|
require 'pulp_npm_client/models/npm_package'
|
data/pulp_npm_client.gemspec
CHANGED
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
23
23
|
s.email = ["pulp-list@redhat.com"]
|
24
|
-
s.homepage = "https://
|
24
|
+
s.homepage = "https://github.com/pulp/pulp_npm"
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
26
26
|
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
27
|
-
s.license = '
|
27
|
+
s.license = 'GPLv2+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
@@ -62,8 +62,8 @@ describe 'ContentPackagesApi' do
|
|
62
62
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
63
63
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
64
64
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
65
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
66
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
65
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
66
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
67
67
|
# @return [PaginatednpmPackageResponseList]
|
68
68
|
describe 'list test' do
|
69
69
|
it 'should work' do
|
@@ -76,8 +76,8 @@ describe 'ContentPackagesApi' do
|
|
76
76
|
# 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.
|
77
77
|
# @param npm_package_href
|
78
78
|
# @param [Hash] opts the optional parameters
|
79
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
80
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
79
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
80
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
81
81
|
# @return [NpmPackageResponse]
|
82
82
|
describe 'read test' do
|
83
83
|
it 'should work' do
|
@@ -60,12 +60,12 @@ describe 'DistributionsNpmApi' do
|
|
60
60
|
# List npm distributions
|
61
61
|
# ViewSet for NPM Distributions.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
|
-
# @option opts [String] :base_path
|
63
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
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
67
|
# @option opts [Integer] :limit Number of results to return per page.
|
68
|
-
# @option opts [String] :name
|
68
|
+
# @option opts [String] :name Filter results where name matches value
|
69
69
|
# @option opts [String] :name__contains Filter results where name contains value
|
70
70
|
# @option opts [String] :name__icontains Filter results where name contains value
|
71
71
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -73,8 +73,11 @@ describe 'DistributionsNpmApi' do
|
|
73
73
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
74
74
|
# @option opts [Array<String>] :ordering Ordering
|
75
75
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
76
|
-
# @option opts [String] :
|
77
|
-
# @option opts [String] :
|
76
|
+
# @option opts [String] :repository Filter results where repository matches value
|
77
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
78
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
79
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
80
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
78
81
|
# @return [PaginatednpmNpmDistributionResponseList]
|
79
82
|
describe 'list test' do
|
80
83
|
it 'should work' do
|
@@ -100,8 +103,8 @@ describe 'DistributionsNpmApi' do
|
|
100
103
|
# ViewSet for NPM Distributions.
|
101
104
|
# @param npm_npm_distribution_href
|
102
105
|
# @param [Hash] opts the optional parameters
|
103
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
104
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
106
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
105
108
|
# @return [NpmNpmDistributionResponse]
|
106
109
|
describe 'read test' do
|
107
110
|
it 'should work' do
|
@@ -36,8 +36,8 @@ describe 'PulpNpmPackagesApi' do
|
|
36
36
|
# Return a published package.
|
37
37
|
# @param name
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
40
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
39
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
40
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
41
41
|
# @return [nil]
|
42
42
|
describe 'get test' do
|
43
43
|
it 'should work' do
|
@@ -61,7 +61,7 @@ describe 'RemotesNpmApi' do
|
|
61
61
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
-
# @option opts [String] :name
|
64
|
+
# @option opts [String] :name Filter results where name matches value
|
65
65
|
# @option opts [String] :name__contains Filter results where name contains value
|
66
66
|
# @option opts [String] :name__icontains Filter results where name contains value
|
67
67
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -69,14 +69,14 @@ describe 'RemotesNpmApi' do
|
|
69
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
70
|
# @option opts [Array<String>] :ordering Ordering
|
71
71
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
72
|
-
# @option opts [DateTime] :pulp_last_updated
|
72
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
73
73
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
74
74
|
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
75
75
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
76
76
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
77
77
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
78
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
79
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
78
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
79
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
80
80
|
# @return [PaginatednpmNpmRemoteResponseList]
|
81
81
|
describe 'list test' do
|
82
82
|
it 'should work' do
|
@@ -102,8 +102,8 @@ describe 'RemotesNpmApi' do
|
|
102
102
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
103
103
|
# @param npm_npm_remote_href
|
104
104
|
# @param [Hash] opts the optional parameters
|
105
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
106
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
105
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
106
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
107
107
|
# @return [NpmNpmRemoteResponse]
|
108
108
|
describe 'read test' do
|
109
109
|
it 'should work' do
|
@@ -61,7 +61,7 @@ describe 'RepositoriesNpmApi' do
|
|
61
61
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
-
# @option opts [String] :name
|
64
|
+
# @option opts [String] :name Filter results where name matches value
|
65
65
|
# @option opts [String] :name__contains Filter results where name contains value
|
66
66
|
# @option opts [String] :name__icontains Filter results where name contains value
|
67
67
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -69,8 +69,17 @@ describe 'RepositoriesNpmApi' do
|
|
69
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
70
|
# @option opts [Array<String>] :ordering Ordering
|
71
71
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
72
|
-
# @option opts [String] :
|
73
|
-
# @option opts [
|
72
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
73
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
74
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
75
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
76
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
77
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
78
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
79
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
80
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
81
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
82
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
74
83
|
# @return [PaginatednpmNpmRepositoryResponseList]
|
75
84
|
describe 'list test' do
|
76
85
|
it 'should work' do
|
@@ -109,8 +118,8 @@ describe 'RepositoriesNpmApi' do
|
|
109
118
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
110
119
|
# @param npm_npm_repository_href
|
111
120
|
# @param [Hash] opts the optional parameters
|
112
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
113
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
121
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
122
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
114
123
|
# @return [NpmNpmRepositoryResponse]
|
115
124
|
describe 'read test' do
|
116
125
|
it 'should work' do
|