pulp_deb_client 2.0.0b2 → 2.0.0b3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +32 -18
- data/docs/ContentGenericContentsApi.md +12 -4
- data/docs/ContentInstallerFileIndexApi.md +20 -8
- data/docs/ContentInstallerPackagesApi.md +42 -4
- data/docs/ContentPackageIndexApi.md +20 -8
- data/docs/ContentPackagesApi.md +46 -6
- data/docs/{ContentReleasesApi.md → ContentReleaseFilesApi.md} +44 -32
- data/docs/ContentSummary.md +21 -0
- data/docs/{InstallerPackage.md → DebBasePackage.md} +40 -46
- data/docs/{DebDistribution.md → DebDebDistribution.md} +6 -6
- data/docs/{DebPublication.md → DebDebPublication.md} +5 -7
- data/docs/{DebRemote.md → DebDebRemote.md} +15 -21
- data/docs/DebDebRepository.md +27 -0
- data/docs/{GenericContent.md → DebGenericContent.md} +11 -17
- data/docs/{InstallerFileIndex.md → DebInstallerFileIndex.md} +5 -7
- data/docs/{PackageIndex.md → DebPackageIndex.md} +5 -7
- data/docs/{Release.md → DebReleaseFile.md} +5 -7
- data/docs/{VerbatimPublication.md → DebVerbatimPublication.md} +5 -7
- data/docs/DistributionsAptApi.md +16 -12
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PublicationsAptApi.md +12 -8
- data/docs/PublicationsVerbatimApi.md +12 -8
- data/docs/RemotesAptApi.md +30 -81
- data/docs/RepositoriesAptApi.md +465 -0
- data/docs/RepositoriesDebVersionsApi.md +214 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +16 -4
- data/lib/pulp_deb_client/api/content_installer_file_index_api.rb +27 -9
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +61 -4
- data/lib/pulp_deb_client/api/content_package_index_api.rb +27 -9
- data/lib/pulp_deb_client/api/content_packages_api.rb +67 -7
- data/lib/pulp_deb_client/api/{content_releases_api.rb → content_release_files_api.rb} +61 -43
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +19 -13
- data/lib/pulp_deb_client/api/publications_apt_api.rb +15 -9
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +15 -9
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +40 -102
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +568 -0
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +268 -0
- data/lib/pulp_deb_client/api_client.rb +1 -1
- data/lib/pulp_deb_client/api_error.rb +1 -1
- data/lib/pulp_deb_client/configuration.rb +1 -1
- data/lib/pulp_deb_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_deb_client/models/content_summary.rb +246 -0
- data/lib/pulp_deb_client/models/{package.rb → deb_base_package.rb} +28 -62
- data/lib/pulp_deb_client/models/{deb_distribution.rb → deb_deb_distribution.rb} +30 -36
- data/lib/pulp_deb_client/models/{deb_publication.rb → deb_deb_publication.rb} +29 -42
- data/lib/pulp_deb_client/models/{deb_remote.rb → deb_deb_remote.rb} +87 -147
- data/lib/pulp_deb_client/models/deb_deb_repository.rb +294 -0
- data/lib/pulp_deb_client/models/{generic_content.rb → deb_generic_content.rb} +28 -62
- data/lib/pulp_deb_client/models/{installer_file_index.rb → deb_installer_file_index.rb} +28 -42
- data/lib/pulp_deb_client/models/{package_index.rb → deb_package_index.rb} +28 -42
- data/lib/pulp_deb_client/models/{release.rb → deb_release_file.rb} +28 -42
- data/lib/pulp_deb_client/models/{verbatim_publication.rb → deb_verbatim_publication.rb} +29 -42
- data/lib/pulp_deb_client/models/inline_response200.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_deb_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2009.rb +15 -3
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +231 -0
- data/lib/pulp_deb_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_deb_client/models/repository_version.rb +244 -0
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +18 -12
- data/pulp_deb_client.gemspec +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +6 -2
- data/spec/api/content_installer_file_index_api_spec.rb +9 -3
- data/spec/api/content_installer_packages_api_spec.rb +21 -2
- data/spec/api/content_package_index_api_spec.rb +9 -3
- data/spec/api/content_packages_api_spec.rb +23 -3
- data/spec/api/{content_releases_api_spec.rb → content_release_files_api_spec.rb} +23 -17
- data/spec/api/distributions_apt_api_spec.rb +5 -3
- data/spec/api/publications_apt_api_spec.rb +5 -3
- data/spec/api/publications_verbatim_api_spec.rb +5 -3
- data/spec/api/remotes_apt_api_spec.rb +12 -22
- data/spec/api/repositories_apt_api_spec.rb +141 -0
- data/spec/api/repositories_deb_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/{package_spec.rb → deb_base_package_spec.rb} +9 -27
- data/spec/models/{deb_distribution_spec.rb → deb_deb_distribution_spec.rb} +9 -9
- data/spec/models/{deb_publication_spec.rb → deb_deb_publication_spec.rb} +9 -15
- data/spec/models/{deb_remote_spec.rb → deb_deb_remote_spec.rb} +14 -32
- data/spec/models/{verbatim_publication_spec.rb → deb_deb_repository_spec.rb} +13 -13
- data/spec/models/{generic_content_spec.rb → deb_generic_content_spec.rb} +9 -27
- data/spec/models/{package_index_spec.rb → deb_installer_file_index_spec.rb} +9 -15
- data/spec/models/{installer_file_index_spec.rb → deb_package_index_spec.rb} +9 -15
- data/spec/models/{release_spec.rb → deb_release_file_spec.rb} +9 -15
- data/spec/models/deb_verbatim_publication_spec.rb +65 -0
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/spec_helper.rb +1 -1
- metadata +70 -46
- data/docs/Package.md +0 -99
- data/lib/pulp_deb_client/models/installer_package.rb +0 -1101
- data/spec/models/installer_package_spec.rb +0 -287
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
# PulpDebClient::RepositoriesAptApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](RepositoriesAptApi.md#create) | **POST** /pulp/api/v3/repositories/deb/apt/ | Create a deb repository
|
|
8
|
+
[**delete**](RepositoriesAptApi.md#delete) | **DELETE** {deb_repository_href} | Delete a deb repository
|
|
9
|
+
[**list**](RepositoriesAptApi.md#list) | **GET** /pulp/api/v3/repositories/deb/apt/ | List deb repositorys
|
|
10
|
+
[**modify**](RepositoriesAptApi.md#modify) | **POST** {deb_repository_href}modify/ |
|
|
11
|
+
[**partial_update**](RepositoriesAptApi.md#partial_update) | **PATCH** {deb_repository_href} | Partially update a deb repository
|
|
12
|
+
[**read**](RepositoriesAptApi.md#read) | **GET** {deb_repository_href} | Inspect a deb repository
|
|
13
|
+
[**sync**](RepositoriesAptApi.md#sync) | **POST** {deb_repository_href}sync/ | Sync from remote
|
|
14
|
+
[**update**](RepositoriesAptApi.md#update) | **PUT** {deb_repository_href} | Update a deb repository
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## create
|
|
19
|
+
|
|
20
|
+
> DebDebRepository create(data)
|
|
21
|
+
|
|
22
|
+
Create a deb repository
|
|
23
|
+
|
|
24
|
+
A ViewSet for DebRepository.
|
|
25
|
+
|
|
26
|
+
### Example
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
# load the gem
|
|
30
|
+
require 'pulp_deb_client'
|
|
31
|
+
# setup authorization
|
|
32
|
+
PulpDebClient.configure do |config|
|
|
33
|
+
# Configure HTTP basic authorization: Basic
|
|
34
|
+
config.username = 'YOUR USERNAME'
|
|
35
|
+
config.password = 'YOUR PASSWORD'
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
|
39
|
+
data = PulpDebClient::DebDebRepository.new # DebDebRepository |
|
|
40
|
+
|
|
41
|
+
begin
|
|
42
|
+
#Create a deb repository
|
|
43
|
+
result = api_instance.create(data)
|
|
44
|
+
p result
|
|
45
|
+
rescue PulpDebClient::ApiError => e
|
|
46
|
+
puts "Exception when calling RepositoriesAptApi->create: #{e}"
|
|
47
|
+
end
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Parameters
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Name | Type | Description | Notes
|
|
54
|
+
------------- | ------------- | ------------- | -------------
|
|
55
|
+
**data** | [**DebDebRepository**](DebDebRepository.md)| |
|
|
56
|
+
|
|
57
|
+
### Return type
|
|
58
|
+
|
|
59
|
+
[**DebDebRepository**](DebDebRepository.md)
|
|
60
|
+
|
|
61
|
+
### Authorization
|
|
62
|
+
|
|
63
|
+
[Basic](../README.md#Basic)
|
|
64
|
+
|
|
65
|
+
### HTTP request headers
|
|
66
|
+
|
|
67
|
+
- **Content-Type**: application/json
|
|
68
|
+
- **Accept**: application/json
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## delete
|
|
72
|
+
|
|
73
|
+
> AsyncOperationResponse delete(deb_repository_href)
|
|
74
|
+
|
|
75
|
+
Delete a deb repository
|
|
76
|
+
|
|
77
|
+
Trigger an asynchronous task to delete a repository.
|
|
78
|
+
|
|
79
|
+
### Example
|
|
80
|
+
|
|
81
|
+
```ruby
|
|
82
|
+
# load the gem
|
|
83
|
+
require 'pulp_deb_client'
|
|
84
|
+
# setup authorization
|
|
85
|
+
PulpDebClient.configure do |config|
|
|
86
|
+
# Configure HTTP basic authorization: Basic
|
|
87
|
+
config.username = 'YOUR USERNAME'
|
|
88
|
+
config.password = 'YOUR PASSWORD'
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
|
92
|
+
deb_repository_href = 'deb_repository_href_example' # String | URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
93
|
+
|
|
94
|
+
begin
|
|
95
|
+
#Delete a deb repository
|
|
96
|
+
result = api_instance.delete(deb_repository_href)
|
|
97
|
+
p result
|
|
98
|
+
rescue PulpDebClient::ApiError => e
|
|
99
|
+
puts "Exception when calling RepositoriesAptApi->delete: #{e}"
|
|
100
|
+
end
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Parameters
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
Name | Type | Description | Notes
|
|
107
|
+
------------- | ------------- | ------------- | -------------
|
|
108
|
+
**deb_repository_href** | **String**| URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/ |
|
|
109
|
+
|
|
110
|
+
### Return type
|
|
111
|
+
|
|
112
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
113
|
+
|
|
114
|
+
### Authorization
|
|
115
|
+
|
|
116
|
+
[Basic](../README.md#Basic)
|
|
117
|
+
|
|
118
|
+
### HTTP request headers
|
|
119
|
+
|
|
120
|
+
- **Content-Type**: Not defined
|
|
121
|
+
- **Accept**: application/json
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## list
|
|
125
|
+
|
|
126
|
+
> InlineResponse2009 list(opts)
|
|
127
|
+
|
|
128
|
+
List deb repositorys
|
|
129
|
+
|
|
130
|
+
A ViewSet for DebRepository.
|
|
131
|
+
|
|
132
|
+
### Example
|
|
133
|
+
|
|
134
|
+
```ruby
|
|
135
|
+
# load the gem
|
|
136
|
+
require 'pulp_deb_client'
|
|
137
|
+
# setup authorization
|
|
138
|
+
PulpDebClient.configure do |config|
|
|
139
|
+
# Configure HTTP basic authorization: Basic
|
|
140
|
+
config.username = 'YOUR USERNAME'
|
|
141
|
+
config.password = 'YOUR PASSWORD'
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
|
145
|
+
opts = {
|
|
146
|
+
name: 'name_example', # String |
|
|
147
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
|
148
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
149
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
150
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
151
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
begin
|
|
155
|
+
#List deb repositorys
|
|
156
|
+
result = api_instance.list(opts)
|
|
157
|
+
p result
|
|
158
|
+
rescue PulpDebClient::ApiError => e
|
|
159
|
+
puts "Exception when calling RepositoriesAptApi->list: #{e}"
|
|
160
|
+
end
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Parameters
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
Name | Type | Description | Notes
|
|
167
|
+
------------- | ------------- | ------------- | -------------
|
|
168
|
+
**name** | **String**| | [optional]
|
|
169
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
|
170
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
171
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
172
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
173
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
174
|
+
|
|
175
|
+
### Return type
|
|
176
|
+
|
|
177
|
+
[**InlineResponse2009**](InlineResponse2009.md)
|
|
178
|
+
|
|
179
|
+
### Authorization
|
|
180
|
+
|
|
181
|
+
[Basic](../README.md#Basic)
|
|
182
|
+
|
|
183
|
+
### HTTP request headers
|
|
184
|
+
|
|
185
|
+
- **Content-Type**: Not defined
|
|
186
|
+
- **Accept**: application/json
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
## modify
|
|
190
|
+
|
|
191
|
+
> AsyncOperationResponse modify(deb_repository_href, data)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
Trigger an asynchronous task to create a new repository version.
|
|
196
|
+
|
|
197
|
+
### Example
|
|
198
|
+
|
|
199
|
+
```ruby
|
|
200
|
+
# load the gem
|
|
201
|
+
require 'pulp_deb_client'
|
|
202
|
+
# setup authorization
|
|
203
|
+
PulpDebClient.configure do |config|
|
|
204
|
+
# Configure HTTP basic authorization: Basic
|
|
205
|
+
config.username = 'YOUR USERNAME'
|
|
206
|
+
config.password = 'YOUR PASSWORD'
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
|
210
|
+
deb_repository_href = 'deb_repository_href_example' # String | URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
211
|
+
data = PulpDebClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
|
212
|
+
|
|
213
|
+
begin
|
|
214
|
+
result = api_instance.modify(deb_repository_href, data)
|
|
215
|
+
p result
|
|
216
|
+
rescue PulpDebClient::ApiError => e
|
|
217
|
+
puts "Exception when calling RepositoriesAptApi->modify: #{e}"
|
|
218
|
+
end
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Parameters
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
Name | Type | Description | Notes
|
|
225
|
+
------------- | ------------- | ------------- | -------------
|
|
226
|
+
**deb_repository_href** | **String**| URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/ |
|
|
227
|
+
**data** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
|
|
228
|
+
|
|
229
|
+
### Return type
|
|
230
|
+
|
|
231
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
232
|
+
|
|
233
|
+
### Authorization
|
|
234
|
+
|
|
235
|
+
[Basic](../README.md#Basic)
|
|
236
|
+
|
|
237
|
+
### HTTP request headers
|
|
238
|
+
|
|
239
|
+
- **Content-Type**: application/json
|
|
240
|
+
- **Accept**: application/json
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
## partial_update
|
|
244
|
+
|
|
245
|
+
> DebDebRepository partial_update(deb_repository_href, data)
|
|
246
|
+
|
|
247
|
+
Partially update a deb repository
|
|
248
|
+
|
|
249
|
+
A ViewSet for DebRepository.
|
|
250
|
+
|
|
251
|
+
### Example
|
|
252
|
+
|
|
253
|
+
```ruby
|
|
254
|
+
# load the gem
|
|
255
|
+
require 'pulp_deb_client'
|
|
256
|
+
# setup authorization
|
|
257
|
+
PulpDebClient.configure do |config|
|
|
258
|
+
# Configure HTTP basic authorization: Basic
|
|
259
|
+
config.username = 'YOUR USERNAME'
|
|
260
|
+
config.password = 'YOUR PASSWORD'
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
|
264
|
+
deb_repository_href = 'deb_repository_href_example' # String | URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
265
|
+
data = PulpDebClient::DebDebRepository.new # DebDebRepository |
|
|
266
|
+
|
|
267
|
+
begin
|
|
268
|
+
#Partially update a deb repository
|
|
269
|
+
result = api_instance.partial_update(deb_repository_href, data)
|
|
270
|
+
p result
|
|
271
|
+
rescue PulpDebClient::ApiError => e
|
|
272
|
+
puts "Exception when calling RepositoriesAptApi->partial_update: #{e}"
|
|
273
|
+
end
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
### Parameters
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
Name | Type | Description | Notes
|
|
280
|
+
------------- | ------------- | ------------- | -------------
|
|
281
|
+
**deb_repository_href** | **String**| URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/ |
|
|
282
|
+
**data** | [**DebDebRepository**](DebDebRepository.md)| |
|
|
283
|
+
|
|
284
|
+
### Return type
|
|
285
|
+
|
|
286
|
+
[**DebDebRepository**](DebDebRepository.md)
|
|
287
|
+
|
|
288
|
+
### Authorization
|
|
289
|
+
|
|
290
|
+
[Basic](../README.md#Basic)
|
|
291
|
+
|
|
292
|
+
### HTTP request headers
|
|
293
|
+
|
|
294
|
+
- **Content-Type**: application/json
|
|
295
|
+
- **Accept**: application/json
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
## read
|
|
299
|
+
|
|
300
|
+
> DebDebRepository read(deb_repository_href, opts)
|
|
301
|
+
|
|
302
|
+
Inspect a deb repository
|
|
303
|
+
|
|
304
|
+
A ViewSet for DebRepository.
|
|
305
|
+
|
|
306
|
+
### Example
|
|
307
|
+
|
|
308
|
+
```ruby
|
|
309
|
+
# load the gem
|
|
310
|
+
require 'pulp_deb_client'
|
|
311
|
+
# setup authorization
|
|
312
|
+
PulpDebClient.configure do |config|
|
|
313
|
+
# Configure HTTP basic authorization: Basic
|
|
314
|
+
config.username = 'YOUR USERNAME'
|
|
315
|
+
config.password = 'YOUR PASSWORD'
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
|
319
|
+
deb_repository_href = 'deb_repository_href_example' # String | URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
320
|
+
opts = {
|
|
321
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
322
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
begin
|
|
326
|
+
#Inspect a deb repository
|
|
327
|
+
result = api_instance.read(deb_repository_href, opts)
|
|
328
|
+
p result
|
|
329
|
+
rescue PulpDebClient::ApiError => e
|
|
330
|
+
puts "Exception when calling RepositoriesAptApi->read: #{e}"
|
|
331
|
+
end
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### Parameters
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
Name | Type | Description | Notes
|
|
338
|
+
------------- | ------------- | ------------- | -------------
|
|
339
|
+
**deb_repository_href** | **String**| URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/ |
|
|
340
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
341
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
342
|
+
|
|
343
|
+
### Return type
|
|
344
|
+
|
|
345
|
+
[**DebDebRepository**](DebDebRepository.md)
|
|
346
|
+
|
|
347
|
+
### Authorization
|
|
348
|
+
|
|
349
|
+
[Basic](../README.md#Basic)
|
|
350
|
+
|
|
351
|
+
### HTTP request headers
|
|
352
|
+
|
|
353
|
+
- **Content-Type**: Not defined
|
|
354
|
+
- **Accept**: application/json
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
## sync
|
|
358
|
+
|
|
359
|
+
> AsyncOperationResponse sync(deb_repository_href, data)
|
|
360
|
+
|
|
361
|
+
Sync from remote
|
|
362
|
+
|
|
363
|
+
Trigger an asynchronous task to sync content
|
|
364
|
+
|
|
365
|
+
### Example
|
|
366
|
+
|
|
367
|
+
```ruby
|
|
368
|
+
# load the gem
|
|
369
|
+
require 'pulp_deb_client'
|
|
370
|
+
# setup authorization
|
|
371
|
+
PulpDebClient.configure do |config|
|
|
372
|
+
# Configure HTTP basic authorization: Basic
|
|
373
|
+
config.username = 'YOUR USERNAME'
|
|
374
|
+
config.password = 'YOUR PASSWORD'
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
|
378
|
+
deb_repository_href = 'deb_repository_href_example' # String | URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
379
|
+
data = PulpDebClient::RepositorySyncURL.new # RepositorySyncURL |
|
|
380
|
+
|
|
381
|
+
begin
|
|
382
|
+
#Sync from remote
|
|
383
|
+
result = api_instance.sync(deb_repository_href, data)
|
|
384
|
+
p result
|
|
385
|
+
rescue PulpDebClient::ApiError => e
|
|
386
|
+
puts "Exception when calling RepositoriesAptApi->sync: #{e}"
|
|
387
|
+
end
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Parameters
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
Name | Type | Description | Notes
|
|
394
|
+
------------- | ------------- | ------------- | -------------
|
|
395
|
+
**deb_repository_href** | **String**| URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/ |
|
|
396
|
+
**data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
|
397
|
+
|
|
398
|
+
### Return type
|
|
399
|
+
|
|
400
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
401
|
+
|
|
402
|
+
### Authorization
|
|
403
|
+
|
|
404
|
+
[Basic](../README.md#Basic)
|
|
405
|
+
|
|
406
|
+
### HTTP request headers
|
|
407
|
+
|
|
408
|
+
- **Content-Type**: application/json
|
|
409
|
+
- **Accept**: application/json
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
## update
|
|
413
|
+
|
|
414
|
+
> AsyncOperationResponse update(deb_repository_href, data)
|
|
415
|
+
|
|
416
|
+
Update a deb repository
|
|
417
|
+
|
|
418
|
+
Trigger an asynchronous task to update a repository.
|
|
419
|
+
|
|
420
|
+
### Example
|
|
421
|
+
|
|
422
|
+
```ruby
|
|
423
|
+
# load the gem
|
|
424
|
+
require 'pulp_deb_client'
|
|
425
|
+
# setup authorization
|
|
426
|
+
PulpDebClient.configure do |config|
|
|
427
|
+
# Configure HTTP basic authorization: Basic
|
|
428
|
+
config.username = 'YOUR USERNAME'
|
|
429
|
+
config.password = 'YOUR PASSWORD'
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
|
433
|
+
deb_repository_href = 'deb_repository_href_example' # String | URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
434
|
+
data = PulpDebClient::DebDebRepository.new # DebDebRepository |
|
|
435
|
+
|
|
436
|
+
begin
|
|
437
|
+
#Update a deb repository
|
|
438
|
+
result = api_instance.update(deb_repository_href, data)
|
|
439
|
+
p result
|
|
440
|
+
rescue PulpDebClient::ApiError => e
|
|
441
|
+
puts "Exception when calling RepositoriesAptApi->update: #{e}"
|
|
442
|
+
end
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
### Parameters
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
Name | Type | Description | Notes
|
|
449
|
+
------------- | ------------- | ------------- | -------------
|
|
450
|
+
**deb_repository_href** | **String**| URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/ |
|
|
451
|
+
**data** | [**DebDebRepository**](DebDebRepository.md)| |
|
|
452
|
+
|
|
453
|
+
### Return type
|
|
454
|
+
|
|
455
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
456
|
+
|
|
457
|
+
### Authorization
|
|
458
|
+
|
|
459
|
+
[Basic](../README.md#Basic)
|
|
460
|
+
|
|
461
|
+
### HTTP request headers
|
|
462
|
+
|
|
463
|
+
- **Content-Type**: application/json
|
|
464
|
+
- **Accept**: application/json
|
|
465
|
+
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# PulpDebClient::RepositoriesDebVersionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**delete**](RepositoriesDebVersionsApi.md#delete) | **DELETE** {apt_repository_version_href} | Delete a repository version
|
|
8
|
+
[**list**](RepositoriesDebVersionsApi.md#list) | **GET** {deb_repository_href}versions/ | List repository versions
|
|
9
|
+
[**read**](RepositoriesDebVersionsApi.md#read) | **GET** {apt_repository_version_href} | Inspect a repository version
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## delete
|
|
14
|
+
|
|
15
|
+
> AsyncOperationResponse delete(apt_repository_version_href)
|
|
16
|
+
|
|
17
|
+
Delete a repository version
|
|
18
|
+
|
|
19
|
+
Trigger an asynchronous task to delete a repositroy version.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
# load the gem
|
|
25
|
+
require 'pulp_deb_client'
|
|
26
|
+
# setup authorization
|
|
27
|
+
PulpDebClient.configure do |config|
|
|
28
|
+
# Configure HTTP basic authorization: Basic
|
|
29
|
+
config.username = 'YOUR USERNAME'
|
|
30
|
+
config.password = 'YOUR PASSWORD'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
api_instance = PulpDebClient::RepositoriesDebVersionsApi.new
|
|
34
|
+
apt_repository_version_href = 'apt_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/deb/apt/1/versions/1/
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
#Delete a repository version
|
|
38
|
+
result = api_instance.delete(apt_repository_version_href)
|
|
39
|
+
p result
|
|
40
|
+
rescue PulpDebClient::ApiError => e
|
|
41
|
+
puts "Exception when calling RepositoriesDebVersionsApi->delete: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Parameters
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Name | Type | Description | Notes
|
|
49
|
+
------------- | ------------- | ------------- | -------------
|
|
50
|
+
**apt_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/deb/apt/1/versions/1/ |
|
|
51
|
+
|
|
52
|
+
### Return type
|
|
53
|
+
|
|
54
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
55
|
+
|
|
56
|
+
### Authorization
|
|
57
|
+
|
|
58
|
+
[Basic](../README.md#Basic)
|
|
59
|
+
|
|
60
|
+
### HTTP request headers
|
|
61
|
+
|
|
62
|
+
- **Content-Type**: Not defined
|
|
63
|
+
- **Accept**: application/json
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## list
|
|
67
|
+
|
|
68
|
+
> InlineResponse20010 list(apt_deb_repository_href, opts)
|
|
69
|
+
|
|
70
|
+
List repository versions
|
|
71
|
+
|
|
72
|
+
DebRepositoryVersion represents a single deb repository version.
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```ruby
|
|
77
|
+
# load the gem
|
|
78
|
+
require 'pulp_deb_client'
|
|
79
|
+
# setup authorization
|
|
80
|
+
PulpDebClient.configure do |config|
|
|
81
|
+
# Configure HTTP basic authorization: Basic
|
|
82
|
+
config.username = 'YOUR USERNAME'
|
|
83
|
+
config.password = 'YOUR PASSWORD'
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
api_instance = PulpDebClient::RepositoriesDebVersionsApi.new
|
|
87
|
+
apt_deb_repository_href = 'apt_deb_repository_href_example' # String | URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
88
|
+
opts = {
|
|
89
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
90
|
+
number: 3.4, # Float |
|
|
91
|
+
number__lt: 3.4, # Float | Filter results where number is less than value
|
|
92
|
+
number__lte: 3.4, # Float | Filter results where number is less than or equal to value
|
|
93
|
+
number__gt: 3.4, # Float | Filter results where number is greater than value
|
|
94
|
+
number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
|
|
95
|
+
number__range: 3.4, # Float | Filter results where number is between two comma separated values
|
|
96
|
+
pulp_created__lt: 'pulp_created__lt_example', # String | Filter results where pulp_created is less than value
|
|
97
|
+
pulp_created__lte: 'pulp_created__lte_example', # String | Filter results where pulp_created is less than or equal to value
|
|
98
|
+
pulp_created__gt: 'pulp_created__gt_example', # String | Filter results where pulp_created is greater than value
|
|
99
|
+
pulp_created__gte: 'pulp_created__gte_example', # String | Filter results where pulp_created is greater than or equal to value
|
|
100
|
+
pulp_created__range: 'pulp_created__range_example', # String | Filter results where pulp_created is between two comma separated values
|
|
101
|
+
content: 'content_example', # String | Content Unit referenced by HREF
|
|
102
|
+
pulp_created: 'pulp_created_example', # String | ISO 8601 formatted dates are supported
|
|
103
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
104
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
105
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
106
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
begin
|
|
110
|
+
#List repository versions
|
|
111
|
+
result = api_instance.list(apt_deb_repository_href, opts)
|
|
112
|
+
p result
|
|
113
|
+
rescue PulpDebClient::ApiError => e
|
|
114
|
+
puts "Exception when calling RepositoriesDebVersionsApi->list: #{e}"
|
|
115
|
+
end
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Parameters
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
Name | Type | Description | Notes
|
|
122
|
+
------------- | ------------- | ------------- | -------------
|
|
123
|
+
**apt_deb_repository_href** | **String**| URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/ |
|
|
124
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
125
|
+
**number** | **Float**| | [optional]
|
|
126
|
+
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
|
127
|
+
**number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
|
|
128
|
+
**number__gt** | **Float**| Filter results where number is greater than value | [optional]
|
|
129
|
+
**number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
|
|
130
|
+
**number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
|
|
131
|
+
**pulp_created__lt** | **String**| Filter results where pulp_created is less than value | [optional]
|
|
132
|
+
**pulp_created__lte** | **String**| Filter results where pulp_created is less than or equal to value | [optional]
|
|
133
|
+
**pulp_created__gt** | **String**| Filter results where pulp_created is greater than value | [optional]
|
|
134
|
+
**pulp_created__gte** | **String**| Filter results where pulp_created is greater than or equal to value | [optional]
|
|
135
|
+
**pulp_created__range** | **String**| Filter results where pulp_created is between two comma separated values | [optional]
|
|
136
|
+
**content** | **String**| Content Unit referenced by HREF | [optional]
|
|
137
|
+
**pulp_created** | **String**| ISO 8601 formatted dates are supported | [optional]
|
|
138
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
139
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
140
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
141
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
[**InlineResponse20010**](InlineResponse20010.md)
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[Basic](../README.md#Basic)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: Not defined
|
|
154
|
+
- **Accept**: application/json
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## read
|
|
158
|
+
|
|
159
|
+
> RepositoryVersion read(apt_repository_version_href, opts)
|
|
160
|
+
|
|
161
|
+
Inspect a repository version
|
|
162
|
+
|
|
163
|
+
DebRepositoryVersion represents a single deb repository version.
|
|
164
|
+
|
|
165
|
+
### Example
|
|
166
|
+
|
|
167
|
+
```ruby
|
|
168
|
+
# load the gem
|
|
169
|
+
require 'pulp_deb_client'
|
|
170
|
+
# setup authorization
|
|
171
|
+
PulpDebClient.configure do |config|
|
|
172
|
+
# Configure HTTP basic authorization: Basic
|
|
173
|
+
config.username = 'YOUR USERNAME'
|
|
174
|
+
config.password = 'YOUR PASSWORD'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
api_instance = PulpDebClient::RepositoriesDebVersionsApi.new
|
|
178
|
+
apt_repository_version_href = 'apt_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/deb/apt/1/versions/1/
|
|
179
|
+
opts = {
|
|
180
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
181
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
begin
|
|
185
|
+
#Inspect a repository version
|
|
186
|
+
result = api_instance.read(apt_repository_version_href, opts)
|
|
187
|
+
p result
|
|
188
|
+
rescue PulpDebClient::ApiError => e
|
|
189
|
+
puts "Exception when calling RepositoriesDebVersionsApi->read: #{e}"
|
|
190
|
+
end
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Parameters
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
Name | Type | Description | Notes
|
|
197
|
+
------------- | ------------- | ------------- | -------------
|
|
198
|
+
**apt_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/deb/apt/1/versions/1/ |
|
|
199
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
200
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
201
|
+
|
|
202
|
+
### Return type
|
|
203
|
+
|
|
204
|
+
[**RepositoryVersion**](RepositoryVersion.md)
|
|
205
|
+
|
|
206
|
+
### Authorization
|
|
207
|
+
|
|
208
|
+
[Basic](../README.md#Basic)
|
|
209
|
+
|
|
210
|
+
### HTTP request headers
|
|
211
|
+
|
|
212
|
+
- **Content-Type**: Not defined
|
|
213
|
+
- **Accept**: application/json
|
|
214
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# PulpDebClient::RepositoryAddRemoveContent
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**add_content_units** | **Array<String>** | 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<String>** | 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 'PulpDebClient'
|
|
15
|
+
|
|
16
|
+
instance = PulpDebClient::RepositoryAddRemoveContent.new(add_content_units: null,
|
|
17
|
+
remove_content_units: null,
|
|
18
|
+
base_version: null)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|