@huaweicloud/huaweicloud-sdk-swr 3.1.166 → 3.1.168

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.
Files changed (42) hide show
  1. package/package.json +2 -2
  2. package/v2/SwrClient.d.ts +65 -36
  3. package/v2/SwrClient.d.ts.map +1 -1
  4. package/v2/SwrClient.js +105 -36
  5. package/v2/SwrClient.js.map +1 -1
  6. package/v2/SwrRegion.d.ts +2 -0
  7. package/v2/SwrRegion.d.ts.map +1 -1
  8. package/v2/SwrRegion.js +5 -1
  9. package/v2/SwrRegion.js.map +1 -1
  10. package/v2/model/Accessory.d.ts +3 -3
  11. package/v2/model/Accessory.d.ts.map +1 -1
  12. package/v2/model/Accessory.js.map +1 -1
  13. package/v2/model/ArtifactTag.d.ts +6 -6
  14. package/v2/model/ArtifactTag.d.ts.map +1 -1
  15. package/v2/model/ArtifactTag.js.map +1 -1
  16. package/v2/model/AuditLog.d.ts +3 -3
  17. package/v2/model/AuditLog.d.ts.map +1 -1
  18. package/v2/model/AuditLog.js.map +1 -1
  19. package/v2/model/DeleteInstanceTagRequest.d.ts +20 -0
  20. package/v2/model/DeleteInstanceTagRequest.d.ts.map +1 -0
  21. package/v2/model/DeleteInstanceTagRequest.js +53 -0
  22. package/v2/model/DeleteInstanceTagRequest.js.map +1 -0
  23. package/v2/model/DeleteInstanceTagResponse.d.ts +5 -0
  24. package/v2/model/DeleteInstanceTagResponse.d.ts.map +1 -0
  25. package/v2/model/DeleteInstanceTagResponse.js +11 -0
  26. package/v2/model/DeleteInstanceTagResponse.js.map +1 -0
  27. package/v2/model/InternalEndpoint.d.ts +3 -3
  28. package/v2/model/InternalEndpoint.d.ts.map +1 -1
  29. package/v2/model/InternalEndpoint.js.map +1 -1
  30. package/v2/model/ShowInstanceInternalEndpointResponse.d.ts +3 -3
  31. package/v2/model/ShowInstanceInternalEndpointResponse.d.ts.map +1 -1
  32. package/v2/model/ShowInstanceInternalEndpointResponse.js.map +1 -1
  33. package/v2/model/SignatureExecutionSubTask.d.ts +6 -6
  34. package/v2/model/SignatureExecutionSubTask.d.ts.map +1 -1
  35. package/v2/model/SignatureExecutionSubTask.js.map +1 -1
  36. package/v2/model/SignatureExecutionTask.d.ts +6 -6
  37. package/v2/model/SignatureExecutionTask.d.ts.map +1 -1
  38. package/v2/model/SignatureExecutionTask.js.map +1 -1
  39. package/v2/public-api.d.ts +2 -0
  40. package/v2/public-api.d.ts.map +1 -1
  41. package/v2/public-api.js +2 -0
  42. package/v2/public-api.js.map +1 -1
package/v2/SwrClient.js CHANGED
@@ -44,6 +44,7 @@ const DeleteInstanceRequest_1 = require("./model/DeleteInstanceRequest");
44
44
  const DeleteInstanceResourceTagsRequest_1 = require("./model/DeleteInstanceResourceTagsRequest");
45
45
  const DeleteInstanceRetentionPolicyRequest_1 = require("./model/DeleteInstanceRetentionPolicyRequest");
46
46
  const DeleteInstanceSignPolicyRequest_1 = require("./model/DeleteInstanceSignPolicyRequest");
47
+ const DeleteInstanceTagRequest_1 = require("./model/DeleteInstanceTagRequest");
47
48
  const DeleteInstanceWebhookRequest_1 = require("./model/DeleteInstanceWebhookRequest");
