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.9.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_deb_client.gemspec

Then either install the gem locally:

“ell gem install ./pulp_deb_client-2.9.0.gem

(for development, run gem install --dev ./pulp_deb_client-2.9.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.9.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:

“ell ruby -Ilib script.rb

Getting Started

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

“by

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

ClassMethodHTTP requestDescription
PulpDebClient::ContentGenericContentsApicreatePOST /pulp/api/v3/content/deb/generic_contents/Create a generic content
PulpDebClient::ContentGenericContentsApilistGET /pulp/api/v3/content/deb/generic_contents/List generic contents
PulpDebClient::ContentGenericContentsApireadGET deb_generic_content_hrefInspect a generic content
PulpDebClient::ContentInstallerFileIndicesApicreatePOST /pulp/api/v3/content/deb/installer_file_indices/Create an installer file index
PulpDebClient::ContentInstallerFileIndicesApilistGET /pulp/api/v3/content/deb/installer_file_indices/List InstallerFileIndices
PulpDebClient::ContentInstallerFileIndicesApireadGET deb_installer_file_index_hrefInspect an installer file index
PulpDebClient::ContentInstallerPackagesApicreatePOST /pulp/api/v3/content/deb/installer_packages/Create an installer package
PulpDebClient::ContentInstallerPackagesApilistGET /pulp/api/v3/content/deb/installer_packages/List installer packages
PulpDebClient::ContentInstallerPackagesApireadGET deb_installer_package_hrefInspect an installer package
PulpDebClient::ContentPackageIndicesApicreatePOST /pulp/api/v3/content/deb/package_indices/Create a package index
PulpDebClient::ContentPackageIndicesApilistGET /pulp/api/v3/content/deb/package_indices/List PackageIndices
PulpDebClient::ContentPackageIndicesApireadGET deb_package_index_hrefInspect a package index
PulpDebClient::ContentPackageReleaseComponentsApicreatePOST /pulp/api/v3/content/deb/package_release_components/Create a package release component
PulpDebClient::ContentPackageReleaseComponentsApilistGET /pulp/api/v3/content/deb/package_release_components/List package release components
PulpDebClient::ContentPackageReleaseComponentsApireadGET deb_package_release_component_hrefInspect a package release component
PulpDebClient::ContentPackagesApicreatePOST /pulp/api/v3/content/deb/packages/Create a package
PulpDebClient::ContentPackagesApilistGET /pulp/api/v3/content/deb/packages/List packages
PulpDebClient::ContentPackagesApireadGET deb_package_hrefInspect a package
PulpDebClient::ContentReleaseArchitecturesApicreatePOST /pulp/api/v3/content/deb/release_architectures/Create a release architecture
PulpDebClient::ContentReleaseArchitecturesApilistGET /pulp/api/v3/content/deb/release_architectures/List release architectures
PulpDebClient::ContentReleaseArchitecturesApireadGET deb_release_architecture_hrefInspect a release architecture
PulpDebClient::ContentReleaseComponentsApicreatePOST /pulp/api/v3/content/deb/release_components/Create a release component
PulpDebClient::ContentReleaseComponentsApilistGET /pulp/api/v3/content/deb/release_components/List release components
PulpDebClient::ContentReleaseComponentsApireadGET deb_release_component_hrefInspect a release component
PulpDebClient::ContentReleaseFilesApicreatePOST /pulp/api/v3/content/deb/release_files/Create a release file
PulpDebClient::ContentReleaseFilesApilistGET /pulp/api/v3/content/deb/release_files/List release files
PulpDebClient::ContentReleaseFilesApireadGET deb_release_file_hrefInspect a release file
PulpDebClient::ContentReleasesApicreatePOST /pulp/api/v3/content/deb/releases/Create a release
PulpDebClient::ContentReleasesApilistGET /pulp/api/v3/content/deb/releases/List releases
PulpDebClient::ContentReleasesApireadGET deb_release_hrefInspect a release
PulpDebClient::DistributionsAptApicreatePOST /pulp/api/v3/distributions/deb/apt/Create an apt distribution
PulpDebClient::DistributionsAptApideleteDELETE deb_apt_distribution_hrefDelete an apt distribution
PulpDebClient::DistributionsAptApilistGET /pulp/api/v3/distributions/deb/apt/List apt distributions
PulpDebClient::DistributionsAptApipartial_updatePATCH deb_apt_distribution_hrefUpdate an apt distribution
PulpDebClient::DistributionsAptApireadGET deb_apt_distribution_hrefInspect an apt distribution
PulpDebClient::DistributionsAptApiupdatePUT deb_apt_distribution_hrefUpdate an apt distribution
PulpDebClient::PublicationsAptApicreatePOST /pulp/api/v3/publications/deb/apt/Create an apt publication
PulpDebClient::PublicationsAptApideleteDELETE deb_apt_publication_hrefDelete an apt publication
PulpDebClient::PublicationsAptApilistGET /pulp/api/v3/publications/deb/apt/List apt publications
PulpDebClient::PublicationsAptApireadGET deb_apt_publication_hrefInspect an apt publication
PulpDebClient::PublicationsVerbatimApicreatePOST /pulp/api/v3/publications/deb/verbatim/Create a verbatim publication
PulpDebClient::PublicationsVerbatimApideleteDELETE deb_verbatim_publication_hrefDelete a verbatim publication
PulpDebClient::PublicationsVerbatimApilistGET /pulp/api/v3/publications/deb/verbatim/List verbatim publications
PulpDebClient::PublicationsVerbatimApireadGET deb_verbatim_publication_hrefInspect a verbatim publication
PulpDebClient::RemotesAptApicreatePOST /pulp/api/v3/remotes/deb/apt/Create an apt remote
PulpDebClient::RemotesAptApideleteDELETE deb_apt_remote_hrefDelete an apt remote
PulpDebClient::RemotesAptApilistGET /pulp/api/v3/remotes/deb/apt/List apt remotes
PulpDebClient::RemotesAptApipartial_updatePATCH deb_apt_remote_hrefUpdate an apt remote
PulpDebClient::RemotesAptApireadGET deb_apt_remote_hrefInspect an apt remote
PulpDebClient::RemotesAptApiupdatePUT deb_apt_remote_hrefUpdate an apt remote
PulpDebClient::RepositoriesAptApicreatePOST /pulp/api/v3/repositories/deb/apt/Create an apt repository
PulpDebClient::RepositoriesAptApideleteDELETE deb_apt_repository_hrefDelete an apt repository
PulpDebClient::RepositoriesAptApilistGET /pulp/api/v3/repositories/deb/apt/List apt repositorys
PulpDebClient::RepositoriesAptApimodifyPOST deb_apt_repository_hrefmodify/Modify Repository Content
PulpDebClient::RepositoriesAptApipartial_updatePATCH deb_apt_repository_hrefUpdate an apt repository
PulpDebClient::RepositoriesAptApireadGET deb_apt_repository_hrefInspect an apt repository
PulpDebClient::RepositoriesAptApisyncPOST deb_apt_repository_hrefsync/Sync from remote
PulpDebClient::RepositoriesAptApiupdatePUT deb_apt_repository_hrefUpdate an apt repository
PulpDebClient::RepositoriesDebVersionsApideleteDELETE deb_apt_repository_version_hrefDelete a repository version
PulpDebClient::RepositoriesDebVersionsApilistGET deb_apt_repository_hrefversions/List repository versions
PulpDebClient::RepositoriesDebVersionsApireadGET deb_apt_repository_version_hrefInspect a repository version
PulpDebClient::RepositoriesDebVersionsApirepairPOST deb_apt_repository_version_hrefrepair/

Documentation for Models

Documentation for Authorization

basicAuth

  • Type: HTTP basic authentication