pulp_python_client 3.7.3 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/ContentPackagesApi.md +8 -8
- data/docs/DistributionsPypiApi.md +12 -12
- data/docs/PatchedpythonPythonDistribution.md +1 -1
- data/docs/PatchedpythonPythonRemote.md +1 -1
- data/docs/PatchedpythonPythonRepository.md +1 -1
- data/docs/PublicationsPypiApi.md +10 -10
- data/docs/PypiApi.md +4 -4
- data/docs/PypiMetadataApi.md +4 -4
- data/docs/PypiSimpleApi.md +8 -8
- data/docs/PythonPythonDistribution.md +1 -1
- data/docs/PythonPythonDistributionResponse.md +1 -1
- data/docs/PythonPythonRemote.md +1 -1
- data/docs/PythonPythonRemoteResponse.md +3 -1
- data/docs/PythonPythonRemoteResponseHiddenFields.md +19 -0
- data/docs/PythonPythonRepository.md +1 -1
- data/docs/PythonPythonRepositoryResponse.md +1 -1
- data/docs/RemotesPythonApi.md +12 -12
- data/docs/RepositoriesPythonApi.md +11 -11
- data/docs/RepositoriesPythonVersionsApi.md +12 -12
- data/lib/pulp_python_client/api/content_packages_api.rb +13 -13
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +17 -17
- data/lib/pulp_python_client/api/publications_pypi_api.rb +15 -15
- data/lib/pulp_python_client/api/pypi_api.rb +6 -6
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +6 -6
- data/lib/pulp_python_client/api/pypi_simple_api.rb +12 -12
- data/lib/pulp_python_client/api/remotes_python_api.rb +17 -17
- data/lib/pulp_python_client/api/repositories_python_api.rb +15 -15
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +17 -17
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +4 -2
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +4 -2
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +4 -2
- data/lib/pulp_python_client/models/python_python_distribution.rb +4 -2
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +4 -2
- data/lib/pulp_python_client/models/python_python_remote.rb +4 -2
- data/lib/pulp_python_client/models/python_python_remote_response.rb +17 -3
- data/lib/pulp_python_client/models/python_python_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_python_client/models/python_python_repository.rb +4 -2
- data/lib/pulp_python_client/models/python_python_repository_response.rb +4 -2
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/distributions_pypi_api_spec.rb +6 -6
- data/spec/api/publications_pypi_api_spec.rb +5 -5
- data/spec/api/pypi_api_spec.rb +2 -2
- data/spec/api/pypi_metadata_api_spec.rb +2 -2
- data/spec/api/pypi_simple_api_spec.rb +4 -4
- data/spec/api/remotes_python_api_spec.rb +6 -6
- data/spec/api/repositories_python_api_spec.rb +5 -5
- data/spec/api/repositories_python_versions_api_spec.rb +6 -6
- data/spec/models/python_python_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/python_python_remote_response_spec.rb +6 -0
- metadata +35 -31
@@ -90,7 +90,7 @@ opts = {
|
|
90
90
|
content: 'content_example', # String | Content Unit referenced by HREF
|
91
91
|
content__in: 'content__in_example', # String | Content Unit referenced by HREF
|
92
92
|
limit: 56, # Integer | Number of results to return per page.
|
93
|
-
number: 56, # Integer |
|
93
|
+
number: 56, # Integer | Filter results where number matches value
|
94
94
|
number__gt: 56, # Integer | Filter results where number is greater than value
|
95
95
|
number__gte: 56, # Integer | Filter results where number is greater than or equal to value
|
96
96
|
number__lt: 56, # Integer | Filter results where number is less than value
|
@@ -98,14 +98,14 @@ opts = {
|
|
98
98
|
number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
|
99
99
|
offset: 56, # Integer | The initial index from which to return the results.
|
100
100
|
ordering: ['ordering_example'], # Array<String> | Ordering
|
101
|
-
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime |
|
101
|
+
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created matches value
|
102
102
|
pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
|
103
103
|
pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
|
104
104
|
pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
|
105
105
|
pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value
|
106
106
|
pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
|
107
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
108
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
107
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
108
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
109
109
|
}
|
110
110
|
|
111
111
|
begin
|
@@ -126,7 +126,7 @@ Name | Type | Description | Notes
|
|
126
126
|
**content** | **String**| Content Unit referenced by HREF | [optional]
|
127
127
|
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
128
128
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
129
|
-
**number** | **Integer**|
|
129
|
+
**number** | **Integer**| Filter results where number matches value | [optional]
|
130
130
|
**number__gt** | **Integer**| Filter results where number is greater than value | [optional]
|
131
131
|
**number__gte** | **Integer**| Filter results where number is greater than or equal to value | [optional]
|
132
132
|
**number__lt** | **Integer**| Filter results where number is less than value | [optional]
|
@@ -134,14 +134,14 @@ Name | Type | Description | Notes
|
|
134
134
|
**number__range** | [**Array<Integer>**](Integer.md)| Filter results where number is between two comma separated values | [optional]
|
135
135
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
136
136
|
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
137
|
-
**pulp_created** | **DateTime**|
|
137
|
+
**pulp_created** | **DateTime**| Filter results where pulp_created matches value | [optional]
|
138
138
|
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
139
139
|
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
140
140
|
**pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
|
141
141
|
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
142
142
|
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
143
|
-
**fields** | **String
|
144
|
-
**exclude_fields** | **String
|
143
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
144
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
145
145
|
|
146
146
|
### Return type
|
147
147
|
|
@@ -180,8 +180,8 @@ end
|
|
180
180
|
api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
|
181
181
|
python_python_repository_version_href = 'python_python_repository_version_href_example' # String |
|
182
182
|
opts = {
|
183
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
184
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
183
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
184
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
185
185
|
}
|
186
186
|
|
187
187
|
begin
|
@@ -199,8 +199,8 @@ end
|
|
199
199
|
Name | Type | Description | Notes
|
200
200
|
------------- | ------------- | ------------- | -------------
|
201
201
|
**python_python_repository_version_href** | **String**| |
|
202
|
-
**fields** | **String
|
203
|
-
**exclude_fields** | **String
|
202
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
203
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
204
204
|
|
205
205
|
### Return type
|
206
206
|
|
@@ -195,8 +195,8 @@ module PulpPythonClient
|
|
195
195
|
# @option opts [Array<String>] :requires_python__in Filter results where requires_python is in a comma-separated list of values
|
196
196
|
# @option opts [String] :sha256 Filter results where sha256 matches value
|
197
197
|
# @option opts [Array<String>] :sha256__in Filter results where sha256 is in a comma-separated list of values
|
198
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
199
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
198
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
199
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
200
200
|
# @return [PaginatedpythonPythonPackageContentResponseList]
|
201
201
|
def list(opts = {})
|
202
202
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -228,14 +228,14 @@ module PulpPythonClient
|
|
228
228
|
# @option opts [Array<String>] :requires_python__in Filter results where requires_python is in a comma-separated list of values
|
229
229
|
# @option opts [String] :sha256 Filter results where sha256 matches value
|
230
230
|
# @option opts [Array<String>] :sha256__in Filter results where sha256 is in a comma-separated list of values
|
231
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
232
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
231
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
232
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
233
233
|
# @return [Array<(PaginatedpythonPythonPackageContentResponseList, Integer, Hash)>] PaginatedpythonPythonPackageContentResponseList data, response status code and response headers
|
234
234
|
def list_with_http_info(opts = {})
|
235
235
|
if @api_client.config.debugging
|
236
236
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
|
237
237
|
end
|
238
|
-
allowable_values = ["-
|
238
|
+
allowable_values = ["-author", "-author_email", "-classifiers", "-description", "-description_content_type", "-download_url", "-filename", "-home_page", "-keywords", "-license", "-maintainer", "-maintainer_email", "-metadata_version", "-name", "-obsoletes_dist", "-packagetype", "-pk", "-platform", "-project_url", "-project_urls", "-provides_dist", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-python_version", "-requires_dist", "-requires_external", "-requires_python", "-sha256", "-summary", "-supported_platform", "-timestamp_of_interest", "-upstream_id", "-version", "author", "author_email", "classifiers", "description", "description_content_type", "download_url", "filename", "home_page", "keywords", "license", "maintainer", "maintainer_email", "metadata_version", "name", "obsoletes_dist", "packagetype", "pk", "platform", "project_url", "project_urls", "provides_dist", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "python_version", "requires_dist", "requires_external", "requires_python", "sha256", "summary", "supported_platform", "timestamp_of_interest", "upstream_id", "version"]
|
239
239
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
240
240
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
241
241
|
end
|
@@ -270,8 +270,8 @@ module PulpPythonClient
|
|
270
270
|
query_params[:'requires_python__in'] = @api_client.build_collection_param(opts[:'requires_python__in'], :csv) if !opts[:'requires_python__in'].nil?
|
271
271
|
query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
272
272
|
query_params[:'sha256__in'] = @api_client.build_collection_param(opts[:'sha256__in'], :csv) if !opts[:'sha256__in'].nil?
|
273
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
274
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
273
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
274
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
275
275
|
|
276
276
|
# header parameters
|
277
277
|
header_params = opts[:header_params] || {}
|
@@ -310,8 +310,8 @@ module PulpPythonClient
|
|
310
310
|
# PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
311
311
|
# @param python_python_package_content_href [String]
|
312
312
|
# @param [Hash] opts the optional parameters
|
313
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
314
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
313
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
314
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
315
315
|
# @return [PythonPythonPackageContentResponse]
|
316
316
|
def read(python_python_package_content_href, opts = {})
|
317
317
|
data, _status_code, _headers = read_with_http_info(python_python_package_content_href, opts)
|
@@ -322,8 +322,8 @@ module PulpPythonClient
|
|
322
322
|
# PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
323
323
|
# @param python_python_package_content_href [String]
|
324
324
|
# @param [Hash] opts the optional parameters
|
325
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
326
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
325
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
326
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
327
327
|
# @return [Array<(PythonPythonPackageContentResponse, Integer, Hash)>] PythonPythonPackageContentResponse data, response status code and response headers
|
328
328
|
def read_with_http_info(python_python_package_content_href, opts = {})
|
329
329
|
if @api_client.config.debugging
|
@@ -338,8 +338,8 @@ module PulpPythonClient
|
|
338
338
|
|
339
339
|
# query parameters
|
340
340
|
query_params = opts[:query_params] || {}
|
341
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
342
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
341
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
342
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
343
343
|
|
344
344
|
# header parameters
|
345
345
|
header_params = opts[:header_params] || {}
|
@@ -148,12 +148,12 @@ module PulpPythonClient
|
|
148
148
|
# List python distributions
|
149
149
|
# Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
|
-
# @option opts [String] :base_path
|
151
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
152
152
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
153
153
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
154
154
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
155
155
|
# @option opts [Integer] :limit Number of results to return per page.
|
156
|
-
# @option opts [String] :name
|
156
|
+
# @option opts [String] :name Filter results where name matches value
|
157
157
|
# @option opts [String] :name__contains Filter results where name contains value
|
158
158
|
# @option opts [String] :name__icontains Filter results where name contains value
|
159
159
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -162,8 +162,8 @@ module PulpPythonClient
|
|
162
162
|
# @option opts [Array<String>] :ordering Ordering
|
163
163
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
164
164
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
165
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
166
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
165
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
166
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
167
167
|
# @return [PaginatedpythonPythonDistributionResponseList]
|
168
168
|
def list(opts = {})
|
169
169
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -173,12 +173,12 @@ module PulpPythonClient
|
|
173
173
|
# List python distributions
|
174
174
|
# Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
|
175
175
|
# @param [Hash] opts the optional parameters
|
176
|
-
# @option opts [String] :base_path
|
176
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
177
177
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
178
178
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
179
179
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
180
180
|
# @option opts [Integer] :limit Number of results to return per page.
|
181
|
-
# @option opts [String] :name
|
181
|
+
# @option opts [String] :name Filter results where name matches value
|
182
182
|
# @option opts [String] :name__contains Filter results where name contains value
|
183
183
|
# @option opts [String] :name__icontains Filter results where name contains value
|
184
184
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -187,14 +187,14 @@ module PulpPythonClient
|
|
187
187
|
# @option opts [Array<String>] :ordering Ordering
|
188
188
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
189
189
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
190
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
191
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
190
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
191
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
192
192
|
# @return [Array<(PaginatedpythonPythonDistributionResponseList, Integer, Hash)>] PaginatedpythonPythonDistributionResponseList data, response status code and response headers
|
193
193
|
def list_with_http_info(opts = {})
|
194
194
|
if @api_client.config.debugging
|
195
195
|
@api_client.config.logger.debug 'Calling API: DistributionsPypiApi.list ...'
|
196
196
|
end
|
197
|
-
allowable_values = ["-base_path", "-
|
197
|
+
allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
198
198
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
199
199
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
200
200
|
end
|
@@ -217,8 +217,8 @@ module PulpPythonClient
|
|
217
217
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
218
218
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
219
219
|
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
220
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
221
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
220
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
221
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
222
222
|
|
223
223
|
# header parameters
|
224
224
|
header_params = opts[:header_params] || {}
|
@@ -327,8 +327,8 @@ module PulpPythonClient
|
|
327
327
|
# Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
|
328
328
|
# @param python_python_distribution_href [String]
|
329
329
|
# @param [Hash] opts the optional parameters
|
330
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
331
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
330
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
331
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
332
332
|
# @return [PythonPythonDistributionResponse]
|
333
333
|
def read(python_python_distribution_href, opts = {})
|
334
334
|
data, _status_code, _headers = read_with_http_info(python_python_distribution_href, opts)
|
@@ -339,8 +339,8 @@ module PulpPythonClient
|
|
339
339
|
# Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
|
340
340
|
# @param python_python_distribution_href [String]
|
341
341
|
# @param [Hash] opts the optional parameters
|
342
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
343
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
342
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
343
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
344
344
|
# @return [Array<(PythonPythonDistributionResponse, Integer, Hash)>] PythonPythonDistributionResponse data, response status code and response headers
|
345
345
|
def read_with_http_info(python_python_distribution_href, opts = {})
|
346
346
|
if @api_client.config.debugging
|
@@ -355,8 +355,8 @@ module PulpPythonClient
|
|
355
355
|
|
356
356
|
# query parameters
|
357
357
|
query_params = opts[:query_params] || {}
|
358
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
359
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
358
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
359
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
360
360
|
|
361
361
|
# header parameters
|
362
362
|
header_params = opts[:header_params] || {}
|
@@ -151,7 +151,7 @@ module PulpPythonClient
|
|
151
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
152
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
153
|
# @option opts [Array<String>] :ordering Ordering
|
154
|
-
# @option opts [DateTime] :pulp_created
|
154
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
155
155
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
156
156
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
157
157
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
@@ -159,8 +159,8 @@ module PulpPythonClient
|
|
159
159
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
160
160
|
# @option opts [String] :repository Repository referenced by HREF
|
161
161
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
162
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
163
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
162
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
163
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
164
164
|
# @return [PaginatedpythonPythonPublicationResponseList]
|
165
165
|
def list(opts = {})
|
166
166
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -175,7 +175,7 @@ module PulpPythonClient
|
|
175
175
|
# @option opts [Integer] :limit Number of results to return per page.
|
176
176
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
177
177
|
# @option opts [Array<String>] :ordering Ordering
|
178
|
-
# @option opts [DateTime] :pulp_created
|
178
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
179
179
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
180
180
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
181
181
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
@@ -183,14 +183,14 @@ module PulpPythonClient
|
|
183
183
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
184
184
|
# @option opts [String] :repository Repository referenced by HREF
|
185
185
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
186
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
187
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
186
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
187
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
188
188
|
# @return [Array<(PaginatedpythonPythonPublicationResponseList, Integer, Hash)>] PaginatedpythonPythonPublicationResponseList data, response status code and response headers
|
189
189
|
def list_with_http_info(opts = {})
|
190
190
|
if @api_client.config.debugging
|
191
191
|
@api_client.config.logger.debug 'Calling API: PublicationsPypiApi.list ...'
|
192
192
|
end
|
193
|
-
allowable_values = ["-complete", "-
|
193
|
+
allowable_values = ["-complete", "-pass_through", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "complete", "pass_through", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
|
194
194
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
195
195
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
196
196
|
end
|
@@ -212,8 +212,8 @@ module PulpPythonClient
|
|
212
212
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
213
213
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
214
214
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
215
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
216
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
215
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
216
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
217
217
|
|
218
218
|
# header parameters
|
219
219
|
header_params = opts[:header_params] || {}
|
@@ -252,8 +252,8 @@ module PulpPythonClient
|
|
252
252
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
253
253
|
# @param python_python_publication_href [String]
|
254
254
|
# @param [Hash] opts the optional parameters
|
255
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
256
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
255
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
256
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
257
257
|
# @return [PythonPythonPublicationResponse]
|
258
258
|
def read(python_python_publication_href, opts = {})
|
259
259
|
data, _status_code, _headers = read_with_http_info(python_python_publication_href, opts)
|
@@ -264,8 +264,8 @@ module PulpPythonClient
|
|
264
264
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
265
265
|
# @param python_python_publication_href [String]
|
266
266
|
# @param [Hash] opts the optional parameters
|
267
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
268
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
267
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
268
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
269
269
|
# @return [Array<(PythonPythonPublicationResponse, Integer, Hash)>] PythonPythonPublicationResponse data, response status code and response headers
|
270
270
|
def read_with_http_info(python_python_publication_href, opts = {})
|
271
271
|
if @api_client.config.debugging
|
@@ -280,8 +280,8 @@ module PulpPythonClient
|
|
280
280
|
|
281
281
|
# query parameters
|
282
282
|
query_params = opts[:query_params] || {}
|
283
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
284
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
283
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
284
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
285
285
|
|
286
286
|
# header parameters
|
287
287
|
header_params = opts[:header_params] || {}
|
@@ -23,8 +23,8 @@ module PulpPythonClient
|
|
23
23
|
# Gets package summary stats of index.
|
24
24
|
# @param path [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
27
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
26
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
27
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
28
28
|
# @return [SummaryResponse]
|
29
29
|
def read(path, opts = {})
|
30
30
|
data, _status_code, _headers = read_with_http_info(path, opts)
|
@@ -35,8 +35,8 @@ module PulpPythonClient
|
|
35
35
|
# Gets package summary stats of index.
|
36
36
|
# @param path [String]
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
39
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
38
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
39
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
40
40
|
# @return [Array<(SummaryResponse, Integer, Hash)>] SummaryResponse data, response status code and response headers
|
41
41
|
def read_with_http_info(path, opts = {})
|
42
42
|
if @api_client.config.debugging
|
@@ -51,8 +51,8 @@ module PulpPythonClient
|
|
51
51
|
|
52
52
|
# query parameters
|
53
53
|
query_params = opts[:query_params] || {}
|
54
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
55
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
54
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
55
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
56
56
|
|
57
57
|
# header parameters
|
58
58
|
header_params = opts[:header_params] || {}
|
@@ -24,8 +24,8 @@ module PulpPythonClient
|
|
24
24
|
# @param meta [String]
|
25
25
|
# @param path [String]
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
28
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
27
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
28
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
29
29
|
# @return [PackageMetadataResponse]
|
30
30
|
def read(meta, path, opts = {})
|
31
31
|
data, _status_code, _headers = read_with_http_info(meta, path, opts)
|
@@ -37,8 +37,8 @@ module PulpPythonClient
|
|
37
37
|
# @param meta [String]
|
38
38
|
# @param path [String]
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
41
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
40
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
41
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
42
42
|
# @return [Array<(PackageMetadataResponse, Integer, Hash)>] PackageMetadataResponse data, response status code and response headers
|
43
43
|
def read_with_http_info(meta, path, opts = {})
|
44
44
|
if @api_client.config.debugging
|
@@ -57,8 +57,8 @@ module PulpPythonClient
|
|
57
57
|
|
58
58
|
# query parameters
|
59
59
|
query_params = opts[:query_params] || {}
|
60
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
61
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
60
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
61
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
62
62
|
|
63
63
|
# header parameters
|
64
64
|
header_params = opts[:header_params] || {}
|
@@ -116,8 +116,8 @@ module PulpPythonClient
|
|
116
116
|
# Gets the simple api html page for the index.
|
117
117
|
# @param path [String]
|
118
118
|
# @param [Hash] opts the optional parameters
|
119
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
120
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
119
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
120
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
121
121
|
# @return [nil]
|
122
122
|
def read(path, opts = {})
|
123
123
|
read_with_http_info(path, opts)
|
@@ -128,8 +128,8 @@ module PulpPythonClient
|
|
128
128
|
# Gets the simple api html page for the index.
|
129
129
|
# @param path [String]
|
130
130
|
# @param [Hash] opts the optional parameters
|
131
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
132
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
131
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
132
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
133
133
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
134
134
|
def read_with_http_info(path, opts = {})
|
135
135
|
if @api_client.config.debugging
|
@@ -144,8 +144,8 @@ module PulpPythonClient
|
|
144
144
|
|
145
145
|
# query parameters
|
146
146
|
query_params = opts[:query_params] || {}
|
147
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
148
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
147
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
148
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
149
149
|
|
150
150
|
# header parameters
|
151
151
|
header_params = opts[:header_params] || {}
|
@@ -183,8 +183,8 @@ module PulpPythonClient
|
|
183
183
|
# @param package [String]
|
184
184
|
# @param path [String]
|
185
185
|
# @param [Hash] opts the optional parameters
|
186
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
187
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
186
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
187
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
188
188
|
# @return [nil]
|
189
189
|
def read_0(package, path, opts = {})
|
190
190
|
read_0_with_http_info(package, path, opts)
|
@@ -196,8 +196,8 @@ module PulpPythonClient
|
|
196
196
|
# @param package [String]
|
197
197
|
# @param path [String]
|
198
198
|
# @param [Hash] opts the optional parameters
|
199
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
200
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
199
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
200
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
201
201
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
202
202
|
def read_0_with_http_info(package, path, opts = {})
|
203
203
|
if @api_client.config.debugging
|
@@ -216,8 +216,8 @@ module PulpPythonClient
|
|
216
216
|
|
217
217
|
# query parameters
|
218
218
|
query_params = opts[:query_params] || {}
|
219
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
220
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
219
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
220
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
221
221
|
|
222
222
|
# header parameters
|
223
223
|
header_params = opts[:header_params] || {}
|
@@ -228,7 +228,7 @@ module PulpPythonClient
|
|
228
228
|
# 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.
|
229
229
|
# @param [Hash] opts the optional parameters
|
230
230
|
# @option opts [Integer] :limit Number of results to return per page.
|
231
|
-
# @option opts [String] :name
|
231
|
+
# @option opts [String] :name Filter results where name matches value
|
232
232
|
# @option opts [String] :name__contains Filter results where name contains value
|
233
233
|
# @option opts [String] :name__icontains Filter results where name contains value
|
234
234
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -236,14 +236,14 @@ module PulpPythonClient
|
|
236
236
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
237
237
|
# @option opts [Array<String>] :ordering Ordering
|
238
238
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
239
|
-
# @option opts [DateTime] :pulp_last_updated
|
239
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
240
240
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
241
241
|
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
242
242
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
243
243
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
244
244
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
245
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
246
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
245
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
246
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
247
247
|
# @return [PaginatedpythonPythonRemoteResponseList]
|
248
248
|
def list(opts = {})
|
249
249
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -254,7 +254,7 @@ module PulpPythonClient
|
|
254
254
|
# 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.
|
255
255
|
# @param [Hash] opts the optional parameters
|
256
256
|
# @option opts [Integer] :limit Number of results to return per page.
|
257
|
-
# @option opts [String] :name
|
257
|
+
# @option opts [String] :name Filter results where name matches value
|
258
258
|
# @option opts [String] :name__contains Filter results where name contains value
|
259
259
|
# @option opts [String] :name__icontains Filter results where name contains value
|
260
260
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -262,20 +262,20 @@ module PulpPythonClient
|
|
262
262
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
263
263
|
# @option opts [Array<String>] :ordering Ordering
|
264
264
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
265
|
-
# @option opts [DateTime] :pulp_last_updated
|
265
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
266
266
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
267
267
|
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
268
268
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
269
269
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
270
270
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
271
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
272
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
271
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
272
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
273
273
|
# @return [Array<(PaginatedpythonPythonRemoteResponseList, Integer, Hash)>] PaginatedpythonPythonRemoteResponseList data, response status code and response headers
|
274
274
|
def list_with_http_info(opts = {})
|
275
275
|
if @api_client.config.debugging
|
276
276
|
@api_client.config.logger.debug 'Calling API: RemotesPythonApi.list ...'
|
277
277
|
end
|
278
|
-
allowable_values = ["-
|
278
|
+
allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
|
279
279
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
280
280
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
281
281
|
end
|
@@ -299,8 +299,8 @@ module PulpPythonClient
|
|
299
299
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
300
300
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
301
301
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
302
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
303
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
302
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
303
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
304
304
|
|
305
305
|
# header parameters
|
306
306
|
header_params = opts[:header_params] || {}
|
@@ -409,8 +409,8 @@ module PulpPythonClient
|
|
409
409
|
# 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.
|
410
410
|
# @param python_python_remote_href [String]
|
411
411
|
# @param [Hash] opts the optional parameters
|
412
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
413
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
412
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
413
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
414
414
|
# @return [PythonPythonRemoteResponse]
|
415
415
|
def read(python_python_remote_href, opts = {})
|
416
416
|
data, _status_code, _headers = read_with_http_info(python_python_remote_href, opts)
|
@@ -421,8 +421,8 @@ module PulpPythonClient
|
|
421
421
|
# 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.
|
422
422
|
# @param python_python_remote_href [String]
|
423
423
|
# @param [Hash] opts the optional parameters
|
424
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
425
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
424
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
425
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
426
426
|
# @return [Array<(PythonPythonRemoteResponse, Integer, Hash)>] PythonPythonRemoteResponse data, response status code and response headers
|
427
427
|
def read_with_http_info(python_python_remote_href, opts = {})
|
428
428
|
if @api_client.config.debugging
|
@@ -437,8 +437,8 @@ module PulpPythonClient
|
|
437
437
|
|
438
438
|
# query parameters
|
439
439
|
query_params = opts[:query_params] || {}
|
440
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
441
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
440
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
441
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
442
442
|
|
443
443
|
# header parameters
|
444
444
|
header_params = opts[:header_params] || {}
|