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,186 @@
|
|
1
|
+
# PulpDebClient::ContentReleasesApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](ContentReleasesApi.md#create) | **POST** /pulp/api/v3/content/deb/releases/ | Create a release
|
8
|
+
[**list**](ContentReleasesApi.md#list) | **GET** /pulp/api/v3/content/deb/releases/ | List releases
|
9
|
+
[**read**](ContentReleasesApi.md#read) | **GET** {release_href} | Inspect a release
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## create
|
14
|
+
|
15
|
+
> Release create(data)
|
16
|
+
|
17
|
+
Create a release
|
18
|
+
|
19
|
+
A ViewSet for Release.
|
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::ContentReleasesApi.new
|
34
|
+
data = PulpDebClient::Release.new # Release |
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Create a release
|
38
|
+
result = api_instance.create(data)
|
39
|
+
p result
|
40
|
+
rescue PulpDebClient::ApiError => e
|
41
|
+
puts "Exception when calling ContentReleasesApi->create: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**data** | [**Release**](Release.md)| |
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**Release**](Release.md)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[Basic](../README.md#Basic)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: application/json
|
63
|
+
- **Accept**: application/json
|
64
|
+
|
65
|
+
|
66
|
+
## list
|
67
|
+
|
68
|
+
> InlineResponse2005 list(opts)
|
69
|
+
|
70
|
+
List releases
|
71
|
+
|
72
|
+
A ViewSet for Release.
|
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::ContentReleasesApi.new
|
87
|
+
opts = {
|
88
|
+
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
89
|
+
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
90
|
+
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
91
|
+
limit: 56, # Integer | Number of results to return per page.
|
92
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
93
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
94
|
+
}
|
95
|
+
|
96
|
+
begin
|
97
|
+
#List releases
|
98
|
+
result = api_instance.list(opts)
|
99
|
+
p result
|
100
|
+
rescue PulpDebClient::ApiError => e
|
101
|
+
puts "Exception when calling ContentReleasesApi->list: #{e}"
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
### Parameters
|
106
|
+
|
107
|
+
|
108
|
+
Name | Type | Description | Notes
|
109
|
+
------------- | ------------- | ------------- | -------------
|
110
|
+
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
111
|
+
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
112
|
+
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
113
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
114
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
115
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
116
|
+
|
117
|
+
### Return type
|
118
|
+
|
119
|
+
[**InlineResponse2005**](InlineResponse2005.md)
|
120
|
+
|
121
|
+
### Authorization
|
122
|
+
|
123
|
+
[Basic](../README.md#Basic)
|
124
|
+
|
125
|
+
### HTTP request headers
|
126
|
+
|
127
|
+
- **Content-Type**: Not defined
|
128
|
+
- **Accept**: application/json
|
129
|
+
|
130
|
+
|
131
|
+
## read
|
132
|
+
|
133
|
+
> Release read(release_href, opts)
|
134
|
+
|
135
|
+
Inspect a release
|
136
|
+
|
137
|
+
A ViewSet for Release.
|
138
|
+
|
139
|
+
### Example
|
140
|
+
|
141
|
+
```ruby
|
142
|
+
# load the gem
|
143
|
+
require 'pulp_deb_client'
|
144
|
+
# setup authorization
|
145
|
+
PulpDebClient.configure do |config|
|
146
|
+
# Configure HTTP basic authorization: Basic
|
147
|
+
config.username = 'YOUR USERNAME'
|
148
|
+
config.password = 'YOUR PASSWORD'
|
149
|
+
end
|
150
|
+
|
151
|
+
api_instance = PulpDebClient::ContentReleasesApi.new
|
152
|
+
release_href = 'release_href_example' # String | URI of Release. e.g.: /pulp/api/v3/content/deb/releases/1/
|
153
|
+
opts = {
|
154
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
155
|
+
}
|
156
|
+
|
157
|
+
begin
|
158
|
+
#Inspect a release
|
159
|
+
result = api_instance.read(release_href, opts)
|
160
|
+
p result
|
161
|
+
rescue PulpDebClient::ApiError => e
|
162
|
+
puts "Exception when calling ContentReleasesApi->read: #{e}"
|
163
|
+
end
|
164
|
+
```
|
165
|
+
|
166
|
+
### Parameters
|
167
|
+
|
168
|
+
|
169
|
+
Name | Type | Description | Notes
|
170
|
+
------------- | ------------- | ------------- | -------------
|
171
|
+
**release_href** | **String**| URI of Release. e.g.: /pulp/api/v3/content/deb/releases/1/ |
|
172
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
173
|
+
|
174
|
+
### Return type
|
175
|
+
|
176
|
+
[**Release**](Release.md)
|
177
|
+
|
178
|
+
### Authorization
|
179
|
+
|
180
|
+
[Basic](../README.md#Basic)
|
181
|
+
|
182
|
+
### HTTP request headers
|
183
|
+
|
184
|
+
- **Content-Type**: Not defined
|
185
|
+
- **Accept**: application/json
|
186
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# PulpDebClient::DebDistribution
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**_href** | **String** | | [optional]
|
8
|
+
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
9
|
+
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
10
|
+
**base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional]
|
11
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
12
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
13
|
+
**publication** | **String** | Publication to be served | [optional]
|
14
|
+
|
15
|
+
## Code Sample
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'PulpDebClient'
|
19
|
+
|
20
|
+
instance = PulpDebClient::DebDistribution.new(_href: null,
|
21
|
+
_created: null,
|
22
|
+
base_path: null,
|
23
|
+
base_url: null,
|
24
|
+
content_guard: null,
|
25
|
+
name: null,
|
26
|
+
publication: null)
|
27
|
+
```
|
28
|
+
|
29
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# PulpDebClient::DebPublication
|
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
|
+
**simple** | **Boolean** | Activate simple publishing mode (all packages in one release component). | [optional] [default to false]
|
14
|
+
**structured** | **Boolean** | Activate structured publishing mode. | [optional] [default to false]
|
15
|
+
|
16
|
+
## Code Sample
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'PulpDebClient'
|
20
|
+
|
21
|
+
instance = PulpDebClient::DebPublication.new(_href: null,
|
22
|
+
_created: null,
|
23
|
+
_type: null,
|
24
|
+
publisher: null,
|
25
|
+
repository_version: null,
|
26
|
+
repository: null,
|
27
|
+
simple: null,
|
28
|
+
structured: null)
|
29
|
+
```
|
30
|
+
|
31
|
+
|
data/docs/DebRemote.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# PulpDebClient::DebRemote
|
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
|
+
**name** | **String** | A unique name for this remote. |
|
11
|
+
**url** | **String** | The URL of an external content source. |
|
12
|
+
**ssl_ca_certificate** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
13
|
+
**ssl_client_certificate** | **String** | A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
14
|
+
**ssl_client_key** | **String** | A PEM encoded private key used for authentication. Returns SHA256 sum on GET. | [optional]
|
15
|
+
**ssl_validation** | **Boolean** | If True, SSL peer validation must be performed. | [optional]
|
16
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
|
17
|
+
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
18
|
+
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
19
|
+
**_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional]
|
20
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
21
|
+
**policy** | **String** | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional] [default to 'immediate']
|
22
|
+
**distributions** | **String** | Whitespace separated list of distributions to sync |
|
23
|
+
**components** | **String** | Whitespace separatet list of components to sync | [optional]
|
24
|
+
**architectures** | **String** | Whitespace separated list of architectures to sync | [optional]
|
25
|
+
**sync_sources** | **Boolean** | Sync source packages | [optional]
|
26
|
+
**sync_udebs** | **Boolean** | Sync installer packages | [optional]
|
27
|
+
**sync_installer** | **Boolean** | Sync installer files | [optional]
|
28
|
+
|
29
|
+
## Code Sample
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'PulpDebClient'
|
33
|
+
|
34
|
+
instance = PulpDebClient::DebRemote.new(_href: null,
|
35
|
+
_created: null,
|
36
|
+
_type: null,
|
37
|
+
name: null,
|
38
|
+
url: null,
|
39
|
+
ssl_ca_certificate: null,
|
40
|
+
ssl_client_certificate: null,
|
41
|
+
ssl_client_key: null,
|
42
|
+
ssl_validation: null,
|
43
|
+
proxy_url: null,
|
44
|
+
username: null,
|
45
|
+
password: null,
|
46
|
+
_last_updated: null,
|
47
|
+
download_concurrency: null,
|
48
|
+
policy: null,
|
49
|
+
distributions: null,
|
50
|
+
components: null,
|
51
|
+
architectures: null,
|
52
|
+
sync_sources: null,
|
53
|
+
sync_udebs: null,
|
54
|
+
sync_installer: null)
|
55
|
+
```
|
56
|
+
|
57
|
+
|
@@ -0,0 +1,358 @@
|
|
1
|
+
# PulpDebClient::DistributionsAptApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](DistributionsAptApi.md#create) | **POST** /pulp/api/v3/distributions/deb/apt/ | Create a deb distribution
|
8
|
+
[**delete**](DistributionsAptApi.md#delete) | **DELETE** {deb_distribution_href} | Delete a deb distribution
|
9
|
+
[**list**](DistributionsAptApi.md#list) | **GET** /pulp/api/v3/distributions/deb/apt/ | List deb distributions
|
10
|
+
[**partial_update**](DistributionsAptApi.md#partial_update) | **PATCH** {deb_distribution_href} | Partially update a deb distribution
|
11
|
+
[**read**](DistributionsAptApi.md#read) | **GET** {deb_distribution_href} | Inspect a deb distribution
|
12
|
+
[**update**](DistributionsAptApi.md#update) | **PUT** {deb_distribution_href} | Update a deb distribution
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## create
|
17
|
+
|
18
|
+
> AsyncOperationResponse create(data)
|
19
|
+
|
20
|
+
Create a deb distribution
|
21
|
+
|
22
|
+
Trigger an asynchronous create task
|
23
|
+
|
24
|
+
### Example
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'pulp_deb_client'
|
29
|
+
# setup authorization
|
30
|
+
PulpDebClient.configure do |config|
|
31
|
+
# Configure HTTP basic authorization: Basic
|
32
|
+
config.username = 'YOUR USERNAME'
|
33
|
+
config.password = 'YOUR PASSWORD'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
37
|
+
data = PulpDebClient::DebDistribution.new # DebDistribution |
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Create a deb distribution
|
41
|
+
result = api_instance.create(data)
|
42
|
+
p result
|
43
|
+
rescue PulpDebClient::ApiError => e
|
44
|
+
puts "Exception when calling DistributionsAptApi->create: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**data** | [**DebDistribution**](DebDistribution.md)| |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[Basic](../README.md#Basic)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
## delete
|
70
|
+
|
71
|
+
> AsyncOperationResponse delete(deb_distribution_href)
|
72
|
+
|
73
|
+
Delete a deb distribution
|
74
|
+
|
75
|
+
Trigger an asynchronous delete task
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'pulp_deb_client'
|
82
|
+
# setup authorization
|
83
|
+
PulpDebClient.configure do |config|
|
84
|
+
# Configure HTTP basic authorization: Basic
|
85
|
+
config.username = 'YOUR USERNAME'
|
86
|
+
config.password = 'YOUR PASSWORD'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
90
|
+
deb_distribution_href = 'deb_distribution_href_example' # String | URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete a deb distribution
|
94
|
+
result = api_instance.delete(deb_distribution_href)
|
95
|
+
p result
|
96
|
+
rescue PulpDebClient::ApiError => e
|
97
|
+
puts "Exception when calling DistributionsAptApi->delete: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**deb_distribution_href** | **String**| URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/ |
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
111
|
+
|
112
|
+
### Authorization
|
113
|
+
|
114
|
+
[Basic](../README.md#Basic)
|
115
|
+
|
116
|
+
### HTTP request headers
|
117
|
+
|
118
|
+
- **Content-Type**: Not defined
|
119
|
+
- **Accept**: application/json
|
120
|
+
|
121
|
+
|
122
|
+
## list
|
123
|
+
|
124
|
+
> InlineResponse2006 list(opts)
|
125
|
+
|
126
|
+
List deb distributions
|
127
|
+
|
128
|
+
ViewSet for DebDistributions.
|
129
|
+
|
130
|
+
### Example
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
# load the gem
|
134
|
+
require 'pulp_deb_client'
|
135
|
+
# setup authorization
|
136
|
+
PulpDebClient.configure do |config|
|
137
|
+
# Configure HTTP basic authorization: Basic
|
138
|
+
config.username = 'YOUR USERNAME'
|
139
|
+
config.password = 'YOUR PASSWORD'
|
140
|
+
end
|
141
|
+
|
142
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
143
|
+
opts = {
|
144
|
+
name: 'name_example', # String |
|
145
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
146
|
+
base_path: 'base_path_example', # String |
|
147
|
+
base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
|
148
|
+
base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
|
149
|
+
base_path__in: 'base_path__in_example', # String | Filter results where base_path is in a comma-separated list of values
|
150
|
+
limit: 56, # Integer | Number of results to return per page.
|
151
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
152
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
153
|
+
}
|
154
|
+
|
155
|
+
begin
|
156
|
+
#List deb distributions
|
157
|
+
result = api_instance.list(opts)
|
158
|
+
p result
|
159
|
+
rescue PulpDebClient::ApiError => e
|
160
|
+
puts "Exception when calling DistributionsAptApi->list: #{e}"
|
161
|
+
end
|
162
|
+
```
|
163
|
+
|
164
|
+
### Parameters
|
165
|
+
|
166
|
+
|
167
|
+
Name | Type | Description | Notes
|
168
|
+
------------- | ------------- | ------------- | -------------
|
169
|
+
**name** | **String**| | [optional]
|
170
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
171
|
+
**base_path** | **String**| | [optional]
|
172
|
+
**base_path__contains** | **String**| Filter results where base_path contains value | [optional]
|
173
|
+
**base_path__icontains** | **String**| Filter results where base_path contains value | [optional]
|
174
|
+
**base_path__in** | **String**| Filter results where base_path is in a comma-separated list of values | [optional]
|
175
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
176
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
177
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
178
|
+
|
179
|
+
### Return type
|
180
|
+
|
181
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
182
|
+
|
183
|
+
### Authorization
|
184
|
+
|
185
|
+
[Basic](../README.md#Basic)
|
186
|
+
|
187
|
+
### HTTP request headers
|
188
|
+
|
189
|
+
- **Content-Type**: Not defined
|
190
|
+
- **Accept**: application/json
|
191
|
+
|
192
|
+
|
193
|
+
## partial_update
|
194
|
+
|
195
|
+
> AsyncOperationResponse partial_update(deb_distribution_href, data)
|
196
|
+
|
197
|
+
Partially update a deb distribution
|
198
|
+
|
199
|
+
Trigger an asynchronous partial update task
|
200
|
+
|
201
|
+
### Example
|
202
|
+
|
203
|
+
```ruby
|
204
|
+
# load the gem
|
205
|
+
require 'pulp_deb_client'
|
206
|
+
# setup authorization
|
207
|
+
PulpDebClient.configure do |config|
|
208
|
+
# Configure HTTP basic authorization: Basic
|
209
|
+
config.username = 'YOUR USERNAME'
|
210
|
+
config.password = 'YOUR PASSWORD'
|
211
|
+
end
|
212
|
+
|
213
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
214
|
+
deb_distribution_href = 'deb_distribution_href_example' # String | URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
215
|
+
data = PulpDebClient::DebDistribution.new # DebDistribution |
|
216
|
+
|
217
|
+
begin
|
218
|
+
#Partially update a deb distribution
|
219
|
+
result = api_instance.partial_update(deb_distribution_href, data)
|
220
|
+
p result
|
221
|
+
rescue PulpDebClient::ApiError => e
|
222
|
+
puts "Exception when calling DistributionsAptApi->partial_update: #{e}"
|
223
|
+
end
|
224
|
+
```
|
225
|
+
|
226
|
+
### Parameters
|
227
|
+
|
228
|
+
|
229
|
+
Name | Type | Description | Notes
|
230
|
+
------------- | ------------- | ------------- | -------------
|
231
|
+
**deb_distribution_href** | **String**| URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/ |
|
232
|
+
**data** | [**DebDistribution**](DebDistribution.md)| |
|
233
|
+
|
234
|
+
### Return type
|
235
|
+
|
236
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
237
|
+
|
238
|
+
### Authorization
|
239
|
+
|
240
|
+
[Basic](../README.md#Basic)
|
241
|
+
|
242
|
+
### HTTP request headers
|
243
|
+
|
244
|
+
- **Content-Type**: application/json
|
245
|
+
- **Accept**: application/json
|
246
|
+
|
247
|
+
|
248
|
+
## read
|
249
|
+
|
250
|
+
> DebDistribution read(deb_distribution_href, opts)
|
251
|
+
|
252
|
+
Inspect a deb distribution
|
253
|
+
|
254
|
+
ViewSet for DebDistributions.
|
255
|
+
|
256
|
+
### Example
|
257
|
+
|
258
|
+
```ruby
|
259
|
+
# load the gem
|
260
|
+
require 'pulp_deb_client'
|
261
|
+
# setup authorization
|
262
|
+
PulpDebClient.configure do |config|
|
263
|
+
# Configure HTTP basic authorization: Basic
|
264
|
+
config.username = 'YOUR USERNAME'
|
265
|
+
config.password = 'YOUR PASSWORD'
|
266
|
+
end
|
267
|
+
|
268
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
269
|
+
deb_distribution_href = 'deb_distribution_href_example' # String | URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
270
|
+
opts = {
|
271
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
272
|
+
}
|
273
|
+
|
274
|
+
begin
|
275
|
+
#Inspect a deb distribution
|
276
|
+
result = api_instance.read(deb_distribution_href, opts)
|
277
|
+
p result
|
278
|
+
rescue PulpDebClient::ApiError => e
|
279
|
+
puts "Exception when calling DistributionsAptApi->read: #{e}"
|
280
|
+
end
|
281
|
+
```
|
282
|
+
|
283
|
+
### Parameters
|
284
|
+
|
285
|
+
|
286
|
+
Name | Type | Description | Notes
|
287
|
+
------------- | ------------- | ------------- | -------------
|
288
|
+
**deb_distribution_href** | **String**| URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/ |
|
289
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
290
|
+
|
291
|
+
### Return type
|
292
|
+
|
293
|
+
[**DebDistribution**](DebDistribution.md)
|
294
|
+
|
295
|
+
### Authorization
|
296
|
+
|
297
|
+
[Basic](../README.md#Basic)
|
298
|
+
|
299
|
+
### HTTP request headers
|
300
|
+
|
301
|
+
- **Content-Type**: Not defined
|
302
|
+
- **Accept**: application/json
|
303
|
+
|
304
|
+
|
305
|
+
## update
|
306
|
+
|
307
|
+
> AsyncOperationResponse update(deb_distribution_href, data)
|
308
|
+
|
309
|
+
Update a deb distribution
|
310
|
+
|
311
|
+
Trigger an asynchronous update task
|
312
|
+
|
313
|
+
### Example
|
314
|
+
|
315
|
+
```ruby
|
316
|
+
# load the gem
|
317
|
+
require 'pulp_deb_client'
|
318
|
+
# setup authorization
|
319
|
+
PulpDebClient.configure do |config|
|
320
|
+
# Configure HTTP basic authorization: Basic
|
321
|
+
config.username = 'YOUR USERNAME'
|
322
|
+
config.password = 'YOUR PASSWORD'
|
323
|
+
end
|
324
|
+
|
325
|
+
api_instance = PulpDebClient::DistributionsAptApi.new
|
326
|
+
deb_distribution_href = 'deb_distribution_href_example' # String | URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
327
|
+
data = PulpDebClient::DebDistribution.new # DebDistribution |
|
328
|
+
|
329
|
+
begin
|
330
|
+
#Update a deb distribution
|
331
|
+
result = api_instance.update(deb_distribution_href, data)
|
332
|
+
p result
|
333
|
+
rescue PulpDebClient::ApiError => e
|
334
|
+
puts "Exception when calling DistributionsAptApi->update: #{e}"
|
335
|
+
end
|
336
|
+
```
|
337
|
+
|
338
|
+
### Parameters
|
339
|
+
|
340
|
+
|
341
|
+
Name | Type | Description | Notes
|
342
|
+
------------- | ------------- | ------------- | -------------
|
343
|
+
**deb_distribution_href** | **String**| URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/ |
|
344
|
+
**data** | [**DebDistribution**](DebDistribution.md)| |
|
345
|
+
|
346
|
+
### Return type
|
347
|
+
|
348
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
349
|
+
|
350
|
+
### Authorization
|
351
|
+
|
352
|
+
[Basic](../README.md#Basic)
|
353
|
+
|
354
|
+
### HTTP request headers
|
355
|
+
|
356
|
+
- **Content-Type**: application/json
|
357
|
+
- **Accept**: application/json
|
358
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# PulpDebClient::GenericContent
|
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
|
+
**artifact** | **String** | Artifact file representing the physical content | [optional]
|
11
|
+
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
|
12
|
+
**file** | **String** | An uploaded file that should be turned into the artifact of the content unit. | [optional]
|
13
|
+
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
14
|
+
**md5** | **String** | The MD5 checksum if available. | [optional]
|
15
|
+
**sha1** | **String** | The SHA-1 checksum if available. | [optional]
|
16
|
+
**sha224** | **String** | The SHA-224 checksum if available. | [optional]
|
17
|
+
**sha256** | **String** | The SHA-256 checksum if available. | [optional]
|
18
|
+
**sha384** | **String** | The SHA-384 checksum if available. | [optional]
|
19
|
+
**sha512** | **String** | The SHA-512 checksum if available. | [optional]
|
20
|
+
|
21
|
+
## Code Sample
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'PulpDebClient'
|
25
|
+
|
26
|
+
instance = PulpDebClient::GenericContent.new(_href: null,
|
27
|
+
_created: null,
|
28
|
+
_type: null,
|
29
|
+
artifact: null,
|
30
|
+
relative_path: null,
|
31
|
+
file: null,
|
32
|
+
repository: null,
|
33
|
+
md5: null,
|
34
|
+
sha1: null,
|
35
|
+
sha224: null,
|
36
|
+
sha256: null,
|
37
|
+
sha384: null,
|
38
|
+
sha512: null)
|
39
|
+
```
|
40
|
+
|
41
|
+
|