pulp_deb_client 2.0.0b2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +163 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentGenericContentsApi.md +194 -0
  7. data/docs/ContentInstallerFileIndexApi.md +186 -0
  8. data/docs/ContentInstallerPackagesApi.md +194 -0
  9. data/docs/ContentPackageIndexApi.md +186 -0
  10. data/docs/ContentPackagesApi.md +194 -0
  11. data/docs/ContentReleasesApi.md +186 -0
  12. data/docs/DebDistribution.md +29 -0
  13. data/docs/DebPublication.md +31 -0
  14. data/docs/DebRemote.md +57 -0
  15. data/docs/DistributionsAptApi.md +358 -0
  16. data/docs/GenericContent.md +41 -0
  17. data/docs/InlineResponse200.md +23 -0
  18. data/docs/InlineResponse2001.md +23 -0
  19. data/docs/InlineResponse2002.md +23 -0
  20. data/docs/InlineResponse2003.md +23 -0
  21. data/docs/InlineResponse2004.md +23 -0
  22. data/docs/InlineResponse2005.md +23 -0
  23. data/docs/InlineResponse2006.md +23 -0
  24. data/docs/InlineResponse2007.md +23 -0
  25. data/docs/InlineResponse2008.md +23 -0
  26. data/docs/InlineResponse2009.md +23 -0
  27. data/docs/InstallerFileIndex.md +31 -0
  28. data/docs/InstallerPackage.md +99 -0
  29. data/docs/Package.md +99 -0
  30. data/docs/PackageIndex.md +31 -0
  31. data/docs/PublicationsAptApi.md +235 -0
  32. data/docs/PublicationsVerbatimApi.md +235 -0
  33. data/docs/Release.md +31 -0
  34. data/docs/RemotesAptApi.md +417 -0
  35. data/docs/RepositorySyncURL.md +19 -0
  36. data/docs/VerbatimPublication.md +27 -0
  37. data/git_push.sh +58 -0
  38. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +239 -0
  39. data/lib/pulp_deb_client/api/content_installer_file_index_api.rb +225 -0
  40. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +235 -0
  41. data/lib/pulp_deb_client/api/content_package_index_api.rb +225 -0
  42. data/lib/pulp_deb_client/api/content_packages_api.rb +235 -0
  43. data/lib/pulp_deb_client/api/content_releases_api.rb +225 -0
  44. data/lib/pulp_deb_client/api/distributions_apt_api.rb +436 -0
  45. data/lib/pulp_deb_client/api/publications_apt_api.rb +279 -0
  46. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +279 -0
  47. data/lib/pulp_deb_client/api/remotes_apt_api.rb +510 -0
  48. data/lib/pulp_deb_client/api_client.rb +402 -0
  49. data/lib/pulp_deb_client/api_error.rb +57 -0
  50. data/lib/pulp_deb_client/configuration.rb +243 -0
  51. data/lib/pulp_deb_client/models/async_operation_response.rb +202 -0
  52. data/lib/pulp_deb_client/models/deb_distribution.rb +337 -0
  53. data/lib/pulp_deb_client/models/deb_publication.rb +282 -0
  54. data/lib/pulp_deb_client/models/deb_remote.rb +653 -0
  55. data/lib/pulp_deb_client/models/generic_content.rb +444 -0
  56. data/lib/pulp_deb_client/models/inline_response200.rb +235 -0
  57. data/lib/pulp_deb_client/models/inline_response2001.rb +235 -0
  58. data/lib/pulp_deb_client/models/inline_response2002.rb +235 -0
  59. data/lib/pulp_deb_client/models/inline_response2003.rb +235 -0
  60. data/lib/pulp_deb_client/models/inline_response2004.rb +235 -0
  61. data/lib/pulp_deb_client/models/inline_response2005.rb +235 -0
  62. data/lib/pulp_deb_client/models/inline_response2006.rb +235 -0
  63. data/lib/pulp_deb_client/models/inline_response2007.rb +235 -0
  64. data/lib/pulp_deb_client/models/inline_response2008.rb +235 -0
  65. data/lib/pulp_deb_client/models/inline_response2009.rb +235 -0
  66. data/lib/pulp_deb_client/models/installer_file_index.rb +355 -0
  67. data/lib/pulp_deb_client/models/installer_package.rb +1101 -0
  68. data/lib/pulp_deb_client/models/package.rb +1101 -0
  69. data/lib/pulp_deb_client/models/package_index.rb +355 -0
  70. data/lib/pulp_deb_client/models/release.rb +356 -0
  71. data/lib/pulp_deb_client/models/repository_sync_url.rb +214 -0
  72. data/lib/pulp_deb_client/models/verbatim_publication.rb +258 -0
  73. data/lib/pulp_deb_client/version.rb +15 -0
  74. data/lib/pulp_deb_client.rb +71 -0
  75. data/pulp_deb_client.gemspec +39 -0
  76. data/spec/api/content_generic_contents_api_spec.rb +80 -0
  77. data/spec/api/content_installer_file_index_api_spec.rb +77 -0
  78. data/spec/api/content_installer_packages_api_spec.rb +80 -0
  79. data/spec/api/content_package_index_api_spec.rb +77 -0
  80. data/spec/api/content_packages_api_spec.rb +80 -0
  81. data/spec/api/content_releases_api_spec.rb +77 -0
  82. data/spec/api/distributions_apt_api_spec.rb +118 -0
  83. data/spec/api/publications_apt_api_spec.rb +87 -0
  84. data/spec/api/publications_verbatim_api_spec.rb +87 -0
  85. data/spec/api/remotes_apt_api_spec.rb +132 -0
  86. data/spec/api_client_spec.rb +188 -0
  87. data/spec/configuration_spec.rb +42 -0
  88. data/spec/models/async_operation_response_spec.rb +41 -0
  89. data/spec/models/deb_distribution_spec.rb +77 -0
  90. data/spec/models/deb_publication_spec.rb +83 -0
  91. data/spec/models/deb_remote_spec.rb +165 -0
  92. data/spec/models/generic_content_spec.rb +113 -0
  93. data/spec/models/inline_response2001_spec.rb +59 -0
  94. data/spec/models/inline_response2002_spec.rb +59 -0
  95. data/spec/models/inline_response2003_spec.rb +59 -0
  96. data/spec/models/inline_response2004_spec.rb +59 -0
  97. data/spec/models/inline_response2005_spec.rb +59 -0
  98. data/spec/models/inline_response2006_spec.rb +59 -0
  99. data/spec/models/inline_response2007_spec.rb +59 -0
  100. data/spec/models/inline_response2008_spec.rb +59 -0
  101. data/spec/models/inline_response2009_spec.rb +59 -0
  102. data/spec/models/inline_response200_spec.rb +59 -0
  103. data/spec/models/installer_file_index_spec.rb +83 -0
  104. data/spec/models/installer_package_spec.rb +287 -0
  105. data/spec/models/package_index_spec.rb +83 -0
  106. data/spec/models/package_spec.rb +287 -0
  107. data/spec/models/release_spec.rb +83 -0
  108. data/spec/models/repository_sync_url_spec.rb +47 -0
  109. data/spec/models/verbatim_publication_spec.rb +71 -0
  110. data/spec/spec_helper.rb +111 -0
  111. metadata +242 -0
