pulpcore_client 3.60.0 → 3.62.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/ArtifactDistributionResponse.md +12 -12
  4. data/docs/DomainBackendMigrator.md +19 -0
  5. data/docs/DomainsApi.md +54 -0
  6. data/docs/PatchedUpstreamPulp.md +2 -2
  7. data/docs/PublicationsApi.md +2 -2
  8. data/docs/RepositoryVersionsApi.md +2 -2
  9. data/docs/UpstreamPulp.md +2 -2
  10. data/docs/UpstreamPulpResponse.md +2 -2
  11. data/docs/UpstreamPulpsApi.md +56 -0
  12. data/lib/pulpcore_client/api/domains_api.rb +64 -0
  13. data/lib/pulpcore_client/api/publications_api.rb +3 -3
  14. data/lib/pulpcore_client/api/repository_versions_api.rb +3 -3
  15. data/lib/pulpcore_client/api/upstream_pulps_api.rb +88 -0
  16. data/lib/pulpcore_client/models/artifact_distribution_response.rb +50 -50
  17. data/lib/pulpcore_client/models/domain_backend_migrator.rb +228 -0
  18. data/lib/pulpcore_client/models/patched_upstream_pulp.rb +9 -9
  19. data/lib/pulpcore_client/models/upstream_pulp.rb +9 -9
  20. data/lib/pulpcore_client/models/upstream_pulp_response.rb +9 -9
  21. data/lib/pulpcore_client/version.rb +1 -1
  22. data/lib/pulpcore_client.rb +1 -0
  23. data/spec/api/domains_api_spec.rb +12 -0
  24. data/spec/api/publications_api_spec.rb +1 -1
  25. data/spec/api/repository_versions_api_spec.rb +1 -1
  26. data/spec/api/upstream_pulps_api_spec.rb +28 -0
  27. data/spec/models/artifact_distribution_response_spec.rb +10 -10
  28. data/spec/models/domain_backend_migrator_spec.rb +47 -0
  29. data/spec/models/patched_upstream_pulp_spec.rb +1 -1
  30. data/spec/models/upstream_pulp_response_spec.rb +1 -1
  31. data/spec/models/upstream_pulp_spec.rb +1 -1
  32. metadata +156 -152
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c4a5079a3b1bbfb198e13a96ef409856cae46b0da16a8dce80ff19946e2dcba
4
- data.tar.gz: 98acd9bbbc6f90015b4c27c15512ec0f7017132f5e50eab73a11f80f72137667
3
+ metadata.gz: 88f5b31fa8396c471b8816972c252c8b711222e2615fe1ecc93a78b761cc0cec
4
+ data.tar.gz: 83c35a338ced3e520923a593db523350e527498a444eede79e031d13182d5eed
5
5
  SHA512:
