pulp_rpm_client 3.0.0b4 → 3.0.0b5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -6
- data/docs/Addon.md +27 -0
- data/docs/Artifact.md +35 -0
- data/docs/Checksum.md +19 -0
- data/docs/ContentAdvisoriesApi.md +12 -6
- data/docs/ContentPackagesApi.md +12 -6
- data/docs/DistributionTree.md +53 -0
- data/docs/DistributionTreesDistributionTreesApi.md +179 -0
- data/docs/DistributionsRpmApi.md +14 -8
- data/docs/Image.md +23 -0
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +4 -4
- data/docs/InlineResponse2003.md +4 -4
- data/docs/InlineResponse2004.md +4 -4
- data/docs/InlineResponse2005.md +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/Package.md +10 -8
- data/docs/PublicationsRpmApi.md +14 -8
- data/docs/RemotesRpmApi.md +14 -8
- data/docs/RepoMetadataFile.md +31 -0
- data/docs/RepoMetadataFilesRepoMetadataFilesApi.md +179 -0
- data/docs/Variant.md +37 -0
- data/git_push.sh +10 -7
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +15 -9
- data/lib/pulp_rpm_client/api/content_packages_api.rb +15 -9
- data/lib/pulp_rpm_client/api/distribution_trees_distribution_trees_api.rb +212 -0
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +21 -15
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +19 -13
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +22 -16
- data/lib/pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api.rb +212 -0
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +2 -2
- data/lib/pulp_rpm_client/api/rpm_upload_api.rb +2 -2
- data/lib/pulp_rpm_client/api_client.rb +77 -62
- data/lib/pulp_rpm_client/api_error.rb +1 -1
- data/lib/pulp_rpm_client/configuration.rb +13 -21
- data/lib/pulp_rpm_client/models/addon.rb +372 -0
- data/lib/pulp_rpm_client/models/artifact.rb +376 -0
- data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_rpm_client/models/checksum.rb +255 -0
- data/lib/pulp_rpm_client/models/distribution_tree.rb +660 -0
- data/lib/pulp_rpm_client/models/image.rb +303 -0
- data/lib/pulp_rpm_client/models/inline_response200.rb +11 -11
- data/lib/pulp_rpm_client/models/inline_response2001.rb +11 -11
- data/lib/pulp_rpm_client/models/inline_response2002.rb +12 -12
- data/lib/pulp_rpm_client/models/inline_response2003.rb +12 -12
- data/lib/pulp_rpm_client/models/inline_response2004.rb +12 -12
- data/lib/pulp_rpm_client/models/inline_response2005.rb +235 -0
- data/lib/pulp_rpm_client/models/inline_response2006.rb +235 -0
- data/lib/pulp_rpm_client/models/package.rb +69 -40
- data/lib/pulp_rpm_client/models/repo_metadata_file.rb +381 -0
- data/lib/pulp_rpm_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_distribution.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_publication.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/update_record.rb +1 -1
- data/lib/pulp_rpm_client/models/variant.rb +542 -0
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/lib/pulp_rpm_client.rb +12 -1
- data/pulp_rpm_client.gemspec +3 -9
- data/spec/api/content_advisories_api_spec.rb +5 -3
- data/spec/api/content_packages_api_spec.rb +5 -3
- data/spec/api/distribution_trees_distribution_trees_api_spec.rb +74 -0
- data/spec/api/distributions_rpm_api_spec.rb +6 -4
- data/spec/api/publications_rpm_api_spec.rb +6 -4
- data/spec/api/remotes_rpm_api_spec.rb +6 -4
- data/spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb +74 -0
- data/spec/api/rpm_copy_api_spec.rb +1 -1
- data/spec/api/rpm_upload_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/addon_spec.rb +71 -0
- data/spec/models/artifact_spec.rb +95 -0
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/checksum_spec.rb +47 -0
- data/spec/models/distribution_tree_spec.rb +149 -0
- data/spec/models/image_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response2002_spec.rb +4 -4
- data/spec/models/inline_response2003_spec.rb +4 -4
- data/spec/models/inline_response2004_spec.rb +4 -4
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/package_spec.rb +16 -10
- data/spec/models/repo_metadata_file_spec.rb +83 -0
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/rpm_distribution_spec.rb +1 -1
- data/spec/models/rpm_publication_spec.rb +1 -1
- data/spec/models/rpm_remote_spec.rb +1 -1
- data/spec/models/update_record_spec.rb +1 -1
- data/spec/models/variant_spec.rb +101 -0
- data/spec/spec_helper.rb +1 -1
- metadata +50 -133
- data/Gemfile.lock +0 -79
@@ -6,11 +6,11 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
16
|
class ContentAdvisoriesApi
|
@@ -97,8 +97,9 @@ module PulpRpmClient
|
|
97
97
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
98
98
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
99
99
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
100
|
-
# @option opts [Integer] :
|
101
|
-
# @option opts [Integer] :
|
100
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
101
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
102
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
102
103
|
# @return [InlineResponse200]
|
103
104
|
def list(opts = {})
|
104
105
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -119,8 +120,9 @@ module PulpRpmClient
|
|
119
120
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
120
121
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
121
122
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
122
|
-
# @option opts [Integer] :
|
123
|
-
# @option opts [Integer] :
|
123
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
124
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
125
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
124
126
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
125
127
|
def list_with_http_info(opts = {})
|
126
128
|
if @api_client.config.debugging
|
@@ -142,8 +144,9 @@ module PulpRpmClient
|
|
142
144
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
143
145
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
144
146
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
145
|
-
query_params[:'
|
146
|
-
query_params[:'
|
147
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
148
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
149
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
147
150
|
|
148
151
|
# header parameters
|
149
152
|
header_params = opts[:header_params] || {}
|
@@ -182,6 +185,7 @@ module PulpRpmClient
|
|
182
185
|
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
183
186
|
# @param update_record_href [String] URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
|
184
187
|
# @param [Hash] opts the optional parameters
|
188
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
185
189
|
# @return [UpdateRecord]
|
186
190
|
def read(update_record_href, opts = {})
|
187
191
|
data, _status_code, _headers = read_with_http_info(update_record_href, opts)
|
@@ -192,6 +196,7 @@ module PulpRpmClient
|
|
192
196
|
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
193
197
|
# @param update_record_href [String] URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
|
194
198
|
# @param [Hash] opts the optional parameters
|
199
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
195
200
|
# @return [Array<(UpdateRecord, Integer, Hash)>] UpdateRecord data, response status code and response headers
|
196
201
|
def read_with_http_info(update_record_href, opts = {})
|
197
202
|
if @api_client.config.debugging
|
@@ -202,10 +207,11 @@ module PulpRpmClient
|
|
202
207
|
fail ArgumentError, "Missing the required parameter 'update_record_href' when calling ContentAdvisoriesApi.read"
|
203
208
|
end
|
204
209
|
# resource path
|
205
|
-
local_var_path = '{update_record_href}'.sub('{' + 'update_record_href' + '}', update_record_href.to_s)
|
210
|
+
local_var_path = '{update_record_href}'.sub('{' + 'update_record_href' + '}', CGI.escape(update_record_href.to_s).gsub('%2F', '/'))
|
206
211
|
|
207
212
|
# query parameters
|
208
213
|
query_params = opts[:query_params] || {}
|
214
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
209
215
|
|
210
216
|
# header parameters
|
211
217
|
header_params = opts[:header_params] || {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
16
|
class ContentPackagesApi
|
@@ -103,8 +103,9 @@ module PulpRpmClient
|
|
103
103
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
104
104
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
105
105
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
106
|
-
# @option opts [Integer] :
|
107
|
-
# @option opts [Integer] :
|
106
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
107
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
108
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
108
109
|
# @return [InlineResponse2001]
|
109
110
|
def list(opts = {})
|
110
111
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -131,8 +132,9 @@ module PulpRpmClient
|
|
131
132
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
132
133
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
133
134
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
134
|
-
# @option opts [Integer] :
|
135
|
-
# @option opts [Integer] :
|
135
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
136
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
137
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
136
138
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
137
139
|
def list_with_http_info(opts = {})
|
138
140
|
if @api_client.config.debugging
|
@@ -160,8 +162,9 @@ module PulpRpmClient
|
|
160
162
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
161
163
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
162
164
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
163
|
-
query_params[:'
|
164
|
-
query_params[:'
|
165
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
166
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
167
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
165
168
|
|
166
169
|
# header parameters
|
167
170
|
header_params = opts[:header_params] || {}
|
@@ -200,6 +203,7 @@ module PulpRpmClient
|
|
200
203
|
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
|
201
204
|
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
202
205
|
# @param [Hash] opts the optional parameters
|
206
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
203
207
|
# @return [Package]
|
204
208
|
def read(package_href, opts = {})
|
205
209
|
data, _status_code, _headers = read_with_http_info(package_href, opts)
|
@@ -210,6 +214,7 @@ module PulpRpmClient
|
|
210
214
|
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
|
211
215
|
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
212
216
|
# @param [Hash] opts the optional parameters
|
217
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
213
218
|
# @return [Array<(Package, Integer, Hash)>] Package data, response status code and response headers
|
214
219
|
def read_with_http_info(package_href, opts = {})
|
215
220
|
if @api_client.config.debugging
|
@@ -220,10 +225,11 @@ module PulpRpmClient
|
|
220
225
|
fail ArgumentError, "Missing the required parameter 'package_href' when calling ContentPackagesApi.read"
|
221
226
|
end
|
222
227
|
# resource path
|
223
|
-
local_var_path = '{package_href}'.sub('{' + 'package_href' + '}', package_href.to_s)
|
228
|
+
local_var_path = '{package_href}'.sub('{' + 'package_href' + '}', CGI.escape(package_href.to_s).gsub('%2F', '/'))
|
224
229
|
|
225
230
|
# query parameters
|
226
231
|
query_params = opts[:query_params] || {}
|
232
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
227
233
|
|
228
234
|
# header parameters
|
229
235
|
header_params = opts[:header_params] || {}
|
@@ -0,0 +1,212 @@
|
|
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.1.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
class DistributionTreesDistributionTreesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete a distribution tree
|
23
|
+
# Distribution Tree Viewset.
|
24
|
+
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/distribution_trees/rpm/distribution_trees/1/
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [nil]
|
27
|
+
def delete(distribution_tree_href, opts = {})
|
28
|
+
delete_with_http_info(distribution_tree_href, opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Delete a distribution tree
|
33
|
+
# Distribution Tree Viewset.
|
34
|
+
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/distribution_trees/rpm/distribution_trees/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(distribution_tree_href, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: DistributionTreesDistributionTreesApi.delete ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'distribution_tree_href' is set
|
42
|
+
if @api_client.config.client_side_validation && distribution_tree_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'distribution_tree_href' when calling DistributionTreesDistributionTreesApi.delete"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '{distribution_tree_href}'.sub('{' + 'distribution_tree_href' + '}', CGI.escape(distribution_tree_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: DistributionTreesDistributionTreesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
|
+
end
|
79
|
+
return data, status_code, headers
|
80
|
+
end
|
81
|
+
|
82
|
+
# List distribution trees
|
83
|
+
# Distribution Tree Viewset.
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
86
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
87
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
88
|
+
# @return [InlineResponse2002]
|
89
|
+
def list(opts = {})
|
90
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
91
|
+
data
|
92
|
+
end
|
93
|
+
|
94
|
+
# List distribution trees
|
95
|
+
# Distribution Tree Viewset.
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
98
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
99
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
100
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
101
|
+
def list_with_http_info(opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: DistributionTreesDistributionTreesApi.list ...'
|
104
|
+
end
|
105
|
+
# resource path
|
106
|
+
local_var_path = '/pulp/api/v3/distribution_trees/rpm/distribution_trees/'
|
107
|
+
|
108
|
+
# query parameters
|
109
|
+
query_params = opts[:query_params] || {}
|
110
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
111
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
112
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
113
|
+
|
114
|
+
# header parameters
|
115
|
+
header_params = opts[:header_params] || {}
|
116
|
+
# HTTP header 'Accept' (if needed)
|
117
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
118
|
+
|
119
|
+
# form parameters
|
120
|
+
form_params = opts[:form_params] || {}
|
121
|
+
|
122
|
+
# http body (model)
|
123
|
+
post_body = opts[:body]
|
124
|
+
|
125
|
+
# return_type
|
126
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
127
|
+
|
128
|
+
# auth_names
|
129
|
+
auth_names = opts[:auth_names] || ['Basic']
|
130
|
+
|
131
|
+
new_options = opts.merge(
|
132
|
+
:header_params => header_params,
|
133
|
+
:query_params => query_params,
|
134
|
+
:form_params => form_params,
|
135
|
+
:body => post_body,
|
136
|
+
:auth_names => auth_names,
|
137
|
+
:return_type => return_type
|
138
|
+
)
|
139
|
+
|
140
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
141
|
+
if @api_client.config.debugging
|
142
|
+
@api_client.config.logger.debug "API called: DistributionTreesDistributionTreesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
143
|
+
end
|
144
|
+
return data, status_code, headers
|
145
|
+
end
|
146
|
+
|
147
|
+
# Inspect a distribution tree
|
148
|
+
# Distribution Tree Viewset.
|
149
|
+
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/distribution_trees/rpm/distribution_trees/1/
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
152
|
+
# @return [DistributionTree]
|
153
|
+
def read(distribution_tree_href, opts = {})
|
154
|
+
data, _status_code, _headers = read_with_http_info(distribution_tree_href, opts)
|
155
|
+
data
|
156
|
+
end
|
157
|
+
|
158
|
+
# Inspect a distribution tree
|
159
|
+
# Distribution Tree Viewset.
|
160
|
+
# @param distribution_tree_href [String] URI of Distribution Tree. e.g.: /pulp/api/v3/distribution_trees/rpm/distribution_trees/1/
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
163
|
+
# @return [Array<(DistributionTree, Integer, Hash)>] DistributionTree data, response status code and response headers
|
164
|
+
def read_with_http_info(distribution_tree_href, opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug 'Calling API: DistributionTreesDistributionTreesApi.read ...'
|
167
|
+
end
|
168
|
+
# verify the required parameter 'distribution_tree_href' is set
|
169
|
+
if @api_client.config.client_side_validation && distribution_tree_href.nil?
|
170
|
+
fail ArgumentError, "Missing the required parameter 'distribution_tree_href' when calling DistributionTreesDistributionTreesApi.read"
|
171
|
+
end
|
172
|
+
# resource path
|
173
|
+
local_var_path = '{distribution_tree_href}'.sub('{' + 'distribution_tree_href' + '}', CGI.escape(distribution_tree_href.to_s).gsub('%2F', '/'))
|
174
|
+
|
175
|
+
# query parameters
|
176
|
+
query_params = opts[:query_params] || {}
|
177
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
178
|
+
|
179
|
+
# header parameters
|
180
|
+
header_params = opts[:header_params] || {}
|
181
|
+
# HTTP header 'Accept' (if needed)
|
182
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
183
|
+
|
184
|
+
# form parameters
|
185
|
+
form_params = opts[:form_params] || {}
|
186
|
+
|
187
|
+
# http body (model)
|
188
|
+
post_body = opts[:body]
|
189
|
+
|
190
|
+
# return_type
|
191
|
+
return_type = opts[:return_type] || 'DistributionTree'
|
192
|
+
|
193
|
+
# auth_names
|
194
|
+
auth_names = opts[:auth_names] || ['Basic']
|
195
|
+
|
196
|
+
new_options = opts.merge(
|
197
|
+
:header_params => header_params,
|
198
|
+
:query_params => query_params,
|
199
|
+
:form_params => form_params,
|
200
|
+
:body => post_body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => return_type
|
203
|
+
)
|
204
|
+
|
205
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
206
|
+
if @api_client.config.debugging
|
207
|
+
@api_client.config.logger.debug "API called: DistributionTreesDistributionTreesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
208
|
+
end
|
209
|
+
return data, status_code, headers
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
@@ -6,11 +6,11 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
16
|
class DistributionsRpmApi
|
@@ -107,7 +107,7 @@ module PulpRpmClient
|
|
107
107
|
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling DistributionsRpmApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', rpm_distribution_href.to_s)
|
110
|
+
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', CGI.escape(rpm_distribution_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -154,9 +154,10 @@ module PulpRpmClient
|
|
154
154
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
155
155
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
156
156
|
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
157
|
-
# @option opts [Integer] :
|
158
|
-
# @option opts [Integer] :
|
159
|
-
# @
|
157
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
158
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
160
|
+
# @return [InlineResponse2003]
|
160
161
|
def list(opts = {})
|
161
162
|
data, _status_code, _headers = list_with_http_info(opts)
|
162
163
|
data
|
@@ -171,9 +172,10 @@ module PulpRpmClient
|
|
171
172
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
172
173
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
173
174
|
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
174
|
-
# @option opts [Integer] :
|
175
|
-
# @option opts [Integer] :
|
176
|
-
# @
|
175
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
176
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
177
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
178
|
+
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
177
179
|
def list_with_http_info(opts = {})
|
178
180
|
if @api_client.config.debugging
|
179
181
|
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.list ...'
|
@@ -189,8 +191,9 @@ module PulpRpmClient
|
|
189
191
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
190
192
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
191
193
|
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
192
|
-
query_params[:'
|
193
|
-
query_params[:'
|
194
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
195
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
196
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
194
197
|
|
195
198
|
# header parameters
|
196
199
|
header_params = opts[:header_params] || {}
|
@@ -204,7 +207,7 @@ module PulpRpmClient
|
|
204
207
|
post_body = opts[:body]
|
205
208
|
|
206
209
|
# return_type
|
207
|
-
return_type = opts[:return_type] || '
|
210
|
+
return_type = opts[:return_type] || 'InlineResponse2003'
|
208
211
|
|
209
212
|
# auth_names
|
210
213
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -255,7 +258,7 @@ module PulpRpmClient
|
|
255
258
|
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsRpmApi.partial_update"
|
256
259
|
end
|
257
260
|
# resource path
|
258
|
-
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', rpm_distribution_href.to_s)
|
261
|
+
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', CGI.escape(rpm_distribution_href.to_s).gsub('%2F', '/'))
|
259
262
|
|
260
263
|
# query parameters
|
261
264
|
query_params = opts[:query_params] || {}
|
@@ -299,6 +302,7 @@ module PulpRpmClient
|
|
299
302
|
# ViewSet for RPM Distributions.
|
300
303
|
# @param rpm_distribution_href [String] URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
301
304
|
# @param [Hash] opts the optional parameters
|
305
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
302
306
|
# @return [RpmDistribution]
|
303
307
|
def read(rpm_distribution_href, opts = {})
|
304
308
|
data, _status_code, _headers = read_with_http_info(rpm_distribution_href, opts)
|
@@ -309,6 +313,7 @@ module PulpRpmClient
|
|
309
313
|
# ViewSet for RPM Distributions.
|
310
314
|
# @param rpm_distribution_href [String] URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
311
315
|
# @param [Hash] opts the optional parameters
|
316
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
312
317
|
# @return [Array<(RpmDistribution, Integer, Hash)>] RpmDistribution data, response status code and response headers
|
313
318
|
def read_with_http_info(rpm_distribution_href, opts = {})
|
314
319
|
if @api_client.config.debugging
|
@@ -319,10 +324,11 @@ module PulpRpmClient
|
|
319
324
|
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling DistributionsRpmApi.read"
|
320
325
|
end
|
321
326
|
# resource path
|
322
|
-
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', rpm_distribution_href.to_s)
|
327
|
+
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', CGI.escape(rpm_distribution_href.to_s).gsub('%2F', '/'))
|
323
328
|
|
324
329
|
# query parameters
|
325
330
|
query_params = opts[:query_params] || {}
|
331
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
326
332
|
|
327
333
|
# header parameters
|
328
334
|
header_params = opts[:header_params] || {}
|
@@ -387,7 +393,7 @@ module PulpRpmClient
|
|
387
393
|
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsRpmApi.update"
|
388
394
|
end
|
389
395
|
# resource path
|
390
|
-
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', rpm_distribution_href.to_s)
|
396
|
+
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', CGI.escape(rpm_distribution_href.to_s).gsub('%2F', '/'))
|
391
397
|
|
392
398
|
# query parameters
|
393
399
|
query_params = opts[:query_params] || {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
16
|
class PublicationsRpmApi
|
@@ -107,7 +107,7 @@ module PulpRpmClient
|
|
107
107
|
fail ArgumentError, "Missing the required parameter 'rpm_publication_href' when calling PublicationsRpmApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{rpm_publication_href}'.sub('{' + 'rpm_publication_href' + '}', rpm_publication_href.to_s)
|
110
|
+
local_var_path = '{rpm_publication_href}'.sub('{' + 'rpm_publication_href' + '}', CGI.escape(rpm_publication_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -147,9 +147,10 @@ module PulpRpmClient
|
|
147
147
|
# ViewSet for Rpm Publications.
|
148
148
|
# @param [Hash] opts the optional parameters
|
149
149
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
150
|
-
# @option opts [Integer] :
|
151
|
-
# @option opts [Integer] :
|
152
|
-
# @
|
150
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
151
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
152
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
153
|
+
# @return [InlineResponse2004]
|
153
154
|
def list(opts = {})
|
154
155
|
data, _status_code, _headers = list_with_http_info(opts)
|
155
156
|
data
|
@@ -159,9 +160,10 @@ module PulpRpmClient
|
|
159
160
|
# ViewSet for Rpm Publications.
|
160
161
|
# @param [Hash] opts the optional parameters
|
161
162
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
162
|
-
# @option opts [Integer] :
|
163
|
-
# @option opts [Integer] :
|
164
|
-
# @
|
163
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
164
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
165
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
166
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
165
167
|
def list_with_http_info(opts = {})
|
166
168
|
if @api_client.config.debugging
|
167
169
|
@api_client.config.logger.debug 'Calling API: PublicationsRpmApi.list ...'
|
@@ -172,8 +174,9 @@ module PulpRpmClient
|
|
172
174
|
# query parameters
|
173
175
|
query_params = opts[:query_params] || {}
|
174
176
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
175
|
-
query_params[:'
|
176
|
-
query_params[:'
|
177
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
178
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
179
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
177
180
|
|
178
181
|
# header parameters
|
179
182
|
header_params = opts[:header_params] || {}
|
@@ -187,7 +190,7 @@ module PulpRpmClient
|
|
187
190
|
post_body = opts[:body]
|
188
191
|
|
189
192
|
# return_type
|
190
|
-
return_type = opts[:return_type] || '
|
193
|
+
return_type = opts[:return_type] || 'InlineResponse2004'
|
191
194
|
|
192
195
|
# auth_names
|
193
196
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -212,6 +215,7 @@ module PulpRpmClient
|
|
212
215
|
# ViewSet for Rpm Publications.
|
213
216
|
# @param rpm_publication_href [String] URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
|
214
217
|
# @param [Hash] opts the optional parameters
|
218
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
215
219
|
# @return [RpmPublication]
|
216
220
|
def read(rpm_publication_href, opts = {})
|
217
221
|
data, _status_code, _headers = read_with_http_info(rpm_publication_href, opts)
|
@@ -222,6 +226,7 @@ module PulpRpmClient
|
|
222
226
|
# ViewSet for Rpm Publications.
|
223
227
|
# @param rpm_publication_href [String] URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
|
224
228
|
# @param [Hash] opts the optional parameters
|
229
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
225
230
|
# @return [Array<(RpmPublication, Integer, Hash)>] RpmPublication data, response status code and response headers
|
226
231
|
def read_with_http_info(rpm_publication_href, opts = {})
|
227
232
|
if @api_client.config.debugging
|
@@ -232,10 +237,11 @@ module PulpRpmClient
|
|
232
237
|
fail ArgumentError, "Missing the required parameter 'rpm_publication_href' when calling PublicationsRpmApi.read"
|
233
238
|
end
|
234
239
|
# resource path
|
235
|
-
local_var_path = '{rpm_publication_href}'.sub('{' + 'rpm_publication_href' + '}', rpm_publication_href.to_s)
|
240
|
+
local_var_path = '{rpm_publication_href}'.sub('{' + 'rpm_publication_href' + '}', CGI.escape(rpm_publication_href.to_s).gsub('%2F', '/'))
|
236
241
|
|
237
242
|
# query parameters
|
238
243
|
query_params = opts[:query_params] || {}
|
244
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
239
245
|
|
240
246
|
# header parameters
|
241
247
|
header_params = opts[:header_params] || {}
|