pulp_2to3_migration_client 0.6.0.dev01604848161 → 0.6.0.dev01605366806

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a4507f5623170534d8bb4d64a31b176d084090b0890168fdad1f5b0d9e5ed4c
4
- data.tar.gz: aa6aeab54acede0fdcf5f4d3d51a638b1c2d172920aca89801b4a04a1ab2aa53
3
+ metadata.gz: 5cee2f9a33bafe49b97de6e681011a35887ef958237e9ace63b56f84adc6f040
4
+ data.tar.gz: ea37d43d9524359cab3cf40dce844da963ad5443a16561bc24c6a7a31579a4e6
5
5
  SHA512:
6
- metadata.gz: 58a0931e6588aff0528ae05c46e9860699f6e91b6f38248aeee444e4c293e1d7d37c04f065dc5d3880f23ac49dd1a6bc4e365b12a6f8f3e6f7938d432980da01
7
- data.tar.gz: f7c610d027de3150e89c313192bf030bfb66491b9e26ae4a47a442f7029a240de19572ff2216f02ee3fb53beec9e214bed49473a18f416f4b16f466ec601ea77
6
+ metadata.gz: '009a228a91c895ba646814b9f959f165141b1d8e3bbddf0cf679eed9053f70de836e28480cbb4380d3352281aae3aaa01e3433a2000f9afdb827807790c84cbd'
7
+ data.tar.gz: 97f8b86669ec76e892d0fbaef366b40442743d25dc98f4acc473656776e9f2eabc18fe05979e10cc7026102055426cde1405b30fe5059bb9236c062495e42022
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: 0.6.0.dev01604848161
10
+ - Package version: 0.6.0.dev01605366806
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_2to3_migration_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_2to3_migration_client-0.6.0.dev01604848161.gem
27
+ gem install ./pulp_2to3_migration_client-0.6.0.dev01605366806.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_2to3_migration_client-0.6.0.dev01604848161.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_2to3_migration_client-0.6.0.dev01605366806.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_2to3_migration_client', '~> 0.6.0.dev01604848161'
36
+ gem 'pulp_2to3_migration_client', '~> 0.6.0.dev01605366806'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
87
87
  *Pulp2to3MigrationClient::MigrationPlansApi* | [**delete**](docs/MigrationPlansApi.md#delete) | **DELETE** {pulp_2to3_migration_migration_plan_href} | Delete a migration plan
88
88
  *Pulp2to3MigrationClient::MigrationPlansApi* | [**list**](docs/MigrationPlansApi.md#list) | **GET** /pulp/api/v3/migration-plans/ | List migration plans
89
89
  *Pulp2to3MigrationClient::MigrationPlansApi* | [**read**](docs/MigrationPlansApi.md#read) | **GET** {pulp_2to3_migration_migration_plan_href} | Inspect a migration plan
90
+ *Pulp2to3MigrationClient::MigrationPlansApi* | [**reset**](docs/MigrationPlansApi.md#reset) | **POST** {pulp_2to3_migration_migration_plan_href}reset/ | Reset Pulp 3 data for plugins specified in the migration plan
90
91
  *Pulp2to3MigrationClient::MigrationPlansApi* | [**run**](docs/MigrationPlansApi.md#run) | **POST** {pulp_2to3_migration_migration_plan_href}run/ | Run migration plan
91
92
  *Pulp2to3MigrationClient::Pulp2ContentApi* | [**list**](docs/Pulp2ContentApi.md#list) | **GET** /pulp/api/v3/pulp2content/ | List pulp2 contents
92
93
  *Pulp2to3MigrationClient::Pulp2ContentApi* | [**read**](docs/Pulp2ContentApi.md#read) | **GET** {pulp_2to3_migration_pulp2_content_href} | Inspect a pulp2 content
@@ -8,6 +8,7 @@ Method | HTTP request | Description
8
8
  [**delete**](MigrationPlansApi.md#delete) | **DELETE** {pulp_2to3_migration_migration_plan_href} | Delete a migration plan
9
9
  [**list**](MigrationPlansApi.md#list) | **GET** /pulp/api/v3/migration-plans/ | List migration plans
10
10
  [**read**](MigrationPlansApi.md#read) | **GET** {pulp_2to3_migration_migration_plan_href} | Inspect a migration plan
11
+ [**reset**](MigrationPlansApi.md#reset) | **POST** {pulp_2to3_migration_migration_plan_href}reset/ | Reset Pulp 3 data for plugins specified in the migration plan
11
12
  [**run**](MigrationPlansApi.md#run) | **POST** {pulp_2to3_migration_migration_plan_href}run/ | Run migration plan
12
13
 
13
14
 
@@ -239,6 +240,61 @@ Name | Type | Description | Notes
239
240
  - **Accept**: application/json
240
241
 
241
242
 
243
+ ## reset
244
+
245
+ > AsyncOperationResponse reset(pulp_2to3_migration_migration_plan_href, pulp2to3_migration_migration_plan)
246
+
247
+ Reset Pulp 3 data for plugins specified in the migration plan
248
+
249
+ Trigger an asynchronous task to remove data from Pulp 3 related to the plugins specified in the migration plan.
250
+
251
+ ### Example
252
+
253
+ ```ruby
254
+ # load the gem
255
+ require 'pulp_2to3_migration_client'
256
+ # setup authorization
257
+ Pulp2to3MigrationClient.configure do |config|
258
+ # Configure HTTP basic authorization: basicAuth
259
+ config.username = 'YOUR USERNAME'
260
+ config.password = 'YOUR PASSWORD'
261
+ end
262
+
263
+ api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new
264
+ pulp_2to3_migration_migration_plan_href = 'pulp_2to3_migration_migration_plan_href_example' # String |
265
+ pulp2to3_migration_migration_plan = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |
266
+
267
+ begin
268
+ #Reset Pulp 3 data for plugins specified in the migration plan
269
+ result = api_instance.reset(pulp_2to3_migration_migration_plan_href, pulp2to3_migration_migration_plan)
270
+ p result
271
+ rescue Pulp2to3MigrationClient::ApiError => e
272
+ puts "Exception when calling MigrationPlansApi->reset: #{e}"
273
+ end
274
+ ```
275
+
276
+ ### Parameters
277
+
278
+
279
+ Name | Type | Description | Notes
280
+ ------------- | ------------- | ------------- | -------------
281
+ **pulp_2to3_migration_migration_plan_href** | **String**| |
282
+ **pulp2to3_migration_migration_plan** | [**Pulp2to3MigrationMigrationPlan**](Pulp2to3MigrationMigrationPlan.md)| |
283
+
284
+ ### Return type
285
+
286
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
287
+
288
+ ### Authorization
289
+
290
+ [basicAuth](../README.md#basicAuth)
291
+
292
+ ### HTTP request headers
293
+
294
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
295
+ - **Accept**: application/json
296
+
297
+
242
298
  ## run
243
299
 
244
300
  > AsyncOperationResponse run(pulp_2to3_migration_migration_plan_href, migration_plan_run)
@@ -282,6 +282,76 @@ module Pulp2to3MigrationClient
282
282
  return data, status_code, headers
283
283
  end
284
284
 
285
+ # Reset Pulp 3 data for plugins specified in the migration plan
286
+ # Trigger an asynchronous task to remove data from Pulp 3 related to the plugins specified in the migration plan.
287
+ # @param pulp_2to3_migration_migration_plan_href [String]
288
+ # @param pulp2to3_migration_migration_plan [Pulp2to3MigrationMigrationPlan]
289
+ # @param [Hash] opts the optional parameters
290
+ # @return [AsyncOperationResponse]
291
+ def reset(pulp_2to3_migration_migration_plan_href, pulp2to3_migration_migration_plan, opts = {})
292
+ data, _status_code, _headers = reset_with_http_info(pulp_2to3_migration_migration_plan_href, pulp2to3_migration_migration_plan, opts)
293
+ data
294
+ end
295
+
296
+ # Reset Pulp 3 data for plugins specified in the migration plan
297
+ # Trigger an asynchronous task to remove data from Pulp 3 related to the plugins specified in the migration plan.
298
+ # @param pulp_2to3_migration_migration_plan_href [String]
299
+ # @param pulp2to3_migration_migration_plan [Pulp2to3MigrationMigrationPlan]
300
+ # @param [Hash] opts the optional parameters
301
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
302
+ def reset_with_http_info(pulp_2to3_migration_migration_plan_href, pulp2to3_migration_migration_plan, opts = {})
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug 'Calling API: MigrationPlansApi.reset ...'
305
+ end
306
+ # verify the required parameter 'pulp_2to3_migration_migration_plan_href' is set
307
+ if @api_client.config.client_side_validation && pulp_2to3_migration_migration_plan_href.nil?
308
+ fail ArgumentError, "Missing the required parameter 'pulp_2to3_migration_migration_plan_href' when calling MigrationPlansApi.reset"
309
+ end
310
+ # verify the required parameter 'pulp2to3_migration_migration_plan' is set
311
+ if @api_client.config.client_side_validation && pulp2to3_migration_migration_plan.nil?
312
+ fail ArgumentError, "Missing the required parameter 'pulp2to3_migration_migration_plan' when calling MigrationPlansApi.reset"
313
+ end
314
+ # resource path
315
+ local_var_path = '{pulp_2to3_migration_migration_plan_href}reset/'.sub('{' + 'pulp_2to3_migration_migration_plan_href' + '}', CGI.escape(pulp_2to3_migration_migration_plan_href.to_s).gsub('%2F', '/'))
316
+
317
+ # query parameters
318
+ query_params = opts[:query_params] || {}
319
+
320
+ # header parameters
321
+ header_params = opts[:header_params] || {}
322
+ # HTTP header 'Accept' (if needed)
323
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
324
+ # HTTP header 'Content-Type'
325
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
326
+
327
+ # form parameters
328
+ form_params = opts[:form_params] || {}
329
+
330
+ # http body (model)
331
+ post_body = opts[:body] || @api_client.object_to_http_body(pulp2to3_migration_migration_plan)
332
+
333
+ # return_type
334
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
335
+
336
+ # auth_names
337
+ auth_names = opts[:auth_names] || ['basicAuth']
338
+
339
+ new_options = opts.merge(
340
+ :header_params => header_params,
341
+ :query_params => query_params,
342
+ :form_params => form_params,
343
+ :body => post_body,
344
+ :auth_names => auth_names,
345
+ :return_type => return_type
346
+ )
347
+
348
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
349
+ if @api_client.config.debugging
350
+ @api_client.config.logger.debug "API called: MigrationPlansApi#reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
351
+ end
352
+ return data, status_code, headers
353
+ end
354
+
285
355
  # Run migration plan
286
356
  # Trigger an asynchronous task to run a migration from Pulp 2.
287
357
  # @param pulp_2to3_migration_migration_plan_href [String]
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module Pulp2to3MigrationClient
14
- VERSION = '0.6.0.dev01604848161'
14
+ VERSION = '0.6.0.dev01605366806'
15
15
  end
@@ -86,6 +86,19 @@ describe 'MigrationPlansApi' do
86
86
  end
87
87
  end
88
88
 
89
+ # unit tests for reset
90
+ # Reset Pulp 3 data for plugins specified in the migration plan
91
+ # Trigger an asynchronous task to remove data from Pulp 3 related to the plugins specified in the migration plan.
92
+ # @param pulp_2to3_migration_migration_plan_href
93
+ # @param pulp2to3_migration_migration_plan
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [AsyncOperationResponse]
96
+ describe 'reset test' do
97
+ it 'should work' do
98
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
99
+ end
100
+ end
101
+
89
102
  # unit tests for run
90
103
  # Run migration plan
91
104
  # Trigger an asynchronous task to run a migration from Pulp 2.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_2to3_migration_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0.dev01604848161
4
+ version: 0.6.0.dev01605366806
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-08 00:00:00.000000000 Z
11
+ date: 2020-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday