pulp_deb_client 3.0.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -6
- data/docs/ContentGenericContentsApi.md +4 -4
- data/docs/ContentInstallerPackagesApi.md +4 -4
- data/docs/ContentPackagesApi.md +20 -4
- data/docs/ContentSourceIndicesApi.md +204 -0
- data/docs/ContentSourcePackagesApi.md +258 -0
- data/docs/ContentSourceReleaseComponentsApi.md +202 -0
- data/docs/DebGenericContent.md +2 -2
- data/docs/DebInstallerPackage.md +2 -2
- data/docs/DebPackage.md +2 -2
- data/docs/DebSourceIndex.md +25 -0
- data/docs/DebSourceIndexResponse.md +27 -0
- data/docs/DebSourcePackage.md +21 -0
- data/docs/DebSourcePackageReleaseComponent.md +21 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +23 -0
- data/docs/DebSourcePackageResponse.md +77 -0
- data/docs/PaginateddebSourceIndexResponseList.md +23 -0
- data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +23 -0
- data/docs/PaginateddebSourcePackageResponseList.md +23 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -4
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -4
- data/lib/pulp_deb_client/api/content_packages_api.rb +28 -4
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +256 -0
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +337 -0
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +253 -0
- data/lib/pulp_deb_client/models/deb_generic_content.rb +2 -2
- data/lib/pulp_deb_client/models/deb_installer_package.rb +2 -2
- data/lib/pulp_deb_client/models/deb_package.rb +2 -2
- data/lib/pulp_deb_client/models/deb_source_index.rb +297 -0
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +272 -0
- data/lib/pulp_deb_client/models/deb_source_package.rb +248 -0
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +238 -0
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +247 -0
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +485 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +237 -0
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +12 -0
- data/spec/api/content_generic_contents_api_spec.rb +2 -2
- data/spec/api/content_installer_packages_api_spec.rb +2 -2
- data/spec/api/content_packages_api_spec.rb +10 -2
- data/spec/api/content_source_indices_api_spec.rb +86 -0
- data/spec/api/content_source_packages_api_spec.rb +113 -0
- data/spec/api/content_source_release_components_api_spec.rb +85 -0
- data/spec/models/deb_source_index_response_spec.rb +71 -0
- data/spec/models/deb_source_index_spec.rb +65 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +59 -0
- data/spec/models/deb_source_package_release_component_spec.rb +53 -0
- data/spec/models/deb_source_package_response_spec.rb +221 -0
- data/spec/models/deb_source_package_spec.rb +53 -0
- data/spec/models/paginateddeb_source_index_response_list_spec.rb +59 -0
- data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +59 -0
- data/spec/models/paginateddeb_source_package_response_list_spec.rb +59 -0
- metadata +110 -62
@@ -0,0 +1,337 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpDebClient
|
16
|
+
class ContentSourcePackagesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a source package
|
23
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
|
+
# @param deb_source_package [DebSourcePackage]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [AsyncOperationResponse]
|
27
|
+
def create(deb_source_package, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(deb_source_package, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a source package
|
33
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
34
|
+
# @param deb_source_package [DebSourcePackage]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(deb_source_package, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'deb_source_package' is set
|
42
|
+
if @api_client.config.client_side_validation && deb_source_package.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_package' when calling ContentSourcePackagesApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/content/deb/source_packages/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(deb_source_package)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ContentSourcePackagesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# List source packages
|
87
|
+
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :architecture Filter results where architecture matches value
|
90
|
+
# @option opts [String] :binary Filter results where binary matches value
|
91
|
+
# @option opts [String] :build_conflicts Filter results where build_conflicts matches value
|
92
|
+
# @option opts [String] :build_conflicts_arch Filter results where build_conflicts_arch matches value
|
93
|
+
# @option opts [String] :build_conflicts_indep Filter results where build_conflicts_indep matches value
|
94
|
+
# @option opts [String] :build_depends Filter results where build_depends matches value
|
95
|
+
# @option opts [String] :build_depends_arch Filter results where build_depends_arch matches value
|
96
|
+
# @option opts [String] :build_depends_indep Filter results where build_depends_indep matches value
|
97
|
+
# @option opts [String] :dgit Filter results where dgit matches value
|
98
|
+
# @option opts [String] :format Filter results where format matches value
|
99
|
+
# @option opts [String] :homepage Filter results where homepage matches value
|
100
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
101
|
+
# @option opts [String] :maintainer Filter results where maintainer matches value
|
102
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
103
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
104
|
+
# @option opts [String] :package_list Filter results where package_list matches value
|
105
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
107
|
+
# @option opts [String] :q
|
108
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
109
|
+
# @option opts [String] :release Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
110
|
+
# @option opts [String] :release_component Must be a comma-separated string: \"release_component_href,repository_or_repository_version_href\" release_component_href: Filter results where SourcePackage in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
111
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
112
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
113
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
114
|
+
# @option opts [String] :source Filter results where source matches value
|
115
|
+
# @option opts [String] :standards_version Filter results where standards_version matches value
|
116
|
+
# @option opts [String] :testsuite Filter results where testsuite matches value
|
117
|
+
# @option opts [String] :uploaders Filter results where uploaders matches value
|
118
|
+
# @option opts [String] :vcs_arch Filter results where vcs_arch matches value
|
119
|
+
# @option opts [String] :vcs_browser Filter results where vcs_browser matches value
|
120
|
+
# @option opts [String] :vcs_bzr Filter results where vcs_bzr matches value
|
121
|
+
# @option opts [String] :vcs_cvs Filter results where vcs_cvs matches value
|
122
|
+
# @option opts [String] :vcs_darcs Filter results where vcs_darcs matches value
|
123
|
+
# @option opts [String] :vcs_git Filter results where vcs_git matches value
|
124
|
+
# @option opts [String] :vcs_hg Filter results where vcs_hg matches value
|
125
|
+
# @option opts [String] :vcs_mtn Filter results where vcs_mtn matches value
|
126
|
+
# @option opts [String] :vcs_snv Filter results where vcs_snv matches value
|
127
|
+
# @option opts [String] :version Filter results where version matches value
|
128
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
129
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
130
|
+
# @return [PaginateddebSourcePackageResponseList]
|
131
|
+
def list(opts = {})
|
132
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
133
|
+
data
|
134
|
+
end
|
135
|
+
|
136
|
+
# List source packages
|
137
|
+
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
138
|
+
# @param [Hash] opts the optional parameters
|
139
|
+
# @option opts [String] :architecture Filter results where architecture matches value
|
140
|
+
# @option opts [String] :binary Filter results where binary matches value
|
141
|
+
# @option opts [String] :build_conflicts Filter results where build_conflicts matches value
|
142
|
+
# @option opts [String] :build_conflicts_arch Filter results where build_conflicts_arch matches value
|
143
|
+
# @option opts [String] :build_conflicts_indep Filter results where build_conflicts_indep matches value
|
144
|
+
# @option opts [String] :build_depends Filter results where build_depends matches value
|
145
|
+
# @option opts [String] :build_depends_arch Filter results where build_depends_arch matches value
|
146
|
+
# @option opts [String] :build_depends_indep Filter results where build_depends_indep matches value
|
147
|
+
# @option opts [String] :dgit Filter results where dgit matches value
|
148
|
+
# @option opts [String] :format Filter results where format matches value
|
149
|
+
# @option opts [String] :homepage Filter results where homepage matches value
|
150
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
151
|
+
# @option opts [String] :maintainer Filter results where maintainer matches value
|
152
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
154
|
+
# @option opts [String] :package_list Filter results where package_list matches value
|
155
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
156
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
157
|
+
# @option opts [String] :q
|
158
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
159
|
+
# @option opts [String] :release Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
160
|
+
# @option opts [String] :release_component Must be a comma-separated string: \"release_component_href,repository_or_repository_version_href\" release_component_href: Filter results where SourcePackage in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
161
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
162
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
163
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
164
|
+
# @option opts [String] :source Filter results where source matches value
|
165
|
+
# @option opts [String] :standards_version Filter results where standards_version matches value
|
166
|
+
# @option opts [String] :testsuite Filter results where testsuite matches value
|
167
|
+
# @option opts [String] :uploaders Filter results where uploaders matches value
|
168
|
+
# @option opts [String] :vcs_arch Filter results where vcs_arch matches value
|
169
|
+
# @option opts [String] :vcs_browser Filter results where vcs_browser matches value
|
170
|
+
# @option opts [String] :vcs_bzr Filter results where vcs_bzr matches value
|
171
|
+
# @option opts [String] :vcs_cvs Filter results where vcs_cvs matches value
|
172
|
+
# @option opts [String] :vcs_darcs Filter results where vcs_darcs matches value
|
173
|
+
# @option opts [String] :vcs_git Filter results where vcs_git matches value
|
174
|
+
# @option opts [String] :vcs_hg Filter results where vcs_hg matches value
|
175
|
+
# @option opts [String] :vcs_mtn Filter results where vcs_mtn matches value
|
176
|
+
# @option opts [String] :vcs_snv Filter results where vcs_snv matches value
|
177
|
+
# @option opts [String] :version Filter results where version matches value
|
178
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
179
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
180
|
+
# @return [Array<(PaginateddebSourcePackageResponseList, Integer, Hash)>] PaginateddebSourcePackageResponseList data, response status code and response headers
|
181
|
+
def list_with_http_info(opts = {})
|
182
|
+
if @api_client.config.debugging
|
183
|
+
@api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.list ...'
|
184
|
+
end
|
185
|
+
allowable_values = ["-architecture", "-binary", "-build_conflicts", "-build_conflicts_arch", "-build_conflicts_indep", "-build_depends", "-build_depends_arch", "-build_depends_indep", "-dgit", "-format", "-homepage", "-maintainer", "-package_list", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-source", "-standards_version", "-testsuite", "-timestamp_of_interest", "-uploaders", "-upstream_id", "-vcs_arch", "-vcs_browser", "-vcs_bzr", "-vcs_cvs", "-vcs_darcs", "-vcs_git", "-vcs_hg", "-vcs_mtn", "-vcs_snv", "-version", "architecture", "binary", "build_conflicts", "build_conflicts_arch", "build_conflicts_indep", "build_depends", "build_depends_arch", "build_depends_indep", "dgit", "format", "homepage", "maintainer", "package_list", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "source", "standards_version", "testsuite", "timestamp_of_interest", "uploaders", "upstream_id", "vcs_arch", "vcs_browser", "vcs_bzr", "vcs_cvs", "vcs_darcs", "vcs_git", "vcs_hg", "vcs_mtn", "vcs_snv", "version"]
|
186
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
187
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
188
|
+
end
|
189
|
+
# resource path
|
190
|
+
local_var_path = '/pulp/api/v3/content/deb/source_packages/'
|
191
|
+
|
192
|
+
# query parameters
|
193
|
+
query_params = opts[:query_params] || {}
|
194
|
+
query_params[:'architecture'] = opts[:'architecture'] if !opts[:'architecture'].nil?
|
195
|
+
query_params[:'binary'] = opts[:'binary'] if !opts[:'binary'].nil?
|
196
|
+
query_params[:'build_conflicts'] = opts[:'build_conflicts'] if !opts[:'build_conflicts'].nil?
|
197
|
+
query_params[:'build_conflicts_arch'] = opts[:'build_conflicts_arch'] if !opts[:'build_conflicts_arch'].nil?
|
198
|
+
query_params[:'build_conflicts_indep'] = opts[:'build_conflicts_indep'] if !opts[:'build_conflicts_indep'].nil?
|
199
|
+
query_params[:'build_depends'] = opts[:'build_depends'] if !opts[:'build_depends'].nil?
|
200
|
+
query_params[:'build_depends_arch'] = opts[:'build_depends_arch'] if !opts[:'build_depends_arch'].nil?
|
201
|
+
query_params[:'build_depends_indep'] = opts[:'build_depends_indep'] if !opts[:'build_depends_indep'].nil?
|
202
|
+
query_params[:'dgit'] = opts[:'dgit'] if !opts[:'dgit'].nil?
|
203
|
+
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
|
204
|
+
query_params[:'homepage'] = opts[:'homepage'] if !opts[:'homepage'].nil?
|
205
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
206
|
+
query_params[:'maintainer'] = opts[:'maintainer'] if !opts[:'maintainer'].nil?
|
207
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
208
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
209
|
+
query_params[:'package_list'] = opts[:'package_list'] if !opts[:'package_list'].nil?
|
210
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
211
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
212
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
213
|
+
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
214
|
+
query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
|
215
|
+
query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
|
216
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
217
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
218
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
219
|
+
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
220
|
+
query_params[:'standards_version'] = opts[:'standards_version'] if !opts[:'standards_version'].nil?
|
221
|
+
query_params[:'testsuite'] = opts[:'testsuite'] if !opts[:'testsuite'].nil?
|
222
|
+
query_params[:'uploaders'] = opts[:'uploaders'] if !opts[:'uploaders'].nil?
|
223
|
+
query_params[:'vcs_arch'] = opts[:'vcs_arch'] if !opts[:'vcs_arch'].nil?
|
224
|
+
query_params[:'vcs_browser'] = opts[:'vcs_browser'] if !opts[:'vcs_browser'].nil?
|
225
|
+
query_params[:'vcs_bzr'] = opts[:'vcs_bzr'] if !opts[:'vcs_bzr'].nil?
|
226
|
+
query_params[:'vcs_cvs'] = opts[:'vcs_cvs'] if !opts[:'vcs_cvs'].nil?
|
227
|
+
query_params[:'vcs_darcs'] = opts[:'vcs_darcs'] if !opts[:'vcs_darcs'].nil?
|
228
|
+
query_params[:'vcs_git'] = opts[:'vcs_git'] if !opts[:'vcs_git'].nil?
|
229
|
+
query_params[:'vcs_hg'] = opts[:'vcs_hg'] if !opts[:'vcs_hg'].nil?
|
230
|
+
query_params[:'vcs_mtn'] = opts[:'vcs_mtn'] if !opts[:'vcs_mtn'].nil?
|
231
|
+
query_params[:'vcs_snv'] = opts[:'vcs_snv'] if !opts[:'vcs_snv'].nil?
|
232
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
233
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
234
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
235
|
+
|
236
|
+
# header parameters
|
237
|
+
header_params = opts[:header_params] || {}
|
238
|
+
# HTTP header 'Accept' (if needed)
|
239
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
240
|
+
|
241
|
+
# form parameters
|
242
|
+
form_params = opts[:form_params] || {}
|
243
|
+
|
244
|
+
# http body (model)
|
245
|
+
post_body = opts[:body]
|
246
|
+
|
247
|
+
# return_type
|
248
|
+
return_type = opts[:return_type] || 'PaginateddebSourcePackageResponseList'
|
249
|
+
|
250
|
+
# auth_names
|
251
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
252
|
+
|
253
|
+
new_options = opts.merge(
|
254
|
+
:header_params => header_params,
|
255
|
+
:query_params => query_params,
|
256
|
+
:form_params => form_params,
|
257
|
+
:body => post_body,
|
258
|
+
:auth_names => auth_names,
|
259
|
+
:return_type => return_type
|
260
|
+
)
|
261
|
+
|
262
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
263
|
+
if @api_client.config.debugging
|
264
|
+
@api_client.config.logger.debug "API called: ContentSourcePackagesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
265
|
+
end
|
266
|
+
return data, status_code, headers
|
267
|
+
end
|
268
|
+
|
269
|
+
# Inspect a source package
|
270
|
+
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
271
|
+
# @param deb_source_package_href [String]
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
274
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
275
|
+
# @return [DebSourcePackageResponse]
|
276
|
+
def read(deb_source_package_href, opts = {})
|
277
|
+
data, _status_code, _headers = read_with_http_info(deb_source_package_href, opts)
|
278
|
+
data
|
279
|
+
end
|
280
|
+
|
281
|
+
# Inspect a source package
|
282
|
+
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
283
|
+
# @param deb_source_package_href [String]
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
286
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
287
|
+
# @return [Array<(DebSourcePackageResponse, Integer, Hash)>] DebSourcePackageResponse data, response status code and response headers
|
288
|
+
def read_with_http_info(deb_source_package_href, opts = {})
|
289
|
+
if @api_client.config.debugging
|
290
|
+
@api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.read ...'
|
291
|
+
end
|
292
|
+
# verify the required parameter 'deb_source_package_href' is set
|
293
|
+
if @api_client.config.client_side_validation && deb_source_package_href.nil?
|
294
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_package_href' when calling ContentSourcePackagesApi.read"
|
295
|
+
end
|
296
|
+
# resource path
|
297
|
+
local_var_path = '{deb_source_package_href}'.sub('{' + 'deb_source_package_href' + '}', CGI.escape(deb_source_package_href.to_s).gsub('%2F', '/'))
|
298
|
+
|
299
|
+
# query parameters
|
300
|
+
query_params = opts[:query_params] || {}
|
301
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
302
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
303
|
+
|
304
|
+
# header parameters
|
305
|
+
header_params = opts[:header_params] || {}
|
306
|
+
# HTTP header 'Accept' (if needed)
|
307
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
308
|
+
|
309
|
+
# form parameters
|
310
|
+
form_params = opts[:form_params] || {}
|
311
|
+
|
312
|
+
# http body (model)
|
313
|
+
post_body = opts[:body]
|
314
|
+
|
315
|
+
# return_type
|
316
|
+
return_type = opts[:return_type] || 'DebSourcePackageResponse'
|
317
|
+
|
318
|
+
# auth_names
|
319
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
320
|
+
|
321
|
+
new_options = opts.merge(
|
322
|
+
:header_params => header_params,
|
323
|
+
:query_params => query_params,
|
324
|
+
:form_params => form_params,
|
325
|
+
:body => post_body,
|
326
|
+
:auth_names => auth_names,
|
327
|
+
:return_type => return_type
|
328
|
+
)
|
329
|
+
|
330
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
331
|
+
if @api_client.config.debugging
|
332
|
+
@api_client.config.logger.debug "API called: ContentSourcePackagesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
333
|
+
end
|
334
|
+
return data, status_code, headers
|
335
|
+
end
|
336
|
+
end
|
337
|
+
end
|
@@ -0,0 +1,253 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpDebClient
|
16
|
+
class ContentSourceReleaseComponentsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a source package release component
|
23
|
+
# A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
|
24
|
+
# @param deb_source_package_release_component [DebSourcePackageReleaseComponent]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [DebSourcePackageReleaseComponentResponse]
|
27
|
+
def create(deb_source_package_release_component, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(deb_source_package_release_component, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a source package release component
|
33
|
+
# A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
|
34
|
+
# @param deb_source_package_release_component [DebSourcePackageReleaseComponent]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(DebSourcePackageReleaseComponentResponse, Integer, Hash)>] DebSourcePackageReleaseComponentResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(deb_source_package_release_component, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentSourceReleaseComponentsApi.create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'deb_source_package_release_component' is set
|
42
|
+
if @api_client.config.client_side_validation && deb_source_package_release_component.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_package_release_component' when calling ContentSourceReleaseComponentsApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/content/deb/source_release_components/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(deb_source_package_release_component)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'DebSourcePackageReleaseComponentResponse'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ContentSourceReleaseComponentsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# List source package release components
|
87
|
+
# A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
90
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
91
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
92
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
93
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
94
|
+
# @option opts [String] :q
|
95
|
+
# @option opts [String] :release_component Filter results where release_component matches value
|
96
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
97
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
98
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
99
|
+
# @option opts [String] :source_package Filter results where source_package matches value
|
100
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
101
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
102
|
+
# @return [PaginateddebSourcePackageReleaseComponentResponseList]
|
103
|
+
def list(opts = {})
|
104
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
105
|
+
data
|
106
|
+
end
|
107
|
+
|
108
|
+
# List source package release components
|
109
|
+
# A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
112
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
113
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
114
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
115
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
116
|
+
# @option opts [String] :q
|
117
|
+
# @option opts [String] :release_component Filter results where release_component matches value
|
118
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
119
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
120
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
121
|
+
# @option opts [String] :source_package Filter results where source_package matches value
|
122
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
123
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
124
|
+
# @return [Array<(PaginateddebSourcePackageReleaseComponentResponseList, Integer, Hash)>] PaginateddebSourcePackageReleaseComponentResponseList data, response status code and response headers
|
125
|
+
def list_with_http_info(opts = {})
|
126
|
+
if @api_client.config.debugging
|
127
|
+
@api_client.config.logger.debug 'Calling API: ContentSourceReleaseComponentsApi.list ...'
|
128
|
+
end
|
129
|
+
allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
130
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
131
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
132
|
+
end
|
133
|
+
# resource path
|
134
|
+
local_var_path = '/pulp/api/v3/content/deb/source_release_components/'
|
135
|
+
|
136
|
+
# query parameters
|
137
|
+
query_params = opts[:query_params] || {}
|
138
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
139
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
140
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
141
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
142
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
143
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
144
|
+
query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
|
145
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
146
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
147
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
148
|
+
query_params[:'source_package'] = opts[:'source_package'] if !opts[:'source_package'].nil?
|
149
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
150
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
151
|
+
|
152
|
+
# header parameters
|
153
|
+
header_params = opts[:header_params] || {}
|
154
|
+
# HTTP header 'Accept' (if needed)
|
155
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
156
|
+
|
157
|
+
# form parameters
|
158
|
+
form_params = opts[:form_params] || {}
|
159
|
+
|
160
|
+
# http body (model)
|
161
|
+
post_body = opts[:body]
|
162
|
+
|
163
|
+
# return_type
|
164
|
+
return_type = opts[:return_type] || 'PaginateddebSourcePackageReleaseComponentResponseList'
|
165
|
+
|
166
|
+
# auth_names
|
167
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
168
|
+
|
169
|
+
new_options = opts.merge(
|
170
|
+
:header_params => header_params,
|
171
|
+
:query_params => query_params,
|
172
|
+
:form_params => form_params,
|
173
|
+
:body => post_body,
|
174
|
+
:auth_names => auth_names,
|
175
|
+
:return_type => return_type
|
176
|
+
)
|
177
|
+
|
178
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
179
|
+
if @api_client.config.debugging
|
180
|
+
@api_client.config.logger.debug "API called: ContentSourceReleaseComponentsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
181
|
+
end
|
182
|
+
return data, status_code, headers
|
183
|
+
end
|
184
|
+
|
185
|
+
# Inspect a source package release component
|
186
|
+
# A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
|
187
|
+
# @param deb_source_package_release_component_href [String]
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
190
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
191
|
+
# @return [DebSourcePackageReleaseComponentResponse]
|
192
|
+
def read(deb_source_package_release_component_href, opts = {})
|
193
|
+
data, _status_code, _headers = read_with_http_info(deb_source_package_release_component_href, opts)
|
194
|
+
data
|
195
|
+
end
|
196
|
+
|
197
|
+
# Inspect a source package release component
|
198
|
+
# A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
|
199
|
+
# @param deb_source_package_release_component_href [String]
|
200
|
+
# @param [Hash] opts the optional parameters
|
201
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
202
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
203
|
+
# @return [Array<(DebSourcePackageReleaseComponentResponse, Integer, Hash)>] DebSourcePackageReleaseComponentResponse data, response status code and response headers
|
204
|
+
def read_with_http_info(deb_source_package_release_component_href, opts = {})
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug 'Calling API: ContentSourceReleaseComponentsApi.read ...'
|
207
|
+
end
|
208
|
+
# verify the required parameter 'deb_source_package_release_component_href' is set
|
209
|
+
if @api_client.config.client_side_validation && deb_source_package_release_component_href.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_package_release_component_href' when calling ContentSourceReleaseComponentsApi.read"
|
211
|
+
end
|
212
|
+
# resource path
|
213
|
+
local_var_path = '{deb_source_package_release_component_href}'.sub('{' + 'deb_source_package_release_component_href' + '}', CGI.escape(deb_source_package_release_component_href.to_s).gsub('%2F', '/'))
|
214
|
+
|
215
|
+
# query parameters
|
216
|
+
query_params = opts[:query_params] || {}
|
217
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
218
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
219
|
+
|
220
|
+
# header parameters
|
221
|
+
header_params = opts[:header_params] || {}
|
222
|
+
# HTTP header 'Accept' (if needed)
|
223
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
224
|
+
|
225
|
+
# form parameters
|
226
|
+
form_params = opts[:form_params] || {}
|
227
|
+
|
228
|
+
# http body (model)
|
229
|
+
post_body = opts[:body]
|
230
|
+
|
231
|
+
# return_type
|
232
|
+
return_type = opts[:return_type] || 'DebSourcePackageReleaseComponentResponse'
|
233
|
+
|
234
|
+
# auth_names
|
235
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
236
|
+
|
237
|
+
new_options = opts.merge(
|
238
|
+
:header_params => header_params,
|
239
|
+
:query_params => query_params,
|
240
|
+
:form_params => form_params,
|
241
|
+
:body => post_body,
|
242
|
+
:auth_names => auth_names,
|
243
|
+
:return_type => return_type
|
244
|
+
)
|
245
|
+
|
246
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
247
|
+
if @api_client.config.debugging
|
248
|
+
@api_client.config.logger.debug "API called: ContentSourceReleaseComponentsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
249
|
+
end
|
250
|
+
return data, status_code, headers
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
@@ -24,10 +24,10 @@ module PulpDebClient
|
|
24
24
|
# Path where the artifact is located relative to distributions base_path
|
25
25
|
attr_accessor :relative_path
|
26
26
|
|
27
|
-
# An uploaded file that may be turned into the
|
27
|
+
# An uploaded file that may be turned into the content unit.
|
28
28
|
attr_accessor :file
|
29
29
|
|
30
|
-
# An uncommitted upload that may be turned into the
|
30
|
+
# An uncommitted upload that may be turned into the content unit.
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -24,10 +24,10 @@ module PulpDebClient
|
|
24
24
|
# Path where the artifact is located relative to distributions base_path
|
25
25
|
attr_accessor :relative_path
|
26
26
|
|
27
|
-
# An uploaded file that may be turned into the
|
27
|
+
# An uploaded file that may be turned into the content unit.
|
28
28
|
attr_accessor :file
|
29
29
|
|
30
|
-
# An uncommitted upload that may be turned into the
|
30
|
+
# An uncommitted upload that may be turned into the content unit.
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|