Skip to main content

Pulp 3 API

Project description

pulp_maven-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.12.0
  • 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_maven

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_maven

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import pulpcore.client.pulp_maven
from pulpcore.client.pulp_maven.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_maven.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_maven.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_maven.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pulpcore.client.pulp_maven.ContentArtifactApi(api_client)
    maven_maven_artifact = pulpcore.client.pulp_maven.MavenMavenArtifact() # MavenMavenArtifact | 
    x_task_diagnostics = ['x_task_diagnostics_example'] # List[str] | List of profilers to use on tasks. (optional)

    try:
        # Create a maven artifact
        api_response = api_instance.create(maven_maven_artifact, x_task_diagnostics=x_task_diagnostics)
        print("The response of ContentArtifactApi->create:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ContentArtifactApi->create: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
ContentArtifactApi create POST /pulp/api/v3/content/maven/artifact/ Create a maven artifact
ContentArtifactApi list GET /pulp/api/v3/content/maven/artifact/ List maven artifacts
ContentArtifactApi read GET {maven_maven_artifact_href} Inspect a maven artifact
ContentArtifactApi set_label POST {maven_maven_artifact_href}set_label/ Set a label
ContentArtifactApi unset_label POST {maven_maven_artifact_href}unset_label/ Unset a label
DistributionsMavenApi create POST /pulp/api/v3/distributions/maven/maven/ Create a maven distribution
DistributionsMavenApi delete DELETE {maven_maven_distribution_href} Delete a maven distribution
DistributionsMavenApi list GET /pulp/api/v3/distributions/maven/maven/ List maven distributions
DistributionsMavenApi partial_update PATCH {maven_maven_distribution_href} Update a maven distribution
DistributionsMavenApi read GET {maven_maven_distribution_href} Inspect a maven distribution
DistributionsMavenApi set_label POST {maven_maven_distribution_href}set_label/ Set a label
DistributionsMavenApi unset_label POST {maven_maven_distribution_href}unset_label/ Unset a label
DistributionsMavenApi update PUT {maven_maven_distribution_href} Update a maven distribution
PulpMavenApi get GET /pulp/maven/{name}/{path}
PulpMavenApi put PUT /pulp/maven/{name}/{path}
RemotesMavenApi create POST /pulp/api/v3/remotes/maven/maven/ Create a maven remote
RemotesMavenApi delete DELETE {maven_maven_remote_href} Delete a maven remote
RemotesMavenApi list GET /pulp/api/v3/remotes/maven/maven/ List maven remotes
RemotesMavenApi partial_update PATCH {maven_maven_remote_href} Update a maven remote
RemotesMavenApi read GET {maven_maven_remote_href} Inspect a maven remote
RemotesMavenApi set_label POST {maven_maven_remote_href}set_label/ Set a label
RemotesMavenApi unset_label POST {maven_maven_remote_href}unset_label/ Unset a label
RemotesMavenApi update PUT {maven_maven_remote_href} Update a maven remote
RepositoriesMavenApi add_cached_content POST {maven_maven_repository_href}add_cached_content/ Add cached content
RepositoriesMavenApi create POST /pulp/api/v3/repositories/maven/maven/ Create a maven repository
RepositoriesMavenApi delete DELETE {maven_maven_repository_href} Delete a maven repository
RepositoriesMavenApi list GET /pulp/api/v3/repositories/maven/maven/ List maven repositorys
RepositoriesMavenApi partial_update PATCH {maven_maven_repository_href} Update a maven repository
RepositoriesMavenApi read GET {maven_maven_repository_href} Inspect a maven repository
RepositoriesMavenApi set_label POST {maven_maven_repository_href}set_label/ Set a label
RepositoriesMavenApi unset_label POST {maven_maven_repository_href}unset_label/ Unset a label
RepositoriesMavenApi update PUT {maven_maven_repository_href} Update a maven repository
RepositoriesMavenVersionsApi delete DELETE {maven_maven_repository_version_href} Delete a repository version
RepositoriesMavenVersionsApi list GET {maven_maven_repository_href}versions/ List repository versions
RepositoriesMavenVersionsApi read GET {maven_maven_repository_version_href} Inspect a repository version
RepositoriesMavenVersionsApi repair POST {maven_maven_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


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pulp_maven_client-0.12.0.tar.gz (61.0 kB view details)

Uploaded Source

Built Distribution

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

pulp_maven_client-0.12.0-py3-none-any.whl (101.6 kB view details)

Uploaded Python 3

File details

Details for the file pulp_maven_client-0.12.0.tar.gz.

File metadata

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

File hashes

Hashes for pulp_maven_client-0.12.0.tar.gz
Algorithm Hash digest
SHA256 4e0a725a2be4617ede46a83b209ee1c08442487cb2152ddf7c50ce6411d5a784
MD5 6fc2d5c5ca0d92b87dc9d068e0c94eaa
BLAKE2b-256 7666c19269c1827df55d3ed994faf369d2d09357fc8e4e4b24566a7c5fb53262

See more details on using hashes here.

Provenance

The following attestation bundles were made for pulp_maven_client-0.12.0.tar.gz:

Publisher: publish.yml on pulp/pulp_maven

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_maven_client-0.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pulp_maven_client-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1838465afc4f39f237ce6a51ddb890dc012bfc2a6a9c001752aca7309015317
MD5 e947b3440099a3c90c4a3d21268f2fff
BLAKE2b-256 331d66bc667a59924ac0a08795b1236a81d43cabeccb32f6653c276b59bfe83e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pulp_maven_client-0.12.0-py3-none-any.whl:

Publisher: publish.yml on pulp/pulp_maven

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