pulp_rpm_client 3.0.0b4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +134 -0
  5. data/Rakefile +10 -0
  6. data/docs/AsyncOperationResponse.md +17 -0
  7. data/docs/ContentAdvisoriesApi.md +196 -0
  8. data/docs/ContentPackagesApi.md +208 -0
  9. data/docs/DistributionsRpmApi.md +352 -0
  10. data/docs/InlineResponse200.md +23 -0
  11. data/docs/InlineResponse2001.md +23 -0
  12. data/docs/InlineResponse2002.md +23 -0
  13. data/docs/InlineResponse2003.md +23 -0
  14. data/docs/InlineResponse2004.md +23 -0
  15. data/docs/Package.md +95 -0
  16. data/docs/PublicationsRpmApi.md +229 -0
  17. data/docs/RemotesRpmApi.md +412 -0
  18. data/docs/RepositorySyncURL.md +19 -0
  19. data/docs/RpmCopyApi.md +70 -0
  20. data/docs/RpmDistribution.md +29 -0
  21. data/docs/RpmPublication.md +27 -0
  22. data/docs/RpmRemote.md +45 -0
  23. data/docs/RpmUploadApi.md +66 -0
  24. data/docs/UpdateRecord.md +55 -0
  25. data/git_push.sh +55 -0
  26. data/lib/pulp_rpm_client/api/content_advisories_api.rb +243 -0
  27. data/lib/pulp_rpm_client/api/content_packages_api.rb +261 -0
  28. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +430 -0
  29. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +273 -0
  30. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +506 -0
  31. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +96 -0
  32. data/lib/pulp_rpm_client/api/rpm_upload_api.rb +90 -0
  33. data/lib/pulp_rpm_client/api_client.rb +387 -0
  34. data/lib/pulp_rpm_client/api_error.rb +57 -0
  35. data/lib/pulp_rpm_client/configuration.rb +251 -0
  36. data/lib/pulp_rpm_client/models/async_operation_response.rb +202 -0
  37. data/lib/pulp_rpm_client/models/inline_response200.rb +235 -0
  38. data/lib/pulp_rpm_client/models/inline_response2001.rb +235 -0
  39. data/lib/pulp_rpm_client/models/inline_response2002.rb +235 -0
  40. data/lib/pulp_rpm_client/models/inline_response2003.rb +235 -0
  41. data/lib/pulp_rpm_client/models/inline_response2004.rb +235 -0
  42. data/lib/pulp_rpm_client/models/package.rb +983 -0
  43. data/lib/pulp_rpm_client/models/repository_sync_url.rb +214 -0
  44. data/lib/pulp_rpm_client/models/rpm_distribution.rb +337 -0
  45. data/lib/pulp_rpm_client/models/rpm_publication.rb +258 -0
  46. data/lib/pulp_rpm_client/models/rpm_remote.rb +539 -0
  47. data/lib/pulp_rpm_client/models/update_record.rb +764 -0
  48. data/lib/pulp_rpm_client/version.rb +15 -0
  49. data/lib/pulp_rpm_client.rb +58 -0
  50. data/pulp_rpm_client.gemspec +45 -0
  51. data/spec/api/content_advisories_api_spec.rb +83 -0
  52. data/spec/api/content_packages_api_spec.rb +89 -0
  53. data/spec/api/distributions_rpm_api_spec.rb +116 -0
  54. data/spec/api/publications_rpm_api_spec.rb +85 -0
  55. data/spec/api/remotes_rpm_api_spec.rb +131 -0
  56. data/spec/api/rpm_copy_api_spec.rb +50 -0
  57. data/spec/api/rpm_upload_api_spec.rb +48 -0
  58. data/spec/api_client_spec.rb +226 -0
  59. data/spec/configuration_spec.rb +42 -0
  60. data/spec/models/async_operation_response_spec.rb +41 -0
  61. data/spec/models/inline_response2001_spec.rb +59 -0
  62. data/spec/models/inline_response2002_spec.rb +59 -0
  63. data/spec/models/inline_response2003_spec.rb +59 -0
  64. data/spec/models/inline_response2004_spec.rb +59 -0
  65. data/spec/models/inline_response200_spec.rb +59 -0
  66. data/spec/models/package_spec.rb +275 -0
  67. data/spec/models/repository_sync_url_spec.rb +47 -0
  68. data/spec/models/rpm_distribution_spec.rb +77 -0
  69. data/spec/models/rpm_publication_spec.rb +71 -0
  70. data/spec/models/rpm_remote_spec.rb +129 -0
  71. data/spec/models/update_record_spec.rb +155 -0
  72. data/spec/spec_helper.rb +111 -0
  73. metadata +317 -0
