pulp_python_client 3.0.0b9.dev01590959185 → 3.0.0b10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -13
- data/docs/ContentPackagesApi.md +4 -6
- data/docs/DistributionsPypiApi.md +2 -2
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/PublicationsPypiApi.md +2 -2
- data/docs/{PythonPythonPackageContentRead.md → PythonPythonPackageContent.md} +3 -3
- data/docs/PythonPythonRemote.md +2 -2
- data/docs/RemotesPythonApi.md +60 -4
- data/docs/RepositoriesPythonApi.md +4 -4
- data/docs/RepositoriesPythonVersionsApi.md +6 -4
- data/lib/pulp_python_client.rb +1 -7
- data/lib/pulp_python_client/api/content_packages_api.rb +6 -17
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +3 -3
- data/lib/pulp_python_client/api/publications_pypi_api.rb +3 -3
- data/lib/pulp_python_client/api/remotes_python_api.rb +82 -6
- data/lib/pulp_python_client/api/repositories_python_api.rb +6 -6
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +9 -6
- data/lib/pulp_python_client/models/inline_response200.rb +1 -1
- data/lib/pulp_python_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_python_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_python_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_python_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_python_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_python_client/models/{python_python_package_content_read.rb → python_python_package_content.rb} +6 -15
- data/lib/pulp_python_client/models/python_python_remote.rb +6 -10
- data/lib/pulp_python_client/version.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +1 -2
- data/spec/api/distributions_pypi_api_spec.rb +1 -1
- data/spec/api/publications_pypi_api_spec.rb +1 -1
- data/spec/api/remotes_python_api_spec.rb +15 -2
- data/spec/api/repositories_python_api_spec.rb +2 -2
- data/spec/api/repositories_python_versions_api_spec.rb +3 -2
- data/spec/models/{python_python_package_content_read_spec.rb → python_python_package_content_spec.rb} +6 -6
- metadata +20 -44
- data/docs/ProjectSpecifier.md +0 -19
- data/docs/PythonPythonDistributionRead.md +0 -29
- data/docs/PythonPythonPublicationRead.md +0 -25
- data/docs/PythonPythonRemoteRead.md +0 -49
- data/docs/PythonPythonRepositoryRead.md +0 -27
- data/docs/RepositoryVersionRead.md +0 -25
- data/lib/pulp_python_client/models/project_specifier.rb +0 -242
- data/lib/pulp_python_client/models/python_python_distribution_read.rb +0 -331
- data/lib/pulp_python_client/models/python_python_publication_read.rb +0 -247
- data/lib/pulp_python_client/models/python_python_remote_read.rb +0 -565
- data/lib/pulp_python_client/models/python_python_repository_read.rb +0 -294
- data/lib/pulp_python_client/models/repository_version_read.rb +0 -244
- data/spec/models/project_specifier_spec.rb +0 -47
- data/spec/models/python_python_distribution_read_spec.rb +0 -77
- data/spec/models/python_python_publication_read_spec.rb +0 -65
- data/spec/models/python_python_remote_read_spec.rb +0 -141
- data/spec/models/python_python_repository_read_spec.rb +0 -71
- data/spec/models/repository_version_read_spec.rb +0 -65
@@ -22,7 +22,6 @@ module PulpPythonClient
|
|
22
22
|
# Create a python package content
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
25
|
-
# @param filename [String] The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}
|
26
25
|
# @param [Hash] opts the optional parameters
|
27
26
|
# @option opts [String] :artifact Artifact file representing the physical content
|
28
27
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
@@ -47,15 +46,14 @@ module PulpPythonClient
|
|
47
46
|
# @option opts [String] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
|
48
47
|
# @option opts [String] :classifiers A JSON list containing classification values for a Python package.
|
49
48
|
# @return [AsyncOperationResponse]
|
50
|
-
def create(relative_path,
|
51
|
-
data, _status_code, _headers = create_with_http_info(relative_path,
|
49
|
+
def create(relative_path, opts = {})
|
50
|
+
data, _status_code, _headers = create_with_http_info(relative_path, opts)
|
52
51
|
data
|
53
52
|
end
|
54
53
|
|
55
54
|
# Create a python package content
|
56
55
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
57
56
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
58
|
-
# @param filename [String] The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}
|
59
57
|
# @param [Hash] opts the optional parameters
|
60
58
|
# @option opts [String] :artifact Artifact file representing the physical content
|
61
59
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
@@ -80,7 +78,7 @@ module PulpPythonClient
|
|
80
78
|
# @option opts [String] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
|
81
79
|
# @option opts [String] :classifiers A JSON list containing classification values for a Python package.
|
82
80
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
83
|
-
def create_with_http_info(relative_path,
|
81
|
+
def create_with_http_info(relative_path, opts = {})
|
84
82
|
if @api_client.config.debugging
|
85
83
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.create ...'
|
86
84
|
end
|
@@ -92,14 +90,6 @@ module PulpPythonClient
|
|
92
90
|
fail ArgumentError, 'invalid value for "relative_path" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
93
91
|
end
|
94
92
|
|
95
|
-
# verify the required parameter 'filename' is set
|
96
|
-
if @api_client.config.client_side_validation && filename.nil?
|
97
|
-
fail ArgumentError, "Missing the required parameter 'filename' when calling ContentPackagesApi.create"
|
98
|
-
end
|
99
|
-
if @api_client.config.client_side_validation && filename.to_s.length < 1
|
100
|
-
fail ArgumentError, 'invalid value for "filename" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
101
|
-
end
|
102
|
-
|
103
93
|
# resource path
|
104
94
|
local_var_path = '/pulp/api/v3/content/python/packages/'
|
105
95
|
|
@@ -116,7 +106,6 @@ module PulpPythonClient
|
|
116
106
|
# form parameters
|
117
107
|
form_params = opts[:form_params] || {}
|
118
108
|
form_params['relative_path'] = relative_path
|
119
|
-
form_params['filename'] = filename
|
120
109
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
121
110
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
122
111
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
@@ -284,7 +273,7 @@ module PulpPythonClient
|
|
284
273
|
# @param [Hash] opts the optional parameters
|
285
274
|
# @option opts [String] :fields A list of fields to include in the response.
|
286
275
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
287
|
-
# @return [
|
276
|
+
# @return [PythonPythonPackageContent]
|
288
277
|
def read(python_package_content_href, opts = {})
|
289
278
|
data, _status_code, _headers = read_with_http_info(python_package_content_href, opts)
|
290
279
|
data
|
@@ -296,7 +285,7 @@ module PulpPythonClient
|
|
296
285
|
# @param [Hash] opts the optional parameters
|
297
286
|
# @option opts [String] :fields A list of fields to include in the response.
|
298
287
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
299
|
-
# @return [Array<(
|
288
|
+
# @return [Array<(PythonPythonPackageContent, Integer, Hash)>] PythonPythonPackageContent data, response status code and response headers
|
300
289
|
def read_with_http_info(python_package_content_href, opts = {})
|
301
290
|
if @api_client.config.debugging
|
302
291
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.read ...'
|
@@ -325,7 +314,7 @@ module PulpPythonClient
|
|
325
314
|
post_body = opts[:body]
|
326
315
|
|
327
316
|
# return_type
|
328
|
-
return_type = opts[:return_type] || '
|
317
|
+
return_type = opts[:return_type] || 'PythonPythonPackageContent'
|
329
318
|
|
330
319
|
# auth_names
|
331
320
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -310,7 +310,7 @@ module PulpPythonClient
|
|
310
310
|
# @param [Hash] opts the optional parameters
|
311
311
|
# @option opts [String] :fields A list of fields to include in the response.
|
312
312
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
313
|
-
# @return [
|
313
|
+
# @return [PythonPythonDistribution]
|
314
314
|
def read(python_distribution_href, opts = {})
|
315
315
|
data, _status_code, _headers = read_with_http_info(python_distribution_href, opts)
|
316
316
|
data
|
@@ -322,7 +322,7 @@ module PulpPythonClient
|
|
322
322
|
# @param [Hash] opts the optional parameters
|
323
323
|
# @option opts [String] :fields A list of fields to include in the response.
|
324
324
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
325
|
-
# @return [Array<(
|
325
|
+
# @return [Array<(PythonPythonDistribution, Integer, Hash)>] PythonPythonDistribution data, response status code and response headers
|
326
326
|
def read_with_http_info(python_distribution_href, opts = {})
|
327
327
|
if @api_client.config.debugging
|
328
328
|
@api_client.config.logger.debug 'Calling API: DistributionsPypiApi.read ...'
|
@@ -351,7 +351,7 @@ module PulpPythonClient
|
|
351
351
|
post_body = opts[:body]
|
352
352
|
|
353
353
|
# return_type
|
354
|
-
return_type = opts[:return_type] || '
|
354
|
+
return_type = opts[:return_type] || 'PythonPythonDistribution'
|
355
355
|
|
356
356
|
# auth_names
|
357
357
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -241,7 +241,7 @@ module PulpPythonClient
|
|
241
241
|
# @param [Hash] opts the optional parameters
|
242
242
|
# @option opts [String] :fields A list of fields to include in the response.
|
243
243
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
244
|
-
# @return [
|
244
|
+
# @return [PythonPythonPublication]
|
245
245
|
def read(python_publication_href, opts = {})
|
246
246
|
data, _status_code, _headers = read_with_http_info(python_publication_href, opts)
|
247
247
|
data
|
@@ -253,7 +253,7 @@ module PulpPythonClient
|
|
253
253
|
# @param [Hash] opts the optional parameters
|
254
254
|
# @option opts [String] :fields A list of fields to include in the response.
|
255
255
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
256
|
-
# @return [Array<(
|
256
|
+
# @return [Array<(PythonPythonPublication, Integer, Hash)>] PythonPythonPublication data, response status code and response headers
|
257
257
|
def read_with_http_info(python_publication_href, opts = {})
|
258
258
|
if @api_client.config.debugging
|
259
259
|
@api_client.config.logger.debug 'Calling API: PublicationsPypiApi.read ...'
|
@@ -282,7 +282,7 @@ module PulpPythonClient
|
|
282
282
|
post_body = opts[:body]
|
283
283
|
|
284
284
|
# return_type
|
285
|
-
return_type = opts[:return_type] || '
|
285
|
+
return_type = opts[:return_type] || 'PythonPythonPublication'
|
286
286
|
|
287
287
|
# auth_names
|
288
288
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -23,7 +23,7 @@ module PulpPythonClient
|
|
23
23
|
# Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
|
24
24
|
# @param data [PythonPythonRemote]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [PythonPythonRemote]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
@@ -33,7 +33,7 @@ module PulpPythonClient
|
|
33
33
|
# Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
|
34
34
|
# @param data [PythonPythonRemote]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(PythonPythonRemote, Integer, Hash)>] PythonPythonRemote data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: RemotesPythonApi.create ...'
|
@@ -62,7 +62,7 @@ module PulpPythonClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'PythonPythonRemote'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -145,6 +145,82 @@ module PulpPythonClient
|
|
145
145
|
return data, status_code, headers
|
146
146
|
end
|
147
147
|
|
148
|
+
# Create from Bandersnatch
|
149
|
+
# Create a remote from a Bandersnatch config
|
150
|
+
# @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
|
151
|
+
# @param name [String] A unique name for this remote
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @return [PythonPythonRemote]
|
154
|
+
def from_bandersnatch(config, name, opts = {})
|
155
|
+
data, _status_code, _headers = from_bandersnatch_with_http_info(config, name, opts)
|
156
|
+
data
|
157
|
+
end
|
158
|
+
|
159
|
+
# Create from Bandersnatch
|
160
|
+
# Create a remote from a Bandersnatch config
|
161
|
+
# @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
|
162
|
+
# @param name [String] A unique name for this remote
|
163
|
+
# @param [Hash] opts the optional parameters
|
164
|
+
# @return [Array<(PythonPythonRemote, Integer, Hash)>] PythonPythonRemote data, response status code and response headers
|
165
|
+
def from_bandersnatch_with_http_info(config, name, opts = {})
|
166
|
+
if @api_client.config.debugging
|
167
|
+
@api_client.config.logger.debug 'Calling API: RemotesPythonApi.from_bandersnatch ...'
|
168
|
+
end
|
169
|
+
# verify the required parameter 'config' is set
|
170
|
+
if @api_client.config.client_side_validation && config.nil?
|
171
|
+
fail ArgumentError, "Missing the required parameter 'config' when calling RemotesPythonApi.from_bandersnatch"
|
172
|
+
end
|
173
|
+
# verify the required parameter 'name' is set
|
174
|
+
if @api_client.config.client_side_validation && name.nil?
|
175
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling RemotesPythonApi.from_bandersnatch"
|
176
|
+
end
|
177
|
+
if @api_client.config.client_side_validation && name.to_s.length < 1
|
178
|
+
fail ArgumentError, 'invalid value for "name" when calling RemotesPythonApi.from_bandersnatch, the character length must be great than or equal to 1.'
|
179
|
+
end
|
180
|
+
|
181
|
+
# resource path
|
182
|
+
local_var_path = '/pulp/api/v3/remotes/python/python/from_bandersnatch/'
|
183
|
+
|
184
|
+
# query parameters
|
185
|
+
query_params = opts[:query_params] || {}
|
186
|
+
|
187
|
+
# header parameters
|
188
|
+
header_params = opts[:header_params] || {}
|
189
|
+
# HTTP header 'Accept' (if needed)
|
190
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
191
|
+
# HTTP header 'Content-Type'
|
192
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
193
|
+
|
194
|
+
# form parameters
|
195
|
+
form_params = opts[:form_params] || {}
|
196
|
+
form_params['config'] = config
|
197
|
+
form_params['name'] = name
|
198
|
+
|
199
|
+
# http body (model)
|
200
|
+
post_body = opts[:body]
|
201
|
+
|
202
|
+
# return_type
|
203
|
+
return_type = opts[:return_type] || 'PythonPythonRemote'
|
204
|
+
|
205
|
+
# auth_names
|
206
|
+
auth_names = opts[:auth_names] || ['Basic']
|
207
|
+
|
208
|
+
new_options = opts.merge(
|
209
|
+
:header_params => header_params,
|
210
|
+
:query_params => query_params,
|
211
|
+
:form_params => form_params,
|
212
|
+
:body => post_body,
|
213
|
+
:auth_names => auth_names,
|
214
|
+
:return_type => return_type
|
215
|
+
)
|
216
|
+
|
217
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
218
|
+
if @api_client.config.debugging
|
219
|
+
@api_client.config.logger.debug "API called: RemotesPythonApi#from_bandersnatch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
220
|
+
end
|
221
|
+
return data, status_code, headers
|
222
|
+
end
|
223
|
+
|
148
224
|
# List python remotes
|
149
225
|
# Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
|
150
226
|
# @param [Hash] opts the optional parameters
|
@@ -316,7 +392,7 @@ module PulpPythonClient
|
|
316
392
|
# @param [Hash] opts the optional parameters
|
317
393
|
# @option opts [String] :fields A list of fields to include in the response.
|
318
394
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
319
|
-
# @return [
|
395
|
+
# @return [PythonPythonRemote]
|
320
396
|
def read(python_remote_href, opts = {})
|
321
397
|
data, _status_code, _headers = read_with_http_info(python_remote_href, opts)
|
322
398
|
data
|
@@ -328,7 +404,7 @@ module PulpPythonClient
|
|
328
404
|
# @param [Hash] opts the optional parameters
|
329
405
|
# @option opts [String] :fields A list of fields to include in the response.
|
330
406
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
331
|
-
# @return [Array<(
|
407
|
+
# @return [Array<(PythonPythonRemote, Integer, Hash)>] PythonPythonRemote data, response status code and response headers
|
332
408
|
def read_with_http_info(python_remote_href, opts = {})
|
333
409
|
if @api_client.config.debugging
|
334
410
|
@api_client.config.logger.debug 'Calling API: RemotesPythonApi.read ...'
|
@@ -357,7 +433,7 @@ module PulpPythonClient
|
|
357
433
|
post_body = opts[:body]
|
358
434
|
|
359
435
|
# return_type
|
360
|
-
return_type = opts[:return_type] || '
|
436
|
+
return_type = opts[:return_type] || 'PythonPythonRemote'
|
361
437
|
|
362
438
|
# auth_names
|
363
439
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -23,7 +23,7 @@ module PulpPythonClient
|
|
23
23
|
# A ViewSet for PythonRepository.
|
24
24
|
# @param data [PythonPythonRepository]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [PythonPythonRepository]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
@@ -33,7 +33,7 @@ module PulpPythonClient
|
|
33
33
|
# A ViewSet for PythonRepository.
|
34
34
|
# @param data [PythonPythonRepository]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(PythonPythonRepository, Integer, Hash)>] PythonPythonRepository data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.create ...'
|
@@ -62,7 +62,7 @@ module PulpPythonClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'PythonPythonRepository'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -368,7 +368,7 @@ module PulpPythonClient
|
|
368
368
|
# @param [Hash] opts the optional parameters
|
369
369
|
# @option opts [String] :fields A list of fields to include in the response.
|
370
370
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
371
|
-
# @return [
|
371
|
+
# @return [PythonPythonRepository]
|
372
372
|
def read(python_repository_href, opts = {})
|
373
373
|
data, _status_code, _headers = read_with_http_info(python_repository_href, opts)
|
374
374
|
data
|
@@ -380,7 +380,7 @@ module PulpPythonClient
|
|
380
380
|
# @param [Hash] opts the optional parameters
|
381
381
|
# @option opts [String] :fields A list of fields to include in the response.
|
382
382
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
383
|
-
# @return [Array<(
|
383
|
+
# @return [Array<(PythonPythonRepository, Integer, Hash)>] PythonPythonRepository data, response status code and response headers
|
384
384
|
def read_with_http_info(python_repository_href, opts = {})
|
385
385
|
if @api_client.config.debugging
|
386
386
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.read ...'
|
@@ -409,7 +409,7 @@ module PulpPythonClient
|
|
409
409
|
post_body = opts[:body]
|
410
410
|
|
411
411
|
# return_type
|
412
|
-
return_type = opts[:return_type] || '
|
412
|
+
return_type = opts[:return_type] || 'PythonPythonRepository'
|
413
413
|
|
414
414
|
# auth_names
|
415
415
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -97,8 +97,9 @@ module PulpPythonClient
|
|
97
97
|
# @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
|
98
98
|
# @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
99
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
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
|
102
103
|
# @option opts [Integer] :limit Number of results to return per page.
|
103
104
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
104
105
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -125,8 +126,9 @@ module PulpPythonClient
|
|
125
126
|
# @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
|
126
127
|
# @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
127
128
|
# @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
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
|
130
132
|
# @option opts [Integer] :limit Number of results to return per page.
|
131
133
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
132
134
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -157,8 +159,9 @@ module PulpPythonClient
|
|
157
159
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
158
160
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
159
161
|
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
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?
|
162
165
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
163
166
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
164
167
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
@@ -203,7 +206,7 @@ module PulpPythonClient
|
|
203
206
|
# @param [Hash] opts the optional parameters
|
204
207
|
# @option opts [String] :fields A list of fields to include in the response.
|
205
208
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
206
|
-
# @return [
|
209
|
+
# @return [RepositoryVersion]
|
207
210
|
def read(python_repository_version_href, opts = {})
|
208
211
|
data, _status_code, _headers = read_with_http_info(python_repository_version_href, opts)
|
209
212
|
data
|
@@ -215,7 +218,7 @@ module PulpPythonClient
|
|
215
218
|
# @param [Hash] opts the optional parameters
|
216
219
|
# @option opts [String] :fields A list of fields to include in the response.
|
217
220
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
218
|
-
# @return [Array<(
|
221
|
+
# @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
|
219
222
|
def read_with_http_info(python_repository_version_href, opts = {})
|
220
223
|
if @api_client.config.debugging
|
221
224
|
@api_client.config.logger.debug 'Calling API: RepositoriesPythonVersionsApi.read ...'
|
@@ -244,7 +247,7 @@ module PulpPythonClient
|
|
244
247
|
post_body = opts[:body]
|
245
248
|
|
246
249
|
# return_type
|
247
|
-
return_type = opts[:return_type] || '
|
250
|
+
return_type = opts[:return_type] || 'RepositoryVersion'
|
248
251
|
|
249
252
|
# auth_names
|
250
253
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpPythonClient
|
16
|
-
class
|
16
|
+
class PythonPythonPackageContent
|
17
17
|
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
@@ -170,13 +170,13 @@ module PulpPythonClient
|
|
170
170
|
# @param [Hash] attributes Model attributes in the form of hash
|
171
171
|
def initialize(attributes = {})
|
172
172
|
if (!attributes.is_a?(Hash))
|
173
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::
|
173
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonPackageContent` initialize method"
|
174
174
|
end
|
175
175
|
|
176
176
|
# check to see if the attribute exists and convert string to symbol for hash key
|
177
177
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
178
178
|
if (!self.class.attribute_map.key?(k.to_sym))
|
179
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::
|
179
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonPackageContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
180
180
|
end
|
181
181
|
h[k.to_sym] = v
|
182
182
|
}
|
@@ -294,11 +294,7 @@ module PulpPythonClient
|
|
294
294
|
# @return Array for valid properties with the reasons
|
295
295
|
def list_invalid_properties
|
296
296
|
invalid_properties = Array.new
|
297
|
-
if
|
298
|
-
invalid_properties.push('invalid value for "filename", filename cannot be nil.')
|
299
|
-
end
|
300
|
-
|
301
|
-
if @filename.to_s.length < 1
|
297
|
+
if !@filename.nil? && @filename.to_s.length < 1
|
302
298
|
invalid_properties.push('invalid value for "filename", the character length must be great than or equal to 1.')
|
303
299
|
end
|
304
300
|
|
@@ -324,8 +320,7 @@ module PulpPythonClient
|
|
324
320
|
# Check to see if the all the properties in the model are valid
|
325
321
|
# @return true if the model is valid
|
326
322
|
def valid?
|
327
|
-
return false if
|
328
|
-
return false if @filename.to_s.length < 1
|
323
|
+
return false if !@filename.nil? && @filename.to_s.length < 1
|
329
324
|
return false if !@packagetype.nil? && @packagetype.to_s.length < 1
|
330
325
|
return false if !@name.nil? && @name.to_s.length < 1
|
331
326
|
return false if !@version.nil? && @version.to_s.length < 1
|
@@ -336,11 +331,7 @@ module PulpPythonClient
|
|
336
331
|
# Custom attribute writer method with validation
|
337
332
|
# @param [Object] filename Value to be assigned
|
338
333
|
def filename=(filename)
|
339
|
-
if filename.nil?
|
340
|
-
fail ArgumentError, 'filename cannot be nil'
|
341
|
-
end
|
342
|
-
|
343
|
-
if filename.to_s.length < 1
|
334
|
+
if !filename.nil? && filename.to_s.length < 1
|
344
335
|
fail ArgumentError, 'invalid value for "filename", the character length must be great than or equal to 1.'
|
345
336
|
end
|
346
337
|
|