GitLabChannelProperties
public record GitLabChannelProperties( String token, String webhookToken, String apiBase, String webhookPath)
io/agentscope/extensions/channel/gitlab/GitLabChannelProperties.java:34–75承载 GitLab 渠道属性数据的记录类型。位于 io.agentscope.extensions.channel.gitlab 包。核心成员包括 token、webhookToken、apiBase、webhookPath、from、GitLabChannelProperties。
Provider-specific configuration for a single GitLab channel instance, sourced from the
properties block of channels.<id> in agentscope.json.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
token | String | 执行令牌相关操作。 Project / Group / Personal Access Token used for the REST API outbound and
bot-identity lookup. Required, with `api` scope. |
webhookToken | String | 执行 `webhookToken` 方法。 shared token configured on the project webhook; matched against
`X-Gitlab-Token` via constant-time equality. Required. |
apiBase | String | 执行API 基类相关操作。 override for the GitLab REST API base; defaults to
`https://gitlab.com/api/v4`. |
webhookPath | String | 执行 `webhookPath` 方法。 HTTP path Spring exposes the webhook under; defaults to
`/api/channels/gitlab/{channelId}/webhook` |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public GitLabChannelProperties(String token, String webhookToken, String apiBase, String webhookPath) | 初始化 `GitLabChannelProperties` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static GitLabChannelProperties from(String channelId, Map<String, Object> props)static | 创建并返回实例。 Reads a `GitLabChannelProperties` from an arbitrary properties map. |
记录组件详情Record Component Detail
token
String token执行令牌相关操作。
Project / Group / Personal Access Token used for the REST API outbound and
bot-identity lookup. Required, with api scope.
io/agentscope/extensions/channel/gitlab/GitLabChannelProperties.java:34–75webhookToken
String webhookToken执行 webhookToken 方法。
shared token configured on the project webhook; matched against
X-Gitlab-Token via constant-time equality. Required.
io/agentscope/extensions/channel/gitlab/GitLabChannelProperties.java:34–75apiBase
String apiBase执行API 基类相关操作。
override for the GitLab REST API base; defaults to
https://gitlab.com/api/v4.
io/agentscope/extensions/channel/gitlab/GitLabChannelProperties.java:34–75webhookPath
String webhookPath执行 webhookPath 方法。
HTTP path Spring exposes the webhook under; defaults to
/api/channels/gitlab/{channelId}/webhook
io/agentscope/extensions/channel/gitlab/GitLabChannelProperties.java:34–75构造器详情Constructor Detail
GitLabChannelProperties
public GitLabChannelProperties(String token, String webhookToken, String apiBase, String webhookPath)
初始化 GitLabChannelProperties 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
token | String | 令牌(类型 `String`)。The token. |
webhookToken | String | webhook 令牌(类型 `String`)。The webhook token. |
apiBase | String | API 基类(类型 `String`)。The api base. |
webhookPath | String | webhook 路径(类型 `String`)。The webhook path. |
io/agentscope/extensions/channel/gitlab/GitLabChannelProperties.java:37–52方法详情Method Detail
from
public static GitLabChannelProperties from(String channelId, Map<String, Object> props)
创建并返回实例。
Reads a GitLabChannelProperties from an arbitrary properties map.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channelId | String | 渠道标识(类型 `String`)。The channel id. |
props | Map<String, Object> | props(类型 `Map`)。The props. |
GitLabChannelPropertiesio/agentscope/extensions/channel/gitlab/GitLabChannelProperties.java:55–64