@huaweicloud/huaweicloud-sdk-devstar 3.0.29-beta → 3.0.30-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-devstar",
3
- "version": "3.0.29-beta",
3
+ "version": "3.0.30-rc",
4
4
  "description": "Huaweicloud SDK for devstar",
5
5
  "main": "huaweicloud-sdk-devstar.js",
6
6
  "typings": "huaweicloud-sdk-devstar.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.0.29-beta"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.0.30-rc"
18
18
  }
19
19
  }
@@ -18,6 +18,8 @@ import { ListPublishedTemplatesRequest } from './model/ListPublishedTemplatesReq
18
18
  import { ListPublishedTemplatesResponse } from './model/ListPublishedTemplatesResponse';
19
19
  import { ListTemplateViewHistoriesRequest } from './model/ListTemplateViewHistoriesRequest';
20
20
  import { ListTemplateViewHistoriesResponse } from './model/ListTemplateViewHistoriesResponse';
21
+ import { ListTemplatesRequest } from './model/ListTemplatesRequest';
22
+ import { ListTemplatesResponse } from './model/ListTemplatesResponse';
21
23
  import { ListTemplatesV2Request } from './model/ListTemplatesV2Request';
22
24
  import { ListTemplatesV2Response } from './model/ListTemplatesV2Response';
23
25
  import { RunCodehubTemplateJobRequest } from './model/RunCodehubTemplateJobRequest';
@@ -38,6 +40,8 @@ import { ShowJobDetailRequest } from './model/ShowJobDetailRequest';
38
40
  import { ShowJobDetailResponse } from './model/ShowJobDetailResponse';
39
41
  import { ShowPipelineLastStatusV2Request } from './model/ShowPipelineLastStatusV2Request';
40
42
  import { ShowPipelineLastStatusV2Response } from './model/ShowPipelineLastStatusV2Response';
43
+ import { ShowRepositoryByCloudIdeRequest } from './model/ShowRepositoryByCloudIdeRequest';
44
+ import { ShowRepositoryByCloudIdeResponse } from './model/ShowRepositoryByCloudIdeResponse';
41
45
  import { ShowRepositoryStatisticalDataV2Request } from './model/ShowRepositoryStatisticalDataV2Request';
42
46
  import { ShowRepositoryStatisticalDataV2Response } from './model/ShowRepositoryStatisticalDataV2Response';
43
47
  import { ShowTemplateDetailRequest } from './model/ShowTemplateDetailRequest';
