@huaweicloud/huaweicloud-sdk-swr 3.1.155 → 3.1.156
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 +2 -2
- package/v2/SwrClient.d.ts +127 -2
- package/v2/SwrClient.d.ts.map +1 -1
- package/v2/SwrClient.js +348 -2
- package/v2/SwrClient.js.map +1 -1
- package/v2/model/ListRepoDetailsRequest.d.ts +30 -0
- package/v2/model/ListRepoDetailsRequest.d.ts.map +1 -0
- package/v2/model/ListRepoDetailsRequest.js +59 -0
- package/v2/model/ListRepoDetailsRequest.js.map +1 -0
- package/v2/model/ListRepoDetailsResponse.d.ts +10 -0
- package/v2/model/ListRepoDetailsResponse.d.ts.map +1 -0
- package/v2/model/ListRepoDetailsResponse.js +19 -0
- package/v2/model/ListRepoDetailsResponse.js.map +1 -0
- package/v2/model/ListRepositoryTagRequest.d.ts +30 -0
- package/v2/model/ListRepositoryTagRequest.d.ts.map +1 -0
- package/v2/model/ListRepositoryTagRequest.js +61 -0
- package/v2/model/ListRepositoryTagRequest.js.map +1 -0
- package/v2/model/ListRepositoryTagResponse.d.ts +10 -0
- package/v2/model/ListRepositoryTagResponse.d.ts.map +1 -0
- package/v2/model/ListRepositoryTagResponse.js +19 -0
- package/v2/model/ListRepositoryTagResponse.js.map +1 -0
- package/v2/model/ListSharedRepoDetailsRequest.d.ts +38 -0
- package/v2/model/ListSharedRepoDetailsRequest.d.ts.map +1 -0
- package/v2/model/ListSharedRepoDetailsRequest.js +69 -0
- package/v2/model/ListSharedRepoDetailsRequest.js.map +1 -0
- package/v2/model/ListSharedRepoDetailsResponse.d.ts +10 -0
- package/v2/model/ListSharedRepoDetailsResponse.d.ts.map +1 -0
- package/v2/model/ListSharedRepoDetailsResponse.js +19 -0
- package/v2/model/ListSharedRepoDetailsResponse.js.map +1 -0
- package/v2/model/ShowRepoTagRequest.d.ts +22 -0
- package/v2/model/ShowRepoTagRequest.d.ts.map +1 -0
- package/v2/model/ShowRepoTagRequest.js +44 -0
- package/v2/model/ShowRepoTagRequest.js.map +1 -0
- package/v2/model/ShowRepoTagResponse.d.ts +47 -0
- package/v2/model/ShowRepoTagResponse.d.ts.map +1 -0
- package/v2/model/ShowRepoTagResponse.js +107 -0
- package/v2/model/ShowRepoTagResponse.js.map +1 -0
- package/v2/model/ShowReposRespV3.d.ts +42 -0
- package/v2/model/ShowReposRespV3.d.ts.map +1 -0
- package/v2/model/ShowReposRespV3.js +109 -0
- package/v2/model/ShowReposRespV3.js.map +1 -0
- package/v2/model/ShowReposTagRespV3.d.ts +46 -0
- package/v2/model/ShowReposTagRespV3.d.ts.map +1 -0
- package/v2/model/ShowReposTagRespV3.js +120 -0
- package/v2/model/ShowReposTagRespV3.js.map +1 -0
- package/v2/model/ShowShareFeatureGatesResponse.d.ts +4 -0
- package/v2/model/ShowShareFeatureGatesResponse.d.ts.map +1 -1
- package/v2/model/ShowShareFeatureGatesResponse.js +10 -0
- package/v2/model/ShowShareFeatureGatesResponse.js.map +1 -1
- package/v2/public-api.d.ts +10 -0
- package/v2/public-api.d.ts.map +1 -1
- package/v2/public-api.js +10 -0
- package/v2/public-api.js.map +1 -1
package/v2/SwrClient.js
CHANGED
|
@@ -95,11 +95,14 @@ const ListNamespaceRepositoriesRequest_1 = require("./model/ListNamespaceReposit
|
|
|
95
95
|
const ListNamespaceTagsRequest_1 = require("./model/ListNamespaceTagsRequest");
|
|
96
96
|
const ListNamespacesRequest_1 = require("./model/ListNamespacesRequest");
|
|
97
97
|
const ListQuotasRequest_1 = require("./model/ListQuotasRequest");
|
|
98
|
+
const ListRepoDetailsRequest_1 = require("./model/ListRepoDetailsRequest");
|
|
98
99
|
const ListRepoDomainsRequest_1 = require("./model/ListRepoDomainsRequest");
|
|
99
100
|
const ListReposDetailsRequest_1 = require("./model/ListReposDetailsRequest");
|
|
101
|
+
const ListRepositoryTagRequest_1 = require("./model/ListRepositoryTagRequest");
|
|
100
102
|
const ListRepositoryTagsRequest_1 = require("./model/ListRepositoryTagsRequest");
|
|
101
103
|
const ListRetentionHistoriesRequest_1 = require("./model/ListRetentionHistoriesRequest");
|
|
102
104
|
const ListRetentionsRequest_1 = require("./model/ListRetentionsRequest");
|
|
105
|
+
const ListSharedRepoDetailsRequest_1 = require("./model/ListSharedRepoDetailsRequest");
|
|
103
106
|
const ListSharedReposDetailsRequest_1 = require("./model/ListSharedReposDetailsRequest");
|
|
104
107
|
const ListSubResourceInstancesRequest_1 = require("./model/ListSubResourceInstancesRequest");
|
|
105
108
|
const ListSubResourceTagsRequest_1 = require("./model/ListSubResourceTagsRequest");
|
|
@@ -125,6 +128,7 @@ const ShowInstanceSignPolicyRequest_1 = require("./model/ShowInstanceSignPolicyR
|
|
|
125
128
|
const ShowInstanceWebhookRequest_1 = require("./model/ShowInstanceWebhookRequest");
|
|
126
129
|
const ShowNamespaceAuthRequest_1 = require("./model/ShowNamespaceAuthRequest");
|
|
127
130
|
const ShowNamespaceRequest_1 = require("./model/ShowNamespaceRequest");
|
|
131
|
+
const ShowRepoTagRequest_1 = require("./model/ShowRepoTagRequest");
|
|
128
132
|
const ShowRepositoryRequest_1 = require("./model/ShowRepositoryRequest");
|
|
129
133
|
const ShowRetentionRequest_1 = require("./model/ShowRetentionRequest");
|
|
130
134
|
const ShowSubResourceInstancesCountRequest_1 = require("./model/ShowSubResourceInstancesCountRequest");
|
|
@@ -599,6 +603,28 @@ class SwrClient {
|
|
|
599
603
|
options['responseHeaders'] = [''];
|
|
600
604
|
return this.hcClient.sendRequest(options);
|
|
601
605
|
}
|
|
606
|
+
/**
|
|
607
|
+
* 查询镜像仓库列表详情
|
|
608
|
+
*
|
|
609
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
610
|
+
*
|
|
611
|
+
* @summary 查询镜像仓库列表详情
|
|
612
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
613
|
+
* @param {string} [namespace] 组织名称。小写字母开头,后面跟小写字母、数字、小数点、下划线或中划线(其中下划线最多允许连续两个,小数点、下划线、中划线不能直接相连),小写字母或数字结尾,1-64个字符。
|
|
614
|
+
* @param {string} [name] 镜像仓库名称。
|
|
615
|
+
* @param {string} [category] 镜像仓库分类,可设置为app_server, linux, framework_app, database, lang, other, windows, arm。
|
|
616
|
+
* @param {number} [limit] 返回条数,默认返回100条记录,最多返回1000条记录。
|
|
617
|
+
* @param {string} [marker] 分页查询下一次查询起始标记,接口的返回值nextMarker为下一次查询的起始标记。
|
|
618
|
+
* @param {boolean} [isPublic] 是否公开私有,true为公开,false为私有。
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
listRepoDetails(listRepoDetailsRequest) {
|
|
623
|
+
const options = (0, exports.ParamCreater)().listRepoDetails(listRepoDetailsRequest);
|
|
624
|
+
// @ts-ignore
|
|
625
|
+
options['responseHeaders'] = [''];
|
|
626
|
+
return this.hcClient.sendRequest(options);
|
|
627
|
+
}
|
|
602
628
|
/**
|
|
603
629
|
* 获取共享帐号列表
|
|
604
630
|
*
|
|
@@ -627,7 +653,7 @@ class SwrClient {
|
|
|
627
653
|
* @param {string} [namespace] 组织名称。小写字母开头,后面跟小写字母、数字、小数点、下划线或中划线(其中下划线最多允许连续两个,小数点、下划线、中划线不能直接相连),小写字母或数字结尾,1-64个字符。注意:和filter最好分开使用,如果同时使用,此过滤参数将失效,以filter为准。
|
|
628
654
|
* @param {string} [name] 镜像仓库名称。注意:和filter最好分开使用,如果同时使用,此过滤参数将失效,以filter为准。
|
|
629
655
|
* @param {string} [category] 镜像仓库分类,可设置为app_server, linux, framework_app, database, lang, other, windows, arm。注意:和filter最好分开使用,如果同时使用,此过滤参数将失效,以filter为准。
|
|
630
|
-
* @param {string} [limit]
|
|
656
|
+
* @param {string} [limit] 返回条数,默认情况下返回100条记录,最多返回1000条记录。注意:offset和limit参数需要配套使用。
|
|
631
657
|
* @param {string} [offset] 起始索引。注意:offset和limit参数需要配套使用。
|
|
632
658
|
* @param {string} [orderColumn] 按列排序,可设置为updated_at(按更新时间排序)。注意:order_column和order_type参数需要配套使用。
|
|
633
659
|
* @param {string} [orderType] 排序类型,可设置为desc(降序)、asc(升序)。注意:order_column和order_type参数需要配套使用。
|
|
@@ -641,6 +667,28 @@ class SwrClient {
|
|
|
641
667
|
options['responseHeaders'] = ['Content-Range'];
|
|
642
668
|
return this.hcClient.sendRequest(options);
|
|
643
669
|
}
|
|
670
|
+
/**
|
|
671
|
+
* 查询镜像tag列表详情
|
|
672
|
+
*
|
|
673
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
674
|
+
*
|
|
675
|
+
* @summary 查询镜像tag列表详情
|
|
676
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
677
|
+
* @param {string} namespace 组织名称。小写字母开头,后面跟小写字母、数字、小数点、下划线或中划线(其中下划线最多允许连续两个,小数点、下划线、中划线不能直接相连),小写字母或数字结尾,1-64个字符。
|
|
678
|
+
* @param {string} repository 镜像仓库名称
|
|
679
|
+
* @param {number} [limit] 返回条数,默认返回100条,最多返回1000条数据。
|
|
680
|
+
* @param {string} [marker] Start position of the cursor for querying the next page in pagination query.
|
|
681
|
+
* @param {string} [tag] 镜像版本名。
|
|
682
|
+
* @param {boolean} [withManifest] 是否返回镜像的manifest信息
|
|
683
|
+
* @param {*} [options] Override http request option.
|
|
684
|
+
* @throws {RequiredError}
|
|
685
|
+
*/
|
|
686
|
+
listRepositoryTag(listRepositoryTagRequest) {
|
|
687
|
+
const options = (0, exports.ParamCreater)().listRepositoryTag(listRepositoryTagRequest);
|
|
688
|
+
// @ts-ignore
|
|
689
|
+
options['responseHeaders'] = [''];
|
|
690
|
+
return this.hcClient.sendRequest(options);
|
|
691
|
+
}
|
|
644
692
|
/**
|
|
645
693
|
* 查询镜像tag列表
|
|
646
694
|
*
|
|
@@ -650,7 +698,7 @@ class SwrClient {
|
|
|
650
698
|
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
651
699
|
* @param {string} namespace 组织名称。小写字母开头,后面跟小写字母、数字、小数点、下划线或中划线(其中下划线最多允许连续两个,小数点、下划线、中划线不能直接相连),小写字母或数字结尾,1-64个字符。
|
|
652
700
|
* @param {string} repository 镜像仓库名称
|
|
653
|
-
* @param {string} [limit]
|
|
701
|
+
* @param {string} [limit] 返回条数,默认返回100条,最多返回1000条数据。注意:offset和limit参数需要配套使用。
|
|
654
702
|
* @param {string} [offset] 起始索引。注意:offset和limit参数需要配套使用。
|
|
655
703
|
* @param {string} [orderColumn] 按列排序,可设置为updated_at(按更新时间排序)。注意:order_column和order_type参数需要配套使用。
|
|
656
704
|
* @param {string} [orderType] 排序类型,可设置为desc(降序)、asc(升序)。注意:order_column和order_type参数需要配套使用。
|
|
@@ -702,6 +750,28 @@ class SwrClient {
|
|
|
702
750
|
options['responseHeaders'] = [''];
|
|
703
751
|
return this.hcClient.sendRequest(options);
|
|
704
752
|
}
|
|
753
|
+
/**
|
|
754
|
+
* 查询共享镜像列表详情
|
|
755
|
+
*
|
|
756
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
757
|
+
*
|
|
758
|
+
* @summary 查询共享镜像列表详情
|
|
759
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
760
|
+
* @param {'self' | 'thirdparty'} sharedBy self: 我共享的镜像。thirdparty: 他人共享给我的镜像
|
|
761
|
+
* @param {string} [namespace] 组织名称。小写字母开头,后面跟小写字母、数字、小数点、下划线或中划线(其中下划线最多允许连续两个,小数点、下划线、中划线不能直接相连),小写字母或数字结尾,1-64个字符。
|
|
762
|
+
* @param {string} [name] 镜像仓库名称
|
|
763
|
+
* @param {number} [limit] 返回条数,默认返回100条记录,最多返回1000条。
|
|
764
|
+
* @param {number} [marker] 分页查询时下一次查询的起始地址。
|
|
765
|
+
* @param {boolean} [status] 查询他人共享给我的镜像是否已过期 false:共享已过期。true:正常
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
listSharedRepoDetails(listSharedRepoDetailsRequest) {
|
|
770
|
+
const options = (0, exports.ParamCreater)().listSharedRepoDetails(listSharedRepoDetailsRequest);
|
|
771
|
+
// @ts-ignore
|
|
772
|
+
options['responseHeaders'] = [''];
|
|
773
|
+
return this.hcClient.sendRequest(options);
|
|
774
|
+
}
|
|
705
775
|
/**
|
|
706
776
|
* 查询共享镜像列表
|
|
707
777
|
*
|
|
@@ -831,6 +901,25 @@ class SwrClient {
|
|
|
831
901
|
options['responseHeaders'] = [''];
|
|
832
902
|
return this.hcClient.sendRequest(options);
|
|
833
903
|
}
|
|
904
|
+
/**
|
|
905
|
+
* 查询镜像仓库中指定tag的镜像
|
|
906
|
+
*
|
|
907
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
908
|
+
*
|
|
909
|
+
* @summary 查询指定tag的镜像详情
|
|
910
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
911
|
+
* @param {string} namespace 组织名称。小写字母开头,后面跟小写字母、数字、小数点、下划线或中划线(其中下划线最多允许连续两个,小数点、下划线、中划线不能直接相连),小写字母或数字结尾,1-64个字符。
|
|
912
|
+
* @param {string} repository 镜像仓库名称
|
|
913
|
+
* @param {string} tag 镜像版本名称
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
showRepoTag(showRepoTagRequest) {
|
|
918
|
+
const options = (0, exports.ParamCreater)().showRepoTag(showRepoTagRequest);
|
|
919
|
+
// @ts-ignore
|
|
920
|
+
options['responseHeaders'] = [''];
|
|
921
|
+
return this.hcClient.sendRequest(options);
|
|
922
|
+
}
|
|
834
923
|
/**
|
|
835
924
|
* 查询镜像仓库概要信息
|
|
836
925
|
*
|
|
@@ -4053,6 +4142,74 @@ const ParamCreater = function () {
|
|
|
4053
4142
|
options.headers = localVarHeaderParameter;
|
|
4054
4143
|
return options;
|
|
4055
4144
|
},
|
|
4145
|
+
/**
|
|
4146
|
+
* 查询镜像仓库列表详情
|
|
4147
|
+
*
|
|
4148
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4149
|
+
*/
|
|
4150
|
+
listRepoDetails(listRepoDetailsRequest) {
|
|
4151
|
+
const options = {
|
|
4152
|
+
method: "GET",
|
|
4153
|
+
url: "/v3/manage/repos",
|
|
4154
|
+
contentType: "application/json",
|
|
4155
|
+
queryParams: {},
|
|
4156
|
+
pathParams: {},
|
|
4157
|
+
headers: {}
|
|
4158
|
+
};
|
|
4159
|
+
const localVarHeaderParameter = {};
|
|
4160
|
+
const localVarQueryParameter = {};
|
|
4161
|
+
let contentType;
|
|
4162
|
+
let namespace;
|
|
4163
|
+
let name;
|
|
4164
|
+
let category;
|
|
4165
|
+
let limit;
|
|
4166
|
+
let marker;
|
|
4167
|
+
let isPublic;
|
|
4168
|
+
if (listRepoDetailsRequest !== null && listRepoDetailsRequest !== undefined) {
|
|
4169
|
+
if (listRepoDetailsRequest instanceof ListRepoDetailsRequest_1.ListRepoDetailsRequest) {
|
|
4170
|
+
contentType = listRepoDetailsRequest.contentType;
|
|
4171
|
+
namespace = listRepoDetailsRequest.namespace;
|
|
4172
|
+
name = listRepoDetailsRequest.name;
|
|
4173
|
+
category = listRepoDetailsRequest.category;
|
|
4174
|
+
limit = listRepoDetailsRequest.limit;
|
|
4175
|
+
marker = listRepoDetailsRequest.marker;
|
|
4176
|
+
isPublic = listRepoDetailsRequest.isPublic;
|
|
4177
|
+
}
|
|
4178
|
+
else {
|
|
4179
|
+
contentType = listRepoDetailsRequest['Content-Type'];
|
|
4180
|
+
namespace = listRepoDetailsRequest['namespace'];
|
|
4181
|
+
name = listRepoDetailsRequest['name'];
|
|
4182
|
+
category = listRepoDetailsRequest['category'];
|
|
4183
|
+
limit = listRepoDetailsRequest['limit'];
|
|
4184
|
+
marker = listRepoDetailsRequest['marker'];
|
|
4185
|
+
isPublic = listRepoDetailsRequest['is_public'];
|
|
4186
|
+
}
|
|
4187
|
+
}
|
|
4188
|
+
if (namespace !== null && namespace !== undefined) {
|
|
4189
|
+
localVarQueryParameter['namespace'] = namespace;
|
|
4190
|
+
}
|
|
4191
|
+
if (name !== null && name !== undefined) {
|
|
4192
|
+
localVarQueryParameter['name'] = name;
|
|
4193
|
+
}
|
|
4194
|
+
if (category !== null && category !== undefined) {
|
|
4195
|
+
localVarQueryParameter['category'] = category;
|
|
4196
|
+
}
|
|
4197
|
+
if (limit !== null && limit !== undefined) {
|
|
4198
|
+
localVarQueryParameter['limit'] = limit;
|
|
4199
|
+
}
|
|
4200
|
+
if (marker !== null && marker !== undefined) {
|
|
4201
|
+
localVarQueryParameter['marker'] = marker;
|
|
4202
|
+
}
|
|
4203
|
+
if (isPublic !== null && isPublic !== undefined) {
|
|
4204
|
+
localVarQueryParameter['is_public'] = isPublic;
|
|
4205
|
+
}
|
|
4206
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4207
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4208
|
+
}
|
|
4209
|
+
options.queryParams = localVarQueryParameter;
|
|
4210
|
+
options.headers = localVarHeaderParameter;
|
|
4211
|
+
return options;
|
|
4212
|
+
},
|
|
4056
4213
|
/**
|
|
4057
4214
|
* 获取共享帐号列表
|
|
4058
4215
|
*
|
|
@@ -4176,6 +4333,75 @@ const ParamCreater = function () {
|
|
|
4176
4333
|
options.headers = localVarHeaderParameter;
|
|
4177
4334
|
return options;
|
|
4178
4335
|
},
|
|
4336
|
+
/**
|
|
4337
|
+
* 查询镜像tag列表详情
|
|
4338
|
+
*
|
|
4339
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4340
|
+
*/
|
|
4341
|
+
listRepositoryTag(listRepositoryTagRequest) {
|
|
4342
|
+
const options = {
|
|
4343
|
+
method: "GET",
|
|
4344
|
+
url: "/v3/manage/namespaces/{namespace}/repos/{repository}/tags",
|
|
4345
|
+
contentType: "application/json",
|
|
4346
|
+
queryParams: {},
|
|
4347
|
+
pathParams: {},
|
|
4348
|
+
headers: {}
|
|
4349
|
+
};
|
|
4350
|
+
const localVarHeaderParameter = {};
|
|
4351
|
+
const localVarQueryParameter = {};
|
|
4352
|
+
let contentType;
|
|
4353
|
+
let namespace;
|
|
4354
|
+
let repository;
|
|
4355
|
+
let limit;
|
|
4356
|
+
let marker;
|
|
4357
|
+
let tag;
|
|
4358
|
+
let withManifest;
|
|
4359
|
+
if (listRepositoryTagRequest !== null && listRepositoryTagRequest !== undefined) {
|
|
4360
|
+
if (listRepositoryTagRequest instanceof ListRepositoryTagRequest_1.ListRepositoryTagRequest) {
|
|
4361
|
+
contentType = listRepositoryTagRequest.contentType;
|
|
4362
|
+
namespace = listRepositoryTagRequest.namespace;
|
|
4363
|
+
repository = listRepositoryTagRequest.repository;
|
|
4364
|
+
limit = listRepositoryTagRequest.limit;
|
|
4365
|
+
marker = listRepositoryTagRequest.marker;
|
|
4366
|
+
tag = listRepositoryTagRequest.tag;
|
|
4367
|
+
withManifest = listRepositoryTagRequest.withManifest;
|
|
4368
|
+
}
|
|
4369
|
+
else {
|
|
4370
|
+
contentType = listRepositoryTagRequest['Content-Type'];
|
|
4371
|
+
namespace = listRepositoryTagRequest['namespace'];
|
|
4372
|
+
repository = listRepositoryTagRequest['repository'];
|
|
4373
|
+
limit = listRepositoryTagRequest['limit'];
|
|
4374
|
+
marker = listRepositoryTagRequest['marker'];
|
|
4375
|
+
tag = listRepositoryTagRequest['tag'];
|
|
4376
|
+
withManifest = listRepositoryTagRequest['with_manifest'];
|
|
4377
|
+
}
|
|
4378
|
+
}
|
|
4379
|
+
if (namespace === null || namespace === undefined) {
|
|
4380
|
+
throw new RequiredError('namespace', 'Required parameter namespace was null or undefined when calling listRepositoryTag.');
|
|
4381
|
+
}
|
|
4382
|
+
if (repository === null || repository === undefined) {
|
|
4383
|
+
throw new RequiredError('repository', 'Required parameter repository was null or undefined when calling listRepositoryTag.');
|
|
4384
|
+
}
|
|
4385
|
+
if (limit !== null && limit !== undefined) {
|
|
4386
|
+
localVarQueryParameter['limit'] = limit;
|
|
4387
|
+
}
|
|
4388
|
+
if (marker !== null && marker !== undefined) {
|
|
4389
|
+
localVarQueryParameter['marker'] = marker;
|
|
4390
|
+
}
|
|
4391
|
+
if (tag !== null && tag !== undefined) {
|
|
4392
|
+
localVarQueryParameter['tag'] = tag;
|
|
4393
|
+
}
|
|
4394
|
+
if (withManifest !== null && withManifest !== undefined) {
|
|
4395
|
+
localVarQueryParameter['with_manifest'] = withManifest;
|
|
4396
|
+
}
|
|
4397
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4398
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4399
|
+
}
|
|
4400
|
+
options.queryParams = localVarQueryParameter;
|
|
4401
|
+
options.pathParams = { 'namespace': namespace, 'repository': repository, };
|
|
4402
|
+
options.headers = localVarHeaderParameter;
|
|
4403
|
+
return options;
|
|
4404
|
+
},
|
|
4179
4405
|
/**
|
|
4180
4406
|
* 查询镜像tag列表
|
|
4181
4407
|
*
|
|
@@ -4351,6 +4577,77 @@ const ParamCreater = function () {
|
|
|
4351
4577
|
options.headers = localVarHeaderParameter;
|
|
4352
4578
|
return options;
|
|
4353
4579
|
},
|
|
4580
|
+
/**
|
|
4581
|
+
* 查询共享镜像列表详情
|
|
4582
|
+
*
|
|
4583
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4584
|
+
*/
|
|
4585
|
+
listSharedRepoDetails(listSharedRepoDetailsRequest) {
|
|
4586
|
+
const options = {
|
|
4587
|
+
method: "GET",
|
|
4588
|
+
url: "/v3/manage/shared-repositories",
|
|
4589
|
+
contentType: "application/json",
|
|
4590
|
+
queryParams: {},
|
|
4591
|
+
pathParams: {},
|
|
4592
|
+
headers: {}
|
|
4593
|
+
};
|
|
4594
|
+
const localVarHeaderParameter = {};
|
|
4595
|
+
const localVarQueryParameter = {};
|
|
4596
|
+
let contentType;
|
|
4597
|
+
let sharedBy;
|
|
4598
|
+
let namespace;
|
|
4599
|
+
let name;
|
|
4600
|
+
let limit;
|
|
4601
|
+
let marker;
|
|
4602
|
+
let status;
|
|
4603
|
+
if (listSharedRepoDetailsRequest !== null && listSharedRepoDetailsRequest !== undefined) {
|
|
4604
|
+
if (listSharedRepoDetailsRequest instanceof ListSharedRepoDetailsRequest_1.ListSharedRepoDetailsRequest) {
|
|
4605
|
+
contentType = listSharedRepoDetailsRequest.contentType;
|
|
4606
|
+
sharedBy = listSharedRepoDetailsRequest.sharedBy;
|
|
4607
|
+
namespace = listSharedRepoDetailsRequest.namespace;
|
|
4608
|
+
name = listSharedRepoDetailsRequest.name;
|
|
4609
|
+
limit = listSharedRepoDetailsRequest.limit;
|
|
4610
|
+
marker = listSharedRepoDetailsRequest.marker;
|
|
4611
|
+
status = listSharedRepoDetailsRequest.status;
|
|
4612
|
+
}
|
|
4613
|
+
else {
|
|
4614
|
+
contentType = listSharedRepoDetailsRequest['Content-Type'];
|
|
4615
|
+
sharedBy = listSharedRepoDetailsRequest['shared_by'];
|
|
4616
|
+
namespace = listSharedRepoDetailsRequest['namespace'];
|
|
4617
|
+
name = listSharedRepoDetailsRequest['name'];
|
|
4618
|
+
limit = listSharedRepoDetailsRequest['limit'];
|
|
4619
|
+
marker = listSharedRepoDetailsRequest['marker'];
|
|
4620
|
+
status = listSharedRepoDetailsRequest['status'];
|
|
4621
|
+
}
|
|
4622
|
+
}
|
|
4623
|
+
if (sharedBy === null || sharedBy === undefined) {
|
|
4624
|
+
throw new RequiredError('sharedBy', 'Required parameter sharedBy was null or undefined when calling listSharedRepoDetails.');
|
|
4625
|
+
}
|
|
4626
|
+
if (sharedBy !== null && sharedBy !== undefined) {
|
|
4627
|
+
localVarQueryParameter['shared_by'] = sharedBy;
|
|
4628
|
+
}
|
|
4629
|
+
if (namespace !== null && namespace !== undefined) {
|
|
4630
|
+
localVarQueryParameter['namespace'] = namespace;
|
|
4631
|
+
}
|
|
4632
|
+
if (name !== null && name !== undefined) {
|
|
4633
|
+
localVarQueryParameter['name'] = name;
|
|
4634
|
+
}
|
|
4635
|
+
if (limit !== null && limit !== undefined) {
|
|
4636
|
+
localVarQueryParameter['limit'] = limit;
|
|
4637
|
+
}
|
|
4638
|
+
if (marker !== null && marker !== undefined) {
|
|
4639
|
+
localVarQueryParameter['marker'] = marker;
|
|
4640
|
+
}
|
|
4641
|
+
if (status !== null && status !== undefined) {
|
|
4642
|
+
localVarQueryParameter['status'] = status;
|
|
4643
|
+
}
|
|
4644
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4645
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4646
|
+
}
|
|
4647
|
+
options.queryParams = localVarQueryParameter;
|
|
4648
|
+
options.headers = localVarHeaderParameter;
|
|
4649
|
+
return options;
|
|
4650
|
+
},
|
|
4354
4651
|
/**
|
|
4355
4652
|
* 查询共享镜像列表
|
|
4356
4653
|
*
|
|
@@ -4673,6 +4970,55 @@ const ParamCreater = function () {
|
|
|
4673
4970
|
options.headers = localVarHeaderParameter;
|
|
4674
4971
|
return options;
|
|
4675
4972
|
},
|
|
4973
|
+
/**
|
|
4974
|
+
* 查询镜像仓库中指定tag的镜像
|
|
4975
|
+
*
|
|
4976
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4977
|
+
*/
|
|
4978
|
+
showRepoTag(showRepoTagRequest) {
|
|
4979
|
+
const options = {
|
|
4980
|
+
method: "GET",
|
|
4981
|
+
url: "/v2/manage/namespaces/{namespace}/repos/{repository}/tags/{tag}",
|
|
4982
|
+
contentType: "application/json",
|
|
4983
|
+
queryParams: {},
|
|
4984
|
+
pathParams: {},
|
|
4985
|
+
headers: {}
|
|
4986
|
+
};
|
|
4987
|
+
const localVarHeaderParameter = {};
|
|
4988
|
+
let contentType;
|
|
4989
|
+
let namespace;
|
|
4990
|
+
let repository;
|
|
4991
|
+
let tag;
|
|
4992
|
+
if (showRepoTagRequest !== null && showRepoTagRequest !== undefined) {
|
|
4993
|
+
if (showRepoTagRequest instanceof ShowRepoTagRequest_1.ShowRepoTagRequest) {
|
|
4994
|
+
contentType = showRepoTagRequest.contentType;
|
|
4995
|
+
namespace = showRepoTagRequest.namespace;
|
|
4996
|
+
repository = showRepoTagRequest.repository;
|
|
4997
|
+
tag = showRepoTagRequest.tag;
|
|
4998
|
+
}
|
|
4999
|
+
else {
|
|
5000
|
+
contentType = showRepoTagRequest['Content-Type'];
|
|
5001
|
+
namespace = showRepoTagRequest['namespace'];
|
|
5002
|
+
repository = showRepoTagRequest['repository'];
|
|
5003
|
+
tag = showRepoTagRequest['tag'];
|
|
5004
|
+
}
|
|
5005
|
+
}
|
|
5006
|
+
if (namespace === null || namespace === undefined) {
|
|
5007
|
+
throw new RequiredError('namespace', 'Required parameter namespace was null or undefined when calling showRepoTag.');
|
|
5008
|
+
}
|
|
5009
|
+
if (repository === null || repository === undefined) {
|
|
5010
|
+
throw new RequiredError('repository', 'Required parameter repository was null or undefined when calling showRepoTag.');
|
|
5011
|
+
}
|
|
5012
|
+
if (tag === null || tag === undefined) {
|
|
5013
|
+
throw new RequiredError('tag', 'Required parameter tag was null or undefined when calling showRepoTag.');
|
|
5014
|
+
}
|
|
5015
|
+
if (contentType !== undefined && contentType !== null) {
|
|
5016
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
5017
|
+
}
|
|
5018
|
+
options.pathParams = { 'namespace': namespace, 'repository': repository, 'tag': tag, };
|
|
5019
|
+
options.headers = localVarHeaderParameter;
|
|
5020
|
+
return options;
|
|
5021
|
+
},
|
|
4676
5022
|
/**
|
|
4677
5023
|
* 查询镜像仓库概要信息
|
|
4678
5024
|
*
|