pulp_deb_client 2.0.0b2
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 +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,235 @@
|
|
|
1
|
+
# PulpDebClient::PublicationsAptApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](PublicationsAptApi.md#create) | **POST** /pulp/api/v3/publications/deb/apt/ | Create a deb publication
|
|
8
|
+
[**delete**](PublicationsAptApi.md#delete) | **DELETE** {deb_publication_href} | Delete a deb publication
|
|
9
|
+
[**list**](PublicationsAptApi.md#list) | **GET** /pulp/api/v3/publications/deb/apt/ | List deb publications
|
|
10
|
+
[**read**](PublicationsAptApi.md#read) | **GET** {deb_publication_href} | Inspect a deb publication
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## create
|
|
15
|
+
|
|
16
|
+
> AsyncOperationResponse create(data)
|
|
17
|
+
|
|
18
|
+
Create a deb publication
|
|
19
|
+
|
|
20
|
+
Trigger an asynchronous task to publish content
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
# load the gem
|
|
26
|
+
require 'pulp_deb_client'
|
|
27
|
+
# setup authorization
|
|
28
|
+
PulpDebClient.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 = PulpDebClient::PublicationsAptApi.new
|
|
35
|
+
data = PulpDebClient::DebPublication.new # DebPublication |
|
|
36
|
+
|
|
37
|
+
begin
|
|
38
|
+
#Create a deb publication
|
|
39
|
+
result = api_instance.create(data)
|
|
40
|
+
p result
|
|
41
|
+
rescue PulpDebClient::ApiError => e
|
|
42
|
+
puts "Exception when calling PublicationsAptApi->create: #{e}"
|
|
43
|
+
end
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Name | Type | Description | Notes
|
|
50
|
+
------------- | ------------- | ------------- | -------------
|
|
51
|
+
**data** | [**DebPublication**](DebPublication.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(deb_publication_href)
|
|
70
|
+
|
|
71
|
+
Delete a deb publication
|
|
72
|
+
|
|
73
|
+
A ViewSet for DebPublication.
|
|
74
|
+
|
|
75
|
+
### Example
|
|
76
|
+
|
|
77
|
+
```ruby
|
|
78
|
+
# load the gem
|
|
79
|
+
require 'pulp_deb_client'
|
|
80
|
+
# setup authorization
|
|
81
|
+
PulpDebClient.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 = PulpDebClient::PublicationsAptApi.new
|
|
88
|
+
deb_publication_href = 'deb_publication_href_example' # String | URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
|
|
89
|
+
|
|
90
|
+
begin
|
|
91
|
+
#Delete a deb publication
|
|
92
|
+
api_instance.delete(deb_publication_href)
|
|
93
|
+
rescue PulpDebClient::ApiError => e
|
|
94
|
+
puts "Exception when calling PublicationsAptApi->delete: #{e}"
|
|
95
|
+
end
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
Name | Type | Description | Notes
|
|
102
|
+
------------- | ------------- | ------------- | -------------
|
|
103
|
+
**deb_publication_href** | **String**| URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/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
|
+
> InlineResponse2007 list(opts)
|
|
122
|
+
|
|
123
|
+
List deb publications
|
|
124
|
+
|
|
125
|
+
A ViewSet for DebPublication.
|
|
126
|
+
|
|
127
|
+
### Example
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
# load the gem
|
|
131
|
+
require 'pulp_deb_client'
|
|
132
|
+
# setup authorization
|
|
133
|
+
PulpDebClient.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 = PulpDebClient::PublicationsAptApi.new
|
|
140
|
+
opts = {
|
|
141
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
142
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
143
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
144
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
begin
|
|
148
|
+
#List deb publications
|
|
149
|
+
result = api_instance.list(opts)
|
|
150
|
+
p result
|
|
151
|
+
rescue PulpDebClient::ApiError => e
|
|
152
|
+
puts "Exception when calling PublicationsAptApi->list: #{e}"
|
|
153
|
+
end
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Parameters
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
Name | Type | Description | Notes
|
|
160
|
+
------------- | ------------- | ------------- | -------------
|
|
161
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
162
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
163
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
164
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
165
|
+
|
|
166
|
+
### Return type
|
|
167
|
+
|
|
168
|
+
[**InlineResponse2007**](InlineResponse2007.md)
|
|
169
|
+
|
|
170
|
+
### Authorization
|
|
171
|
+
|
|
172
|
+
[Basic](../README.md#Basic)
|
|
173
|
+
|
|
174
|
+
### HTTP request headers
|
|
175
|
+
|
|
176
|
+
- **Content-Type**: Not defined
|
|
177
|
+
- **Accept**: application/json
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
## read
|
|
181
|
+
|
|
182
|
+
> DebPublication read(deb_publication_href, opts)
|
|
183
|
+
|
|
184
|
+
Inspect a deb publication
|
|
185
|
+
|
|
186
|
+
A ViewSet for DebPublication.
|
|
187
|
+
|
|
188
|
+
### Example
|
|
189
|
+
|
|
190
|
+
```ruby
|
|
191
|
+
# load the gem
|
|
192
|
+
require 'pulp_deb_client'
|
|
193
|
+
# setup authorization
|
|
194
|
+
PulpDebClient.configure do |config|
|
|
195
|
+
# Configure HTTP basic authorization: Basic
|
|
196
|
+
config.username = 'YOUR USERNAME'
|
|
197
|
+
config.password = 'YOUR PASSWORD'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
api_instance = PulpDebClient::PublicationsAptApi.new
|
|
201
|
+
deb_publication_href = 'deb_publication_href_example' # String | URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
|
|
202
|
+
opts = {
|
|
203
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
begin
|
|
207
|
+
#Inspect a deb publication
|
|
208
|
+
result = api_instance.read(deb_publication_href, opts)
|
|
209
|
+
p result
|
|
210
|
+
rescue PulpDebClient::ApiError => e
|
|
211
|
+
puts "Exception when calling PublicationsAptApi->read: #{e}"
|
|
212
|
+
end
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
Name | Type | Description | Notes
|
|
219
|
+
------------- | ------------- | ------------- | -------------
|
|
220
|
+
**deb_publication_href** | **String**| URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/ |
|
|
221
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
[**DebPublication**](DebPublication.md)
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
[Basic](../README.md#Basic)
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: Not defined
|
|
234
|
+
- **Accept**: application/json
|
|
235
|
+
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# PulpDebClient::PublicationsVerbatimApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](PublicationsVerbatimApi.md#create) | **POST** /pulp/api/v3/publications/deb/verbatim/ | Create a verbatim publication
|
|
8
|
+
[**delete**](PublicationsVerbatimApi.md#delete) | **DELETE** {verbatim_publication_href} | Delete a verbatim publication
|
|
9
|
+
[**list**](PublicationsVerbatimApi.md#list) | **GET** /pulp/api/v3/publications/deb/verbatim/ | List verbatim publications
|
|
10
|
+
[**read**](PublicationsVerbatimApi.md#read) | **GET** {verbatim_publication_href} | Inspect a verbatim publication
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## create
|
|
15
|
+
|
|
16
|
+
> AsyncOperationResponse create(data)
|
|
17
|
+
|
|
18
|
+
Create a verbatim publication
|
|
19
|
+
|
|
20
|
+
Trigger an asynchronous task to publish content
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
# load the gem
|
|
26
|
+
require 'pulp_deb_client'
|
|
27
|
+
# setup authorization
|
|
28
|
+
PulpDebClient.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 = PulpDebClient::PublicationsVerbatimApi.new
|
|
35
|
+
data = PulpDebClient::VerbatimPublication.new # VerbatimPublication |
|
|
36
|
+
|
|
37
|
+
begin
|
|
38
|
+
#Create a verbatim publication
|
|
39
|
+
result = api_instance.create(data)
|
|
40
|
+
p result
|
|
41
|
+
rescue PulpDebClient::ApiError => e
|
|
42
|
+
puts "Exception when calling PublicationsVerbatimApi->create: #{e}"
|
|
43
|
+
end
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Name | Type | Description | Notes
|
|
50
|
+
------------- | ------------- | ------------- | -------------
|
|
51
|
+
**data** | [**VerbatimPublication**](VerbatimPublication.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(verbatim_publication_href)
|
|
70
|
+
|
|
71
|
+
Delete a verbatim publication
|
|
72
|
+
|
|
73
|
+
A ViewSet for VerbatimPublication.
|
|
74
|
+
|
|
75
|
+
### Example
|
|
76
|
+
|
|
77
|
+
```ruby
|
|
78
|
+
# load the gem
|
|
79
|
+
require 'pulp_deb_client'
|
|
80
|
+
# setup authorization
|
|
81
|
+
PulpDebClient.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 = PulpDebClient::PublicationsVerbatimApi.new
|
|
88
|
+
verbatim_publication_href = 'verbatim_publication_href_example' # String | URI of Verbatim Publication. e.g.: /pulp/api/v3/publications/deb/verbatim/1/
|
|
89
|
+
|
|
90
|
+
begin
|
|
91
|
+
#Delete a verbatim publication
|
|
92
|
+
api_instance.delete(verbatim_publication_href)
|
|
93
|
+
rescue PulpDebClient::ApiError => e
|
|
94
|
+
puts "Exception when calling PublicationsVerbatimApi->delete: #{e}"
|
|
95
|
+
end
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
Name | Type | Description | Notes
|
|
102
|
+
------------- | ------------- | ------------- | -------------
|
|
103
|
+
**verbatim_publication_href** | **String**| URI of Verbatim Publication. e.g.: /pulp/api/v3/publications/deb/verbatim/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
|
+
> InlineResponse2008 list(opts)
|
|
122
|
+
|
|
123
|
+
List verbatim publications
|
|
124
|
+
|
|
125
|
+
A ViewSet for VerbatimPublication.
|
|
126
|
+
|
|
127
|
+
### Example
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
# load the gem
|
|
131
|
+
require 'pulp_deb_client'
|
|
132
|
+
# setup authorization
|
|
133
|
+
PulpDebClient.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 = PulpDebClient::PublicationsVerbatimApi.new
|
|
140
|
+
opts = {
|
|
141
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
142
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
143
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
144
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
begin
|
|
148
|
+
#List verbatim publications
|
|
149
|
+
result = api_instance.list(opts)
|
|
150
|
+
p result
|
|
151
|
+
rescue PulpDebClient::ApiError => e
|
|
152
|
+
puts "Exception when calling PublicationsVerbatimApi->list: #{e}"
|
|
153
|
+
end
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Parameters
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
Name | Type | Description | Notes
|
|
160
|
+
------------- | ------------- | ------------- | -------------
|
|
161
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
162
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
163
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
164
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
165
|
+
|
|
166
|
+
### Return type
|
|
167
|
+
|
|
168
|
+
[**InlineResponse2008**](InlineResponse2008.md)
|
|
169
|
+
|
|
170
|
+
### Authorization
|
|
171
|
+
|
|
172
|
+
[Basic](../README.md#Basic)
|
|
173
|
+
|
|
174
|
+
### HTTP request headers
|
|
175
|
+
|
|
176
|
+
- **Content-Type**: Not defined
|
|
177
|
+
- **Accept**: application/json
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
## read
|
|
181
|
+
|
|
182
|
+
> VerbatimPublication read(verbatim_publication_href, opts)
|
|
183
|
+
|
|
184
|
+
Inspect a verbatim publication
|
|
185
|
+
|
|
186
|
+
A ViewSet for VerbatimPublication.
|
|
187
|
+
|
|
188
|
+
### Example
|
|
189
|
+
|
|
190
|
+
```ruby
|
|
191
|
+
# load the gem
|
|
192
|
+
require 'pulp_deb_client'
|
|
193
|
+
# setup authorization
|
|
194
|
+
PulpDebClient.configure do |config|
|
|
195
|
+
# Configure HTTP basic authorization: Basic
|
|
196
|
+
config.username = 'YOUR USERNAME'
|
|
197
|
+
config.password = 'YOUR PASSWORD'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
api_instance = PulpDebClient::PublicationsVerbatimApi.new
|
|
201
|
+
verbatim_publication_href = 'verbatim_publication_href_example' # String | URI of Verbatim Publication. e.g.: /pulp/api/v3/publications/deb/verbatim/1/
|
|
202
|
+
opts = {
|
|
203
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
begin
|
|
207
|
+
#Inspect a verbatim publication
|
|
208
|
+
result = api_instance.read(verbatim_publication_href, opts)
|
|
209
|
+
p result
|
|
210
|
+
rescue PulpDebClient::ApiError => e
|
|
211
|
+
puts "Exception when calling PublicationsVerbatimApi->read: #{e}"
|
|
212
|
+
end
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
Name | Type | Description | Notes
|
|
219
|
+
------------- | ------------- | ------------- | -------------
|
|
220
|
+
**verbatim_publication_href** | **String**| URI of Verbatim Publication. e.g.: /pulp/api/v3/publications/deb/verbatim/1/ |
|
|
221
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
[**VerbatimPublication**](VerbatimPublication.md)
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
[Basic](../README.md#Basic)
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: Not defined
|
|
234
|
+
- **Accept**: application/json
|
|
235
|
+
|
data/docs/Release.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# PulpDebClient::Release
|
|
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
|
+
**artifacts** | **Hash<String, String>** | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/' |
|
|
11
|
+
**codename** | **String** | Codename of the release, i.e. \"buster\". |
|
|
12
|
+
**suite** | **String** | Suite of the release, i.e. \"stable\". | [optional]
|
|
13
|
+
**distribution** | **String** | Distribution of the release, i.e. \"stable/updates\". | [optional]
|
|
14
|
+
**relative_path** | **String** | Path of file relative to url. | [optional]
|
|
15
|
+
|
|
16
|
+
## Code Sample
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'PulpDebClient'
|
|
20
|
+
|
|
21
|
+
instance = PulpDebClient::Release.new(_href: null,
|
|
22
|
+
_created: null,
|
|
23
|
+
_type: null,
|
|
24
|
+
artifacts: null,
|
|
25
|
+
codename: null,
|
|
26
|
+
suite: null,
|
|
27
|
+
distribution: null,
|
|
28
|
+
relative_path: null)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|