pulp_python_client 3.6.1 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/docs/ContentPackagesApi.md +4 -2
  4. data/docs/DistributionsPypiApi.md +2 -2
  5. data/docs/PatchedpythonPythonRemote.md +2 -2
  6. data/docs/PublicationsPypiApi.md +4 -2
  7. data/docs/PythonPythonPackageContent.md +2 -0
  8. data/docs/PythonPythonRemote.md +2 -2
  9. data/docs/RemotesPythonApi.md +2 -2
  10. data/docs/Repair.md +17 -0
  11. data/docs/RepositoriesPythonApi.md +2 -2
  12. data/docs/RepositoriesPythonVersionsApi.md +6 -6
  13. data/git_push.sh +58 -0
  14. data/lib/pulp_python_client/api/content_packages_api.rb +10 -3
  15. data/lib/pulp_python_client/api/distributions_pypi_api.rb +7 -3
  16. data/lib/pulp_python_client/api/publications_pypi_api.rb +10 -3
  17. data/lib/pulp_python_client/api/remotes_python_api.rb +7 -3
  18. data/lib/pulp_python_client/api/repositories_python_api.rb +7 -3
  19. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +16 -12
  20. data/lib/pulp_python_client/api_client.rb +1 -1
  21. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +2 -2
  22. data/lib/pulp_python_client/models/python_python_package_content.rb +11 -1
  23. data/lib/pulp_python_client/models/python_python_remote.rb +2 -2
  24. data/lib/pulp_python_client/models/{repository_version.rb → repair.rb} +13 -12
  25. data/lib/pulp_python_client/version.rb +1 -1
  26. data/lib/pulp_python_client.rb +1 -2
  27. data/pulp_python_client.gemspec +3 -3
  28. data/spec/api/content_packages_api_spec.rb +2 -1
  29. data/spec/api/distributions_pypi_api_spec.rb +1 -1
  30. data/spec/api/publications_pypi_api_spec.rb +2 -1
  31. data/spec/api/remotes_python_api_spec.rb +1 -1
  32. data/spec/api/repositories_python_api_spec.rb +1 -1
  33. data/spec/api/repositories_python_versions_api_spec.rb +2 -2
  34. data/spec/models/python_python_package_content_spec.rb +6 -0
  35. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  36. metadata +46 -49
  37. data/docs/ContentSummary.md +0 -21
  38. data/docs/RepositoryVersion.md +0 -17
  39. data/lib/pulp_python_client/models/content_summary.rb +0 -246
  40. data/spec/models/content_summary_spec.rb +0 -53
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fdf6a4cbf3bb2e61942d847cda3fe2f71b35e8b5ccbc6de94e4f3cd61843204
4
- data.tar.gz: 0a87cbceec12efe517dc3da277f07fcee42015023c08b8cb329e580f2f5e0738
3
+ metadata.gz: 6e8601125c539c3526fde45784f5410631a3ce817ff435d630db194c45af0600
4
+ data.tar.gz: d38192c86fc693d53f9b1fee761920fc4a0bd5070a39e2fc597e3be3e02c62d9
5
5
  SHA512:
6
- metadata.gz: cf1e83ad1318a3639e2c5eca38bea0c6ee0ae2b4396fb8274005dbbe085eb3918ae7379eec212cb117da85c5548d665f6de9f0641d622902f3607458961a44a0
7
- data.tar.gz: ae52d4407d74ab44cabdf4a858832d5a1472dfc4ddc1becf6841cccee7566a69a267e130c7a2146264a3b886c1ddb5c6182b04fa4e118fd13b00a326134d6e74
6
+ metadata.gz: '039f2151a97e41d5b72f0c1accceebc5e59133cb9e4613af07cdc09ffebf3269649eecfdabffd7595ce1fb25402a154eca2b1ff535841f004d3f0d6accd319c6'
7
+ data.tar.gz: e911f3a427e8cfcf4e6f9a4731ba48a680992b7f1c32ba31a1b9fe5df3e03c3cc37bb2ad5b97466844237ae5c7bedc01bfcecf42172785916b96de94efc9b103
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.6.1
10
+ - Package version: 3.7.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_python_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_python_client-3.6.1.gem
27
+ gem install ./pulp_python_client-3.7.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_python_client-3.6.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_python_client-3.7.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_python_client', '~> 3.6.1'
36
+ gem 'pulp_python_client', '~> 3.7.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -70,6 +70,7 @@ opts = {
70
70
  artifact: 'artifact_example', # String | Artifact file representing the physical content
