Skip to main content

Swaggy Jenkins

Project description

swaggyjenkins

Jenkins API clients generated from Swagger / Open API specification

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

  • API version: 3.3.0
  • Package version: 3.3.0
  • Generator version: 7.18.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/oapicf/swaggy-jenkins

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/oapicf/swaggy-jenkins.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/oapicf/swaggy-jenkins.git)

Then import the package:

import swaggyjenkins

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 swaggyjenkins

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import swaggyjenkins
from swaggyjenkins.rest import ApiException
from pprint import pprint

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

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


# Enter a context with an instance of the API client
with swaggyjenkins.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = swaggyjenkins.BaseApi(api_client)

    try:
        api_response = api_instance.get_crumb()
        print("The response of BaseApi->get_crumb:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BaseApi->get_crumb: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
BaseApi get_crumb GET /crumbIssuer/api/json
BlueOceanApi delete_pipeline_queue_item DELETE /blue/rest/organizations/{organization}/pipelines/{pipeline}/queue/{queue}
BlueOceanApi get_authenticated_user GET /blue/rest/organizations/{organization}/user/
BlueOceanApi get_classes GET /blue/rest/classes/{class}
BlueOceanApi get_json_web_key GET /jwt-auth/jwks/{key}
BlueOceanApi get_json_web_token GET /jwt-auth/token
BlueOceanApi get_organisation GET /blue/rest/organizations/{organization}
BlueOceanApi get_organisations GET /blue/rest/organizations/
BlueOceanApi get_pipeline GET /blue/rest/organizations/{organization}/pipelines/{pipeline}
BlueOceanApi get_pipeline_activities GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/activities
BlueOceanApi get_pipeline_branch GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/branches/{branch}/
BlueOceanApi get_pipeline_branch_run GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/branches/{branch}/runs/{run}
BlueOceanApi get_pipeline_branches GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/branches
BlueOceanApi get_pipeline_folder GET /blue/rest/organizations/{organization}/pipelines/{folder}/
BlueOceanApi get_pipeline_folder_pipeline GET /blue/rest/organizations/{organization}/pipelines/{folder}/pipelines/{pipeline}
BlueOceanApi get_pipeline_queue GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/queue
BlueOceanApi get_pipeline_run GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}
BlueOceanApi get_pipeline_run_log GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/log
BlueOceanApi get_pipeline_run_node GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}
BlueOceanApi get_pipeline_run_node_step GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps/{step}
BlueOceanApi get_pipeline_run_node_step_log GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps/{step}/log
BlueOceanApi get_pipeline_run_node_steps GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps
BlueOceanApi get_pipeline_run_nodes GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes
BlueOceanApi get_pipeline_runs GET /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs
BlueOceanApi get_pipelines GET /blue/rest/organizations/{organization}/pipelines/
BlueOceanApi get_scm GET /blue/rest/organizations/{organization}/scm/{scm}
BlueOceanApi get_scm_organisation_repositories GET /blue/rest/organizations/{organization}/scm/{scm}/organizations/{scmOrganisation}/repositories
BlueOceanApi get_scm_organisation_repository GET /blue/rest/organizations/{organization}/scm/{scm}/organizations/{scmOrganisation}/repositories/{repository}
BlueOceanApi get_scm_organisations GET /blue/rest/organizations/{organization}/scm/{scm}/organizations
BlueOceanApi get_user GET /blue/rest/organizations/{organization}/users/{user}
BlueOceanApi get_user_favorites GET /blue/rest/users/{user}/favorites
BlueOceanApi get_users GET /blue/rest/organizations/{organization}/users/
BlueOceanApi post_pipeline_run POST /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/replay
BlueOceanApi post_pipeline_runs POST /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs
BlueOceanApi put_pipeline_favorite PUT /blue/rest/organizations/{organization}/pipelines/{pipeline}/favorite
BlueOceanApi put_pipeline_run PUT /blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/stop
BlueOceanApi search GET /blue/rest/search/
BlueOceanApi search_classes GET /blue/rest/classes/
RemoteAccessApi get_computer GET /computer/api/json
RemoteAccessApi get_jenkins GET /api/json
RemoteAccessApi get_job GET /job/{name}/api/json
RemoteAccessApi get_job_config GET /job/{name}/config.xml
RemoteAccessApi get_job_last_build GET /job/{name}/lastBuild/api/json
RemoteAccessApi get_job_progressive_text GET /job/{name}/{number}/logText/progressiveText
RemoteAccessApi get_queue GET /queue/api/json
RemoteAccessApi get_queue_item GET /queue/item/{number}/api/json
RemoteAccessApi get_view GET /view/{name}/api/json
RemoteAccessApi get_view_config GET /view/{name}/config.xml
RemoteAccessApi head_jenkins HEAD /api/json
RemoteAccessApi post_create_item POST /createItem
RemoteAccessApi post_create_view POST /createView
RemoteAccessApi post_job_build POST /job/{name}/build
RemoteAccessApi post_job_config POST /job/{name}/config.xml
RemoteAccessApi post_job_delete POST /job/{name}/doDelete
RemoteAccessApi post_job_disable POST /job/{name}/disable
RemoteAccessApi post_job_enable POST /job/{name}/enable
RemoteAccessApi post_job_last_build_stop POST /job/{name}/lastBuild/stop
RemoteAccessApi post_view_config POST /view/{name}/config.xml

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

jenkins_auth

  • Type: HTTP basic authentication

jwt_auth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

blah+oapicf@cliffano.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

swaggyjenkins-3.3.0.tar.gz (75.6 kB view details)

Uploaded Source

Built Distribution

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

swaggyjenkins-3.3.0-py3-none-any.whl (162.0 kB view details)

Uploaded Python 3

File details

Details for the file swaggyjenkins-3.3.0.tar.gz.

File metadata

  • Download URL: swaggyjenkins-3.3.0.tar.gz
  • Upload date:
  • Size: 75.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for swaggyjenkins-3.3.0.tar.gz
Algorithm Hash digest
SHA256 0f87b14b1104831e4707e57aca929ed68a78f354028e993783373ed1313ad05c
MD5 c87cc42776b26ed331ad73cccde34628
BLAKE2b-256 654177b30e6ce017ca655622483642c10b3567472829dfb84efe549f86b1502a

See more details on using hashes here.

File details

Details for the file swaggyjenkins-3.3.0-py3-none-any.whl.

File metadata

  • Download URL: swaggyjenkins-3.3.0-py3-none-any.whl
  • Upload date:
  • Size: 162.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for swaggyjenkins-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b43ab84203889360eee2cf8a80c7c2fb78783ab0de8827ff0835ce7dc737099a
MD5 fa7bb2b3309e567c5efd9602de712697
BLAKE2b-256 8306d55caebaf56bac566a78a5295ccbc7312eafaaf15ff2dec9749798ec83da

See more details on using hashes here.

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