@@ -0,0 +1,229 @@
1
+ # PulpRpmClient::PublicationsRpmApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](PublicationsRpmApi.md#create) | **POST** /pulp/api/v3/publications/rpm/rpm/ | Create a rpm publication
8
+ [**delete**](PublicationsRpmApi.md#delete) | **DELETE** {rpm_publication_href} | Delete a rpm publication
9
+ [**list**](PublicationsRpmApi.md#list) | **GET** /pulp/api/v3/publications/rpm/rpm/ | List rpm publications
10
+ [**read**](PublicationsRpmApi.md#read) | **GET** {rpm_publication_href} | Inspect a rpm publication
11
+
12
+
13
+
14
+ ## create
15
+
16
+ > AsyncOperationResponse create(data)
17
+
18
+ Create a rpm publication
19
+
20
+ Trigger an asynchronous task to create a new RPM content publication.
21
+
22
+ ### Example
23
+
24
+ ```ruby
25
+ # load the gem
26
+ require 'pulp_rpm_client'
27
+ # setup authorization
28
+ PulpRpmClient.configure do |config|
29
+ # Configure HTTP basic authorization: Basic
30
+ config.username = 'YOUR USERNAME'
31
+ config.password = 'YOUR PASSWORD'
32
+ end
33
+
34
+ api_instance = PulpRpmClient::PublicationsRpmApi.new
35
+ data = PulpRpmClient::RpmPublication.new # RpmPublication |
36
+
37
+ begin
38
+ #Create a rpm publication
39
+ result = api_instance.create(data)
40
+ p result
41
+ rescue PulpRpmClient::ApiError => e
42
+ puts "Exception when calling PublicationsRpmApi->create: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **data** | [**RpmPublication**](RpmPublication.md)| |
52
+
53
+ ### Return type
54
+
55
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
56
+
57
+ ### Authorization
58
+
59
+ [Basic](../README.md#Basic)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: application/json
65
+
66
+
67
+ ## delete
68
+
69
+ > delete(rpm_publication_href)
70
+
71
+ Delete a rpm publication
72
+
73
+ ViewSet for Rpm Publications.
74
+
75
+ ### Example
76
+
77
+ ```ruby
78
+ # load the gem
79
+ require 'pulp_rpm_client'
80
+ # setup authorization
81
+ PulpRpmClient.configure do |config|
82
+ # Configure HTTP basic authorization: Basic
83
+ config.username = 'YOUR USERNAME'
84
+ config.password = 'YOUR PASSWORD'
85
+ end
86
+
87
+ api_instance = PulpRpmClient::PublicationsRpmApi.new
88
+ rpm_publication_href = 'rpm_publication_href_example' # String | URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
89
+
90
+ begin
91
+ #Delete a rpm publication
92
+ api_instance.delete(rpm_publication_href)
93
+ rescue PulpRpmClient::ApiError => e
94
+ puts "Exception when calling PublicationsRpmApi->delete: #{e}"
95
+ end
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+
101
+ Name | Type | Description | Notes
102
+ ------------- | ------------- | ------------- | -------------
103
+ **rpm_publication_href** | **String**| URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/ |
104
+
105
+ ### Return type
106
+
107
+ nil (empty response body)
108
+
109
+ ### Authorization
110
+
111
+ [Basic](../README.md#Basic)
112
+
113
+ ### HTTP request headers
114
+
115
+ - **Content-Type**: Not defined
116
+ - **Accept**: Not defined
117
+
118
+
119
+ ## list
120
+
121
+ > InlineResponse2003 list(opts)
122
+
123
+ List rpm publications
124
+
125
+ ViewSet for Rpm Publications.
126
+
127
+ ### Example
128
+
129
+ ```ruby
130
+ # load the gem
131
+ require 'pulp_rpm_client'
132
+ # setup authorization
133
+ PulpRpmClient.configure do |config|
134
+ # Configure HTTP basic authorization: Basic
135
+ config.username = 'YOUR USERNAME'
136
+ config.password = 'YOUR PASSWORD'
137
+ end
138
+
139
+ api_instance = PulpRpmClient::PublicationsRpmApi.new
140
+ opts = {
141
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
142
+ page: 56, # Integer | A page number within the paginated result set.
143
+ page_size: 56 # Integer | Number of results to return per page.
144
+ }
145
+
146
+ begin
147
+ #List rpm publications
148
+ result = api_instance.list(opts)
149
+ p result
150
+ rescue PulpRpmClient::ApiError => e
151
+ puts "Exception when calling PublicationsRpmApi->list: #{e}"
152
+ end
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+
158
+ Name | Type | Description | Notes
159
+ ------------- | ------------- | ------------- | -------------
160
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
161
+ **page** | **Integer**| A page number within the paginated result set. | [optional]
162
+ **page_size** | **Integer**| Number of results to return per page. | [optional]
163
+
164
+ ### Return type
165
+
166
+ [**InlineResponse2003**](InlineResponse2003.md)
167
+
168
+ ### Authorization
169
+
170
+ [Basic](../README.md#Basic)
171
+
172
+ ### HTTP request headers
173
+
174
+ - **Content-Type**: Not defined
175
+ - **Accept**: application/json
176
+
177
+
178
+ ## read
179
+
180
+ > RpmPublication read(rpm_publication_href)
181
+
182
+ Inspect a rpm publication
183
+
184
+ ViewSet for Rpm Publications.
185
+
186
+ ### Example
187
+
188
+ ```ruby
189
+ # load the gem
190
+ require 'pulp_rpm_client'
191
+ # setup authorization
192
+ PulpRpmClient.configure do |config|
193
+ # Configure HTTP basic authorization: Basic
194
+ config.username = 'YOUR USERNAME'
195
+ config.password = 'YOUR PASSWORD'
196
+ end
197
+
198
+ api_instance = PulpRpmClient::PublicationsRpmApi.new
199
+ rpm_publication_href = 'rpm_publication_href_example' # String | URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
200
+
201
+ begin
202
+ #Inspect a rpm publication
203
+ result = api_instance.read(rpm_publication_href)
204
+ p result
205
+ rescue PulpRpmClient::ApiError => e
206
+ puts "Exception when calling PublicationsRpmApi->read: #{e}"
207
+ end
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+
213
+ Name | Type | Description | Notes
214
+ ------------- | ------------- | ------------- | -------------
215
+ **rpm_publication_href** | **String**| URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/ |
216
+
217
+ ### Return type
218
+
219
+ [**RpmPublication**](RpmPublication.md)
220
+
221
+ ### Authorization
222
+
223
+ [Basic](../README.md#Basic)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: Not defined
228
+ - **Accept**: application/json
229
+
@@ -0,0 +1,412 @@
1
+ # PulpRpmClient::RemotesRpmApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](RemotesRpmApi.md#create) | **POST** /pulp/api/v3/remotes/rpm/rpm/ | Create a rpm remote
8
+ [**delete**](RemotesRpmApi.md#delete) | **DELETE** {rpm_remote_href} | Delete a rpm remote
9
+ [**list**](RemotesRpmApi.md#list) | **GET** /pulp/api/v3/remotes/rpm/rpm/ | List rpm remotes
10
+ [**partial_update**](RemotesRpmApi.md#partial_update) | **PATCH** {rpm_remote_href} | Partially update a rpm remote
11
+ [**read**](RemotesRpmApi.md#read) | **GET** {rpm_remote_href} | Inspect a rpm remote
12
+ [**sync**](RemotesRpmApi.md#sync) | **POST** {rpm_remote_href}sync/ | Sync from remote
13
+ [**update**](RemotesRpmApi.md#update) | **PUT** {rpm_remote_href} | Update a rpm remote
14
+
15
+
16
+
17
+ ## create
18
+
19
+ > RpmRemote create(data)
20
+
21
+ Create a rpm remote
22
+
23
+ A ViewSet for RpmRemote.
24
+
25
+ ### Example
26
+
27
+ ```ruby
28
+ # load the gem
29
+ require 'pulp_rpm_client'
30
+ # setup authorization
31
+ PulpRpmClient.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 = PulpRpmClient::RemotesRpmApi.new
38
+ data = PulpRpmClient::RpmRemote.new # RpmRemote |
39
+
40
+ begin
41
+ #Create a rpm remote
42
+ result = api_instance.create(data)
43
+ p result
44
+ rescue PulpRpmClient::ApiError => e
45
+ puts "Exception when calling RemotesRpmApi->create: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **data** | [**RpmRemote**](RpmRemote.md)| |
55
+
56
+ ### Return type
57
+
58
+ [**RpmRemote**](RpmRemote.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(rpm_remote_href)
73
+
74
+ Delete a rpm remote
75
+
76
+ Trigger an asynchronous delete task
77
+
78
+ ### Example
79
+
80
+ ```ruby
81
+ # load the gem
82
+ require 'pulp_rpm_client'
83
+ # setup authorization
84
+ PulpRpmClient.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 = PulpRpmClient::RemotesRpmApi.new
91
+ rpm_remote_href = 'rpm_remote_href_example' # String | URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
92
+
93
+ begin
94
+ #Delete a rpm remote
95
+ result = api_instance.delete(rpm_remote_href)
96
+ p result
97
+ rescue PulpRpmClient::ApiError => e
98
+ puts "Exception when calling RemotesRpmApi->delete: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+
105
+ Name | Type | Description | Notes
106
+ ------------- | ------------- | ------------- | -------------
107
+ **rpm_remote_href** | **String**| URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/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
+ > InlineResponse2004 list(opts)
126
+
127
+ List rpm remotes
128
+
129
+ A ViewSet for RpmRemote.
130
+
131
+ ### Example
132
+
133
+ ```ruby
134
+ # load the gem
135
+ require 'pulp_rpm_client'
136
+ # setup authorization
137
+ PulpRpmClient.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 = PulpRpmClient::RemotesRpmApi.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
+ page: 56, # Integer | A page number within the paginated result set.
154
+ page_size: 56 # Integer | Number of results to return per page.
155
+ }
156
+
157
+ begin
158
+ #List rpm remotes
159
+ result = api_instance.list(opts)
160
+ p result
161
+ rescue PulpRpmClient::ApiError => e
162
+ puts "Exception when calling RemotesRpmApi->list: #{e}"
163
+ end
164
+ ```
165
+
166
+ ### Parameters
167
+
168
+
169
+ Name | Type | Description | Notes
170
+ ------------- | ------------- | ------------- | -------------
171
+ **name** | **String**| | [optional]
172
+ **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
173
+ **_last_updated__lt** | **String**| Filter results where _last_updated is less than value | [optional]
174
+ **_last_updated__lte** | **String**| Filter results where _last_updated is less than or equal to value | [optional]
175
+ **_last_updated__gt** | **String**| Filter results where _last_updated is greater than value | [optional]
176
+ **_last_updated__gte** | **String**| Filter results where _last_updated is greater than or equal to value | [optional]
177
+ **_last_updated__range** | **String**| Filter results where _last_updated is between two comma separated values | [optional]
178
+ **_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
179
+ **page** | **Integer**| A page number within the paginated result set. | [optional]
180
+ **page_size** | **Integer**| Number of results to return per page. | [optional]
181
+
182
+ ### Return type
183
+
184
+ [**InlineResponse2004**](InlineResponse2004.md)
185
+
186
+ ### Authorization
187
+
188
+ [Basic](../README.md#Basic)
189
+
190
+ ### HTTP request headers
191
+
192
+ - **Content-Type**: Not defined
193
+ - **Accept**: application/json
194
+
195
+
196
+ ## partial_update
197
+
198
+ > AsyncOperationResponse partial_update(rpm_remote_href, data)
199
+
200
+ Partially update a rpm remote
201
+
202
+ Trigger an asynchronous partial update task
203
+
204
+ ### Example
205
+
206
+ ```ruby
207
+ # load the gem
208
+ require 'pulp_rpm_client'
209
+ # setup authorization
210
+ PulpRpmClient.configure do |config|
211
+ # Configure HTTP basic authorization: Basic
212
+ config.username = 'YOUR USERNAME'
213
+ config.password = 'YOUR PASSWORD'
214
+ end
215
+
216
+ api_instance = PulpRpmClient::RemotesRpmApi.new
217
+ rpm_remote_href = 'rpm_remote_href_example' # String | URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
218
+ data = PulpRpmClient::RpmRemote.new # RpmRemote |
219
+
220
+ begin
221
+ #Partially update a rpm remote
222
+ result = api_instance.partial_update(rpm_remote_href, data)
223
+ p result
224
+ rescue PulpRpmClient::ApiError => e
225
+ puts "Exception when calling RemotesRpmApi->partial_update: #{e}"
226
+ end
227
+ ```
228
+
229
+ ### Parameters
230
+
231
+
232
+ Name | Type | Description | Notes
233
+ ------------- | ------------- | ------------- | -------------
234
+ **rpm_remote_href** | **String**| URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/ |
235
+ **data** | [**RpmRemote**](RpmRemote.md)| |
236
+
237
+ ### Return type
238
+
239
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
240
+
241
+ ### Authorization
242
+
243
+ [Basic](../README.md#Basic)
244
+
245
+ ### HTTP request headers
246
+
247
+ - **Content-Type**: application/json
248
+ - **Accept**: application/json
249
+
250
+
251
+ ## read
252
+
253
+ > RpmRemote read(rpm_remote_href)
254
+
255
+ Inspect a rpm remote
256
+
257
+ A ViewSet for RpmRemote.
258
+
259
+ ### Example
260
+
261
+ ```ruby
262
+ # load the gem
263
+ require 'pulp_rpm_client'
264
+ # setup authorization
265
+ PulpRpmClient.configure do |config|
266
+ # Configure HTTP basic authorization: Basic
267
+ config.username = 'YOUR USERNAME'
268
+ config.password = 'YOUR PASSWORD'
269
+ end
270
+
271
+ api_instance = PulpRpmClient::RemotesRpmApi.new
272
+ rpm_remote_href = 'rpm_remote_href_example' # String | URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
273
+
274
+ begin
275
+ #Inspect a rpm remote
276
+ result = api_instance.read(rpm_remote_href)
277
+ p result
278
+ rescue PulpRpmClient::ApiError => e
279
+ puts "Exception when calling RemotesRpmApi->read: #{e}"
280
+ end
281
+ ```
282
+
283
+ ### Parameters
284
+
285
+
286
+ Name | Type | Description | Notes
287
+ ------------- | ------------- | ------------- | -------------
288
+ **rpm_remote_href** | **String**| URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/ |
289
+
290
+ ### Return type
291
+
292
+ [**RpmRemote**](RpmRemote.md)
293
+
294
+ ### Authorization
295
+
296
+ [Basic](../README.md#Basic)
297
+
298
+ ### HTTP request headers
299
+
300
+ - **Content-Type**: Not defined
301
+ - **Accept**: application/json
302
+
303
+
304
+ ## sync
305
+
306
+ > AsyncOperationResponse sync(rpm_remote_href, data)
307
+
308
+ Sync from remote
309
+
310
+ Trigger an asynchronous task to sync RPM content.
311
+
312
+ ### Example
313
+
314
+ ```ruby
315
+ # load the gem
316
+ require 'pulp_rpm_client'
317
+ # setup authorization
318
+ PulpRpmClient.configure do |config|
319
+ # Configure HTTP basic authorization: Basic
320
+ config.username = 'YOUR USERNAME'
321
+ config.password = 'YOUR PASSWORD'
322
+ end
323
+
324
+ api_instance = PulpRpmClient::RemotesRpmApi.new
325
+ rpm_remote_href = 'rpm_remote_href_example' # String | URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
326
+ data = PulpRpmClient::RepositorySyncURL.new # RepositorySyncURL |
327
+
328
+ begin
329
+ #Sync from remote
330
+ result = api_instance.sync(rpm_remote_href, data)
331
+ p result
332
+ rescue PulpRpmClient::ApiError => e
333
+ puts "Exception when calling RemotesRpmApi->sync: #{e}"
334
+ end
335
+ ```
336
+
337
+ ### Parameters
338
+
339
+
340
+ Name | Type | Description | Notes
341
+ ------------- | ------------- | ------------- | -------------
342
+ **rpm_remote_href** | **String**| URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/ |
343
+ **data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
344
+
345
+ ### Return type
346
+
347
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
348
+
349
+ ### Authorization
350
+
351
+ [Basic](../README.md#Basic)
352
+
353
+ ### HTTP request headers
354
+
355
+ - **Content-Type**: application/json
356
+ - **Accept**: application/json
357
+
358
+
359
+ ## update
360
+
361
+ > AsyncOperationResponse update(rpm_remote_href, data)
362
+
363
+ Update a rpm remote
364
+
365
+ Trigger an asynchronous update task
366
+
367
+ ### Example
368
+
369
+ ```ruby
370
+ # load the gem
371
+ require 'pulp_rpm_client'
372
+ # setup authorization
373
+ PulpRpmClient.configure do |config|
374
+ # Configure HTTP basic authorization: Basic
375
+ config.username = 'YOUR USERNAME'
376
+ config.password = 'YOUR PASSWORD'
377
+ end
378
+
379
+ api_instance = PulpRpmClient::RemotesRpmApi.new
380
+ rpm_remote_href = 'rpm_remote_href_example' # String | URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
381
+ data = PulpRpmClient::RpmRemote.new # RpmRemote |
382
+
383
+ begin
384
+ #Update a rpm remote
385
+ result = api_instance.update(rpm_remote_href, data)
386
+ p result
387
+ rescue PulpRpmClient::ApiError => e
388
+ puts "Exception when calling RemotesRpmApi->update: #{e}"
389
+ end
390
+ ```
391
+
392
+ ### Parameters
393
+
394
+
395
+ Name | Type | Description | Notes
396
+ ------------- | ------------- | ------------- | -------------
397
+ **rpm_remote_href** | **String**| URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/ |
398
+ **data** | [**RpmRemote**](RpmRemote.md)| |
399
+
400
+ ### Return type
401
+
402
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
403
+
404
+ ### Authorization
405
+
406
+ [Basic](../README.md#Basic)
407
+
408
+ ### HTTP request headers
409
+
410
+ - **Content-Type**: application/json
411
+ - **Accept**: application/json
412
+
@@ -0,0 +1,19 @@
1
+ # PulpRpmClient::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 'PulpRpmClient'
14
+
15
+ instance = PulpRpmClient::RepositorySyncURL.new(repository: null,
16
+ mirror: null)
17
+ ```
18
+
19
+