pulp_rpm_client 3.0.0b6 → 3.0.0b7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/docs/Addon.md +1 -3
- data/docs/Artifact.md +5 -5
- data/docs/ContentAdvisoriesApi.md +6 -2
- data/docs/{DistributionTreesDistributionTreesApi.md → ContentDistributionTreesApi.md} +28 -18
- data/docs/ContentModulemdApi.md +8 -4
- data/docs/ContentModulemdDefaultsApi.md +8 -4
- data/docs/ContentPackagesApi.md +8 -4
- data/docs/{RepoMetadataFilesRepoMetadataFilesApi.md → ContentRepoMetadataFilesApi.md} +28 -18
- data/docs/DistributionTree.md +2 -2
- data/docs/DistributionsRpmApi.md +8 -4
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/Modulemd.md +7 -9
- data/docs/ModulemdDefaults.md +6 -8
- data/docs/Package.md +41 -43
- data/docs/PublicationsRpmApi.md +8 -4
- data/docs/RemotesRpmApi.md +20 -16
- data/docs/RepoMetadataFile.md +5 -7
- data/docs/RpmDistribution.md +5 -5
- data/docs/RpmPublication.md +4 -6
- data/docs/RpmRemote.md +6 -8
- data/docs/UpdateRecord.md +6 -8
- data/docs/Variant.md +0 -2
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +7 -1
- data/lib/pulp_rpm_client/api/{distribution_trees_distribution_trees_api.rb → content_distribution_trees_api.rb} +33 -18
- data/lib/pulp_rpm_client/api/content_modulemd_api.rb +10 -12
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +10 -8
- data/lib/pulp_rpm_client/api/content_packages_api.rb +10 -4
- data/lib/pulp_rpm_client/api/{repo_metadata_files_repo_metadata_files_api.rb → content_repo_metadata_files_api.rb} +33 -18
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +10 -4
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +10 -4
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +28 -22
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +1 -1
- data/lib/pulp_rpm_client/api_client.rb +1 -1
- data/lib/pulp_rpm_client/api_error.rb +1 -1
- data/lib/pulp_rpm_client/configuration.rb +1 -1
- data/lib/pulp_rpm_client/models/addon.rb +5 -20
- data/lib/pulp_rpm_client/models/artifact.rb +14 -14
- data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_rpm_client/models/checksum.rb +1 -1
- data/lib/pulp_rpm_client/models/distribution_tree.rb +8 -8
- data/lib/pulp_rpm_client/models/image.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response200.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2001.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2002.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2003.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2004.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2005.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2006.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2007.rb +2 -2
- data/lib/pulp_rpm_client/models/inline_response2008.rb +2 -2
- data/lib/pulp_rpm_client/models/modulemd.rb +16 -78
- data/lib/pulp_rpm_client/models/modulemd_defaults.rb +15 -58
- data/lib/pulp_rpm_client/models/package.rb +24 -218
- data/lib/pulp_rpm_client/models/repo_metadata_file.rb +14 -38
- data/lib/pulp_rpm_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_distribution.rb +14 -14
- data/lib/pulp_rpm_client/models/rpm_publication.rb +14 -38
- data/lib/pulp_rpm_client/models/rpm_remote.rb +20 -44
- data/lib/pulp_rpm_client/models/update_record.rb +14 -38
- data/lib/pulp_rpm_client/models/variant.rb +2 -17
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/lib/pulp_rpm_client.rb +3 -3
- data/pulp_rpm_client.gemspec +1 -1
- data/spec/api/content_advisories_api_spec.rb +3 -1
- data/spec/api/{distribution_trees_distribution_trees_api_spec.rb → content_distribution_trees_api_spec.rb} +15 -10
- data/spec/api/content_modulemd_api_spec.rb +4 -2
- data/spec/api/content_modulemd_defaults_api_spec.rb +4 -2
- data/spec/api/content_packages_api_spec.rb +4 -2
- data/spec/api/{repo_metadata_files_repo_metadata_files_api_spec.rb → content_repo_metadata_files_api_spec.rb} +15 -10
- data/spec/api/distributions_rpm_api_spec.rb +4 -2
- data/spec/api/publications_rpm_api_spec.rb +4 -2
- data/spec/api/remotes_rpm_api_spec.rb +10 -8
- data/spec/api/rpm_copy_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/addon_spec.rb +1 -7
- data/spec/models/artifact_spec.rb +3 -3
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/checksum_spec.rb +1 -1
- data/spec/models/distribution_tree_spec.rb +2 -2
- data/spec/models/image_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_response200_spec.rb +1 -1
- data/spec/models/modulemd_defaults_spec.rb +3 -9
- data/spec/models/modulemd_spec.rb +3 -9
- data/spec/models/package_spec.rb +3 -9
- data/spec/models/repo_metadata_file_spec.rb +3 -9
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/rpm_distribution_spec.rb +3 -3
- data/spec/models/rpm_publication_spec.rb +3 -9
- data/spec/models/rpm_remote_spec.rb +4 -10
- data/spec/models/update_record_spec.rb +3 -9
- data/spec/models/variant_spec.rb +1 -7
- data/spec/spec_helper.rb +1 -1
- metadata +10 -10
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
|
-
class
|
16
|
+
class ContentDistributionTreesApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -21,7 +21,7 @@ module PulpRpmClient
|
|
21
21
|
end
|
22
22
|
# Delete a distribution tree
|
23
23
|
# Distribution Tree Viewset.
|
24
|
-
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/
|
24
|
+
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/content/rpm/distribution_trees/1/
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [nil]
|
27
27
|
def delete(distribution_tree_href, opts = {})
|
@@ -31,16 +31,16 @@ module PulpRpmClient
|
|
31
31
|
|
32
32
|
# Delete a distribution tree
|
33
33
|
# Distribution Tree Viewset.
|
34
|
-
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/
|
34
|
+
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/content/rpm/distribution_trees/1/
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
37
|
def delete_with_http_info(distribution_tree_href, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentDistributionTreesApi.delete ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'distribution_tree_href' is set
|
42
42
|
if @api_client.config.client_side_validation && distribution_tree_href.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'distribution_tree_href' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'distribution_tree_href' when calling ContentDistributionTreesApi.delete"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '{distribution_tree_href}'.sub('{' + 'distribution_tree_href' + '}', CGI.escape(distribution_tree_href.to_s).gsub('%2F', '/'))
|
@@ -74,7 +74,7 @@ module PulpRpmClient
|
|
74
74
|
|
75
75
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
76
76
|
if @api_client.config.debugging
|
77
|
-
@api_client.config.logger.debug "API called:
|
77
|
+
@api_client.config.logger.debug "API called: ContentDistributionTreesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
78
|
end
|
79
79
|
return data, status_code, headers
|
80
80
|
end
|
@@ -82,10 +82,14 @@ module PulpRpmClient
|
|
82
82
|
# List distribution trees
|
83
83
|
# Distribution Tree Viewset.
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
86
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
87
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
85
88
|
# @option opts [Integer] :limit Number of results to return per page.
|
86
89
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
87
90
|
# @option opts [String] :fields A list of fields to include in the response.
|
88
|
-
# @
|
91
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
92
|
+
# @return [InlineResponse2001]
|
89
93
|
def list(opts = {})
|
90
94
|
data, _status_code, _headers = list_with_http_info(opts)
|
91
95
|
data
|
@@ -94,22 +98,30 @@ module PulpRpmClient
|
|
94
98
|
# List distribution trees
|
95
99
|
# Distribution Tree Viewset.
|
96
100
|
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
102
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
103
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
97
104
|
# @option opts [Integer] :limit Number of results to return per page.
|
98
105
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
99
106
|
# @option opts [String] :fields A list of fields to include in the response.
|
100
|
-
# @
|
107
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
108
|
+
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
101
109
|
def list_with_http_info(opts = {})
|
102
110
|
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API:
|
111
|
+
@api_client.config.logger.debug 'Calling API: ContentDistributionTreesApi.list ...'
|
104
112
|
end
|
105
113
|
# resource path
|
106
|
-
local_var_path = '/pulp/api/v3/
|
114
|
+
local_var_path = '/pulp/api/v3/content/rpm/distribution_trees/'
|
107
115
|
|
108
116
|
# query parameters
|
109
117
|
query_params = opts[:query_params] || {}
|
118
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
119
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
120
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
110
121
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
111
122
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
112
123
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
124
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
113
125
|
|
114
126
|
# header parameters
|
115
127
|
header_params = opts[:header_params] || {}
|
@@ -123,7 +135,7 @@ module PulpRpmClient
|
|
123
135
|
post_body = opts[:body]
|
124
136
|
|
125
137
|
# return_type
|
126
|
-
return_type = opts[:return_type] || '
|
138
|
+
return_type = opts[:return_type] || 'InlineResponse2001'
|
127
139
|
|
128
140
|
# auth_names
|
129
141
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -139,16 +151,17 @@ module PulpRpmClient
|
|
139
151
|
|
140
152
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
141
153
|
if @api_client.config.debugging
|
142
|
-
@api_client.config.logger.debug "API called:
|
154
|
+
@api_client.config.logger.debug "API called: ContentDistributionTreesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
143
155
|
end
|
144
156
|
return data, status_code, headers
|
145
157
|
end
|
146
158
|
|
147
159
|
# Inspect a distribution tree
|
148
160
|
# Distribution Tree Viewset.
|
149
|
-
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/
|
161
|
+
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/content/rpm/distribution_trees/1/
|
150
162
|
# @param [Hash] opts the optional parameters
|
151
163
|
# @option opts [String] :fields A list of fields to include in the response.
|
164
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
152
165
|
# @return [DistributionTree]
|
153
166
|
def read(distribution_tree_href, opts = {})
|
154
167
|
data, _status_code, _headers = read_with_http_info(distribution_tree_href, opts)
|
@@ -157,17 +170,18 @@ module PulpRpmClient
|
|
157
170
|
|
158
171
|
# Inspect a distribution tree
|
159
172
|
# Distribution Tree Viewset.
|
160
|
-
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/
|
173
|
+
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/content/rpm/distribution_trees/1/
|
161
174
|
# @param [Hash] opts the optional parameters
|
162
175
|
# @option opts [String] :fields A list of fields to include in the response.
|
176
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
163
177
|
# @return [Array<(DistributionTree, Integer, Hash)>] DistributionTree data, response status code and response headers
|
164
178
|
def read_with_http_info(distribution_tree_href, opts = {})
|
165
179
|
if @api_client.config.debugging
|
166
|
-
@api_client.config.logger.debug 'Calling API:
|
180
|
+
@api_client.config.logger.debug 'Calling API: ContentDistributionTreesApi.read ...'
|
167
181
|
end
|
168
182
|
# verify the required parameter 'distribution_tree_href' is set
|
169
183
|
if @api_client.config.client_side_validation && distribution_tree_href.nil?
|
170
|
-
fail ArgumentError, "Missing the required parameter 'distribution_tree_href' when calling
|
184
|
+
fail ArgumentError, "Missing the required parameter 'distribution_tree_href' when calling ContentDistributionTreesApi.read"
|
171
185
|
end
|
172
186
|
# resource path
|
173
187
|
local_var_path = '{distribution_tree_href}'.sub('{' + 'distribution_tree_href' + '}', CGI.escape(distribution_tree_href.to_s).gsub('%2F', '/'))
|
@@ -175,6 +189,7 @@ module PulpRpmClient
|
|
175
189
|
# query parameters
|
176
190
|
query_params = opts[:query_params] || {}
|
177
191
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
192
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
178
193
|
|
179
194
|
# header parameters
|
180
195
|
header_params = opts[:header_params] || {}
|
@@ -204,7 +219,7 @@ module PulpRpmClient
|
|
204
219
|
|
205
220
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
206
221
|
if @api_client.config.debugging
|
207
|
-
@api_client.config.logger.debug "API called:
|
222
|
+
@api_client.config.logger.debug "API called: ContentDistributionTreesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
208
223
|
end
|
209
224
|
return data, status_code, headers
|
210
225
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -112,18 +112,10 @@ module PulpRpmClient
|
|
112
112
|
if @api_client.config.client_side_validation && artifacts.nil?
|
113
113
|
fail ArgumentError, "Missing the required parameter 'artifacts' when calling ContentModulemdApi.create"
|
114
114
|
end
|
115
|
-
if @api_client.config.client_side_validation && artifacts.to_s.length < 1
|
116
|
-
fail ArgumentError, 'invalid value for "artifacts" when calling ContentModulemdApi.create, the character length must be great than or equal to 1.'
|
117
|
-
end
|
118
|
-
|
119
115
|
# verify the required parameter 'dependencies' is set
|
120
116
|
if @api_client.config.client_side_validation && dependencies.nil?
|
121
117
|
fail ArgumentError, "Missing the required parameter 'dependencies' when calling ContentModulemdApi.create"
|
122
118
|
end
|
123
|
-
if @api_client.config.client_side_validation && dependencies.to_s.length < 1
|
124
|
-
fail ArgumentError, 'invalid value for "dependencies" when calling ContentModulemdApi.create, the character length must be great than or equal to 1.'
|
125
|
-
end
|
126
|
-
|
127
119
|
# resource path
|
128
120
|
local_var_path = '/pulp/api/v3/content/rpm/modulemd/'
|
129
121
|
|
@@ -186,7 +178,8 @@ module PulpRpmClient
|
|
186
178
|
# @option opts [Integer] :limit Number of results to return per page.
|
187
179
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
188
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
189
|
-
# @
|
181
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
182
|
+
# @return [InlineResponse2003]
|
190
183
|
def list(opts = {})
|
191
184
|
data, _status_code, _headers = list_with_http_info(opts)
|
192
185
|
data
|
@@ -201,7 +194,8 @@ module PulpRpmClient
|
|
201
194
|
# @option opts [Integer] :limit Number of results to return per page.
|
202
195
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
203
196
|
# @option opts [String] :fields A list of fields to include in the response.
|
204
|
-
# @
|
197
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
198
|
+
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
205
199
|
def list_with_http_info(opts = {})
|
206
200
|
if @api_client.config.debugging
|
207
201
|
@api_client.config.logger.debug 'Calling API: ContentModulemdApi.list ...'
|
@@ -217,6 +211,7 @@ module PulpRpmClient
|
|
217
211
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
218
212
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
219
213
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
214
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
220
215
|
|
221
216
|
# header parameters
|
222
217
|
header_params = opts[:header_params] || {}
|
@@ -230,7 +225,7 @@ module PulpRpmClient
|
|
230
225
|
post_body = opts[:body]
|
231
226
|
|
232
227
|
# return_type
|
233
|
-
return_type = opts[:return_type] || '
|
228
|
+
return_type = opts[:return_type] || 'InlineResponse2003'
|
234
229
|
|
235
230
|
# auth_names
|
236
231
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -256,6 +251,7 @@ module PulpRpmClient
|
|
256
251
|
# @param modulemd_href [String] URI of Modulemd. e.g.: /pulp/api/v3/content/rpm/modulemd/1/
|
257
252
|
# @param [Hash] opts the optional parameters
|
258
253
|
# @option opts [String] :fields A list of fields to include in the response.
|
254
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
259
255
|
# @return [Modulemd]
|
260
256
|
def read(modulemd_href, opts = {})
|
261
257
|
data, _status_code, _headers = read_with_http_info(modulemd_href, opts)
|
@@ -267,6 +263,7 @@ module PulpRpmClient
|
|
267
263
|
# @param modulemd_href [String] URI of Modulemd. e.g.: /pulp/api/v3/content/rpm/modulemd/1/
|
268
264
|
# @param [Hash] opts the optional parameters
|
269
265
|
# @option opts [String] :fields A list of fields to include in the response.
|
266
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
270
267
|
# @return [Array<(Modulemd, Integer, Hash)>] Modulemd data, response status code and response headers
|
271
268
|
def read_with_http_info(modulemd_href, opts = {})
|
272
269
|
if @api_client.config.debugging
|
@@ -282,6 +279,7 @@ module PulpRpmClient
|
|
282
279
|
# query parameters
|
283
280
|
query_params = opts[:query_params] || {}
|
284
281
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
282
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
285
283
|
|
286
284
|
# header parameters
|
287
285
|
header_params = opts[:header_params] || {}
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -78,10 +78,6 @@ module PulpRpmClient
|
|
78
78
|
if @api_client.config.client_side_validation && profiles.nil?
|
79
79
|
fail ArgumentError, "Missing the required parameter 'profiles' when calling ContentModulemdDefaultsApi.create"
|
80
80
|
end
|
81
|
-
if @api_client.config.client_side_validation && profiles.to_s.length < 1
|
82
|
-
fail ArgumentError, 'invalid value for "profiles" when calling ContentModulemdDefaultsApi.create, the character length must be great than or equal to 1.'
|
83
|
-
end
|
84
|
-
|
85
81
|
# resource path
|
86
82
|
local_var_path = '/pulp/api/v3/content/rpm/modulemd-defaults/'
|
87
83
|
|
@@ -139,7 +135,8 @@ module PulpRpmClient
|
|
139
135
|
# @option opts [Integer] :limit Number of results to return per page.
|
140
136
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
141
137
|
# @option opts [String] :fields A list of fields to include in the response.
|
142
|
-
# @
|
138
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
139
|
+
# @return [InlineResponse2002]
|
143
140
|
def list(opts = {})
|
144
141
|
data, _status_code, _headers = list_with_http_info(opts)
|
145
142
|
data
|
@@ -154,7 +151,8 @@ module PulpRpmClient
|
|
154
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
155
152
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
156
153
|
# @option opts [String] :fields A list of fields to include in the response.
|
157
|
-
# @
|
154
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
155
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
158
156
|
def list_with_http_info(opts = {})
|
159
157
|
if @api_client.config.debugging
|
160
158
|
@api_client.config.logger.debug 'Calling API: ContentModulemdDefaultsApi.list ...'
|
@@ -170,6 +168,7 @@ module PulpRpmClient
|
|
170
168
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
171
169
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
172
170
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
171
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
173
172
|
|
174
173
|
# header parameters
|
175
174
|
header_params = opts[:header_params] || {}
|
@@ -183,7 +182,7 @@ module PulpRpmClient
|
|
183
182
|
post_body = opts[:body]
|
184
183
|
|
185
184
|
# return_type
|
186
|
-
return_type = opts[:return_type] || '
|
185
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
187
186
|
|
188
187
|
# auth_names
|
189
188
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -209,6 +208,7 @@ module PulpRpmClient
|
|
209
208
|
# @param modulemd_defaults_href [String] URI of Modulemd Defaults. e.g.: /pulp/api/v3/content/rpm/modulemd-defaults/1/
|
210
209
|
# @param [Hash] opts the optional parameters
|
211
210
|
# @option opts [String] :fields A list of fields to include in the response.
|
211
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
212
212
|
# @return [ModulemdDefaults]
|
213
213
|
def read(modulemd_defaults_href, opts = {})
|
214
214
|
data, _status_code, _headers = read_with_http_info(modulemd_defaults_href, opts)
|
@@ -220,6 +220,7 @@ module PulpRpmClient
|
|
220
220
|
# @param modulemd_defaults_href [String] URI of Modulemd Defaults. e.g.: /pulp/api/v3/content/rpm/modulemd-defaults/1/
|
221
221
|
# @param [Hash] opts the optional parameters
|
222
222
|
# @option opts [String] :fields A list of fields to include in the response.
|
223
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
223
224
|
# @return [Array<(ModulemdDefaults, Integer, Hash)>] ModulemdDefaults data, response status code and response headers
|
224
225
|
def read_with_http_info(modulemd_defaults_href, opts = {})
|
225
226
|
if @api_client.config.debugging
|
@@ -235,6 +236,7 @@ module PulpRpmClient
|
|
235
236
|
# query parameters
|
236
237
|
query_params = opts[:query_params] || {}
|
237
238
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
239
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
238
240
|
|
239
241
|
# header parameters
|
240
242
|
header_params = opts[:header_params] || {}
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -120,7 +120,8 @@ module PulpRpmClient
|
|
120
120
|
# @option opts [Integer] :limit Number of results to return per page.
|
121
121
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
122
122
|
# @option opts [String] :fields A list of fields to include in the response.
|
123
|
-
# @
|
123
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
124
|
+
# @return [InlineResponse2004]
|
124
125
|
def list(opts = {})
|
125
126
|
data, _status_code, _headers = list_with_http_info(opts)
|
126
127
|
data
|
@@ -149,7 +150,8 @@ module PulpRpmClient
|
|
149
150
|
# @option opts [Integer] :limit Number of results to return per page.
|
150
151
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
151
152
|
# @option opts [String] :fields A list of fields to include in the response.
|
152
|
-
# @
|
153
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
154
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
153
155
|
def list_with_http_info(opts = {})
|
154
156
|
if @api_client.config.debugging
|
155
157
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
|
@@ -179,6 +181,7 @@ module PulpRpmClient
|
|
179
181
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
180
182
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
181
183
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
184
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
182
185
|
|
183
186
|
# header parameters
|
184
187
|
header_params = opts[:header_params] || {}
|
@@ -192,7 +195,7 @@ module PulpRpmClient
|
|
192
195
|
post_body = opts[:body]
|
193
196
|
|
194
197
|
# return_type
|
195
|
-
return_type = opts[:return_type] || '
|
198
|
+
return_type = opts[:return_type] || 'InlineResponse2004'
|
196
199
|
|
197
200
|
# auth_names
|
198
201
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -218,6 +221,7 @@ module PulpRpmClient
|
|
218
221
|
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
219
222
|
# @param [Hash] opts the optional parameters
|
220
223
|
# @option opts [String] :fields A list of fields to include in the response.
|
224
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
221
225
|
# @return [Package]
|
222
226
|
def read(package_href, opts = {})
|
223
227
|
data, _status_code, _headers = read_with_http_info(package_href, opts)
|
@@ -229,6 +233,7 @@ module PulpRpmClient
|
|
229
233
|
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
230
234
|
# @param [Hash] opts the optional parameters
|
231
235
|
# @option opts [String] :fields A list of fields to include in the response.
|
236
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
232
237
|
# @return [Array<(Package, Integer, Hash)>] Package data, response status code and response headers
|
233
238
|
def read_with_http_info(package_href, opts = {})
|
234
239
|
if @api_client.config.debugging
|
@@ -244,6 +249,7 @@ module PulpRpmClient
|
|
244
249
|
# query parameters
|
245
250
|
query_params = opts[:query_params] || {}
|
246
251
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
252
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
247
253
|
|
248
254
|
# header parameters
|
249
255
|
header_params = opts[:header_params] || {}
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
|
-
class
|
16
|
+
class ContentRepoMetadataFilesApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -21,7 +21,7 @@ module PulpRpmClient
|
|
21
21
|
end
|
22
22
|
# Delete a repo metadata file
|
23
23
|
# RepoMetadataFile Viewset.
|
24
|
-
# @param repo_metadata_file_href [String] URI of Repo Metadata File. e.g.: /pulp/api/v3/
|
24
|
+
# @param repo_metadata_file_href [String] URI of Repo Metadata File. e.g.: /pulp/api/v3/content/rpm/repo_metadata_files/1/
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [nil]
|
27
27
|
def delete(repo_metadata_file_href, opts = {})
|
@@ -31,16 +31,16 @@ module PulpRpmClient
|
|
31
31
|
|
32
32
|
# Delete a repo metadata file
|
33
33
|
# RepoMetadataFile Viewset.
|
34
|
-
# @param repo_metadata_file_href [String] URI of Repo Metadata File. e.g.: /pulp/api/v3/
|
34
|
+
# @param repo_metadata_file_href [String] URI of Repo Metadata File. e.g.: /pulp/api/v3/content/rpm/repo_metadata_files/1/
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
37
|
def delete_with_http_info(repo_metadata_file_href, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentRepoMetadataFilesApi.delete ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'repo_metadata_file_href' is set
|
42
42
|
if @api_client.config.client_side_validation && repo_metadata_file_href.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'repo_metadata_file_href' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'repo_metadata_file_href' when calling ContentRepoMetadataFilesApi.delete"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '{repo_metadata_file_href}'.sub('{' + 'repo_metadata_file_href' + '}', CGI.escape(repo_metadata_file_href.to_s).gsub('%2F', '/'))
|
@@ -74,7 +74,7 @@ module PulpRpmClient
|
|
74
74
|
|
75
75
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
76
76
|
if @api_client.config.debugging
|
77
|
-
@api_client.config.logger.debug "API called:
|
77
|
+
@api_client.config.logger.debug "API called: ContentRepoMetadataFilesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
78
|
end
|
79
79
|
return data, status_code, headers
|
80
80
|
end
|
@@ -82,10 +82,14 @@ module PulpRpmClient
|
|
82
82
|
# List repo metadata files
|
83
83
|
# RepoMetadataFile Viewset.
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
86
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
87
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
85
88
|
# @option opts [Integer] :limit Number of results to return per page.
|
86
89
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
87
90
|
# @option opts [String] :fields A list of fields to include in the response.
|
88
|
-
# @
|
91
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
92
|
+
# @return [InlineResponse2005]
|
89
93
|
def list(opts = {})
|
90
94
|
data, _status_code, _headers = list_with_http_info(opts)
|
91
95
|
data
|
@@ -94,22 +98,30 @@ module PulpRpmClient
|
|
94
98
|
# List repo metadata files
|
95
99
|
# RepoMetadataFile Viewset.
|
96
100
|
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
102
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
103
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
97
104
|
# @option opts [Integer] :limit Number of results to return per page.
|
98
105
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
99
106
|
# @option opts [String] :fields A list of fields to include in the response.
|
100
|
-
# @
|
107
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
108
|
+
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
101
109
|
def list_with_http_info(opts = {})
|
102
110
|
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API:
|
111
|
+
@api_client.config.logger.debug 'Calling API: ContentRepoMetadataFilesApi.list ...'
|
104
112
|
end
|
105
113
|
# resource path
|
106
|
-
local_var_path = '/pulp/api/v3/
|
114
|
+
local_var_path = '/pulp/api/v3/content/rpm/repo_metadata_files/'
|
107
115
|
|
108
116
|
# query parameters
|
109
117
|
query_params = opts[:query_params] || {}
|
118
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
119
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
120
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
110
121
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
111
122
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
112
123
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
124
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
113
125
|
|
114
126
|
# header parameters
|
115
127
|
header_params = opts[:header_params] || {}
|
@@ -123,7 +135,7 @@ module PulpRpmClient
|
|
123
135
|
post_body = opts[:body]
|
124
136
|
|
125
137
|
# return_type
|
126
|
-
return_type = opts[:return_type] || '
|
138
|
+
return_type = opts[:return_type] || 'InlineResponse2005'
|
127
139
|
|
128
140
|
# auth_names
|
129
141
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -139,16 +151,17 @@ module PulpRpmClient
|
|
139
151
|
|
140
152
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
141
153
|
if @api_client.config.debugging
|
142
|
-
@api_client.config.logger.debug "API called:
|
154
|
+
@api_client.config.logger.debug "API called: ContentRepoMetadataFilesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
143
155
|
end
|
144
156
|
return data, status_code, headers
|
145
157
|
end
|
146
158
|
|
147
159
|
# Inspect a repo metadata file
|
148
160
|
# RepoMetadataFile Viewset.
|
149
|
-
# @param repo_metadata_file_href [String] URI of Repo Metadata File. e.g.: /pulp/api/v3/
|
161
|
+
# @param repo_metadata_file_href [String] URI of Repo Metadata File. e.g.: /pulp/api/v3/content/rpm/repo_metadata_files/1/
|
150
162
|
# @param [Hash] opts the optional parameters
|
151
163
|
# @option opts [String] :fields A list of fields to include in the response.
|
164
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
152
165
|
# @return [RepoMetadataFile]
|
153
166
|
def read(repo_metadata_file_href, opts = {})
|
154
167
|
data, _status_code, _headers = read_with_http_info(repo_metadata_file_href, opts)
|
@@ -157,17 +170,18 @@ module PulpRpmClient
|
|
157
170
|
|
158
171
|
# Inspect a repo metadata file
|
159
172
|
# RepoMetadataFile Viewset.
|
160
|
-
# @param repo_metadata_file_href [String] URI of Repo Metadata File. e.g.: /pulp/api/v3/
|
173
|
+
# @param repo_metadata_file_href [String] URI of Repo Metadata File. e.g.: /pulp/api/v3/content/rpm/repo_metadata_files/1/
|
161
174
|
# @param [Hash] opts the optional parameters
|
162
175
|
# @option opts [String] :fields A list of fields to include in the response.
|
176
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
163
177
|
# @return [Array<(RepoMetadataFile, Integer, Hash)>] RepoMetadataFile data, response status code and response headers
|
164
178
|
def read_with_http_info(repo_metadata_file_href, opts = {})
|
165
179
|
if @api_client.config.debugging
|
166
|
-
@api_client.config.logger.debug 'Calling API:
|
180
|
+
@api_client.config.logger.debug 'Calling API: ContentRepoMetadataFilesApi.read ...'
|
167
181
|
end
|
168
182
|
# verify the required parameter 'repo_metadata_file_href' is set
|
169
183
|
if @api_client.config.client_side_validation && repo_metadata_file_href.nil?
|
170
|
-
fail ArgumentError, "Missing the required parameter 'repo_metadata_file_href' when calling
|
184
|
+
fail ArgumentError, "Missing the required parameter 'repo_metadata_file_href' when calling ContentRepoMetadataFilesApi.read"
|
171
185
|
end
|
172
186
|
# resource path
|
173
187
|
local_var_path = '{repo_metadata_file_href}'.sub('{' + 'repo_metadata_file_href' + '}', CGI.escape(repo_metadata_file_href.to_s).gsub('%2F', '/'))
|
@@ -175,6 +189,7 @@ module PulpRpmClient
|
|
175
189
|
# query parameters
|
176
190
|
query_params = opts[:query_params] || {}
|
177
191
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
192
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
178
193
|
|
179
194
|
# header parameters
|
180
195
|
header_params = opts[:header_params] || {}
|
@@ -204,7 +219,7 @@ module PulpRpmClient
|
|
204
219
|
|
205
220
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
206
221
|
if @api_client.config.debugging
|
207
|
-
@api_client.config.logger.debug "API called:
|
222
|
+
@api_client.config.logger.debug "API called: ContentRepoMetadataFilesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
208
223
|
end
|
209
224
|
return data, status_code, headers
|
210
225
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -157,7 +157,8 @@ module PulpRpmClient
|
|
157
157
|
# @option opts [Integer] :limit Number of results to return per page.
|
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 [InlineResponse2006]
|
161
162
|
def list(opts = {})
|
162
163
|
data, _status_code, _headers = list_with_http_info(opts)
|
163
164
|
data
|
@@ -175,7 +176,8 @@ module PulpRpmClient
|
|
175
176
|
# @option opts [Integer] :limit Number of results to return per page.
|
176
177
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
177
178
|
# @option opts [String] :fields A list of fields to include in the response.
|
178
|
-
# @
|
179
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
180
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
179
181
|
def list_with_http_info(opts = {})
|
180
182
|
if @api_client.config.debugging
|
181
183
|
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.list ...'
|
@@ -194,6 +196,7 @@ module PulpRpmClient
|
|
194
196
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
195
197
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
196
198
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
199
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
197
200
|
|
198
201
|
# header parameters
|
199
202
|
header_params = opts[:header_params] || {}
|
@@ -207,7 +210,7 @@ module PulpRpmClient
|
|
207
210
|
post_body = opts[:body]
|
208
211
|
|
209
212
|
# return_type
|
210
|
-
return_type = opts[:return_type] || '
|
213
|
+
return_type = opts[:return_type] || 'InlineResponse2006'
|
211
214
|
|
212
215
|
# auth_names
|
213
216
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -303,6 +306,7 @@ module PulpRpmClient
|
|
303
306
|
# @param rpm_distribution_href [String] URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
304
307
|
# @param [Hash] opts the optional parameters
|
305
308
|
# @option opts [String] :fields A list of fields to include in the response.
|
309
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
306
310
|
# @return [RpmDistribution]
|
307
311
|
def read(rpm_distribution_href, opts = {})
|
308
312
|
data, _status_code, _headers = read_with_http_info(rpm_distribution_href, opts)
|
@@ -314,6 +318,7 @@ module PulpRpmClient
|
|
314
318
|
# @param rpm_distribution_href [String] URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
315
319
|
# @param [Hash] opts the optional parameters
|
316
320
|
# @option opts [String] :fields A list of fields to include in the response.
|
321
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
317
322
|
# @return [Array<(RpmDistribution, Integer, Hash)>] RpmDistribution data, response status code and response headers
|
318
323
|
def read_with_http_info(rpm_distribution_href, opts = {})
|
319
324
|
if @api_client.config.debugging
|
@@ -329,6 +334,7 @@ module PulpRpmClient
|
|
329
334
|
# query parameters
|
330
335
|
query_params = opts[:query_params] || {}
|
331
336
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
337
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
332
338
|
|
333
339
|
# header parameters
|
334
340
|
header_params = opts[:header_params] || {}
|