6
- metadata.gz: 468e2f26f59fc76f9e174fa72363f048d3450b6670218e9b90032ef8855a4a539c577d19bdac91254a3987d1042e2b0174e662f5ca069fa43b98f0e4963ea77c
7
- data.tar.gz: 6a021eaee58f3fb751f2af2609b89eae6bd873a1b5fee8c64346f0b55e5cd7fccbc45c75aa709f36f5c205ee2cf536f98ec1ef24e6b1db810f40c64b640c41d7
6
+ metadata.gz: 7ee11f2846f243735860d2ff47f37cfd481bc2fd8c74651ecce75f2ed7aa6a3b7efb7302a8f43fc1336547037ed6aa84de53451d665379e3e9632fd7324f831c
7
+ data.tar.gz: 84d0fdf6b6a3f3350940516ca8d193df220db15b5e94ec1dc1d038233f3079533c9e1da1a943cda41565f4d40670ac4e3b625ade252187e3d7509783da1914bc
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.60.0
10
+ - Package version: 3.62.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 pulpcore_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulpcore_client-3.60.0.gem
27
+ gem install ./pulpcore_client-3.62.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulpcore_client-3.60.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulpcore_client-3.62.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 'pulpcore_client', '~> 3.60.0'
36
+ gem 'pulpcore_client', '~> 3.62.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -159,6 +159,7 @@ Class | Method | HTTP request | Description
159
159
  *PulpcoreClient::DomainsApi* | [**create**](docs/DomainsApi.md#create) | **POST** /pulp/api/v3/domains/ | Create a domain
160
160
  *PulpcoreClient::DomainsApi* | [**delete**](docs/DomainsApi.md#delete) | **DELETE** {domain_href} | Delete a domain
161
161
  *PulpcoreClient::DomainsApi* | [**list**](docs/DomainsApi.md#list) | **GET** /pulp/api/v3/domains/ | List domains
162
+ *PulpcoreClient::DomainsApi* | [**migrate**](docs/DomainsApi.md#migrate) | **POST** /pulp/api/v3/domains/migrate/ | Migrate storage backend
162
163
  *PulpcoreClient::DomainsApi* | [**partial_update**](docs/DomainsApi.md#partial_update) | **PATCH** {domain_href} | Update a domain
163
164
  *PulpcoreClient::DomainsApi* | [**read**](docs/DomainsApi.md#read) | **GET** {domain_href} | Inspect a domain
164
165
  *PulpcoreClient::DomainsApi* | [**update**](docs/DomainsApi.md#update) | **PUT** {domain_href} | Update a domain
@@ -302,6 +303,7 @@ Class | Method | HTTP request | Description
302
303
  - [PulpcoreClient::DatabaseConnectionResponse](docs/DatabaseConnectionResponse.md)
303
304
  - [PulpcoreClient::DistributionResponse](docs/DistributionResponse.md)
304
305
  - [PulpcoreClient::Domain](docs/Domain.md)
306
+ - [PulpcoreClient::DomainBackendMigrator](docs/DomainBackendMigrator.md)
305
307
  - [PulpcoreClient::DomainResponse](docs/DomainResponse.md)
306
308
  - [PulpcoreClient::EvaluationResponse](docs/EvaluationResponse.md)
307
309
  - [PulpcoreClient::FilesystemExport](docs/FilesystemExport.md)
@@ -4,32 +4,32 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
8
7
  **pulp_labels** | **Hash<String, String>** | | [optional]
9
- **pulp_href** | **String** | | [optional] [readonly]
10
- **content_guard** | **String** | An optional content-guard. | [optional]
11
8
  **no_content_change_since** | **String** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly]
9
+ **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
12
10
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
13
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
14
11
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
12
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
13
+ **pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
14
+ **pulp_href** | **String** | | [optional] [readonly]
15
+ **content_guard** | **String** | An optional content-guard. | [optional]
15
16
  **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
16
- **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
17
17
 
18
18
  ## Code Sample
19
19
 
20
20
  ```ruby
21
21
  require 'PulpcoreClient'
22
22
 
23
- instance = PulpcoreClient::ArtifactDistributionResponse.new(pulp_last_updated: null,
24
- pulp_labels: null,
25
- pulp_href: null,
26
- content_guard: null,
23
+ instance = PulpcoreClient::ArtifactDistributionResponse.new(pulp_labels: null,
27
24
  no_content_change_since: null,
25
+ base_url: null,
28
26
  name: null,
29
- base_path: null,
30
27
  pulp_created: null,
31
- hidden: null,
32
- base_url: null)
28
+ base_path: null,
29
+ pulp_last_updated: null,
30
+ pulp_href: null,
31
+ content_guard: null,
32
+ hidden: null)
33
33
  ```
34
34
 
35
35
 
@@ -0,0 +1,19 @@
1
+ # PulpcoreClient::DomainBackendMigrator
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **storage_class** | [**StorageClassEnum**](StorageClassEnum.md) | The new backend storage class to migrate to. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage |
8
+ **storage_settings** | [**Object**](.md) | The settings for the new storage class to migrate to. |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpcoreClient'
14
+
15
+ instance = PulpcoreClient::DomainBackendMigrator.new(storage_class: null,
16
+ storage_settings: null)
17
+ ```
18
+
19
+
data/docs/DomainsApi.md CHANGED
@@ -7,6 +7,7 @@ Method | HTTP request | Description
7
7
  [**create**](DomainsApi.md#create) | **POST** /pulp/api/v3/domains/ | Create a domain
8
8
  [**delete**](DomainsApi.md#delete) | **DELETE** {domain_href} | Delete a domain
9
9
  [**list**](DomainsApi.md#list) | **GET** /pulp/api/v3/domains/ | List domains
10
+ [**migrate**](DomainsApi.md#migrate) | **POST** /pulp/api/v3/domains/migrate/ | Migrate storage backend
10
11
  [**partial_update**](DomainsApi.md#partial_update) | **PATCH** {domain_href} | Update a domain
11
12
  [**read**](DomainsApi.md#read) | **GET** {domain_href} | Inspect a domain
12
13
  [**update**](DomainsApi.md#update) | **PUT** {domain_href} | Update a domain
@@ -206,6 +207,59 @@ Name | Type | Description | Notes
206
207
  - **Accept**: application/json
207
208
 
208
209
 
210
+ ## migrate
211
+
212
+ > AsyncOperationResponse migrate(domain_backend_migrator)
213
+
214
+ Migrate storage backend
215
+
216
+ Migrate the domain's storage backend to a new one. Launches a background task to copy the domain's artifacts over to the supplied storage backend. Then updates the domain's storage settings to the new storage backend. This task does not delete the stored files of the artifacts from the previous backend. **IMPORTANT** This task will block all other tasks within the domain until the migration is completed, essentially putting the domain into a read only state. Content will still be served from the old storage backend until the migration has completed, so don't remove the old backend until then. Note, this endpoint is not allowed on the default domain. This feature is in Tech Preview and is subject to future change and thus not guaranteed to be backwards compatible.
217
+
218
+ ### Example
219
+
220
+ ```ruby
221
+ # load the gem
222
+ require 'pulpcore_client'
223
+ # setup authorization
224
+ PulpcoreClient.configure do |config|
225
+ # Configure HTTP basic authorization: basicAuth
226
+ config.username = 'YOUR USERNAME'
227
+ config.password = 'YOUR PASSWORD'
228
+ end
229
+
230
+ api_instance = PulpcoreClient::DomainsApi.new
231
+ domain_backend_migrator = PulpcoreClient::DomainBackendMigrator.new # DomainBackendMigrator |
232
+
233
+ begin
234
+ #Migrate storage backend
235
+ result = api_instance.migrate(domain_backend_migrator)
236
+ p result
237
+ rescue PulpcoreClient::ApiError => e
238
+ puts "Exception when calling DomainsApi->migrate: #{e}"
239
+ end
240
+ ```
241
+
242
+ ### Parameters
243
+
244
+
245
+ Name | Type | Description | Notes
246
+ ------------- | ------------- | ------------- | -------------
247
+ **domain_backend_migrator** | [**DomainBackendMigrator**](DomainBackendMigrator.md)| |
248
+
249
+ ### Return type
250
+
251
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
252
+
253
+ ### Authorization
254
+
255
+ [basicAuth](../README.md#basicAuth)
256
+
257
+ ### HTTP request headers
258
+
259
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
260
+ - **Accept**: application/json
261
+
262
+
209
263
  ## partial_update
210
264
 
211
265
  > AsyncOperationResponse partial_update(domain_href, patched_domain)
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
15
15
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
16
16
  **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
17
- **pulp_label_select** | **String** | One or more comma separated labels that will be used to filter distributions on the upstream Pulp. E.g. \"foo=bar,key=val\" or \"foo,key\" | [optional]
17
+ **q_select** | **String** | Filter distributions on the upstream Pulp using complex filtering. E.g. pulp_label_select=\"foo\" OR pulp_label_select=\"key=val\" | [optional]
18
18
 
19
19
  ## Code Sample
20
20
 
@@ -31,7 +31,7 @@ instance = PulpcoreClient::PatchedUpstreamPulp.new(name: null,
31
31
  tls_validation: null,
32
32
  username: null,
33
33
  password: null,
34
- pulp_label_select: null)
34
+ q_select: null)
35
35
  ```
36
36
 
37
37
 
@@ -31,7 +31,7 @@ end
31
31
  api_instance = PulpcoreClient::PublicationsApi.new
32
32
  opts = {
33
33
  content: 'content_example', # String | Content Unit referenced by HREF
34
- content__in: 'content__in_example', # String | Content Unit referenced by HREF
34
+ content__in: ['content__in_example'], # Array<String> | Multiple values may be separated by commas.
35
35
  limit: 56, # Integer | Number of results to return per page.
36
36
  offset: 56, # Integer | The initial index from which to return the results.
37
37
  ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
@@ -67,7 +67,7 @@ end
67
67
  Name | Type | Description | Notes
68
68
  ------------- | ------------- | ------------- | -------------
69
69
  **content** | **String**| Content Unit referenced by HREF | [optional]
70
- **content__in** | **String**| Content Unit referenced by HREF | [optional]
70
+ **content__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
71
71
  **limit** | **Integer**| Number of results to return per page. | [optional]
72
72
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
73
73
  **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional]
@@ -31,7 +31,7 @@ end
31
31
  api_instance = PulpcoreClient::RepositoryVersionsApi.new
32
32
  opts = {
33
33
  content: 'content_example', # String | Content Unit referenced by HREF
34
- content__in: 'content__in_example', # String | Content Unit referenced by HREF
34
+ content__in: ['content__in_example'], # Array<String> | Multiple values may be separated by commas.
35
35
  limit: 56, # Integer | Number of results to return per page.
36
36
  number: 56, # Integer | Filter results where number matches value
37
37
  number__gt: 56, # Integer | Filter results where number is greater than value
@@ -68,7 +68,7 @@ end
68
68
  Name | Type | Description | Notes
69
69
  ------------- | ------------- | ------------- | -------------
70
70
  **content** | **String**| Content Unit referenced by HREF | [optional]
71
- **content__in** | **String**| Content Unit referenced by HREF | [optional]
71
+ **content__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
72
72
  **limit** | **Integer**| Number of results to return per page. | [optional]
73
73
  **number** | **Integer**| Filter results where number matches value | [optional]
74
74
  **number__gt** | **Integer**| Filter results where number is greater than value | [optional]
data/docs/UpstreamPulp.md CHANGED
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
15
15
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
16
16
  **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
17
- **pulp_label_select** | **String** | One or more comma separated labels that will be used to filter distributions on the upstream Pulp. E.g. \&quot;foo&#x3D;bar,key&#x3D;val\&quot; or \&quot;foo,key\&quot; | [optional]
17
+ **q_select** | **String** | Filter distributions on the upstream Pulp using complex filtering. E.g. pulp_label_select&#x3D;\&quot;foo\&quot; OR pulp_label_select&#x3D;\&quot;key&#x3D;val\&quot; | [optional]
18
18
 
19
19
  ## Code Sample
20
20
 
@@ -31,7 +31,7 @@ instance = PulpcoreClient::UpstreamPulp.new(name: null,
31
31
  tls_validation: null,
32
32
  username: null,
33
33
  password: null,
34
- pulp_label_select: null)
34
+ q_select: null)
35
35
  ```
36
36
 
37
37
 
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
15
15
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
16
16
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
17
17
  **hidden_fields** | [**Array&lt;RemoteResponseHiddenFields&gt;**](RemoteResponseHiddenFields.md) | List of hidden (write only) fields | [optional] [readonly]
18
- **pulp_label_select** | **String** | One or more comma separated labels that will be used to filter distributions on the upstream Pulp. E.g. \&quot;foo&#x3D;bar,key&#x3D;val\&quot; or \&quot;foo,key\&quot; | [optional]
18
+ **q_select** | **String** | Filter distributions on the upstream Pulp using complex filtering. E.g. pulp_label_select&#x3D;\&quot;foo\&quot; OR pulp_label_select&#x3D;\&quot;key&#x3D;val\&quot; | [optional]
19
19
  **last_replication** | **DateTime** | Timestamp of the last replication that occurred. Equals to &#39;null&#39; if no replication task has been executed. | [optional] [readonly]
20
20
 
21
21
  ## Code Sample
@@ -34,7 +34,7 @@ instance = PulpcoreClient::UpstreamPulpResponse.new(pulp_href: null,
34
34
  client_cert: null,
35
35
  tls_validation: null,
36
36
  hidden_fields: null,
37
- pulp_label_select: null,
37
+ q_select: null,
38
38
  last_replication: null)
39
39
  ```
40
40
 
@@ -200,8 +200,36 @@ end
200
200
 
201
201
  api_instance = PulpcoreClient::UpstreamPulpsApi.new
202
202
  opts = {
203
+ base_url: 'base_url_example', # String | Filter results where base_url matches value
204
+ base_url__contains: 'base_url__contains_example', # String | Filter results where base_url contains value
205
+ base_url__icontains: 'base_url__icontains_example', # String | Filter results where base_url contains value
206
+ base_url__iexact: 'base_url__iexact_example', # String | Filter results where base_url matches value
207
+ base_url__in: ['base_url__in_example'], # Array<String> | Filter results where base_url is in a comma-separated list of values
208
+ base_url__iregex: 'base_url__iregex_example', # String | Filter results where base_url matches regex value
209
+ base_url__istartswith: 'base_url__istartswith_example', # String | Filter results where base_url starts with value
210
+ base_url__regex: 'base_url__regex_example', # String | Filter results where base_url matches regex value
211
+ base_url__startswith: 'base_url__startswith_example', # String | Filter results where base_url starts with value
212
+ last_replication: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where last_replication matches value
213
+ last_replication__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where last_replication is greater than value
214
+ last_replication__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where last_replication is greater than or equal to value
215
+ last_replication__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where last_replication is less than value
216
+ last_replication__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where last_replication is less than or equal to value
217
+ last_replication__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where last_replication is between two comma separated values
203
218
  limit: 56, # Integer | Number of results to return per page.
219
+ name: 'name_example', # String | Filter results where name matches value
220
+ name__contains: 'name__contains_example', # String | Filter results where name contains value
221
+ name__icontains: 'name__icontains_example', # String | Filter results where name contains value
222
+ name__iexact: 'name__iexact_example', # String | Filter results where name matches value
223
+ name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
224
+ name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
225
+ name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
226
+ name__regex: 'name__regex_example', # String | Filter results where name matches regex value
227
+ name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
204
228
  offset: 56, # Integer | The initial index from which to return the results.
229
+ ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `base_url` - Base url * `-base_url` - Base url (descending) * `api_root` - Api root * `-api_root` - Api root (descending) * `domain` - Domain * `-domain` - Domain (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `pulp_label_select` - Pulp label select * `-pulp_label_select` - Pulp label select (descending) * `q_select` - Q select * `-q_select` - Q select (descending) * `last_replication` - Last replication * `-last_replication` - Last replication (descending) * `pk` - Pk * `-pk` - Pk (descending)
230
+ pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
231
+ pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
232
+ q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
205
233
  fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
206
234
  exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
207
235
  }
@@ -220,8 +248,36 @@ end
220
248
 
221
249
  Name | Type | Description | Notes
222
250
  ------------- | ------------- | ------------- | -------------
251
+ **base_url** | **String**| Filter results where base_url matches value | [optional]
252
+ **base_url__contains** | **String**| Filter results where base_url contains value | [optional]
253
+ **base_url__icontains** | **String**| Filter results where base_url contains value | [optional]
254
+ **base_url__iexact** | **String**| Filter results where base_url matches value | [optional]
255
+ **base_url__in** | [**Array&lt;String&gt;**](String.md)| Filter results where base_url is in a comma-separated list of values | [optional]
256
+ **base_url__iregex** | **String**| Filter results where base_url matches regex value | [optional]
257
+ **base_url__istartswith** | **String**| Filter results where base_url starts with value | [optional]
258
+ **base_url__regex** | **String**| Filter results where base_url matches regex value | [optional]
259
+ **base_url__startswith** | **String**| Filter results where base_url starts with value | [optional]
260
+ **last_replication** | **DateTime**| Filter results where last_replication matches value | [optional]
261
+ **last_replication__gt** | **DateTime**| Filter results where last_replication is greater than value | [optional]
262
+ **last_replication__gte** | **DateTime**| Filter results where last_replication is greater than or equal to value | [optional]
263
+ **last_replication__lt** | **DateTime**| Filter results where last_replication is less than value | [optional]
264
+ **last_replication__lte** | **DateTime**| Filter results where last_replication is less than or equal to value | [optional]
265
+ **last_replication__range** | [**Array&lt;DateTime&gt;**](DateTime.md)| Filter results where last_replication is between two comma separated values | [optional]
223
266
  **limit** | **Integer**| Number of results to return per page. | [optional]
267
+ **name** | **String**| Filter results where name matches value | [optional]
268
+ **name__contains** | **String**| Filter results where name contains value | [optional]
269
+ **name__icontains** | **String**| Filter results where name contains value | [optional]
270
+ **name__iexact** | **String**| Filter results where name matches value | [optional]
271
+ **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
272
+ **name__iregex** | **String**| Filter results where name matches regex value | [optional]
273
+ **name__istartswith** | **String**| Filter results where name starts with value | [optional]
274
+ **name__regex** | **String**| Filter results where name matches regex value | [optional]
275
+ **name__startswith** | **String**| Filter results where name starts with value | [optional]
224
276
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
277
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;base_url&#x60; - Base url * &#x60;-base_url&#x60; - Base url (descending) * &#x60;api_root&#x60; - Api root * &#x60;-api_root&#x60; - Api root (descending) * &#x60;domain&#x60; - Domain * &#x60;-domain&#x60; - Domain (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;pulp_label_select&#x60; - Pulp label select * &#x60;-pulp_label_select&#x60; - Pulp label select (descending) * &#x60;q_select&#x60; - Q select * &#x60;-q_select&#x60; - Q select (descending) * &#x60;last_replication&#x60; - Last replication * &#x60;-last_replication&#x60; - Last replication (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional]
278
+ **pulp_href__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
279
+ **pulp_id__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
280
+ **q** | **String**| Filter results by using NOT, AND and OR operations on other filters | [optional]
225
281
  **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
226
282
  **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
227
283
 
@@ -256,6 +256,70 @@ module PulpcoreClient
256
256
  return data, status_code, headers
257
257
  end
258
258
 
259
+ # Migrate storage backend
260
+ # Migrate the domain's storage backend to a new one. Launches a background task to copy the domain's artifacts over to the supplied storage backend. Then updates the domain's storage settings to the new storage backend. This task does not delete the stored files of the artifacts from the previous backend. **IMPORTANT** This task will block all other tasks within the domain until the migration is completed, essentially putting the domain into a read only state. Content will still be served from the old storage backend until the migration has completed, so don't remove the old backend until then. Note, this endpoint is not allowed on the default domain. This feature is in Tech Preview and is subject to future change and thus not guaranteed to be backwards compatible.
261
+ # @param domain_backend_migrator [DomainBackendMigrator]
262
+ # @param [Hash] opts the optional parameters
263
+ # @return [AsyncOperationResponse]
264
+ def migrate(domain_backend_migrator, opts = {})
265
+ data, _status_code, _headers = migrate_with_http_info(domain_backend_migrator, opts)
266
+ data
267
+ end
268
+
269
+ # Migrate storage backend
270
+ # Migrate the domain&#39;s storage backend to a new one. Launches a background task to copy the domain&#39;s artifacts over to the supplied storage backend. Then updates the domain&#39;s storage settings to the new storage backend. This task does not delete the stored files of the artifacts from the previous backend. **IMPORTANT** This task will block all other tasks within the domain until the migration is completed, essentially putting the domain into a read only state. Content will still be served from the old storage backend until the migration has completed, so don&#39;t remove the old backend until then. Note, this endpoint is not allowed on the default domain. This feature is in Tech Preview and is subject to future change and thus not guaranteed to be backwards compatible.
271
+ # @param domain_backend_migrator [DomainBackendMigrator]
272
+ # @param [Hash] opts the optional parameters
273
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
274
+ def migrate_with_http_info(domain_backend_migrator, opts = {})
275
+ if @api_client.config.debugging
276
+ @api_client.config.logger.debug 'Calling API: DomainsApi.migrate ...'
277
+ end
278
+ # verify the required parameter 'domain_backend_migrator' is set
279
+ if @api_client.config.client_side_validation && domain_backend_migrator.nil?
280
+ fail ArgumentError, "Missing the required parameter 'domain_backend_migrator' when calling DomainsApi.migrate"
281
+ end
282
+ # resource path
283
+ local_var_path = '/pulp/api/v3/domains/migrate/'
284
+
285
+ # query parameters
286
+ query_params = opts[:query_params] || {}
287
+
288
+ # header parameters
289
+ header_params = opts[:header_params] || {}
290
+ # HTTP header 'Accept' (if needed)
291
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
292
+ # HTTP header 'Content-Type'
293
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
294
+
295
+ # form parameters
296
+ form_params = opts[:form_params] || {}
297
+
298
+ # http body (model)
299
+ post_body = opts[:body] || @api_client.object_to_http_body(domain_backend_migrator)
300
+
301
+ # return_type
302
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
303
+
304
+ # auth_names
305
+ auth_names = opts[:auth_names] || ['basicAuth']
306
+
307
+ new_options = opts.merge(
308
+ :header_params => header_params,
309
+ :query_params => query_params,
310
+ :form_params => form_params,
311
+ :body => post_body,
312
+ :auth_names => auth_names,
313
+ :return_type => return_type
314
+ )
315
+
316
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
317
+ if @api_client.config.debugging
318
+ @api_client.config.logger.debug "API called: DomainsApi#migrate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
319
+ end
320
+ return data, status_code, headers
321
+ end
322
+
259
323
  # Update a domain
260
324
  # Trigger an asynchronous partial update task
261
325
  # @param domain_href [String]
@@ -23,7 +23,7 @@ module PulpcoreClient
23
23
  # A base class for any publication viewset.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :content Content Unit referenced by HREF
26
- # @option opts [String] :content__in Content Unit referenced by HREF
26
+ # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
27
27
  # @option opts [Integer] :limit Number of results to return per page.
28
28
  # @option opts [Integer] :offset The initial index from which to return the results.
29
29
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -52,7 +52,7 @@ module PulpcoreClient
52
52
  # A base class for any publication viewset.
53
53
  # @param [Hash] opts the optional parameters
54
54
  # @option opts [String] :content Content Unit referenced by HREF
55
- # @option opts [String] :content__in Content Unit referenced by HREF
55
+ # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
56
56
  # @option opts [Integer] :limit Number of results to return per page.
57
57
  # @option opts [Integer] :offset The initial index from which to return the results.
58
58
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -94,7 +94,7 @@ module PulpcoreClient
94
94
  # query parameters
95
95
  query_params = opts[:query_params] || {}
96
96
  query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
97
- query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
97
+ query_params[:'content__in'] = @api_client.build_collection_param(opts[:'content__in'], :csv) if !opts[:'content__in'].nil?
98
98
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
99
99
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
100
100
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
@@ -23,7 +23,7 @@ module PulpcoreClient
23
23
  # A mixin to hold the shared get_queryset logic used by RepositoryVersionViewSets.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :content Content Unit referenced by HREF
26
- # @option opts [String] :content__in Content Unit referenced by HREF
26
+ # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
27
27
  # @option opts [Integer] :limit Number of results to return per page.
28
28
  # @option opts [Integer] :number Filter results where number matches value
29
29
  # @option opts [Integer] :number__gt Filter results where number is greater than value
@@ -53,7 +53,7 @@ module PulpcoreClient
53
53
  # A mixin to hold the shared get_queryset logic used by RepositoryVersionViewSets.
54
54
  # @param [Hash] opts the optional parameters
55
55
  # @option opts [String] :content Content Unit referenced by HREF
56
- # @option opts [String] :content__in Content Unit referenced by HREF
56
+ # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
57
57
  # @option opts [Integer] :limit Number of results to return per page.
58
58
  # @option opts [Integer] :number Filter results where number matches value
59
59
  # @option opts [Integer] :number__gt Filter results where number is greater than value
@@ -88,7 +88,7 @@ module PulpcoreClient
88
88
  # query parameters
89
89
  query_params = opts[:query_params] || {}
90
90
  query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
91
- query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
91
+ query_params[:'content__in'] = @api_client.build_collection_param(opts[:'content__in'], :csv) if !opts[:'content__in'].nil?
92
92
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
93
93
  query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
94
94
  query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?