pulp_deb_client 2.0.0b4 → 2.2.0b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +31 -11
- data/docs/{ContentInstallerFileIndexApi.md → ContentInstallerFileIndicesApi.md} +12 -12
- data/docs/{ContentPackageIndexApi.md → ContentPackageIndicesApi.md} +12 -12
- data/docs/ContentPackageReleaseComponentsApi.md +194 -0
- data/docs/ContentReleaseArchitecturesApi.md +194 -0
- data/docs/ContentReleaseComponentsApi.md +194 -0
- data/docs/ContentReleaseFilesApi.md +2 -2
- data/docs/ContentReleasesApi.md +196 -0
- data/docs/DebDebRemote.md +6 -4
- data/docs/DebPackageReleaseComponent.md +23 -0
- data/docs/DebRelease.md +25 -0
- data/docs/DebReleaseArchitecture.md +23 -0
- data/docs/DebReleaseComponent.md +23 -0
- data/docs/DistributionsAptApi.md +2 -2
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse20014.md +23 -0
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PublicationsAptApi.md +16 -2
- data/docs/PublicationsVerbatimApi.md +16 -2
- data/docs/RemotesAptApi.md +2 -2
- data/docs/RepositoriesAptApi.md +5 -4
- data/docs/RepositoriesDebVersionsApi.md +2 -2
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +1 -1
- data/lib/pulp_deb_client/api/{content_installer_file_index_api.rb → content_installer_file_indices_api.rb} +14 -14
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +1 -1
- data/lib/pulp_deb_client/api/{content_package_index_api.rb → content_package_indices_api.rb} +14 -14
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +237 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +237 -0
- data/lib/pulp_deb_client/api/content_release_components_api.rb +237 -0
- data/lib/pulp_deb_client/api/content_release_files_api.rb +4 -4
- data/lib/pulp_deb_client/api/content_releases_api.rb +240 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +4 -4
- data/lib/pulp_deb_client/api/publications_apt_api.rb +25 -4
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +25 -4
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +4 -4
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +6 -4
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +4 -4
- data/lib/pulp_deb_client/api_client.rb +1 -1
- data/lib/pulp_deb_client/api_error.rb +1 -1
- data/lib/pulp_deb_client/configuration.rb +1 -1
- data/lib/pulp_deb_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_deb_client/models/content_summary.rb +1 -1
- data/lib/pulp_deb_client/models/deb_base_package.rb +1 -1
- data/lib/pulp_deb_client/models/deb_deb_distribution.rb +1 -1
- data/lib/pulp_deb_client/models/deb_deb_publication.rb +1 -1
- data/lib/pulp_deb_client/models/deb_deb_remote.rb +33 -8
- data/lib/pulp_deb_client/models/deb_deb_repository.rb +1 -1
- data/lib/pulp_deb_client/models/deb_generic_content.rb +1 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_index.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +246 -0
- data/lib/pulp_deb_client/models/deb_release.rb +315 -0
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +265 -0
- data/lib/pulp_deb_client/models/deb_release_component.rb +265 -0
- data/lib/pulp_deb_client/models/deb_release_file.rb +1 -1
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response200.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response20010.rb +2 -2
- data/lib/pulp_deb_client/models/inline_response20011.rb +247 -0
- data/lib/pulp_deb_client/models/inline_response20012.rb +247 -0
- data/lib/pulp_deb_client/models/inline_response20013.rb +247 -0
- data/lib/pulp_deb_client/models/inline_response20014.rb +247 -0
- data/lib/pulp_deb_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2004.rb +2 -2
- data/lib/pulp_deb_client/models/inline_response2005.rb +2 -2
- data/lib/pulp_deb_client/models/inline_response2006.rb +2 -2
- data/lib/pulp_deb_client/models/inline_response2007.rb +2 -2
- data/lib/pulp_deb_client/models/inline_response2008.rb +2 -2
- data/lib/pulp_deb_client/models/inline_response2009.rb +2 -2
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_deb_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_deb_client/models/repository_version.rb +1 -1
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +15 -3
- data/pulp_deb_client.gemspec +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +1 -1
- data/spec/api/{content_installer_file_index_api_spec.rb → content_installer_file_indices_api_spec.rb} +8 -8
- data/spec/api/content_installer_packages_api_spec.rb +1 -1
- data/spec/api/{content_package_index_api_spec.rb → content_package_indices_api_spec.rb} +8 -8
- data/spec/api/content_package_release_components_api_spec.rb +81 -0
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/api/content_release_architectures_api_spec.rb +81 -0
- data/spec/api/content_release_components_api_spec.rb +81 -0
- data/spec/api/content_release_files_api_spec.rb +2 -2
- data/spec/api/content_releases_api_spec.rb +82 -0
- data/spec/api/distributions_apt_api_spec.rb +2 -2
- data/spec/api/publications_apt_api_spec.rb +9 -2
- data/spec/api/publications_verbatim_api_spec.rb +9 -2
- data/spec/api/remotes_apt_api_spec.rb +2 -2
- data/spec/api/repositories_apt_api_spec.rb +3 -2
- data/spec/api/repositories_deb_versions_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/deb_base_package_spec.rb +1 -1
- data/spec/models/deb_deb_distribution_spec.rb +1 -1
- data/spec/models/deb_deb_publication_spec.rb +1 -1
- data/spec/models/deb_deb_remote_spec.rb +7 -1
- data/spec/models/deb_deb_repository_spec.rb +1 -1
- data/spec/models/deb_generic_content_spec.rb +1 -1
- data/spec/models/deb_installer_file_index_spec.rb +1 -1
- data/spec/models/deb_package_index_spec.rb +1 -1
- data/spec/models/deb_package_release_component_spec.rb +59 -0
- data/spec/models/deb_release_architecture_spec.rb +59 -0
- data/spec/models/deb_release_component_spec.rb +59 -0
- data/spec/models/deb_release_file_spec.rb +1 -1
- data/spec/models/deb_release_spec.rb +65 -0
- data/spec/models/deb_verbatim_publication_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +1 -1
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- data/spec/models/inline_response20014_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +79 -31
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module PulpDebClient
|
|
16
|
+
class ContentPackageReleaseComponentsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a package release component
|
|
23
|
+
# A ViewSet for PackageReleaseComponent.
|
|
24
|
+
# @param data [DebPackageReleaseComponent]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [DebPackageReleaseComponent]
|
|
27
|
+
def create(data, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create a package release component
|
|
33
|
+
# A ViewSet for PackageReleaseComponent.
|
|
34
|
+
# @param data [DebPackageReleaseComponent]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(DebPackageReleaseComponent, Integer, Hash)>] DebPackageReleaseComponent data, response status code and response headers
|
|
37
|
+
def create_with_http_info(data, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.create ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'data' is set
|
|
42
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentPackageReleaseComponentsApi.create"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/pulp/api/v3/content/deb/package_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'])
|
|
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(data)
|
|
63
|
+
|
|
64
|
+
# return_type
|
|
65
|
+
return_type = opts[:return_type] || 'DebPackageReleaseComponent'
|
|
66
|
+
|
|
67
|
+
# auth_names
|
|
68
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
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: ContentPackageReleaseComponentsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# List package release components
|
|
87
|
+
# A ViewSet for PackageReleaseComponent.
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @option opts [String] :package Filter results where package matches value
|
|
90
|
+
# @option opts [String] :release_component Filter results where release_component matches value
|
|
91
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
92
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
93
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
94
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
95
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
96
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
97
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
98
|
+
# @return [InlineResponse2004]
|
|
99
|
+
def list(opts = {})
|
|
100
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
101
|
+
data
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# List package release components
|
|
105
|
+
# A ViewSet for PackageReleaseComponent.
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @option opts [String] :package Filter results where package matches value
|
|
108
|
+
# @option opts [String] :release_component Filter results where release_component matches value
|
|
109
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
110
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
111
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
112
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
113
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
114
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
115
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
116
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
|
117
|
+
def list_with_http_info(opts = {})
|
|
118
|
+
if @api_client.config.debugging
|
|
119
|
+
@api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.list ...'
|
|
120
|
+
end
|
|
121
|
+
# resource path
|
|
122
|
+
local_var_path = '/pulp/api/v3/content/deb/package_release_components/'
|
|
123
|
+
|
|
124
|
+
# query parameters
|
|
125
|
+
query_params = opts[:query_params] || {}
|
|
126
|
+
query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
|
|
127
|
+
query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
|
|
128
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
129
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
130
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
131
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
132
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
133
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
134
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
135
|
+
|
|
136
|
+
# header parameters
|
|
137
|
+
header_params = opts[:header_params] || {}
|
|
138
|
+
# HTTP header 'Accept' (if needed)
|
|
139
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
140
|
+
|
|
141
|
+
# form parameters
|
|
142
|
+
form_params = opts[:form_params] || {}
|
|
143
|
+
|
|
144
|
+
# http body (model)
|
|
145
|
+
post_body = opts[:body]
|
|
146
|
+
|
|
147
|
+
# return_type
|
|
148
|
+
return_type = opts[:return_type] || 'InlineResponse2004'
|
|
149
|
+
|
|
150
|
+
# auth_names
|
|
151
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
152
|
+
|
|
153
|
+
new_options = opts.merge(
|
|
154
|
+
:header_params => header_params,
|
|
155
|
+
:query_params => query_params,
|
|
156
|
+
:form_params => form_params,
|
|
157
|
+
:body => post_body,
|
|
158
|
+
:auth_names => auth_names,
|
|
159
|
+
:return_type => return_type
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
163
|
+
if @api_client.config.debugging
|
|
164
|
+
@api_client.config.logger.debug "API called: ContentPackageReleaseComponentsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
165
|
+
end
|
|
166
|
+
return data, status_code, headers
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Inspect a package release component
|
|
170
|
+
# A ViewSet for PackageReleaseComponent.
|
|
171
|
+
# @param package_release_component_href [String] URI of Package Release Component. e.g.: /pulp/api/v3/content/deb/package_release_components/1/
|
|
172
|
+
# @param [Hash] opts the optional parameters
|
|
173
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
174
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
175
|
+
# @return [DebPackageReleaseComponent]
|
|
176
|
+
def read(package_release_component_href, opts = {})
|
|
177
|
+
data, _status_code, _headers = read_with_http_info(package_release_component_href, opts)
|
|
178
|
+
data
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Inspect a package release component
|
|
182
|
+
# A ViewSet for PackageReleaseComponent.
|
|
183
|
+
# @param package_release_component_href [String] URI of Package Release Component. e.g.: /pulp/api/v3/content/deb/package_release_components/1/
|
|
184
|
+
# @param [Hash] opts the optional parameters
|
|
185
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
186
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
187
|
+
# @return [Array<(DebPackageReleaseComponent, Integer, Hash)>] DebPackageReleaseComponent data, response status code and response headers
|
|
188
|
+
def read_with_http_info(package_release_component_href, opts = {})
|
|
189
|
+
if @api_client.config.debugging
|
|
190
|
+
@api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.read ...'
|
|
191
|
+
end
|
|
192
|
+
# verify the required parameter 'package_release_component_href' is set
|
|
193
|
+
if @api_client.config.client_side_validation && package_release_component_href.nil?
|
|
194
|
+
fail ArgumentError, "Missing the required parameter 'package_release_component_href' when calling ContentPackageReleaseComponentsApi.read"
|
|
195
|
+
end
|
|
196
|
+
# resource path
|
|
197
|
+
local_var_path = '{package_release_component_href}'.sub('{' + 'package_release_component_href' + '}', CGI.escape(package_release_component_href.to_s).gsub('%2F', '/'))
|
|
198
|
+
|
|
199
|
+
# query parameters
|
|
200
|
+
query_params = opts[:query_params] || {}
|
|
201
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
202
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
203
|
+
|
|
204
|
+
# header parameters
|
|
205
|
+
header_params = opts[:header_params] || {}
|
|
206
|
+
# HTTP header 'Accept' (if needed)
|
|
207
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
208
|
+
|
|
209
|
+
# form parameters
|
|
210
|
+
form_params = opts[:form_params] || {}
|
|
211
|
+
|
|
212
|
+
# http body (model)
|
|
213
|
+
post_body = opts[:body]
|
|
214
|
+
|
|
215
|
+
# return_type
|
|
216
|
+
return_type = opts[:return_type] || 'DebPackageReleaseComponent'
|
|
217
|
+
|
|
218
|
+
# auth_names
|
|
219
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
220
|
+
|
|
221
|
+
new_options = opts.merge(
|
|
222
|
+
:header_params => header_params,
|
|
223
|
+
:query_params => query_params,
|
|
224
|
+
:form_params => form_params,
|
|
225
|
+
:body => post_body,
|
|
226
|
+
:auth_names => auth_names,
|
|
227
|
+
:return_type => return_type
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
231
|
+
if @api_client.config.debugging
|
|
232
|
+
@api_client.config.logger.debug "API called: ContentPackageReleaseComponentsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
233
|
+
end
|
|
234
|
+
return data, status_code, headers
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module PulpDebClient
|
|
16
|
+
class ContentReleaseArchitecturesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a release architecture
|
|
23
|
+
# A ViewSet for ReleaseArchitecture.
|
|
24
|
+
# @param data [DebReleaseArchitecture]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [DebReleaseArchitecture]
|
|
27
|
+
def create(data, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create a release architecture
|
|
33
|
+
# A ViewSet for ReleaseArchitecture.
|
|
34
|
+
# @param data [DebReleaseArchitecture]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(DebReleaseArchitecture, Integer, Hash)>] DebReleaseArchitecture data, response status code and response headers
|
|
37
|
+
def create_with_http_info(data, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseArchitecturesApi.create ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'data' is set
|
|
42
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentReleaseArchitecturesApi.create"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/pulp/api/v3/content/deb/release_architectures/'
|
|
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'])
|
|
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(data)
|
|
63
|
+
|
|
64
|
+
# return_type
|
|
65
|
+
return_type = opts[:return_type] || 'DebReleaseArchitecture'
|
|
66
|
+
|
|
67
|
+
# auth_names
|
|
68
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
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: ContentReleaseArchitecturesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# List release architectures
|
|
87
|
+
# A ViewSet for ReleaseArchitecture.
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @option opts [String] :architecture Filter results where architecture matches value
|
|
90
|
+
# @option opts [String] :release Filter results where release matches value
|
|
91
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
92
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
93
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
94
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
95
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
96
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
97
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
98
|
+
# @return [InlineResponse2005]
|
|
99
|
+
def list(opts = {})
|
|
100
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
101
|
+
data
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# List release architectures
|
|
105
|
+
# A ViewSet for ReleaseArchitecture.
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @option opts [String] :architecture Filter results where architecture matches value
|
|
108
|
+
# @option opts [String] :release Filter results where release matches value
|
|
109
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
110
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
111
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
112
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
113
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
114
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
115
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
116
|
+
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
|
117
|
+
def list_with_http_info(opts = {})
|
|
118
|
+
if @api_client.config.debugging
|
|
119
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseArchitecturesApi.list ...'
|
|
120
|
+
end
|
|
121
|
+
# resource path
|
|
122
|
+
local_var_path = '/pulp/api/v3/content/deb/release_architectures/'
|
|
123
|
+
|
|
124
|
+
# query parameters
|
|
125
|
+
query_params = opts[:query_params] || {}
|
|
126
|
+
query_params[:'architecture'] = opts[:'architecture'] if !opts[:'architecture'].nil?
|
|
127
|
+
query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
|
|
128
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
129
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
130
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
131
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
132
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
133
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
134
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
135
|
+
|
|
136
|
+
# header parameters
|
|
137
|
+
header_params = opts[:header_params] || {}
|
|
138
|
+
# HTTP header 'Accept' (if needed)
|
|
139
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
140
|
+
|
|
141
|
+
# form parameters
|
|
142
|
+
form_params = opts[:form_params] || {}
|
|
143
|
+
|
|
144
|
+
# http body (model)
|
|
145
|
+
post_body = opts[:body]
|
|
146
|
+
|
|
147
|
+
# return_type
|
|
148
|
+
return_type = opts[:return_type] || 'InlineResponse2005'
|
|
149
|
+
|
|
150
|
+
# auth_names
|
|
151
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
152
|
+
|
|
153
|
+
new_options = opts.merge(
|
|
154
|
+
:header_params => header_params,
|
|
155
|
+
:query_params => query_params,
|
|
156
|
+
:form_params => form_params,
|
|
157
|
+
:body => post_body,
|
|
158
|
+
:auth_names => auth_names,
|
|
159
|
+
:return_type => return_type
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
163
|
+
if @api_client.config.debugging
|
|
164
|
+
@api_client.config.logger.debug "API called: ContentReleaseArchitecturesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
165
|
+
end
|
|
166
|
+
return data, status_code, headers
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Inspect a release architecture
|
|
170
|
+
# A ViewSet for ReleaseArchitecture.
|
|
171
|
+
# @param release_architecture_href [String] URI of Release Architecture. e.g.: /pulp/api/v3/content/deb/release_architectures/1/
|
|
172
|
+
# @param [Hash] opts the optional parameters
|
|
173
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
174
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
175
|
+
# @return [DebReleaseArchitecture]
|
|
176
|
+
def read(release_architecture_href, opts = {})
|
|
177
|
+
data, _status_code, _headers = read_with_http_info(release_architecture_href, opts)
|
|
178
|
+
data
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Inspect a release architecture
|
|
182
|
+
# A ViewSet for ReleaseArchitecture.
|
|
183
|
+
# @param release_architecture_href [String] URI of Release Architecture. e.g.: /pulp/api/v3/content/deb/release_architectures/1/
|
|
184
|
+
# @param [Hash] opts the optional parameters
|
|
185
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
186
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
187
|
+
# @return [Array<(DebReleaseArchitecture, Integer, Hash)>] DebReleaseArchitecture data, response status code and response headers
|
|
188
|
+
def read_with_http_info(release_architecture_href, opts = {})
|
|
189
|
+
if @api_client.config.debugging
|
|
190
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseArchitecturesApi.read ...'
|
|
191
|
+
end
|
|
192
|
+
# verify the required parameter 'release_architecture_href' is set
|
|
193
|
+
if @api_client.config.client_side_validation && release_architecture_href.nil?
|
|
194
|
+
fail ArgumentError, "Missing the required parameter 'release_architecture_href' when calling ContentReleaseArchitecturesApi.read"
|
|
195
|
+
end
|
|
196
|
+
# resource path
|
|
197
|
+
local_var_path = '{release_architecture_href}'.sub('{' + 'release_architecture_href' + '}', CGI.escape(release_architecture_href.to_s).gsub('%2F', '/'))
|
|
198
|
+
|
|
199
|
+
# query parameters
|
|
200
|
+
query_params = opts[:query_params] || {}
|
|
201
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
202
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
203
|
+
|
|
204
|
+
# header parameters
|
|
205
|
+
header_params = opts[:header_params] || {}
|
|
206
|
+
# HTTP header 'Accept' (if needed)
|
|
207
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
208
|
+
|
|
209
|
+
# form parameters
|
|
210
|
+
form_params = opts[:form_params] || {}
|
|
211
|
+
|
|
212
|
+
# http body (model)
|
|
213
|
+
post_body = opts[:body]
|
|
214
|
+
|
|
215
|
+
# return_type
|
|
216
|
+
return_type = opts[:return_type] || 'DebReleaseArchitecture'
|
|
217
|
+
|
|
218
|
+
# auth_names
|
|
219
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
220
|
+
|
|
221
|
+
new_options = opts.merge(
|
|
222
|
+
:header_params => header_params,
|
|
223
|
+
:query_params => query_params,
|
|
224
|
+
:form_params => form_params,
|
|
225
|
+
:body => post_body,
|
|
226
|
+
:auth_names => auth_names,
|
|
227
|
+
:return_type => return_type
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
231
|
+
if @api_client.config.debugging
|
|
232
|
+
@api_client.config.logger.debug "API called: ContentReleaseArchitecturesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
233
|
+
end
|
|
234
|
+
return data, status_code, headers
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end
|