48
49
  const DeleteNamespaceAuthRequest_1 = require("./model/DeleteNamespaceAuthRequest");
49
50
  const DeleteNamespacesRequest_1 = require("./model/DeleteNamespacesRequest");
@@ -1403,14 +1404,14 @@ class SwrClient {
1403
1404
  return this.hcClient.sendRequest(options);
1404
1405
  }
1405
1406
  /**
1406
- * 创建触发器策略
1407
+ * 创建触发器
1407
1408
  *
1408
1409
  * Please refer to HUAWEI cloud API Explorer for details.
1409
1410
  *
1410
- * @summary 创建触发器策略
1411
+ * @summary 创建触发器
1411
1412
  * @param {string} instanceId 企业仓库实例ID
1412
1413
  * @param {string} namespaceName 命名空间名称
1413
- * @param {CreateWebhookPolicyRequestBody} createWebhookPolicyRequestBody 创建触发器策略需要的信息
1414
+ * @param {CreateWebhookPolicyRequestBody} createWebhookPolicyRequestBody 创建触发器需要的信息
1414
1415
  * @param {*} [options] Override http request option.
1415
1416
  * @throws {RequiredError}
1416
1417
  */
@@ -1493,11 +1494,11 @@ class SwrClient {
1493
1494
  return this.hcClient.sendRequest(options);
1494
1495
  }
1495
1496
  /**
1496
- * 删除制品
1497
+ * 删除制品版本
1497
1498
  *
1498
1499
  * Please refer to HUAWEI cloud API Explorer for details.
1499
1500
  *
1500
- * @summary 删除制品
1501
+ * @summary 删除制品版本
1501
1502
  * @param {string} instanceId 企业仓库实例ID
1502
1503
  * @param {string} namespaceName 命名空间名称
1503
1504
  * @param {string} repositoryName 仓库名称
@@ -1685,14 +1686,33 @@ class SwrClient {
1685
1686
  return this.hcClient.sendRequest(options);
1686
1687
  }
1687
1688
  /**
1688
- * 删除触发器策略
1689
+ * 删除制品Tag
1690
+ *
1691
+ * Please refer to HUAWEI cloud API Explorer for details.
1692
+ *
1693
+ * @summary 删除制品的Tag
1694
+ * @param {string} instanceId 企业仓库实例ID
1695
+ * @param {string} namespaceName 命名空间名称
1696
+ * @param {string} repositoryName 仓库名称
1697
+ * @param {string} tagName Tag名称
1698
+ * @param {*} [options] Override http request option.
1699
+ * @throws {RequiredError}
1700
+ */
1701
+ deleteInstanceTag(deleteInstanceTagRequest) {
1702
+ const options = (0, exports.ParamCreater)().deleteInstanceTag(deleteInstanceTagRequest);
1703
+ // @ts-ignore
1704
+ options['responseHeaders'] = [''];
1705
+ return this.hcClient.sendRequest(options);
1706
+ }
1707
+ /**
1708
+ * 删除触发器
1689
1709
  *
1690
1710
  * Please refer to HUAWEI cloud API Explorer for details.
1691
1711
  *
1692
- * @summary 删除触发器策略
1712
+ * @summary 删除触发器
1693
1713
  * @param {string} instanceId 企业仓库实例ID
1694
1714
  * @param {string} namespaceName 命名空间名称
1695
- * @param {number} policyId 触发器策略ID
1715
+ * @param {number} policyId 触发器ID
1696
1716
  * @param {*} [options] Override http request option.
1697
1717
  * @throws {RequiredError}
1698
1718
  */
