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,194 @@
|
|
|
1
|
+
# PulpDebClient::ContentInstallerPackagesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](ContentInstallerPackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/installer_packages/ | Create an installer package
|
|
8
|
+
[**list**](ContentInstallerPackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/installer_packages/ | List installer packages
|
|
9
|
+
[**read**](ContentInstallerPackagesApi.md#read) | **GET** {installer_package_href} | Inspect an installer package
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## create
|
|
14
|
+
|
|
15
|
+
> AsyncOperationResponse create(opts)
|
|
16
|
+
|
|
17
|
+
Create an installer package
|
|
18
|
+
|
|
19
|
+
Trigger an asynchronous task to create content,optionally create new repository 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::ContentInstallerPackagesApi.new
|
|
34
|
+
opts = {
|
|
35
|
+
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
|
36
|
+
relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
|
|
37
|
+
file: File.new('/path/to/file'), # File | An uploaded file that should be turned into the artifact of the content unit.
|
|
38
|
+
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
begin
|
|
42
|
+
#Create an installer package
|
|
43
|
+
result = api_instance.create(opts)
|
|
44
|
+
p result
|
|
45
|
+
rescue PulpDebClient::ApiError => e
|
|
46
|
+
puts "Exception when calling ContentInstallerPackagesApi->create: #{e}"
|
|
47
|
+
end
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Parameters
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Name | Type | Description | Notes
|
|
54
|
+
------------- | ------------- | ------------- | -------------
|
|
55
|
+
**artifact** | **String**| Artifact file representing the physical content | [optional]
|
|
56
|
+
**relative_path** | **String**| Path where the artifact is located relative to distributions base_path | [optional]
|
|
57
|
+
**file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional]
|
|
58
|
+
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
[Basic](../README.md#Basic)
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
|
71
|
+
- **Accept**: application/json
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## list
|
|
75
|
+
|
|
76
|
+
> InlineResponse2002 list(opts)
|
|
77
|
+
|
|
78
|
+
List installer packages
|
|
79
|
+
|
|
80
|
+
A ViewSet for InstallerPackage.
|
|
81
|
+
|
|
82
|
+
### Example
|
|
83
|
+
|
|
84
|
+
```ruby
|
|
85
|
+
# load the gem
|
|
86
|
+
require 'pulp_deb_client'
|
|
87
|
+
# setup authorization
|
|
88
|
+
PulpDebClient.configure do |config|
|
|
89
|
+
# Configure HTTP basic authorization: Basic
|
|
90
|
+
config.username = 'YOUR USERNAME'
|
|
91
|
+
config.password = 'YOUR PASSWORD'
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
api_instance = PulpDebClient::ContentInstallerPackagesApi.new
|
|
95
|
+
opts = {
|
|
96
|
+
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
97
|
+
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
|
98
|
+
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
|
99
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
100
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
101
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
begin
|
|
105
|
+
#List installer packages
|
|
106
|
+
result = api_instance.list(opts)
|
|
107
|
+
p result
|
|
108
|
+
rescue PulpDebClient::ApiError => e
|
|
109
|
+
puts "Exception when calling ContentInstallerPackagesApi->list: #{e}"
|
|
110
|
+
end
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Parameters
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
Name | Type | Description | Notes
|
|
117
|
+
------------- | ------------- | ------------- | -------------
|
|
118
|
+
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
|
119
|
+
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
|
120
|
+
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
|
121
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
122
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
123
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
124
|
+
|
|
125
|
+
### Return type
|
|
126
|
+
|
|
127
|
+
[**InlineResponse2002**](InlineResponse2002.md)
|
|
128
|
+
|
|
129
|
+
### Authorization
|
|
130
|
+
|
|
131
|
+
[Basic](../README.md#Basic)
|
|
132
|
+
|
|
133
|
+
### HTTP request headers
|
|
134
|
+
|
|
135
|
+
- **Content-Type**: Not defined
|
|
136
|
+
- **Accept**: application/json
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## read
|
|
140
|
+
|
|
141
|
+
> InstallerPackage read(installer_package_href, opts)
|
|
142
|
+
|
|
143
|
+
Inspect an installer package
|
|
144
|
+
|
|
145
|
+
A ViewSet for InstallerPackage.
|
|
146
|
+
|
|
147
|
+
### Example
|
|
148
|
+
|
|
149
|
+
```ruby
|
|
150
|
+
# load the gem
|
|
151
|
+
require 'pulp_deb_client'
|
|
152
|
+
# setup authorization
|
|
153
|
+
PulpDebClient.configure do |config|
|
|
154
|
+
# Configure HTTP basic authorization: Basic
|
|
155
|
+
config.username = 'YOUR USERNAME'
|
|
156
|
+
config.password = 'YOUR PASSWORD'
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
api_instance = PulpDebClient::ContentInstallerPackagesApi.new
|
|
160
|
+
installer_package_href = 'installer_package_href_example' # String | URI of Installer Package. e.g.: /pulp/api/v3/content/deb/installer_packages/1/
|
|
161
|
+
opts = {
|
|
162
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
begin
|
|
166
|
+
#Inspect an installer package
|
|
167
|
+
result = api_instance.read(installer_package_href, opts)
|
|
168
|
+
p result
|
|
169
|
+
rescue PulpDebClient::ApiError => e
|
|
170
|
+
puts "Exception when calling ContentInstallerPackagesApi->read: #{e}"
|
|
171
|
+
end
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Parameters
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
Name | Type | Description | Notes
|
|
178
|
+
------------- | ------------- | ------------- | -------------
|
|
179
|
+
**installer_package_href** | **String**| URI of Installer Package. e.g.: /pulp/api/v3/content/deb/installer_packages/1/ |
|
|
180
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
181
|
+
|
|
182
|
+
### Return type
|
|
183
|
+
|
|
184
|
+
[**InstallerPackage**](InstallerPackage.md)
|
|
185
|
+
|
|
186
|
+
### Authorization
|
|
187
|
+
|
|
188
|
+
[Basic](../README.md#Basic)
|
|
189
|
+
|
|
190
|
+
### HTTP request headers
|
|
191
|
+
|
|
192
|
+
- **Content-Type**: Not defined
|
|
193
|
+
- **Accept**: application/json
|
|
194
|
+
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# PulpDebClient::ContentPackageIndexApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](ContentPackageIndexApi.md#create) | **POST** /pulp/api/v3/content/deb/package_index/ | Create a package index
|
|
8
|
+
[**list**](ContentPackageIndexApi.md#list) | **GET** /pulp/api/v3/content/deb/package_index/ | List PackageIndices
|
|
9
|
+
[**read**](ContentPackageIndexApi.md#read) | **GET** {package_index_href} | Inspect a package index
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## create
|
|
14
|
+
|
|
15
|
+
> PackageIndex create(data)
|
|
16
|
+
|
|
17
|
+
Create a package index
|
|
18
|
+
|
|
19
|
+
A ViewSet for PackageIndex.
|
|
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::ContentPackageIndexApi.new
|
|
34
|
+
data = PulpDebClient::PackageIndex.new # PackageIndex |
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
#Create a package index
|
|
38
|
+
result = api_instance.create(data)
|
|
39
|
+
p result
|
|
40
|
+
rescue PulpDebClient::ApiError => e
|
|
41
|
+
puts "Exception when calling ContentPackageIndexApi->create: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Parameters
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Name | Type | Description | Notes
|
|
49
|
+
------------- | ------------- | ------------- | -------------
|
|
50
|
+
**data** | [**PackageIndex**](PackageIndex.md)| |
|
|
51
|
+
|
|
52
|
+
### Return type
|
|
53
|
+
|
|
54
|
+
[**PackageIndex**](PackageIndex.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
|
+
> InlineResponse2003 list(opts)
|
|
69
|
+
|
|
70
|
+
List PackageIndices
|
|
71
|
+
|
|
72
|
+
A ViewSet for PackageIndex.
|
|
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::ContentPackageIndexApi.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 PackageIndices
|
|
98
|
+
result = api_instance.list(opts)
|
|
99
|
+
p result
|
|
100
|
+
rescue PulpDebClient::ApiError => e
|
|
101
|
+
puts "Exception when calling ContentPackageIndexApi->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
|
+
[**InlineResponse2003**](InlineResponse2003.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
|
+
> PackageIndex read(package_index_href, opts)
|
|
134
|
+
|
|
135
|
+
Inspect a package index
|
|
136
|
+
|
|
137
|
+
A ViewSet for PackageIndex.
|
|
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::ContentPackageIndexApi.new
|
|
152
|
+
package_index_href = 'package_index_href_example' # String | URI of Package Index. e.g.: /pulp/api/v3/content/deb/package_index/1/
|
|
153
|
+
opts = {
|
|
154
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
begin
|
|
158
|
+
#Inspect a package index
|
|
159
|
+
result = api_instance.read(package_index_href, opts)
|
|
160
|
+
p result
|
|
161
|
+
rescue PulpDebClient::ApiError => e
|
|
162
|
+
puts "Exception when calling ContentPackageIndexApi->read: #{e}"
|
|
163
|
+
end
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Parameters
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
Name | Type | Description | Notes
|
|
170
|
+
------------- | ------------- | ------------- | -------------
|
|
171
|
+
**package_index_href** | **String**| URI of Package Index. e.g.: /pulp/api/v3/content/deb/package_index/1/ |
|
|
172
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
173
|
+
|
|
174
|
+
### Return type
|
|
175
|
+
|
|
176
|
+
[**PackageIndex**](PackageIndex.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,194 @@
|
|
|
1
|
+
# PulpDebClient::ContentPackagesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/packages/ | Create a package
|
|
8
|
+
[**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/packages/ | List packages
|
|
9
|
+
[**read**](ContentPackagesApi.md#read) | **GET** {package_href} | Inspect a package
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## create
|
|
14
|
+
|
|
15
|
+
> AsyncOperationResponse create(opts)
|
|
16
|
+
|
|
17
|
+
Create a package
|
|
18
|
+
|
|
19
|
+
Trigger an asynchronous task to create content,optionally create new repository 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::ContentPackagesApi.new
|
|
34
|
+
opts = {
|
|
35
|
+
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
|
36
|
+
relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
|
|
37
|
+
file: File.new('/path/to/file'), # File | An uploaded file that should be turned into the artifact of the content unit.
|
|
38
|
+
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
begin
|
|
42
|
+
#Create a package
|
|
43
|
+
result = api_instance.create(opts)
|
|
44
|
+
p result
|
|
45
|
+
rescue PulpDebClient::ApiError => e
|
|
46
|
+
puts "Exception when calling ContentPackagesApi->create: #{e}"
|
|
47
|
+
end
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Parameters
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Name | Type | Description | Notes
|
|
54
|
+
------------- | ------------- | ------------- | -------------
|
|
55
|
+
**artifact** | **String**| Artifact file representing the physical content | [optional]
|
|
56
|
+
**relative_path** | **String**| Path where the artifact is located relative to distributions base_path | [optional]
|
|
57
|
+
**file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional]
|
|
58
|
+
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
[Basic](../README.md#Basic)
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
|
71
|
+
- **Accept**: application/json
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## list
|
|
75
|
+
|
|
76
|
+
> InlineResponse2004 list(opts)
|
|
77
|
+
|
|
78
|
+
List packages
|
|
79
|
+
|
|
80
|
+
A ViewSet for Package.
|
|
81
|
+
|
|
82
|
+
### Example
|
|
83
|
+
|
|
84
|
+
```ruby
|
|
85
|
+
# load the gem
|
|
86
|
+
require 'pulp_deb_client'
|
|
87
|
+
# setup authorization
|
|
88
|
+
PulpDebClient.configure do |config|
|
|
89
|
+
# Configure HTTP basic authorization: Basic
|
|
90
|
+
config.username = 'YOUR USERNAME'
|
|
91
|
+
config.password = 'YOUR PASSWORD'
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
api_instance = PulpDebClient::ContentPackagesApi.new
|
|
95
|
+
opts = {
|
|
96
|
+
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
97
|
+
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
|
98
|
+
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
|
99
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
100
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
101
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
begin
|
|
105
|
+
#List packages
|
|
106
|
+
result = api_instance.list(opts)
|
|
107
|
+
p result
|
|
108
|
+
rescue PulpDebClient::ApiError => e
|
|
109
|
+
puts "Exception when calling ContentPackagesApi->list: #{e}"
|
|
110
|
+
end
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Parameters
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
Name | Type | Description | Notes
|
|
117
|
+
------------- | ------------- | ------------- | -------------
|
|
118
|
+
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
|
119
|
+
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
|
120
|
+
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
|
121
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
122
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
123
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
124
|
+
|
|
125
|
+
### Return type
|
|
126
|
+
|
|
127
|
+
[**InlineResponse2004**](InlineResponse2004.md)
|
|
128
|
+
|
|
129
|
+
### Authorization
|
|
130
|
+
|
|
131
|
+
[Basic](../README.md#Basic)
|
|
132
|
+
|
|
133
|
+
### HTTP request headers
|
|
134
|
+
|
|
135
|
+
- **Content-Type**: Not defined
|
|
136
|
+
- **Accept**: application/json
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## read
|
|
140
|
+
|
|
141
|
+
> Package read(package_href, opts)
|
|
142
|
+
|
|
143
|
+
Inspect a package
|
|
144
|
+
|
|
145
|
+
A ViewSet for Package.
|
|
146
|
+
|
|
147
|
+
### Example
|
|
148
|
+
|
|
149
|
+
```ruby
|
|
150
|
+
# load the gem
|
|
151
|
+
require 'pulp_deb_client'
|
|
152
|
+
# setup authorization
|
|
153
|
+
PulpDebClient.configure do |config|
|
|
154
|
+
# Configure HTTP basic authorization: Basic
|
|
155
|
+
config.username = 'YOUR USERNAME'
|
|
156
|
+
config.password = 'YOUR PASSWORD'
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
api_instance = PulpDebClient::ContentPackagesApi.new
|
|
160
|
+
package_href = 'package_href_example' # String | URI of Package. e.g.: /pulp/api/v3/content/deb/packages/1/
|
|
161
|
+
opts = {
|
|
162
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
begin
|
|
166
|
+
#Inspect a package
|
|
167
|
+
result = api_instance.read(package_href, opts)
|
|
168
|
+
p result
|
|
169
|
+
rescue PulpDebClient::ApiError => e
|
|
170
|
+
puts "Exception when calling ContentPackagesApi->read: #{e}"
|
|
171
|
+
end
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Parameters
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
Name | Type | Description | Notes
|
|
178
|
+
------------- | ------------- | ------------- | -------------
|
|
179
|
+
**package_href** | **String**| URI of Package. e.g.: /pulp/api/v3/content/deb/packages/1/ |
|
|
180
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
181
|
+
|
|
182
|
+
### Return type
|
|
183
|
+
|
|
184
|
+
[**Package**](Package.md)
|
|
185
|
+
|
|
186
|
+
### Authorization
|
|
187
|
+
|
|
188
|
+
[Basic](../README.md#Basic)
|
|
189
|
+
|
|
190
|
+
### HTTP request headers
|
|
191
|
+
|
|
192
|
+
- **Content-Type**: Not defined
|
|
193
|
+
- **Accept**: application/json
|
|
194
|
+
|