71
71
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
72
72
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
73
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
73
74
  sha256: '', # String | The SHA256 digest of this package.
74
75
  summary: 'summary_example', # String | A one-line summary of what the package does.
75
76
  description: 'description_example', # String | A longer description of the package that can run to several paragraphs.
@@ -153,7 +154,6 @@ Class | Method | HTTP request | Description
153
154
  ## Documentation for Models
154
155
 
155
156
  - [PulpPythonClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
156
- - [PulpPythonClient::ContentSummary](docs/ContentSummary.md)
157
157
  - [PulpPythonClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
158
158
  - [PulpPythonClient::ExcludePlatformsEnum](docs/ExcludePlatformsEnum.md)
159
159
  - [PulpPythonClient::PackageMetadataResponse](docs/PackageMetadataResponse.md)
@@ -181,9 +181,9 @@ Class | Method | HTTP request | Description
181
181
  - [PulpPythonClient::PythonPythonRemoteResponse](docs/PythonPythonRemoteResponse.md)
182
182
  - [PulpPythonClient::PythonPythonRepository](docs/PythonPythonRepository.md)
183
183
  - [PulpPythonClient::PythonPythonRepositoryResponse](docs/PythonPythonRepositoryResponse.md)
184
+ - [PulpPythonClient::Repair](docs/Repair.md)
184
185
  - [PulpPythonClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
185
186
  - [PulpPythonClient::RepositorySyncURL](docs/RepositorySyncURL.md)
186
- - [PulpPythonClient::RepositoryVersion](docs/RepositoryVersion.md)
187
187
  - [PulpPythonClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
188
188
  - [PulpPythonClient::SummaryResponse](docs/SummaryResponse.md)
189
189
 
@@ -36,6 +36,7 @@ opts = {
36
36
  artifact: 'artifact_example', # String | Artifact file representing the physical content
37
37
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
38
38
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
39
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the artifact of the content unit.
39
40
  sha256: '', # String | The SHA256 digest of this package.
40
41
  summary: 'summary_example', # String | A one-line summary of what the package does.
41
42
  description: 'description_example', # String | A longer description of the package that can run to several paragraphs.
@@ -78,6 +79,7 @@ Name | Type | Description | Notes
78
79
  **artifact** | **String**| Artifact file representing the physical content | [optional]
79
80
  **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
80
81
  **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
82
+ **upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
81
83
  **sha256** | **String**| The SHA256 digest of this package. | [optional] [default to '']
82
84
  **summary** | **String**| A one-line summary of what the package does. | [optional]
83
85
  **description** | **String**| A longer description of the package that can run to several paragraphs. | [optional]
@@ -148,7 +150,7 @@ opts = {
148
150
  name: 'name_example', # String | Filter results where name matches value
149
151
  name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
150
152
  offset: 56, # Integer | The initial index from which to return the results.
151
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
153
+ ordering: ['ordering_example'], # Array<String> | Ordering
152
154
  packagetype: 'packagetype_example', # String | Filter results where packagetype matches value
153
155
  packagetype__in: ['packagetype__in_example'], # Array<String> | Filter results where packagetype is in a comma-separated list of values
154
156
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
@@ -188,7 +190,7 @@ Name | Type | Description | Notes
188
190
  **name** | **String**| Filter results where name matches value | [optional]
189
191
  **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
190
192
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
191
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
193
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
192
194
  **packagetype** | **String**| Filter results where packagetype matches value | [optional]
193
195
  **packagetype__in** | [**Array&lt;String&gt;**](String.md)| Filter results where packagetype is in a comma-separated list of values | [optional]
194
196
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
@@ -152,7 +152,7 @@ opts = {
152
152
  name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
153
153
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
154
154
  offset: 56, # Integer | The initial index from which to return the results.
155
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
155
+ ordering: ['ordering_example'], # Array<String> | Ordering
156
156
  pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
157
157
  fields: 'fields_example', # String | A list of fields to include in the response.
158
158
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
@@ -183,7 +183,7 @@ Name | Type | Description | Notes
183
183
  **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
184
184
  **name__startswith** | **String**| Filter results where name starts with value | [optional]
185
185
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
186
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
186
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
187
187
  **pulp_label_select** | **String**| Filter labels by search string | [optional]
188
188
  **fields** | **String**| A list of fields to include in the response. | [optional]
189
189
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
12
12
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
13
13
  **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
14
14
  **proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
15
- **proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
15
+ **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
16
16
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
17
- **password** | **String** | The password to be used for authentication when syncing. | [optional]
17
+ **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
18
18
  **pulp_labels** | [**Object**](.md) | | [optional]
19
19
  **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
20
20
  **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
@@ -142,13 +142,14 @@ opts = {
142
142
  content__in: 'content__in_example', # String | Content Unit referenced by HREF
143
143
  limit: 56, # Integer | Number of results to return per page.
144
144
  offset: 56, # Integer | The initial index from which to return the results.
145
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
145
+ ordering: ['ordering_example'], # Array<String> | Ordering
146
146
  pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
147
147
  pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
148
148
  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
149
149
  pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
150
150
  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
151
151
  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
152
+ repository: 'repository_example', # String | Repository referenced by HREF
152
153
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
153
154
  fields: 'fields_example', # String | A list of fields to include in the response.
154
155
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
@@ -172,13 +173,14 @@ Name | Type | Description | Notes
172
173
  **content__in** | **String**| Content Unit referenced by HREF | [optional]
173
174
  **limit** | **Integer**| Number of results to return per page. | [optional]
174
175
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
175
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
176
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
176
177
  **pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
177
178
  **pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
178
179
  **pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
179
180
  **pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
180
181
  **pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
181
182
  **pulp_created__range** | [**Array&lt;DateTime&gt;**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
183
+ **repository** | **String**| Repository referenced by HREF | [optional]
182
184
  **repository_version** | [**String**](.md)| Repository Version referenced by HREF | [optional]
183
185
  **fields** | **String**| A list of fields to include in the response. | [optional]
184
186
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
9
9
  **file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
10
10
  **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
11
+ **upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
11
12
  **sha256** | **String** | The SHA256 digest of this package. | [optional] [default to &#39;&#39;]
12
13
  **summary** | **String** | A one-line summary of what the package does. | [optional]
13
14
  **description** | **String** | A longer description of the package that can run to several paragraphs. | [optional]
@@ -40,6 +41,7 @@ instance = PulpPythonClient::PythonPythonPackageContent.new(artifact: null,
40
41
  relative_path: null,
41
42
  file: null,
42
43
  repository: null,
44
+ upload: null,
43
45
  sha256: null,
44
46
  summary: null,
45
47
  description: null,
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
12
12
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
13
13
  **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
14
14
  **proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
15
- **proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
15
+ **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
16
16
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
17
- **password** | **String** | The password to be used for authentication when syncing. | [optional]
17
+ **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
18
18
  **pulp_labels** | [**Object**](.md) | | [optional]
19
19
  **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
20
20
  **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
@@ -208,7 +208,7 @@ opts = {
208
208
  name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
209
209
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
210
210
  offset: 56, # Integer | The initial index from which to return the results.
211
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
211
+ ordering: ['ordering_example'], # Array<String> | Ordering
212
212
  pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
213
213
  pulp_last_updated: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
214
214
  pulp_last_updated__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is greater than value
@@ -241,7 +241,7 @@ Name | Type | Description | Notes
241
241
  **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
242
242
  **name__startswith** | **String**| Filter results where name starts with value | [optional]
243
243
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
244
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
244
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
245
245
  **pulp_label_select** | **String**| Filter labels by search string | [optional]
246
246
  **pulp_last_updated** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
247
247
  **pulp_last_updated__gt** | **DateTime**| Filter results where pulp_last_updated is greater than value | [optional]
data/docs/Repair.md ADDED
@@ -0,0 +1,17 @@
1
+ # PulpPythonClient::Repair
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **verify_checksums** | **Boolean** | Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default | [optional] [default to true]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpPythonClient'
13
+
14
+ instance = PulpPythonClient::Repair.new(verify_checksums: null)
15
+ ```
16
+
17
+
@@ -150,7 +150,7 @@ opts = {
150
150
  name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
151
151
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
152
152
  offset: 56, # Integer | The initial index from which to return the results.
153
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
153
+ ordering: ['ordering_example'], # Array<String> | Ordering
154
154
  pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
155
155
  fields: 'fields_example', # String | A list of fields to include in the response.
156
156
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
@@ -177,7 +177,7 @@ Name | Type | Description | Notes
177
177
  **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
178
178
  **name__startswith** | **String**| Filter results where name starts with value | [optional]
179
179
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
180
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
180
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
181
181
  **pulp_label_select** | **String**| Filter labels by search string | [optional]
182
182
  **fields** | **String**| A list of fields to include in the response. | [optional]
183
183
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
@@ -97,7 +97,7 @@ opts = {
97
97
  number__lte: 56, # Integer | Filter results where number is less than or equal to value
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
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
100
+ ordering: ['ordering_example'], # Array<String> | Ordering
101
101
  pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
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
@@ -133,7 +133,7 @@ Name | Type | Description | Notes
133
133
  **number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
134
134
  **number__range** | [**Array&lt;Integer&gt;**](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
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
136
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
137
137
  **pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [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]
@@ -218,7 +218,7 @@ Name | Type | Description | Notes
218
218
 
219
219
  ## repair
220
220
 
221
- > AsyncOperationResponse repair(python_python_repository_version_href, repository_version)
221
+ > AsyncOperationResponse repair(python_python_repository_version_href, repair)
222
222
 
223
223
 
224
224
 
@@ -238,10 +238,10 @@ end
238
238
 
239
239
  api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
240
240
  python_python_repository_version_href = 'python_python_repository_version_href_example' # String |
241
- repository_version = PulpPythonClient::RepositoryVersion.new # RepositoryVersion |
241
+ repair = PulpPythonClient::Repair.new # Repair |
242
242
 
243
243
  begin
244
- result = api_instance.repair(python_python_repository_version_href, repository_version)
244
+ result = api_instance.repair(python_python_repository_version_href, repair)
245
245
  p result
246
246
  rescue PulpPythonClient::ApiError => e
247
247
  puts "Exception when calling RepositoriesPythonVersionsApi->repair: #{e}"
@@ -254,7 +254,7 @@ end
254
254
  Name | Type | Description | Notes
255
255
  ------------- | ------------- | ------------- | -------------
256
256
  **python_python_repository_version_href** | **String**| |
257
- **repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
257
+ **repair** | [**Repair**](Repair.md)| |
258
258
 
259
259
  ### Return type
260
260
 
data/git_push.sh ADDED
@@ -0,0 +1,58 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=`git remote`
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
58
+
@@ -26,6 +26,7 @@ module PulpPythonClient
26
26
  # @option opts [String] :artifact Artifact file representing the physical content
27
27
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
28
28
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
29
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
29
30
  # @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
30
31
  # @option opts [String] :summary A one-line summary of what the package does.
31
32
  # @option opts [String] :description A longer description of the package that can run to several paragraphs.
@@ -61,6 +62,7 @@ module PulpPythonClient
61
62
  # @option opts [String] :artifact Artifact file representing the physical content
62
63
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
63
64
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
65
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
64
66
  # @option opts [String] :sha256 The SHA256 digest of this package.
65
67
  # @option opts [String] :summary A one-line summary of what the package does.
66
68
  # @option opts [String] :description A longer description of the package that can run to several paragraphs.
@@ -119,6 +121,7 @@ module PulpPythonClient
119
121
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
120
122
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
121
123
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
124
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
122
125
  form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
123
126
  form_params['summary'] = opts[:'summary'] if !opts[:'summary'].nil?
124
127
  form_params['description'] = opts[:'description'] if !opts[:'description'].nil?
@@ -181,7 +184,7 @@ module PulpPythonClient
181
184
  # @option opts [String] :name Filter results where name matches value
182
185
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
183
186
  # @option opts [Integer] :offset The initial index from which to return the results.
184
- # @option opts [String] :ordering Which field to use when ordering the results.
187
+ # @option opts [Array<String>] :ordering Ordering
185
188
  # @option opts [String] :packagetype Filter results where packagetype matches value
186
189
  # @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
187
190
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -214,7 +217,7 @@ module PulpPythonClient
214
217
  # @option opts [String] :name Filter results where name matches value
215
218
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
216
219
  # @option opts [Integer] :offset The initial index from which to return the results.
217
- # @option opts [String] :ordering Which field to use when ordering the results.
220
+ # @option opts [Array<String>] :ordering Ordering
218
221
  # @option opts [String] :packagetype Filter results where packagetype matches value
219
222
  # @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
220
223
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -232,6 +235,10 @@ module PulpPythonClient
232
235
  if @api_client.config.debugging
233
236
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
234
237
  end
238
+ allowable_values = ["-_artifacts", "-author", "-author_email", "-classifiers", "-content_ptr", "-contentartifact", "-description", "-description_content_type", "-download_url", "-filename", "-group_roles", "-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_labels", "-pulp_last_updated", "-pulp_type", "-python_version", "-repositories", "-requires_dist", "-requires_external", "-requires_python", "-sha256", "-summary", "-supported_platform", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "author", "author_email", "classifiers", "content_ptr", "contentartifact", "description", "description_content_type", "download_url", "filename", "group_roles", "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_labels", "pulp_last_updated", "pulp_type", "python_version", "repositories", "requires_dist", "requires_external", "requires_python", "sha256", "summary", "supported_platform", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
239
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
240
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
241
+ end
235
242
  allowable_values = ["bdist_dmg", "bdist_dumb", "bdist_egg", "bdist_msi", "bdist_rpm", "bdist_wheel", "bdist_wininst", "sdist"]
236
243
  if @api_client.config.client_side_validation && opts[:'packagetype'] && !allowable_values.include?(opts[:'packagetype'])
237
244
  fail ArgumentError, "invalid value for \"packagetype\", must be one of #{allowable_values}"
@@ -252,7 +259,7 @@ module PulpPythonClient
252
259
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
253
260
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
254
261
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
255
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
262
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
256
263
  query_params[:'packagetype'] = opts[:'packagetype'] if !opts[:'packagetype'].nil?
257
264
  query_params[:'packagetype__in'] = @api_client.build_collection_param(opts[:'packagetype__in'], :csv) if !opts[:'packagetype__in'].nil?
258
265
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -159,7 +159,7 @@ module PulpPythonClient
159
159
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
160
160
  # @option opts [String] :name__startswith Filter results where name starts with value
161
161
  # @option opts [Integer] :offset The initial index from which to return the results.
162
- # @option opts [String] :ordering Which field to use when ordering the results.
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] :fields A list of fields to include in the response.
165
165
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -183,7 +183,7 @@ module PulpPythonClient
183
183
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
184
184
  # @option opts [String] :name__startswith Filter results where name starts with value
185
185
  # @option opts [Integer] :offset The initial index from which to return the results.
186
- # @option opts [String] :ordering Which field to use when ordering the results.
186
+ # @option opts [Array<String>] :ordering Ordering
187
187
  # @option opts [String] :pulp_label_select Filter labels by search string
188
188
  # @option opts [String] :fields A list of fields to include in the response.
189
189
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -192,6 +192,10 @@ module PulpPythonClient
192
192
  if @api_client.config.debugging
193
193
  @api_client.config.logger.debug 'Calling API: DistributionsPypiApi.list ...'
194
194
  end
195
+ allowable_values = ["-base_path", "-content_guard", "-group_roles", "-name", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-python_pythondistribution", "-remote", "-repository", "-repository_version", "-user_roles", "base_path", "content_guard", "group_roles", "name", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "python_pythondistribution", "remote", "repository", "repository_version", "user_roles"]
196
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
197
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
198
+ end
195
199
  # resource path
196
200
  local_var_path = '/pulp/api/v3/distributions/python/pypi/'
197
201
 
@@ -208,7 +212,7 @@ module PulpPythonClient
208
212
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
213
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
210
214
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
215
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
212
216
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
213
217
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
214
218
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
@@ -150,13 +150,14 @@ module PulpPythonClient
150
150
  # @option opts [String] :content__in Content Unit referenced by HREF
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
- # @option opts [String] :ordering Which field to use when ordering the results.
153
+ # @option opts [Array<String>] :ordering Ordering
154
154
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
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
158
158
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
159
159
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
160
+ # @option opts [String] :repository Repository referenced by HREF
160
161
  # @option opts [String] :repository_version Repository Version referenced by HREF
161
162
  # @option opts [String] :fields A list of fields to include in the response.
162
163
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -173,13 +174,14 @@ module PulpPythonClient
173
174
  # @option opts [String] :content__in Content Unit referenced by HREF
174
175
  # @option opts [Integer] :limit Number of results to return per page.
175
176
  # @option opts [Integer] :offset The initial index from which to return the results.
176
- # @option opts [String] :ordering Which field to use when ordering the results.
177
+ # @option opts [Array<String>] :ordering Ordering
177
178
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
178
179
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
179
180
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
180
181
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
181
182
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
182
183
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
184
+ # @option opts [String] :repository Repository referenced by HREF
183
185
  # @option opts [String] :repository_version Repository Version referenced by HREF
184
186
  # @option opts [String] :fields A list of fields to include in the response.
185
187
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -188,6 +190,10 @@ module PulpPythonClient
188
190
  if @api_client.config.debugging
189
191
  @api_client.config.logger.debug 'Calling API: PublicationsPypiApi.list ...'
190
192
  end
193
+ allowable_values = ["-complete", "-distribution", "-group_roles", "-pass_through", "-pk", "-published_artifact", "-published_metadata", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-python_pythonpublication", "-repository_version", "-user_roles", "complete", "distribution", "group_roles", "pass_through", "pk", "published_artifact", "published_metadata", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "python_pythonpublication", "repository_version", "user_roles"]
194
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
195
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
196
+ end
191
197
  # resource path
192
198
  local_var_path = '/pulp/api/v3/publications/python/pypi/'
193
199
 
@@ -197,13 +203,14 @@ module PulpPythonClient
197
203
  query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
198
204
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
199
205
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
200
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
206
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
201
207
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
202
208
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
203
209
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
204
210
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
205
211
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
206
212
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
213
+ query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
207
214
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
208
215
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
209
216
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
@@ -234,7 +234,7 @@ module PulpPythonClient
234
234
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
235
235
  # @option opts [String] :name__startswith Filter results where name starts with value
236
236
  # @option opts [Integer] :offset The initial index from which to return the results.
237
- # @option opts [String] :ordering Which field to use when ordering the results.
237
+ # @option opts [Array<String>] :ordering Ordering
238
238
  # @option opts [String] :pulp_label_select Filter labels by search string
239
239
  # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
240
240
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -260,7 +260,7 @@ module PulpPythonClient
260
260
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
261
261
  # @option opts [String] :name__startswith Filter results where name starts with value
262
262
  # @option opts [Integer] :offset The initial index from which to return the results.
263
- # @option opts [String] :ordering Which field to use when ordering the results.
263
+ # @option opts [Array<String>] :ordering Ordering
264
264
  # @option opts [String] :pulp_label_select Filter labels by search string
265
265
  # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
266
266
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -275,6 +275,10 @@ module PulpPythonClient
275
275
  if @api_client.config.debugging
276
276
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.list ...'
277
277
  end
278
+ allowable_values = ["-alternatecontentsource", "-basedistribution", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-distribution", "-download_concurrency", "-group_roles", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-python_pythonremote", "-rate_limit", "-remoteartifact", "-repository", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-user_roles", "-username", "alternatecontentsource", "basedistribution", "ca_cert", "client_cert", "client_key", "connect_timeout", "distribution", "download_concurrency", "group_roles", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "python_pythonremote", "rate_limit", "remoteartifact", "repository", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "user_roles", "username"]
279
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
280
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
281
+ end
278
282
  # resource path
279
283
  local_var_path = '/pulp/api/v3/remotes/python/python/'
280
284
 
@@ -287,7 +291,7 @@ module PulpPythonClient
287
291
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
288
292
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
289
293
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
290
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
294
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
291
295
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
292
296
  query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
293
297
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
@@ -155,7 +155,7 @@ module PulpPythonClient
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
156
  # @option opts [String] :name__startswith Filter results where name starts with value
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
- # @option opts [String] :ordering Which field to use when ordering the results.
158
+ # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
160
  # @option opts [String] :fields A list of fields to include in the response.
161
161
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -175,7 +175,7 @@ module PulpPythonClient
175
175
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
176
176
  # @option opts [String] :name__startswith Filter results where name starts with value
177
177
  # @option opts [Integer] :offset The initial index from which to return the results.
178
- # @option opts [String] :ordering Which field to use when ordering the results.
178
+ # @option opts [Array<String>] :ordering Ordering
179
179
  # @option opts [String] :pulp_label_select Filter labels by search string
180
180
  # @option opts [String] :fields A list of fields to include in the response.
181
181
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -184,6 +184,10 @@ module PulpPythonClient
184
184
  if @api_client.config.debugging
185
185
  @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.list ...'
186
186
  end
187
+ allowable_values = ["-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-python_pythonrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "python_pythonrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
188
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
189
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
190
+ end
187
191
  # resource path
188
192
  local_var_path = '/pulp/api/v3/repositories/python/python/'
189
193
 
@@ -196,7 +200,7 @@ module PulpPythonClient
196
200
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
197
201
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
198
202
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
199
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
203
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
200
204
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
201
205
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
202
206
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?