@@ -1894,7 +1914,7 @@ class SwrClient {
1894
1914
  * @param {string} reference 制品摘要
1895
1915
  * @param {number} [offset] 起始索引,默认值为0。**注意:offset和limit参数需要配套使用,offset必须为0或者为limit的倍数。**
1896
1916
  * @param {number} [limit] 返回条数,默认为10,最大值为100。**注意:offset和limit参数需要配套使用,offset必须为0或者为limit的倍数。**
1897
- * @param {'signature.cosign'} [type] 附件类型,signature.cosign
1917
+ * @param {'signature.cosign'} [type] 附件类型,支持的附件类型有:signature.cosign
1898
1918
  * @param {*} [options] Override http request option.
1899
1919
  * @throws {RequiredError}
1900
1920
  */
@@ -1905,13 +1925,13 @@ class SwrClient {
1905
1925
  return this.hcClient.sendRequest(options);
1906
1926
  }
1907
1927
  /**
1908
- * 获取仓库实例的所有制品版本列表(此接口只在企业仓库实例版本大于25.6.0以上的版本才支持)
1928
+ * 获取仓库实例的所有制品版本列表
1909
1929
  *
1910
1930
  * Please refer to HUAWEI cloud API Explorer for details.
1911
1931
  *
1912
1932
  * @summary 获取仓库实例的所有制品版本列表
1913
1933
  * @param {string} instanceId 企业仓库实例ID
1914
- * @param {number} [marker] 分页查询时的查询标记,使用上一次接口调用返回的nextMarker值。默认值为1。**注意:marker和limit参数需要配套使用。**
1934
+ * @param {number} [marker] 分页查询时的查询标记,使用上一次接口调用返回的next_marker值。默认值为1。**注意:marker和limit参数需要配套使用。**
1915
1935
  * @param {number} [limit] 返回条数,默认为10,最大值为100。**注意:marker和limit参数需要配套使用。**
1916
1936
  * @param {*} [options] Override http request option.
1917
1937
  * @throws {RequiredError}
@@ -2166,7 +2186,7 @@ class SwrClient {
2166
2186
  *
2167
2187
  * @summary 按照标签检索资源列表
2168
2188
  * @param {'instances'} resourceType 资源类型,支持的资源类型为:instances
2169
- * @param {ListResourceInstancesRequestBody} listResourceInstancesRequestBody 查询资源实例列表需要的信息
2189
+ * @param {ListResourceInstancesRequestBody} listResourceInstancesRequestBody 查询资源列表需要的信息
2170
2190
  * @param {number} [offset] 起始索引,默认值为0。**注意:offset和limit参数需要配套使用。**
2171
2191
  * @param {number} [limit] 返回条数,默认为200,最小值为1,最大值为200。**注意:offset和limit参数需要配套使用。**
2172
2192
  * @param {*} [options] Override http request option.
@@ -2407,7 +2427,7 @@ class SwrClient {
2407
2427
  * @summary 获取触发器执行任务列表
2408
2428
  * @param {string} instanceId 企业仓库实例ID
2409
2429
  * @param {string} namespaceName 命名空间名称
2410
- * @param {number} policyId 触发器策略ID
2430
+ * @param {number} policyId 触发器ID
2411
2431
  * @param {number} [offset] 起始索引,默认值为0。**注意:offset和limit参数需要配套使用,offset必须为0或者为limit的倍数。**
2412
2432
  * @param {number} [limit] 返回条数,默认为10,最大值为100。**注意:offset和limit参数需要配套使用,offset必须为0或者为limit的倍数。**
2413
2433
  * @param {string} [status] 状态,可选Initialized、Pending、InProgress、Succeed、Failed、Stopped
@@ -2421,11 +2441,11 @@ class SwrClient {
2421
2441
  return this.hcClient.sendRequest(options);
2422
2442
  }
2423
2443
  /**
2424
- * 获取触发器策略列表
2444
+ * 获取触发器列表
2425
2445
  *
2426
2446
  * Please refer to HUAWEI cloud API Explorer for details.
2427
2447
  *
2428
- * @summary 获取触发器策略列表
2448
+ * @summary 获取触发器列表
2429
2449
  * @param {string} instanceId 企业仓库实例ID
2430
2450
  * @param {string} [orderColumn] 排序字段,支持created_at、updated_at、name,默认为created_at
2431
2451
  * @param {'desc' | 'asc'} [orderType] 排序方式,支持desc、asc,默认desc;order_type需要与order_column配合使用
@@ -2488,7 +2508,7 @@ class SwrClient {
2488
2508
  * @param {'instances'} resourceType 资源类型,支持的资源类型为:instances
2489
2509
  * @param {string} resourceId 资源id
2490
2510
  * @param {'namespaces'} subResourceType 子资源类型,支持的子资源类型为:namespaces
2491
- * @param {ListResourceInstancesRequestBody} listResourceInstancesRequestBody 查询子资源实例列表需要的信息
2511
+ * @param {ListResourceInstancesRequestBody} listResourceInstancesRequestBody 查询子资源列表需要的信息
2492
2512
  * @param {number} [offset] 起始索引,默认值为0。**注意:offset和limit参数需要配套使用。**
2493
2513
  * @param {number} [limit] 返回条数,默认为200,最小值为1,最大值为200。**注意:offset和limit参数需要配套使用。**
2494
2514
  * @param {*} [options] Override http request option.
@@ -2536,11 +2556,11 @@ class SwrClient {
2536
2556
  return this.hcClient.sendRequest(options);
2537
2557
  }
2538
2558
  /**
2539
- * 获取制品详情
2559
+ * 获取制品版本详情
2540
2560
  *
2541
2561
  * Please refer to HUAWEI cloud API Explorer for details.
2542
2562
  *
2543
- * @summary 获取制品详情
2563
+ * @summary 获取制品版本详情
2544
2564
  * @param {string} instanceId 企业仓库实例ID
2545
2565
  * @param {string} namespaceName 命名空间名称
2546
2566
  * @param {string} repositoryName 制品名称
@@ -2715,7 +2735,7 @@ class SwrClient {
2715
2735
  *
2716
2736
  * @summary 按照标签检索资源数量
2717
2737
  * @param {'instances'} resourceType 资源类型,支持的资源类型为:instances
2718
- * @param {ListResourceInstancesRequestBody} listResourceInstancesRequestBody 查询资源实例数量需要的信息
2738
+ * @param {ListResourceInstancesRequestBody} listResourceInstancesRequestBody 查询资源数量需要的信息
2719
2739
  * @param {*} [options] Override http request option.
2720
2740
  * @throws {RequiredError}
2721
2741
  */
@@ -2762,14 +2782,14 @@ class SwrClient {
2762
2782
  return this.hcClient.sendRequest(options);
2763
2783
  }
2764
2784
  /**
2765
- * 获取触发器策略详情
2785
+ * 获取触发器详情
2766
2786
  *
2767
2787
  * Please refer to HUAWEI cloud API Explorer for details.
2768
2788
  *
2769
- * @summary 获取触发器策略详情
2789
+ * @summary 获取触发器详情
2770
2790
  * @param {string} instanceId 企业仓库实例ID
2771
2791
  * @param {string} namespaceName 命名空间名称
2772
- * @param {number} policyId 触发器策略ID
2792
+ * @param {number} policyId 触发器ID
2773
2793
  * @param {*} [options] Override http request option.
2774
2794
  * @throws {RequiredError}
2775
2795
  */
@@ -2788,7 +2808,7 @@ class SwrClient {
2788
2808
  * @param {'instances'} resourceType 资源类型,支持的资源类型为:instances
2789
2809
  * @param {string} resourceId 资源id
2790
2810
  * @param {'namespaces'} subResourceType 子资源类型,支持的子资源类型为:namespaces
2791
- * @param {ListResourceInstancesRequestBody} listResourceInstancesRequestBody 查询子资源实例数量需要的信息
2811
+ * @param {ListResourceInstancesRequestBody} listResourceInstancesRequestBody 查询子资源数量需要的信息
2792
2812
  * @param {*} [options] Override http request option.
2793
2813
  * @throws {RequiredError}
2794
2814
  */
@@ -2870,7 +2890,7 @@ class SwrClient {
2870
2890
  return this.hcClient.sendRequest(options);
2871
2891
  }
2872
2892
  /**
2873
- * 更新公网访问白名单,更新为全量更新方式
2893
+ * 更新公网访问白名单,更新方式为全量更新方式
2874
2894
  *
2875
2895
  * Please refer to HUAWEI cloud API Explorer for details.
2876
2896
  *
@@ -3016,15 +3036,15 @@ class SwrClient {
3016
3036
  return this.hcClient.sendRequest(options);
3017
3037
  }
3018
3038
  /**
3019
- * 修改触发器策略
3039
+ * 修改触发器
3020
3040
  *
3021
3041
  * Please refer to HUAWEI cloud API Explorer for details.
3022
3042
  *
3023
- * @summary 修改触发器策略
3043
+ * @summary 修改触发器
3024
3044
  * @param {string} instanceId 企业仓库实例ID
3025
3045
  * @param {string} namespaceName 命名空间名称
3026
3046
  * @param {number} policyId 触发器ID
3027
- * @param {UpdateWebhookPolicyRequestBody} updateWebhookPolicyRequestBody 修改触发器策略需要的信息
3047
+ * @param {UpdateWebhookPolicyRequestBody} updateWebhookPolicyRequestBody 修改触发器需要的信息
3028
3048
  * @param {*} [options] Override http request option.
3029
3049
  * @throws {RequiredError}
3030
3050
  */
@@ -6206,7 +6226,7 @@ const ParamCreater = function () {
6206
6226
  return options;
6207
6227
  },
6208
6228
  /**
6209
- * 创建触发器策略
6229
+ * 创建触发器
6210
6230
  *
6211
6231
  * Please refer to HUAWEI cloud API Explorer for details.
6212
6232
  */
@@ -6430,7 +6450,7 @@ const ParamCreater = function () {
6430
6450
  return options;
6431
6451
  },
6432
6452
  /**
6433
- * 删除制品
6453
+ * 删除制品版本
6434
6454
  *
6435
6455
  * Please refer to HUAWEI cloud API Explorer for details.
6436
6456
  */
@@ -6870,7 +6890,56 @@ const ParamCreater = function () {
6870
6890
  return options;
6871
6891
  },
6872
6892
  /**
6873
- * 删除触发器策略
6893
+ * 删除制品Tag
6894
+ *
6895
+ * Please refer to HUAWEI cloud API Explorer for details.
6896
+ */
6897
+ deleteInstanceTag(deleteInstanceTagRequest) {
6898
+ const options = {
6899
+ method: "DELETE",
6900
+ url: "/v2/instances/{instance_id}/namespaces/{namespace_name}/repositories/{repository_name}/tags/{tag_name}",
6901
+ contentType: "application/json",
6902
+ queryParams: {},
6903
+ pathParams: {},
6904
+ headers: {}
6905
+ };
6906
+ const localVarHeaderParameter = {};
6907
+ let instanceId;
6908
+ let namespaceName;
6909
+ let repositoryName;
6910
+ let tagName;
6911
+ if (deleteInstanceTagRequest !== null && deleteInstanceTagRequest !== undefined) {
6912
+ if (deleteInstanceTagRequest instanceof DeleteInstanceTagRequest_1.DeleteInstanceTagRequest) {
6913
+ instanceId = deleteInstanceTagRequest.instanceId;
6914
+ namespaceName = deleteInstanceTagRequest.namespaceName;
6915
+ repositoryName = deleteInstanceTagRequest.repositoryName;
6916
+ tagName = deleteInstanceTagRequest.tagName;
6917
+ }
6918
+ else {
6919
+ instanceId = deleteInstanceTagRequest['instance_id'];
6920
+ namespaceName = deleteInstanceTagRequest['namespace_name'];
6921
+ repositoryName = deleteInstanceTagRequest['repository_name'];
6922
+ tagName = deleteInstanceTagRequest['tag_name'];
6923
+ }
6924
+ }
6925
+ if (instanceId === null || instanceId === undefined) {
6926
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling deleteInstanceTag.');
6927
+ }
6928
+ if (namespaceName === null || namespaceName === undefined) {
6929
+ throw new RequiredError('namespaceName', 'Required parameter namespaceName was null or undefined when calling deleteInstanceTag.');
6930
+ }
6931
+ if (repositoryName === null || repositoryName === undefined) {
6932
+ throw new RequiredError('repositoryName', 'Required parameter repositoryName was null or undefined when calling deleteInstanceTag.');
6933
+ }
6934
+ if (tagName === null || tagName === undefined) {
6935
+ throw new RequiredError('tagName', 'Required parameter tagName was null or undefined when calling deleteInstanceTag.');
6936
+ }
6937
+ options.pathParams = { 'instance_id': instanceId, 'namespace_name': namespaceName, 'repository_name': repositoryName, 'tag_name': tagName, };
6938
+ options.headers = localVarHeaderParameter;
6939
+ return options;
6940
+ },
6941
+ /**
6942
+ * 删除触发器
6874
6943
  *
6875
6944
  * Please refer to HUAWEI cloud API Explorer for details.
6876
6945
  */
@@ -7424,7 +7493,7 @@ const ParamCreater = function () {
7424
7493
  return options;
7425
7494
  },
7426
7495
  /**
7427
- * 获取仓库实例的所有制品版本列表(此接口只在企业仓库实例版本大于25.6.0以上的版本才支持)
7496
+ * 获取仓库实例的所有制品版本列表
7428
7497
  *
7429
7498
  * Please refer to HUAWEI cloud API Explorer for details.
7430
7499
  */
@@ -8871,7 +8940,7 @@ const ParamCreater = function () {
8871
8940
  return options;
8872
8941
  },
8873
8942
  /**
8874
- * 获取触发器策略列表
8943
+ * 获取触发器列表
8875
8944
  *
8876
8945
  * Please refer to HUAWEI cloud API Explorer for details.
8877
8946
  */
@@ -9180,7 +9249,7 @@ const ParamCreater = function () {
9180
9249
  return options;
9181
9250
  },
9182
9251
  /**
9183
- * 获取制品详情
9252
+ * 获取制品版本详情
9184
9253
  *
9185
9254
  * Please refer to HUAWEI cloud API Explorer for details.
9186
9255
  */
@@ -9694,7 +9763,7 @@ const ParamCreater = function () {
9694
9763
  return options;
9695
9764
  },
9696
9765
  /**
9697
- * 获取触发器策略详情
9766
+ * 获取触发器详情
9698
9767
  *
9699
9768
  * Please refer to HUAWEI cloud API Explorer for details.
9700
9769
  */
@@ -9964,7 +10033,7 @@ const ParamCreater = function () {
9964
10033
  return options;
9965
10034
  },
9966
10035
  /**
9967
- * 更新公网访问白名单,更新为全量更新方式
10036
+ * 更新公网访问白名单,更新方式为全量更新方式
9968
10037
  *
9969
10038
  * Please refer to HUAWEI cloud API Explorer for details.
9970
10039
  */
@@ -10344,7 +10413,7 @@ const ParamCreater = function () {
10344
10413
  return options;
10345
10414
  },
10346
10415
  /**
10347
- * 修改触发器策略
10416
+ * 修改触发器
10348
10417
  *
10349
10418
  * Please refer to HUAWEI cloud API Explorer for details.
10350
10419
  */