pulp_python_client 3.0.0b9.dev01590959185 → 3.0.0b11.dev01596922885
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_python_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +49 -42
- data/docs/ContentPackagesApi.md +56 -58
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsPypiApi.md +110 -62
- 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 +43 -43
- data/docs/PythonBanderRemote.md +19 -0
- data/docs/PythonPythonDistribution.md +1 -7
- data/docs/{PythonPythonDistributionRead.md → PythonPythonDistributionResponse.md} +2 -2
- data/docs/PythonPythonPackageContent.md +61 -0
- data/docs/{PythonPythonPackageContentRead.md → PythonPythonPackageContentResponse.md} +3 -3
- data/docs/PythonPythonPublication.md +2 -8
- data/docs/{PythonPythonPublicationRead.md → PythonPythonPublicationResponse.md} +2 -2
- data/docs/PythonPythonRemote.md +6 -12
- data/docs/{PythonPythonRemoteRead.md → PythonPythonRemoteResponse.md} +7 -7
- data/docs/PythonPythonRepository.md +4 -10
- data/docs/{PythonPythonRepositoryRead.md → PythonPythonRepositoryResponse.md} +5 -3
- data/docs/RemotesPythonApi.md +184 -68
- data/docs/RepositoriesPythonApi.md +97 -73
- data/docs/RepositoriesPythonVersionsApi.md +94 -60
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/{RepositoryVersionRead.md → RepositoryVersionResponse.md} +3 -3
- data/lib/pulp_python_client.rb +15 -9
- data/lib/pulp_python_client/api/content_packages_api.rb +77 -88
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +157 -94
- data/lib/pulp_python_client/api/publications_pypi_api.rb +65 -65
- data/lib/pulp_python_client/api/remotes_python_api.rb +259 -106
- data/lib/pulp_python_client/api/repositories_python_api.rb +145 -118
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +137 -89
- 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/{project_specifier.rb → python_bander_remote.rb} +26 -40
- data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
- data/lib/pulp_python_client/models/{python_python_distribution_read.rb → python_python_distribution_response.rb} +6 -58
- data/lib/pulp_python_client/models/python_python_package_content.rb +433 -0
- data/lib/pulp_python_client/models/{python_python_package_content_read.rb → python_python_package_content_response.rb} +6 -89
- data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
- data/lib/pulp_python_client/models/{python_python_publication_read.rb → python_python_publication_response.rb} +6 -5
- data/lib/pulp_python_client/models/python_python_remote.rb +13 -209
- data/lib/pulp_python_client/models/{python_python_remote_read.rb → python_python_remote_response.rb} +15 -182
- data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
- data/lib/pulp_python_client/models/{python_python_repository_read.rb → python_python_repository_response.rb} +21 -44
- 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_read.rb → repository_version_response.rb} +8 -6
- data/lib/pulp_python_client/version.rb +3 -3
- data/pulp_python_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +26 -27
- data/spec/api/distributions_pypi_api_spec.rb +41 -20
- data/spec/api/publications_pypi_api_spec.rb +17 -17
- data/spec/api/remotes_python_api_spec.rb +64 -24
- data/spec/api/repositories_python_api_spec.rb +28 -19
- data/spec/api/repositories_python_versions_api_spec.rb +38 -22
- 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/{project_specifier_spec.rb → python_bander_remote_spec.rb} +10 -10
- data/spec/models/{python_python_distribution_read_spec.rb → python_python_distribution_response_spec.rb} +8 -8
- data/spec/models/python_python_distribution_spec.rb +2 -20
- data/spec/models/{python_python_package_content_read_spec.rb → python_python_package_content_response_spec.rb} +8 -8
- data/spec/models/python_python_package_content_spec.rb +173 -0
- data/spec/models/{python_python_publication_read_spec.rb → python_python_publication_response_spec.rb} +8 -8
- data/spec/models/python_python_publication_spec.rb +2 -20
- data/spec/models/{python_python_remote_read_spec.rb → python_python_remote_response_spec.rb} +8 -12
- data/spec/models/python_python_remote_spec.rb +2 -24
- data/spec/models/{python_python_repository_read_spec.rb → python_python_repository_response_spec.rb} +14 -8
- 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_read_spec.rb → repository_version_response_spec.rb} +8 -8
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +70 -46
- data/docs/ProjectSpecifier.md +0 -19
@@ -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,84 +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] :content Content Unit referenced by HREF
|
101
|
-
# @option opts [String] :pulp_created ISO 8601 formatted dates are supported
|
133
|
+
# @option opts [String] :content content
|
134
|
+
# @option opts [String] :content__in content__in
|
102
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
|
103
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
|
104
150
|
# @option opts [String] :fields A list of fields to include in the response.
|
105
151
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
106
152
|
# @return [InlineResponse2005]
|
107
|
-
def list(
|
108
|
-
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)
|
109
155
|
data
|
110
156
|
end
|
111
157
|
|
112
158
|
# List repository versions
|
113
159
|
# PythonRepositoryVersion represents a single Python repository version.
|
114
|
-
# @param
|
160
|
+
# @param python_python_repository_href [String]
|
115
161
|
# @param [Hash] opts the optional parameters
|
116
|
-
# @option opts [String] :
|
117
|
-
# @option opts [
|
118
|
-
# @option opts [Float] :number__lt Filter results where number is less than value
|
119
|
-
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
120
|
-
# @option opts [Float] :number__gt Filter results where number is greater than value
|
121
|
-
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
122
|
-
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
123
|
-
# @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
|
124
|
-
# @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
125
|
-
# @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
|
126
|
-
# @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
127
|
-
# @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
128
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
129
|
-
# @option opts [String] :pulp_created ISO 8601 formatted dates are supported
|
162
|
+
# @option opts [String] :content content
|
163
|
+
# @option opts [String] :content__in content__in
|
130
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
|
131
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
|
132
179
|
# @option opts [String] :fields A list of fields to include in the response.
|
133
180
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
134
181
|
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
135
|
-
def list_with_http_info(
|
182
|
+
def list_with_http_info(python_python_repository_href, opts = {})
|
136
183
|
if @api_client.config.debugging
|
137
184
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonVersionsApi.list ...'
|
138
185
|
end
|
139
|
-
# verify the required parameter '
|
140
|
-
if @api_client.config.client_side_validation &&
|
141
|
-
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"
|
142
189
|
end
|
143
190
|
# resource path
|
144
|
-
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', '/'))
|
145
192
|
|
146
193
|
# query parameters
|
147
194
|
query_params = opts[:query_params] || {}
|
148
|
-
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?
|
149
198
|
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
150
|
-
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
151
|
-
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
152
199
|
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
153
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?
|
154
203
|
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
155
|
-
query_params[:'
|
156
|
-
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?
|
157
207
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
158
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?
|
159
211
|
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
160
|
-
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
161
|
-
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
162
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
163
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
164
212
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
165
213
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
166
214
|
|
@@ -179,7 +227,7 @@ module PulpPythonClient
|
|
179
227
|
return_type = opts[:return_type] || 'InlineResponse2005'
|
180
228
|
|
181
229
|
# auth_names
|
182
|
-
auth_names = opts[:auth_names] || ['
|
230
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
183
231
|
|
184
232
|
new_options = opts.merge(
|
185
233
|
:header_params => header_params,
|
@@ -199,33 +247,33 @@ module PulpPythonClient
|
|
199
247
|
|
200
248
|
# Inspect a repository version
|
201
249
|
# PythonRepositoryVersion represents a single Python repository version.
|
202
|
-
# @param
|
250
|
+
# @param python_python_repository_version_href [String]
|
203
251
|
# @param [Hash] opts the optional parameters
|
204
252
|
# @option opts [String] :fields A list of fields to include in the response.
|
205
253
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
206
|
-
# @return [
|
207
|
-
def read(
|
208
|
-
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)
|
209
257
|
data
|
210
258
|
end
|
211
259
|
|
212
260
|
# Inspect a repository version
|
213
261
|
# PythonRepositoryVersion represents a single Python repository version.
|
214
|
-
# @param
|
262
|
+
# @param python_python_repository_version_href [String]
|
215
263
|
# @param [Hash] opts the optional parameters
|
216
264
|
# @option opts [String] :fields A list of fields to include in the response.
|
217
265
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
218
|
-
# @return [Array<(
|
219
|
-
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 = {})
|
220
268
|
if @api_client.config.debugging
|
221
269
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonVersionsApi.read ...'
|
222
270
|
end
|
223
|
-
# verify the required parameter '
|
224
|
-
if @api_client.config.client_side_validation &&
|
225
|
-
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"
|
226
274
|
end
|
227
275
|
# resource path
|
228
|
-
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', '/'))
|
229
277
|
|
230
278
|
# query parameters
|
231
279
|
query_params = opts[:query_params] || {}
|
@@ -244,10 +292,10 @@ module PulpPythonClient
|
|
244
292
|
post_body = opts[:body]
|
245
293
|
|
246
294
|
# return_type
|
247
|
-
return_type = opts[:return_type] || '
|
295
|
+
return_type = opts[:return_type] || 'RepositoryVersionResponse'
|
248
296
|
|
249
297
|
# auth_names
|
250
|
-
auth_names = opts[:auth_names] || ['
|
298
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
251
299
|
|
252
300
|
new_options = opts.merge(
|
253
301
|
:header_params => header_params,
|
@@ -266,34 +314,34 @@ module PulpPythonClient
|
|
266
314
|
end
|
267
315
|
|
268
316
|
# Trigger an asynchronous task to repair a repositroy version.
|
269
|
-
# @param
|
270
|
-
# @param
|
317
|
+
# @param python_python_repository_version_href [String]
|
318
|
+
# @param repository_version [RepositoryVersion]
|
271
319
|
# @param [Hash] opts the optional parameters
|
272
320
|
# @return [AsyncOperationResponse]
|
273
|
-
def repair(
|
274
|
-
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)
|
275
323
|
data
|
276
324
|
end
|
277
325
|
|
278
326
|
# Trigger an asynchronous task to repair a repositroy version.
|
279
|
-
# @param
|
280
|
-
# @param
|
327
|
+
# @param python_python_repository_version_href [String]
|
328
|
+
# @param repository_version [RepositoryVersion]
|
281
329
|
# @param [Hash] opts the optional parameters
|
282
330
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
283
|
-
def repair_with_http_info(
|
331
|
+
def repair_with_http_info(python_python_repository_version_href, repository_version, opts = {})
|
284
332
|
if @api_client.config.debugging
|
285
333
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonVersionsApi.repair ...'
|
286
334
|
end
|
287
|
-
# verify the required parameter '
|
288
|
-
if @api_client.config.client_side_validation &&
|
289
|
-
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"
|
290
338
|
end
|
291
|
-
# verify the required parameter '
|
292
|
-
if @api_client.config.client_side_validation &&
|
293
|
-
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"
|
294
342
|
end
|
295
343
|
# resource path
|
296
|
-
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', '/'))
|
297
345
|
|
298
346
|
# query parameters
|
299
347
|
query_params = opts[:query_params] || {}
|
@@ -303,19 +351,19 @@ module PulpPythonClient
|
|
303
351
|
# HTTP header 'Accept' (if needed)
|
304
352
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
305
353
|
# HTTP header 'Content-Type'
|
306
|
-
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'])
|
307
355
|
|
308
356
|
# form parameters
|
309
357
|
form_params = opts[:form_params] || {}
|
310
358
|
|
311
359
|
# http body (model)
|
312
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
360
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
|
313
361
|
|
314
362
|
# return_type
|
315
363
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
316
364
|
|
317
365
|
# auth_names
|
318
|
-
auth_names = opts[:auth_names] || ['
|
366
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
319
367
|
|
320
368
|
new_options = opts.merge(
|
321
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
|
@@ -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,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpPythonClient
|
16
|
-
#
|
16
|
+
# Serializer for the RepositoryVersion content summary
|
17
17
|
class ContentSummary
|
18
18
|
attr_accessor :added
|
19
19
|
|
@@ -33,9 +33,9 @@ module PulpPythonClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'
|
37
|
-
:'removed' => :'
|
38
|
-
:'present' => :'
|
36
|
+
:'added' => :'Object',
|
37
|
+
:'removed' => :'Object',
|
38
|
+
:'present' => :'Object'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,21 +61,15 @@ module PulpPythonClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
65
|
-
self.added = value
|
66
|
-
end
|
64
|
+
self.added = attributes[:'added']
|
67
65
|
end
|
68
66
|
|
69
67
|
if attributes.key?(:'removed')
|
70
|
-
|
71
|
-
self.removed = value
|
72
|
-
end
|
68
|
+
self.removed = attributes[:'removed']
|
73
69
|
end
|
74
70
|
|
75
71
|
if attributes.key?(:'present')
|
76
|
-
|
77
|
-
self.present = value
|
78
|
-
end
|
72
|
+
self.present = attributes[:'present']
|
79
73
|
end
|
80
74
|
end
|
81
75
|
|