pulp_2to3_migration_client

Pulp2to3MigrationClient - the Ruby gem for the Pulp 3 API

Fetch, Upload, Organize, and Distribute Software Packages

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: v3
  • Package version: 0.17.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://pulpproject.org

Installation

Build a gem

To build the Ruby code into a gem:

“ell gem build pulp_2to3_migration_client.gemspec

Then either install the gem locally:

“ell gem install ./pulp_2to3_migration_client-0.17.0.gem

(for development, run gem install --dev ./pulp_2to3_migration_client-0.17.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'pulp_2to3_migration_client', '~> 0.17.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'pulp_2to3_migration_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

“ell ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

“by

Load the gem

require ‘pulp_2to3_migration_client’

Setup authorization

Pulp2to3MigrationClient.configure do |config| # Configure HTTP basic authorization: basicAuth config.username = ‘YOUR_USERNAME’ config.password = ‘YOUR_PASSWORD’ end

api_instance = Pulp2to3MigrationClient::MigrationPlansApi.new pulp2to3_migration_migration_plan = Pulp2to3MigrationClient::Pulp2to3MigrationMigrationPlan.new # Pulp2to3MigrationMigrationPlan |

begin #Create a migration plan result = api_instance.create(pulp2to3_migration_migration_plan) p result rescue Pulp2to3MigrationClient::ApiError => e puts “Exception when calling MigrationPlansApi->create: #e” end

Documentation for API Endpoints

All URIs are relative to https://pulp

ClassMethodHTTP requestDescription
Pulp2to3MigrationClient::MigrationPlansApicreatePOST /pulp/api/v3/migration-plans/Create a migration plan
Pulp2to3MigrationClient::MigrationPlansApideleteDELETE pulp_2to3_migration_migration_plan_hrefDelete a migration plan
Pulp2to3MigrationClient::MigrationPlansApilistGET /pulp/api/v3/migration-plans/List migration plans
Pulp2to3MigrationClient::MigrationPlansApireadGET pulp_2to3_migration_migration_plan_hrefInspect a migration plan
Pulp2to3MigrationClient::MigrationPlansApiresetPOST pulp_2to3_migration_migration_plan_hrefreset/Reset Pulp 3 data for plugins specified in the migration plan
Pulp2to3MigrationClient::MigrationPlansApirunPOST pulp_2to3_migration_migration_plan_hrefrun/Run migration plan
Pulp2to3MigrationClient::Pulp2ContentApilistGET /pulp/api/v3/pulp2content/List pulp2 contents
Pulp2to3MigrationClient::Pulp2ContentApireadGET pulp_2to3_migration_pulp2_content_hrefInspect a pulp2 content
Pulp2to3MigrationClient::Pulp2RepositoriesApilistGET /pulp/api/v3/pulp2repositories/List pulp2 repositorys
Pulp2to3MigrationClient::Pulp2RepositoriesApireadGET pulp_2to3_migration_pulp2_repository_hrefInspect a pulp2 repository

Documentation for Models

Documentation for Authorization

basicAuth

  • Type: HTTP basic authentication