@@ -240,6 +244,20 @@ export declare class DevStarClient {
240
244
  * @throws {RequiredError}
241
245
  */
242
246
  checkRepositoryDuplicateName(checkRepositoryDuplicateNameRequest?: CheckRepositoryDuplicateNameRequest): Promise<CheckRepositoryDuplicateNameResponse>;
247
+ /**
248
+ * 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE 使用要求:1.用户需为登录状态; 2.拥有仓库权限
249
+ * @summary 使用 CloudIDE 实例打开应用代码
250
+ * @param {string} repositoryId 仓库id
251
+ * @param {string} repositorySshUrl 仓库下载地址
252
+ * @param {'zh-cn' | 'en-us'} [xLanguage] 语言类型 中文:zh-cn 英文:en-us
253
+ * @param {string} [regionId] 区域ID
254
+ * @param {string} [spacePrefix] 工作空间名称前缀
255
+ * @param {boolean} [isOpenLast] 是否打开上一次的工作空间
256
+ * @param {boolean} [isFree] 是否创建免费实例链接
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ showRepositoryByCloudIde(showRepositoryByCloudIdeRequest?: ShowRepositoryByCloudIdeRequest): Promise<ShowRepositoryByCloudIdeResponse>;
243
261
  /**
244
262
  * 查询代码仓库的统计信息,包括代码仓的名称,代码行数等信息
245
263
  * @summary 应用代码仓库统计信息
@@ -289,6 +307,15 @@ export declare class DevStarClient {
289
307
  * @throws {RequiredError}
290
308
  */
291
309
  listTemplateViewHistories(listTemplateViewHistoriesRequest?: ListTemplateViewHistoriesRequest): Promise<ListTemplateViewHistoriesResponse>;
310
+ /**
311
+ * 查询模板列表。
312
+ * @summary 查询模板列表
313
+ * @param {'zh-cn' | 'en-us'} [xLanguage] 语言类型,缺省值为“zh-cn”。 枚举值: - zh-cn:中文 - en-us:英文
314
+ * @param {TemplateQuery} [listTemplatesRequestBody] 模板列表查询参数
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ listTemplates(listTemplatesRequest?: ListTemplatesRequest): Promise<ListTemplatesResponse>;
292
319
  /**
293
320
  * 查询模板列表。
294
321
  * @summary 查询模板列表(V2)
@@ -535,6 +562,18 @@ export declare const ParamCreater: () => {
535
562
  headers: {};
536
563
  data: {};
537
564
  };
565
+ /**
566
+ * 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE 使用要求:1.用户需为登录状态; 2.拥有仓库权限
567
+ */
568
+ showRepositoryByCloudIde(showRepositoryByCloudIdeRequest?: ShowRepositoryByCloudIdeRequest | undefined): {
569
+ method: string;
570
+ url: string;
571
+ contentType: string;
572
+ queryParams: {};
573
+ pathParams: {};
574
+ headers: {};
575
+ data: {};
576
+ };
538
577
  /**
539
578
  * 查询代码仓库的统计信息,包括代码仓的名称,代码行数等信息
540
579
  */
@@ -595,6 +634,18 @@ export declare const ParamCreater: () => {
595
634
  headers: {};
596
635
  data: {};
597
636
  };
637
+ /**
638
+ * 查询模板列表。
639
+ */
640
+ listTemplates(listTemplatesRequest?: ListTemplatesRequest | undefined): {
641
+ method: string;
642
+ url: string;
643
+ contentType: string;
644
+ queryParams: {};
645
+ pathParams: {};
646
+ headers: {};
647
+ data: {};
648
+ };
598
649
  /**
599
650
  * 查询模板列表。
600
651
  */
@@ -27,6 +27,7 @@ var ListPipelineTemplatesRequest_1 = require("./model/ListPipelineTemplatesReque
27
27
  var ListProjectsV4Request_1 = require("./model/ListProjectsV4Request");
28
28
  var ListPublishedTemplatesRequest_1 = require("./model/ListPublishedTemplatesRequest");
29
29
  var ListTemplateViewHistoriesRequest_1 = require("./model/ListTemplateViewHistoriesRequest");
30
+ var ListTemplatesRequest_1 = require("./model/ListTemplatesRequest");
30
31
  var ListTemplatesV2Request_1 = require("./model/ListTemplatesV2Request");
31
32
  var RunCodehubTemplateJobRequest_1 = require("./model/RunCodehubTemplateJobRequest");
32
33
  var RunDevstarTemplateJobRequest_1 = require("./model/RunDevstarTemplateJobRequest");
@@ -37,6 +38,7 @@ var ShowApplicationV3Request_1 = require("./model/ShowApplicationV3Request");
37
38
  var ShowDeploymentJobsRequest_1 = require("./model/ShowDeploymentJobsRequest");
38
39
  var ShowJobDetailRequest_1 = require("./model/ShowJobDetailRequest");
39
40
  var ShowPipelineLastStatusV2Request_1 = require("./model/ShowPipelineLastStatusV2Request");
41
+ var ShowRepositoryByCloudIdeRequest_1 = require("./model/ShowRepositoryByCloudIdeRequest");
40
42
  var ShowRepositoryStatisticalDataV2Request_1 = require("./model/ShowRepositoryStatisticalDataV2Request");
41
43
  var ShowTemplateDetailRequest_1 = require("./model/ShowTemplateDetailRequest");
42
44
  var ShowTemplateFileRequest_1 = require("./model/ShowTemplateFileRequest");
@@ -329,6 +331,25 @@ var DevStarClient = /** @class */ (function () {
329
331
  // @ts-ignore
330
332
  return this.hcClient.sendRequest(options);
331
333
  };
334
+ /**
335
+ * 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE 使用要求:1.用户需为登录状态; 2.拥有仓库权限
336
+ * @summary 使用 CloudIDE 实例打开应用代码
337
+ * @param {string} repositoryId 仓库id
338
+ * @param {string} repositorySshUrl 仓库下载地址
339
+ * @param {'zh-cn' | 'en-us'} [xLanguage] 语言类型 中文:zh-cn 英文:en-us
340
+ * @param {string} [regionId] 区域ID
341
+ * @param {string} [spacePrefix] 工作空间名称前缀
342
+ * @param {boolean} [isOpenLast] 是否打开上一次的工作空间
343
+ * @param {boolean} [isFree] 是否创建免费实例链接
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ DevStarClient.prototype.showRepositoryByCloudIde = function (showRepositoryByCloudIdeRequest) {
348
+ var options = (0, exports.ParamCreater)().showRepositoryByCloudIde(showRepositoryByCloudIdeRequest);
349
+ options['responseHeaders'] = [''];
350
+ // @ts-ignore
351
+ return this.hcClient.sendRequest(options);
352
+ };
332
353
  /**
333
354
  * 查询代码仓库的统计信息,包括代码仓的名称,代码行数等信息
334
355
  * @summary 应用代码仓库统计信息
@@ -403,6 +424,20 @@ var DevStarClient = /** @class */ (function () {
403
424
  // @ts-ignore
404
425
  return this.hcClient.sendRequest(options);
405
426
  };
427
+ /**
428
+ * 查询模板列表。
429
+ * @summary 查询模板列表
430
+ * @param {'zh-cn' | 'en-us'} [xLanguage] 语言类型,缺省值为“zh-cn”。 枚举值: - zh-cn:中文 - en-us:英文
431
+ * @param {TemplateQuery} [listTemplatesRequestBody] 模板列表查询参数
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ DevStarClient.prototype.listTemplates = function (listTemplatesRequest) {
436
+ var options = (0, exports.ParamCreater)().listTemplates(listTemplatesRequest);
437
+ options['responseHeaders'] = [''];
438
+ // @ts-ignore
439
+ return this.hcClient.sendRequest(options);
440
+ };
406
441
  /**
407
442
  * 查询模板列表。
408
443
  * @summary 查询模板列表(V2)
@@ -1273,6 +1308,77 @@ var ParamCreater = function () {
1273
1308
  options.headers = localVarHeaderParameter;
1274
1309
  return options;
1275
1310
  },
1311
+ /**
1312
+ * 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE 使用要求:1.用户需为登录状态; 2.拥有仓库权限
1313
+ */
1314
+ showRepositoryByCloudIde: function (showRepositoryByCloudIdeRequest) {
1315
+ var options = {
1316
+ method: "GET",
1317
+ url: "/v1/repositories/{repository_id}/show/cloudide",
1318
+ contentType: "application/json",
1319
+ queryParams: {},
1320
+ pathParams: {},
1321
+ headers: {},
1322
+ data: {}
1323
+ };
1324
+ var localVarHeaderParameter = {};
1325
+ var localVarQueryParameter = {};
1326
+ var repositoryId;
1327
+ var repositorySshUrl;
1328
+ var xLanguage;
1329
+ var regionId;
1330
+ var spacePrefix;
1331
+ var isOpenLast;
1332
+ var isFree;
1333
+ if (showRepositoryByCloudIdeRequest !== null && showRepositoryByCloudIdeRequest !== undefined) {
1334
+ if (showRepositoryByCloudIdeRequest instanceof ShowRepositoryByCloudIdeRequest_1.ShowRepositoryByCloudIdeRequest) {
1335
+ repositoryId = showRepositoryByCloudIdeRequest.repositoryId;
1336
+ repositorySshUrl = showRepositoryByCloudIdeRequest.repositorySshUrl;
1337
+ xLanguage = showRepositoryByCloudIdeRequest.xLanguage;
1338
+ regionId = showRepositoryByCloudIdeRequest.regionId;
1339
+ spacePrefix = showRepositoryByCloudIdeRequest.spacePrefix;
1340
+ isOpenLast = showRepositoryByCloudIdeRequest.isOpenLast;
1341
+ isFree = showRepositoryByCloudIdeRequest.isFree;
1342
+ }
1343
+ else {
1344
+ repositoryId = showRepositoryByCloudIdeRequest['repository_id'];
1345
+ repositorySshUrl = showRepositoryByCloudIdeRequest['repository_ssh_url'];
1346
+ xLanguage = showRepositoryByCloudIdeRequest['X-Language'];
1347
+ regionId = showRepositoryByCloudIdeRequest['region_id'];
1348
+ spacePrefix = showRepositoryByCloudIdeRequest['space_prefix'];
1349
+ isOpenLast = showRepositoryByCloudIdeRequest['is_open_last'];
1350
+ isFree = showRepositoryByCloudIdeRequest['is_free'];
1351
+ }
1352
+ }
1353
+ if (repositoryId === null || repositoryId === undefined) {
1354
+ throw new RequiredError('repositoryId', 'Required parameter repositoryId was null or undefined when calling showRepositoryByCloudIde.');
1355
+ }
1356
+ if (repositorySshUrl === null || repositorySshUrl === undefined) {
1357
+ throw new RequiredError('repositorySshUrl', 'Required parameter repositorySshUrl was null or undefined when calling showRepositoryByCloudIde.');
1358
+ }
1359
+ if (repositorySshUrl !== null && repositorySshUrl !== undefined) {
1360
+ localVarQueryParameter['repository_ssh_url'] = repositorySshUrl;
1361
+ }
1362
+ if (regionId !== null && regionId !== undefined) {
1363
+ localVarQueryParameter['region_id'] = regionId;
1364
+ }
1365
+ if (spacePrefix !== null && spacePrefix !== undefined) {
1366
+ localVarQueryParameter['space_prefix'] = spacePrefix;
1367
+ }
1368
+ if (isOpenLast !== null && isOpenLast !== undefined) {
1369
+ localVarQueryParameter['is_open_last'] = isOpenLast;
1370
+ }
1371
+ if (isFree !== null && isFree !== undefined) {
1372
+ localVarQueryParameter['is_free'] = isFree;
1373
+ }
1374
+ if (xLanguage !== undefined && xLanguage !== null) {
1375
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
1376
+ }
1377
+ options.queryParams = localVarQueryParameter;
1378
+ options.pathParams = { 'repository_id': repositoryId, };
1379
+ options.headers = localVarHeaderParameter;
1380
+ return options;
1381
+ },
1276
1382
  /**
1277
1383
  * 查询代码仓库的统计信息,包括代码仓的名称,代码行数等信息
1278
1384
  */
@@ -1488,6 +1594,40 @@ var ParamCreater = function () {
1488
1594
  options.headers = localVarHeaderParameter;
1489
1595
  return options;
1490
1596
  },
1597
+ /**
1598
+ * 查询模板列表。
1599
+ */
1600
+ listTemplates: function (listTemplatesRequest) {
1601
+ var options = {
1602
+ method: "POST",
1603
+ url: "/v1/templates/query",
1604
+ contentType: "application/json;charset=UTF-8",
1605
+ queryParams: {},
1606
+ pathParams: {},
1607
+ headers: {},
1608
+ data: {}
1609
+ };
1610
+ var localVarHeaderParameter = {};
1611
+ var body;
1612
+ var xLanguage;
1613
+ if (listTemplatesRequest !== null && listTemplatesRequest !== undefined) {
1614
+ if (listTemplatesRequest instanceof ListTemplatesRequest_1.ListTemplatesRequest) {
1615
+ xLanguage = listTemplatesRequest.xLanguage;
1616
+ body = listTemplatesRequest.body;
1617
+ }
1618
+ else {
1619
+ xLanguage = listTemplatesRequest['X-Language'];
1620
+ body = listTemplatesRequest['body'];
1621
+ }
1622
+ }
1623
+ if (xLanguage !== undefined && xLanguage !== null) {
1624
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
1625
+ }
1626
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
1627
+ options.data = body !== undefined ? body : {};
1628
+ options.headers = localVarHeaderParameter;
1629
+ return options;
1630
+ },
1491
1631
  /**
1492
1632
  * 查询模板列表。
1493
1633
  */
@@ -0,0 +1,18 @@
1
+ import { TemplateQuery } from './TemplateQuery';
2
+ export declare class ListTemplatesRequest {
3
+ private 'X-Language'?;
4
+ body?: TemplateQuery;
5
+ constructor();
6
+ withXLanguage(xLanguage: ListTemplatesRequestXLanguageEnum): ListTemplatesRequest;
7
+ set xLanguage(xLanguage: ListTemplatesRequestXLanguageEnum | undefined);
8
+ get xLanguage(): ListTemplatesRequestXLanguageEnum | undefined;
9
+ withBody(body: TemplateQuery): ListTemplatesRequest;
10
+ }
11
+ /**
12
+ * @export
13
+ * @enum {string}
14
+ */
15
+ export declare enum ListTemplatesRequestXLanguageEnum {
16
+ ZH_CN = "zh-cn",
17
+ EN_US = "en-us"
18
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTemplatesRequestXLanguageEnum = exports.ListTemplatesRequest = void 0;
4
+ var ListTemplatesRequest = /** @class */ (function () {
5
+ function ListTemplatesRequest() {
6
+ }
7
+ ListTemplatesRequest.prototype.withXLanguage = function (xLanguage) {
8
+ this['X-Language'] = xLanguage;
9
+ return this;
10
+ };
11
+ Object.defineProperty(ListTemplatesRequest.prototype, "xLanguage", {
12
+ get: function () {
13
+ return this['X-Language'];
14
+ },
15
+ set: function (xLanguage) {
16
+ this['X-Language'] = xLanguage;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ ListTemplatesRequest.prototype.withBody = function (body) {
22
+ this['body'] = body;
23
+ return this;
24
+ };
25
+ return ListTemplatesRequest;
26
+ }());
27
+ exports.ListTemplatesRequest = ListTemplatesRequest;
28
+ /**
29
+ * @export
30
+ * @enum {string}
31
+ */
32
+ var ListTemplatesRequestXLanguageEnum;
33
+ (function (ListTemplatesRequestXLanguageEnum) {
34
+ ListTemplatesRequestXLanguageEnum["ZH_CN"] = "zh-cn";
35
+ ListTemplatesRequestXLanguageEnum["EN_US"] = "en-us";
36
+ })(ListTemplatesRequestXLanguageEnum = exports.ListTemplatesRequestXLanguageEnum || (exports.ListTemplatesRequestXLanguageEnum = {}));
@@ -0,0 +1,13 @@
1
+ import { TemplateInfo } from './TemplateInfo';
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+ export declare class ListTemplatesResponse extends SdkResponse {
4
+ count?: number;
5
+ private 'invalid_count'?;
6
+ templates?: Array<TemplateInfo>;
7
+ constructor();
8
+ withCount(count: number): ListTemplatesResponse;
9
+ withInvalidCount(invalidCount: number): ListTemplatesResponse;
10
+ set invalidCount(invalidCount: number | undefined);
11
+ get invalidCount(): number | undefined;
12
+ withTemplates(templates: Array<TemplateInfo>): ListTemplatesResponse;
13
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ListTemplatesResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var ListTemplatesResponse = /** @class */ (function (_super) {
21
+ __extends(ListTemplatesResponse, _super);
22
+ function ListTemplatesResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ ListTemplatesResponse.prototype.withCount = function (count) {
26
+ this['count'] = count;
27
+ return this;
28
+ };
29
+ ListTemplatesResponse.prototype.withInvalidCount = function (invalidCount) {
30
+ this['invalid_count'] = invalidCount;
31
+ return this;
32
+ };
33
+ Object.defineProperty(ListTemplatesResponse.prototype, "invalidCount", {
34
+ get: function () {
35
+ return this['invalid_count'];
36
+ },
37
+ set: function (invalidCount) {
38
+ this['invalid_count'] = invalidCount;
39
+ },
40
+ enumerable: false,
41
+ configurable: true
42
+ });
43
+ ListTemplatesResponse.prototype.withTemplates = function (templates) {
44
+ this['templates'] = templates;
45
+ return this;
46
+ };
47
+ return ListTemplatesResponse;
48
+ }(SdkResponse_1.SdkResponse));
49
+ exports.ListTemplatesResponse = ListTemplatesResponse;
@@ -0,0 +1,39 @@
1
+ export declare class ShowRepositoryByCloudIdeRequest {
2
+ private 'X-Language'?;
3
+ private 'repository_id';
4
+ private 'repository_ssh_url';
5
+ private 'region_id'?;
6
+ private 'space_prefix'?;
7
+ private 'is_open_last'?;
8
+ private 'is_free'?;
9
+ constructor(repositoryId?: any, repositorySshUrl?: any);
10
+ withXLanguage(xLanguage: ShowRepositoryByCloudIdeRequestXLanguageEnum): ShowRepositoryByCloudIdeRequest;
11
+ set xLanguage(xLanguage: ShowRepositoryByCloudIdeRequestXLanguageEnum | undefined);
12
+ get xLanguage(): ShowRepositoryByCloudIdeRequestXLanguageEnum | undefined;
13
+ withRepositoryId(repositoryId: string): ShowRepositoryByCloudIdeRequest;
14
+ set repositoryId(repositoryId: string | undefined);
15
+ get repositoryId(): string | undefined;
16
+ withRepositorySshUrl(repositorySshUrl: string): ShowRepositoryByCloudIdeRequest;
17
+ set repositorySshUrl(repositorySshUrl: string | undefined);
18
+ get repositorySshUrl(): string | undefined;
19
+ withRegionId(regionId: string): ShowRepositoryByCloudIdeRequest;
20
+ set regionId(regionId: string | undefined);
21
+ get regionId(): string | undefined;
22
+ withSpacePrefix(spacePrefix: string): ShowRepositoryByCloudIdeRequest;
23
+ set spacePrefix(spacePrefix: string | undefined);
24
+ get spacePrefix(): string | undefined;
25
+ withIsOpenLast(isOpenLast: boolean): ShowRepositoryByCloudIdeRequest;
26
+ set isOpenLast(isOpenLast: boolean | undefined);
27
+ get isOpenLast(): boolean | undefined;
28
+ withIsFree(isFree: boolean): ShowRepositoryByCloudIdeRequest;
29
+ set isFree(isFree: boolean | undefined);
30
+ get isFree(): boolean | undefined;
31
+ }
32
+ /**
33
+ * @export
34
+ * @enum {string}
35
+ */
36
+ export declare enum ShowRepositoryByCloudIdeRequestXLanguageEnum {
37
+ ZH_CN = "zh-cn",
38
+ EN_US = "en-us"
39
+ }
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShowRepositoryByCloudIdeRequestXLanguageEnum = exports.ShowRepositoryByCloudIdeRequest = void 0;
4
+ var ShowRepositoryByCloudIdeRequest = /** @class */ (function () {
5
+ function ShowRepositoryByCloudIdeRequest(repositoryId, repositorySshUrl) {
6
+ this['repository_id'] = repositoryId;
7
+ this['repository_ssh_url'] = repositorySshUrl;
8
+ }
9
+ ShowRepositoryByCloudIdeRequest.prototype.withXLanguage = function (xLanguage) {
10
+ this['X-Language'] = xLanguage;
11
+ return this;
12
+ };
13
+ Object.defineProperty(ShowRepositoryByCloudIdeRequest.prototype, "xLanguage", {
14
+ get: function () {
15
+ return this['X-Language'];
16
+ },
17
+ set: function (xLanguage) {
18
+ this['X-Language'] = xLanguage;
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ ShowRepositoryByCloudIdeRequest.prototype.withRepositoryId = function (repositoryId) {
24
+ this['repository_id'] = repositoryId;
25
+ return this;
26
+ };
27
+ Object.defineProperty(ShowRepositoryByCloudIdeRequest.prototype, "repositoryId", {
28
+ get: function () {
29
+ return this['repository_id'];
30
+ },
31
+ set: function (repositoryId) {
32
+ this['repository_id'] = repositoryId;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ ShowRepositoryByCloudIdeRequest.prototype.withRepositorySshUrl = function (repositorySshUrl) {
38
+ this['repository_ssh_url'] = repositorySshUrl;
39
+ return this;
40
+ };
41
+ Object.defineProperty(ShowRepositoryByCloudIdeRequest.prototype, "repositorySshUrl", {
42
+ get: function () {
43
+ return this['repository_ssh_url'];
44
+ },
45
+ set: function (repositorySshUrl) {
46
+ this['repository_ssh_url'] = repositorySshUrl;
47
+ },
48
+ enumerable: false,
49
+ configurable: true
50
+ });
51
+ ShowRepositoryByCloudIdeRequest.prototype.withRegionId = function (regionId) {
52
+ this['region_id'] = regionId;
53
+ return this;
54
+ };
55
+ Object.defineProperty(ShowRepositoryByCloudIdeRequest.prototype, "regionId", {
56
+ get: function () {
57
+ return this['region_id'];
58
+ },
59
+ set: function (regionId) {
60
+ this['region_id'] = regionId;
61
+ },
62
+ enumerable: false,
63
+ configurable: true
64
+ });
65
+ ShowRepositoryByCloudIdeRequest.prototype.withSpacePrefix = function (spacePrefix) {
66
+ this['space_prefix'] = spacePrefix;
67
+ return this;
68
+ };
69
+ Object.defineProperty(ShowRepositoryByCloudIdeRequest.prototype, "spacePrefix", {
70
+ get: function () {
71
+ return this['space_prefix'];
72
+ },
73
+ set: function (spacePrefix) {
74
+ this['space_prefix'] = spacePrefix;
75
+ },
76
+ enumerable: false,
77
+ configurable: true
78
+ });
79
+ ShowRepositoryByCloudIdeRequest.prototype.withIsOpenLast = function (isOpenLast) {
80
+ this['is_open_last'] = isOpenLast;
81
+ return this;
82
+ };
83
+ Object.defineProperty(ShowRepositoryByCloudIdeRequest.prototype, "isOpenLast", {
84
+ get: function () {
85
+ return this['is_open_last'];
86
+ },
87
+ set: function (isOpenLast) {
88
+ this['is_open_last'] = isOpenLast;
89
+ },
90
+ enumerable: false,
91
+ configurable: true
92
+ });
93
+ ShowRepositoryByCloudIdeRequest.prototype.withIsFree = function (isFree) {
94
+ this['is_free'] = isFree;
95
+ return this;
96
+ };
97
+ Object.defineProperty(ShowRepositoryByCloudIdeRequest.prototype, "isFree", {
98
+ get: function () {
99
+ return this['is_free'];
100
+ },
101
+ set: function (isFree) {
102
+ this['is_free'] = isFree;
103
+ },
104
+ enumerable: false,
105
+ configurable: true
106
+ });
107
+ return ShowRepositoryByCloudIdeRequest;
108
+ }());
109
+ exports.ShowRepositoryByCloudIdeRequest = ShowRepositoryByCloudIdeRequest;
110
+ /**
111
+ * @export
112
+ * @enum {string}
113
+ */
114
+ var ShowRepositoryByCloudIdeRequestXLanguageEnum;
115
+ (function (ShowRepositoryByCloudIdeRequestXLanguageEnum) {
116
+ ShowRepositoryByCloudIdeRequestXLanguageEnum["ZH_CN"] = "zh-cn";
117
+ ShowRepositoryByCloudIdeRequestXLanguageEnum["EN_US"] = "en-us";
118
+ })(ShowRepositoryByCloudIdeRequestXLanguageEnum = exports.ShowRepositoryByCloudIdeRequestXLanguageEnum || (exports.ShowRepositoryByCloudIdeRequestXLanguageEnum = {}));
@@ -0,0 +1,6 @@
1
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
2
+ export declare class ShowRepositoryByCloudIdeResponse extends SdkResponse {
3
+ url?: string;
4
+ constructor();
5
+ withUrl(url: string): ShowRepositoryByCloudIdeResponse;
6
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ShowRepositoryByCloudIdeResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var ShowRepositoryByCloudIdeResponse = /** @class */ (function (_super) {
21
+ __extends(ShowRepositoryByCloudIdeResponse, _super);
22
+ function ShowRepositoryByCloudIdeResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ ShowRepositoryByCloudIdeResponse.prototype.withUrl = function (url) {
26
+ this['url'] = url;
27
+ return this;
28
+ };
29
+ return ShowRepositoryByCloudIdeResponse;
30
+ }(SdkResponse_1.SdkResponse));
31
+ exports.ShowRepositoryByCloudIdeResponse = ShowRepositoryByCloudIdeResponse;
@@ -0,0 +1,65 @@
1
+ export declare class TemplateQuery {
2
+ category?: Array<string>;
3
+ keyword?: string;
4
+ private 'sort_key'?;
5
+ private 'sort_dir'?;
6
+ label?: TemplateQueryLabelEnum;
7
+ private 'my_templates'?;
8
+ status?: number;
9
+ private 'status_array'?;
10
+ private 'has_notices'?;
11
+ productshorts?: Array<string>;
12
+ offset?: number;
13
+ limit?: number;
14
+ private 'tag_ids'?;
15
+ types?: Array<number>;
16
+ private 'is_static'?;
17
+ private 'platform_source'?;
18
+ private 'tag_names'?;
19
+ constructor();
20
+ withCategory(category: Array<string>): TemplateQuery;
21
+ withKeyword(keyword: string): TemplateQuery;
22
+ withSortKey(sortKey: Array<string>): TemplateQuery;
23
+ set sortKey(sortKey: Array<string> | undefined);
24
+ get sortKey(): Array<string> | undefined;
25
+ withSortDir(sortDir: Array<string>): TemplateQuery;
26
+ set sortDir(sortDir: Array<string> | undefined);
27
+ get sortDir(): Array<string> | undefined;
28
+ withLabel(label: TemplateQueryLabelEnum): TemplateQuery;
29
+ withMyTemplates(myTemplates: boolean): TemplateQuery;
30
+ set myTemplates(myTemplates: boolean | undefined);
31
+ get myTemplates(): boolean | undefined;
32
+ withStatus(status: number): TemplateQuery;
33
+ withStatusArray(statusArray: Array<number>): TemplateQuery;
34
+ set statusArray(statusArray: Array<number> | undefined);
35
+ get statusArray(): Array<number> | undefined;
36
+ withHasNotices(hasNotices: boolean): TemplateQuery;
37
+ set hasNotices(hasNotices: boolean | undefined);
38
+ get hasNotices(): boolean | undefined;
39
+ withProductshorts(productshorts: Array<string>): TemplateQuery;
40
+ withOffset(offset: number): TemplateQuery;
41
+ withLimit(limit: number): TemplateQuery;
42
+ withTagIds(tagIds: Array<string>): TemplateQuery;
43
+ set tagIds(tagIds: Array<string> | undefined);
44
+ get tagIds(): Array<string> | undefined;
45
+ withTypes(types: Array<number>): TemplateQuery;
46
+ withIsStatic(isStatic: number): TemplateQuery;
47
+ set isStatic(isStatic: number | undefined);
48
+ get isStatic(): number | undefined;
49
+ withPlatformSource(platformSource: Array<number>): TemplateQuery;
50
+ set platformSource(platformSource: Array<number> | undefined);
51
+ get platformSource(): Array<number> | undefined;
52
+ withTagNames(tagNames: Array<string>): TemplateQuery;
53
+ set tagNames(tagNames: Array<string> | undefined);
54
+ get tagNames(): Array<string> | undefined;
55
+ }
56
+ /**
57
+ * @export
58
+ * @enum {string}
59
+ */
60
+ export declare enum TemplateQueryLabelEnum {
61
+ ALL = "all",
62
+ NEW = "new",
63
+ HOT = "hot",
64
+ RECOMMEND = "recommend"
65
+ }
@@ -0,0 +1,178 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TemplateQueryLabelEnum = exports.TemplateQuery = void 0;
4
+ var TemplateQuery = /** @class */ (function () {
5
+ function TemplateQuery() {
6
+ }
7
+ TemplateQuery.prototype.withCategory = function (category) {
8
+ this['category'] = category;
9
+ return this;
10
+ };
11
+ TemplateQuery.prototype.withKeyword = function (keyword) {
12
+ this['keyword'] = keyword;
13
+ return this;
14
+ };
15
+ TemplateQuery.prototype.withSortKey = function (sortKey) {
16
+ this['sort_key'] = sortKey;
17
+ return this;
18
+ };
19
+ Object.defineProperty(TemplateQuery.prototype, "sortKey", {
20
+ get: function () {
21
+ return this['sort_key'];
22
+ },
23
+ set: function (sortKey) {
24
+ this['sort_key'] = sortKey;
25
+ },
26
+ enumerable: false,
27
+ configurable: true
28
+ });
29
+ TemplateQuery.prototype.withSortDir = function (sortDir) {
30
+ this['sort_dir'] = sortDir;
31
+ return this;
32
+ };
33
+ Object.defineProperty(TemplateQuery.prototype, "sortDir", {
34
+ get: function () {
35
+ return this['sort_dir'];
36
+ },
37
+ set: function (sortDir) {
38
+ this['sort_dir'] = sortDir;
39
+ },
40
+ enumerable: false,
41
+ configurable: true
42
+ });
43
+ TemplateQuery.prototype.withLabel = function (label) {
44
+ this['label'] = label;
45
+ return this;
46
+ };
47
+ TemplateQuery.prototype.withMyTemplates = function (myTemplates) {
48
+ this['my_templates'] = myTemplates;
49
+ return this;
50
+ };
51
+ Object.defineProperty(TemplateQuery.prototype, "myTemplates", {
52
+ get: function () {
53
+ return this['my_templates'];
54
+ },
55
+ set: function (myTemplates) {
56
+ this['my_templates'] = myTemplates;
57
+ },
58
+ enumerable: false,
59
+ configurable: true
60
+ });
61
+ TemplateQuery.prototype.withStatus = function (status) {
62
+ this['status'] = status;
63
+ return this;
64
+ };
65
+ TemplateQuery.prototype.withStatusArray = function (statusArray) {
66
+ this['status_array'] = statusArray;
67
+ return this;
68
+ };
69
+ Object.defineProperty(TemplateQuery.prototype, "statusArray", {
70
+ get: function () {
71
+ return this['status_array'];
72
+ },
73
+ set: function (statusArray) {
74
+ this['status_array'] = statusArray;
75
+ },
76
+ enumerable: false,
77
+ configurable: true
78
+ });
79
+ TemplateQuery.prototype.withHasNotices = function (hasNotices) {
80
+ this['has_notices'] = hasNotices;
81
+ return this;
82
+ };
83
+ Object.defineProperty(TemplateQuery.prototype, "hasNotices", {
84
+ get: function () {
85
+ return this['has_notices'];
86
+ },
87
+ set: function (hasNotices) {
88
+ this['has_notices'] = hasNotices;
89
+ },
90
+ enumerable: false,
91
+ configurable: true
92
+ });
93
+ TemplateQuery.prototype.withProductshorts = function (productshorts) {
94
+ this['productshorts'] = productshorts;
95
+ return this;
96
+ };
97
+ TemplateQuery.prototype.withOffset = function (offset) {
98
+ this['offset'] = offset;
99
+ return this;
100
+ };
101
+ TemplateQuery.prototype.withLimit = function (limit) {
102
+ this['limit'] = limit;
103
+ return this;
104
+ };
105
+ TemplateQuery.prototype.withTagIds = function (tagIds) {
106
+ this['tag_ids'] = tagIds;
107
+ return this;
108
+ };
109
+ Object.defineProperty(TemplateQuery.prototype, "tagIds", {
110
+ get: function () {
111
+ return this['tag_ids'];
112
+ },
113
+ set: function (tagIds) {
114
+ this['tag_ids'] = tagIds;
115
+ },
116
+ enumerable: false,
117
+ configurable: true
118
+ });
119
+ TemplateQuery.prototype.withTypes = function (types) {
120
+ this['types'] = types;
121
+ return this;
122
+ };
123
+ TemplateQuery.prototype.withIsStatic = function (isStatic) {
124
+ this['is_static'] = isStatic;
125
+ return this;
126
+ };
127
+ Object.defineProperty(TemplateQuery.prototype, "isStatic", {
128
+ get: function () {
129
+ return this['is_static'];
130
+ },
131
+ set: function (isStatic) {
132
+ this['is_static'] = isStatic;
133
+ },
134
+ enumerable: false,
135
+ configurable: true
136
+ });
137
+ TemplateQuery.prototype.withPlatformSource = function (platformSource) {
138
+ this['platform_source'] = platformSource;
139
+ return this;
140
+ };
141
+ Object.defineProperty(TemplateQuery.prototype, "platformSource", {
142
+ get: function () {
143
+ return this['platform_source'];
144
+ },
145
+ set: function (platformSource) {
146
+ this['platform_source'] = platformSource;
147
+ },
148
+ enumerable: false,
149
+ configurable: true
150
+ });
151
+ TemplateQuery.prototype.withTagNames = function (tagNames) {
152
+ this['tag_names'] = tagNames;
153
+ return this;
154
+ };
155
+ Object.defineProperty(TemplateQuery.prototype, "tagNames", {
156
+ get: function () {
157
+ return this['tag_names'];
158
+ },
159
+ set: function (tagNames) {
160
+ this['tag_names'] = tagNames;
161
+ },
162
+ enumerable: false,
163
+ configurable: true
164
+ });
165
+ return TemplateQuery;
166
+ }());
167
+ exports.TemplateQuery = TemplateQuery;
168
+ /**
169
+ * @export
170
+ * @enum {string}
171
+ */
172
+ var TemplateQueryLabelEnum;
173
+ (function (TemplateQueryLabelEnum) {
174
+ TemplateQueryLabelEnum["ALL"] = "all";
175
+ TemplateQueryLabelEnum["NEW"] = "new";
176
+ TemplateQueryLabelEnum["HOT"] = "hot";
177
+ TemplateQueryLabelEnum["RECOMMEND"] = "recommend";
178
+ })(TemplateQueryLabelEnum = exports.TemplateQueryLabelEnum || (exports.TemplateQueryLabelEnum = {}));
@@ -27,6 +27,8 @@ export * from './model/ListPublishedTemplatesRequest';
27
27
  export * from './model/ListPublishedTemplatesResponse';
28
28
  export * from './model/ListTemplateViewHistoriesRequest';
29
29
  export * from './model/ListTemplateViewHistoriesResponse';
30
+ export * from './model/ListTemplatesRequest';
31
+ export * from './model/ListTemplatesResponse';
30
32
  export * from './model/ListTemplatesV2Request';
31
33
  export * from './model/ListTemplatesV2Response';
32
34
  export * from './model/PipelineBasic';
@@ -60,6 +62,8 @@ export * from './model/ShowJobDetailRequest';
60
62
  export * from './model/ShowJobDetailResponse';
61
63
  export * from './model/ShowPipelineLastStatusV2Request';
62
64
  export * from './model/ShowPipelineLastStatusV2Response';
65
+ export * from './model/ShowRepositoryByCloudIdeRequest';
66
+ export * from './model/ShowRepositoryByCloudIdeResponse';
63
67
  export * from './model/ShowRepositoryStatisticalDataV2Request';
64
68
  export * from './model/ShowRepositoryStatisticalDataV2Response';
65
69
  export * from './model/ShowTemplateDetailRequest';
@@ -74,6 +78,7 @@ export * from './model/TagInfo';
74
78
  export * from './model/TemplateInfo';
75
79
  export * from './model/TemplateJobInfo';
76
80
  export * from './model/TemplateProductExt';
81
+ export * from './model/TemplateQuery';
77
82
  export * from './model/TemplateQueryV2';
78
83
  export * from './model/TemplateSimpleInfo';
79
84
  export * from './model/TemplateType';
package/v1/public-api.js CHANGED
@@ -39,6 +39,8 @@ __exportStar(require("./model/ListPublishedTemplatesRequest"), exports);
39
39
  __exportStar(require("./model/ListPublishedTemplatesResponse"), exports);
40
40
  __exportStar(require("./model/ListTemplateViewHistoriesRequest"), exports);
41
41
  __exportStar(require("./model/ListTemplateViewHistoriesResponse"), exports);
42
+ __exportStar(require("./model/ListTemplatesRequest"), exports);
43
+ __exportStar(require("./model/ListTemplatesResponse"), exports);
42
44
  __exportStar(require("./model/ListTemplatesV2Request"), exports);
43
45
  __exportStar(require("./model/ListTemplatesV2Response"), exports);
44
46
  __exportStar(require("./model/PipelineBasic"), exports);
@@ -72,6 +74,8 @@ __exportStar(require("./model/ShowJobDetailRequest"), exports);
72
74
  __exportStar(require("./model/ShowJobDetailResponse"), exports);
73
75
  __exportStar(require("./model/ShowPipelineLastStatusV2Request"), exports);
74
76
  __exportStar(require("./model/ShowPipelineLastStatusV2Response"), exports);
77
+ __exportStar(require("./model/ShowRepositoryByCloudIdeRequest"), exports);
78
+ __exportStar(require("./model/ShowRepositoryByCloudIdeResponse"), exports);
75
79
  __exportStar(require("./model/ShowRepositoryStatisticalDataV2Request"), exports);
76
80
  __exportStar(require("./model/ShowRepositoryStatisticalDataV2Response"), exports);
77
81
  __exportStar(require("./model/ShowTemplateDetailRequest"), exports);
@@ -86,6 +90,7 @@ __exportStar(require("./model/TagInfo"), exports);
86
90
  __exportStar(require("./model/TemplateInfo"), exports);
87
91
  __exportStar(require("./model/TemplateJobInfo"), exports);
88
92
  __exportStar(require("./model/TemplateProductExt"), exports);
93
+ __exportStar(require("./model/TemplateQuery"), exports);
89
94
  __exportStar(require("./model/TemplateQueryV2"), exports);
90
95
  __exportStar(require("./model/TemplateSimpleInfo"), exports);
91
96
  __exportStar(require("./model/TemplateType"), exports);