pulp_deb_client 2.2.0b1 → 2.3.0b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/docs/ContentGenericContentsApi.md +2 -0
- data/docs/ContentInstallerFileIndicesApi.md +2 -0
- data/docs/ContentInstallerPackagesApi.md +2 -0
- data/docs/ContentPackageIndicesApi.md +2 -0
- data/docs/ContentPackageReleaseComponentsApi.md +2 -0
- data/docs/ContentPackagesApi.md +2 -0
- data/docs/ContentReleaseArchitecturesApi.md +2 -0
- data/docs/ContentReleaseComponentsApi.md +2 -0
- data/docs/ContentReleaseFilesApi.md +2 -0
- data/docs/ContentReleasesApi.md +2 -0
- data/docs/DebDebPublication.md +3 -1
- data/docs/DistributionsAptApi.md +2 -0
- data/docs/RemotesAptApi.md +2 -0
- data/docs/RepositoriesAptApi.md +2 -0
- data/docs/RepositoriesDebVersionsApi.md +60 -5
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -1
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +4 -1
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -1
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +4 -1
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +4 -1
- data/lib/pulp_deb_client/api/content_packages_api.rb +4 -1
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +4 -1
- data/lib/pulp_deb_client/api/content_release_components_api.rb +4 -1
- data/lib/pulp_deb_client/api/content_release_files_api.rb +4 -1
- data/lib/pulp_deb_client/api/content_releases_api.rb +4 -1
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +4 -1
- data/lib/pulp_deb_client/api/publications_apt_api.rb +1 -1
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +1 -1
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +4 -1
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +4 -1
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +78 -10
- 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 +15 -5
- data/lib/pulp_deb_client/models/deb_deb_remote.rb +1 -1
- 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 +1 -1
- data/lib/pulp_deb_client/models/deb_release.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_component.rb +1 -1
- 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 +1 -1
- data/lib/pulp_deb_client/models/inline_response20011.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response20012.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response20013.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response20014.rb +1 -1
- 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 +1 -1
- data/lib/pulp_deb_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2007.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2008.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2009.rb +1 -1
- 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 +1 -1
- data/pulp_deb_client.gemspec +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +2 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +2 -1
- data/spec/api/content_installer_packages_api_spec.rb +2 -1
- data/spec/api/content_package_indices_api_spec.rb +2 -1
- data/spec/api/content_package_release_components_api_spec.rb +2 -1
- data/spec/api/content_packages_api_spec.rb +2 -1
- data/spec/api/content_release_architectures_api_spec.rb +2 -1
- data/spec/api/content_release_components_api_spec.rb +2 -1
- data/spec/api/content_release_files_api_spec.rb +2 -1
- data/spec/api/content_releases_api_spec.rb +2 -1
- data/spec/api/distributions_apt_api_spec.rb +2 -1
- data/spec/api/publications_apt_api_spec.rb +1 -1
- data/spec/api/publications_verbatim_api_spec.rb +1 -1
- data/spec/api/remotes_apt_api_spec.rb +2 -1
- data/spec/api/repositories_apt_api_spec.rb +2 -1
- data/spec/api/repositories_deb_versions_api_spec.rb +14 -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 +7 -1
- data/spec/models/deb_deb_remote_spec.rb +1 -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 +1 -1
- data/spec/models/deb_release_architecture_spec.rb +1 -1
- data/spec/models/deb_release_component_spec.rb +1 -1
- data/spec/models/deb_release_file_spec.rb +1 -1
- data/spec/models/deb_release_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/inline_response20012_spec.rb +1 -1
- data/spec/models/inline_response20013_spec.rb +1 -1
- data/spec/models/inline_response20014_spec.rb +1 -1
- 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 +2 -2
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -86,6 +86,7 @@ module PulpDebClient
|
|
86
86
|
# List release components
|
87
87
|
# A ViewSet for ReleaseComponent.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
89
90
|
# @option opts [String] :component Filter results where component matches value
|
90
91
|
# @option opts [String] :release Filter results where release matches value
|
91
92
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -104,6 +105,7 @@ module PulpDebClient
|
|
104
105
|
# List release components
|
105
106
|
# A ViewSet for ReleaseComponent.
|
106
107
|
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
107
109
|
# @option opts [String] :component Filter results where component matches value
|
108
110
|
# @option opts [String] :release Filter results where release matches value
|
109
111
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -123,6 +125,7 @@ module PulpDebClient
|
|
123
125
|
|
124
126
|
# query parameters
|
125
127
|
query_params = opts[:query_params] || {}
|
128
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
126
129
|
query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
|
127
130
|
query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
|
128
131
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -86,6 +86,7 @@ module PulpDebClient
|
|
86
86
|
# List release files
|
87
87
|
# A ViewSet for ReleaseFile.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
89
90
|
# @option opts [String] :codename Filter results where codename matches value
|
90
91
|
# @option opts [String] :suite Filter results where suite matches value
|
91
92
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
@@ -106,6 +107,7 @@ module PulpDebClient
|
|
106
107
|
# List release files
|
107
108
|
# A ViewSet for ReleaseFile.
|
108
109
|
# @param [Hash] opts the optional parameters
|
110
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
109
111
|
# @option opts [String] :codename Filter results where codename matches value
|
110
112
|
# @option opts [String] :suite Filter results where suite matches value
|
111
113
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
@@ -127,6 +129,7 @@ module PulpDebClient
|
|
127
129
|
|
128
130
|
# query parameters
|
129
131
|
query_params = opts[:query_params] || {}
|
132
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
130
133
|
query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
|
131
134
|
query_params[:'suite'] = opts[:'suite'] if !opts[:'suite'].nil?
|
132
135
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -86,6 +86,7 @@ module PulpDebClient
|
|
86
86
|
# List releases
|
87
87
|
# A ViewSet for Release.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
89
90
|
# @option opts [String] :codename Filter results where codename matches value
|
90
91
|
# @option opts [String] :suite Filter results where suite matches value
|
91
92
|
# @option opts [String] :distribution Filter results where distribution matches value
|
@@ -105,6 +106,7 @@ module PulpDebClient
|
|
105
106
|
# List releases
|
106
107
|
# A ViewSet for Release.
|
107
108
|
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
108
110
|
# @option opts [String] :codename Filter results where codename matches value
|
109
111
|
# @option opts [String] :suite Filter results where suite matches value
|
110
112
|
# @option opts [String] :distribution Filter results where distribution matches value
|
@@ -125,6 +127,7 @@ module PulpDebClient
|
|
125
127
|
|
126
128
|
# query parameters
|
127
129
|
query_params = opts[:query_params] || {}
|
130
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
128
131
|
query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
|
129
132
|
query_params[:'suite'] = opts[:'suite'] if !opts[:'suite'].nil?
|
130
133
|
query_params[:'distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -148,6 +148,7 @@ module PulpDebClient
|
|
148
148
|
# List deb distributions
|
149
149
|
# ViewSet for DebDistributions.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
151
152
|
# @option opts [String] :name
|
152
153
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
154
|
# @option opts [String] :base_path
|
@@ -167,6 +168,7 @@ module PulpDebClient
|
|
167
168
|
# List deb distributions
|
168
169
|
# ViewSet for DebDistributions.
|
169
170
|
# @param [Hash] opts the optional parameters
|
171
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
170
172
|
# @option opts [String] :name
|
171
173
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
172
174
|
# @option opts [String] :base_path
|
@@ -187,6 +189,7 @@ module PulpDebClient
|
|
187
189
|
|
188
190
|
# query parameters
|
189
191
|
query_params = opts[:query_params] || {}
|
192
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
190
193
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
191
194
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
192
195
|
query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -148,6 +148,7 @@ module PulpDebClient
|
|
148
148
|
# List deb remotes
|
149
149
|
# A ViewSet for DebRemote.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
151
152
|
# @option opts [String] :name
|
152
153
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
154
|
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
@@ -169,6 +170,7 @@ module PulpDebClient
|
|
169
170
|
# List deb remotes
|
170
171
|
# A ViewSet for DebRemote.
|
171
172
|
# @param [Hash] opts the optional parameters
|
173
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
172
174
|
# @option opts [String] :name
|
173
175
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
174
176
|
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
@@ -191,6 +193,7 @@ module PulpDebClient
|
|
191
193
|
|
192
194
|
# query parameters
|
193
195
|
query_params = opts[:query_params] || {}
|
196
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
194
197
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
195
198
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
196
199
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -148,6 +148,7 @@ module PulpDebClient
|
|
148
148
|
# List deb repositorys
|
149
149
|
# A ViewSet for DebRepository.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
151
152
|
# @option opts [String] :name
|
152
153
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
154
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -163,6 +164,7 @@ module PulpDebClient
|
|
163
164
|
# List deb repositorys
|
164
165
|
# A ViewSet for DebRepository.
|
165
166
|
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
166
168
|
# @option opts [String] :name
|
167
169
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
168
170
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -179,6 +181,7 @@ module PulpDebClient
|
|
179
181
|
|
180
182
|
# query parameters
|
181
183
|
query_params = opts[:query_params] || {}
|
184
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
182
185
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
183
186
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
184
187
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -83,7 +83,7 @@ module PulpDebClient
|
|
83
83
|
|
84
84
|
# List repository versions
|
85
85
|
# DebRepositoryVersion represents a single deb repository version.
|
86
|
-
# @param
|
86
|
+
# @param apt_repository_pk [String]
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
89
89
|
# @option opts [Float] :number
|
@@ -104,14 +104,14 @@ module PulpDebClient
|
|
104
104
|
# @option opts [String] :fields A list of fields to include in the response.
|
105
105
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
106
106
|
# @return [InlineResponse20014]
|
107
|
-
def list(
|
108
|
-
data, _status_code, _headers = list_with_http_info(
|
107
|
+
def list(apt_repository_pk, opts = {})
|
108
|
+
data, _status_code, _headers = list_with_http_info(apt_repository_pk, opts)
|
109
109
|
data
|
110
110
|
end
|
111
111
|
|
112
112
|
# List repository versions
|
113
113
|
# DebRepositoryVersion represents a single deb repository version.
|
114
|
-
# @param
|
114
|
+
# @param apt_repository_pk [String]
|
115
115
|
# @param [Hash] opts the optional parameters
|
116
116
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
117
117
|
# @option opts [Float] :number
|
@@ -132,16 +132,16 @@ module PulpDebClient
|
|
132
132
|
# @option opts [String] :fields A list of fields to include in the response.
|
133
133
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
134
134
|
# @return [Array<(InlineResponse20014, Integer, Hash)>] InlineResponse20014 data, response status code and response headers
|
135
|
-
def list_with_http_info(
|
135
|
+
def list_with_http_info(apt_repository_pk, opts = {})
|
136
136
|
if @api_client.config.debugging
|
137
137
|
@api_client.config.logger.debug 'Calling API: RepositoriesDebVersionsApi.list ...'
|
138
138
|
end
|
139
|
-
# verify the required parameter '
|
140
|
-
if @api_client.config.client_side_validation &&
|
141
|
-
fail ArgumentError, "Missing the required parameter '
|
139
|
+
# verify the required parameter 'apt_repository_pk' is set
|
140
|
+
if @api_client.config.client_side_validation && apt_repository_pk.nil?
|
141
|
+
fail ArgumentError, "Missing the required parameter 'apt_repository_pk' when calling RepositoriesDebVersionsApi.list"
|
142
142
|
end
|
143
143
|
# resource path
|
144
|
-
local_var_path = '{
|
144
|
+
local_var_path = '/pulp/api/v3/repositories/deb/apt/{apt_repository_pk}/versions/'.sub('{' + 'apt_repository_pk' + '}', CGI.escape(apt_repository_pk.to_s).gsub('%2F', '/'))
|
145
145
|
|
146
146
|
# query parameters
|
147
147
|
query_params = opts[:query_params] || {}
|
@@ -264,5 +264,73 @@ module PulpDebClient
|
|
264
264
|
end
|
265
265
|
return data, status_code, headers
|
266
266
|
end
|
267
|
+
|
268
|
+
# Trigger an asynchronous task to repair a repositroy version.
|
269
|
+
# @param apt_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/deb/apt/1/versions/1/
|
270
|
+
# @param data [RepositoryVersion]
|
271
|
+
# @param [Hash] opts the optional parameters
|
272
|
+
# @return [AsyncOperationResponse]
|
273
|
+
def repair(apt_repository_version_href, data, opts = {})
|
274
|
+
data, _status_code, _headers = repair_with_http_info(apt_repository_version_href, data, opts)
|
275
|
+
data
|
276
|
+
end
|
277
|
+
|
278
|
+
# Trigger an asynchronous task to repair a repositroy version.
|
279
|
+
# @param apt_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/deb/apt/1/versions/1/
|
280
|
+
# @param data [RepositoryVersion]
|
281
|
+
# @param [Hash] opts the optional parameters
|
282
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
283
|
+
def repair_with_http_info(apt_repository_version_href, data, opts = {})
|
284
|
+
if @api_client.config.debugging
|
285
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesDebVersionsApi.repair ...'
|
286
|
+
end
|
287
|
+
# verify the required parameter 'apt_repository_version_href' is set
|
288
|
+
if @api_client.config.client_side_validation && apt_repository_version_href.nil?
|
289
|
+
fail ArgumentError, "Missing the required parameter 'apt_repository_version_href' when calling RepositoriesDebVersionsApi.repair"
|
290
|
+
end
|
291
|
+
# verify the required parameter 'data' is set
|
292
|
+
if @api_client.config.client_side_validation && data.nil?
|
293
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesDebVersionsApi.repair"
|
294
|
+
end
|
295
|
+
# resource path
|
296
|
+
local_var_path = '{apt_repository_version_href}repair/'.sub('{' + 'apt_repository_version_href' + '}', CGI.escape(apt_repository_version_href.to_s).gsub('%2F', '/'))
|
297
|
+
|
298
|
+
# query parameters
|
299
|
+
query_params = opts[:query_params] || {}
|
300
|
+
|
301
|
+
# header parameters
|
302
|
+
header_params = opts[:header_params] || {}
|
303
|
+
# HTTP header 'Accept' (if needed)
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
305
|
+
# HTTP header 'Content-Type'
|
306
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
307
|
+
|
308
|
+
# form parameters
|
309
|
+
form_params = opts[:form_params] || {}
|
310
|
+
|
311
|
+
# http body (model)
|
312
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
313
|
+
|
314
|
+
# return_type
|
315
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
316
|
+
|
317
|
+
# auth_names
|
318
|
+
auth_names = opts[:auth_names] || ['Basic']
|
319
|
+
|
320
|
+
new_options = opts.merge(
|
321
|
+
:header_params => header_params,
|
322
|
+
:query_params => query_params,
|
323
|
+
:form_params => form_params,
|
324
|
+
:body => post_body,
|
325
|
+
:auth_names => auth_names,
|
326
|
+
:return_type => return_type
|
327
|
+
)
|
328
|
+
|
329
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
330
|
+
if @api_client.config.debugging
|
331
|
+
@api_client.config.logger.debug "API called: RepositoriesDebVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
332
|
+
end
|
333
|
+
return data, status_code, headers
|
334
|
+
end
|
267
335
|
end
|
268
336
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,6 +30,9 @@ module PulpDebClient
|
|
30
30
|
# Activate structured publishing mode.
|
31
31
|
attr_accessor :structured
|
32
32
|
|
33
|
+
# Sign Release files with this signing key
|
34
|
+
attr_accessor :signing_service
|
35
|
+
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
37
|
def self.attribute_map
|
35
38
|
{
|
@@ -38,7 +41,8 @@ module PulpDebClient
|
|
38
41
|
:'repository_version' => :'repository_version',
|
39
42
|
:'repository' => :'repository',
|
40
43
|
:'simple' => :'simple',
|
41
|
-
:'structured' => :'structured'
|
44
|
+
:'structured' => :'structured',
|
45
|
+
:'signing_service' => :'signing_service'
|
42
46
|
}
|
43
47
|
end
|
44
48
|
|
@@ -50,7 +54,8 @@ module PulpDebClient
|
|
50
54
|
:'repository_version' => :'String',
|
51
55
|
:'repository' => :'String',
|
52
56
|
:'simple' => :'Boolean',
|
53
|
-
:'structured' => :'Boolean'
|
57
|
+
:'structured' => :'Boolean',
|
58
|
+
:'signing_service' => :'String'
|
54
59
|
}
|
55
60
|
end
|
56
61
|
|
@@ -102,6 +107,10 @@ module PulpDebClient
|
|
102
107
|
else
|
103
108
|
self.structured = false
|
104
109
|
end
|
110
|
+
|
111
|
+
if attributes.key?(:'signing_service')
|
112
|
+
self.signing_service = attributes[:'signing_service']
|
113
|
+
end
|
105
114
|
end
|
106
115
|
|
107
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -127,7 +136,8 @@ module PulpDebClient
|
|
127
136
|
repository_version == o.repository_version &&
|
128
137
|
repository == o.repository &&
|
129
138
|
simple == o.simple &&
|
130
|
-
structured == o.structured
|
139
|
+
structured == o.structured &&
|
140
|
+
signing_service == o.signing_service
|
131
141
|
end
|
132
142
|
|
133
143
|
# @see the `==` method
|
@@ -139,7 +149,7 @@ module PulpDebClient
|
|
139
149
|
# Calculates hash code according to all attributes.
|
140
150
|
# @return [Integer] Hash code
|
141
151
|
def hash
|
142
|
-
[pulp_href, pulp_created, repository_version, repository, simple, structured].hash
|
152
|
+
[pulp_href, pulp_created, repository_version, repository, simple, structured, signing_service].hash
|
143
153
|
end
|
144
154
|
|
145
155
|
# Builds the object from hash
|