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权限运行pip
:sudo 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
- suspend_workspace_api_workspaces_workspace_name_suspend_post
- POST /api/workspaces/{workspace_name}/suspend
- 挂起工作空间
- Documentation For Models
- AlwaysActive
- Backup
- BaseUser
- BatchId
- BodyBumpApiWorkspacesBumpPost
- BodyBumpAppApiWorkspacesAppNameBumpPost
- BodyQadeployApiWorkspacesQadeployPost
- BodyQadestroyApiWorkspacesQadestroyPost
- Branch
- BuildSchema
- Cluster
- CodeMetricBlobPayload
- CodeMetricBlobResponse
- CopyDBPayload
- CreateBackupResponse
- CreateBuildPayload
- CreateMetricPayload
- CreateWorkspacePayload
- Deleted
- DisplayName
- Error
- FirstName
- HTTPValidationError
- Image32
- IsAdmin
- IsAppUser
- IsBot
- IsEmailConfirmed
- IsOwner
- IsPrimaryOwner
- IsRestricted
- 用户列表响应
- 指标
- 指标名称
- 命名空间
- 偏移量
- 配置文件
- 真实姓名
- 响应元数据
- 服务器时区
- 服务器类型
- 大小
- Slack成员
- 团队
- 团队ID
- 标题
- 令牌响应
- Tz
- Tz标签
- Tz偏移量
- 更新时间
- 验证错误
- 内部验证错误位置
- 版本配置
- 工作区
- 工作区集群
- XHub签名256
授权说明文档
HTTPBearer
- 类型:Bearer认证
作者
项目详情
下载文件
下载您平台上的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源分布
tickforge_client-1.6.0.tar.gz (45.7 kB 查看哈希值)
构建分布
tickforge_client-1.6.0-py3-none-any.whl (130.6 kB 查看哈希值)
关闭
tickforge_client-1.6.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 071bb67f2955513ef20d1c931ba8ff67164e0ce6fae3fdfc520fe0a018cfc83a |
|
MD5 | 3e136cbfff5271cae6759f6d38682328 |
|
BLAKE2b-256 | 6bc1b5cfe75ca8255a5ef67c1bb66d79276461229b589700a2d8d87f2f2b17ab |
关闭
tickforge_client-1.6.0-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 2d2da27a75a7f249a3a8507ad64ab357cbbd02060f7c6f3f5e5ff64914c31d8d |
|
MD5 | 74092399513ab67af4c88fb083a2bb11 |
|
BLAKE2b-256 | 5afbab2a7c7d22edca4eadc5ad4fea7f8b103d0400469a64a6b3a285f0896407 |