cloudworker-proxy
Version:
An api gateway for cloudflare workers
2,651 lines (2,315 loc) • 198 kB
JavaScript
'use strict';
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const AbstractModel = require('../../common/abstract_model');
/**
* DescribeProjectDepotBranches返回参数结构体
* @class
*/
class DescribeProjectDepotBranchesResponse extends AbstractModel {
constructor() {
super();
/**
* 返回 Branch 数据结构
* @type {DepotDetailData || null}
*/
this.Data = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
const obj = new DepotDetailData();
obj.deserialize(params.Data);
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateEnterprise返回参数结构体
* @class
*/
class CreateEnterpriseResponse extends AbstractModel {
constructor() {
super();
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* 环境变量配置
* @class
*/
class CodingCIJobEnv extends AbstractModel {
constructor() {
super();
/**
* 环境变量名称
* @type {string || null}
*/
this.Name = null;
/**
* 环境变量值
* @type {string || null}
*/
this.Value = null;
/**
* 是否保密
* @type {boolean || null}
*/
this.Sensitive = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Name = 'Name' in params ? params.Name : null;
this.Value = 'Value' in params ? params.Value : null;
this.Sensitive = 'Sensitive' in params ? params.Sensitive : null;
}
}
/**
* 获取构建计划的构建列表
* @class
*/
class DescribeCodingCIBuildsData extends AbstractModel {
constructor() {
super();
/**
* 构建列表
* @type {Array.<CodingCIBuild> || null}
*/
this.BuildList = null;
/**
* 页码
* @type {number || null}
*/
this.PageNumber = null;
/**
* 总条数
* @type {number || null}
*/
this.TotalCount = null;
/**
* 每页多少条
* @type {number || null}
*/
this.PageSize = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.BuildList) {
this.BuildList = [];
for (const z of Object.values(params.BuildList)) {
const obj = new CodingCIBuild();
obj.deserialize(z);
this.BuildList.push(obj);
}
}
this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
}
}
/**
* DescribeCodingCIJobs请求参数结构体
* @class
*/
class DescribeCodingCIJobsRequest extends AbstractModel {
constructor() {
super();
/**
* 项目 ID
* @type {number || null}
*/
this.ProjectId = null;
/**
* 过滤参数
* @type {Array.<Filter> || null}
*/
this.Filter = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
if (params.Filter) {
this.Filter = [];
for (const z of Object.values(params.Filter)) {
const obj = new Filter();
obj.deserialize(z);
this.Filter.push(obj);
}
}
}
}
/**
* ModifyJob返回参数结构体
* @class
*/
class ModifyJobResponse extends AbstractModel {
constructor() {
super();
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeCodingCIBuildLogRaw返回参数结构体
* @class
*/
class DescribeCodingCIBuildLogRawResponse extends AbstractModel {
constructor() {
super();
/**
* 构建原始日志
* @type {DescribeCodingCIBuildLogRawData || null}
*/
this.Data = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
const obj = new DescribeCodingCIBuildLogRawData();
obj.deserialize(params.Data);
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* 凭据结构
* @class
*/
class Credential extends AbstractModel {
constructor() {
super();
/**
* 凭据唯一 ID
* @type {string || null}
*/
this.CredentialId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CredentialId = 'CredentialId' in params ? params.CredentialId : null;
}
}
/**
* 构建统计数据结构
* @class
*/
class DescribeCodingCIBuildStatisticsResponseData extends AbstractModel {
constructor() {
super();
/**
* 区间数据数组
* @type {Array.<number> || null}
*/
this.PointList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.PointList = 'PointList' in params ? params.PointList : null;
}
}
/**
* DescribeCodingCIBuild返回参数结构体
* @class
*/
class DescribeCodingCIBuildResponse extends AbstractModel {
constructor() {
super();
/**
* 构建详情
* @type {CodingCIBuild || null}
*/
this.Build = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Build) {
const obj = new CodingCIBuild();
obj.deserialize(params.Build);
this.Build = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeCodingCIBuildStatistics请求参数结构体
* @class
*/
class DescribeCodingCIBuildStatisticsRequest extends AbstractModel {
constructor() {
super();
/**
* 统计维度 Project 还是 Job 目前只有 Project
* @type {string || null}
*/
this.MetricType = null;
/**
* 统计间隔单位秒
* @type {number || null}
*/
this.Period = null;
/**
* 开始时间
* @type {string || null}
*/
this.StartTime = null;
/**
* 结束时间
* @type {string || null}
*/
this.EndTime = null;
/**
* MetricType 为 PROJECT 的时候使用该值,此时 JobId 可不传
* @type {number || null}
*/
this.ProjectId = null;
/**
* MetricType 为 JOB 的时候使用该值,此时 ProjectId 可不传
* @type {number || null}
*/
this.JobId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MetricType = 'MetricType' in params ? params.MetricType : null;
this.Period = 'Period' in params ? params.Period : null;
this.StartTime = 'StartTime' in params ? params.StartTime : null;
this.EndTime = 'EndTime' in params ? params.EndTime : null;
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.JobId = 'JobId' in params ? params.JobId : null;
}
}
/**
* DescribeVersionList请求参数结构体
* @class
*/
class DescribeVersionListRequest extends AbstractModel {
constructor() {
super();
/**
* 团队 ID
* @type {number || null}
*/
this.TeamId = null;
/**
* 项目 ID
* @type {number || null}
*/
this.ProjectId = null;
/**
* 页码
* @type {number || null}
*/
this.Offset = null;
/**
* 每页展示数量
* @type {number || null}
*/
this.Limit = null;
/**
* 制品库名
* @type {string || null}
*/
this.RepositoryName = null;
/**
* 制品库包名
* @type {string || null}
*/
this.PackageName = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TeamId = 'TeamId' in params ? params.TeamId : null;
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.RepositoryName = 'RepositoryName' in params ? params.RepositoryName : null;
this.PackageName = 'PackageName' in params ? params.PackageName : null;
}
}
/**
* CreateProjectMember返回参数结构体
* @class
*/
class CreateProjectMemberResponse extends AbstractModel {
constructor() {
super();
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeOneJob请求参数结构体
* @class
*/
class DescribeOneJobRequest extends AbstractModel {
constructor() {
super();
/**
* 任务 ID
* @type {number || null}
*/
this.JobId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.JobId = 'JobId' in params ? params.JobId : null;
}
}
/**
* CreateCompanies返回参数结构体
* @class
*/
class CreateCompaniesResponse extends AbstractModel {
constructor() {
super();
/**
* 用户信息
* @type {User || null}
*/
this.User = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.User) {
const obj = new User();
obj.deserialize(params.User);
this.User = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeProjectDepotCommits请求参数结构体
* @class
*/
class DescribeProjectDepotCommitsRequest extends AbstractModel {
constructor() {
super();
/**
* 项目 Id
* @type {number || null}
*/
this.ProjectId = null;
/**
* 仓库 Id
* @type {number || null}
*/
this.Id = null;
/**
* 仓库类型
* @type {string || null}
*/
this.DepotType = null;
/**
* 分支名称
* @type {string || null}
*/
this.Branch = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.Id = 'Id' in params ? params.Id : null;
this.DepotType = 'DepotType' in params ? params.DepotType : null;
this.Branch = 'Branch' in params ? params.Branch : null;
}
}
/**
* DescribeCodingCIJob返回参数结构体
* @class
*/
class DescribeCodingCIJobResponse extends AbstractModel {
constructor() {
super();
/**
* 构建计划详情
* @type {CodingCIJob || null}
*/
this.Job = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Job) {
const obj = new CodingCIJob();
obj.deserialize(params.Job);
this.Job = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeCodingCIBuildLog请求参数结构体
* @class
*/
class DescribeCodingCIBuildLogRequest extends AbstractModel {
constructor() {
super();
/**
* 构建 ID
* @type {number || null}
*/
this.BuildId = null;
/**
* 日志的开始位置
* @type {number || null}
*/
this.Start = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BuildId = 'BuildId' in params ? params.BuildId : null;
this.Start = 'Start' in params ? params.Start : null;
}
}
/**
* DescribeCodingCIBuildStage返回参数结构体
* @class
*/
class DescribeCodingCIBuildStageResponse extends AbstractModel {
constructor() {
super();
/**
* 包含步骤返回信息
* @type {CodingCIBuildStageData || null}
*/
this.Data = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
const obj = new CodingCIBuildStageData();
obj.deserialize(params.Data);
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyJob请求参数结构体
* @class
*/
class ModifyJobRequest extends AbstractModel {
constructor() {
super();
/**
* 任务 ID
* @type {number || null}
*/
this.JobId = null;
/**
* 项目 ID
* @type {number || null}
*/
this.ProjectId = null;
/**
* 代码仓库名称
* @type {string || null}
*/
this.DepotName = null;
/**
* 任务名称
* @type {string || null}
*/
this.Name = null;
/**
* 执行方式
0; // standalone,已废弃
1; // cvm, 默认用这个
2; // used for private deploy
* @type {number || null}
*/
this.ExecuteIn = null;
/**
* 触发机制
0; // 代码更新触发
1; // 定时触发
2; // MR变动触发
* @type {Array.<number> || null}
*/
this.TriggerMethods = null;
/**
* 代码更新触发匹配规则
0; // 选择指定分支更新时触发
1; // 推送标签时触发
2; // 推送分支时触发
3; // 自定义触发条件正则表达式
* @type {number || null}
*/
this.HookType = null;
/**
* hookType 为 DEFAULT 时须指定
* @type {string || null}
*/
this.BranchSelector = null;
/**
* hookType 为 CUSTOME 时须指定
* @type {string || null}
*/
this.BranchRegex = null;
/**
* Jenkinsfile source 来源
0; // 来源仓库
1; // 静态输入的,需要指定字段
* @type {number || null}
*/
this.JenkinsFileFromType = null;
/**
* jenkinsFileFromType 为 SCM 时须指定
* @type {string || null}
*/
this.JenkinsFilePath = null;
/**
* jenkinsFileFromType 为 STATIC 时须指定
* @type {string || null}
*/
this.JenkinsFileStaticContent = null;
/**
* 自动取消相同版本
* @type {boolean || null}
*/
this.AutoCancelSameRevision = null;
/**
* 自动取消相同 MR
* @type {boolean || null}
*/
this.AutoCancelSameMergeRequest = null;
/**
* 构建结果通知触发者机制
0; // 总是通知
1; // 仅构建失败时通知
* @type {number || null}
*/
this.TriggerRemind = null;
/**
* 任务缓存目录配置
* @type {Array.<CIJobCachePath> || null}
*/
this.CachePaths = null;
/**
* 环境变量配置
* @type {Array.<CIJobEnv> || null}
*/
this.Envs = null;
/**
* 针对 CRON triggerMethod 的 schedule 规则配置, 暂只用于添加
* @type {Array.<CIJobSchedule> || null}
*/
this.Schedules = null;
/**
* 不管构建成功还是失败总是通知的用户
* @type {Array.<number> || null}
*/
this.AlwaysUserIds = null;
/**
* 仅构建失败时要通知的用户
* @type {Array.<number> || null}
*/
this.BuildFailIds = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.JobId = 'JobId' in params ? params.JobId : null;
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.DepotName = 'DepotName' in params ? params.DepotName : null;
this.Name = 'Name' in params ? params.Name : null;
this.ExecuteIn = 'ExecuteIn' in params ? params.ExecuteIn : null;
this.TriggerMethods = 'TriggerMethods' in params ? params.TriggerMethods : null;
this.HookType = 'HookType' in params ? params.HookType : null;
this.BranchSelector = 'BranchSelector' in params ? params.BranchSelector : null;
this.BranchRegex = 'BranchRegex' in params ? params.BranchRegex : null;
this.JenkinsFileFromType = 'JenkinsFileFromType' in params ? params.JenkinsFileFromType : null;
this.JenkinsFilePath = 'JenkinsFilePath' in params ? params.JenkinsFilePath : null;
this.JenkinsFileStaticContent =
'JenkinsFileStaticContent' in params ? params.JenkinsFileStaticContent : null;
this.AutoCancelSameRevision =
'AutoCancelSameRevision' in params ? params.AutoCancelSameRevision : null;
this.AutoCancelSameMergeRequest =
'AutoCancelSameMergeRequest' in params ? params.AutoCancelSameMergeRequest : null;
this.TriggerRemind = 'TriggerRemind' in params ? params.TriggerRemind : null;
if (params.CachePaths) {
this.CachePaths = [];
for (const z of Object.values(params.CachePaths)) {
const obj = new CIJobCachePath();
obj.deserialize(z);
this.CachePaths.push(obj);
}
}
if (params.Envs) {
this.Envs = [];
for (const z of Object.values(params.Envs)) {
const obj = new CIJobEnv();
obj.deserialize(z);
this.Envs.push(obj);
}
}
if (params.Schedules) {
this.Schedules = [];
for (const z of Object.values(params.Schedules)) {
const obj = new CIJobSchedule();
obj.deserialize(z);
this.Schedules.push(obj);
}
}
this.AlwaysUserIds = 'AlwaysUserIds' in params ? params.AlwaysUserIds : null;
this.BuildFailIds = 'BuildFailIds' in params ? params.BuildFailIds : null;
}
}
/**
* 项目信息
* @class
*/
class Project extends AbstractModel {
constructor() {
super();
/**
* 项目 ID
* @type {number || null}
*/
this.Id = null;
/**
* 创建时间
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.CreatedAt = null;
/**
* 更新时间
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.UpdatedAt = null;
/**
* 状态
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.Status = null;
/**
* 类型
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.Type = null;
/**
* 名称
注意:此字段可能返回 null,表示取不到有效值。
* @type {string || null}
*/
this.Name = null;
/**
* 显示名称
注意:此字段可能返回 null,表示取不到有效值。
* @type {string || null}
*/
this.DisplayName = null;
/**
* 描述
注意:此字段可能返回 null,表示取不到有效值。
* @type {string || null}
*/
this.Description = null;
/**
* 图标
注意:此字段可能返回 null,表示取不到有效值。
* @type {string || null}
*/
this.Icon = null;
/**
* 团队 ID
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.TeamId = null;
/**
* 是否为模板项目
注意:此字段可能返回 null,表示取不到有效值。
* @type {boolean || null}
*/
this.IsDemo = null;
/**
* 最大团员数
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.MaxMember = null;
/**
* 个人所有者 ID
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.UserOwnerId = null;
/**
* 是否压缩
注意:此字段可能返回 null,表示取不到有效值。
* @type {boolean || null}
*/
this.Archived = null;
/**
* 项目开始时间
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.StartDate = null;
/**
* 团队所有者 ID
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.TeamOwnerId = null;
/**
* 项目结束时间
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.EndDate = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
this.Status = 'Status' in params ? params.Status : null;
this.Type = 'Type' in params ? params.Type : null;
this.Name = 'Name' in params ? params.Name : null;
this.DisplayName = 'DisplayName' in params ? params.DisplayName : null;
this.Description = 'Description' in params ? params.Description : null;
this.Icon = 'Icon' in params ? params.Icon : null;
this.TeamId = 'TeamId' in params ? params.TeamId : null;
this.IsDemo = 'IsDemo' in params ? params.IsDemo : null;
this.MaxMember = 'MaxMember' in params ? params.MaxMember : null;
this.UserOwnerId = 'UserOwnerId' in params ? params.UserOwnerId : null;
this.Archived = 'Archived' in params ? params.Archived : null;
this.StartDate = 'StartDate' in params ? params.StartDate : null;
this.TeamOwnerId = 'TeamOwnerId' in params ? params.TeamOwnerId : null;
this.EndDate = 'EndDate' in params ? params.EndDate : null;
}
}
/**
* 构建完整的日志
* @class
*/
class DescribeCodingCIBuildLogRawData extends AbstractModel {
constructor() {
super();
/**
* 日志
* @type {string || null}
*/
this.Raw = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Raw = 'Raw' in params ? params.Raw : null;
}
}
/**
* 版本
* @class
*/
class ArtifactVersion extends AbstractModel {
constructor() {
super();
/**
* 版本 ID
* @type {number || null}
*/
this.Id = null;
/**
* 创建时间
* @type {number || null}
*/
this.CreatedAt = null;
/**
* 更新时间
* @type {number || null}
*/
this.UpdatedAt = null;
/**
* 制品包 ID
* @type {number || null}
*/
this.PkgId = null;
/**
* 版本号
* @type {string || null}
*/
this.Version = null;
/**
* 版本哈希
* @type {string || null}
*/
this.Hash = null;
/**
* 下载量
* @type {number || null}
*/
this.DownloadCount = null;
/**
* 上传者名称
* @type {string || null}
*/
this.Uploader = null;
/**
* 上传者 id
* @type {number || null}
*/
this.UploaderId = null;
/**
* 版本描述
* @type {string || null}
*/
this.Description = null;
/**
* 发布状态
* @type {number || null}
*/
this.ReleaseStatus = null;
/**
* 删除时间
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.DeletedAt = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
this.PkgId = 'PkgId' in params ? params.PkgId : null;
this.Version = 'Version' in params ? params.Version : null;
this.Hash = 'Hash' in params ? params.Hash : null;
this.DownloadCount = 'DownloadCount' in params ? params.DownloadCount : null;
this.Uploader = 'Uploader' in params ? params.Uploader : null;
this.UploaderId = 'UploaderId' in params ? params.UploaderId : null;
this.Description = 'Description' in params ? params.Description : null;
this.ReleaseStatus = 'ReleaseStatus' in params ? params.ReleaseStatus : null;
this.DeletedAt = 'DeletedAt' in params ? params.DeletedAt : null;
}
}
/**
* CreateCompanies请求参数结构体
* @class
*/
class CreateCompaniesRequest extends AbstractModel {
constructor() {
super();
/**
* team domain
* @type {string || null}
*/
this.Domain = null;
/**
* 公司名 company name
* @type {string || null}
*/
this.Name = null;
/**
* 注册 ip
* @type {string || null}
*/
this.Ip = null;
/**
* 腾讯云用户信息
* @type {RegistryUser || null}
*/
this.RegistryUser = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Domain = 'Domain' in params ? params.Domain : null;
this.Name = 'Name' in params ? params.Name : null;
this.Ip = 'Ip' in params ? params.Ip : null;
if (params.RegistryUser) {
const obj = new RegistryUser();
obj.deserialize(params.RegistryUser);
this.RegistryUser = obj;
}
}
}
/**
* DescribeListBuild请求参数结构体
* @class
*/
class DescribeListBuildRequest extends AbstractModel {
constructor() {
super();
/**
* 任务 ID
* @type {number || null}
*/
this.JobId = null;
/**
* 请求页
* @type {number || null}
*/
this.Page = null;
/**
* 分页大小
* @type {number || null}
*/
this.PageSize = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.JobId = 'JobId' in params ? params.JobId : null;
this.Page = 'Page' in params ? params.Page : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
}
}
/**
* StopCodingCIBuild请求参数结构体
* @class
*/
class StopCodingCIBuildRequest extends AbstractModel {
constructor() {
super();
/**
* 构建 ID
* @type {number || null}
*/
this.BuildId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BuildId = 'BuildId' in params ? params.BuildId : null;
}
}
/**
* DescribeProjectCredentials返回参数结构体
* @class
*/
class DescribeProjectCredentialsResponse extends AbstractModel {
constructor() {
super();
/**
* 获取凭据列表
* @type {DescribeProjectCredentialsData || null}
*/
this.Data = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
const obj = new DescribeProjectCredentialsData();
obj.deserialize(params.Data);
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Test请求参数结构体
* @class
*/
class TestRequest extends AbstractModel {
constructor() {
super();
/**
* 无
* @type {number || null}
*/
this.Qq = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Qq = 'Qq' in params ? params.Qq : null;
}
}
/**
* DescribeCodingCIJobs返回参数结构体
* @class
*/
class DescribeCodingCIJobsResponse extends AbstractModel {
constructor() {
super();
/**
* CI 任务列表
* @type {Array.<CodingCIJob> || null}
*/
this.JobList = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.JobList) {
this.JobList = [];
for (const z of Object.values(params.JobList)) {
const obj = new CodingCIJob();
obj.deserialize(z);
this.JobList.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeListBuild返回参数结构体
* @class
*/
class DescribeListBuildResponse extends AbstractModel {
constructor() {
super();
/**
* 请求页
* @type {number || null}
*/
this.Offset = null;
/**
* 分页大小
* @type {number || null}
*/
this.Size = null;
/**
* 总个数
* @type {number || null}
*/
this.TotalCount = null;
/**
* 构建列表
注意:此字段可能返回 null,表示取不到有效值。
* @type {Array.<CIBuild> || null}
*/
this.InstanceSet = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Offset = 'Offset' in params ? params.Offset : null;
this.Size = 'Size' in params ? params.Size : null;
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.InstanceSet) {
this.InstanceSet = [];
for (const z of Object.values(params.InstanceSet)) {
const obj = new CIBuild();
obj.deserialize(z);
this.InstanceSet.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* 获取个人仓库返回结构
* @class
*/
class CodingCIPersonalExternalDepotData extends AbstractModel {
constructor() {
super();
/**
* 仓库列表
* @type {Array.<CodingCIPersonalExternalDepot> || null}
*/
this.DepotList = null;
/**
* 仓库类型是否被授权,如 Github 是否被授权
* @type {boolean || null}
*/
this.IsBound = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.DepotList) {
this.DepotList = [];
for (const z of Object.values(params.DepotList)) {
const obj = new CodingCIPersonalExternalDepot();
obj.deserialize(z);
this.DepotList.push(obj);
}
}
this.IsBound = 'IsBound' in params ? params.IsBound : null;
}
}
/**
* StopBuild返回参数结构体
* @class
*/
class StopBuildResponse extends AbstractModel {
constructor() {
super();
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreatePersonalToken请求参数结构体
* @class
*/
class CreatePersonalTokenRequest extends AbstractModel {
constructor() {
super();
/**
* 令牌作用域
* @type {Array.<string> || null}
*/
this.ScopeList = null;
/**
* 项目 Id 该字段不用填
* @type {number || null}
*/
this.ProjectId = null;
/**
* 个人令牌描述,不可重复,不填会默认帮生成
* @type {string || null}
*/
this.Description = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ScopeList = 'ScopeList' in params ? params.ScopeList : null;
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.Description = 'Description' in params ? params.Description : null;
}
}
/**
* DeleteCodingCIBuild请求参数结构体
* @class
*/
class DeleteCodingCIBuildRequest extends AbstractModel {
constructor() {
super();
/**
* 构建 ID
* @type {number || null}
*/
this.BuildId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BuildId = 'BuildId' in params ? params.BuildId : null;
}
}
/**
* DescribeVersionList返回参数结构体
* @class
*/
class DescribeVersionListResponse extends AbstractModel {
constructor() {
super();
/**
* 版本列表
注意:此字段可能返回 null,表示取不到有效值。
* @type {Array.<ArtifactVersion> || null}
*/
this.InstanceSet = null;
/**
* 请求页
* @type {number || null}
*/
this.Offset = null;
/**
* 分页大小
* @type {number || null}
*/
this.Size = null;
/**
* 数据总数
* @type {number || null}
*/
this.TotalCount = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.InstanceSet) {
this.InstanceSet = [];
for (const z of Object.values(params.InstanceSet)) {
const obj = new ArtifactVersion();
obj.deserialize(z);
this.InstanceSet.push(obj);
}
}
this.Offset = 'Offset' in params ? params.Offset : null;
this.Size = 'Size' in params ? params.Size : null;
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DeleteBuild返回参数结构体
* @class
*/
class DeleteBuildResponse extends AbstractModel {
constructor() {
super();
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateProject请求参数结构体
* @class
*/
class CreateProjectRequest extends AbstractModel {
constructor() {
super();
/**
* team gk
* @type {string || null}
*/
this.TeamGk = null;
/**
* user gk
* @type {string || null}
*/
this.UserGk = null;
/**
* 项目名
* @type {string || null}
*/
this.Name = null;
/**
* 项目 display name
* @type {string || null}
*/
this.DisplayName = null;
/**
* 项目描述
* @type {string || null}
*/
this.Description = null;
/**
* 启用:true,禁用:false
* @type {boolean || null}
*/
this.GitEnabled = null;
/**
* 非必填,git ignore文件类型
* @type {string || null}
*/
this.GitIgnore = null;
/**
* "true"|"false"
* @type {string || null}
*/
this.GitReadmeEnabled = null;
/**
* license
* @type {string || null}
*/
this.GitLicense = null;
/**
* git|svn|hg
* @type {string || null}
*/
this.VcsType = null;
/**
* "true"|"false"
* @type {string || null}
*/
this.CreateSvnLayout = null;
/**
* 非必填,项目开始时间
* @type {number || null}
*/
this.StartDate = null;
/**
* 非必填,项目结束时间
* @type {number || null}
*/
this.EndDate = null;
/**
* 0: 不公开 1:公开源代码(公开后,任何人都可以访问代码仓库,请慎重考虑!
* @type {number || null}
*/
this.Shared = null;
/**
* 非必填,设置空字符串
使用预置代码模板初始化仓库,java|ror|sinatra
* @type {string || null}
*/
this.Template = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TeamGk = 'TeamGk' in params ? params.TeamGk : null;
this.UserGk = 'UserGk' in params ? params.UserGk : null;
this.Name = 'Name' in params ? params.Name : null;
this.DisplayName = 'DisplayName' in params ? params.DisplayName : null;
this.Description = 'Description' in params ? params.Description : null;
this.GitEnabled = 'GitEnabled' in params ? params.GitEnabled : null;
this.GitIgnore = 'GitIgnore' in params ? params.GitIgnore : null;
this.GitReadmeEnabled = 'GitReadmeEnabled' in params ? params.GitReadmeEnabled : null;
this.GitLicense = 'GitLicense' in params ? params.GitLicense : null;
this.VcsType = 'VcsType' in params ? params.VcsType : null;
this.CreateSvnLayout = 'CreateSvnLayout' in params ? params.CreateSvnLayout : null;
this.StartDate = 'StartDate' in params ? params.StartDate : null;
this.EndDate = 'EndDate' in params ? params.EndDate : null;
this.Shared = 'Shared' in params ? params.Shared : null;
this.Template = 'Template' in params ? params.Template : null;
}
}
/**
* DescribeProjectDepots返回参数结构体
* @class
*/
class DescribeProjectDepotsResponse extends AbstractModel {
constructor() {
super();
/**
* 获取仓库列表
* @type {DescribeProjectDepotsData || null}
*/
this.Data = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
const obj = new DescribeProjectDepotsData();
obj.deserialize(params.Data);
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeProject返回参数结构体
* @class
*/
class DescribeProjectResponse extends AbstractModel {
constructor() {
super();
/**
* 项目 ID
* @type {number || null}
*/
this.Id = null;
/**
* 创建时间
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.CreatedAt = null;
/**
* 更新时间
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.UpdatedAt = null;
/**
* 状态
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.Status = null;
/**
* 类型
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.Type = null;
/**
* 名称
注意:此字段可能返回 null,表示取不到有效值。
* @type {string || null}
*/
this.Name = null;
/**
* 显示名称
注意:此字段可能返回 null,表示取不到有效值。
* @type {string || null}
*/
this.DisplayName = null;
/**
* 描述
注意:此字段可能返回 null,表示取不到有效值。
* @type {string || null}
*/
this.Description = null;
/**
* 图标
注意:此字段可能返回 null,表示取不到有效值。
* @type {string || null}
*/
this.Icon = null;
/**
* 团队 ID
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.TeamId = null;
/**
* 是否为模板项目
注意:此字段可能返回 null,表示取不到有效值。
* @type {boolean || null}
*/
this.IsDemo = null;
/**
* 最大团员数
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.MaxMember = null;
/**
* 个人所有者 ID
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.UserOwnerId = null;
/**
* 是否压缩
注意:此字段可能返回 null,表示取不到有效值。
* @type {boolean || null}
*/
this.Archived = null;
/**
* 项目开始时间
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.StartDate = null;
/**
* 团队所有者 ID
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.TeamOwnerId = null;
/**
* 项目结束时间
注意:此字段可能返回 null,表示取不到有效值。
* @type {number || null}
*/
this.EndDate = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null;
this.Status = 'Status' in params ? params.Status : null;
this.Type = 'Type' in params ? params.Type : null;
this.Name = 'Name' in params ? params.Name : null;
this.DisplayName = 'DisplayName' in params ? params.DisplayName : null;
this.Description = 'Description' in params ? params.Description : null;
this.Icon = 'Icon' in params ? params.Icon : null;
this.TeamId = 'TeamId' in params ? params.TeamId : null;
this.IsDemo = 'IsDemo' in params ? params.IsDemo : null;
this.MaxMember = 'MaxMember' in params ? params.MaxMember : null;
this.UserOwnerId = 'UserOwnerId' in params ? params.UserOwnerId : null;
this.Archived = 'Archived' in params ? params.Archived : null;
this.StartDate = 'StartDate' in params ? params.StartDate : null;
this.TeamOwnerId = 'TeamOwnerId' in params ? params.TeamOwnerId : null;
this.EndDate = 'EndDate' in params ? params.EndDate : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeCodingCIBuildLog返回参数结构体
* @class
*/
class DescribeCodingCIBuildLogResponse extends AbstractModel {
constructor() {
super();
/**
* 日志信息
* @type {DescribeCodingCIBuildLogData || null}
*/
this.Data = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
const obj = new DescribeCodingCIBuildLogData();
obj.deserialize(params.Data);
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* 配置团队成员权限
* @class
*/
class EnterprisePermission extends AbstractModel {
constructor() {
super();
/**
* 功能
* @type {string || null}
*/
this.Function = null;
/**
* 方法
* @type {string || null}
*/
this.Action = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Function = 'Function' in params ? params.Function : null;
this.Action = 'Action' in params ? params.Action : null;
}
}
/**
* CreateJob返回参数结构体
* @class
*/
class CreateJobResponse extends AbstractModel {
constructor() {
super();
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* 构建的测试结果
* @class
*/
class CIBuildTestResult extends AbstractModel {
constructor() {
super();
/**
* 是否空
* @type {boolean || null}
*/
this.Empty = null;
/**
* 失败次数
* @type {number || null}
*/
this.FailCount = null;
/**
* 通过次数
* @type {number || null}
*/
this.PassCount = null;
/**
* 跳过次数
* @type {number || null}
*/
this.SkipCount = null;
/**
* 总次数
* @type {number || null}
*/
this.TotalCount = null;
/**
* 时长
* @type {number || null}
*/
this.Duration = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Empty = 'Empty' in params ? params.Empty : null;
this.FailCount = 'FailCount' in params ? params.FailCount : null;
this.PassCount = 'PassCount' in params ? params.PassCount : null;
this.SkipCount = 'SkipCount' in params ? params.SkipCount : null;
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.Duration = 'Duration' in params ? params.Duration : null;
}
}
/**
* DescribePersonalExternalDepots请求参数结构体
* @class
*/
class DescribePersonalExternalDepotsRequest extends AbstractModel {
constructor() {
super();
/**
* 项目 Id
* @type {number || null}
*/
this.ProjectId = null;
/**
* 仓库类型
* @type {string || null}
*/
this.DepotType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.DepotType = 'DepotType' in params ? params.DepotType : null;
}
}
/**
* 创建凭据返回结构
* @class
*/
class CreateProjectCredentialData extends AbstractModel {
constructor() {
super();
/**
* 创建凭据返回结构
* @type {Credential || null}
*/
this.Credential = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Credential) {
const obj = new Credential();
obj.deserialize(params.Credential);
this.Credential = obj;
}
}
}
/**
* DescribeBuild返回参数结构体
* @class
*/
class DescribeBuildResponse extends AbstractModel {
constructor() {
super();
/**
* 构建信息
* @type {CIBuild || null}
*/
this.Build = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Build) {
const obj = new CIBuild();
obj.deserialize(params.Build);
this.Build = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeArtifactDownloadUrl请求参数结构体
* @class
*/
class DescribeArtifactDownloadUrlRequest extends AbstractModel {
constructor() {
super();
/**
* 仓库类型(目前仅支持 1-Generic 及 6-Helm)
* @type {number || null}
*/
this.Type = null;
/**
* 项目名称
* @type {string || null}
*/
this.ProjectName = null;
/**
* 制品仓库名称
* @type {string || null}
*/
this.RepositoryName = null;
/**
* 制品包名称
* @type {string || null}
*/
this.PackageName = null;
/**
* 制品版本号
* @type {string || null}
*/
this.VersionName = null;
/**
* 超时时长,可不填,默认5分钟,单位秒
* @type {number || null}
*/
this.Timeout = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Type = 'Type' in params ? params.Type : null;
this.ProjectName = 'ProjectName' in params ? params.ProjectName : null;
this.RepositoryName = 'RepositoryName' in params ? params.RepositoryName : null;
this.PackageName = 'PackageName' in params ? params.PackageName : null;
this.VersionName = 'VersionName' in params ? params.VersionName : null;
this.Timeout = 'Timeout' in params ? params.Timeout : null;
}
}
/**
* TriggerCodingCIBuild返回参数结构体
* @class
*/
class TriggerCodingCIBuildResponse extends AbstractModel {
constructor() {
super();
/**
* 构建信息
* @type {TriggerCodingCIBuildData || null}
*/
this.Data = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
const obj = new TriggerCodingCIBuildData();
obj.deserialize(params.Data);
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeProjectDepotTags返回参数结构体
* @class
*/
class DescribeProjectDepotTagsResponse extends AbstractModel {
constructor() {
super();
/**
* 返回标签列表的数据结构
* @type {DepotDetailData || null}
*/
this.Data = null;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
const obj = new DepotDetailData();
obj.deserialize(params.Data);
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CI 任务缓存目录配置
* @class
*/
class CIJobCachePath extends AbstractModel {
constructor() {
super();
/**
* 绝对路径
* @type {string || null}
*/
this.AbsolutePath = null;
/**
* 是否启用
* @type {boolean || null}
*/
this.Enabled = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.AbsolutePath = 'AbsolutePath' in params ? params.AbsolutePath : null;
this.Enabled = 'Enabled' in params ? params.Enabled : null;
}
}
/**
* 封装返回值
* @class
*/
class DescribeTeamDepotsData extends AbstractModel {
constructor() {
super();
/**
* 仓库列表
* @type {Array.<CodingCITeamDepot> || null}
*/
this.DepotList = null;
/**
* 仓库类型是否被授权,如 Github 是否被授权
* @type {boolean || null}
*/
this.IsBound = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.DepotList) {
this.DepotList = [];
for (const z of Object.values(params.DepotList)) {
const obj = new CodingCITeamDepot();
obj.deserialize(z);
this.DepotList.push(obj);
}
}
this.IsBound = 'IsBound' in params ? params.IsBound : null;
}
}
/**
* 腾讯云用户信息
* @class
*/
class RegistryUser extends AbstractModel {
constructor() {
super();
/**
* 腾讯云账户 uin
* @type {string || null}
*/
this.UinId = null;
/**
* 腾讯云主账户 uin
* @type {string || null}
*/
this.OwnerUinId = null;
/**
* 腾讯云 appid
* @type {string || null}
*/
this.AppId = null;
/**
* 腾讯云账户名
* @type {string || null}
*/
this.AccountName = null;
/**
* 手机号
* @type {string || null}
*/
this.Phone = null;
/**
* 邮箱
* @type {string || null}
*/
this.Email = null;
/**
* 用户图像 url
* @type {string || null}
*/
this.Avatar = null;
/**
* 腾讯云sso登陆uin
* @type {string || null}
*/
this.SamlUinId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.UinId = 'UinId' in params ? params.UinId : null;
this.OwnerUinId = 'OwnerUinId' in params ? params.OwnerUinId : null;
this.AppId = 'AppId' in params ? params.AppId : null;
this.AccountName = 'AccountName' in params ? params.AccountName : null;
this.Phone = 'Phone' in params ? params.Phone : null;
this.Email = 'Email' in params ? params.Email : null;
this.Avatar = 'Avatar' in params ? params.Avatar : null;
this.SamlUinId = 'SamlUinId' in params ? params.SamlUinId : null;
}
}
/**
* 制品包
* @class
*/
class ArtifactPackage extends AbstractModel {
constructor() {
super();
/**
* 包 ID
* @type {number || null}
*/
this.Id = null;
/**
* 制品仓库 ID
* @type {number || null}
*/
this.RepoId = null;
/**
* 包名称
* @type {string || null}
*/
this.Name = null;
/**
* 包描述
* @type {string || null}
*/
this.Description = null;
/**
* 包下的版本数量
* @type {number || null}
*/
this.VersionCount = null;
/**
* 创建时间
* @type {number || null}
*/
this.CreatedAt = null;
/**
* 更新时间
* @type {number || null