跳转到主要内容

Tickforge API

项目描述

tickforge-client

与Uptick内部资源交互的API

此Python包由OpenAPI Generator项目自动生成

  • API版本:1.0.0
  • 包版本:1.6.0
  • 构建包:org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen

需求。

Python 3.7+

安装 & 使用

pip安装

如果Python包托管在仓库中,您可以直接使用以下方式安装

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

(您可能需要以root权限运行pipsudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

然后导入包

import tickforge_client

Setuptools

通过Setuptools安装。

python setup.py install --user

(或使用sudo python setup.py install为所有用户安装包)

然后导入包

import tickforge_client

测试

执行pytest来运行测试。

入门

请按照安装过程进行操作,然后运行以下命令

import time
import tickforge_client
from tickforge_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://tickforge.onuptick.com
# See configuration.py for a list of all supported configuration parameters.
configuration = tickforge_client.Configuration(
    host = "https://tickforge.onuptick.com"
)



# Enter a context with an instance of the API client
with tickforge_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tickforge_client.AuthApi(api_client)
    code = 'code_example' # str | 
    state = 'state_example' # str | 

    try:
        # Cognito Callback
        api_response = api_instance.cognito_callback_api_auth_cognito_callback_get(code, state)
        print("The response of AuthApi->cognito_callback_api_auth_cognito_callback_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AuthApi->cognito_callback_api_auth_cognito_callback_get: %s\n" % e)

API端点文档

所有URI相对于https://tickforge.onuptick.com

方法 HTTP请求 描述
AuthApi cognito_callback_api_auth_cognito_callback_get GET /api/auth/cognito_callback Cognito回调
AuthApi login_for_access_token_api_auth_token_post POST /api/auth/token 登录以获取访问令牌
AuthApi me_api_auth_me_get GET /api/auth/me
BuildsApi create_build_api_builds_post POST /api/builds/ 创建构建
DbApi copy_db_api_db_copy_post POST /api/db/copy 复制数据库
DefaultApi health_check_healthz_get GET /healthz 健康检查
DefaultApi health_check_livez_get GET /livez 健康检查
DefaultApi 健康检查:livez health_check_readyz_get 健康检查
GET /readyz 健康检查:readyz GitApi refresh_respository_api_git_refresh_repository_post
GET /readyz POST /api/git/refresh_repository 刷新存储库 versions_config_api_git_versions_get
GET /api/git/versions 版本配置 GithubApi workflow_job_webhook_api_github_webhooks_workflow_job_post
POST /api/github/webhooks/workflow_job 工作流作业Webhook JobsApi get_job_api_jobs_job_id_get
GET /api/jobs/{job_id} 获取作业 MetricsApi create_metric_api_metrics_post
GET /api/jobs/{job_id} POST /api/metrics/ 创建指标 create_metric_blob_api_metrics_blob_post
GET /api/jobs/{job_id} POST /api/metrics/blob 创建指标Blob get_metric_api_metrics_get
GET /api/jobs/{job_id} GET /api/metrics/ 获取指标 get_metric_blob_api_metrics_blob_get
GET /api/metrics/blob 获取指标Blob RedirectsApi me_redirect_me_get
GET /api/metrics/blob GET /me 我重定向 refresh_repository_redirect_api_refresh_repository_post
GET /api/metrics/blob POST /api/refresh_repository 刷新存储库重定向 token_redirect_token_post
GET /api/metrics/blob POST /token 令牌重定向 versions_redirect_api_versions_get
GET /api/versions 版本重定向 SlackApi event_handler_slack_events_get
GET /api/versions GET /slack/events 事件处理器 event_handler_slack_events_get
GET /api/versions event_handler_slack_events_patch PATCH /slack/events event_handler_slack_events_get
GET /api/versions 事件处理器:slack_events_patch event_handler_slack_events_post POST /slack/events
事件处理器:slack_events_post search_users_api_slack_search_get GET /api/slack/search 搜索用户
事件处理器:slack_events_post WorkspacesApi bump_api_workspaces_bump_post POST /api/workspaces/bump
事件处理器:slack_events_post 升级 bump_app_api_workspaces_app_name_bump_post POST /api/workspaces/{app_name}/bump
事件处理器:slack_events_post 升级应用 create_backup_api_workspaces_workspace_name_backups_post POST /api/workspaces/{workspace_name}/backups
事件处理器:slack_events_post 创建备份 create_workspace_api_workspaces_create_post POST /api/workspaces/{workspace_name}/backups
事件处理器:slack_events_post POST /api/workspaces/create 创建工作空间 create_workspace_api_workspaces_post
事件处理器:slack_events_post POST /api/workspaces/ list_backups_api_workspaces_workspace_name_backups_get GET /api/workspaces/{workspace_name}/backups
事件处理器:slack_events_post 列出备份 list_workspaces_api_workspaces_get GET /api/workspaces/
事件处理器:slack_events_post 列出工作空间 qadeploy_api_workspaces_qadeploy_post POST /api/workspaces/qadeploy
事件处理器:slack_events_post Qadeploy qadestroy_api_workspaces_qadestroy_post POST /api/workspaces/qadestroy

Qadestroy

授权说明文档

API定义的认证方案:

HTTPBearer

  • 类型:Bearer认证

作者

项目详情


下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

tickforge_client-1.6.0.tar.gz (45.7 kB 查看哈希值)

上传时间

构建分布

tickforge_client-1.6.0-py3-none-any.whl (130.6 kB 查看哈希值)

上传时间 Python 3

由以下支持