pulp_deb_client

PulpDebClient - 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: 2.8.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:

gem build pulp_deb_client.gemspec

Then either install the gem locally:

gem install ./pulp_deb_client-2.8.0.gem

(for development, run gem install --dev ./pulp_deb_client-2.8.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_deb_client', '~> 2.8.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_deb_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:

ruby -Ilib script.rb

Getting Started

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

# Load the gem
require 'pulp_deb_client'

# Setup authorization
PulpDebClient.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR_USERNAME'
  config.password = 'YOUR_PASSWORD'
end

api_instance = PulpDebClient::ContentGenericContentsApi.new
relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
opts = {
  artifact: 'artifact_example', # String | Artifact file representing the physical content
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
  repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
}

begin
  #Create a generic content
  result = api_instance.create(relative_path, opts)
  p result
rescue PulpDebClient::ApiError => e
  puts "Exception when calling ContentGenericContentsApi->create: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://pulp

Class Method HTTP request Description
PulpDebClient::ContentGenericContentsApi create POST /pulp/api/v3/content/deb/generic_contents/ Create a generic content
PulpDebClient::ContentGenericContentsApi list GET /pulp/api/v3/content/deb/generic_contents/ List generic contents
PulpDebClient::ContentGenericContentsApi read GET deb_generic_content_href Inspect a generic content
PulpDebClient::ContentInstallerFileIndicesApi create POST /pulp/api/v3/content/deb/installer_file_indices/ Create an installer file index
PulpDebClient::ContentInstallerFileIndicesApi list GET /pulp/api/v3/content/deb/installer_file_indices/ List InstallerFileIndices
PulpDebClient::ContentInstallerFileIndicesApi read GET deb_installer_file_index_href Inspect an installer file index
PulpDebClient::ContentInstallerPackagesApi create POST /pulp/api/v3/content/deb/installer_packages/ Create an installer package
PulpDebClient::ContentInstallerPackagesApi list GET /pulp/api/v3/content/deb/installer_packages/ List installer packages
PulpDebClient::ContentInstallerPackagesApi read GET deb_installer_package_href Inspect an installer package
PulpDebClient::ContentPackageIndicesApi create POST /pulp/api/v3/content/deb/package_indices/ Create a package index
PulpDebClient::ContentPackageIndicesApi list GET /pulp/api/v3/content/deb/package_indices/ List PackageIndices
PulpDebClient::ContentPackageIndicesApi read GET deb_package_index_href Inspect a package index
PulpDebClient::ContentPackageReleaseComponentsApi create POST /pulp/api/v3/content/deb/package_release_components/ Create a package release component
PulpDebClient::ContentPackageReleaseComponentsApi list GET /pulp/api/v3/content/deb/package_release_components/ List package release components
PulpDebClient::ContentPackageReleaseComponentsApi read GET deb_package_release_component_href Inspect a package release component
PulpDebClient::ContentPackagesApi create POST /pulp/api/v3/content/deb/packages/ Create a package
PulpDebClient::ContentPackagesApi list GET /pulp/api/v3/content/deb/packages/ List packages
PulpDebClient::ContentPackagesApi read GET deb_package_href Inspect a package
PulpDebClient::ContentReleaseArchitecturesApi create POST /pulp/api/v3/content/deb/release_architectures/ Create a release architecture
PulpDebClient::ContentReleaseArchitecturesApi list GET /pulp/api/v3/content/deb/release_architectures/ List release architectures
PulpDebClient::ContentReleaseArchitecturesApi read GET deb_release_architecture_href Inspect a release architecture
PulpDebClient::ContentReleaseComponentsApi create POST /pulp/api/v3/content/deb/release_components/ Create a release component
PulpDebClient::ContentReleaseComponentsApi list GET /pulp/api/v3/content/deb/release_components/ List release components
PulpDebClient::ContentReleaseComponentsApi read GET deb_release_component_href Inspect a release component
PulpDebClient::ContentReleaseFilesApi create POST /pulp/api/v3/content/deb/release_files/ Create a release file
PulpDebClient::ContentReleaseFilesApi list GET /pulp/api/v3/content/deb/release_files/ List release files
PulpDebClient::ContentReleaseFilesApi read GET deb_release_file_href Inspect a release file
PulpDebClient::ContentReleasesApi create POST /pulp/api/v3/content/deb/releases/ Create a release
PulpDebClient::ContentReleasesApi list GET /pulp/api/v3/content/deb/releases/ List releases
PulpDebClient::ContentReleasesApi read GET deb_release_href Inspect a release
PulpDebClient::DistributionsAptApi create POST /pulp/api/v3/distributions/deb/apt/ Create an apt distribution
PulpDebClient::DistributionsAptApi delete DELETE deb_apt_distribution_href Delete an apt distribution
PulpDebClient::DistributionsAptApi list GET /pulp/api/v3/distributions/deb/apt/ List apt distributions
PulpDebClient::DistributionsAptApi partial_update PATCH deb_apt_distribution_href Update an apt distribution
PulpDebClient::DistributionsAptApi read GET deb_apt_distribution_href Inspect an apt distribution
PulpDebClient::DistributionsAptApi update PUT deb_apt_distribution_href Update an apt distribution
PulpDebClient::PublicationsAptApi create POST /pulp/api/v3/publications/deb/apt/ Create an apt publication
PulpDebClient::PublicationsAptApi delete DELETE deb_apt_publication_href Delete an apt publication
PulpDebClient::PublicationsAptApi list GET /pulp/api/v3/publications/deb/apt/ List apt publications
PulpDebClient::PublicationsAptApi read GET deb_apt_publication_href Inspect an apt publication
PulpDebClient::PublicationsVerbatimApi create POST /pulp/api/v3/publications/deb/verbatim/ Create a verbatim publication
PulpDebClient::PublicationsVerbatimApi delete DELETE deb_verbatim_publication_href Delete a verbatim publication
PulpDebClient::PublicationsVerbatimApi list GET /pulp/api/v3/publications/deb/verbatim/ List verbatim publications
PulpDebClient::PublicationsVerbatimApi read GET deb_verbatim_publication_href Inspect a verbatim publication
PulpDebClient::RemotesAptApi create POST /pulp/api/v3/remotes/deb/apt/ Create an apt remote
PulpDebClient::RemotesAptApi delete DELETE deb_apt_remote_href Delete an apt remote
PulpDebClient::RemotesAptApi list GET /pulp/api/v3/remotes/deb/apt/ List apt remotes
PulpDebClient::RemotesAptApi partial_update PATCH deb_apt_remote_href Update an apt remote
PulpDebClient::RemotesAptApi read GET deb_apt_remote_href Inspect an apt remote
PulpDebClient::RemotesAptApi update PUT deb_apt_remote_href Update an apt remote
PulpDebClient::RepositoriesAptApi create POST /pulp/api/v3/repositories/deb/apt/ Create an apt repository
PulpDebClient::RepositoriesAptApi delete DELETE deb_apt_repository_href Delete an apt repository
PulpDebClient::RepositoriesAptApi list GET /pulp/api/v3/repositories/deb/apt/ List apt repositorys
PulpDebClient::RepositoriesAptApi modify POST deb_apt_repository_hrefmodify/ Modify Repository Content
PulpDebClient::RepositoriesAptApi partial_update PATCH deb_apt_repository_href Update an apt repository
PulpDebClient::RepositoriesAptApi read GET deb_apt_repository_href Inspect an apt repository
PulpDebClient::RepositoriesAptApi sync POST deb_apt_repository_hrefsync/ Sync from remote
PulpDebClient::RepositoriesAptApi update PUT deb_apt_repository_href Update an apt repository
PulpDebClient::RepositoriesDebVersionsApi delete DELETE deb_apt_repository_version_href Delete a repository version
PulpDebClient::RepositoriesDebVersionsApi list GET deb_apt_repository_hrefversions/ List repository versions
PulpDebClient::RepositoriesDebVersionsApi read GET deb_apt_repository_version_href Inspect a repository version
PulpDebClient::RepositoriesDebVersionsApi repair POST deb_apt_repository_version_hrefrepair/

Documentation for Models

Documentation for Authorization

basicAuth

  • Type: HTTP basic authentication