pulp_deb_client 2.0.0b2
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 +163 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentGenericContentsApi.md +194 -0
- data/docs/ContentInstallerFileIndexApi.md +186 -0
- data/docs/ContentInstallerPackagesApi.md +194 -0
- data/docs/ContentPackageIndexApi.md +186 -0
- data/docs/ContentPackagesApi.md +194 -0
- data/docs/ContentReleasesApi.md +186 -0
- data/docs/DebDistribution.md +29 -0
- data/docs/DebPublication.md +31 -0
- data/docs/DebRemote.md +57 -0
- data/docs/DistributionsAptApi.md +358 -0
- data/docs/GenericContent.md +41 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/InlineResponse2002.md +23 -0
- data/docs/InlineResponse2003.md +23 -0
- data/docs/InlineResponse2004.md +23 -0
- data/docs/InlineResponse2005.md +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/InlineResponse2007.md +23 -0
- data/docs/InlineResponse2008.md +23 -0
- data/docs/InlineResponse2009.md +23 -0
- data/docs/InstallerFileIndex.md +31 -0
- data/docs/InstallerPackage.md +99 -0
- data/docs/Package.md +99 -0
- data/docs/PackageIndex.md +31 -0
- data/docs/PublicationsAptApi.md +235 -0
- data/docs/PublicationsVerbatimApi.md +235 -0
- data/docs/Release.md +31 -0
- data/docs/RemotesAptApi.md +417 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/VerbatimPublication.md +27 -0
- data/git_push.sh +58 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +239 -0
- data/lib/pulp_deb_client/api/content_installer_file_index_api.rb +225 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +235 -0
- data/lib/pulp_deb_client/api/content_package_index_api.rb +225 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +235 -0
- data/lib/pulp_deb_client/api/content_releases_api.rb +225 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +436 -0
- data/lib/pulp_deb_client/api/publications_apt_api.rb +279 -0
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +279 -0
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +510 -0
- data/lib/pulp_deb_client/api_client.rb +402 -0
- data/lib/pulp_deb_client/api_error.rb +57 -0
- data/lib/pulp_deb_client/configuration.rb +243 -0
- data/lib/pulp_deb_client/models/async_operation_response.rb +202 -0
- data/lib/pulp_deb_client/models/deb_distribution.rb +337 -0
- data/lib/pulp_deb_client/models/deb_publication.rb +282 -0
- data/lib/pulp_deb_client/models/deb_remote.rb +653 -0
- data/lib/pulp_deb_client/models/generic_content.rb +444 -0
- data/lib/pulp_deb_client/models/inline_response200.rb +235 -0
- data/lib/pulp_deb_client/models/inline_response2001.rb +235 -0
- data/lib/pulp_deb_client/models/inline_response2002.rb +235 -0
- data/lib/pulp_deb_client/models/inline_response2003.rb +235 -0
- data/lib/pulp_deb_client/models/inline_response2004.rb +235 -0
- data/lib/pulp_deb_client/models/inline_response2005.rb +235 -0
- data/lib/pulp_deb_client/models/inline_response2006.rb +235 -0
- data/lib/pulp_deb_client/models/inline_response2007.rb +235 -0
- data/lib/pulp_deb_client/models/inline_response2008.rb +235 -0
- data/lib/pulp_deb_client/models/inline_response2009.rb +235 -0
- data/lib/pulp_deb_client/models/installer_file_index.rb +355 -0
- data/lib/pulp_deb_client/models/installer_package.rb +1101 -0
- data/lib/pulp_deb_client/models/package.rb +1101 -0
- data/lib/pulp_deb_client/models/package_index.rb +355 -0
- data/lib/pulp_deb_client/models/release.rb +356 -0
- data/lib/pulp_deb_client/models/repository_sync_url.rb +214 -0
- data/lib/pulp_deb_client/models/verbatim_publication.rb +258 -0
- data/lib/pulp_deb_client/version.rb +15 -0
- data/lib/pulp_deb_client.rb +71 -0
- data/pulp_deb_client.gemspec +39 -0
- data/spec/api/content_generic_contents_api_spec.rb +80 -0
- data/spec/api/content_installer_file_index_api_spec.rb +77 -0
- data/spec/api/content_installer_packages_api_spec.rb +80 -0
- data/spec/api/content_package_index_api_spec.rb +77 -0
- data/spec/api/content_packages_api_spec.rb +80 -0
- data/spec/api/content_releases_api_spec.rb +77 -0
- data/spec/api/distributions_apt_api_spec.rb +118 -0
- data/spec/api/publications_apt_api_spec.rb +87 -0
- data/spec/api/publications_verbatim_api_spec.rb +87 -0
- data/spec/api/remotes_apt_api_spec.rb +132 -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/deb_distribution_spec.rb +77 -0
- data/spec/models/deb_publication_spec.rb +83 -0
- data/spec/models/deb_remote_spec.rb +165 -0
- data/spec/models/generic_content_spec.rb +113 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response2002_spec.rb +59 -0
- data/spec/models/inline_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response2008_spec.rb +59 -0
- data/spec/models/inline_response2009_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/installer_file_index_spec.rb +83 -0
- data/spec/models/installer_package_spec.rb +287 -0
- data/spec/models/package_index_spec.rb +83 -0
- data/spec/models/package_spec.rb +287 -0
- data/spec/models/release_spec.rb +83 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/verbatim_publication_spec.rb +71 -0
- data/spec/spec_helper.rb +111 -0
- metadata +242 -0
@@ -0,0 +1,417 @@
|
|
1
|
+
# PulpDebClient::RemotesAptApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](RemotesAptApi.md#create) | **POST** /pulp/api/v3/remotes/deb/apt/ | Create a deb remote
|
8
|
+
[**delete**](RemotesAptApi.md#delete) | **DELETE** {deb_remote_href} | Delete a deb remote
|
9
|
+
[**list**](RemotesAptApi.md#list) | **GET** /pulp/api/v3/remotes/deb/apt/ | List deb remotes
|
10
|
+
[**partial_update**](RemotesAptApi.md#partial_update) | **PATCH** {deb_remote_href} | Partially update a deb remote
|
11
|
+
[**read**](RemotesAptApi.md#read) | **GET** {deb_remote_href} | Inspect a deb remote
|
12
|
+
[**sync**](RemotesAptApi.md#sync) | **POST** {deb_remote_href}sync/ |
|
13
|
+
[**update**](RemotesAptApi.md#update) | **PUT** {deb_remote_href} | Update a deb remote
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## create
|
18
|
+
|
19
|
+
> DebRemote create(data)
|
20
|
+
|
21
|
+
Create a deb remote
|
22
|
+
|
23
|
+
A ViewSet for DebRemote.
|
24
|
+
|
25
|
+
### Example
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'pulp_deb_client'
|
30
|
+
# setup authorization
|
31
|
+
PulpDebClient.configure do |config|
|
32
|
+
# Configure HTTP basic authorization: Basic
|
33
|
+
config.username = 'YOUR USERNAME'
|
34
|
+
config.password = 'YOUR PASSWORD'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = PulpDebClient::RemotesAptApi.new
|
38
|
+
data = PulpDebClient::DebRemote.new # DebRemote |
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Create a deb remote
|
42
|
+
result = api_instance.create(data)
|
43
|
+
p result
|
44
|
+
rescue PulpDebClient::ApiError => e
|
45
|
+
puts "Exception when calling RemotesAptApi->create: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**data** | [**DebRemote**](DebRemote.md)| |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**DebRemote**](DebRemote.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[Basic](../README.md#Basic)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: application/json
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
## delete
|
71
|
+
|
72
|
+
> AsyncOperationResponse delete(deb_remote_href)
|
73
|
+
|
74
|
+
Delete a deb remote
|
75
|
+
|
76
|
+
Trigger an asynchronous delete task
|
77
|
+
|
78
|
+
### Example
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'pulp_deb_client'
|
83
|
+
# setup authorization
|
84
|
+
PulpDebClient.configure do |config|
|
85
|
+
# Configure HTTP basic authorization: Basic
|
86
|
+
config.username = 'YOUR USERNAME'
|
87
|
+
config.password = 'YOUR PASSWORD'
|
88
|
+
end
|
89
|
+
|
90
|
+
api_instance = PulpDebClient::RemotesAptApi.new
|
91
|
+
deb_remote_href = 'deb_remote_href_example' # String | URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
92
|
+
|
93
|
+
begin
|
94
|
+
#Delete a deb remote
|
95
|
+
result = api_instance.delete(deb_remote_href)
|
96
|
+
p result
|
97
|
+
rescue PulpDebClient::ApiError => e
|
98
|
+
puts "Exception when calling RemotesAptApi->delete: #{e}"
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
### Parameters
|
103
|
+
|
104
|
+
|
105
|
+
Name | Type | Description | Notes
|
106
|
+
------------- | ------------- | ------------- | -------------
|
107
|
+
**deb_remote_href** | **String**| URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/ |
|
108
|
+
|
109
|
+
### Return type
|
110
|
+
|
111
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
112
|
+
|
113
|
+
### Authorization
|
114
|
+
|
115
|
+
[Basic](../README.md#Basic)
|
116
|
+
|
117
|
+
### HTTP request headers
|
118
|
+
|
119
|
+
- **Content-Type**: Not defined
|
120
|
+
- **Accept**: application/json
|
121
|
+
|
122
|
+
|
123
|
+
## list
|
124
|
+
|
125
|
+
> InlineResponse2009 list(opts)
|
126
|
+
|
127
|
+
List deb remotes
|
128
|
+
|
129
|
+
A ViewSet for DebRemote.
|
130
|
+
|
131
|
+
### Example
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
# load the gem
|
135
|
+
require 'pulp_deb_client'
|
136
|
+
# setup authorization
|
137
|
+
PulpDebClient.configure do |config|
|
138
|
+
# Configure HTTP basic authorization: Basic
|
139
|
+
config.username = 'YOUR USERNAME'
|
140
|
+
config.password = 'YOUR PASSWORD'
|
141
|
+
end
|
142
|
+
|
143
|
+
api_instance = PulpDebClient::RemotesAptApi.new
|
144
|
+
opts = {
|
145
|
+
name: 'name_example', # String |
|
146
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
147
|
+
_last_updated__lt: '_last_updated__lt_example', # String | Filter results where _last_updated is less than value
|
148
|
+
_last_updated__lte: '_last_updated__lte_example', # String | Filter results where _last_updated is less than or equal to value
|
149
|
+
_last_updated__gt: '_last_updated__gt_example', # String | Filter results where _last_updated is greater than value
|
150
|
+
_last_updated__gte: '_last_updated__gte_example', # String | Filter results where _last_updated is greater than or equal to value
|
151
|
+
_last_updated__range: '_last_updated__range_example', # String | Filter results where _last_updated is between two comma separated values
|
152
|
+
_last_updated: '_last_updated_example', # String | ISO 8601 formatted dates are supported
|
153
|
+
limit: 56, # Integer | Number of results to return per page.
|
154
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
155
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
156
|
+
}
|
157
|
+
|
158
|
+
begin
|
159
|
+
#List deb remotes
|
160
|
+
result = api_instance.list(opts)
|
161
|
+
p result
|
162
|
+
rescue PulpDebClient::ApiError => e
|
163
|
+
puts "Exception when calling RemotesAptApi->list: #{e}"
|
164
|
+
end
|
165
|
+
```
|
166
|
+
|
167
|
+
### Parameters
|
168
|
+
|
169
|
+
|
170
|
+
Name | Type | Description | Notes
|
171
|
+
------------- | ------------- | ------------- | -------------
|
172
|
+
**name** | **String**| | [optional]
|
173
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
174
|
+
**_last_updated__lt** | **String**| Filter results where _last_updated is less than value | [optional]
|
175
|
+
**_last_updated__lte** | **String**| Filter results where _last_updated is less than or equal to value | [optional]
|
176
|
+
**_last_updated__gt** | **String**| Filter results where _last_updated is greater than value | [optional]
|
177
|
+
**_last_updated__gte** | **String**| Filter results where _last_updated is greater than or equal to value | [optional]
|
178
|
+
**_last_updated__range** | **String**| Filter results where _last_updated is between two comma separated values | [optional]
|
179
|
+
**_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
|
180
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
181
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
182
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
183
|
+
|
184
|
+
### Return type
|
185
|
+
|
186
|
+
[**InlineResponse2009**](InlineResponse2009.md)
|
187
|
+
|
188
|
+
### Authorization
|
189
|
+
|
190
|
+
[Basic](../README.md#Basic)
|
191
|
+
|
192
|
+
### HTTP request headers
|
193
|
+
|
194
|
+
- **Content-Type**: Not defined
|
195
|
+
- **Accept**: application/json
|
196
|
+
|
197
|
+
|
198
|
+
## partial_update
|
199
|
+
|
200
|
+
> AsyncOperationResponse partial_update(deb_remote_href, data)
|
201
|
+
|
202
|
+
Partially update a deb remote
|
203
|
+
|
204
|
+
Trigger an asynchronous partial update task
|
205
|
+
|
206
|
+
### Example
|
207
|
+
|
208
|
+
```ruby
|
209
|
+
# load the gem
|
210
|
+
require 'pulp_deb_client'
|
211
|
+
# setup authorization
|
212
|
+
PulpDebClient.configure do |config|
|
213
|
+
# Configure HTTP basic authorization: Basic
|
214
|
+
config.username = 'YOUR USERNAME'
|
215
|
+
config.password = 'YOUR PASSWORD'
|
216
|
+
end
|
217
|
+
|
218
|
+
api_instance = PulpDebClient::RemotesAptApi.new
|
219
|
+
deb_remote_href = 'deb_remote_href_example' # String | URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
220
|
+
data = PulpDebClient::DebRemote.new # DebRemote |
|
221
|
+
|
222
|
+
begin
|
223
|
+
#Partially update a deb remote
|
224
|
+
result = api_instance.partial_update(deb_remote_href, data)
|
225
|
+
p result
|
226
|
+
rescue PulpDebClient::ApiError => e
|
227
|
+
puts "Exception when calling RemotesAptApi->partial_update: #{e}"
|
228
|
+
end
|
229
|
+
```
|
230
|
+
|
231
|
+
### Parameters
|
232
|
+
|
233
|
+
|
234
|
+
Name | Type | Description | Notes
|
235
|
+
------------- | ------------- | ------------- | -------------
|
236
|
+
**deb_remote_href** | **String**| URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/ |
|
237
|
+
**data** | [**DebRemote**](DebRemote.md)| |
|
238
|
+
|
239
|
+
### Return type
|
240
|
+
|
241
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
242
|
+
|
243
|
+
### Authorization
|
244
|
+
|
245
|
+
[Basic](../README.md#Basic)
|
246
|
+
|
247
|
+
### HTTP request headers
|
248
|
+
|
249
|
+
- **Content-Type**: application/json
|
250
|
+
- **Accept**: application/json
|
251
|
+
|
252
|
+
|
253
|
+
## read
|
254
|
+
|
255
|
+
> DebRemote read(deb_remote_href, opts)
|
256
|
+
|
257
|
+
Inspect a deb remote
|
258
|
+
|
259
|
+
A ViewSet for DebRemote.
|
260
|
+
|
261
|
+
### Example
|
262
|
+
|
263
|
+
```ruby
|
264
|
+
# load the gem
|
265
|
+
require 'pulp_deb_client'
|
266
|
+
# setup authorization
|
267
|
+
PulpDebClient.configure do |config|
|
268
|
+
# Configure HTTP basic authorization: Basic
|
269
|
+
config.username = 'YOUR USERNAME'
|
270
|
+
config.password = 'YOUR PASSWORD'
|
271
|
+
end
|
272
|
+
|
273
|
+
api_instance = PulpDebClient::RemotesAptApi.new
|
274
|
+
deb_remote_href = 'deb_remote_href_example' # String | URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
275
|
+
opts = {
|
276
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
277
|
+
}
|
278
|
+
|
279
|
+
begin
|
280
|
+
#Inspect a deb remote
|
281
|
+
result = api_instance.read(deb_remote_href, opts)
|
282
|
+
p result
|
283
|
+
rescue PulpDebClient::ApiError => e
|
284
|
+
puts "Exception when calling RemotesAptApi->read: #{e}"
|
285
|
+
end
|
286
|
+
```
|
287
|
+
|
288
|
+
### Parameters
|
289
|
+
|
290
|
+
|
291
|
+
Name | Type | Description | Notes
|
292
|
+
------------- | ------------- | ------------- | -------------
|
293
|
+
**deb_remote_href** | **String**| URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/ |
|
294
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
295
|
+
|
296
|
+
### Return type
|
297
|
+
|
298
|
+
[**DebRemote**](DebRemote.md)
|
299
|
+
|
300
|
+
### Authorization
|
301
|
+
|
302
|
+
[Basic](../README.md#Basic)
|
303
|
+
|
304
|
+
### HTTP request headers
|
305
|
+
|
306
|
+
- **Content-Type**: Not defined
|
307
|
+
- **Accept**: application/json
|
308
|
+
|
309
|
+
|
310
|
+
## sync
|
311
|
+
|
312
|
+
> AsyncOperationResponse sync(deb_remote_href, data)
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
Trigger an asynchronous task to sync content
|
317
|
+
|
318
|
+
### Example
|
319
|
+
|
320
|
+
```ruby
|
321
|
+
# load the gem
|
322
|
+
require 'pulp_deb_client'
|
323
|
+
# setup authorization
|
324
|
+
PulpDebClient.configure do |config|
|
325
|
+
# Configure HTTP basic authorization: Basic
|
326
|
+
config.username = 'YOUR USERNAME'
|
327
|
+
config.password = 'YOUR PASSWORD'
|
328
|
+
end
|
329
|
+
|
330
|
+
api_instance = PulpDebClient::RemotesAptApi.new
|
331
|
+
deb_remote_href = 'deb_remote_href_example' # String | URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
332
|
+
data = PulpDebClient::RepositorySyncURL.new # RepositorySyncURL |
|
333
|
+
|
334
|
+
begin
|
335
|
+
result = api_instance.sync(deb_remote_href, data)
|
336
|
+
p result
|
337
|
+
rescue PulpDebClient::ApiError => e
|
338
|
+
puts "Exception when calling RemotesAptApi->sync: #{e}"
|
339
|
+
end
|
340
|
+
```
|
341
|
+
|
342
|
+
### Parameters
|
343
|
+
|
344
|
+
|
345
|
+
Name | Type | Description | Notes
|
346
|
+
------------- | ------------- | ------------- | -------------
|
347
|
+
**deb_remote_href** | **String**| URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/ |
|
348
|
+
**data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
349
|
+
|
350
|
+
### Return type
|
351
|
+
|
352
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
353
|
+
|
354
|
+
### Authorization
|
355
|
+
|
356
|
+
[Basic](../README.md#Basic)
|
357
|
+
|
358
|
+
### HTTP request headers
|
359
|
+
|
360
|
+
- **Content-Type**: application/json
|
361
|
+
- **Accept**: application/json
|
362
|
+
|
363
|
+
|
364
|
+
## update
|
365
|
+
|
366
|
+
> AsyncOperationResponse update(deb_remote_href, data)
|
367
|
+
|
368
|
+
Update a deb remote
|
369
|
+
|
370
|
+
Trigger an asynchronous update task
|
371
|
+
|
372
|
+
### Example
|
373
|
+
|
374
|
+
```ruby
|
375
|
+
# load the gem
|
376
|
+
require 'pulp_deb_client'
|
377
|
+
# setup authorization
|
378
|
+
PulpDebClient.configure do |config|
|
379
|
+
# Configure HTTP basic authorization: Basic
|
380
|
+
config.username = 'YOUR USERNAME'
|
381
|
+
config.password = 'YOUR PASSWORD'
|
382
|
+
end
|
383
|
+
|
384
|
+
api_instance = PulpDebClient::RemotesAptApi.new
|
385
|
+
deb_remote_href = 'deb_remote_href_example' # String | URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
386
|
+
data = PulpDebClient::DebRemote.new # DebRemote |
|
387
|
+
|
388
|
+
begin
|
389
|
+
#Update a deb remote
|
390
|
+
result = api_instance.update(deb_remote_href, data)
|
391
|
+
p result
|
392
|
+
rescue PulpDebClient::ApiError => e
|
393
|
+
puts "Exception when calling RemotesAptApi->update: #{e}"
|
394
|
+
end
|
395
|
+
```
|
396
|
+
|
397
|
+
### Parameters
|
398
|
+
|
399
|
+
|
400
|
+
Name | Type | Description | Notes
|
401
|
+
------------- | ------------- | ------------- | -------------
|
402
|
+
**deb_remote_href** | **String**| URI of Deb Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/ |
|
403
|
+
**data** | [**DebRemote**](DebRemote.md)| |
|
404
|
+
|
405
|
+
### Return type
|
406
|
+
|
407
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
408
|
+
|
409
|
+
### Authorization
|
410
|
+
|
411
|
+
[Basic](../README.md#Basic)
|
412
|
+
|
413
|
+
### HTTP request headers
|
414
|
+
|
415
|
+
- **Content-Type**: application/json
|
416
|
+
- **Accept**: application/json
|
417
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpDebClient::RepositorySyncURL
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**repository** | **String** | A URI of the repository to be synchronized. |
|
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 'PulpDebClient'
|
14
|
+
|
15
|
+
instance = PulpDebClient::RepositorySyncURL.new(repository: null,
|
16
|
+
mirror: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# PulpDebClient::VerbatimPublication
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**_href** | **String** | | [optional]
|
8
|
+
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
9
|
+
**_type** | **String** | | [optional]
|
10
|
+
**publisher** | **String** | | [optional]
|
11
|
+
**repository_version** | **String** | | [optional]
|
12
|
+
**repository** | **String** | A URI of the repository to be published. | [optional]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'PulpDebClient'
|
18
|
+
|
19
|
+
instance = PulpDebClient::VerbatimPublication.new(_href: null,
|
20
|
+
_created: null,
|
21
|
+
_type: null,
|
22
|
+
publisher: null,
|
23
|
+
repository_version: null,
|
24
|
+
repository: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
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
|
+
|