pulp_rpm_client 3.0.0b71572533171 → 3.0.0rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +63 -22
- data/docs/ContentAdvisoriesApi.md +15 -7
- data/docs/ContentDistributionTreesApi.md +2 -2
- data/docs/ContentModulemdDefaultsApi.md +6 -6
- data/docs/{ContentModulemdApi.md → ContentModulemdsApi.md} +14 -14
- data/docs/ContentPackagecategoriesApi.md +189 -0
- data/docs/ContentPackageenvironmentsApi.md +189 -0
- data/docs/ContentPackagegroupsApi.md +189 -0
- data/docs/ContentPackagelangpacksApi.md +189 -0
- data/docs/ContentPackagesApi.md +4 -4
- data/docs/ContentRepoMetadataFilesApi.md +4 -4
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsRpmApi.md +10 -10
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse20014.md +23 -0
- 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/InlineResponse2009.md +23 -0
- data/docs/PublicationsRpmApi.md +6 -6
- data/docs/RemotesRpmApi.md +12 -68
- data/docs/RepositoriesRpmApi.md +465 -0
- data/docs/RepositoriesRpmVersionsApi.md +214 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/docs/{DistributionTree.md → RpmDistributionTree.md} +2 -2
- data/docs/{Modulemd.md → RpmModulemd.md} +2 -8
- data/docs/{ModulemdDefaults.md → RpmModulemdDefaults.md} +2 -8
- data/docs/{Package.md → RpmPackage.md} +2 -8
- data/docs/RpmPackageCategory.md +33 -0
- data/docs/RpmPackageEnvironment.md +37 -0
- data/docs/RpmPackageGroup.md +39 -0
- data/docs/RpmPackageLangpacks.md +19 -0
- data/docs/{RepoMetadataFile.md → RpmRepoMetadataFile.md} +2 -8
- data/docs/{RpmDistribution.md → RpmRpmDistribution.md} +2 -2
- data/docs/{RpmPublication.md → RpmRpmPublication.md} +2 -2
- data/docs/{RpmRemote.md → RpmRpmRemote.md} +10 -14
- data/docs/RpmRpmRepository.md +27 -0
- data/docs/RpmUpdateCollection.md +21 -0
- data/docs/{UpdateRecord.md → RpmUpdateRecord.md} +24 -20
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +28 -14
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +4 -4
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +8 -8
- data/lib/pulp_rpm_client/api/{content_modulemd_api.rb → content_modulemds_api.rb} +30 -30
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +227 -0
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +227 -0
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +227 -0
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +227 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +7 -7
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +7 -7
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +13 -13
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +9 -9
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +16 -86
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +568 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +268 -0
- 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 +12 -2
- data/lib/pulp_rpm_client/models/artifact.rb +18 -2
- data/lib/pulp_rpm_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_rpm_client/models/checksum.rb +12 -2
- data/lib/pulp_rpm_client/models/content_summary.rb +246 -0
- data/lib/pulp_rpm_client/models/image.rb +12 -2
- data/lib/pulp_rpm_client/models/inline_response200.rb +15 -3
- data/lib/pulp_rpm_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_rpm_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_rpm_client/models/inline_response20011.rb +247 -0
- data/lib/pulp_rpm_client/models/inline_response20012.rb +247 -0
- data/lib/pulp_rpm_client/models/inline_response20013.rb +247 -0
- data/lib/pulp_rpm_client/models/inline_response20014.rb +247 -0
- data/lib/pulp_rpm_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_rpm_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_rpm_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_rpm_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_rpm_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_rpm_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_rpm_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_rpm_client/models/inline_response2009.rb +247 -0
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +231 -0
- data/lib/pulp_rpm_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_rpm_client/models/repository_version.rb +244 -0
- data/lib/pulp_rpm_client/models/{distribution_tree.rb → rpm_distribution_tree.rb} +15 -5
- data/lib/pulp_rpm_client/models/{modulemd.rb → rpm_modulemd.rb} +16 -60
- data/lib/pulp_rpm_client/models/{modulemd_defaults.rb → rpm_modulemd_defaults.rb} +16 -60
- data/lib/pulp_rpm_client/models/{package.rb → rpm_package.rb} +16 -60
- data/lib/pulp_rpm_client/models/rpm_package_category.rb +405 -0
- data/lib/pulp_rpm_client/models/rpm_package_environment.rb +432 -0
- data/lib/pulp_rpm_client/models/rpm_package_group.rb +435 -0
- data/lib/pulp_rpm_client/models/rpm_package_langpacks.rb +246 -0
- data/lib/pulp_rpm_client/models/{repo_metadata_file.rb → rpm_repo_metadata_file.rb} +16 -60
- data/lib/pulp_rpm_client/models/{rpm_distribution.rb → rpm_rpm_distribution.rb} +17 -23
- data/lib/pulp_rpm_client/models/{rpm_publication.rb → rpm_rpm_publication.rb} +16 -5
- data/lib/pulp_rpm_client/models/{rpm_remote.rb → rpm_rpm_remote.rb} +69 -105
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +294 -0
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +240 -0
- data/lib/pulp_rpm_client/models/{update_record.rb → rpm_update_record.rb} +49 -239
- data/lib/pulp_rpm_client/models/variant.rb +12 -2
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/lib/pulp_rpm_client.rb +32 -12
- data/pulp_rpm_client.gemspec +1 -1
- data/spec/api/content_advisories_api_spec.rb +6 -3
- data/spec/api/content_distribution_trees_api_spec.rb +2 -2
- data/spec/api/content_modulemd_defaults_api_spec.rb +3 -3
- data/spec/api/{content_modulemd_api_spec.rb → content_modulemds_api_spec.rb} +9 -9
- data/spec/api/content_packagecategories_api_spec.rb +79 -0
- data/spec/api/content_packageenvironments_api_spec.rb +79 -0
- data/spec/api/content_packagegroups_api_spec.rb +79 -0
- data/spec/api/content_packagelangpacks_api_spec.rb +79 -0
- data/spec/api/content_packages_api_spec.rb +3 -3
- data/spec/api/content_repo_metadata_files_api_spec.rb +3 -3
- data/spec/api/distributions_rpm_api_spec.rb +3 -3
- data/spec/api/publications_rpm_api_spec.rb +3 -3
- data/spec/api/remotes_rpm_api_spec.rb +4 -17
- data/spec/api/repositories_rpm_api_spec.rb +141 -0
- data/spec/api/repositories_rpm_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/addon_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/checksum_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/image_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- data/spec/models/inline_response20014_spec.rb +59 -0
- 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 +59 -0
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/{distribution_tree_spec.rb → rpm_distribution_tree_spec.rb} +7 -7
- data/spec/models/{modulemd_defaults_spec.rb → rpm_modulemd_defaults_spec.rb} +7 -25
- data/spec/models/{modulemd_spec.rb → rpm_modulemd_spec.rb} +7 -25
- data/spec/models/{repo_metadata_file_spec.rb → rpm_package_category_spec.rb} +16 -16
- data/spec/models/rpm_package_environment_spec.rb +101 -0
- data/spec/models/rpm_package_group_spec.rb +107 -0
- data/spec/models/rpm_package_langpacks_spec.rb +47 -0
- data/spec/models/{package_spec.rb → rpm_package_spec.rb} +7 -25
- data/spec/models/rpm_repo_metadata_file_spec.rb +71 -0
- data/spec/models/{rpm_distribution_spec.rb → rpm_rpm_distribution_spec.rb} +7 -7
- data/spec/models/{rpm_publication_spec.rb → rpm_rpm_publication_spec.rb} +7 -7
- data/spec/models/{rpm_remote_spec.rb → rpm_rpm_remote_spec.rb} +11 -23
- data/spec/models/rpm_rpm_repository_spec.rb +71 -0
- data/spec/models/rpm_update_collection_spec.rb +53 -0
- data/spec/models/{update_record_spec.rb → rpm_update_record_spec.rb} +19 -7
- data/spec/models/variant_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +126 -46
- data/docs/RpmCopyApi.md +0 -70
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +0 -96
- data/spec/api/rpm_copy_api_spec.rb +0 -50
@@ -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.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -79,7 +79,7 @@ module PulpRpmClient
|
|
79
79
|
fail ArgumentError, "Missing the required parameter 'profiles' when calling ContentModulemdDefaultsApi.create"
|
80
80
|
end
|
81
81
|
# resource path
|
82
|
-
local_var_path = '/pulp/api/v3/content/rpm/
|
82
|
+
local_var_path = '/pulp/api/v3/content/rpm/modulemd_defaults/'
|
83
83
|
|
84
84
|
# query parameters
|
85
85
|
query_params = opts[:query_params] || {}
|
@@ -158,7 +158,7 @@ module PulpRpmClient
|
|
158
158
|
@api_client.config.logger.debug 'Calling API: ContentModulemdDefaultsApi.list ...'
|
159
159
|
end
|
160
160
|
# resource path
|
161
|
-
local_var_path = '/pulp/api/v3/content/rpm/
|
161
|
+
local_var_path = '/pulp/api/v3/content/rpm/modulemd_defaults/'
|
162
162
|
|
163
163
|
# query parameters
|
164
164
|
query_params = opts[:query_params] || {}
|
@@ -205,11 +205,11 @@ module PulpRpmClient
|
|
205
205
|
|
206
206
|
# Inspect a modulemd defaults
|
207
207
|
# ViewSet for Modulemd.
|
208
|
-
# @param modulemd_defaults_href [String] URI of Modulemd Defaults. e.g.: /pulp/api/v3/content/rpm/
|
208
|
+
# @param modulemd_defaults_href [String] URI of Modulemd Defaults. e.g.: /pulp/api/v3/content/rpm/modulemd_defaults/1/
|
209
209
|
# @param [Hash] opts the optional parameters
|
210
210
|
# @option opts [String] :fields A list of fields to include in the response.
|
211
211
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
212
|
-
# @return [
|
212
|
+
# @return [RpmModulemdDefaults]
|
213
213
|
def read(modulemd_defaults_href, opts = {})
|
214
214
|
data, _status_code, _headers = read_with_http_info(modulemd_defaults_href, opts)
|
215
215
|
data
|
@@ -217,11 +217,11 @@ module PulpRpmClient
|
|
217
217
|
|
218
218
|
# Inspect a modulemd defaults
|
219
219
|
# ViewSet for Modulemd.
|
220
|
-
# @param modulemd_defaults_href [String] URI of Modulemd Defaults. e.g.: /pulp/api/v3/content/rpm/
|
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
223
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
224
|
-
# @return [Array<(
|
224
|
+
# @return [Array<(RpmModulemdDefaults, Integer, Hash)>] RpmModulemdDefaults data, response status code and response headers
|
225
225
|
def read_with_http_info(modulemd_defaults_href, opts = {})
|
226
226
|
if @api_client.config.debugging
|
227
227
|
@api_client.config.logger.debug 'Calling API: ContentModulemdDefaultsApi.read ...'
|
@@ -250,7 +250,7 @@ module PulpRpmClient
|
|
250
250
|
post_body = opts[:body]
|
251
251
|
|
252
252
|
# return_type
|
253
|
-
return_type = opts[:return_type] || '
|
253
|
+
return_type = opts[:return_type] || 'RpmModulemdDefaults'
|
254
254
|
|
255
255
|
# auth_names
|
256
256
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -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.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
|
-
class
|
16
|
+
class ContentModulemdsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -58,66 +58,66 @@ module PulpRpmClient
|
|
58
58
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
59
59
|
def create_with_http_info(relative_path, name, stream, version, context, arch, artifacts, dependencies, opts = {})
|
60
60
|
if @api_client.config.debugging
|
61
|
-
@api_client.config.logger.debug 'Calling API:
|
61
|
+
@api_client.config.logger.debug 'Calling API: ContentModulemdsApi.create ...'
|
62
62
|
end
|
63
63
|
# verify the required parameter 'relative_path' is set
|
64
64
|
if @api_client.config.client_side_validation && relative_path.nil?
|
65
|
-
fail ArgumentError, "Missing the required parameter 'relative_path' when calling
|
65
|
+
fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentModulemdsApi.create"
|
66
66
|
end
|
67
67
|
if @api_client.config.client_side_validation && relative_path.to_s.length < 1
|
68
|
-
fail ArgumentError, 'invalid value for "relative_path" when calling
|
68
|
+
fail ArgumentError, 'invalid value for "relative_path" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
|
69
69
|
end
|
70
70
|
|
71
71
|
# verify the required parameter 'name' is set
|
72
72
|
if @api_client.config.client_side_validation && name.nil?
|
73
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling
|
73
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ContentModulemdsApi.create"
|
74
74
|
end
|
75
75
|
if @api_client.config.client_side_validation && name.to_s.length < 1
|
76
|
-
fail ArgumentError, 'invalid value for "name" when calling
|
76
|
+
fail ArgumentError, 'invalid value for "name" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
|
77
77
|
end
|
78
78
|
|
79
79
|
# verify the required parameter 'stream' is set
|
80
80
|
if @api_client.config.client_side_validation && stream.nil?
|
81
|
-
fail ArgumentError, "Missing the required parameter 'stream' when calling
|
81
|
+
fail ArgumentError, "Missing the required parameter 'stream' when calling ContentModulemdsApi.create"
|
82
82
|
end
|
83
83
|
if @api_client.config.client_side_validation && stream.to_s.length < 1
|
84
|
-
fail ArgumentError, 'invalid value for "stream" when calling
|
84
|
+
fail ArgumentError, 'invalid value for "stream" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
|
85
85
|
end
|
86
86
|
|
87
87
|
# verify the required parameter 'version' is set
|
88
88
|
if @api_client.config.client_side_validation && version.nil?
|
89
|
-
fail ArgumentError, "Missing the required parameter 'version' when calling
|
89
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ContentModulemdsApi.create"
|
90
90
|
end
|
91
91
|
if @api_client.config.client_side_validation && version.to_s.length < 1
|
92
|
-
fail ArgumentError, 'invalid value for "version" when calling
|
92
|
+
fail ArgumentError, 'invalid value for "version" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
|
93
93
|
end
|
94
94
|
|
95
95
|
# verify the required parameter 'context' is set
|
96
96
|
if @api_client.config.client_side_validation && context.nil?
|
97
|
-
fail ArgumentError, "Missing the required parameter 'context' when calling
|
97
|
+
fail ArgumentError, "Missing the required parameter 'context' when calling ContentModulemdsApi.create"
|
98
98
|
end
|
99
99
|
if @api_client.config.client_side_validation && context.to_s.length < 1
|
100
|
-
fail ArgumentError, 'invalid value for "context" when calling
|
100
|
+
fail ArgumentError, 'invalid value for "context" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
|
101
101
|
end
|
102
102
|
|
103
103
|
# verify the required parameter 'arch' is set
|
104
104
|
if @api_client.config.client_side_validation && arch.nil?
|
105
|
-
fail ArgumentError, "Missing the required parameter 'arch' when calling
|
105
|
+
fail ArgumentError, "Missing the required parameter 'arch' when calling ContentModulemdsApi.create"
|
106
106
|
end
|
107
107
|
if @api_client.config.client_side_validation && arch.to_s.length < 1
|
108
|
-
fail ArgumentError, 'invalid value for "arch" when calling
|
108
|
+
fail ArgumentError, 'invalid value for "arch" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
|
109
109
|
end
|
110
110
|
|
111
111
|
# verify the required parameter 'artifacts' is set
|
112
112
|
if @api_client.config.client_side_validation && artifacts.nil?
|
113
|
-
fail ArgumentError, "Missing the required parameter 'artifacts' when calling
|
113
|
+
fail ArgumentError, "Missing the required parameter 'artifacts' when calling ContentModulemdsApi.create"
|
114
114
|
end
|
115
115
|
# verify the required parameter 'dependencies' is set
|
116
116
|
if @api_client.config.client_side_validation && dependencies.nil?
|
117
|
-
fail ArgumentError, "Missing the required parameter 'dependencies' when calling
|
117
|
+
fail ArgumentError, "Missing the required parameter 'dependencies' when calling ContentModulemdsApi.create"
|
118
118
|
end
|
119
119
|
# resource path
|
120
|
-
local_var_path = '/pulp/api/v3/content/rpm/
|
120
|
+
local_var_path = '/pulp/api/v3/content/rpm/modulemds/'
|
121
121
|
|
122
122
|
# query parameters
|
123
123
|
query_params = opts[:query_params] || {}
|
@@ -164,7 +164,7 @@ module PulpRpmClient
|
|
164
164
|
|
165
165
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
166
166
|
if @api_client.config.debugging
|
167
|
-
@api_client.config.logger.debug "API called:
|
167
|
+
@api_client.config.logger.debug "API called: ContentModulemdsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
168
168
|
end
|
169
169
|
return data, status_code, headers
|
170
170
|
end
|
@@ -198,10 +198,10 @@ module PulpRpmClient
|
|
198
198
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
199
199
|
def list_with_http_info(opts = {})
|
200
200
|
if @api_client.config.debugging
|
201
|
-
@api_client.config.logger.debug 'Calling API:
|
201
|
+
@api_client.config.logger.debug 'Calling API: ContentModulemdsApi.list ...'
|
202
202
|
end
|
203
203
|
# resource path
|
204
|
-
local_var_path = '/pulp/api/v3/content/rpm/
|
204
|
+
local_var_path = '/pulp/api/v3/content/rpm/modulemds/'
|
205
205
|
|
206
206
|
# query parameters
|
207
207
|
query_params = opts[:query_params] || {}
|
@@ -241,18 +241,18 @@ module PulpRpmClient
|
|
241
241
|
|
242
242
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
243
243
|
if @api_client.config.debugging
|
244
|
-
@api_client.config.logger.debug "API called:
|
244
|
+
@api_client.config.logger.debug "API called: ContentModulemdsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
245
245
|
end
|
246
246
|
return data, status_code, headers
|
247
247
|
end
|
248
248
|
|
249
249
|
# Inspect a modulemd
|
250
250
|
# ViewSet for Modulemd.
|
251
|
-
# @param modulemd_href [String] URI of Modulemd. e.g.: /pulp/api/v3/content/rpm/
|
251
|
+
# @param modulemd_href [String] URI of Modulemd. e.g.: /pulp/api/v3/content/rpm/modulemds/1/
|
252
252
|
# @param [Hash] opts the optional parameters
|
253
253
|
# @option opts [String] :fields A list of fields to include in the response.
|
254
254
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
255
|
-
# @return [
|
255
|
+
# @return [RpmModulemd]
|
256
256
|
def read(modulemd_href, opts = {})
|
257
257
|
data, _status_code, _headers = read_with_http_info(modulemd_href, opts)
|
258
258
|
data
|
@@ -260,18 +260,18 @@ module PulpRpmClient
|
|
260
260
|
|
261
261
|
# Inspect a modulemd
|
262
262
|
# ViewSet for Modulemd.
|
263
|
-
# @param modulemd_href [String] URI of Modulemd. e.g.: /pulp/api/v3/content/rpm/
|
263
|
+
# @param modulemd_href [String] URI of Modulemd. e.g.: /pulp/api/v3/content/rpm/modulemds/1/
|
264
264
|
# @param [Hash] opts the optional parameters
|
265
265
|
# @option opts [String] :fields A list of fields to include in the response.
|
266
266
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
267
|
-
# @return [Array<(
|
267
|
+
# @return [Array<(RpmModulemd, Integer, Hash)>] RpmModulemd data, response status code and response headers
|
268
268
|
def read_with_http_info(modulemd_href, opts = {})
|
269
269
|
if @api_client.config.debugging
|
270
|
-
@api_client.config.logger.debug 'Calling API:
|
270
|
+
@api_client.config.logger.debug 'Calling API: ContentModulemdsApi.read ...'
|
271
271
|
end
|
272
272
|
# verify the required parameter 'modulemd_href' is set
|
273
273
|
if @api_client.config.client_side_validation && modulemd_href.nil?
|
274
|
-
fail ArgumentError, "Missing the required parameter 'modulemd_href' when calling
|
274
|
+
fail ArgumentError, "Missing the required parameter 'modulemd_href' when calling ContentModulemdsApi.read"
|
275
275
|
end
|
276
276
|
# resource path
|
277
277
|
local_var_path = '{modulemd_href}'.sub('{' + 'modulemd_href' + '}', CGI.escape(modulemd_href.to_s).gsub('%2F', '/'))
|
@@ -293,7 +293,7 @@ module PulpRpmClient
|
|
293
293
|
post_body = opts[:body]
|
294
294
|
|
295
295
|
# return_type
|
296
|
-
return_type = opts[:return_type] || '
|
296
|
+
return_type = opts[:return_type] || 'RpmModulemd'
|
297
297
|
|
298
298
|
# auth_names
|
299
299
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -309,7 +309,7 @@ module PulpRpmClient
|
|
309
309
|
|
310
310
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
311
311
|
if @api_client.config.debugging
|
312
|
-
@api_client.config.logger.debug "API called:
|
312
|
+
@api_client.config.logger.debug "API called: ContentModulemdsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
313
313
|
end
|
314
314
|
return data, status_code, headers
|
315
315
|
end
|
@@ -0,0 +1,227 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
class ContentPackagecategoriesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete a package category
|
23
|
+
# PackageCategory ViewSet.
|
24
|
+
# @param package_category_href [String] URI of Package Category. e.g.: /pulp/api/v3/content/rpm/packagecategories/1/
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [nil]
|
27
|
+
def delete(package_category_href, opts = {})
|
28
|
+
delete_with_http_info(package_category_href, opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Delete a package category
|
33
|
+
# PackageCategory ViewSet.
|
34
|
+
# @param package_category_href [String] URI of Package Category. e.g.: /pulp/api/v3/content/rpm/packagecategories/1/
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
|
+
def delete_with_http_info(package_category_href, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagecategoriesApi.delete ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'package_category_href' is set
|
42
|
+
if @api_client.config.client_side_validation && package_category_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'package_category_href' when calling ContentPackagecategoriesApi.delete"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '{package_category_href}'.sub('{' + 'package_category_href' + '}', CGI.escape(package_category_href.to_s).gsub('%2F', '/'))
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:body]
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:return_type]
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:auth_names] || ['Basic']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:header_params => header_params,
|
68
|
+
:query_params => query_params,
|
69
|
+
:form_params => form_params,
|
70
|
+
:body => post_body,
|
71
|
+
:auth_names => auth_names,
|
72
|
+
:return_type => return_type
|
73
|
+
)
|
74
|
+
|
75
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
76
|
+
if @api_client.config.debugging
|
77
|
+
@api_client.config.logger.debug "API called: ContentPackagecategoriesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
|
+
end
|
79
|
+
return data, status_code, headers
|
80
|
+
end
|
81
|
+
|
82
|
+
# List package categorys
|
83
|
+
# PackageCategory ViewSet.
|
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
|
88
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
89
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
90
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
91
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
92
|
+
# @return [InlineResponse2004]
|
93
|
+
def list(opts = {})
|
94
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
95
|
+
data
|
96
|
+
end
|
97
|
+
|
98
|
+
# List package categorys
|
99
|
+
# PackageCategory ViewSet.
|
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
|
104
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
105
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
106
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
107
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
108
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
109
|
+
def list_with_http_info(opts = {})
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagecategoriesApi.list ...'
|
112
|
+
end
|
113
|
+
# resource path
|
114
|
+
local_var_path = '/pulp/api/v3/content/rpm/packagecategories/'
|
115
|
+
|
116
|
+
# query parameters
|
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?
|
121
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
122
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
123
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
124
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
125
|
+
|
126
|
+
# header parameters
|
127
|
+
header_params = opts[:header_params] || {}
|
128
|
+
# HTTP header 'Accept' (if needed)
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
130
|
+
|
131
|
+
# form parameters
|
132
|
+
form_params = opts[:form_params] || {}
|
133
|
+
|
134
|
+
# http body (model)
|
135
|
+
post_body = opts[:body]
|
136
|
+
|
137
|
+
# return_type
|
138
|
+
return_type = opts[:return_type] || 'InlineResponse2004'
|
139
|
+
|
140
|
+
# auth_names
|
141
|
+
auth_names = opts[:auth_names] || ['Basic']
|
142
|
+
|
143
|
+
new_options = opts.merge(
|
144
|
+
:header_params => header_params,
|
145
|
+
:query_params => query_params,
|
146
|
+
:form_params => form_params,
|
147
|
+
:body => post_body,
|
148
|
+
:auth_names => auth_names,
|
149
|
+
:return_type => return_type
|
150
|
+
)
|
151
|
+
|
152
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
153
|
+
if @api_client.config.debugging
|
154
|
+
@api_client.config.logger.debug "API called: ContentPackagecategoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
155
|
+
end
|
156
|
+
return data, status_code, headers
|
157
|
+
end
|
158
|
+
|
159
|
+
# Inspect a package category
|
160
|
+
# PackageCategory ViewSet.
|
161
|
+
# @param package_category_href [String] URI of Package Category. e.g.: /pulp/api/v3/content/rpm/packagecategories/1/
|
162
|
+
# @param [Hash] opts the optional parameters
|
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.
|
165
|
+
# @return [RpmPackageCategory]
|
166
|
+
def read(package_category_href, opts = {})
|
167
|
+
data, _status_code, _headers = read_with_http_info(package_category_href, opts)
|
168
|
+
data
|
169
|
+
end
|
170
|
+
|
171
|
+
# Inspect a package category
|
172
|
+
# PackageCategory ViewSet.
|
173
|
+
# @param package_category_href [String] URI of Package Category. e.g.: /pulp/api/v3/content/rpm/packagecategories/1/
|
174
|
+
# @param [Hash] opts the optional parameters
|
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.
|
177
|
+
# @return [Array<(RpmPackageCategory, Integer, Hash)>] RpmPackageCategory data, response status code and response headers
|
178
|
+
def read_with_http_info(package_category_href, opts = {})
|
179
|
+
if @api_client.config.debugging
|
180
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagecategoriesApi.read ...'
|
181
|
+
end
|
182
|
+
# verify the required parameter 'package_category_href' is set
|
183
|
+
if @api_client.config.client_side_validation && package_category_href.nil?
|
184
|
+
fail ArgumentError, "Missing the required parameter 'package_category_href' when calling ContentPackagecategoriesApi.read"
|
185
|
+
end
|
186
|
+
# resource path
|
187
|
+
local_var_path = '{package_category_href}'.sub('{' + 'package_category_href' + '}', CGI.escape(package_category_href.to_s).gsub('%2F', '/'))
|
188
|
+
|
189
|
+
# query parameters
|
190
|
+
query_params = opts[:query_params] || {}
|
191
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
192
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
193
|
+
|
194
|
+
# header parameters
|
195
|
+
header_params = opts[:header_params] || {}
|
196
|
+
# HTTP header 'Accept' (if needed)
|
197
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
198
|
+
|
199
|
+
# form parameters
|
200
|
+
form_params = opts[:form_params] || {}
|
201
|
+
|
202
|
+
# http body (model)
|
203
|
+
post_body = opts[:body]
|
204
|
+
|
205
|
+
# return_type
|
206
|
+
return_type = opts[:return_type] || 'RpmPackageCategory'
|
207
|
+
|
208
|
+
# auth_names
|
209
|
+
auth_names = opts[:auth_names] || ['Basic']
|
210
|
+
|
211
|
+
new_options = opts.merge(
|
212
|
+
:header_params => header_params,
|
213
|
+
:query_params => query_params,
|
214
|
+
:form_params => form_params,
|
215
|
+
:body => post_body,
|
216
|
+
:auth_names => auth_names,
|
217
|
+
:return_type => return_type
|
218
|
+
)
|
219
|
+
|
220
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
221
|
+
if @api_client.config.debugging
|
222
|
+
@api_client.config.logger.debug "API called: ContentPackagecategoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
223
|
+
end
|
224
|
+
return data, status_code, headers
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|