pulp_npm_client 0.1.0a1.dev01595640515 → 0.1.0a1.dev01595986114
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_npm_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +42 -32
- data/docs/ContentPackagesApi.md +33 -36
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsNpmApi.md +113 -71
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/NpmNpmDistribution.md +1 -7
- data/docs/NpmNpmDistributionResponse.md +31 -0
- data/docs/NpmNpmRemote.md +4 -10
- data/docs/NpmNpmRemoteResponse.md +43 -0
- data/docs/NpmNpmRepository.md +4 -10
- data/docs/NpmNpmRepositoryResponse.md +29 -0
- data/docs/NpmPackage.md +5 -5
- data/docs/NpmPackageResponse.md +27 -0
- data/docs/PatchednpmNpmDistribution.md +25 -0
- data/docs/PatchednpmNpmRemote.md +37 -0
- data/docs/PatchednpmNpmRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RemotesNpmApi.md +133 -79
- data/docs/RepositoriesNpmApi.md +103 -85
- data/docs/RepositoriesNpmVersionsApi.md +95 -66
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/lib/pulp_npm_client.rb +12 -2
- data/lib/pulp_npm_client/api/content_packages_api.rb +34 -52
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +129 -78
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +163 -94
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +119 -104
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +119 -80
- data/lib/pulp_npm_client/api_client.rb +2 -2
- data/lib/pulp_npm_client/api_error.rb +2 -2
- data/lib/pulp_npm_client/configuration.rb +3 -3
- data/lib/pulp_npm_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_npm_client/models/content_summary.rb +9 -15
- data/lib/pulp_npm_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_npm_client/models/inline_response200.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +4 -85
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +290 -0
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +7 -199
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +368 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +18 -78
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +271 -0
- data/lib/pulp_npm_client/models/npm_package.rb +24 -79
- data/lib/pulp_npm_client/models/npm_package_response.rb +269 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +251 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +329 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +229 -0
- data/lib/pulp_npm_client/models/policy_enum.rb +37 -0
- data/lib/pulp_npm_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_npm_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_npm_client/models/repository_version.rb +7 -43
- data/lib/pulp_npm_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_npm_client/version.rb +3 -3
- data/pulp_npm_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +14 -17
- data/spec/api/distributions_npm_api_spec.rb +38 -23
- data/spec/api/remotes_npm_api_spec.rb +50 -29
- data/spec/api/repositories_npm_api_spec.rb +30 -27
- data/spec/api/repositories_npm_versions_api_spec.rb +38 -26
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/npm_npm_distribution_response_spec.rb +83 -0
- data/spec/models/npm_npm_distribution_spec.rb +2 -20
- data/spec/models/npm_npm_remote_response_spec.rb +119 -0
- data/spec/models/npm_npm_remote_spec.rb +2 -24
- data/spec/models/npm_npm_repository_response_spec.rb +77 -0
- data/spec/models/npm_npm_repository_spec.rb +5 -23
- data/spec/models/npm_package_response_spec.rb +71 -0
- data/spec/models/npm_package_spec.rb +6 -6
- data/spec/models/patchednpm_npm_distribution_spec.rb +65 -0
- data/spec/models/patchednpm_npm_remote_spec.rb +101 -0
- data/spec/models/patchednpm_npm_repository_spec.rb +53 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +44 -4
@@ -4,18 +4,18 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**delete**](RepositoriesNpmVersionsApi.md#delete) | **DELETE** {npm_repository_version_href} |
|
8
|
-
[**list**](RepositoriesNpmVersionsApi.md#list) | **GET** {
|
9
|
-
[**read**](RepositoriesNpmVersionsApi.md#read) | **GET** {npm_repository_version_href} |
|
7
|
+
[**delete**](RepositoriesNpmVersionsApi.md#delete) | **DELETE** {npm_repository_version_href} |
|
8
|
+
[**list**](RepositoriesNpmVersionsApi.md#list) | **GET** {npm_repository_version_href}versions/ |
|
9
|
+
[**read**](RepositoriesNpmVersionsApi.md#read) | **GET** {npm_repository_version_href} |
|
10
10
|
[**repair**](RepositoriesNpmVersionsApi.md#repair) | **POST** {npm_repository_version_href}repair/ |
|
11
11
|
|
12
12
|
|
13
13
|
|
14
14
|
## delete
|
15
15
|
|
16
|
-
> AsyncOperationResponse delete(npm_repository_version_href)
|
16
|
+
> AsyncOperationResponse delete(npm_repository_version_href, opts)
|
17
|
+
|
17
18
|
|
18
|
-
Delete a repository version
|
19
19
|
|
20
20
|
Trigger an asynchronous task to delete a repositroy version.
|
21
21
|
|
@@ -26,17 +26,33 @@ Trigger an asynchronous task to delete a repositroy version.
|
|
26
26
|
require 'pulp_npm_client'
|
27
27
|
# setup authorization
|
28
28
|
PulpNpmClient.configure do |config|
|
29
|
-
# Configure HTTP basic authorization:
|
29
|
+
# Configure HTTP basic authorization: basicAuth
|
30
30
|
config.username = 'YOUR USERNAME'
|
31
31
|
config.password = 'YOUR PASSWORD'
|
32
32
|
end
|
33
33
|
|
34
34
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
35
|
-
npm_repository_version_href = 'npm_repository_version_href_example' # String |
|
35
|
+
npm_repository_version_href = 'npm_repository_version_href_example' # String |
|
36
|
+
opts = {
|
37
|
+
content: 'content_example', # String | content
|
38
|
+
content__in: 'content__in_example', # String | content__in
|
39
|
+
number: 'number_example', # String | number
|
40
|
+
number__gt: 'number__gt_example', # String | number__gt
|
41
|
+
number__gte: 'number__gte_example', # String | number__gte
|
42
|
+
number__lt: 'number__lt_example', # String | number__lt
|
43
|
+
number__lte: 'number__lte_example', # String | number__lte
|
44
|
+
number__range: 'number__range_example', # String | number__range
|
45
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
46
|
+
pulp_created: 'pulp_created_example', # String | pulp_created
|
47
|
+
pulp_created__gt: 'pulp_created__gt_example', # String | pulp_created__gt
|
48
|
+
pulp_created__gte: 'pulp_created__gte_example', # String | pulp_created__gte
|
49
|
+
pulp_created__lt: 'pulp_created__lt_example', # String | pulp_created__lt
|
50
|
+
pulp_created__lte: 'pulp_created__lte_example', # String | pulp_created__lte
|
51
|
+
pulp_created__range: 'pulp_created__range_example' # String | pulp_created__range
|
52
|
+
}
|
36
53
|
|
37
54
|
begin
|
38
|
-
|
39
|
-
result = api_instance.delete(npm_repository_version_href)
|
55
|
+
result = api_instance.delete(npm_repository_version_href, opts)
|
40
56
|
p result
|
41
57
|
rescue PulpNpmClient::ApiError => e
|
42
58
|
puts "Exception when calling RepositoriesNpmVersionsApi->delete: #{e}"
|
@@ -48,7 +64,22 @@ end
|
|
48
64
|
|
49
65
|
Name | Type | Description | Notes
|
50
66
|
------------- | ------------- | ------------- | -------------
|
51
|
-
**npm_repository_version_href** | **String**|
|
67
|
+
**npm_repository_version_href** | **String**| |
|
68
|
+
**content** | **String**| content | [optional]
|
69
|
+
**content__in** | **String**| content__in | [optional]
|
70
|
+
**number** | **String**| number | [optional]
|
71
|
+
**number__gt** | **String**| number__gt | [optional]
|
72
|
+
**number__gte** | **String**| number__gte | [optional]
|
73
|
+
**number__lt** | **String**| number__lt | [optional]
|
74
|
+
**number__lte** | **String**| number__lte | [optional]
|
75
|
+
**number__range** | **String**| number__range | [optional]
|
76
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
77
|
+
**pulp_created** | **String**| pulp_created | [optional]
|
78
|
+
**pulp_created__gt** | **String**| pulp_created__gt | [optional]
|
79
|
+
**pulp_created__gte** | **String**| pulp_created__gte | [optional]
|
80
|
+
**pulp_created__lt** | **String**| pulp_created__lt | [optional]
|
81
|
+
**pulp_created__lte** | **String**| pulp_created__lte | [optional]
|
82
|
+
**pulp_created__range** | **String**| pulp_created__range | [optional]
|
52
83
|
|
53
84
|
### Return type
|
54
85
|
|
@@ -56,7 +87,7 @@ Name | Type | Description | Notes
|
|
56
87
|
|
57
88
|
### Authorization
|
58
89
|
|
59
|
-
[
|
90
|
+
[basicAuth](../README.md#basicAuth)
|
60
91
|
|
61
92
|
### HTTP request headers
|
62
93
|
|
@@ -66,9 +97,9 @@ Name | Type | Description | Notes
|
|
66
97
|
|
67
98
|
## list
|
68
99
|
|
69
|
-
> InlineResponse2004 list(
|
100
|
+
> InlineResponse2004 list(npm_repository_version_href, opts)
|
101
|
+
|
70
102
|
|
71
|
-
List repository versions
|
72
103
|
|
73
104
|
A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
74
105
|
|
@@ -79,38 +110,37 @@ A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
|
79
110
|
require 'pulp_npm_client'
|
80
111
|
# setup authorization
|
81
112
|
PulpNpmClient.configure do |config|
|
82
|
-
# Configure HTTP basic authorization:
|
113
|
+
# Configure HTTP basic authorization: basicAuth
|
83
114
|
config.username = 'YOUR USERNAME'
|
84
115
|
config.password = 'YOUR PASSWORD'
|
85
116
|
end
|
86
117
|
|
87
118
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
88
|
-
|
119
|
+
npm_repository_version_href = 'npm_repository_version_href_example' # String |
|
89
120
|
opts = {
|
90
|
-
|
91
|
-
|
92
|
-
number__lt: 3.4, # Float | Filter results where number is less than value
|
93
|
-
number__lte: 3.4, # Float | Filter results where number is less than or equal to value
|
94
|
-
number__gt: 3.4, # Float | Filter results where number is greater than value
|
95
|
-
number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
|
96
|
-
number__range: 3.4, # Float | Filter results where number is between two comma separated values
|
97
|
-
pulp_created__lt: 'pulp_created__lt_example', # String | Filter results where pulp_created is less than value
|
98
|
-
pulp_created__lte: 'pulp_created__lte_example', # String | Filter results where pulp_created is less than or equal to value
|
99
|
-
pulp_created__gt: 'pulp_created__gt_example', # String | Filter results where pulp_created is greater than value
|
100
|
-
pulp_created__gte: 'pulp_created__gte_example', # String | Filter results where pulp_created is greater than or equal to value
|
101
|
-
pulp_created__range: 'pulp_created__range_example', # String | Filter results where pulp_created is between two comma separated values
|
102
|
-
pulp_created: 'pulp_created_example', # String | ISO 8601 formatted dates are supported
|
103
|
-
content: 'content_example', # String | Content Unit referenced by HREF
|
104
|
-
content__in: 'content__in_example', # String | Content Unit referenced by HREF
|
121
|
+
content: 'content_example', # String | content
|
122
|
+
content__in: 'content__in_example', # String | content__in
|
105
123
|
limit: 56, # Integer | Number of results to return per page.
|
124
|
+
number: 'number_example', # String | number
|
125
|
+
number__gt: 'number__gt_example', # String | number__gt
|
126
|
+
number__gte: 'number__gte_example', # String | number__gte
|
127
|
+
number__lt: 'number__lt_example', # String | number__lt
|
128
|
+
number__lte: 'number__lte_example', # String | number__lte
|
129
|
+
number__range: 'number__range_example', # String | number__range
|
106
130
|
offset: 56, # Integer | The initial index from which to return the results.
|
131
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
132
|
+
pulp_created: 'pulp_created_example', # String | pulp_created
|
133
|
+
pulp_created__gt: 'pulp_created__gt_example', # String | pulp_created__gt
|
134
|
+
pulp_created__gte: 'pulp_created__gte_example', # String | pulp_created__gte
|
135
|
+
pulp_created__lt: 'pulp_created__lt_example', # String | pulp_created__lt
|
136
|
+
pulp_created__lte: 'pulp_created__lte_example', # String | pulp_created__lte
|
137
|
+
pulp_created__range: 'pulp_created__range_example', # String | pulp_created__range
|
107
138
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
108
139
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
109
140
|
}
|
110
141
|
|
111
142
|
begin
|
112
|
-
|
113
|
-
result = api_instance.list(npm_repository_href, opts)
|
143
|
+
result = api_instance.list(npm_repository_version_href, opts)
|
114
144
|
p result
|
115
145
|
rescue PulpNpmClient::ApiError => e
|
116
146
|
puts "Exception when calling RepositoriesNpmVersionsApi->list: #{e}"
|
@@ -122,24 +152,24 @@ end
|
|
122
152
|
|
123
153
|
Name | Type | Description | Notes
|
124
154
|
------------- | ------------- | ------------- | -------------
|
125
|
-
**
|
126
|
-
**
|
127
|
-
**
|
128
|
-
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
129
|
-
**number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
|
130
|
-
**number__gt** | **Float**| Filter results where number is greater than value | [optional]
|
131
|
-
**number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
|
132
|
-
**number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
|
133
|
-
**pulp_created__lt** | **String**| Filter results where pulp_created is less than value | [optional]
|
134
|
-
**pulp_created__lte** | **String**| Filter results where pulp_created is less than or equal to value | [optional]
|
135
|
-
**pulp_created__gt** | **String**| Filter results where pulp_created is greater than value | [optional]
|
136
|
-
**pulp_created__gte** | **String**| Filter results where pulp_created is greater than or equal to value | [optional]
|
137
|
-
**pulp_created__range** | **String**| Filter results where pulp_created is between two comma separated values | [optional]
|
138
|
-
**pulp_created** | **String**| ISO 8601 formatted dates are supported | [optional]
|
139
|
-
**content** | **String**| Content Unit referenced by HREF | [optional]
|
140
|
-
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
155
|
+
**npm_repository_version_href** | **String**| |
|
156
|
+
**content** | **String**| content | [optional]
|
157
|
+
**content__in** | **String**| content__in | [optional]
|
141
158
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
159
|
+
**number** | **String**| number | [optional]
|
160
|
+
**number__gt** | **String**| number__gt | [optional]
|
161
|
+
**number__gte** | **String**| number__gte | [optional]
|
162
|
+
**number__lt** | **String**| number__lt | [optional]
|
163
|
+
**number__lte** | **String**| number__lte | [optional]
|
164
|
+
**number__range** | **String**| number__range | [optional]
|
142
165
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
166
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
167
|
+
**pulp_created** | **String**| pulp_created | [optional]
|
168
|
+
**pulp_created__gt** | **String**| pulp_created__gt | [optional]
|
169
|
+
**pulp_created__gte** | **String**| pulp_created__gte | [optional]
|
170
|
+
**pulp_created__lt** | **String**| pulp_created__lt | [optional]
|
171
|
+
**pulp_created__lte** | **String**| pulp_created__lte | [optional]
|
172
|
+
**pulp_created__range** | **String**| pulp_created__range | [optional]
|
143
173
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
144
174
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
145
175
|
|
@@ -149,7 +179,7 @@ Name | Type | Description | Notes
|
|
149
179
|
|
150
180
|
### Authorization
|
151
181
|
|
152
|
-
[
|
182
|
+
[basicAuth](../README.md#basicAuth)
|
153
183
|
|
154
184
|
### HTTP request headers
|
155
185
|
|
@@ -159,9 +189,9 @@ Name | Type | Description | Notes
|
|
159
189
|
|
160
190
|
## read
|
161
191
|
|
162
|
-
>
|
192
|
+
> RepositoryVersionResponse read(npm_repository_version_href, opts)
|
193
|
+
|
163
194
|
|
164
|
-
Inspect a repository version
|
165
195
|
|
166
196
|
A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
167
197
|
|
@@ -172,20 +202,19 @@ A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
|
172
202
|
require 'pulp_npm_client'
|
173
203
|
# setup authorization
|
174
204
|
PulpNpmClient.configure do |config|
|
175
|
-
# Configure HTTP basic authorization:
|
205
|
+
# Configure HTTP basic authorization: basicAuth
|
176
206
|
config.username = 'YOUR USERNAME'
|
177
207
|
config.password = 'YOUR PASSWORD'
|
178
208
|
end
|
179
209
|
|
180
210
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
181
|
-
npm_repository_version_href = 'npm_repository_version_href_example' # String |
|
211
|
+
npm_repository_version_href = 'npm_repository_version_href_example' # String |
|
182
212
|
opts = {
|
183
213
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
184
214
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
185
215
|
}
|
186
216
|
|
187
217
|
begin
|
188
|
-
#Inspect a repository version
|
189
218
|
result = api_instance.read(npm_repository_version_href, opts)
|
190
219
|
p result
|
191
220
|
rescue PulpNpmClient::ApiError => e
|
@@ -198,17 +227,17 @@ end
|
|
198
227
|
|
199
228
|
Name | Type | Description | Notes
|
200
229
|
------------- | ------------- | ------------- | -------------
|
201
|
-
**npm_repository_version_href** | **String**|
|
230
|
+
**npm_repository_version_href** | **String**| |
|
202
231
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
203
232
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
204
233
|
|
205
234
|
### Return type
|
206
235
|
|
207
|
-
[**
|
236
|
+
[**RepositoryVersionResponse**](RepositoryVersionResponse.md)
|
208
237
|
|
209
238
|
### Authorization
|
210
239
|
|
211
|
-
[
|
240
|
+
[basicAuth](../README.md#basicAuth)
|
212
241
|
|
213
242
|
### HTTP request headers
|
214
243
|
|
@@ -218,7 +247,7 @@ Name | Type | Description | Notes
|
|
218
247
|
|
219
248
|
## repair
|
220
249
|
|
221
|
-
> AsyncOperationResponse repair(npm_repository_version_href,
|
250
|
+
> AsyncOperationResponse repair(npm_repository_version_href, repository_version)
|
222
251
|
|
223
252
|
|
224
253
|
|
@@ -231,17 +260,17 @@ Trigger an asynchronous task to repair a repositroy version.
|
|
231
260
|
require 'pulp_npm_client'
|
232
261
|
# setup authorization
|
233
262
|
PulpNpmClient.configure do |config|
|
234
|
-
# Configure HTTP basic authorization:
|
263
|
+
# Configure HTTP basic authorization: basicAuth
|
235
264
|
config.username = 'YOUR USERNAME'
|
236
265
|
config.password = 'YOUR PASSWORD'
|
237
266
|
end
|
238
267
|
|
239
268
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
240
|
-
npm_repository_version_href = 'npm_repository_version_href_example' # String |
|
241
|
-
|
269
|
+
npm_repository_version_href = 'npm_repository_version_href_example' # String |
|
270
|
+
repository_version = PulpNpmClient::RepositoryVersion.new # RepositoryVersion |
|
242
271
|
|
243
272
|
begin
|
244
|
-
result = api_instance.repair(npm_repository_version_href,
|
273
|
+
result = api_instance.repair(npm_repository_version_href, repository_version)
|
245
274
|
p result
|
246
275
|
rescue PulpNpmClient::ApiError => e
|
247
276
|
puts "Exception when calling RepositoriesNpmVersionsApi->repair: #{e}"
|
@@ -253,8 +282,8 @@ end
|
|
253
282
|
|
254
283
|
Name | Type | Description | Notes
|
255
284
|
------------- | ------------- | ------------- | -------------
|
256
|
-
**npm_repository_version_href** | **String**|
|
257
|
-
**
|
285
|
+
**npm_repository_version_href** | **String**| |
|
286
|
+
**repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
|
258
287
|
|
259
288
|
### Return type
|
260
289
|
|
@@ -262,10 +291,10 @@ Name | Type | Description | Notes
|
|
262
291
|
|
263
292
|
### Authorization
|
264
293
|
|
265
|
-
[
|
294
|
+
[basicAuth](../README.md#basicAuth)
|
266
295
|
|
267
296
|
### HTTP request headers
|
268
297
|
|
269
|
-
- **Content-Type**: application/json
|
298
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
270
299
|
- **Accept**: application/json
|
271
300
|
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**add_content_units** | **Array<
|
8
|
-
**remove_content_units** | **Array<
|
7
|
+
**add_content_units** | **Array<Object>** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
8
|
+
**remove_content_units** | **Array<Object>** | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
9
9
|
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
data/docs/RepositorySyncURL.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**remote** | **String** | A
|
7
|
+
**remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
|
8
8
|
**mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
|
9
9
|
|
10
10
|
## Code Sample
|
data/docs/RepositoryVersion.md
CHANGED
@@ -4,22 +4,14 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**number** | **Integer** | | [optional] [readonly]
|
10
7
|
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
11
|
-
**content_summary** | [**ContentSummary**](ContentSummary.md) | | [optional]
|
12
8
|
|
13
9
|
## Code Sample
|
14
10
|
|
15
11
|
```ruby
|
16
12
|
require 'PulpNpmClient'
|
17
13
|
|
18
|
-
instance = PulpNpmClient::RepositoryVersion.new(
|
19
|
-
pulp_created: null,
|
20
|
-
number: null,
|
21
|
-
base_version: null,
|
22
|
-
content_summary: null)
|
14
|
+
instance = PulpNpmClient::RepositoryVersion.new(base_version: null)
|
23
15
|
```
|
24
16
|
|
25
17
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# PulpNpmClient::RepositoryVersionResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**number** | **Integer** | | [optional] [readonly]
|
10
|
+
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
11
|
+
**content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'PulpNpmClient'
|
17
|
+
|
18
|
+
instance = PulpNpmClient::RepositoryVersionResponse.new(pulp_href: null,
|
19
|
+
pulp_created: null,
|
20
|
+
number: null,
|
21
|
+
base_version: null,
|
22
|
+
content_summary: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
data/lib/pulp_npm_client.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -19,18 +19,28 @@ require 'pulp_npm_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_npm_client/models/async_operation_response'
|
21
21
|
require 'pulp_npm_client/models/content_summary'
|
22
|
+
require 'pulp_npm_client/models/content_summary_response'
|
22
23
|
require 'pulp_npm_client/models/inline_response200'
|
23
24
|
require 'pulp_npm_client/models/inline_response2001'
|
24
25
|
require 'pulp_npm_client/models/inline_response2002'
|
25
26
|
require 'pulp_npm_client/models/inline_response2003'
|
26
27
|
require 'pulp_npm_client/models/inline_response2004'
|
27
28
|
require 'pulp_npm_client/models/npm_npm_distribution'
|
29
|
+
require 'pulp_npm_client/models/npm_npm_distribution_response'
|
28
30
|
require 'pulp_npm_client/models/npm_npm_remote'
|
31
|
+
require 'pulp_npm_client/models/npm_npm_remote_response'
|
29
32
|
require 'pulp_npm_client/models/npm_npm_repository'
|
33
|
+
require 'pulp_npm_client/models/npm_npm_repository_response'
|
30
34
|
require 'pulp_npm_client/models/npm_package'
|
35
|
+
require 'pulp_npm_client/models/npm_package_response'
|
36
|
+
require 'pulp_npm_client/models/patchednpm_npm_distribution'
|
37
|
+
require 'pulp_npm_client/models/patchednpm_npm_remote'
|
38
|
+
require 'pulp_npm_client/models/patchednpm_npm_repository'
|
39
|
+
require 'pulp_npm_client/models/policy_enum'
|
31
40
|
require 'pulp_npm_client/models/repository_add_remove_content'
|
32
41
|
require 'pulp_npm_client/models/repository_sync_url'
|
33
42
|
require 'pulp_npm_client/models/repository_version'
|
43
|
+
require 'pulp_npm_client/models/repository_version_response'
|
34
44
|
|
35
45
|
# APIs
|
36
46
|
require 'pulp_npm_client/api/content_packages_api'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -19,8 +19,7 @@ module PulpNpmClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
# \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
|
22
|
+
# Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
|
24
23
|
# @param relative_path [String]
|
25
24
|
# @param name [String]
|
26
25
|
# @param version [String]
|
@@ -28,14 +27,13 @@ module PulpNpmClient
|
|
28
27
|
# @option opts [String] :artifact Artifact file representing the physical content
|
29
28
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
30
29
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
31
|
-
# @return [
|
30
|
+
# @return [NpmPackageResponse]
|
32
31
|
def create(relative_path, name, version, opts = {})
|
33
32
|
data, _status_code, _headers = create_with_http_info(relative_path, name, version, opts)
|
34
33
|
data
|
35
34
|
end
|
36
35
|
|
37
|
-
#
|
38
|
-
# \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
|
36
|
+
# Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
|
39
37
|
# @param relative_path [String]
|
40
38
|
# @param name [String]
|
41
39
|
# @param version [String]
|
@@ -43,7 +41,7 @@ module PulpNpmClient
|
|
43
41
|
# @option opts [String] :artifact Artifact file representing the physical content
|
44
42
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
45
43
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
46
|
-
# @return [Array<(
|
44
|
+
# @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
|
47
45
|
def create_with_http_info(relative_path, name, version, opts = {})
|
48
46
|
if @api_client.config.debugging
|
49
47
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.create ...'
|
@@ -52,26 +50,14 @@ module PulpNpmClient
|
|
52
50
|
if @api_client.config.client_side_validation && relative_path.nil?
|
53
51
|
fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentPackagesApi.create"
|
54
52
|
end
|
55
|
-
if @api_client.config.client_side_validation && relative_path.to_s.length < 1
|
56
|
-
fail ArgumentError, 'invalid value for "relative_path" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
57
|
-
end
|
58
|
-
|
59
53
|
# verify the required parameter 'name' is set
|
60
54
|
if @api_client.config.client_side_validation && name.nil?
|
61
55
|
fail ArgumentError, "Missing the required parameter 'name' when calling ContentPackagesApi.create"
|
62
56
|
end
|
63
|
-
if @api_client.config.client_side_validation && name.to_s.length < 1
|
64
|
-
fail ArgumentError, 'invalid value for "name" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
65
|
-
end
|
66
|
-
|
67
57
|
# verify the required parameter 'version' is set
|
68
58
|
if @api_client.config.client_side_validation && version.nil?
|
69
59
|
fail ArgumentError, "Missing the required parameter 'version' when calling ContentPackagesApi.create"
|
70
60
|
end
|
71
|
-
if @api_client.config.client_side_validation && version.to_s.length < 1
|
72
|
-
fail ArgumentError, 'invalid value for "version" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
73
|
-
end
|
74
|
-
|
75
61
|
# resource path
|
76
62
|
local_var_path = '/pulp/api/v3/content/npm/packages/'
|
77
63
|
|
@@ -98,10 +84,10 @@ module PulpNpmClient
|
|
98
84
|
post_body = opts[:body]
|
99
85
|
|
100
86
|
# return_type
|
101
|
-
return_type = opts[:return_type] || '
|
87
|
+
return_type = opts[:return_type] || 'NpmPackageResponse'
|
102
88
|
|
103
89
|
# auth_names
|
104
|
-
auth_names = opts[:auth_names] || ['
|
90
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
105
91
|
|
106
92
|
new_options = opts.merge(
|
107
93
|
:header_params => header_params,
|
@@ -119,17 +105,16 @@ module PulpNpmClient
|
|
119
105
|
return data, status_code, headers
|
120
106
|
end
|
121
107
|
|
122
|
-
#
|
123
|
-
# 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.
|
108
|
+
# 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.
|
124
109
|
# @param [Hash] opts the optional parameters
|
125
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
126
|
-
# @option opts [String] :name Filter results where name matches value
|
127
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
128
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
129
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
130
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
131
110
|
# @option opts [Integer] :limit Number of results to return per page.
|
111
|
+
# @option opts [String] :name name
|
112
|
+
# @option opts [String] :name__in name__in
|
132
113
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
114
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
115
|
+
# @option opts [String] :repository_version repository_version
|
116
|
+
# @option opts [String] :repository_version_added repository_version_added
|
117
|
+
# @option opts [String] :repository_version_removed repository_version_removed
|
133
118
|
# @option opts [String] :fields A list of fields to include in the response.
|
134
119
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
135
120
|
# @return [InlineResponse200]
|
@@ -138,17 +123,16 @@ module PulpNpmClient
|
|
138
123
|
data
|
139
124
|
end
|
140
125
|
|
141
|
-
#
|
142
|
-
# 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.
|
126
|
+
# 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.
|
143
127
|
# @param [Hash] opts the optional parameters
|
144
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
145
|
-
# @option opts [String] :name Filter results where name matches value
|
146
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
147
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
148
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
149
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
150
128
|
# @option opts [Integer] :limit Number of results to return per page.
|
129
|
+
# @option opts [String] :name name
|
130
|
+
# @option opts [String] :name__in name__in
|
151
131
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
132
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
133
|
+
# @option opts [String] :repository_version repository_version
|
134
|
+
# @option opts [String] :repository_version_added repository_version_added
|
135
|
+
# @option opts [String] :repository_version_removed repository_version_removed
|
152
136
|
# @option opts [String] :fields A list of fields to include in the response.
|
153
137
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
154
138
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
@@ -161,14 +145,14 @@ module PulpNpmClient
|
|
161
145
|
|
162
146
|
# query parameters
|
163
147
|
query_params = opts[:query_params] || {}
|
164
|
-
query_params[:'
|
148
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
165
149
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
166
150
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
151
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
152
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
167
153
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
168
154
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
169
155
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
170
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
171
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
172
156
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
173
157
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
174
158
|
|
@@ -187,7 +171,7 @@ module PulpNpmClient
|
|
187
171
|
return_type = opts[:return_type] || 'InlineResponse200'
|
188
172
|
|
189
173
|
# auth_names
|
190
|
-
auth_names = opts[:auth_names] || ['
|
174
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
191
175
|
|
192
176
|
new_options = opts.merge(
|
193
177
|
:header_params => header_params,
|
@@ -205,25 +189,23 @@ module PulpNpmClient
|
|
205
189
|
return data, status_code, headers
|
206
190
|
end
|
207
191
|
|
208
|
-
#
|
209
|
-
#
|
210
|
-
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/npm/packages/1/
|
192
|
+
# 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.
|
193
|
+
# @param package_href [String]
|
211
194
|
# @param [Hash] opts the optional parameters
|
212
195
|
# @option opts [String] :fields A list of fields to include in the response.
|
213
196
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
214
|
-
# @return [
|
197
|
+
# @return [NpmPackageResponse]
|
215
198
|
def read(package_href, opts = {})
|
216
199
|
data, _status_code, _headers = read_with_http_info(package_href, opts)
|
217
200
|
data
|
218
201
|
end
|
219
202
|
|
220
|
-
#
|
221
|
-
#
|
222
|
-
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/npm/packages/1/
|
203
|
+
# 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.
|
204
|
+
# @param package_href [String]
|
223
205
|
# @param [Hash] opts the optional parameters
|
224
206
|
# @option opts [String] :fields A list of fields to include in the response.
|
225
207
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
226
|
-
# @return [Array<(
|
208
|
+
# @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
|
227
209
|
def read_with_http_info(package_href, opts = {})
|
228
210
|
if @api_client.config.debugging
|
229
211
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.read ...'
|
@@ -252,10 +234,10 @@ module PulpNpmClient
|
|
252
234
|
post_body = opts[:body]
|
253
235
|
|
254
236
|
# return_type
|
255
|
-
return_type = opts[:return_type] || '
|
237
|
+
return_type = opts[:return_type] || 'NpmPackageResponse'
|
256
238
|
|
257
239
|
# auth_names
|
258
|
-
auth_names = opts[:auth_names] || ['
|
240
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
259
241
|
|
260
242
|
new_options = opts.merge(
|
261
243
|
:header_params => header_params,
|