Skip to main content

Pulp 3 API

Project description

pulp_gem-client

Fetch, Upload, Organize, and Distribute Software Packages

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

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

Requirements.

Python 3.9+

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_gem

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_gem

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import pulpcore.client.pulp_gem
from pulpcore.client.pulp_gem.rest import ApiException
from pprint import pprint

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

# 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_gem.Configuration(
    username = os.environ["USERNAME"],
    password = os.environ["PASSWORD"]
)

# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with pulpcore.client.pulp_gem.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pulpcore.client.pulp_gem.ContentGemApi(api_client)
    x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)
    repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
    pulp_labels = None # Dict[str, Optional[str]] | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. (optional)
    artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
    file = None # bytearray | An uploaded file that should be turned into the artifact of the content unit. (optional)

    try:
        # Create a gem content
        api_response = api_instance.create(x_task_diagnostics=x_task_diagnostics, repository=repository, pulp_labels=pulp_labels, artifact=artifact, file=file)
        print("The response of ContentGemApi->create:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ContentGemApi->create: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:24817

Class Method HTTP request Description
ContentGemApi create POST /pulp/api/v3/content/gem/gem/ Create a gem content
ContentGemApi list GET /pulp/api/v3/content/gem/gem/ List gem contents
ContentGemApi read GET {gem_gem_content_href} Inspect a gem content
ContentGemApi set_label POST {gem_gem_content_href}set_label/ Set a label
ContentGemApi unset_label POST {gem_gem_content_href}unset_label/ Unset a label
DistributionsGemApi add_role POST {gem_gem_distribution_href}add_role/ Add a role
DistributionsGemApi create POST /pulp/api/v3/distributions/gem/gem/ Create a gem distribution
DistributionsGemApi delete DELETE {gem_gem_distribution_href} Delete a gem distribution
DistributionsGemApi list GET /pulp/api/v3/distributions/gem/gem/ List gem distributions
DistributionsGemApi list_roles GET {gem_gem_distribution_href}list_roles/ List roles
DistributionsGemApi my_permissions GET {gem_gem_distribution_href}my_permissions/ List user permissions
DistributionsGemApi partial_update PATCH {gem_gem_distribution_href} Update a gem distribution
DistributionsGemApi read GET {gem_gem_distribution_href} Inspect a gem distribution
DistributionsGemApi remove_role POST {gem_gem_distribution_href}remove_role/ Remove a role
DistributionsGemApi set_label POST {gem_gem_distribution_href}set_label/ Set a label
DistributionsGemApi unset_label POST {gem_gem_distribution_href}unset_label/ Unset a label
DistributionsGemApi update PUT {gem_gem_distribution_href} Update a gem distribution
PublicationsGemApi add_role POST {gem_gem_publication_href}add_role/ Add a role
PublicationsGemApi create POST /pulp/api/v3/publications/gem/gem/ Create a gem publication
PublicationsGemApi delete DELETE {gem_gem_publication_href} Delete a gem publication
PublicationsGemApi list GET /pulp/api/v3/publications/gem/gem/ List gem publications
PublicationsGemApi list_roles GET {gem_gem_publication_href}list_roles/ List roles
PublicationsGemApi my_permissions GET {gem_gem_publication_href}my_permissions/ List user permissions
PublicationsGemApi read GET {gem_gem_publication_href} Inspect a gem publication
PublicationsGemApi remove_role POST {gem_gem_publication_href}remove_role/ Remove a role
RemotesGemApi add_role POST {gem_gem_remote_href}add_role/ Add a role
RemotesGemApi create POST /pulp/api/v3/remotes/gem/gem/ Create a gem remote
RemotesGemApi delete DELETE {gem_gem_remote_href} Delete a gem remote
RemotesGemApi list GET /pulp/api/v3/remotes/gem/gem/ List gem remotes
RemotesGemApi list_roles GET {gem_gem_remote_href}list_roles/ List roles
RemotesGemApi my_permissions GET {gem_gem_remote_href}my_permissions/ List user permissions
RemotesGemApi partial_update PATCH {gem_gem_remote_href} Update a gem remote
RemotesGemApi read GET {gem_gem_remote_href} Inspect a gem remote
RemotesGemApi remove_role POST {gem_gem_remote_href}remove_role/ Remove a role
RemotesGemApi set_label POST {gem_gem_remote_href}set_label/ Set a label
RemotesGemApi unset_label POST {gem_gem_remote_href}unset_label/ Unset a label
RemotesGemApi update PUT {gem_gem_remote_href} Update a gem remote
RepositoriesGemApi add_role POST {gem_gem_repository_href}add_role/ Add a role
RepositoriesGemApi create POST /pulp/api/v3/repositories/gem/gem/ Create a gem repository
RepositoriesGemApi delete DELETE {gem_gem_repository_href} Delete a gem repository
RepositoriesGemApi list GET /pulp/api/v3/repositories/gem/gem/ List gem repositorys
RepositoriesGemApi list_roles GET {gem_gem_repository_href}list_roles/ List roles
RepositoriesGemApi modify POST {gem_gem_repository_href}modify/ Modify Repository Content
RepositoriesGemApi my_permissions GET {gem_gem_repository_href}my_permissions/ List user permissions
RepositoriesGemApi partial_update PATCH {gem_gem_repository_href} Update a gem repository
RepositoriesGemApi read GET {gem_gem_repository_href} Inspect a gem repository
RepositoriesGemApi remove_role POST {gem_gem_repository_href}remove_role/ Remove a role
RepositoriesGemApi set_label POST {gem_gem_repository_href}set_label/ Set a label
RepositoriesGemApi sync POST {gem_gem_repository_href}sync/ Sync from a remote
RepositoriesGemApi unset_label POST {gem_gem_repository_href}unset_label/ Unset a label
RepositoriesGemApi update PUT {gem_gem_repository_href} Update a gem repository
RepositoriesGemVersionsApi delete DELETE {gem_gem_repository_version_href} Delete a repository version
RepositoriesGemVersionsApi list GET {gem_gem_repository_href}versions/ List repository versions
RepositoriesGemVersionsApi read GET {gem_gem_repository_version_href} Inspect a repository version
RepositoriesGemVersionsApi repair POST {gem_gem_repository_version_href}repair/

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

basicAuth

  • Type: HTTP basic authentication

cookieAuth

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

Author

pulp-list@redhat.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pulp_gem_client-0.7.5.tar.gz (72.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pulp_gem_client-0.7.5-py3-none-any.whl (120.4 kB view details)

Uploaded Python 3

File details

Details for the file pulp_gem_client-0.7.5.tar.gz.

File metadata

  • Download URL: pulp_gem_client-0.7.5.tar.gz
  • Upload date:
  • Size: 72.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pulp_gem_client-0.7.5.tar.gz
Algorithm Hash digest
SHA256 66893c0f5a7f3e35567f297a1a3d68e4a0afec979f08003e526348bddb0c89c5
MD5 cd51d664bebdd079ea6cb09c53dd7bb3
BLAKE2b-256 f876cb656fbacc14a08bf80e11d5ffb38281a207db6e758bf830e697c8df67b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pulp_gem_client-0.7.5.tar.gz:

Publisher: publish.yml on pulp/pulp_gem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pulp_gem_client-0.7.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pulp_gem_client-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bed2e00122a1655af7c44e562b10374465f7898e1bfc52d88c253f2ffa846406
MD5 727f0fe33898e6d157900d2687a05fef
BLAKE2b-256 ecfc79ab0240454e6793c760fe8b242017cd21bbfe56e3dc55451f27a2e5ff3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pulp_gem_client-0.7.5-py3-none-any.whl:

Publisher: publish.yml on pulp/pulp_gem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page