pulp_python_client 3.0.0b10 → 3.0.0b11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +46 -33
- data/docs/ContentPackagesApi.md +52 -52
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsPypiApi.md +108 -60
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/PatchedpythonPythonDistribution.md +23 -0
- data/docs/PatchedpythonPythonRemote.md +43 -0
- data/docs/PatchedpythonPythonRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsPypiApi.md +40 -40
- data/docs/PythonBanderRemote.md +19 -0
- data/docs/PythonPythonDistribution.md +1 -7
- data/docs/PythonPythonDistributionResponse.md +29 -0
- data/docs/PythonPythonPackageContent.md +7 -15
- data/docs/PythonPythonPackageContentResponse.md +69 -0
- data/docs/PythonPythonPublication.md +2 -8
- data/docs/PythonPythonPublicationResponse.md +25 -0
- data/docs/PythonPythonRemote.md +4 -10
- data/docs/PythonPythonRemoteResponse.md +49 -0
- data/docs/PythonPythonRepository.md +4 -10
- data/docs/PythonPythonRepositoryResponse.md +29 -0
- data/docs/RemotesPythonApi.md +129 -69
- data/docs/RepositoriesPythonApi.md +97 -73
- data/docs/RepositoriesPythonVersionsApi.md +94 -62
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/lib/pulp_python_client.rb +14 -2
- data/lib/pulp_python_client/api/content_packages_api.rb +70 -70
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +153 -90
- data/lib/pulp_python_client/api/publications_pypi_api.rb +59 -59
- data/lib/pulp_python_client/api/remotes_python_api.rb +185 -108
- data/lib/pulp_python_client/api/repositories_python_api.rb +145 -118
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +137 -92
- data/lib/pulp_python_client/api_client.rb +2 -2
- data/lib/pulp_python_client/api_error.rb +2 -2
- data/lib/pulp_python_client/configuration.rb +3 -3
- data/lib/pulp_python_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_python_client/models/content_summary.rb +9 -15
- data/lib/pulp_python_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_python_client/models/inline_response200.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +240 -0
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +359 -0
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +229 -0
- data/lib/pulp_python_client/models/policy_enum.rb +37 -0
- data/lib/pulp_python_client/models/python_bander_remote.rb +228 -0
- data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +279 -0
- data/lib/pulp_python_client/models/python_python_package_content.rb +28 -136
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +467 -0
- data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
- data/lib/pulp_python_client/models/python_python_publication_response.rb +248 -0
- data/lib/pulp_python_client/models/python_python_remote.rb +7 -199
- data/lib/pulp_python_client/models/python_python_remote_response.rb +398 -0
- data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
- data/lib/pulp_python_client/models/python_python_repository_response.rb +271 -0
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_python_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_python_client/models/repository_version.rb +7 -43
- data/lib/pulp_python_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_python_client/version.rb +3 -3
- data/pulp_python_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +24 -24
- data/spec/api/distributions_pypi_api_spec.rb +39 -18
- data/spec/api/publications_pypi_api_spec.rb +14 -14
- data/spec/api/remotes_python_api_spec.rb +49 -22
- data/spec/api/repositories_python_api_spec.rb +28 -19
- data/spec/api/repositories_python_versions_api_spec.rb +38 -23
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedpython_python_distribution_spec.rb +59 -0
- data/spec/models/patchedpython_python_remote_spec.rb +119 -0
- data/spec/models/patchedpython_python_repository_spec.rb +53 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/python_bander_remote_spec.rb +47 -0
- data/spec/models/python_python_distribution_response_spec.rb +77 -0
- data/spec/models/python_python_distribution_spec.rb +2 -20
- data/spec/models/python_python_package_content_response_spec.rb +197 -0
- data/spec/models/python_python_package_content_spec.rb +5 -29
- data/spec/models/python_python_publication_response_spec.rb +65 -0
- data/spec/models/python_python_publication_spec.rb +2 -20
- data/spec/models/python_python_remote_response_spec.rb +137 -0
- data/spec/models/python_python_remote_spec.rb +2 -24
- data/spec/models/python_python_repository_response_spec.rb +77 -0
- data/spec/models/python_python_repository_spec.rb +5 -23
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +52 -4
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -21,32 +21,77 @@ module PulpPythonClient
|
|
21
21
|
end
|
22
22
|
# Delete a repository version
|
23
23
|
# Trigger an asynchronous task to delete a repositroy version.
|
24
|
-
# @param
|
24
|
+
# @param python_python_repository_version_href [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :content content
|
27
|
+
# @option opts [String] :content__in content__in
|
28
|
+
# @option opts [String] :number number
|
29
|
+
# @option opts [String] :number__gt number__gt
|
30
|
+
# @option opts [String] :number__gte number__gte
|
31
|
+
# @option opts [String] :number__lt number__lt
|
32
|
+
# @option opts [String] :number__lte number__lte
|
33
|
+
# @option opts [String] :number__range number__range
|
34
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
35
|
+
# @option opts [String] :pulp_created pulp_created
|
36
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
37
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
38
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
39
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
40
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
26
41
|
# @return [AsyncOperationResponse]
|
27
|
-
def delete(
|
28
|
-
data, _status_code, _headers = delete_with_http_info(
|
42
|
+
def delete(python_python_repository_version_href, opts = {})
|
43
|
+
data, _status_code, _headers = delete_with_http_info(python_python_repository_version_href, opts)
|
29
44
|
data
|
30
45
|
end
|
31
46
|
|
32
47
|
# Delete a repository version
|
33
48
|
# Trigger an asynchronous task to delete a repositroy version.
|
34
|
-
# @param
|
49
|
+
# @param python_python_repository_version_href [String]
|
35
50
|
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [String] :content content
|
52
|
+
# @option opts [String] :content__in content__in
|
53
|
+
# @option opts [String] :number number
|
54
|
+
# @option opts [String] :number__gt number__gt
|
55
|
+
# @option opts [String] :number__gte number__gte
|
56
|
+
# @option opts [String] :number__lt number__lt
|
57
|
+
# @option opts [String] :number__lte number__lte
|
58
|
+
# @option opts [String] :number__range number__range
|
59
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
60
|
+
# @option opts [String] :pulp_created pulp_created
|
61
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
62
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
63
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
64
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
65
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
36
66
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
-
def delete_with_http_info(
|
67
|
+
def delete_with_http_info(python_python_repository_version_href, opts = {})
|
38
68
|
if @api_client.config.debugging
|
39
69
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonVersionsApi.delete ...'
|
40
70
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
71
|
+
# verify the required parameter 'python_python_repository_version_href' is set
|
72
|
+
if @api_client.config.client_side_validation && python_python_repository_version_href.nil?
|
73
|
+
fail ArgumentError, "Missing the required parameter 'python_python_repository_version_href' when calling RepositoriesPythonVersionsApi.delete"
|
44
74
|
end
|
45
75
|
# resource path
|
46
|
-
local_var_path = '{
|
76
|
+
local_var_path = '{python_python_repository_version_href}'.sub('{' + 'python_python_repository_version_href' + '}', CGI.escape(python_python_repository_version_href.to_s).gsub('%2F', '/'))
|
47
77
|
|
48
78
|
# query parameters
|
49
79
|
query_params = opts[:query_params] || {}
|
80
|
+
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
81
|
+
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
82
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
83
|
+
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
84
|
+
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
85
|
+
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
86
|
+
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
87
|
+
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
88
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
89
|
+
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
90
|
+
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
91
|
+
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
92
|
+
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
93
|
+
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
94
|
+
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
50
95
|
|
51
96
|
# header parameters
|
52
97
|
header_params = opts[:header_params] || {}
|
@@ -63,7 +108,7 @@ module PulpPythonClient
|
|
63
108
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
64
109
|
|
65
110
|
# auth_names
|
66
|
-
auth_names = opts[:auth_names] || ['
|
111
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
67
112
|
|
68
113
|
new_options = opts.merge(
|
69
114
|
:header_params => header_params,
|
@@ -83,87 +128,87 @@ module PulpPythonClient
|
|
83
128
|
|
84
129
|
# List repository versions
|
85
130
|
# PythonRepositoryVersion represents a single Python repository version.
|
86
|
-
# @param
|
131
|
+
# @param python_python_repository_href [String]
|
87
132
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :
|
89
|
-
# @option opts [
|
90
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
91
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
92
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
93
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
94
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
95
|
-
# @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
|
96
|
-
# @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
97
|
-
# @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
|
98
|
-
# @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
99
|
-
# @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
100
|
-
# @option opts [String] :pulp_created ISO 8601 formatted dates are supported
|
101
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
102
|
-
# @option opts [String] :content__in Content Unit referenced by HREF
|
133
|
+
# @option opts [String] :content content
|
134
|
+
# @option opts [String] :content__in content__in
|
103
135
|
# @option opts [Integer] :limit Number of results to return per page.
|
136
|
+
# @option opts [String] :number number
|
137
|
+
# @option opts [String] :number__gt number__gt
|
138
|
+
# @option opts [String] :number__gte number__gte
|
139
|
+
# @option opts [String] :number__lt number__lt
|
140
|
+
# @option opts [String] :number__lte number__lte
|
141
|
+
# @option opts [String] :number__range number__range
|
104
142
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
143
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
144
|
+
# @option opts [String] :pulp_created pulp_created
|
145
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
146
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
147
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
148
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
149
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
105
150
|
# @option opts [String] :fields A list of fields to include in the response.
|
106
151
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
152
|
# @return [InlineResponse2005]
|
108
|
-
def list(
|
109
|
-
data, _status_code, _headers = list_with_http_info(
|
153
|
+
def list(python_python_repository_href, opts = {})
|
154
|
+
data, _status_code, _headers = list_with_http_info(python_python_repository_href, opts)
|
110
155
|
data
|
111
156
|
end
|
112
157
|
|
113
158
|
# List repository versions
|
114
159
|
# PythonRepositoryVersion represents a single Python repository version.
|
115
|
-
# @param
|
160
|
+
# @param python_python_repository_href [String]
|
116
161
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [String] :
|
118
|
-
# @option opts [
|
119
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
120
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
121
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
122
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
123
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
124
|
-
# @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
|
125
|
-
# @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
126
|
-
# @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
|
127
|
-
# @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
128
|
-
# @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
129
|
-
# @option opts [String] :pulp_created ISO 8601 formatted dates are supported
|
130
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
131
|
-
# @option opts [String] :content__in Content Unit referenced by HREF
|
162
|
+
# @option opts [String] :content content
|
163
|
+
# @option opts [String] :content__in content__in
|
132
164
|
# @option opts [Integer] :limit Number of results to return per page.
|
165
|
+
# @option opts [String] :number number
|
166
|
+
# @option opts [String] :number__gt number__gt
|
167
|
+
# @option opts [String] :number__gte number__gte
|
168
|
+
# @option opts [String] :number__lt number__lt
|
169
|
+
# @option opts [String] :number__lte number__lte
|
170
|
+
# @option opts [String] :number__range number__range
|
133
171
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
172
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
173
|
+
# @option opts [String] :pulp_created pulp_created
|
174
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
175
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
176
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
177
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
178
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
134
179
|
# @option opts [String] :fields A list of fields to include in the response.
|
135
180
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
181
|
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
137
|
-
def list_with_http_info(
|
182
|
+
def list_with_http_info(python_python_repository_href, opts = {})
|
138
183
|
if @api_client.config.debugging
|
139
184
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonVersionsApi.list ...'
|
140
185
|
end
|
141
|
-
# verify the required parameter '
|
142
|
-
if @api_client.config.client_side_validation &&
|
143
|
-
fail ArgumentError, "Missing the required parameter '
|
186
|
+
# verify the required parameter 'python_python_repository_href' is set
|
187
|
+
if @api_client.config.client_side_validation && python_python_repository_href.nil?
|
188
|
+
fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonVersionsApi.list"
|
144
189
|
end
|
145
190
|
# resource path
|
146
|
-
local_var_path = '{
|
191
|
+
local_var_path = '{python_python_repository_href}versions/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_repository_href.to_s).gsub('%2F', '/'))
|
147
192
|
|
148
193
|
# query parameters
|
149
194
|
query_params = opts[:query_params] || {}
|
150
|
-
query_params[:'
|
195
|
+
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
196
|
+
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
197
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
151
198
|
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
152
|
-
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
153
|
-
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
154
199
|
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
155
200
|
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
201
|
+
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
202
|
+
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
156
203
|
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
157
|
-
query_params[:'
|
158
|
-
query_params[:'
|
204
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
205
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
206
|
+
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
159
207
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
160
208
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
209
|
+
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
210
|
+
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
161
211
|
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
162
|
-
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
163
|
-
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
164
|
-
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
165
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
166
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
167
212
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
168
213
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
169
214
|
|
@@ -182,7 +227,7 @@ module PulpPythonClient
|
|
182
227
|
return_type = opts[:return_type] || 'InlineResponse2005'
|
183
228
|
|
184
229
|
# auth_names
|
185
|
-
auth_names = opts[:auth_names] || ['
|
230
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
186
231
|
|
187
232
|
new_options = opts.merge(
|
188
233
|
:header_params => header_params,
|
@@ -202,33 +247,33 @@ module PulpPythonClient
|
|
202
247
|
|
203
248
|
# Inspect a repository version
|
204
249
|
# PythonRepositoryVersion represents a single Python repository version.
|
205
|
-
# @param
|
250
|
+
# @param python_python_repository_version_href [String]
|
206
251
|
# @param [Hash] opts the optional parameters
|
207
252
|
# @option opts [String] :fields A list of fields to include in the response.
|
208
253
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
209
|
-
# @return [
|
210
|
-
def read(
|
211
|
-
data, _status_code, _headers = read_with_http_info(
|
254
|
+
# @return [RepositoryVersionResponse]
|
255
|
+
def read(python_python_repository_version_href, opts = {})
|
256
|
+
data, _status_code, _headers = read_with_http_info(python_python_repository_version_href, opts)
|
212
257
|
data
|
213
258
|
end
|
214
259
|
|
215
260
|
# Inspect a repository version
|
216
261
|
# PythonRepositoryVersion represents a single Python repository version.
|
217
|
-
# @param
|
262
|
+
# @param python_python_repository_version_href [String]
|
218
263
|
# @param [Hash] opts the optional parameters
|
219
264
|
# @option opts [String] :fields A list of fields to include in the response.
|
220
265
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
221
|
-
# @return [Array<(
|
222
|
-
def read_with_http_info(
|
266
|
+
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
267
|
+
def read_with_http_info(python_python_repository_version_href, opts = {})
|
223
268
|
if @api_client.config.debugging
|
224
269
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonVersionsApi.read ...'
|
225
270
|
end
|
226
|
-
# verify the required parameter '
|
227
|
-
if @api_client.config.client_side_validation &&
|
228
|
-
fail ArgumentError, "Missing the required parameter '
|
271
|
+
# verify the required parameter 'python_python_repository_version_href' is set
|
272
|
+
if @api_client.config.client_side_validation && python_python_repository_version_href.nil?
|
273
|
+
fail ArgumentError, "Missing the required parameter 'python_python_repository_version_href' when calling RepositoriesPythonVersionsApi.read"
|
229
274
|
end
|
230
275
|
# resource path
|
231
|
-
local_var_path = '{
|
276
|
+
local_var_path = '{python_python_repository_version_href}'.sub('{' + 'python_python_repository_version_href' + '}', CGI.escape(python_python_repository_version_href.to_s).gsub('%2F', '/'))
|
232
277
|
|
233
278
|
# query parameters
|
234
279
|
query_params = opts[:query_params] || {}
|
@@ -247,10 +292,10 @@ module PulpPythonClient
|
|
247
292
|
post_body = opts[:body]
|
248
293
|
|
249
294
|
# return_type
|
250
|
-
return_type = opts[:return_type] || '
|
295
|
+
return_type = opts[:return_type] || 'RepositoryVersionResponse'
|
251
296
|
|
252
297
|
# auth_names
|
253
|
-
auth_names = opts[:auth_names] || ['
|
298
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
254
299
|
|
255
300
|
new_options = opts.merge(
|
256
301
|
:header_params => header_params,
|
@@ -269,34 +314,34 @@ module PulpPythonClient
|
|
269
314
|
end
|
270
315
|
|
271
316
|
# Trigger an asynchronous task to repair a repositroy version.
|
272
|
-
# @param
|
273
|
-
# @param
|
317
|
+
# @param python_python_repository_version_href [String]
|
318
|
+
# @param repository_version [RepositoryVersion]
|
274
319
|
# @param [Hash] opts the optional parameters
|
275
320
|
# @return [AsyncOperationResponse]
|
276
|
-
def repair(
|
277
|
-
data, _status_code, _headers = repair_with_http_info(
|
321
|
+
def repair(python_python_repository_version_href, repository_version, opts = {})
|
322
|
+
data, _status_code, _headers = repair_with_http_info(python_python_repository_version_href, repository_version, opts)
|
278
323
|
data
|
279
324
|
end
|
280
325
|
|
281
326
|
# Trigger an asynchronous task to repair a repositroy version.
|
282
|
-
# @param
|
283
|
-
# @param
|
327
|
+
# @param python_python_repository_version_href [String]
|
328
|
+
# @param repository_version [RepositoryVersion]
|
284
329
|
# @param [Hash] opts the optional parameters
|
285
330
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
286
|
-
def repair_with_http_info(
|
331
|
+
def repair_with_http_info(python_python_repository_version_href, repository_version, opts = {})
|
287
332
|
if @api_client.config.debugging
|
288
333
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonVersionsApi.repair ...'
|
289
334
|
end
|
290
|
-
# verify the required parameter '
|
291
|
-
if @api_client.config.client_side_validation &&
|
292
|
-
fail ArgumentError, "Missing the required parameter '
|
335
|
+
# verify the required parameter 'python_python_repository_version_href' is set
|
336
|
+
if @api_client.config.client_side_validation && python_python_repository_version_href.nil?
|
337
|
+
fail ArgumentError, "Missing the required parameter 'python_python_repository_version_href' when calling RepositoriesPythonVersionsApi.repair"
|
293
338
|
end
|
294
|
-
# verify the required parameter '
|
295
|
-
if @api_client.config.client_side_validation &&
|
296
|
-
fail ArgumentError, "Missing the required parameter '
|
339
|
+
# verify the required parameter 'repository_version' is set
|
340
|
+
if @api_client.config.client_side_validation && repository_version.nil?
|
341
|
+
fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesPythonVersionsApi.repair"
|
297
342
|
end
|
298
343
|
# resource path
|
299
|
-
local_var_path = '{
|
344
|
+
local_var_path = '{python_python_repository_version_href}repair/'.sub('{' + 'python_python_repository_version_href' + '}', CGI.escape(python_python_repository_version_href.to_s).gsub('%2F', '/'))
|
300
345
|
|
301
346
|
# query parameters
|
302
347
|
query_params = opts[:query_params] || {}
|
@@ -306,19 +351,19 @@ module PulpPythonClient
|
|
306
351
|
# HTTP header 'Accept' (if needed)
|
307
352
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
308
353
|
# HTTP header 'Content-Type'
|
309
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
354
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
310
355
|
|
311
356
|
# form parameters
|
312
357
|
form_params = opts[:form_params] || {}
|
313
358
|
|
314
359
|
# http body (model)
|
315
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
360
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
|
316
361
|
|
317
362
|
# return_type
|
318
363
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
319
364
|
|
320
365
|
# auth_names
|
321
|
-
auth_names = opts[:auth_names] || ['
|
366
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
322
367
|
|
323
368
|
new_options = opts.merge(
|
324
369
|
:header_params => header_params,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -188,7 +188,7 @@ module PulpPythonClient
|
|
188
188
|
# Returns Auth Settings hash for api client.
|
189
189
|
def auth_settings
|
190
190
|
{
|
191
|
-
'
|
191
|
+
'basicAuth' =>
|
192
192
|
{
|
193
193
|
type: 'basic',
|
194
194
|
in: 'header',
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpPythonClient
|
16
|
+
# Serializer for asynchronous operations.
|
16
17
|
class AsyncOperationResponse
|
17
18
|
# The href of the task.
|
18
19
|
attr_accessor :task
|