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