pulp_rpm_client 3.17.22 → 3.18.0
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 -4
- data/docs/AcsRpmApi.md +11 -13
- data/docs/ContentAdvisoriesApi.md +8 -8
- data/docs/ContentDistributionTreesApi.md +8 -8
- data/docs/ContentModulemdDefaultsApi.md +13 -29
- data/docs/ContentModulemdObsoletesApi.md +192 -0
- data/docs/ContentModulemdsApi.md +13 -41
- data/docs/ContentPackagecategoriesApi.md +8 -8
- data/docs/ContentPackageenvironmentsApi.md +8 -8
- data/docs/ContentPackagegroupsApi.md +8 -8
- data/docs/ContentPackagelangpacksApi.md +8 -8
- data/docs/ContentPackagesApi.md +12 -12
- data/docs/ContentRepoMetadataFilesApi.md +8 -8
- data/docs/DistributionsRpmApi.md +8 -8
- data/docs/PaginatedrpmModulemdObsoleteResponseList.md +23 -0
- data/docs/PatchedrpmRpmRepository.md +1 -1
- data/docs/PublicationsRpmApi.md +8 -8
- data/docs/RemotesRpmApi.md +8 -8
- data/docs/RemotesUlnApi.md +8 -8
- data/docs/RepositoriesRpmApi.md +8 -8
- data/docs/RepositoriesRpmVersionsApi.md +8 -8
- data/docs/RpmModulemd.md +8 -12
- data/docs/RpmModulemdDefaults.md +4 -12
- data/docs/RpmModulemdDefaultsResponse.md +0 -14
- data/docs/RpmModulemdObsolete.md +35 -0
- data/docs/RpmModulemdObsoleteResponse.md +37 -0
- data/docs/RpmModulemdResponse.md +5 -15
- data/docs/RpmPackage.md +1 -1
- data/docs/RpmRpmPublication.md +1 -1
- data/docs/RpmRpmPublicationResponse.md +1 -1
- data/docs/RpmRpmRepository.md +1 -1
- data/docs/RpmRpmRepositoryResponse.md +1 -1
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +16 -24
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +23 -69
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +238 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +23 -107
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_packages_api.rb +20 -24
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +12 -12
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +12 -12
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +12 -12
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +12 -12
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +12 -12
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +12 -12
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +12 -12
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_obsolete_response_list.rb +237 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +83 -78
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +38 -78
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +1 -71
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +464 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +332 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +30 -74
- data/lib/pulp_rpm_client/models/rpm_package.rb +3 -12
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +4 -0
- data/spec/api/acs_rpm_api_spec.rb +4 -5
- data/spec/api/content_advisories_api_spec.rb +4 -4
- data/spec/api/content_distribution_trees_api_spec.rb +4 -4
- data/spec/api/content_modulemd_defaults_api_spec.rb +5 -12
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +80 -0
- data/spec/api/content_modulemds_api_spec.rb +5 -18
- data/spec/api/content_packagecategories_api_spec.rb +4 -4
- data/spec/api/content_packageenvironments_api_spec.rb +4 -4
- data/spec/api/content_packagegroups_api_spec.rb +4 -4
- data/spec/api/content_packagelangpacks_api_spec.rb +4 -4
- data/spec/api/content_packages_api_spec.rb +5 -5
- data/spec/api/content_repo_metadata_files_api_spec.rb +4 -4
- data/spec/api/distributions_rpm_api_spec.rb +4 -4
- data/spec/api/publications_rpm_api_spec.rb +4 -4
- data/spec/api/remotes_rpm_api_spec.rb +4 -4
- data/spec/api/remotes_uln_api_spec.rb +4 -4
- data/spec/api/repositories_rpm_api_spec.rb +4 -4
- data/spec/api/repositories_rpm_versions_api_spec.rb +4 -4
- data/spec/models/paginatedrpm_modulemd_obsolete_response_list_spec.rb +59 -0
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +0 -42
- data/spec/models/rpm_modulemd_defaults_spec.rb +4 -28
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +101 -0
- data/spec/models/rpm_modulemd_obsolete_spec.rb +95 -0
- data/spec/models/rpm_modulemd_response_spec.rb +11 -41
- data/spec/models/rpm_modulemd_spec.rb +12 -24
- metadata +85 -69
@@ -163,8 +163,8 @@ module PulpRpmClient
|
|
163
163
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
164
164
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
165
165
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
166
|
-
# @option opts [
|
167
|
-
# @option opts [
|
166
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
167
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
168
168
|
# @return [PaginatedrpmRpmRemoteResponseList]
|
169
169
|
def list(opts = {})
|
170
170
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -189,8 +189,8 @@ module PulpRpmClient
|
|
189
189
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
190
190
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
191
191
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
192
|
-
# @option opts [
|
193
|
-
# @option opts [
|
192
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
193
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
194
194
|
# @return [Array<(PaginatedrpmRpmRemoteResponseList, Integer, Hash)>] PaginatedrpmRpmRemoteResponseList data, response status code and response headers
|
195
195
|
def list_with_http_info(opts = {})
|
196
196
|
if @api_client.config.debugging
|
@@ -220,8 +220,8 @@ module PulpRpmClient
|
|
220
220
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
221
221
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
222
222
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
223
|
-
query_params[:'fields'] =
|
224
|
-
query_params[:'exclude_fields'] =
|
223
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
224
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
225
225
|
|
226
226
|
# header parameters
|
227
227
|
header_params = opts[:header_params] || {}
|
@@ -330,8 +330,8 @@ module PulpRpmClient
|
|
330
330
|
# A ViewSet for RpmRemote.
|
331
331
|
# @param rpm_rpm_remote_href [String]
|
332
332
|
# @param [Hash] opts the optional parameters
|
333
|
-
# @option opts [
|
334
|
-
# @option opts [
|
333
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
334
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
335
335
|
# @return [RpmRpmRemoteResponse]
|
336
336
|
def read(rpm_rpm_remote_href, opts = {})
|
337
337
|
data, _status_code, _headers = read_with_http_info(rpm_rpm_remote_href, opts)
|
@@ -342,8 +342,8 @@ module PulpRpmClient
|
|
342
342
|
# A ViewSet for RpmRemote.
|
343
343
|
# @param rpm_rpm_remote_href [String]
|
344
344
|
# @param [Hash] opts the optional parameters
|
345
|
-
# @option opts [
|
346
|
-
# @option opts [
|
345
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
346
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
347
347
|
# @return [Array<(RpmRpmRemoteResponse, Integer, Hash)>] RpmRpmRemoteResponse data, response status code and response headers
|
348
348
|
def read_with_http_info(rpm_rpm_remote_href, opts = {})
|
349
349
|
if @api_client.config.debugging
|
@@ -358,8 +358,8 @@ module PulpRpmClient
|
|
358
358
|
|
359
359
|
# query parameters
|
360
360
|
query_params = opts[:query_params] || {}
|
361
|
-
query_params[:'fields'] =
|
362
|
-
query_params[:'exclude_fields'] =
|
361
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
362
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
363
363
|
|
364
364
|
# header parameters
|
365
365
|
header_params = opts[:header_params] || {}
|
@@ -163,8 +163,8 @@ module PulpRpmClient
|
|
163
163
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
164
164
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
165
165
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
166
|
-
# @option opts [
|
167
|
-
# @option opts [
|
166
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
167
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
168
168
|
# @return [PaginatedrpmUlnRemoteResponseList]
|
169
169
|
def list(opts = {})
|
170
170
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -189,8 +189,8 @@ module PulpRpmClient
|
|
189
189
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
190
190
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
191
191
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
192
|
-
# @option opts [
|
193
|
-
# @option opts [
|
192
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
193
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
194
194
|
# @return [Array<(PaginatedrpmUlnRemoteResponseList, Integer, Hash)>] PaginatedrpmUlnRemoteResponseList data, response status code and response headers
|
195
195
|
def list_with_http_info(opts = {})
|
196
196
|
if @api_client.config.debugging
|
@@ -220,8 +220,8 @@ module PulpRpmClient
|
|
220
220
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
221
221
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
222
222
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
223
|
-
query_params[:'fields'] =
|
224
|
-
query_params[:'exclude_fields'] =
|
223
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
224
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
225
225
|
|
226
226
|
# header parameters
|
227
227
|
header_params = opts[:header_params] || {}
|
@@ -330,8 +330,8 @@ module PulpRpmClient
|
|
330
330
|
# A ViewSet for UlnRemote.
|
331
331
|
# @param rpm_uln_remote_href [String]
|
332
332
|
# @param [Hash] opts the optional parameters
|
333
|
-
# @option opts [
|
334
|
-
# @option opts [
|
333
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
334
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
335
335
|
# @return [RpmUlnRemoteResponse]
|
336
336
|
def read(rpm_uln_remote_href, opts = {})
|
337
337
|
data, _status_code, _headers = read_with_http_info(rpm_uln_remote_href, opts)
|
@@ -342,8 +342,8 @@ module PulpRpmClient
|
|
342
342
|
# A ViewSet for UlnRemote.
|
343
343
|
# @param rpm_uln_remote_href [String]
|
344
344
|
# @param [Hash] opts the optional parameters
|
345
|
-
# @option opts [
|
346
|
-
# @option opts [
|
345
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
346
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
347
347
|
# @return [Array<(RpmUlnRemoteResponse, Integer, Hash)>] RpmUlnRemoteResponse data, response status code and response headers
|
348
348
|
def read_with_http_info(rpm_uln_remote_href, opts = {})
|
349
349
|
if @api_client.config.debugging
|
@@ -358,8 +358,8 @@ module PulpRpmClient
|
|
358
358
|
|
359
359
|
# query parameters
|
360
360
|
query_params = opts[:query_params] || {}
|
361
|
-
query_params[:'fields'] =
|
362
|
-
query_params[:'exclude_fields'] =
|
361
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
362
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
363
363
|
|
364
364
|
# header parameters
|
365
365
|
header_params = opts[:header_params] || {}
|
@@ -158,8 +158,8 @@ module PulpRpmClient
|
|
158
158
|
# @option opts [Array<String>] :ordering Ordering
|
159
159
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
160
160
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
161
|
-
# @option opts [
|
162
|
-
# @option opts [
|
161
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
162
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
163
163
|
# @return [PaginatedrpmRpmRepositoryResponseList]
|
164
164
|
def list(opts = {})
|
165
165
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -179,8 +179,8 @@ module PulpRpmClient
|
|
179
179
|
# @option opts [Array<String>] :ordering Ordering
|
180
180
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
181
181
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
182
|
-
# @option opts [
|
183
|
-
# @option opts [
|
182
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
183
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
184
184
|
# @return [Array<(PaginatedrpmRpmRepositoryResponseList, Integer, Hash)>] PaginatedrpmRpmRepositoryResponseList data, response status code and response headers
|
185
185
|
def list_with_http_info(opts = {})
|
186
186
|
if @api_client.config.debugging
|
@@ -205,8 +205,8 @@ module PulpRpmClient
|
|
205
205
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
206
206
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
207
207
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
208
|
-
query_params[:'fields'] =
|
209
|
-
query_params[:'exclude_fields'] =
|
208
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
209
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
210
210
|
|
211
211
|
# header parameters
|
212
212
|
header_params = opts[:header_params] || {}
|
@@ -385,8 +385,8 @@ module PulpRpmClient
|
|
385
385
|
# A ViewSet for RpmRepository.
|
386
386
|
# @param rpm_rpm_repository_href [String]
|
387
387
|
# @param [Hash] opts the optional parameters
|
388
|
-
# @option opts [
|
389
|
-
# @option opts [
|
388
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
389
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
390
390
|
# @return [RpmRpmRepositoryResponse]
|
391
391
|
def read(rpm_rpm_repository_href, opts = {})
|
392
392
|
data, _status_code, _headers = read_with_http_info(rpm_rpm_repository_href, opts)
|
@@ -397,8 +397,8 @@ module PulpRpmClient
|
|
397
397
|
# A ViewSet for RpmRepository.
|
398
398
|
# @param rpm_rpm_repository_href [String]
|
399
399
|
# @param [Hash] opts the optional parameters
|
400
|
-
# @option opts [
|
401
|
-
# @option opts [
|
400
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
401
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
402
402
|
# @return [Array<(RpmRpmRepositoryResponse, Integer, Hash)>] RpmRpmRepositoryResponse data, response status code and response headers
|
403
403
|
def read_with_http_info(rpm_rpm_repository_href, opts = {})
|
404
404
|
if @api_client.config.debugging
|
@@ -413,8 +413,8 @@ module PulpRpmClient
|
|
413
413
|
|
414
414
|
# query parameters
|
415
415
|
query_params = opts[:query_params] || {}
|
416
|
-
query_params[:'fields'] =
|
417
|
-
query_params[:'exclude_fields'] =
|
416
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
417
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
418
418
|
|
419
419
|
# header parameters
|
420
420
|
header_params = opts[:header_params] || {}
|
@@ -102,8 +102,8 @@ module PulpRpmClient
|
|
102
102
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
|
-
# @option opts [
|
106
|
-
# @option opts [
|
105
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
106
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
107
|
# @return [PaginatedRepositoryVersionResponseList]
|
108
108
|
def list(rpm_rpm_repository_href, opts = {})
|
109
109
|
data, _status_code, _headers = list_with_http_info(rpm_rpm_repository_href, opts)
|
@@ -131,8 +131,8 @@ module PulpRpmClient
|
|
131
131
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
132
132
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
133
133
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
134
|
-
# @option opts [
|
135
|
-
# @option opts [
|
134
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
135
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
137
137
|
def list_with_http_info(rpm_rpm_repository_href, opts = {})
|
138
138
|
if @api_client.config.debugging
|
@@ -168,8 +168,8 @@ module PulpRpmClient
|
|
168
168
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
169
169
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
170
170
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
171
|
-
query_params[:'fields'] =
|
172
|
-
query_params[:'exclude_fields'] =
|
171
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
172
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
173
173
|
|
174
174
|
# header parameters
|
175
175
|
header_params = opts[:header_params] || {}
|
@@ -208,8 +208,8 @@ module PulpRpmClient
|
|
208
208
|
# RpmRepositoryVersion represents a single rpm repository version.
|
209
209
|
# @param rpm_rpm_repository_version_href [String]
|
210
210
|
# @param [Hash] opts the optional parameters
|
211
|
-
# @option opts [
|
212
|
-
# @option opts [
|
211
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
212
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
213
213
|
# @return [RepositoryVersionResponse]
|
214
214
|
def read(rpm_rpm_repository_version_href, opts = {})
|
215
215
|
data, _status_code, _headers = read_with_http_info(rpm_rpm_repository_version_href, opts)
|
@@ -220,8 +220,8 @@ module PulpRpmClient
|
|
220
220
|
# RpmRepositoryVersion represents a single rpm repository version.
|
221
221
|
# @param rpm_rpm_repository_version_href [String]
|
222
222
|
# @param [Hash] opts the optional parameters
|
223
|
-
# @option opts [
|
224
|
-
# @option opts [
|
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.
|
225
225
|
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
226
226
|
def read_with_http_info(rpm_rpm_repository_version_href, opts = {})
|
227
227
|
if @api_client.config.debugging
|
@@ -236,8 +236,8 @@ module PulpRpmClient
|
|
236
236
|
|
237
237
|
# query parameters
|
238
238
|
query_params = opts[:query_params] || {}
|
239
|
-
query_params[:'fields'] =
|
240
|
-
query_params[:'exclude_fields'] =
|
239
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
240
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
241
241
|
|
242
242
|
# header parameters
|
243
243
|
header_params = opts[:header_params] || {}
|
@@ -0,0 +1,237 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
class PaginatedrpmModulemdObsoleteResponseList
|
17
|
+
attr_accessor :count
|
18
|
+
|
19
|
+
attr_accessor :_next
|
20
|
+
|
21
|
+
attr_accessor :previous
|
22
|
+
|
23
|
+
attr_accessor :results
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'count' => :'count',
|
29
|
+
:'_next' => :'next',
|
30
|
+
:'previous' => :'previous',
|
31
|
+
:'results' => :'results'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'count' => :'Integer',
|
39
|
+
:'_next' => :'String',
|
40
|
+
:'previous' => :'String',
|
41
|
+
:'results' => :'Array<RpmModulemdObsoleteResponse>'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
:'_next',
|
49
|
+
:'previous',
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::PaginatedrpmModulemdObsoleteResponseList` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::PaginatedrpmModulemdObsoleteResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'count')
|
69
|
+
self.count = attributes[:'count']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'_next')
|
73
|
+
self._next = attributes[:'_next']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'previous')
|
77
|
+
self.previous = attributes[:'previous']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'results')
|
81
|
+
if (value = attributes[:'results']).is_a?(Array)
|
82
|
+
self.results = value
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
88
|
+
# @return Array for valid properties with the reasons
|
89
|
+
def list_invalid_properties
|
90
|
+
invalid_properties = Array.new
|
91
|
+
invalid_properties
|
92
|
+
end
|
93
|
+
|
94
|
+
# Check to see if the all the properties in the model are valid
|
95
|
+
# @return true if the model is valid
|
96
|
+
def valid?
|
97
|
+
true
|
98
|
+
end
|
99
|
+
|
100
|
+
# Checks equality by comparing each attribute.
|
101
|
+
# @param [Object] Object to be compared
|
102
|
+
def ==(o)
|
103
|
+
return true if self.equal?(o)
|
104
|
+
self.class == o.class &&
|
105
|
+
count == o.count &&
|
106
|
+
_next == o._next &&
|
107
|
+
previous == o.previous &&
|
108
|
+
results == o.results
|
109
|
+
end
|
110
|
+
|
111
|
+
# @see the `==` method
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def eql?(o)
|
114
|
+
self == o
|
115
|
+
end
|
116
|
+
|
117
|
+
# Calculates hash code according to all attributes.
|
118
|
+
# @return [Integer] Hash code
|
119
|
+
def hash
|
120
|
+
[count, _next, previous, results].hash
|
121
|
+
end
|
122
|
+
|
123
|
+
# Builds the object from hash
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
+
# @return [Object] Returns the model itself
|
126
|
+
def self.build_from_hash(attributes)
|
127
|
+
new.build_from_hash(attributes)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Builds the object from hash
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
+
# @return [Object] Returns the model itself
|
133
|
+
def build_from_hash(attributes)
|
134
|
+
return nil unless attributes.is_a?(Hash)
|
135
|
+
self.class.openapi_types.each_pair do |key, type|
|
136
|
+
if type =~ /\AArray<(.*)>/i
|
137
|
+
# check to ensure the input is an array given that the attribute
|
138
|
+
# is documented as an array but the input is not
|
139
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
141
|
+
end
|
142
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
143
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
144
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
145
|
+
end
|
146
|
+
|
147
|
+
self
|
148
|
+
end
|
149
|
+
|
150
|
+
# Deserializes the data based on type
|
151
|
+
# @param string type Data type
|
152
|
+
# @param string value Value to be deserialized
|
153
|
+
# @return [Object] Deserialized data
|
154
|
+
def _deserialize(type, value)
|
155
|
+
case type.to_sym
|
156
|
+
when :DateTime
|
157
|
+
DateTime.parse(value)
|
158
|
+
when :Date
|
159
|
+
Date.parse(value)
|
160
|
+
when :String
|
161
|
+
value.to_s
|
162
|
+
when :Integer
|
163
|
+
value.to_i
|
164
|
+
when :Float
|
165
|
+
value.to_f
|
166
|
+
when :Boolean
|
167
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
168
|
+
true
|
169
|
+
else
|
170
|
+
false
|
171
|
+
end
|
172
|
+
when :Object
|
173
|
+
# generic object (usually a Hash), return directly
|
174
|
+
value
|
175
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
176
|
+
inner_type = Regexp.last_match[:inner_type]
|
177
|
+
value.map { |v| _deserialize(inner_type, v) }
|
178
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
179
|
+
k_type = Regexp.last_match[:k_type]
|
180
|
+
v_type = Regexp.last_match[:v_type]
|
181
|
+
{}.tap do |hash|
|
182
|
+
value.each do |k, v|
|
183
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
else # model
|
187
|
+
PulpRpmClient.const_get(type).build_from_hash(value)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
# Returns the string representation of the object
|
192
|
+
# @return [String] String presentation of the object
|
193
|
+
def to_s
|
194
|
+
to_hash.to_s
|
195
|
+
end
|
196
|
+
|
197
|
+
# to_body is an alias to to_hash (backward compatibility)
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
199
|
+
def to_body
|
200
|
+
to_hash
|
201
|
+
end
|
202
|
+
|
203
|
+
# Returns the object in the form of hash
|
204
|
+
# @return [Hash] Returns the object in the form of hash
|
205
|
+
def to_hash
|
206
|
+
hash = {}
|
207
|
+
self.class.attribute_map.each_pair do |attr, param|
|
208
|
+
value = self.send(attr)
|
209
|
+
if value.nil?
|
210
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
211
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
212
|
+
end
|
213
|
+
|
214
|
+
hash[param] = _to_hash(value)
|
215
|
+
end
|
216
|
+
hash
|
217
|
+
end
|
218
|
+
|
219
|
+
# Outputs non-array value in the form of hash
|
220
|
+
# For object, use to_hash. Otherwise, just return the value
|
221
|
+
# @param [Object] value Any valid value
|
222
|
+
# @return [Hash] Returns the value in the form of hash
|
223
|
+
def _to_hash(value)
|
224
|
+
if value.is_a?(Array)
|
225
|
+
value.compact.map { |v| _to_hash(v) }
|
226
|
+
elsif value.is_a?(Hash)
|
227
|
+
{}.tap do |hash|
|
228
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
229
|
+
end
|
230
|
+
elsif value.respond_to? :to_hash
|
231
|
+
value.to_hash
|
232
|
+
else
|
233
|
+
value
|
234
|
+
end
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
@@ -50,7 +50,7 @@ module PulpRpmClient
|
|
50
50
|
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
51
51
|
attr_accessor :repo_gpgcheck
|
52
52
|
|
53
|
-
# An option specifying whether Pulp should generate SQLite metadata.
|
53
|
+
# DEPRECATED: An option specifying whether Pulp should generate SQLite metadata.
|
54
54
|
attr_accessor :sqlite_metadata
|
55
55
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|