pulp_rpm-client

Fetch, Upload, Organize, and Distribute Software Packages

This Python package is automatically generated by the OpenAPI Generator project:

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

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import pulpcore.client.pulp_rpm

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import pulpcore.client.pulp_rpm

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function

import time
import pulpcore.client.pulp_rpm
from pulpcore.client.pulp_rpm.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://pulp
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_rpm.Configuration(
    host = "http://pulp"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
    username = 'YOUR_USERNAME',
    password = 'YOUR_PASSWORD'
)

# Configure API key authorization: cookieAuth
configuration = pulpcore.client.pulp_rpm.Configuration(
    host = "http://pulp",
    api_key = {
        'sessionid': 'YOUR_API_KEY'
    }
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['sessionid'] = 'Bearer'


# Enter a context with an instance of the API client
with pulpcore.client.pulp_rpm.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pulpcore.client.pulp_rpm.AcsRpmApi(api_client)
    rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # str | 
nested_role = pulpcore.client.pulp_rpm.NestedRole() # NestedRole | 

    try:
        # Add a role
        api_response = api_instance.add_role(rpm_rpm_alternate_content_source_href, nested_role)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AcsRpmApi->add_role: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://pulp

Class Method HTTP request Description
AcsRpmApi add_role POST {rpm_rpm_alternate_content_source_href}add_role/ Add a role
AcsRpmApi create POST /pulp/api/v3/acs/rpm/rpm/ Create a rpm alternate content source
AcsRpmApi delete DELETE {rpm_rpm_alternate_content_source_href} Delete a rpm alternate content source
AcsRpmApi list GET /pulp/api/v3/acs/rpm/rpm/ List rpm alternate content sources
AcsRpmApi list_roles GET {rpm_rpm_alternate_content_source_href}list_roles/ List roles
AcsRpmApi my_permissions GET {rpm_rpm_alternate_content_source_href}my_permissions/ List user permissions
AcsRpmApi partial_update PATCH {rpm_rpm_alternate_content_source_href} Update a rpm alternate content source
AcsRpmApi read GET {rpm_rpm_alternate_content_source_href} Inspect a rpm alternate content source
AcsRpmApi refresh POST {rpm_rpm_alternate_content_source_href}refresh/
AcsRpmApi remove_role POST {rpm_rpm_alternate_content_source_href}remove_role/ Remove a role
AcsRpmApi update PUT {rpm_rpm_alternate_content_source_href} Update a rpm alternate content source
ContentAdvisoriesApi create POST /pulp/api/v3/content/rpm/advisories/ Create an update record
ContentAdvisoriesApi list GET /pulp/api/v3/content/rpm/advisories/ List update records
ContentAdvisoriesApi read GET {rpm_update_record_href} Inspect an update record
ContentDistributionTreesApi list GET /pulp/api/v3/content/rpm/distribution_trees/ List distribution trees
ContentDistributionTreesApi read GET {rpm_distribution_tree_href} Inspect a distribution tree
ContentModulemdDefaultsApi create POST /pulp/api/v3/content/rpm/modulemd_defaults/ Create a modulemd defaults
ContentModulemdDefaultsApi list GET /pulp/api/v3/content/rpm/modulemd_defaults/ List modulemd defaultss
ContentModulemdDefaultsApi read GET {rpm_modulemd_defaults_href} Inspect a modulemd defaults
ContentModulemdObsoletesApi create POST /pulp/api/v3/content/rpm/modulemd_obsoletes/ Create a modulemd obsolete
ContentModulemdObsoletesApi list GET /pulp/api/v3/content/rpm/modulemd_obsoletes/ List modulemd obsoletes
ContentModulemdObsoletesApi read GET {rpm_modulemd_obsolete_href} Inspect a modulemd obsolete
ContentModulemdsApi create POST /pulp/api/v3/content/rpm/modulemds/ Create a modulemd
ContentModulemdsApi list GET /pulp/api/v3/content/rpm/modulemds/ List modulemds
ContentModulemdsApi read GET {rpm_modulemd_href} Inspect a modulemd
ContentPackagecategoriesApi list GET /pulp/api/v3/content/rpm/packagecategories/ List package categorys
ContentPackagecategoriesApi read GET {rpm_package_category_href} Inspect a package category
ContentPackageenvironmentsApi list GET /pulp/api/v3/content/rpm/packageenvironments/ List package environments
ContentPackageenvironmentsApi read GET {rpm_package_environment_href} Inspect a package environment
ContentPackagegroupsApi list GET /pulp/api/v3/content/rpm/packagegroups/ List package groups
ContentPackagegroupsApi read GET {rpm_package_group_href} Inspect a package group
ContentPackagelangpacksApi list GET /pulp/api/v3/content/rpm/packagelangpacks/ List package langpackss
ContentPackagelangpacksApi read GET {rpm_package_langpacks_href} Inspect a package langpacks
ContentPackagesApi create POST /pulp/api/v3/content/rpm/packages/ Create a package
ContentPackagesApi list GET /pulp/api/v3/content/rpm/packages/ List packages
ContentPackagesApi read GET {rpm_package_href} Inspect a package
ContentRepoMetadataFilesApi list GET /pulp/api/v3/content/rpm/repo_metadata_files/ List repo metadata files
ContentRepoMetadataFilesApi read GET {rpm_repo_metadata_file_href} Inspect a repo metadata file
DistributionsRpmApi add_role POST {rpm_rpm_distribution_href}add_role/ Add a role
DistributionsRpmApi create POST /pulp/api/v3/distributions/rpm/rpm/ Create a rpm distribution
DistributionsRpmApi delete DELETE {rpm_rpm_distribution_href} Delete a rpm distribution
DistributionsRpmApi list GET /pulp/api/v3/distributions/rpm/rpm/ List rpm distributions
DistributionsRpmApi list_roles GET {rpm_rpm_distribution_href}list_roles/ List roles
DistributionsRpmApi my_permissions GET {rpm_rpm_distribution_href}my_permissions/ List user permissions
DistributionsRpmApi partial_update PATCH {rpm_rpm_distribution_href} Update a rpm distribution
DistributionsRpmApi read GET {rpm_rpm_distribution_href} Inspect a rpm distribution
DistributionsRpmApi remove_role POST {rpm_rpm_distribution_href}remove_role/ Remove a role
DistributionsRpmApi set_label POST {rpm_rpm_distribution_href}set_label/ Set a label
DistributionsRpmApi unset_label POST {rpm_rpm_distribution_href}unset_label/ Unset a label
DistributionsRpmApi update PUT {rpm_rpm_distribution_href} Update a rpm distribution
PublicationsRpmApi add_role POST {rpm_rpm_publication_href}add_role/ Add a role
PublicationsRpmApi create POST /pulp/api/v3/publications/rpm/rpm/ Create a rpm publication
PublicationsRpmApi delete DELETE {rpm_rpm_publication_href} Delete a rpm publication
PublicationsRpmApi list GET /pulp/api/v3/publications/rpm/rpm/ List rpm publications
PublicationsRpmApi list_roles GET {rpm_rpm_publication_href}list_roles/ List roles
PublicationsRpmApi my_permissions GET {rpm_rpm_publication_href}my_permissions/ List user permissions
PublicationsRpmApi read GET {rpm_rpm_publication_href} Inspect a rpm publication
PublicationsRpmApi remove_role POST {rpm_rpm_publication_href}remove_role/ Remove a role
RemotesRpmApi add_role POST {rpm_rpm_remote_href}add_role/ Add a role
RemotesRpmApi create POST /pulp/api/v3/remotes/rpm/rpm/ Create a rpm remote
RemotesRpmApi delete DELETE {rpm_rpm_remote_href} Delete a rpm remote
RemotesRpmApi list GET /pulp/api/v3/remotes/rpm/rpm/ List rpm remotes
RemotesRpmApi list_roles GET {rpm_rpm_remote_href}list_roles/ List roles
RemotesRpmApi my_permissions GET {rpm_rpm_remote_href}my_permissions/ List user permissions
RemotesRpmApi partial_update PATCH {rpm_rpm_remote_href} Update a rpm remote
RemotesRpmApi read GET {rpm_rpm_remote_href} Inspect a rpm remote
RemotesRpmApi remove_role POST {rpm_rpm_remote_href}remove_role/ Remove a role
RemotesRpmApi set_label POST {rpm_rpm_remote_href}set_label/ Set a label
RemotesRpmApi unset_label POST {rpm_rpm_remote_href}unset_label/ Unset a label
RemotesRpmApi update PUT {rpm_rpm_remote_href} Update a rpm remote
RemotesUlnApi add_role POST {rpm_uln_remote_href}add_role/ Add a role
RemotesUlnApi create POST /pulp/api/v3/remotes/rpm/uln/ Create an uln remote
RemotesUlnApi delete DELETE {rpm_uln_remote_href} Delete an uln remote
RemotesUlnApi list GET /pulp/api/v3/remotes/rpm/uln/ List uln remotes
RemotesUlnApi list_roles GET {rpm_uln_remote_href}list_roles/ List roles
RemotesUlnApi my_permissions GET {rpm_uln_remote_href}my_permissions/ List user permissions
RemotesUlnApi partial_update PATCH {rpm_uln_remote_href} Update an uln remote
RemotesUlnApi read GET {rpm_uln_remote_href} Inspect an uln remote
RemotesUlnApi remove_role POST {rpm_uln_remote_href}remove_role/ Remove a role
RemotesUlnApi set_label POST {rpm_uln_remote_href}set_label/ Set a label
RemotesUlnApi unset_label POST {rpm_uln_remote_href}unset_label/ Unset a label
RemotesUlnApi update PUT {rpm_uln_remote_href} Update an uln remote
RepositoriesRpmApi add_role POST {rpm_rpm_repository_href}add_role/ Add a role
RepositoriesRpmApi create POST /pulp/api/v3/repositories/rpm/rpm/ Create a rpm repository
RepositoriesRpmApi delete DELETE {rpm_rpm_repository_href} Delete a rpm repository
RepositoriesRpmApi list GET /pulp/api/v3/repositories/rpm/rpm/ List rpm repositorys
RepositoriesRpmApi list_roles GET {rpm_rpm_repository_href}list_roles/ List roles
RepositoriesRpmApi modify POST {rpm_rpm_repository_href}modify/ Modify Repository Content
RepositoriesRpmApi my_permissions GET {rpm_rpm_repository_href}my_permissions/ List user permissions
RepositoriesRpmApi partial_update PATCH {rpm_rpm_repository_href} Update a rpm repository
RepositoriesRpmApi read GET {rpm_rpm_repository_href} Inspect a rpm repository
RepositoriesRpmApi remove_role POST {rpm_rpm_repository_href}remove_role/ Remove a role
RepositoriesRpmApi set_label POST {rpm_rpm_repository_href}set_label/ Set a label
RepositoriesRpmApi sync POST {rpm_rpm_repository_href}sync/ Sync from remote
RepositoriesRpmApi unset_label POST {rpm_rpm_repository_href}unset_label/ Unset a label
RepositoriesRpmApi update PUT {rpm_rpm_repository_href} Update a rpm repository
RepositoriesRpmVersionsApi delete DELETE {rpm_rpm_repository_version_href} Delete a repository version
RepositoriesRpmVersionsApi list GET {rpm_rpm_repository_href}versions/ List repository versions
RepositoriesRpmVersionsApi read GET {rpm_rpm_repository_version_href} Inspect a repository version
RepositoriesRpmVersionsApi repair POST {rpm_rpm_repository_version_href}repair/
RpmCompsApi rpm_comps_upload POST /pulp/api/v3/rpm/comps/ Upload comps.xml
RpmCopyApi copy_content POST /pulp/api/v3/rpm/copy/ Copy content

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

cookieAuth

  • Type: API key
  • API key parameter name: sessionid
  • Location:

Author

pulp-list@redhat.com