pulp_npm_client 0.1.0a4 → 0.1.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 +4 -4
- data/README.md +24 -10
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentPackagesApi.md +126 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsNpmApi.md +362 -93
- data/docs/NpmNpmDistribution.md +18 -15
- data/docs/NpmNpmDistributionResponse.md +30 -21
- data/docs/NpmNpmRemote.md +48 -47
- data/docs/NpmNpmRemoteResponse.md +48 -43
- data/docs/NpmNpmRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/NpmNpmRepository.md +16 -15
- data/docs/NpmNpmRepositoryResponse.md +28 -23
- data/docs/NpmPackageResponse.md +22 -17
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatednpmNpmDistributionResponseList.md +14 -13
- data/docs/PaginatednpmNpmRemoteResponseList.md +14 -13
- data/docs/PaginatednpmNpmRepositoryResponseList.md +14 -13
- data/docs/PaginatednpmPackageResponseList.md +14 -13
- data/docs/PatchednpmNpmDistribution.md +18 -15
- data/docs/PatchednpmNpmRemote.md +48 -47
- data/docs/PatchednpmNpmRepository.md +16 -15
- data/docs/PolicyEnum.md +4 -5
- data/docs/RemotesNpmApi.md +364 -99
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesNpmApi.md +429 -110
- data/docs/RepositoriesNpmVersionsApi.md +156 -80
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -17
- data/docs/SetLabel.md +20 -0
- data/docs/SetLabelResponse.md +20 -0
- data/docs/UnsetLabel.md +18 -0
- data/docs/UnsetLabelResponse.md +20 -0
- data/lib/pulp_npm_client/api/content_packages_api.rb +72 -44
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +243 -47
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +247 -57
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +283 -55
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +71 -52
- data/lib/pulp_npm_client/api_client.rb +137 -102
- data/lib/pulp_npm_client/api_error.rb +2 -1
- data/lib/pulp_npm_client/configuration.rb +163 -22
- data/lib/pulp_npm_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_npm_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +51 -25
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +83 -27
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +61 -25
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +99 -41
- data/lib/pulp_npm_client/models/npm_npm_remote_response_hidden_fields_inner.rb +237 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +37 -25
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +59 -27
- data/lib/pulp_npm_client/models/npm_package_response.rb +58 -24
- data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +57 -27
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +67 -27
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +40 -26
- data/lib/pulp_npm_client/models/policy_enum.rb +8 -4
- data/lib/pulp_npm_client/models/repair.rb +30 -22
- data/lib/pulp_npm_client/models/repository_add_remove_content.rb +33 -25
- data/lib/pulp_npm_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_npm_client/models/repository_version_response.rb +53 -25
- data/lib/pulp_npm_client/models/set_label.rb +264 -0
- data/lib/pulp_npm_client/models/set_label_response.rb +255 -0
- data/lib/pulp_npm_client/models/unset_label.rb +252 -0
- data/lib/pulp_npm_client/models/unset_label_response.rb +252 -0
- data/lib/pulp_npm_client/version.rb +2 -2
- data/lib/pulp_npm_client.rb +6 -3
- data/pulp_npm_client.gemspec +10 -7
- data/spec/api/content_packages_api_spec.rb +22 -16
- data/spec/api/distributions_npm_api_spec.rb +51 -14
- data/spec/api/remotes_npm_api_spec.rb +54 -19
- data/spec/api/repositories_npm_api_spec.rb +60 -15
- data/spec/api/repositories_npm_versions_api_spec.rb +23 -19
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/npm_npm_distribution_response_spec.rb +38 -19
- data/spec/models/npm_npm_distribution_spec.rb +17 -16
- data/spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb +42 -0
- data/spec/models/npm_npm_remote_response_spec.rb +42 -35
- data/spec/models/npm_npm_remote_spec.rb +27 -32
- data/spec/models/npm_npm_repository_response_spec.rb +27 -20
- data/spec/models/npm_npm_repository_spec.rb +11 -16
- data/spec/models/npm_package_response_spec.rb +24 -17
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_npm_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_npm_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_npm_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_package_response_list_spec.rb +10 -15
- data/spec/models/patchednpm_npm_distribution_spec.rb +17 -16
- data/spec/models/patchednpm_npm_remote_spec.rb +27 -32
- data/spec/models/patchednpm_npm_repository_spec.rb +11 -16
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- data/spec/models/repository_version_response_spec.rb +24 -17
- data/spec/models/set_label_response_spec.rb +42 -0
- data/spec/models/set_label_spec.rb +42 -0
- data/spec/models/unset_label_response_spec.rb +42 -0
- data/spec/models/unset_label_spec.rb +36 -0
- data/spec/spec_helper.rb +1 -1
- metadata +94 -59
- data/docs/NpmPackage.md +0 -29
- data/docs/PulpNpmPackagesApi.md +0 -60
- data/git_push.sh +0 -58
- data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +0 -86
- data/lib/pulp_npm_client/models/npm_package.rb +0 -337
- data/spec/api/pulp_npm_packages_api_spec.rb +0 -48
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/npm_package_spec.rb +0 -77
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpNpmClient::UnsetLabel
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpNpmClient::UnsetLabel do
|
|
21
|
+
let(:instance) { PulpNpmClient::UnsetLabel.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of UnsetLabel' do
|
|
24
|
+
it 'should create an instance of UnsetLabel' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpNpmClient::UnsetLabel)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "key"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,75 +1,103 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_npm_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-02-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: faraday
|
|
14
|
+
name: faraday-net_http
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0
|
|
19
|
+
version: '2.0'
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 1
|
|
22
|
+
version: '3.1'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
|
-
- - "
|
|
27
|
+
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '0
|
|
29
|
+
version: '2.0'
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 1
|
|
32
|
+
version: '3.1'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
34
|
+
name: faraday
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version:
|
|
40
|
-
- - "
|
|
39
|
+
version: 1.0.1
|
|
40
|
+
- - "<"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '2.
|
|
42
|
+
version: '2.9'
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
47
|
- - ">="
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version:
|
|
50
|
-
- - "
|
|
49
|
+
version: 1.0.1
|
|
50
|
+
- - "<"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '2.
|
|
52
|
+
version: '2.9'
|
|
53
53
|
- !ruby/object:Gem::Dependency
|
|
54
|
-
name:
|
|
54
|
+
name: faraday-multipart
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
57
|
- - ">="
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version:
|
|
60
|
-
|
|
59
|
+
version: '0'
|
|
60
|
+
type: :runtime
|
|
61
|
+
prerelease: false
|
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
- - ">="
|
|
61
65
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '
|
|
63
|
-
|
|
66
|
+
version: '0'
|
|
67
|
+
- !ruby/object:Gem::Dependency
|
|
68
|
+
name: marcel
|
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
|
70
|
+
requirements:
|
|
71
|
+
- - ">="
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: '0'
|
|
74
|
+
type: :runtime
|
|
64
75
|
prerelease: false
|
|
65
76
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
77
|
requirements:
|
|
78
|
+
- - ">="
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '0'
|
|
81
|
+
- !ruby/object:Gem::Dependency
|
|
82
|
+
name: rspec
|
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
|
84
|
+
requirements:
|
|
85
|
+
- - "~>"
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: '3.6'
|
|
67
88
|
- - ">="
|
|
68
89
|
- !ruby/object:Gem::Version
|
|
69
90
|
version: 3.6.0
|
|
91
|
+
type: :development
|
|
92
|
+
prerelease: false
|
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
70
95
|
- - "~>"
|
|
71
96
|
- !ruby/object:Gem::Version
|
|
72
97
|
version: '3.6'
|
|
98
|
+
- - ">="
|
|
99
|
+
- !ruby/object:Gem::Version
|
|
100
|
+
version: 3.6.0
|
|
73
101
|
description: Fetch, Upload, Organize, and Distribute Software Packages
|
|
74
102
|
email:
|
|
75
103
|
- pulp-list@redhat.com
|
|
@@ -88,9 +116,9 @@ files:
|
|
|
88
116
|
- docs/NpmNpmDistributionResponse.md
|
|
89
117
|
- docs/NpmNpmRemote.md
|
|
90
118
|
- docs/NpmNpmRemoteResponse.md
|
|
119
|
+
- docs/NpmNpmRemoteResponseHiddenFieldsInner.md
|
|
91
120
|
- docs/NpmNpmRepository.md
|
|
92
121
|
- docs/NpmNpmRepositoryResponse.md
|
|
93
|
-
- docs/NpmPackage.md
|
|
94
122
|
- docs/NpmPackageResponse.md
|
|
95
123
|
- docs/PaginatedRepositoryVersionResponseList.md
|
|
96
124
|
- docs/PaginatednpmNpmDistributionResponseList.md
|
|
@@ -101,7 +129,6 @@ files:
|
|
|
101
129
|
- docs/PatchednpmNpmRemote.md
|
|
102
130
|
- docs/PatchednpmNpmRepository.md
|
|
103
131
|
- docs/PolicyEnum.md
|
|
104
|
-
- docs/PulpNpmPackagesApi.md
|
|
105
132
|
- docs/RemotesNpmApi.md
|
|
106
133
|
- docs/Repair.md
|
|
107
134
|
- docs/RepositoriesNpmApi.md
|
|
@@ -109,11 +136,13 @@ files:
|
|
|
109
136
|
- docs/RepositoryAddRemoveContent.md
|
|
110
137
|
- docs/RepositorySyncURL.md
|
|
111
138
|
- docs/RepositoryVersionResponse.md
|
|
112
|
-
-
|
|
139
|
+
- docs/SetLabel.md
|
|
140
|
+
- docs/SetLabelResponse.md
|
|
141
|
+
- docs/UnsetLabel.md
|
|
142
|
+
- docs/UnsetLabelResponse.md
|
|
113
143
|
- lib/pulp_npm_client.rb
|
|
114
144
|
- lib/pulp_npm_client/api/content_packages_api.rb
|
|
115
145
|
- lib/pulp_npm_client/api/distributions_npm_api.rb
|
|
116
|
-
- lib/pulp_npm_client/api/pulp_npm_packages_api.rb
|
|
117
146
|
- lib/pulp_npm_client/api/remotes_npm_api.rb
|
|
118
147
|
- lib/pulp_npm_client/api/repositories_npm_api.rb
|
|
119
148
|
- lib/pulp_npm_client/api/repositories_npm_versions_api.rb
|
|
@@ -126,9 +155,9 @@ files:
|
|
|
126
155
|
- lib/pulp_npm_client/models/npm_npm_distribution_response.rb
|
|
127
156
|
- lib/pulp_npm_client/models/npm_npm_remote.rb
|
|
128
157
|
- lib/pulp_npm_client/models/npm_npm_remote_response.rb
|
|
158
|
+
- lib/pulp_npm_client/models/npm_npm_remote_response_hidden_fields_inner.rb
|
|
129
159
|
- lib/pulp_npm_client/models/npm_npm_repository.rb
|
|
130
160
|
- lib/pulp_npm_client/models/npm_npm_repository_response.rb
|
|
131
|
-
- lib/pulp_npm_client/models/npm_package.rb
|
|
132
161
|
- lib/pulp_npm_client/models/npm_package_response.rb
|
|
133
162
|
- lib/pulp_npm_client/models/paginated_repository_version_response_list.rb
|
|
134
163
|
- lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb
|
|
@@ -143,26 +172,27 @@ files:
|
|
|
143
172
|
- lib/pulp_npm_client/models/repository_add_remove_content.rb
|
|
144
173
|
- lib/pulp_npm_client/models/repository_sync_url.rb
|
|
145
174
|
- lib/pulp_npm_client/models/repository_version_response.rb
|
|
175
|
+
- lib/pulp_npm_client/models/set_label.rb
|
|
176
|
+
- lib/pulp_npm_client/models/set_label_response.rb
|
|
177
|
+
- lib/pulp_npm_client/models/unset_label.rb
|
|
178
|
+
- lib/pulp_npm_client/models/unset_label_response.rb
|
|
146
179
|
- lib/pulp_npm_client/version.rb
|
|
147
180
|
- pulp_npm_client.gemspec
|
|
148
181
|
- spec/api/content_packages_api_spec.rb
|
|
149
182
|
- spec/api/distributions_npm_api_spec.rb
|
|
150
|
-
- spec/api/pulp_npm_packages_api_spec.rb
|
|
151
183
|
- spec/api/remotes_npm_api_spec.rb
|
|
152
184
|
- spec/api/repositories_npm_api_spec.rb
|
|
153
185
|
- spec/api/repositories_npm_versions_api_spec.rb
|
|
154
|
-
- spec/api_client_spec.rb
|
|
155
|
-
- spec/configuration_spec.rb
|
|
156
186
|
- spec/models/async_operation_response_spec.rb
|
|
157
187
|
- spec/models/content_summary_response_spec.rb
|
|
158
188
|
- spec/models/npm_npm_distribution_response_spec.rb
|
|
159
189
|
- spec/models/npm_npm_distribution_spec.rb
|
|
190
|
+
- spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
|
|
160
191
|
- spec/models/npm_npm_remote_response_spec.rb
|
|
161
192
|
- spec/models/npm_npm_remote_spec.rb
|
|
162
193
|
- spec/models/npm_npm_repository_response_spec.rb
|
|
163
194
|
- spec/models/npm_npm_repository_spec.rb
|
|
164
195
|
- spec/models/npm_package_response_spec.rb
|
|
165
|
-
- spec/models/npm_package_spec.rb
|
|
166
196
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
167
197
|
- spec/models/paginatednpm_npm_distribution_response_list_spec.rb
|
|
168
198
|
- spec/models/paginatednpm_npm_remote_response_list_spec.rb
|
|
@@ -176,12 +206,16 @@ files:
|
|
|
176
206
|
- spec/models/repository_add_remove_content_spec.rb
|
|
177
207
|
- spec/models/repository_sync_url_spec.rb
|
|
178
208
|
- spec/models/repository_version_response_spec.rb
|
|
209
|
+
- spec/models/set_label_response_spec.rb
|
|
210
|
+
- spec/models/set_label_spec.rb
|
|
211
|
+
- spec/models/unset_label_response_spec.rb
|
|
212
|
+
- spec/models/unset_label_spec.rb
|
|
179
213
|
- spec/spec_helper.rb
|
|
180
|
-
homepage: https://
|
|
214
|
+
homepage: https://github.com/pulp/pulp_npm
|
|
181
215
|
licenses:
|
|
182
|
-
-
|
|
216
|
+
- GPLv2+
|
|
183
217
|
metadata: {}
|
|
184
|
-
post_install_message:
|
|
218
|
+
post_install_message:
|
|
185
219
|
rdoc_options: []
|
|
186
220
|
require_paths:
|
|
187
221
|
- lib
|
|
@@ -189,47 +223,48 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
189
223
|
requirements:
|
|
190
224
|
- - ">="
|
|
191
225
|
- !ruby/object:Gem::Version
|
|
192
|
-
version: '
|
|
226
|
+
version: '2.7'
|
|
193
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
228
|
requirements:
|
|
195
|
-
- - "
|
|
229
|
+
- - ">="
|
|
196
230
|
- !ruby/object:Gem::Version
|
|
197
|
-
version:
|
|
231
|
+
version: '0'
|
|
198
232
|
requirements: []
|
|
199
|
-
rubygems_version: 3.
|
|
200
|
-
signing_key:
|
|
233
|
+
rubygems_version: 3.4.20
|
|
234
|
+
signing_key:
|
|
201
235
|
specification_version: 4
|
|
202
236
|
summary: Pulp 3 API Ruby Gem
|
|
203
237
|
test_files:
|
|
238
|
+
- spec/api/repositories_npm_api_spec.rb
|
|
204
239
|
- spec/api/remotes_npm_api_spec.rb
|
|
205
|
-
- spec/api/pulp_npm_packages_api_spec.rb
|
|
206
|
-
- spec/api/distributions_npm_api_spec.rb
|
|
207
240
|
- spec/api/repositories_npm_versions_api_spec.rb
|
|
208
241
|
- spec/api/content_packages_api_spec.rb
|
|
209
|
-
- spec/api/
|
|
210
|
-
- spec/api_client_spec.rb
|
|
211
|
-
- spec/configuration_spec.rb
|
|
212
|
-
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
213
|
-
- spec/models/paginatednpm_package_response_list_spec.rb
|
|
214
|
-
- spec/models/paginatednpm_npm_repository_response_list_spec.rb
|
|
215
|
-
- spec/models/repair_spec.rb
|
|
216
|
-
- spec/models/npm_npm_remote_spec.rb
|
|
217
|
-
- spec/models/patchednpm_npm_remote_spec.rb
|
|
242
|
+
- spec/api/distributions_npm_api_spec.rb
|
|
218
243
|
- spec/models/npm_npm_repository_response_spec.rb
|
|
244
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
219
245
|
- spec/models/patchednpm_npm_distribution_spec.rb
|
|
220
|
-
- spec/models/
|
|
246
|
+
- spec/models/repository_sync_url_spec.rb
|
|
247
|
+
- spec/models/set_label_response_spec.rb
|
|
221
248
|
- spec/models/repository_add_remove_content_spec.rb
|
|
222
|
-
- spec/models/
|
|
223
|
-
- spec/models/
|
|
224
|
-
- spec/models/
|
|
225
|
-
- spec/models/npm_npm_distribution_spec.rb
|
|
249
|
+
- spec/models/npm_npm_distribution_response_spec.rb
|
|
250
|
+
- spec/models/paginatednpm_npm_repository_response_list_spec.rb
|
|
251
|
+
- spec/models/unset_label_spec.rb
|
|
226
252
|
- spec/models/async_operation_response_spec.rb
|
|
227
|
-
- spec/models/repository_sync_url_spec.rb
|
|
228
253
|
- spec/models/paginatednpm_npm_distribution_response_list_spec.rb
|
|
254
|
+
- spec/models/repair_spec.rb
|
|
255
|
+
- spec/models/npm_npm_distribution_spec.rb
|
|
229
256
|
- spec/models/npm_package_response_spec.rb
|
|
257
|
+
- spec/models/paginatednpm_npm_remote_response_list_spec.rb
|
|
258
|
+
- spec/models/npm_npm_repository_spec.rb
|
|
259
|
+
- spec/models/npm_npm_remote_spec.rb
|
|
230
260
|
- spec/models/npm_npm_remote_response_spec.rb
|
|
261
|
+
- spec/models/unset_label_response_spec.rb
|
|
262
|
+
- spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
|
|
263
|
+
- spec/models/policy_enum_spec.rb
|
|
231
264
|
- spec/models/repository_version_response_spec.rb
|
|
232
|
-
- spec/models/
|
|
233
|
-
- spec/models/
|
|
234
|
-
- spec/models/
|
|
265
|
+
- spec/models/content_summary_response_spec.rb
|
|
266
|
+
- spec/models/set_label_spec.rb
|
|
267
|
+
- spec/models/paginatednpm_package_response_list_spec.rb
|
|
268
|
+
- spec/models/patchednpm_npm_repository_spec.rb
|
|
269
|
+
- spec/models/patchednpm_npm_remote_spec.rb
|
|
235
270
|
- spec/spec_helper.rb
|
data/docs/NpmPackage.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# PulpNpmClient::NpmPackage
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**artifact** | **String** | Artifact file representing the physical content | [optional]
|
|
8
|
-
**relative_path** | **String** | |
|
|
9
|
-
**file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
|
10
|
-
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
|
11
|
-
**upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
|
12
|
-
**name** | **String** | |
|
|
13
|
-
**version** | **String** | |
|
|
14
|
-
|
|
15
|
-
## Code Sample
|
|
16
|
-
|
|
17
|
-
```ruby
|
|
18
|
-
require 'PulpNpmClient'
|
|
19
|
-
|
|
20
|
-
instance = PulpNpmClient::NpmPackage.new(artifact: null,
|
|
21
|
-
relative_path: null,
|
|
22
|
-
file: null,
|
|
23
|
-
repository: null,
|
|
24
|
-
upload: null,
|
|
25
|
-
name: null,
|
|
26
|
-
version: null)
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
|
data/docs/PulpNpmPackagesApi.md
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# PulpNpmClient::PulpNpmPackagesApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://pulp*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**get**](PulpNpmPackagesApi.md#get) | **GET** /pulp_npm/packages/{name}/ |
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## get
|
|
12
|
-
|
|
13
|
-
> get(name, opts)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Return a published package.
|
|
18
|
-
|
|
19
|
-
### Example
|
|
20
|
-
|
|
21
|
-
```ruby
|
|
22
|
-
# load the gem
|
|
23
|
-
require 'pulp_npm_client'
|
|
24
|
-
|
|
25
|
-
api_instance = PulpNpmClient::PulpNpmPackagesApi.new
|
|
26
|
-
name = 'name_example' # String |
|
|
27
|
-
opts = {
|
|
28
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
29
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
begin
|
|
33
|
-
api_instance.get(name, opts)
|
|
34
|
-
rescue PulpNpmClient::ApiError => e
|
|
35
|
-
puts "Exception when calling PulpNpmPackagesApi->get: #{e}"
|
|
36
|
-
end
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Parameters
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Name | Type | Description | Notes
|
|
43
|
-
------------- | ------------- | ------------- | -------------
|
|
44
|
-
**name** | **String**| |
|
|
45
|
-
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
46
|
-
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
47
|
-
|
|
48
|
-
### Return type
|
|
49
|
-
|
|
50
|
-
nil (empty response body)
|
|
51
|
-
|
|
52
|
-
### Authorization
|
|
53
|
-
|
|
54
|
-
No authorization required
|
|
55
|
-
|
|
56
|
-
### HTTP request headers
|
|
57
|
-
|
|
58
|
-
- **Content-Type**: Not defined
|
|
59
|
-
- **Accept**: Not defined
|
|
60
|
-
|
data/git_push.sh
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
-
#
|
|
4
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
|
5
|
-
|
|
6
|
-
git_user_id=$1
|
|
7
|
-
git_repo_id=$2
|
|
8
|
-
release_note=$3
|
|
9
|
-
git_host=$4
|
|
10
|
-
|
|
11
|
-
if [ "$git_host" = "" ]; then
|
|
12
|
-
git_host="github.com"
|
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
-
fi
|
|
15
|
-
|
|
16
|
-
if [ "$git_user_id" = "" ]; then
|
|
17
|
-
git_user_id="GIT_USER_ID"
|
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
|
-
if [ "$git_repo_id" = "" ]; then
|
|
22
|
-
git_repo_id="GIT_REPO_ID"
|
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
-
fi
|
|
25
|
-
|
|
26
|
-
if [ "$release_note" = "" ]; then
|
|
27
|
-
release_note="Minor update"
|
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
# Initialize the local directory as a Git repository
|
|
32
|
-
git init
|
|
33
|
-
|
|
34
|
-
# Adds the files in the local repository and stages them for commit.
|
|
35
|
-
git add .
|
|
36
|
-
|
|
37
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
-
git commit -m "$release_note"
|
|
39
|
-
|
|
40
|
-
# Sets the new remote
|
|
41
|
-
git_remote=`git remote`
|
|
42
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
-
|
|
44
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
-
else
|
|
48
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
fi
|
|
52
|
-
|
|
53
|
-
git pull origin master
|
|
54
|
-
|
|
55
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
-
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
-
git push origin master 2>&1 | grep -v 'To https'
|
|
58
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
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 'cgi'
|
|
14
|
-
|
|
15
|
-
module PulpNpmClient
|
|
16
|
-
class PulpNpmPackagesApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
# Return a published package.
|
|
23
|
-
# @param name [String]
|
|
24
|
-
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
26
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
27
|
-
# @return [nil]
|
|
28
|
-
def get(name, opts = {})
|
|
29
|
-
get_with_http_info(name, opts)
|
|
30
|
-
nil
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Return a published package.
|
|
34
|
-
# @param name [String]
|
|
35
|
-
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
37
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
38
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
39
|
-
def get_with_http_info(name, opts = {})
|
|
40
|
-
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API: PulpNpmPackagesApi.get ...'
|
|
42
|
-
end
|
|
43
|
-
# verify the required parameter 'name' is set
|
|
44
|
-
if @api_client.config.client_side_validation && name.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PulpNpmPackagesApi.get"
|
|
46
|
-
end
|
|
47
|
-
# resource path
|
|
48
|
-
local_var_path = '/pulp_npm/packages/{name}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/'))
|
|
49
|
-
|
|
50
|
-
# query parameters
|
|
51
|
-
query_params = opts[:query_params] || {}
|
|
52
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
53
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
54
|
-
|
|
55
|
-
# header parameters
|
|
56
|
-
header_params = opts[:header_params] || {}
|
|
57
|
-
|
|
58
|
-
# form parameters
|
|
59
|
-
form_params = opts[:form_params] || {}
|
|
60
|
-
|
|
61
|
-
# http body (model)
|
|
62
|
-
post_body = opts[:body]
|
|
63
|
-
|
|
64
|
-
# return_type
|
|
65
|
-
return_type = opts[:return_type]
|
|
66
|
-
|
|
67
|
-
# auth_names
|
|
68
|
-
auth_names = opts[:auth_names] || []
|
|
69
|
-
|
|
70
|
-
new_options = opts.merge(
|
|
71
|
-
:header_params => header_params,
|
|
72
|
-
:query_params => query_params,
|
|
73
|
-
:form_params => form_params,
|
|
74
|
-
:body => post_body,
|
|
75
|
-
:auth_names => auth_names,
|
|
76
|
-
:return_type => return_type
|
|
77
|
-
)
|
|
78
|
-
|
|
79
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
80
|
-
if @api_client.config.debugging
|
|
81
|
-
@api_client.config.logger.debug "API called: PulpNpmPackagesApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
-
end
|
|
83
|
-
return data, status_code, headers
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
end
|