pulpcore_client

PulpcoreClient - 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: 3.21.14
  • 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 pulpcore_client.gemspec

Then either install the gem locally:

“ell gem install ./pulpcore_client-3.21.14.gem

(for development, run gem install --dev ./pulpcore_client-3.21.14.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 'pulpcore_client', '~> 3.21.14'

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 'pulpcore_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 ‘pulpcore_client’

Setup authorization

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

api_instance = PulpcoreClient::AccessPoliciesApi.new opts = { customized: true, # Boolean | limit: 56, # Integer | Number of results to return per page. offset: 56, # Integer | The initial index from which to return the results. ordering: [ordering_example], # Array

Maruku could not parse this XML/HTML: 
<String> | Ordering
  viewset_name: 'viewset_name_example', # String | Filter results where viewset_name matches value
  viewset_name__contains: 'viewset_name__contains_example', # String | Filter results where viewset_name contains value
  viewset_name__icontains: 'viewset_name__icontains_example', # String | Filter results where viewset_name contains value
  viewset_name__in: ['viewset_name__in_example'], # Array<String> | Filter results where viewset_name is in a comma-separated list of values
  viewset_name__startswith: 'viewset_name__startswith_example', # String | Filter results where viewset_name starts with value
  fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
  exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
}

begin #List access policys result = api_instance.list(opts) p result rescue PulpcoreClient::ApiError => e puts “Exception when calling AccessPoliciesApi->list: #e” end

Documentation for API Endpoints

All URIs are relative to https://pulp

ClassMethodHTTP requestDescription
PulpcoreClient::AccessPoliciesApilistGET /pulp/api/v3/access_policies/List access policys
PulpcoreClient::AccessPoliciesApipartial_updatePATCH access_policy_hrefUpdate an access policy
PulpcoreClient::AccessPoliciesApireadGET access_policy_hrefInspect an access policy
PulpcoreClient::AccessPoliciesApiresetPOST access_policy_hrefreset/
PulpcoreClient::AccessPoliciesApiupdatePUT access_policy_hrefUpdate an access policy
PulpcoreClient::ArtifactsApicreatePOST /pulp/api/v3/artifacts/Create an artifact
PulpcoreClient::ArtifactsApideleteDELETE artifact_hrefDelete an artifact
PulpcoreClient::ArtifactsApilistGET /pulp/api/v3/artifacts/List artifacts
PulpcoreClient::ArtifactsApireadGET artifact_hrefInspect an artifact
PulpcoreClient::ContentApilistGET /pulp/api/v3/content/List content
PulpcoreClient::ContentguardsApilistGET /pulp/api/v3/contentguards/List content guards
PulpcoreClient::ContentguardsContentRedirectApiadd_rolePOST content_redirect_content_guard_hrefadd_role/
PulpcoreClient::ContentguardsContentRedirectApicreatePOST /pulp/api/v3/contentguards/core/content_redirect/Create a content redirect content guard
PulpcoreClient::ContentguardsContentRedirectApideleteDELETE content_redirect_content_guard_hrefDelete a content redirect content guard
PulpcoreClient::ContentguardsContentRedirectApilistGET /pulp/api/v3/contentguards/core/content_redirect/List content redirect content guards
PulpcoreClient::ContentguardsContentRedirectApilist_rolesGET content_redirect_content_guard_hreflist_roles/
PulpcoreClient::ContentguardsContentRedirectApimy_permissionsGET content_redirect_content_guard_hrefmy_permissions/
PulpcoreClient::ContentguardsContentRedirectApipartial_updatePATCH content_redirect_content_guard_hrefUpdate a content redirect content guard
PulpcoreClient::ContentguardsContentRedirectApireadGET content_redirect_content_guard_hrefInspect a content redirect content guard
PulpcoreClient::ContentguardsContentRedirectApiremove_rolePOST content_redirect_content_guard_hrefremove_role/
PulpcoreClient::ContentguardsContentRedirectApiupdatePUT content_redirect_content_guard_hrefUpdate a content redirect content guard
PulpcoreClient::ContentguardsRbacApiadd_rolePOST r_b_a_c_content_guard_hrefadd_role/
PulpcoreClient::ContentguardsRbacApicreatePOST /pulp/api/v3/contentguards/core/rbac/Create a rbac content guard
PulpcoreClient::ContentguardsRbacApideleteDELETE r_b_a_c_content_guard_hrefDelete a rbac content guard
PulpcoreClient::ContentguardsRbacApilistGET /pulp/api/v3/contentguards/core/rbac/List rbac content guards
PulpcoreClient::ContentguardsRbacApilist_rolesGET r_b_a_c_content_guard_hreflist_roles/
PulpcoreClient::ContentguardsRbacApimy_permissionsGET r_b_a_c_content_guard_hrefmy_permissions/
PulpcoreClient::ContentguardsRbacApipartial_updatePATCH r_b_a_c_content_guard_hrefUpdate a rbac content guard
PulpcoreClient::ContentguardsRbacApireadGET r_b_a_c_content_guard_hrefInspect a rbac content guard
PulpcoreClient::ContentguardsRbacApiremove_rolePOST r_b_a_c_content_guard_hrefremove_role/
PulpcoreClient::ContentguardsRbacApiupdatePUT r_b_a_c_content_guard_hrefUpdate a rbac content guard
PulpcoreClient::DistributionsApilistGET /pulp/api/v3/distributions/List distributions
PulpcoreClient::ExportersFilesystemApicreatePOST /pulp/api/v3/exporters/core/filesystem/Create a filesystem exporter
PulpcoreClient::ExportersFilesystemApideleteDELETE filesystem_exporter_hrefDelete a filesystem exporter
PulpcoreClient::ExportersFilesystemApilistGET /pulp/api/v3/exporters/core/filesystem/List filesystem exporters
PulpcoreClient::ExportersFilesystemApipartial_updatePATCH filesystem_exporter_hrefUpdate a filesystem exporter
PulpcoreClient::ExportersFilesystemApireadGET filesystem_exporter_hrefInspect a filesystem exporter
PulpcoreClient::ExportersFilesystemApiupdatePUT filesystem_exporter_hrefUpdate a filesystem exporter
PulpcoreClient::ExportersFilesystemExportsApicreatePOST filesystem_exporter_hrefexports/Create a filesystem export
PulpcoreClient::ExportersFilesystemExportsApideleteDELETE filesystem_filesystem_export_hrefDelete a filesystem export
PulpcoreClient::ExportersFilesystemExportsApilistGET filesystem_exporter_hrefexports/List filesystem exports
PulpcoreClient::ExportersFilesystemExportsApireadGET filesystem_filesystem_export_hrefInspect a filesystem export
PulpcoreClient::ExportersPulpApicreatePOST /pulp/api/v3/exporters/core/pulp/Create a pulp exporter
PulpcoreClient::ExportersPulpApideleteDELETE pulp_exporter_hrefDelete a pulp exporter
PulpcoreClient::ExportersPulpApilistGET /pulp/api/v3/exporters/core/pulp/List pulp exporters
PulpcoreClient::ExportersPulpApipartial_updatePATCH pulp_exporter_hrefUpdate a pulp exporter
PulpcoreClient::ExportersPulpApireadGET pulp_exporter_hrefInspect a pulp exporter
PulpcoreClient::ExportersPulpApiupdatePUT pulp_exporter_hrefUpdate a pulp exporter
PulpcoreClient::ExportersPulpExportsApicreatePOST pulp_exporter_hrefexports/Create a pulp export
PulpcoreClient::ExportersPulpExportsApideleteDELETE pulp_pulp_export_hrefDelete a pulp export
PulpcoreClient::ExportersPulpExportsApilistGET pulp_exporter_hrefexports/List pulp exports
PulpcoreClient::ExportersPulpExportsApireadGET pulp_pulp_export_hrefInspect a pulp export
PulpcoreClient::GroupsApiadd_rolePOST group_hrefadd_role/
PulpcoreClient::GroupsApicreatePOST /pulp/api/v3/groups/Create a group
PulpcoreClient::GroupsApideleteDELETE group_hrefDelete a group
PulpcoreClient::GroupsApilistGET /pulp/api/v3/groups/List groups
PulpcoreClient::GroupsApilist_rolesGET group_hreflist_roles/
PulpcoreClient::GroupsApimy_permissionsGET group_hrefmy_permissions/
PulpcoreClient::GroupsApipartial_updatePATCH group_hrefUpdate a group
PulpcoreClient::GroupsApireadGET group_hrefInspect a group
PulpcoreClient::GroupsApiremove_rolePOST group_hrefremove_role/
PulpcoreClient::GroupsApiupdatePUT group_hrefUpdate a group
PulpcoreClient::GroupsRolesApicreatePOST group_hrefroles/Create a group role
PulpcoreClient::GroupsRolesApideleteDELETE groups_group_role_hrefDelete a group role
PulpcoreClient::GroupsRolesApilistGET group_hrefroles/List group roles
PulpcoreClient::GroupsRolesApireadGET groups_group_role_hrefInspect a group role
PulpcoreClient::GroupsUsersApicreatePOST group_hrefusers/Create an user
PulpcoreClient::GroupsUsersApideleteDELETE groups_user_hrefDelete an user
PulpcoreClient::GroupsUsersApilistGET group_hrefusers/List users
PulpcoreClient::ImportersPulpApicreatePOST /pulp/api/v3/importers/core/pulp/Create a pulp importer
PulpcoreClient::ImportersPulpApideleteDELETE pulp_importer_hrefDelete a pulp importer
PulpcoreClient::ImportersPulpApilistGET /pulp/api/v3/importers/core/pulp/List pulp importers
PulpcoreClient::ImportersPulpApipartial_updatePATCH pulp_importer_hrefUpdate a pulp importer
PulpcoreClient::ImportersPulpApireadGET pulp_importer_hrefInspect a pulp importer
PulpcoreClient::ImportersPulpApiupdatePUT pulp_importer_hrefUpdate a pulp importer
PulpcoreClient::ImportersPulpImportCheckApipulp_import_check_postPOST /pulp/api/v3/importers/core/pulp/import-check/Validate the parameters to be used for a PulpImport call
PulpcoreClient::ImportersPulpImportsApicreatePOST pulp_importer_hrefimports/Create a pulp import
PulpcoreClient::ImportersPulpImportsApideleteDELETE pulp_pulp_import_hrefDelete a pulp import
PulpcoreClient::ImportersPulpImportsApilistGET pulp_importer_hrefimports/List pulp imports
PulpcoreClient::ImportersPulpImportsApireadGET pulp_pulp_import_hrefInspect a pulp import
PulpcoreClient::OrphansApideleteDELETE /pulp/api/v3/orphans/Delete orphans
PulpcoreClient::OrphansCleanupApicleanupPOST /pulp/api/v3/orphans/cleanup/
PulpcoreClient::PublicationsApilistGET /pulp/api/v3/publications/List publications
PulpcoreClient::RemotesApilistGET /pulp/api/v3/remotes/List remotes
PulpcoreClient::RepairApipostPOST /pulp/api/v3/repair/Repair Artifact Storage
PulpcoreClient::RepositoriesApilistGET /pulp/api/v3/repositories/List repositories
PulpcoreClient::RepositoriesReclaimSpaceApireclaimPOST /pulp/api/v3/repositories/reclaim_space/
PulpcoreClient::RepositoryVersionsApilistGET /pulp/api/v3/repository_versions/List repository versions
PulpcoreClient::RolesApicreatePOST /pulp/api/v3/roles/Create a role
PulpcoreClient::RolesApideleteDELETE role_hrefDelete a role
PulpcoreClient::RolesApilistGET /pulp/api/v3/roles/List roles
PulpcoreClient::RolesApipartial_updatePATCH role_hrefUpdate a role
PulpcoreClient::RolesApireadGET role_hrefInspect a role
PulpcoreClient::RolesApiupdatePUT role_hrefUpdate a role
PulpcoreClient::SigningServicesApilistGET /pulp/api/v3/signing-services/List signing services
PulpcoreClient::SigningServicesApireadGET signing_service_hrefInspect a signing service
PulpcoreClient::StatusApistatus_readGET /pulp/api/v3/status/Inspect status of Pulp
PulpcoreClient::TaskGroupsApilistGET /pulp/api/v3/task-groups/List task groups
PulpcoreClient::TaskGroupsApireadGET task_group_hrefInspect a task group
PulpcoreClient::TaskSchedulesApiadd_rolePOST task_schedule_hrefadd_role/
PulpcoreClient::TaskSchedulesApilistGET /pulp/api/v3/task-schedules/List task schedules
PulpcoreClient::TaskSchedulesApilist_rolesGET task_schedule_hreflist_roles/
PulpcoreClient::TaskSchedulesApimy_permissionsGET task_schedule_hrefmy_permissions/
PulpcoreClient::TaskSchedulesApireadGET task_schedule_hrefInspect a task schedule
PulpcoreClient::TaskSchedulesApiremove_rolePOST task_schedule_hrefremove_role/
PulpcoreClient::TasksApiadd_rolePOST task_hrefadd_role/
PulpcoreClient::TasksApideleteDELETE task_hrefDelete a task
PulpcoreClient::TasksApilistGET /pulp/api/v3/tasks/List tasks
PulpcoreClient::TasksApilist_rolesGET task_hreflist_roles/
PulpcoreClient::TasksApimy_permissionsGET task_hrefmy_permissions/
PulpcoreClient::TasksApipurgePOST /pulp/api/v3/tasks/purge/Purge Completed Tasks
PulpcoreClient::TasksApireadGET task_hrefInspect a task
PulpcoreClient::TasksApiremove_rolePOST task_hrefremove_role/
PulpcoreClient::TasksApitasks_cancelPATCH task_hrefCancel a task
PulpcoreClient::UploadsApiadd_rolePOST upload_hrefadd_role/
PulpcoreClient::UploadsApicommitPOST upload_hrefcommit/Finish an Upload
PulpcoreClient::UploadsApicreatePOST /pulp/api/v3/uploads/Create an upload
PulpcoreClient::UploadsApideleteDELETE upload_hrefDelete an upload
PulpcoreClient::UploadsApilistGET /pulp/api/v3/uploads/List uploads
PulpcoreClient::UploadsApilist_rolesGET upload_hreflist_roles/
PulpcoreClient::UploadsApimy_permissionsGET upload_hrefmy_permissions/
PulpcoreClient::UploadsApireadGET upload_hrefInspect an upload
PulpcoreClient::UploadsApiremove_rolePOST upload_hrefremove_role/
PulpcoreClient::UploadsApiupdatePUT upload_hrefUpload a file chunk
PulpcoreClient::UsersApicreatePOST /pulp/api/v3/users/Create an user
PulpcoreClient::UsersApideleteDELETE auth_user_hrefDelete an user
PulpcoreClient::UsersApilistGET /pulp/api/v3/users/List users
PulpcoreClient::UsersApipartial_updatePATCH auth_user_hrefUpdate an user
PulpcoreClient::UsersApireadGET auth_user_hrefInspect an user
PulpcoreClient::UsersApiupdatePUT auth_user_hrefUpdate an user
PulpcoreClient::UsersRolesApicreatePOST auth_user_hrefroles/Create an user role
PulpcoreClient::UsersRolesApideleteDELETE auth_users_user_role_hrefDelete an user role
PulpcoreClient::UsersRolesApilistGET auth_user_hrefroles/List user roles
PulpcoreClient::UsersRolesApireadGET auth_users_user_role_hrefInspect an user role
PulpcoreClient::WorkersApilistGET /pulp/api/v3/workers/List workers
PulpcoreClient::WorkersApireadGET worker_hrefInspect a worker

Documentation for Models

Documentation for Authorization

basicAuth

  • Type: HTTP basic authentication