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
@@ -0,0 +1,568 @@
|
|
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 RepositoriesRpmApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a rpm repository
|
23
|
+
# A ViewSet for RpmRepository.
|
24
|
+
# @param data [RpmRpmRepository]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [RpmRpmRepository]
|
27
|
+
def create(data, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a rpm repository
|
33
|
+
# A ViewSet for RpmRepository.
|
34
|
+
# @param data [RpmRpmRepository]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(RpmRpmRepository, Integer, Hash)>] RpmRpmRepository data, response status code and response headers
|
37
|
+
def create_with_http_info(data, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'data' is set
|
42
|
+
if @api_client.config.client_side_validation && data.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesRpmApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/repositories/rpm/rpm/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'RpmRpmRepository'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['Basic']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete a rpm repository
|
87
|
+
# Trigger an asynchronous task to delete a repository.
|
88
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [AsyncOperationResponse]
|
91
|
+
def delete(rpm_repository_href, opts = {})
|
92
|
+
data, _status_code, _headers = delete_with_http_info(rpm_repository_href, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Delete a rpm repository
|
97
|
+
# Trigger an asynchronous task to delete a repository.
|
98
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
|
+
def delete_with_http_info(rpm_repository_href, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.delete ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'rpm_repository_href' is set
|
106
|
+
if @api_client.config.client_side_validation && rpm_repository_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'rpm_repository_href' when calling RepositoriesRpmApi.delete"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '{rpm_repository_href}'.sub('{' + 'rpm_repository_href' + '}', CGI.escape(rpm_repository_href.to_s).gsub('%2F', '/'))
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
119
|
+
|
120
|
+
# form parameters
|
121
|
+
form_params = opts[:form_params] || {}
|
122
|
+
|
123
|
+
# http body (model)
|
124
|
+
post_body = opts[:body]
|
125
|
+
|
126
|
+
# return_type
|
127
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
128
|
+
|
129
|
+
# auth_names
|
130
|
+
auth_names = opts[:auth_names] || ['Basic']
|
131
|
+
|
132
|
+
new_options = opts.merge(
|
133
|
+
:header_params => header_params,
|
134
|
+
:query_params => query_params,
|
135
|
+
:form_params => form_params,
|
136
|
+
:body => post_body,
|
137
|
+
:auth_names => auth_names,
|
138
|
+
:return_type => return_type
|
139
|
+
)
|
140
|
+
|
141
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
|
148
|
+
# List rpm repositorys
|
149
|
+
# A ViewSet for RpmRepository.
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :name
|
152
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
154
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
155
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
156
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
157
|
+
# @return [InlineResponse20013]
|
158
|
+
def list(opts = {})
|
159
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
160
|
+
data
|
161
|
+
end
|
162
|
+
|
163
|
+
# List rpm repositorys
|
164
|
+
# A ViewSet for RpmRepository.
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @option opts [String] :name
|
167
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
168
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
169
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
170
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
171
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
172
|
+
# @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
|
173
|
+
def list_with_http_info(opts = {})
|
174
|
+
if @api_client.config.debugging
|
175
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.list ...'
|
176
|
+
end
|
177
|
+
# resource path
|
178
|
+
local_var_path = '/pulp/api/v3/repositories/rpm/rpm/'
|
179
|
+
|
180
|
+
# query parameters
|
181
|
+
query_params = opts[:query_params] || {}
|
182
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
183
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
184
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
185
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
186
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
187
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
188
|
+
|
189
|
+
# header parameters
|
190
|
+
header_params = opts[:header_params] || {}
|
191
|
+
# HTTP header 'Accept' (if needed)
|
192
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
193
|
+
|
194
|
+
# form parameters
|
195
|
+
form_params = opts[:form_params] || {}
|
196
|
+
|
197
|
+
# http body (model)
|
198
|
+
post_body = opts[:body]
|
199
|
+
|
200
|
+
# return_type
|
201
|
+
return_type = opts[:return_type] || 'InlineResponse20013'
|
202
|
+
|
203
|
+
# auth_names
|
204
|
+
auth_names = opts[:auth_names] || ['Basic']
|
205
|
+
|
206
|
+
new_options = opts.merge(
|
207
|
+
:header_params => header_params,
|
208
|
+
:query_params => query_params,
|
209
|
+
:form_params => form_params,
|
210
|
+
:body => post_body,
|
211
|
+
:auth_names => auth_names,
|
212
|
+
:return_type => return_type
|
213
|
+
)
|
214
|
+
|
215
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
216
|
+
if @api_client.config.debugging
|
217
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
218
|
+
end
|
219
|
+
return data, status_code, headers
|
220
|
+
end
|
221
|
+
|
222
|
+
# Trigger an asynchronous task to create a new repository version.
|
223
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
224
|
+
# @param data [RepositoryAddRemoveContent]
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @return [AsyncOperationResponse]
|
227
|
+
def modify(rpm_repository_href, data, opts = {})
|
228
|
+
data, _status_code, _headers = modify_with_http_info(rpm_repository_href, data, opts)
|
229
|
+
data
|
230
|
+
end
|
231
|
+
|
232
|
+
# Trigger an asynchronous task to create a new repository version.
|
233
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
234
|
+
# @param data [RepositoryAddRemoveContent]
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
237
|
+
def modify_with_http_info(rpm_repository_href, data, opts = {})
|
238
|
+
if @api_client.config.debugging
|
239
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.modify ...'
|
240
|
+
end
|
241
|
+
# verify the required parameter 'rpm_repository_href' is set
|
242
|
+
if @api_client.config.client_side_validation && rpm_repository_href.nil?
|
243
|
+
fail ArgumentError, "Missing the required parameter 'rpm_repository_href' when calling RepositoriesRpmApi.modify"
|
244
|
+
end
|
245
|
+
# verify the required parameter 'data' is set
|
246
|
+
if @api_client.config.client_side_validation && data.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesRpmApi.modify"
|
248
|
+
end
|
249
|
+
# resource path
|
250
|
+
local_var_path = '{rpm_repository_href}modify/'.sub('{' + 'rpm_repository_href' + '}', CGI.escape(rpm_repository_href.to_s).gsub('%2F', '/'))
|
251
|
+
|
252
|
+
# query parameters
|
253
|
+
query_params = opts[:query_params] || {}
|
254
|
+
|
255
|
+
# header parameters
|
256
|
+
header_params = opts[:header_params] || {}
|
257
|
+
# HTTP header 'Accept' (if needed)
|
258
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
259
|
+
# HTTP header 'Content-Type'
|
260
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = opts[:form_params] || {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
267
|
+
|
268
|
+
# return_type
|
269
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
270
|
+
|
271
|
+
# auth_names
|
272
|
+
auth_names = opts[:auth_names] || ['Basic']
|
273
|
+
|
274
|
+
new_options = opts.merge(
|
275
|
+
:header_params => header_params,
|
276
|
+
:query_params => query_params,
|
277
|
+
:form_params => form_params,
|
278
|
+
:body => post_body,
|
279
|
+
:auth_names => auth_names,
|
280
|
+
:return_type => return_type
|
281
|
+
)
|
282
|
+
|
283
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
284
|
+
if @api_client.config.debugging
|
285
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#modify\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
286
|
+
end
|
287
|
+
return data, status_code, headers
|
288
|
+
end
|
289
|
+
|
290
|
+
# Partially update a rpm repository
|
291
|
+
# A ViewSet for RpmRepository.
|
292
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
293
|
+
# @param data [RpmRpmRepository]
|
294
|
+
# @param [Hash] opts the optional parameters
|
295
|
+
# @return [RpmRpmRepository]
|
296
|
+
def partial_update(rpm_repository_href, data, opts = {})
|
297
|
+
data, _status_code, _headers = partial_update_with_http_info(rpm_repository_href, data, opts)
|
298
|
+
data
|
299
|
+
end
|
300
|
+
|
301
|
+
# Partially update a rpm repository
|
302
|
+
# A ViewSet for RpmRepository.
|
303
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
304
|
+
# @param data [RpmRpmRepository]
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @return [Array<(RpmRpmRepository, Integer, Hash)>] RpmRpmRepository data, response status code and response headers
|
307
|
+
def partial_update_with_http_info(rpm_repository_href, data, opts = {})
|
308
|
+
if @api_client.config.debugging
|
309
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.partial_update ...'
|
310
|
+
end
|
311
|
+
# verify the required parameter 'rpm_repository_href' is set
|
312
|
+
if @api_client.config.client_side_validation && rpm_repository_href.nil?
|
313
|
+
fail ArgumentError, "Missing the required parameter 'rpm_repository_href' when calling RepositoriesRpmApi.partial_update"
|
314
|
+
end
|
315
|
+
# verify the required parameter 'data' is set
|
316
|
+
if @api_client.config.client_side_validation && data.nil?
|
317
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesRpmApi.partial_update"
|
318
|
+
end
|
319
|
+
# resource path
|
320
|
+
local_var_path = '{rpm_repository_href}'.sub('{' + 'rpm_repository_href' + '}', CGI.escape(rpm_repository_href.to_s).gsub('%2F', '/'))
|
321
|
+
|
322
|
+
# query parameters
|
323
|
+
query_params = opts[:query_params] || {}
|
324
|
+
|
325
|
+
# header parameters
|
326
|
+
header_params = opts[:header_params] || {}
|
327
|
+
# HTTP header 'Accept' (if needed)
|
328
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
329
|
+
# HTTP header 'Content-Type'
|
330
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
331
|
+
|
332
|
+
# form parameters
|
333
|
+
form_params = opts[:form_params] || {}
|
334
|
+
|
335
|
+
# http body (model)
|
336
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
337
|
+
|
338
|
+
# return_type
|
339
|
+
return_type = opts[:return_type] || 'RpmRpmRepository'
|
340
|
+
|
341
|
+
# auth_names
|
342
|
+
auth_names = opts[:auth_names] || ['Basic']
|
343
|
+
|
344
|
+
new_options = opts.merge(
|
345
|
+
:header_params => header_params,
|
346
|
+
:query_params => query_params,
|
347
|
+
:form_params => form_params,
|
348
|
+
:body => post_body,
|
349
|
+
:auth_names => auth_names,
|
350
|
+
:return_type => return_type
|
351
|
+
)
|
352
|
+
|
353
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
354
|
+
if @api_client.config.debugging
|
355
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
356
|
+
end
|
357
|
+
return data, status_code, headers
|
358
|
+
end
|
359
|
+
|
360
|
+
# Inspect a rpm repository
|
361
|
+
# A ViewSet for RpmRepository.
|
362
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
363
|
+
# @param [Hash] opts the optional parameters
|
364
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
365
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
366
|
+
# @return [RpmRpmRepository]
|
367
|
+
def read(rpm_repository_href, opts = {})
|
368
|
+
data, _status_code, _headers = read_with_http_info(rpm_repository_href, opts)
|
369
|
+
data
|
370
|
+
end
|
371
|
+
|
372
|
+
# Inspect a rpm repository
|
373
|
+
# A ViewSet for RpmRepository.
|
374
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
375
|
+
# @param [Hash] opts the optional parameters
|
376
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
377
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
378
|
+
# @return [Array<(RpmRpmRepository, Integer, Hash)>] RpmRpmRepository data, response status code and response headers
|
379
|
+
def read_with_http_info(rpm_repository_href, opts = {})
|
380
|
+
if @api_client.config.debugging
|
381
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.read ...'
|
382
|
+
end
|
383
|
+
# verify the required parameter 'rpm_repository_href' is set
|
384
|
+
if @api_client.config.client_side_validation && rpm_repository_href.nil?
|
385
|
+
fail ArgumentError, "Missing the required parameter 'rpm_repository_href' when calling RepositoriesRpmApi.read"
|
386
|
+
end
|
387
|
+
# resource path
|
388
|
+
local_var_path = '{rpm_repository_href}'.sub('{' + 'rpm_repository_href' + '}', CGI.escape(rpm_repository_href.to_s).gsub('%2F', '/'))
|
389
|
+
|
390
|
+
# query parameters
|
391
|
+
query_params = opts[:query_params] || {}
|
392
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
393
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
394
|
+
|
395
|
+
# header parameters
|
396
|
+
header_params = opts[:header_params] || {}
|
397
|
+
# HTTP header 'Accept' (if needed)
|
398
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
399
|
+
|
400
|
+
# form parameters
|
401
|
+
form_params = opts[:form_params] || {}
|
402
|
+
|
403
|
+
# http body (model)
|
404
|
+
post_body = opts[:body]
|
405
|
+
|
406
|
+
# return_type
|
407
|
+
return_type = opts[:return_type] || 'RpmRpmRepository'
|
408
|
+
|
409
|
+
# auth_names
|
410
|
+
auth_names = opts[:auth_names] || ['Basic']
|
411
|
+
|
412
|
+
new_options = opts.merge(
|
413
|
+
:header_params => header_params,
|
414
|
+
:query_params => query_params,
|
415
|
+
:form_params => form_params,
|
416
|
+
:body => post_body,
|
417
|
+
:auth_names => auth_names,
|
418
|
+
:return_type => return_type
|
419
|
+
)
|
420
|
+
|
421
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
422
|
+
if @api_client.config.debugging
|
423
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
424
|
+
end
|
425
|
+
return data, status_code, headers
|
426
|
+
end
|
427
|
+
|
428
|
+
# Sync from remote
|
429
|
+
# Trigger an asynchronous task to sync RPM content.
|
430
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
431
|
+
# @param data [RepositorySyncURL]
|
432
|
+
# @param [Hash] opts the optional parameters
|
433
|
+
# @return [AsyncOperationResponse]
|
434
|
+
def sync(rpm_repository_href, data, opts = {})
|
435
|
+
data, _status_code, _headers = sync_with_http_info(rpm_repository_href, data, opts)
|
436
|
+
data
|
437
|
+
end
|
438
|
+
|
439
|
+
# Sync from remote
|
440
|
+
# Trigger an asynchronous task to sync RPM content.
|
441
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
442
|
+
# @param data [RepositorySyncURL]
|
443
|
+
# @param [Hash] opts the optional parameters
|
444
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
445
|
+
def sync_with_http_info(rpm_repository_href, data, opts = {})
|
446
|
+
if @api_client.config.debugging
|
447
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.sync ...'
|
448
|
+
end
|
449
|
+
# verify the required parameter 'rpm_repository_href' is set
|
450
|
+
if @api_client.config.client_side_validation && rpm_repository_href.nil?
|
451
|
+
fail ArgumentError, "Missing the required parameter 'rpm_repository_href' when calling RepositoriesRpmApi.sync"
|
452
|
+
end
|
453
|
+
# verify the required parameter 'data' is set
|
454
|
+
if @api_client.config.client_side_validation && data.nil?
|
455
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesRpmApi.sync"
|
456
|
+
end
|
457
|
+
# resource path
|
458
|
+
local_var_path = '{rpm_repository_href}sync/'.sub('{' + 'rpm_repository_href' + '}', CGI.escape(rpm_repository_href.to_s).gsub('%2F', '/'))
|
459
|
+
|
460
|
+
# query parameters
|
461
|
+
query_params = opts[:query_params] || {}
|
462
|
+
|
463
|
+
# header parameters
|
464
|
+
header_params = opts[:header_params] || {}
|
465
|
+
# HTTP header 'Accept' (if needed)
|
466
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
467
|
+
# HTTP header 'Content-Type'
|
468
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
469
|
+
|
470
|
+
# form parameters
|
471
|
+
form_params = opts[:form_params] || {}
|
472
|
+
|
473
|
+
# http body (model)
|
474
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
475
|
+
|
476
|
+
# return_type
|
477
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
478
|
+
|
479
|
+
# auth_names
|
480
|
+
auth_names = opts[:auth_names] || ['Basic']
|
481
|
+
|
482
|
+
new_options = opts.merge(
|
483
|
+
:header_params => header_params,
|
484
|
+
:query_params => query_params,
|
485
|
+
:form_params => form_params,
|
486
|
+
:body => post_body,
|
487
|
+
:auth_names => auth_names,
|
488
|
+
:return_type => return_type
|
489
|
+
)
|
490
|
+
|
491
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
492
|
+
if @api_client.config.debugging
|
493
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
494
|
+
end
|
495
|
+
return data, status_code, headers
|
496
|
+
end
|
497
|
+
|
498
|
+
# Update a rpm repository
|
499
|
+
# Trigger an asynchronous task to update a repository.
|
500
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
501
|
+
# @param data [RpmRpmRepository]
|
502
|
+
# @param [Hash] opts the optional parameters
|
503
|
+
# @return [AsyncOperationResponse]
|
504
|
+
def update(rpm_repository_href, data, opts = {})
|
505
|
+
data, _status_code, _headers = update_with_http_info(rpm_repository_href, data, opts)
|
506
|
+
data
|
507
|
+
end
|
508
|
+
|
509
|
+
# Update a rpm repository
|
510
|
+
# Trigger an asynchronous task to update a repository.
|
511
|
+
# @param rpm_repository_href [String] URI of Rpm Repository. e.g.: /pulp/api/v3/repositories/rpm/rpm/1/
|
512
|
+
# @param data [RpmRpmRepository]
|
513
|
+
# @param [Hash] opts the optional parameters
|
514
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
515
|
+
def update_with_http_info(rpm_repository_href, data, opts = {})
|
516
|
+
if @api_client.config.debugging
|
517
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.update ...'
|
518
|
+
end
|
519
|
+
# verify the required parameter 'rpm_repository_href' is set
|
520
|
+
if @api_client.config.client_side_validation && rpm_repository_href.nil?
|
521
|
+
fail ArgumentError, "Missing the required parameter 'rpm_repository_href' when calling RepositoriesRpmApi.update"
|
522
|
+
end
|
523
|
+
# verify the required parameter 'data' is set
|
524
|
+
if @api_client.config.client_side_validation && data.nil?
|
525
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesRpmApi.update"
|
526
|
+
end
|
527
|
+
# resource path
|
528
|
+
local_var_path = '{rpm_repository_href}'.sub('{' + 'rpm_repository_href' + '}', CGI.escape(rpm_repository_href.to_s).gsub('%2F', '/'))
|
529
|
+
|
530
|
+
# query parameters
|
531
|
+
query_params = opts[:query_params] || {}
|
532
|
+
|
533
|
+
# header parameters
|
534
|
+
header_params = opts[:header_params] || {}
|
535
|
+
# HTTP header 'Accept' (if needed)
|
536
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
537
|
+
# HTTP header 'Content-Type'
|
538
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
539
|
+
|
540
|
+
# form parameters
|
541
|
+
form_params = opts[:form_params] || {}
|
542
|
+
|
543
|
+
# http body (model)
|
544
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
545
|
+
|
546
|
+
# return_type
|
547
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
548
|
+
|
549
|
+
# auth_names
|
550
|
+
auth_names = opts[:auth_names] || ['Basic']
|
551
|
+
|
552
|
+
new_options = opts.merge(
|
553
|
+
:header_params => header_params,
|
554
|
+
:query_params => query_params,
|
555
|
+
:form_params => form_params,
|
556
|
+
:body => post_body,
|
557
|
+
:auth_names => auth_names,
|
558
|
+
:return_type => return_type
|
559
|
+
)
|
560
|
+
|
561
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
562
|
+
if @api_client.config.debugging
|
563
|
+
@api_client.config.logger.debug "API called: RepositoriesRpmApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
564
|
+
end
|
565
|
+
return data, status_code, headers
|
566
|
+
end
|
567
|
+
end
|
568
|
+
end
|