Package: dlrnapi-client
This is a Python client and command-line interface for theDLRNAPI.It has been automatically generated by theSwagger Codegenproject:API version: 1.0.0Package version: 1.0.0Build package: io.swagger.codegen.languages.PythonClientCodegenRequirements.Python 2.7 or 3.6+Installation & UsageYou can install directly from Githubpipinstallgit+https://github.com/softwarefactory-project/dlrnapi_client.git(you may need to runpipwith root permission:sudo pip installgit+https://github.com/softwarefactory-project/dlrnapi_client.git)In order to support kerberos authentication, you need to execute this command (you need to have gcc and krb5-devel packages installed)pipinstall"dlrnapi_client[kerberos] @ git+https://github.com/softwarefactory-project/dlrnapi_client.git"Then import the package:importdlrnapi_clientOr you can run the client directly:$dlrnapi-hSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all
users)Then import the package:importdlrnapi_clientOr you can run the client directly:$dlrnapi-hGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportdlrnapi_clientfromdlrnapi_client.restimportApiExceptionfrompprintimportpprint# create an instance of the API classapi_instance=dlrnapi_client.DefaultApi()params=dlrnapi_client.Params()# Params | The JSON params to posttry:api_response=api_instance.api_last_tested_repo_get(params)pprint(api_response)exceptApiExceptionase:print("Exception when calling DefaultApi->api_last_tested_repo_get:%s\n"%e)Documentation for command-linedlrnapiDocumentation for API EndpointsAll URIs are relative tohttp://127.0.0.1:5000ClassMethodHTTP requestDescriptionDefaultApiapi_last_tested_repo_getGET/api/last_tested_repoDefaultApiapi_last_tested_repo_postPOST/api/last_tested_repoDefaultApiapi_promote_postPOST/api/promoteDefaultApiapi_promote_batch_postPOST/api/promote-batchDefaultApiapi_promotions_getPOST/api/promotionsDefaultApiapi_build_metrics_getGET/api/metrics/buildsDefaultApiapi_remote_import_postPOST/api/remote/importDefaultApiapi_repo_status_getGET/api/repo_statusDefaultApiapi_report_result_postPOST/api/report_resultDefaultApiapi_agg_status_getGET/api/agg_statusDocumentation For ModelsCIVoteImportParamsParams1Params2Params3PromotionRepoDocumentation For AuthorizationbasicAuthType: HTTP basic authenticationEnvironment variablesDLRNAPI_AUTHMETHOD: set the auth method to authenticate against the
DLRN API. Choices: kerberosAuth and basicAuth.DLRNAPI_USERNAME: set the username to authenticate against the DLRN
API when basicAuth method is selected.DLRNAPI_PASSWORD: set the password to authenticate against the DLRN
API when basicAuth method is selected.DLRNAPI_PRINCIPAL: set the server principal used to request the token
when kerberosAuth method is selected to auth against the DLRN API.
API when basicAuth method is selected.SSL_VERIFY: set to ‘0’ to deactivate SSL verification when talking
to the DLRN API.SSL_CA_BUNDLE: when set to a value, it will instruct the client to
use that file to verify SSL certificates, instead of the default CA
bundle provided bycertifi.AuthorJavier Peña (jpena@redhat.com)