@@ -0,0 +1,279 @@
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.1.3-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpDebClient
16
+ class PublicationsAptApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a deb publication
23
+ # Trigger an asynchronous task to publish content
24
+ # @param data [DebPublication]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AsyncOperationResponse]
27
+ def create(data, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(data, opts)
29
+ data
30
+ end
31
+
32
+ # Create a deb publication
33
+ # Trigger an asynchronous task to publish content
34
+ # @param data [DebPublication]
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(data, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: PublicationsAptApi.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 PublicationsAptApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/publications/deb/apt/'
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] || 'AsyncOperationResponse'
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: PublicationsAptApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete a deb publication
87
+ # A ViewSet for DebPublication.
88
+ # @param deb_publication_href [String] URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [nil]
91
+ def delete(deb_publication_href, opts = {})
92
+ delete_with_http_info(deb_publication_href, opts)
93
+ nil
94
+ end
95
+
96
+ # Delete a deb publication
97
+ # A ViewSet for DebPublication.
98
+ # @param deb_publication_href [String] URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
+ def delete_with_http_info(deb_publication_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: PublicationsAptApi.delete ...'
104
+ end
105
+ # verify the required parameter 'deb_publication_href' is set
106
+ if @api_client.config.client_side_validation && deb_publication_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'deb_publication_href' when calling PublicationsAptApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{deb_publication_href}'.sub('{' + 'deb_publication_href' + '}', CGI.escape(deb_publication_href.to_s).gsub('%2F', '/'))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+
118
+ # form parameters
119
+ form_params = opts[:form_params] || {}
120
+
121
+ # http body (model)
122
+ post_body = opts[:body]
123
+
124
+ # return_type
125
+ return_type = opts[:return_type]
126
+
127
+ # auth_names
128
+ auth_names = opts[:auth_names] || ['Basic']
129
+
130
+ new_options = opts.merge(
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: PublicationsAptApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # List deb publications
147
+ # A ViewSet for DebPublication.
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :ordering Which field to use when ordering the results.
150
+ # @option opts [Integer] :limit Number of results to return per page.
151
+ # @option opts [Integer] :offset The initial index from which to return the results.
152
+ # @option opts [String] :fields A list of fields to include in the response.
153
+ # @return [InlineResponse2007]
154
+ def list(opts = {})
155
+ data, _status_code, _headers = list_with_http_info(opts)
156
+ data
157
+ end
158
+
159
+ # List deb publications
160
+ # A ViewSet for DebPublication.
161
+ # @param [Hash] opts the optional parameters
162
+ # @option opts [String] :ordering Which field to use when ordering the results.
163
+ # @option opts [Integer] :limit Number of results to return per page.
164
+ # @option opts [Integer] :offset The initial index from which to return the results.
165
+ # @option opts [String] :fields A list of fields to include in the response.
166
+ # @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
167
+ def list_with_http_info(opts = {})
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug 'Calling API: PublicationsAptApi.list ...'
170
+ end
171
+ # resource path
172
+ local_var_path = '/pulp/api/v3/publications/deb/apt/'
173
+
174
+ # query parameters
175
+ query_params = opts[:query_params] || {}
176
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
177
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
178
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
179
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
180
+
181
+ # header parameters
182
+ header_params = opts[:header_params] || {}
183
+ # HTTP header 'Accept' (if needed)
184
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
185
+
186
+ # form parameters
187
+ form_params = opts[:form_params] || {}
188
+
189
+ # http body (model)
190
+ post_body = opts[:body]
191
+
192
+ # return_type
193
+ return_type = opts[:return_type] || 'InlineResponse2007'
194
+
195
+ # auth_names
196
+ auth_names = opts[:auth_names] || ['Basic']
197
+
198
+ new_options = opts.merge(
199
+ :header_params => header_params,
200
+ :query_params => query_params,
201
+ :form_params => form_params,
202
+ :body => post_body,
203
+ :auth_names => auth_names,
204
+ :return_type => return_type
205
+ )
206
+
207
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: PublicationsAptApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+
214
+ # Inspect a deb publication
215
+ # A ViewSet for DebPublication.
216
+ # @param deb_publication_href [String] URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
217
+ # @param [Hash] opts the optional parameters
218
+ # @option opts [String] :fields A list of fields to include in the response.
219
+ # @return [DebPublication]
220
+ def read(deb_publication_href, opts = {})
221
+ data, _status_code, _headers = read_with_http_info(deb_publication_href, opts)
222
+ data
223
+ end
224
+
225
+ # Inspect a deb publication
226
+ # A ViewSet for DebPublication.
227
+ # @param deb_publication_href [String] URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
228
+ # @param [Hash] opts the optional parameters
229
+ # @option opts [String] :fields A list of fields to include in the response.
230
+ # @return [Array<(DebPublication, Integer, Hash)>] DebPublication data, response status code and response headers
231
+ def read_with_http_info(deb_publication_href, opts = {})
232
+ if @api_client.config.debugging
233
+ @api_client.config.logger.debug 'Calling API: PublicationsAptApi.read ...'
234
+ end
235
+ # verify the required parameter 'deb_publication_href' is set
236
+ if @api_client.config.client_side_validation && deb_publication_href.nil?
237
+ fail ArgumentError, "Missing the required parameter 'deb_publication_href' when calling PublicationsAptApi.read"
238
+ end
239
+ # resource path
240
+ local_var_path = '{deb_publication_href}'.sub('{' + 'deb_publication_href' + '}', CGI.escape(deb_publication_href.to_s).gsub('%2F', '/'))
241
+
242
+ # query parameters
243
+ query_params = opts[:query_params] || {}
244
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
245
+
246
+ # header parameters
247
+ header_params = opts[:header_params] || {}
248
+ # HTTP header 'Accept' (if needed)
249
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
250
+
251
+ # form parameters
252
+ form_params = opts[:form_params] || {}
253
+
254
+ # http body (model)
255
+ post_body = opts[:body]
256
+
257
+ # return_type
258
+ return_type = opts[:return_type] || 'DebPublication'
259
+
260
+ # auth_names
261
+ auth_names = opts[:auth_names] || ['Basic']
262
+
263
+ new_options = opts.merge(
264
+ :header_params => header_params,
265
+ :query_params => query_params,
266
+ :form_params => form_params,
267
+ :body => post_body,
268
+ :auth_names => auth_names,
269
+ :return_type => return_type
270
+ )
271
+
272
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
273
+ if @api_client.config.debugging
274
+ @api_client.config.logger.debug "API called: PublicationsAptApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
275
+ end
276
+ return data, status_code, headers
277
+ end
278
+ end
279
+ end
@@ -0,0 +1,279 @@
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.1.3-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpDebClient
16
+ class PublicationsVerbatimApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a verbatim publication
23
+ # Trigger an asynchronous task to publish content
24
+ # @param data [VerbatimPublication]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AsyncOperationResponse]
27
+ def create(data, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(data, opts)
29
+ data
30
+ end
31
+
32
+ # Create a verbatim publication
33
+ # Trigger an asynchronous task to publish content
34
+ # @param data [VerbatimPublication]
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(data, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.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 PublicationsVerbatimApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/publications/deb/verbatim/'
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] || 'AsyncOperationResponse'
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: PublicationsVerbatimApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete a verbatim publication
87
+ # A ViewSet for VerbatimPublication.
88
+ # @param verbatim_publication_href [String] URI of Verbatim Publication. e.g.: /pulp/api/v3/publications/deb/verbatim/1/
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [nil]
91
+ def delete(verbatim_publication_href, opts = {})
92
+ delete_with_http_info(verbatim_publication_href, opts)
93
+ nil
94
+ end
95
+
96
+ # Delete a verbatim publication
97
+ # A ViewSet for VerbatimPublication.
98
+ # @param verbatim_publication_href [String] URI of Verbatim Publication. e.g.: /pulp/api/v3/publications/deb/verbatim/1/
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
+ def delete_with_http_info(verbatim_publication_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.delete ...'
104
+ end
105
+ # verify the required parameter 'verbatim_publication_href' is set
106
+ if @api_client.config.client_side_validation && verbatim_publication_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'verbatim_publication_href' when calling PublicationsVerbatimApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{verbatim_publication_href}'.sub('{' + 'verbatim_publication_href' + '}', CGI.escape(verbatim_publication_href.to_s).gsub('%2F', '/'))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+
118
+ # form parameters
119
+ form_params = opts[:form_params] || {}
120
+
121
+ # http body (model)
122
+ post_body = opts[:body]
123
+
124
+ # return_type
125
+ return_type = opts[:return_type]
126
+
127
+ # auth_names
128
+ auth_names = opts[:auth_names] || ['Basic']
129
+
130
+ new_options = opts.merge(
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: PublicationsVerbatimApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # List verbatim publications
147
+ # A ViewSet for VerbatimPublication.
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :ordering Which field to use when ordering the results.
150
+ # @option opts [Integer] :limit Number of results to return per page.
151
+ # @option opts [Integer] :offset The initial index from which to return the results.
152
+ # @option opts [String] :fields A list of fields to include in the response.
153
+ # @return [InlineResponse2008]
154
+ def list(opts = {})
155
+ data, _status_code, _headers = list_with_http_info(opts)
156
+ data
157
+ end
158
+
159
+ # List verbatim publications
160
+ # A ViewSet for VerbatimPublication.
161
+ # @param [Hash] opts the optional parameters
162
+ # @option opts [String] :ordering Which field to use when ordering the results.
163
+ # @option opts [Integer] :limit Number of results to return per page.
164
+ # @option opts [Integer] :offset The initial index from which to return the results.
165
+ # @option opts [String] :fields A list of fields to include in the response.
166
+ # @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
167
+ def list_with_http_info(opts = {})
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.list ...'
170
+ end
171
+ # resource path
172
+ local_var_path = '/pulp/api/v3/publications/deb/verbatim/'
173
+
174
+ # query parameters
175
+ query_params = opts[:query_params] || {}
176
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
177
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
178
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
179
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
180
+
181
+ # header parameters
182
+ header_params = opts[:header_params] || {}
183
+ # HTTP header 'Accept' (if needed)
184
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
185
+
186
+ # form parameters
187
+ form_params = opts[:form_params] || {}
188
+
189
+ # http body (model)
190
+ post_body = opts[:body]
191
+
192
+ # return_type
193
+ return_type = opts[:return_type] || 'InlineResponse2008'
194
+
195
+ # auth_names
196
+ auth_names = opts[:auth_names] || ['Basic']
197
+
198
+ new_options = opts.merge(
199
+ :header_params => header_params,
200
+ :query_params => query_params,
201
+ :form_params => form_params,
202
+ :body => post_body,
203
+ :auth_names => auth_names,
204
+ :return_type => return_type
205
+ )
206
+
207
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: PublicationsVerbatimApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+
214
+ # Inspect a verbatim publication
215
+ # A ViewSet for VerbatimPublication.
216
+ # @param verbatim_publication_href [String] URI of Verbatim Publication. e.g.: /pulp/api/v3/publications/deb/verbatim/1/
217
+ # @param [Hash] opts the optional parameters
218
+ # @option opts [String] :fields A list of fields to include in the response.
219
+ # @return [VerbatimPublication]
220
+ def read(verbatim_publication_href, opts = {})
221
+ data, _status_code, _headers = read_with_http_info(verbatim_publication_href, opts)
222
+ data
223
+ end
224
+
225
+ # Inspect a verbatim publication
226
+ # A ViewSet for VerbatimPublication.
227
+ # @param verbatim_publication_href [String] URI of Verbatim Publication. e.g.: /pulp/api/v3/publications/deb/verbatim/1/
228
+ # @param [Hash] opts the optional parameters
229
+ # @option opts [String] :fields A list of fields to include in the response.
230
+ # @return [Array<(VerbatimPublication, Integer, Hash)>] VerbatimPublication data, response status code and response headers
231
+ def read_with_http_info(verbatim_publication_href, opts = {})
232
+ if @api_client.config.debugging
233
+ @api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.read ...'
234
+ end
235
+ # verify the required parameter 'verbatim_publication_href' is set
236
+ if @api_client.config.client_side_validation && verbatim_publication_href.nil?
237
+ fail ArgumentError, "Missing the required parameter 'verbatim_publication_href' when calling PublicationsVerbatimApi.read"
238
+ end
239
+ # resource path
240
+ local_var_path = '{verbatim_publication_href}'.sub('{' + 'verbatim_publication_href' + '}', CGI.escape(verbatim_publication_href.to_s).gsub('%2F', '/'))
241
+
242
+ # query parameters
243
+ query_params = opts[:query_params] || {}
244
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
245
+
246
+ # header parameters
247
+ header_params = opts[:header_params] || {}
248
+ # HTTP header 'Accept' (if needed)
249
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
250
+
251
+ # form parameters
252
+ form_params = opts[:form_params] || {}
253
+
254
+ # http body (model)
255
+ post_body = opts[:body]
256
+
257
+ # return_type
258
+ return_type = opts[:return_type] || 'VerbatimPublication'
259
+
260
+ # auth_names
261
+ auth_names = opts[:auth_names] || ['Basic']
262
+
263
+ new_options = opts.merge(
264
+ :header_params => header_params,
265
+ :query_params => query_params,
266
+ :form_params => form_params,
267
+ :body => post_body,
268
+ :auth_names => auth_names,
269
+ :return_type => return_type
270
+ )
271
+
272
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
273
+ if @api_client.config.debugging
274
+ @api_client.config.logger.debug "API called: PublicationsVerbatimApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
275
+ end
276
+ return data, status_code, headers
277
+ end
278
+ end
279
+ end