pulp_npm_client 0.1.0a1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +157 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentPackagesApi.md +208 -0
- data/docs/ContentSummary.md +21 -0
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsNpmApi.md +364 -0
- data/docs/NpmNpmDistribution.md +25 -0
- data/docs/NpmNpmDistributionResponse.md +31 -0
- data/docs/NpmNpmRemote.md +37 -0
- data/docs/NpmNpmRemoteResponse.md +43 -0
- data/docs/NpmNpmRepository.md +21 -0
- data/docs/NpmNpmRepositoryResponse.md +29 -0
- data/docs/NpmPackage.md +27 -0
- data/docs/NpmPackageResponse.md +27 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PaginatednpmNpmDistributionResponseList.md +23 -0
- data/docs/PaginatednpmNpmRemoteResponseList.md +23 -0
- data/docs/PaginatednpmNpmRepositoryResponseList.md +23 -0
- data/docs/PaginatednpmPackageResponseList.md +23 -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/PulpNpmPackagesApi.md +60 -0
- data/docs/RemotesNpmApi.md +368 -0
- data/docs/RepositoriesNpmApi.md +468 -0
- data/docs/RepositoriesNpmVersionsApi.md +271 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/RepositoryVersion.md +17 -0
- data/docs/RepositoryVersionResponse.md +25 -0
- data/git_push.sh +58 -0
- data/lib/pulp_npm_client.rb +69 -0
- data/lib/pulp_npm_client/api/content_packages_api.rb +264 -0
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +445 -0
- data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +86 -0
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +451 -0
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +573 -0
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +339 -0
- data/lib/pulp_npm_client/api_client.rb +402 -0
- data/lib/pulp_npm_client/api_error.rb +57 -0
- data/lib/pulp_npm_client/configuration.rb +243 -0
- data/lib/pulp_npm_client/models/async_operation_response.rb +213 -0
- data/lib/pulp_npm_client/models/content_summary.rb +240 -0
- data/lib/pulp_npm_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +261 -0
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +290 -0
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +339 -0
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +368 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +234 -0
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +271 -0
- data/lib/pulp_npm_client/models/npm_package.rb +270 -0
- data/lib/pulp_npm_client/models/npm_package_response.rb +269 -0
- data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +237 -0
- data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +237 -0
- data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +237 -0
- data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +237 -0
- data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +237 -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 +232 -0
- data/lib/pulp_npm_client/models/repository_sync_url.rb +220 -0
- data/lib/pulp_npm_client/models/repository_version.rb +208 -0
- data/lib/pulp_npm_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_npm_client/version.rb +15 -0
- data/pulp_npm_client.gemspec +39 -0
- data/spec/api/content_packages_api_spec.rb +87 -0
- data/spec/api/distributions_npm_api_spec.rb +121 -0
- data/spec/api/pulp_npm_packages_api_spec.rb +48 -0
- data/spec/api/remotes_npm_api_spec.rb +123 -0
- data/spec/api/repositories_npm_api_spec.rb +143 -0
- data/spec/api/repositories_npm_versions_api_spec.rb +104 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/npm_npm_distribution_response_spec.rb +83 -0
- data/spec/models/npm_npm_distribution_spec.rb +65 -0
- data/spec/models/npm_npm_remote_response_spec.rb +119 -0
- data/spec/models/npm_npm_remote_spec.rb +101 -0
- data/spec/models/npm_npm_repository_response_spec.rb +77 -0
- data/spec/models/npm_npm_repository_spec.rb +53 -0
- data/spec/models/npm_package_response_spec.rb +71 -0
- data/spec/models/npm_package_spec.rb +71 -0
- data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
- data/spec/models/paginatednpm_npm_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginatednpm_npm_remote_response_list_spec.rb +59 -0
- data/spec/models/paginatednpm_npm_repository_response_list_spec.rb +59 -0
- data/spec/models/paginatednpm_package_response_list_spec.rb +59 -0
- 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 +53 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +233 -0
@@ -0,0 +1,271 @@
|
|
1
|
+
# PulpNpmClient::RepositoriesNpmVersionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete**](RepositoriesNpmVersionsApi.md#delete) | **DELETE** {npm_npm_repository_version_href} | Delete a repository version
|
8
|
+
[**list**](RepositoriesNpmVersionsApi.md#list) | **GET** {npm_npm_repository_href}versions/ | List repository versions
|
9
|
+
[**read**](RepositoriesNpmVersionsApi.md#read) | **GET** {npm_npm_repository_version_href} | Inspect a repository version
|
10
|
+
[**repair**](RepositoriesNpmVersionsApi.md#repair) | **POST** {npm_npm_repository_version_href}repair/ |
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## delete
|
15
|
+
|
16
|
+
> AsyncOperationResponse delete(npm_npm_repository_version_href)
|
17
|
+
|
18
|
+
Delete a repository version
|
19
|
+
|
20
|
+
Trigger an asynchronous task to delete a repositroy version.
|
21
|
+
|
22
|
+
### Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
# load the gem
|
26
|
+
require 'pulp_npm_client'
|
27
|
+
# setup authorization
|
28
|
+
PulpNpmClient.configure do |config|
|
29
|
+
# Configure HTTP basic authorization: basicAuth
|
30
|
+
config.username = 'YOUR USERNAME'
|
31
|
+
config.password = 'YOUR PASSWORD'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
35
|
+
npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
|
36
|
+
|
37
|
+
begin
|
38
|
+
#Delete a repository version
|
39
|
+
result = api_instance.delete(npm_npm_repository_version_href)
|
40
|
+
p result
|
41
|
+
rescue PulpNpmClient::ApiError => e
|
42
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->delete: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**npm_npm_repository_version_href** | **String**| |
|
52
|
+
|
53
|
+
### Return type
|
54
|
+
|
55
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
56
|
+
|
57
|
+
### Authorization
|
58
|
+
|
59
|
+
[basicAuth](../README.md#basicAuth)
|
60
|
+
|
61
|
+
### HTTP request headers
|
62
|
+
|
63
|
+
- **Content-Type**: Not defined
|
64
|
+
- **Accept**: application/json
|
65
|
+
|
66
|
+
|
67
|
+
## list
|
68
|
+
|
69
|
+
> PaginatedRepositoryVersionResponseList list(npm_npm_repository_href, opts)
|
70
|
+
|
71
|
+
List repository versions
|
72
|
+
|
73
|
+
A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
74
|
+
|
75
|
+
### Example
|
76
|
+
|
77
|
+
```ruby
|
78
|
+
# load the gem
|
79
|
+
require 'pulp_npm_client'
|
80
|
+
# setup authorization
|
81
|
+
PulpNpmClient.configure do |config|
|
82
|
+
# Configure HTTP basic authorization: basicAuth
|
83
|
+
config.username = 'YOUR USERNAME'
|
84
|
+
config.password = 'YOUR PASSWORD'
|
85
|
+
end
|
86
|
+
|
87
|
+
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
88
|
+
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
89
|
+
opts = {
|
90
|
+
content: 'content_example', # String | content
|
91
|
+
content__in: 'content__in_example', # String | content__in
|
92
|
+
limit: 56, # Integer | Number of results to return per page.
|
93
|
+
number: 'number_example', # String | number
|
94
|
+
number__gt: 'number__gt_example', # String | number__gt
|
95
|
+
number__gte: 'number__gte_example', # String | number__gte
|
96
|
+
number__lt: 'number__lt_example', # String | number__lt
|
97
|
+
number__lte: 'number__lte_example', # String | number__lte
|
98
|
+
number__range: 'number__range_example', # String | number__range
|
99
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
100
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
101
|
+
pulp_created: 'pulp_created_example', # String | pulp_created
|
102
|
+
pulp_created__gt: 'pulp_created__gt_example', # String | pulp_created__gt
|
103
|
+
pulp_created__gte: 'pulp_created__gte_example', # String | pulp_created__gte
|
104
|
+
pulp_created__lt: 'pulp_created__lt_example', # String | pulp_created__lt
|
105
|
+
pulp_created__lte: 'pulp_created__lte_example', # String | pulp_created__lte
|
106
|
+
pulp_created__range: 'pulp_created__range_example', # String | pulp_created__range
|
107
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
108
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
109
|
+
}
|
110
|
+
|
111
|
+
begin
|
112
|
+
#List repository versions
|
113
|
+
result = api_instance.list(npm_npm_repository_href, opts)
|
114
|
+
p result
|
115
|
+
rescue PulpNpmClient::ApiError => e
|
116
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->list: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
### Parameters
|
121
|
+
|
122
|
+
|
123
|
+
Name | Type | Description | Notes
|
124
|
+
------------- | ------------- | ------------- | -------------
|
125
|
+
**npm_npm_repository_href** | **String**| |
|
126
|
+
**content** | **String**| content | [optional]
|
127
|
+
**content__in** | **String**| content__in | [optional]
|
128
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
129
|
+
**number** | **String**| number | [optional]
|
130
|
+
**number__gt** | **String**| number__gt | [optional]
|
131
|
+
**number__gte** | **String**| number__gte | [optional]
|
132
|
+
**number__lt** | **String**| number__lt | [optional]
|
133
|
+
**number__lte** | **String**| number__lte | [optional]
|
134
|
+
**number__range** | **String**| number__range | [optional]
|
135
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
136
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
137
|
+
**pulp_created** | **String**| pulp_created | [optional]
|
138
|
+
**pulp_created__gt** | **String**| pulp_created__gt | [optional]
|
139
|
+
**pulp_created__gte** | **String**| pulp_created__gte | [optional]
|
140
|
+
**pulp_created__lt** | **String**| pulp_created__lt | [optional]
|
141
|
+
**pulp_created__lte** | **String**| pulp_created__lte | [optional]
|
142
|
+
**pulp_created__range** | **String**| pulp_created__range | [optional]
|
143
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
144
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
145
|
+
|
146
|
+
### Return type
|
147
|
+
|
148
|
+
[**PaginatedRepositoryVersionResponseList**](PaginatedRepositoryVersionResponseList.md)
|
149
|
+
|
150
|
+
### Authorization
|
151
|
+
|
152
|
+
[basicAuth](../README.md#basicAuth)
|
153
|
+
|
154
|
+
### HTTP request headers
|
155
|
+
|
156
|
+
- **Content-Type**: Not defined
|
157
|
+
- **Accept**: application/json
|
158
|
+
|
159
|
+
|
160
|
+
## read
|
161
|
+
|
162
|
+
> RepositoryVersionResponse read(npm_npm_repository_version_href, opts)
|
163
|
+
|
164
|
+
Inspect a repository version
|
165
|
+
|
166
|
+
A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
167
|
+
|
168
|
+
### Example
|
169
|
+
|
170
|
+
```ruby
|
171
|
+
# load the gem
|
172
|
+
require 'pulp_npm_client'
|
173
|
+
# setup authorization
|
174
|
+
PulpNpmClient.configure do |config|
|
175
|
+
# Configure HTTP basic authorization: basicAuth
|
176
|
+
config.username = 'YOUR USERNAME'
|
177
|
+
config.password = 'YOUR PASSWORD'
|
178
|
+
end
|
179
|
+
|
180
|
+
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
181
|
+
npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
|
182
|
+
opts = {
|
183
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
184
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
185
|
+
}
|
186
|
+
|
187
|
+
begin
|
188
|
+
#Inspect a repository version
|
189
|
+
result = api_instance.read(npm_npm_repository_version_href, opts)
|
190
|
+
p result
|
191
|
+
rescue PulpNpmClient::ApiError => e
|
192
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->read: #{e}"
|
193
|
+
end
|
194
|
+
```
|
195
|
+
|
196
|
+
### Parameters
|
197
|
+
|
198
|
+
|
199
|
+
Name | Type | Description | Notes
|
200
|
+
------------- | ------------- | ------------- | -------------
|
201
|
+
**npm_npm_repository_version_href** | **String**| |
|
202
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
203
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
204
|
+
|
205
|
+
### Return type
|
206
|
+
|
207
|
+
[**RepositoryVersionResponse**](RepositoryVersionResponse.md)
|
208
|
+
|
209
|
+
### Authorization
|
210
|
+
|
211
|
+
[basicAuth](../README.md#basicAuth)
|
212
|
+
|
213
|
+
### HTTP request headers
|
214
|
+
|
215
|
+
- **Content-Type**: Not defined
|
216
|
+
- **Accept**: application/json
|
217
|
+
|
218
|
+
|
219
|
+
## repair
|
220
|
+
|
221
|
+
> AsyncOperationResponse repair(npm_npm_repository_version_href, repository_version)
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
Trigger an asynchronous task to repair a repositroy version.
|
226
|
+
|
227
|
+
### Example
|
228
|
+
|
229
|
+
```ruby
|
230
|
+
# load the gem
|
231
|
+
require 'pulp_npm_client'
|
232
|
+
# setup authorization
|
233
|
+
PulpNpmClient.configure do |config|
|
234
|
+
# Configure HTTP basic authorization: basicAuth
|
235
|
+
config.username = 'YOUR USERNAME'
|
236
|
+
config.password = 'YOUR PASSWORD'
|
237
|
+
end
|
238
|
+
|
239
|
+
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
240
|
+
npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
|
241
|
+
repository_version = PulpNpmClient::RepositoryVersion.new # RepositoryVersion |
|
242
|
+
|
243
|
+
begin
|
244
|
+
result = api_instance.repair(npm_npm_repository_version_href, repository_version)
|
245
|
+
p result
|
246
|
+
rescue PulpNpmClient::ApiError => e
|
247
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->repair: #{e}"
|
248
|
+
end
|
249
|
+
```
|
250
|
+
|
251
|
+
### Parameters
|
252
|
+
|
253
|
+
|
254
|
+
Name | Type | Description | Notes
|
255
|
+
------------- | ------------- | ------------- | -------------
|
256
|
+
**npm_npm_repository_version_href** | **String**| |
|
257
|
+
**repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
|
258
|
+
|
259
|
+
### Return type
|
260
|
+
|
261
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
262
|
+
|
263
|
+
### Authorization
|
264
|
+
|
265
|
+
[basicAuth](../README.md#basicAuth)
|
266
|
+
|
267
|
+
### HTTP request headers
|
268
|
+
|
269
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
270
|
+
- **Accept**: application/json
|
271
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpNpmClient::RepositoryAddRemoveContent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
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
|
+
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'PulpNpmClient'
|
15
|
+
|
16
|
+
instance = PulpNpmClient::RepositoryAddRemoveContent.new(add_content_units: null,
|
17
|
+
remove_content_units: null,
|
18
|
+
base_version: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpNpmClient::RepositorySyncURL
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
|
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
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'PulpNpmClient'
|
14
|
+
|
15
|
+
instance = PulpNpmClient::RepositorySyncURL.new(remote: null,
|
16
|
+
mirror: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpNpmClient::RepositoryVersion
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpNpmClient'
|
13
|
+
|
14
|
+
instance = PulpNpmClient::RepositoryVersion.new(base_version: null)
|
15
|
+
```
|
16
|
+
|
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/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
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
|
+
|
@@ -0,0 +1,69 @@
|
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'pulp_npm_client/api_client'
|
15
|
+
require 'pulp_npm_client/api_error'
|
16
|
+
require 'pulp_npm_client/version'
|
17
|
+
require 'pulp_npm_client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'pulp_npm_client/models/async_operation_response'
|
21
|
+
require 'pulp_npm_client/models/content_summary'
|
22
|
+
require 'pulp_npm_client/models/content_summary_response'
|
23
|
+
require 'pulp_npm_client/models/npm_npm_distribution'
|
24
|
+
require 'pulp_npm_client/models/npm_npm_distribution_response'
|
25
|
+
require 'pulp_npm_client/models/npm_npm_remote'
|
26
|
+
require 'pulp_npm_client/models/npm_npm_remote_response'
|
27
|
+
require 'pulp_npm_client/models/npm_npm_repository'
|
28
|
+
require 'pulp_npm_client/models/npm_npm_repository_response'
|
29
|
+
require 'pulp_npm_client/models/npm_package'
|
30
|
+
require 'pulp_npm_client/models/npm_package_response'
|
31
|
+
require 'pulp_npm_client/models/paginated_repository_version_response_list'
|
32
|
+
require 'pulp_npm_client/models/paginatednpm_npm_distribution_response_list'
|
33
|
+
require 'pulp_npm_client/models/paginatednpm_npm_remote_response_list'
|
34
|
+
require 'pulp_npm_client/models/paginatednpm_npm_repository_response_list'
|
35
|
+
require 'pulp_npm_client/models/paginatednpm_package_response_list'
|
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'
|
40
|
+
require 'pulp_npm_client/models/repository_add_remove_content'
|
41
|
+
require 'pulp_npm_client/models/repository_sync_url'
|
42
|
+
require 'pulp_npm_client/models/repository_version'
|
43
|
+
require 'pulp_npm_client/models/repository_version_response'
|
44
|
+
|
45
|
+
# APIs
|
46
|
+
require 'pulp_npm_client/api/content_packages_api'
|
47
|
+
require 'pulp_npm_client/api/distributions_npm_api'
|
48
|
+
require 'pulp_npm_client/api/pulp_npm_packages_api'
|
49
|
+
require 'pulp_npm_client/api/remotes_npm_api'
|
50
|
+
require 'pulp_npm_client/api/repositories_npm_api'
|
51
|
+
require 'pulp_npm_client/api/repositories_npm_versions_api'
|
52
|
+
|
53
|
+
module PulpNpmClient
|
54
|
+
class << self
|
55
|
+
# Customize default settings for the SDK using block.
|
56
|
+
# PulpNpmClient.configure do |config|
|
57
|
+
# config.username = "xxx"
|
58
|
+
# config.password = "xxx"
|
59
|
+
# end
|
60
|
+
# If no block given, return the default Configuration object.
|
61
|
+
def configure
|
62
|
+
if block_given?
|
63
|
+
yield(Configuration.default)
|
64
|
+
else
|
65
|
+
Configuration.default
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|