pulp_npm_client 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/NpmNpmDistribution.md +3 -1
- data/docs/NpmNpmDistributionResponse.md +3 -1
- data/docs/PatchednpmNpmDistribution.md +3 -1
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +16 -5
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +16 -5
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +1 -1
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +1 -1
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +1 -1
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +1 -1
- data/lib/pulp_npm_client/models/npm_package_response.rb +1 -1
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +16 -5
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +1 -1
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +1 -1
- data/lib/pulp_npm_client/version.rb +1 -1
- data/spec/models/npm_npm_distribution_response_spec.rb +6 -0
- data/spec/models/npm_npm_distribution_spec.rb +6 -0
- data/spec/models/patchednpm_npm_distribution_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3208b35e89a70541c887d5475b67268708f55274b2ec97acdc800ef8e062eca6
|
4
|
+
data.tar.gz: 727cce53de89a19d5b2f0f9cc8fb12857fc2cfd8361747b5a857bcc3cb565df6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fbbc122e140f627c455ebae677bb93418db9b8ceb422201a36223dc1caa2b3ab09eb49a030af8c88f109c2a0ed466653b7e550578170330eaaed898f8b8ee16
|
7
|
+
data.tar.gz: 02640ab3d836cd484ca7c79bcfcea7afb2c3a07bcf4a673795ec9b2026dcd82d0d86001f3eba6a6830a2bafd5f06e1cf57f5fcc8a15f09569d47d61442f35c55
|
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.
|
10
|
+
- Package version: 0.2.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.
|
28
|
+
gem install ./pulp_npm_client-0.2.0.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./pulp_npm_client-0.
|
31
|
+
(for development, run `gem install --dev ./pulp_npm_client-0.2.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.
|
37
|
+
gem 'pulp_npm_client', '~> 0.2.0'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
data/docs/NpmNpmDistribution.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
11
11
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
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<String, String>** | | [optional] |
|
17
17
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
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
|
|
@@ -10,6 +10,7 @@
|
|
10
10
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
11
11
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [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
|
|
@@ -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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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
|
|
@@ -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 =
|
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 =
|
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
|
|
@@ -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
|
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.
|
4
|
+
version: 0.2.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-
|
11
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday-net_http
|