@alicloud/ehpcinstant20230701 1.0.4 → 1.1.0

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/dist/client.d.ts CHANGED
@@ -6,6 +6,7 @@ import * as $tea from '@alicloud/tea-typescript';
6
6
  export declare class AddImageRequest extends $tea.Model {
7
7
  containerImageSpec?: AddImageRequestContainerImageSpec;
8
8
  description?: string;
9
+ imageType?: string;
9
10
  /**
10
11
  * @example
11
12
  * V1.0
@@ -33,6 +34,7 @@ export declare class AddImageRequest extends $tea.Model {
33
34
  export declare class AddImageShrinkRequest extends $tea.Model {
34
35
  containerImageSpecShrink?: string;
35
36
  description?: string;
37
+ imageType?: string;
36
38
  /**
37
39
  * @example
38
40
  * V1.0
@@ -922,6 +924,75 @@ export declare class ListJobsResponse extends $tea.Model {
922
924
  [key: string]: any;
923
925
  });
924
926
  }
927
+ export declare class ListTagResourcesRequest extends $tea.Model {
928
+ /**
929
+ * @example
930
+ * 20
931
+ */
932
+ maxResult?: number;
933
+ /**
934
+ * @example
935
+ * 1d2db86scXXXXXXXXXX
936
+ */
937
+ nextToken?: string;
938
+ resourceId?: string[];
939
+ /**
940
+ * @remarks
941
+ * This parameter is required.
942
+ *
943
+ * @example
944
+ * Job
945
+ */
946
+ resourceType?: string;
947
+ tag?: ListTagResourcesRequestTag[];
948
+ static names(): {
949
+ [key: string]: string;
950
+ };
951
+ static types(): {
952
+ [key: string]: any;
953
+ };
954
+ constructor(map?: {
955
+ [key: string]: any;
956
+ });
957
+ }
958
+ export declare class ListTagResourcesResponseBody extends $tea.Model {
959
+ /**
960
+ * @example
961
+ * 1d2db86scXXXXXXXXXX
962
+ */
963
+ nextToken?: string;
964
+ /**
965
+ * @example
966
+ * 04F0F334-1335-436C-A1D7-6C044FE7****
967
+ */
968
+ requestId?: string;
969
+ tagResources?: ListTagResourcesResponseBodyTagResources;
970
+ static names(): {
971
+ [key: string]: string;
972
+ };
973
+ static types(): {
974
+ [key: string]: any;
975
+ };
976
+ constructor(map?: {
977
+ [key: string]: any;
978
+ });
979
+ }
980
+ export declare class ListTagResourcesResponse extends $tea.Model {
981
+ headers?: {
982
+ [key: string]: string;
983
+ };
984
+ statusCode?: number;
985
+ body?: ListTagResourcesResponseBody;
986
+ static names(): {
987
+ [key: string]: string;
988
+ };
989
+ static types(): {
990
+ [key: string]: any;
991
+ };
992
+ constructor(map?: {
993
+ [key: string]: any;
994
+ });
995
+ }
925
996
  export declare class RemoveImageRequest extends $tea.Model {
926
997
  /**
927
998
  * @remarks
@@ -931,6 +1002,7 @@ export declare class RemoveImageRequest extends $tea.Model {
931
1002
  * m-bp14wakr1rkxtb******
932
1003
  */
933
1004
  imageId?: string;
1005
+ imageType?: string;
934
1006
  static names(): {
935
1007
  [key: string]: string;
936
1008
  };
@@ -978,6 +1050,129 @@ export declare class RemoveImageResponse extends $tea.Model {
978
1050
  [key: string]: any;
979
1051
  });
980
1052
  }
1053
+ export declare class TagResourcesRequest extends $tea.Model {
1054
+ /**
1055
+ * @remarks
1056
+ * This parameter is required.
1057
+ */
1058
+ resourceId?: string[];
1059
+ /**
1060
+ * @remarks
1061
+ * This parameter is required.
1062
+ *
1063
+ * @example
1064
+ * Job
1065
+ */
1066
+ resourceType?: string;
1067
+ /**
1068
+ * @remarks
1069
+ * This parameter is required.
1070
+ */
1071
+ tag?: TagResourcesRequestTag[];
1072
+ static names(): {
1073
+ [key: string]: string;
1074
+ };
1075
+ static types(): {
1076
+ [key: string]: any;
1077
+ };
1078
+ constructor(map?: {
1079
+ [key: string]: any;
1080
+ });
1081
+ }
1082
+ export declare class TagResourcesResponseBody extends $tea.Model {
1083
+ /**
1084
+ * @example
1085
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
1086
+ */
1087
+ requestId?: string;
1088
+ static names(): {
1089
+ [key: string]: string;
1090
+ };
1091
+ static types(): {
1092
+ [key: string]: any;
1093
+ };
1094
+ constructor(map?: {
1095
+ [key: string]: any;
1096
+ });
1097
+ }
1098
+ export declare class TagResourcesResponse extends $tea.Model {
1099
+ headers?: {
1100
+ [key: string]: string;
1101
+ };
1102
+ statusCode?: number;
1103
+ body?: TagResourcesResponseBody;
1104
+ static names(): {
1105
+ [key: string]: string;
1106
+ };
1107
+ static types(): {
1108
+ [key: string]: any;
1109
+ };
1110
+ constructor(map?: {
1111
+ [key: string]: any;
1112
+ });
1113
+ }
1114
+ export declare class UnTagResourcesRequest extends $tea.Model {
1115
+ /**
1116
+ * @example
1117
+ * False
1118
+ */
1119
+ all?: boolean;
1120
+ /**
1121
+ * @remarks
1122
+ * This parameter is required.
1123
+ */
1124
+ resourceId?: string[];
1125
+ /**
1126
+ * @remarks
1127
+ * This parameter is required.
1128
+ *
1129
+ * @example
1130
+ * Job
1131
+ */
1132
+ resourceType?: string;
1133
+ tagKey?: string[];
1134
+ static names(): {
1135
+ [key: string]: string;
1136
+ };
1137
+ static types(): {
1138
+ [key: string]: any;
1139
+ };
1140
+ constructor(map?: {
1141
+ [key: string]: any;
1142
+ });
1143
+ }
1144
+ export declare class UnTagResourcesResponseBody extends $tea.Model {
1145
+ /**
1146
+ * @example
1147
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
1148
+ */
1149
+ requestId?: string;
1150
+ static names(): {
1151
+ [key: string]: string;
1152
+ };
1153
+ static types(): {
1154
+ [key: string]: any;
1155
+ };
1156
+ constructor(map?: {
1157
+ [key: string]: any;
1158
+ });
1159
+ }
1160
+ export declare class UnTagResourcesResponse extends $tea.Model {
1161
+ headers?: {
1162
+ [key: string]: string;
1163
+ };
1164
+ statusCode?: number;
1165
+ body?: UnTagResourcesResponseBody;
1166
+ static names(): {
1167
+ [key: string]: string;
1168
+ };
1169
+ static types(): {
1170
+ [key: string]: any;
1171
+ };
1172
+ constructor(map?: {
1173
+ [key: string]: any;
1174
+ });
1175
+ }
981
1176
  export declare class AddImageRequestContainerImageSpecRegistryCredential extends $tea.Model {
982
1177
  /**
983
1178
  * @example
@@ -1053,6 +1248,7 @@ export declare class AddImageRequestVMImageSpec extends $tea.Model {
1053
1248
  });
1054
1249
  }
1055
1250
  export declare class CreateJobRequestDeploymentPolicyNetwork extends $tea.Model {
1251
+ enableExternalIpAddress?: boolean;
1056
1252
  vswitch?: string[];
1057
1253
  static names(): {
1058
1254
  [key: string]: string;
@@ -1064,6 +1260,23 @@ export declare class CreateJobRequestDeploymentPolicyNetwork extends $tea.Model
1064
1260
  [key: string]: any;
1065
1261
  });
1066
1262
  }
1263
+ export declare class CreateJobRequestDeploymentPolicyTag extends $tea.Model {
1264
+ /**
1265
+ * @remarks
1266
+ * This parameter is required.
1267
+ */
1268
+ key?: string;
1269
+ value?: string;
1270
+ static names(): {
1271
+ [key: string]: string;
1272
+ };
1273
+ static types(): {
1274
+ [key: string]: any;
1275
+ };
1276
+ constructor(map?: {
1277
+ [key: string]: any;
1278
+ });
1279
+ }
1067
1280
  export declare class CreateJobRequestDeploymentPolicy extends $tea.Model {
1068
1281
  /**
1069
1282
  * @example
@@ -1071,6 +1284,7 @@ export declare class CreateJobRequestDeploymentPolicy extends $tea.Model {
1071
1284
  */
1072
1285
  allocationSpec?: string;
1073
1286
  network?: CreateJobRequestDeploymentPolicyNetwork;
1287
+ tag?: CreateJobRequestDeploymentPolicyTag[];
1074
1288
  static names(): {
1075
1289
  [key: string]: string;
1076
1290
  };
@@ -1527,6 +1741,7 @@ export declare class GetImageResponseBodyImage extends $tea.Model {
1527
1741
  });
1528
1742
  }
1529
1743
  export declare class GetJobResponseBodyJobInfoDeploymentPolicyNetwork extends $tea.Model {
1744
+ enableExternalIpAddress?: boolean;
1530
1745
  vswitch?: string[];
1531
1746
  static names(): {
1532
1747
  [key: string]: string;
@@ -1814,6 +2029,7 @@ export declare class ListExecutorsRequestFilter extends $tea.Model {
1814
2029
  * testJob
1815
2030
  */
1816
2031
  jobName?: string;
2032
+ status?: string[];
1817
2033
  /**
1818
2034
  * @example
1819
2035
  * 1703819914
@@ -1834,6 +2050,46 @@ export declare class ListExecutorsRequestFilter extends $tea.Model {
1834
2050
  [key: string]: any;
1835
2051
  });
1836
2052
  }
2053
+ export declare class ListExecutorsResponseBodyExecutorsResourceDisks extends $tea.Model {
2054
+ size?: number;
2055
+ type?: string;
2056
+ static names(): {
2057
+ [key: string]: string;
2058
+ };
2059
+ static types(): {
2060
+ [key: string]: any;
2061
+ };
2062
+ constructor(map?: {
2063
+ [key: string]: any;
2064
+ });
2065
+ }
2066
+ export declare class ListExecutorsResponseBodyExecutorsResource extends $tea.Model {
2067
+ cores?: number;
2068
+ disks?: ListExecutorsResponseBodyExecutorsResourceDisks[];
2069
+ memory?: number;
2070
+ static names(): {
2071
+ [key: string]: string;
2072
+ };
2073
+ static types(): {
2074
+ [key: string]: any;
2075
+ };
2076
+ constructor(map?: {
2077
+ [key: string]: any;
2078
+ });
2079
+ }
2080
+ export declare class ListExecutorsResponseBodyExecutorsTags extends $tea.Model {
2081
+ tagKey?: string;
2082
+ tagValue?: string;
2083
+ static names(): {
2084
+ [key: string]: string;
2085
+ };
2086
+ static types(): {
2087
+ [key: string]: any;
2088
+ };
2089
+ constructor(map?: {
2090
+ [key: string]: any;
2091
+ });
2092
+ }
1837
2093
  export declare class ListExecutorsResponseBodyExecutors extends $tea.Model {
1838
2094
  /**
1839
2095
  * @example
@@ -1855,6 +2111,7 @@ export declare class ListExecutorsResponseBodyExecutors extends $tea.Model {
1855
2111
  * job-xxxx-task0-1
1856
2112
  */
1857
2113
  executorId?: string;
2114
+ externalIpAddress?: string[];
1858
2115
  hostName?: string[];
1859
2116
  image?: string;
1860
2117
  ipAddress?: string[];
@@ -1868,6 +2125,9 @@ export declare class ListExecutorsResponseBodyExecutors extends $tea.Model {
1868
2125
  * testJob
1869
2126
  */
1870
2127
  jobName?: string;
2128
+ resource?: ListExecutorsResponseBodyExecutorsResource;
2129
+ resourceType?: string;
2130
+ startTime?: string;
1871
2131
  /**
1872
2132
  * @example
1873
2133
  * Running
@@ -1878,11 +2138,14 @@ export declare class ListExecutorsResponseBodyExecutors extends $tea.Model {
1878
2138
  * Succeeded to release executor resource
1879
2139
  */
1880
2140
  statusReason?: string;
2141
+ tags?: ListExecutorsResponseBodyExecutorsTags[];
1881
2142
  /**
1882
2143
  * @example
1883
2144
  * task0
1884
2145
  */
1885
2146
  taskName?: string;
2147
+ taskSustainable?: boolean;
2148
+ vswitchId?: string;
1886
2149
  static names(): {
1887
2150
  [key: string]: string;
1888
2151
  };
@@ -1959,6 +2222,19 @@ export declare class ListJobExecutorsResponseBodyExecutorStatus extends $tea.Mod
1959
2222
  [key: string]: any;
1960
2223
  });
1961
2224
  }
2225
+ export declare class ListJobExecutorsResponseBodyExecutorsTags extends $tea.Model {
2226
+ tagKey?: string;
2227
+ tagValue?: string;
2228
+ static names(): {
2229
+ [key: string]: string;
2230
+ };
2231
+ static types(): {
2232
+ [key: string]: any;
2233
+ };
2234
+ constructor(map?: {
2235
+ [key: string]: any;
2236
+ });
2237
+ }
1962
2238
  export declare class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
1963
2239
  /**
1964
2240
  * @example
@@ -1976,8 +2252,10 @@ export declare class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
1976
2252
  */
1977
2253
  endTime?: string;
1978
2254
  executorId?: string;
2255
+ externalIpAddress?: string[];
1979
2256
  hostName?: string[];
1980
2257
  ipAddress?: string[];
2258
+ startTime?: string;
1981
2259
  /**
1982
2260
  * @example
1983
2261
  * Running
@@ -1988,6 +2266,7 @@ export declare class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
1988
2266
  * Creating executor
1989
2267
  */
1990
2268
  statusReason?: string;
2269
+ tags?: ListJobExecutorsResponseBodyExecutorsTags[];
1991
2270
  static names(): {
1992
2271
  [key: string]: string;
1993
2272
  };
@@ -2055,6 +2334,19 @@ export declare class ListJobsRequestSortBy extends $tea.Model {
2055
2334
  [key: string]: any;
2056
2335
  });
2057
2336
  }
2337
+ export declare class ListJobsResponseBodyJobListTags extends $tea.Model {
2338
+ tagKey?: string;
2339
+ tagValue?: string;
2340
+ static names(): {
2341
+ [key: string]: string;
2342
+ };
2343
+ static types(): {
2344
+ [key: string]: any;
2345
+ };
2346
+ constructor(map?: {
2347
+ [key: string]: any;
2348
+ });
2349
+ }
2058
2350
  export declare class ListJobsResponseBodyJobList extends $tea.Model {
2059
2351
  /**
2060
2352
  * @example
@@ -2101,6 +2393,7 @@ export declare class ListJobsResponseBodyJobList extends $tea.Model {
2101
2393
  * Running
2102
2394
  */
2103
2395
  status?: string;
2396
+ tags?: ListJobsResponseBodyJobListTags[];
2104
2397
  /**
2105
2398
  * @example
2106
2399
  * 1
@@ -2121,6 +2414,94 @@ export declare class ListJobsResponseBodyJobList extends $tea.Model {
2121
2414
  [key: string]: any;
2122
2415
  });
2123
2416
  }
2417
+ export declare class ListTagResourcesRequestTag extends $tea.Model {
2418
+ /**
2419
+ * @example
2420
+ * TestKey
2421
+ */
2422
+ key?: string;
2423
+ /**
2424
+ * @example
2425
+ * TestValue
2426
+ */
2427
+ value?: string;
2428
+ static names(): {
2429
+ [key: string]: string;
2430
+ };
2431
+ static types(): {
2432
+ [key: string]: any;
2433
+ };
2434
+ constructor(map?: {
2435
+ [key: string]: any;
2436
+ });
2437
+ }
2438
+ export declare class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
2439
+ /**
2440
+ * @example
2441
+ * job-xxxxxxxx
2442
+ */
2443
+ resourceId?: string;
2444
+ /**
2445
+ * @example
2446
+ * Job
2447
+ */
2448
+ resourceType?: string;
2449
+ /**
2450
+ * @example
2451
+ * TestKey
2452
+ */
2453
+ tagKey?: string;
2454
+ /**
2455
+ * @example
2456
+ * TestValue
2457
+ */
2458
+ tagValue?: string;
2459
+ static names(): {
2460
+ [key: string]: string;
2461
+ };
2462
+ static types(): {
2463
+ [key: string]: any;
2464
+ };
2465
+ constructor(map?: {
2466
+ [key: string]: any;
2467
+ });
2468
+ }
2469
+ export declare class ListTagResourcesResponseBodyTagResources extends $tea.Model {
2470
+ tagResource?: ListTagResourcesResponseBodyTagResourcesTagResource[];
2471
+ static names(): {
2472
+ [key: string]: string;
2473
+ };
2474
+ static types(): {
2475
+ [key: string]: any;
2476
+ };
2477
+ constructor(map?: {
2478
+ [key: string]: any;
2479
+ });
2480
+ }
2481
+ export declare class TagResourcesRequestTag extends $tea.Model {
2482
+ /**
2483
+ * @remarks
2484
+ * This parameter is required.
2485
+ *
2486
+ * @example
2487
+ * TestKey
2488
+ */
2489
+ key?: string;
2490
+ /**
2491
+ * @example
2492
+ * TestValue
2493
+ */
2494
+ value?: string;
2495
+ static names(): {
2496
+ [key: string]: string;
2497
+ };
2498
+ static types(): {
2499
+ [key: string]: any;
2500
+ };
2501
+ constructor(map?: {
2502
+ [key: string]: any;
2503
+ });
2504
+ }
2124
2505
  export default class Client extends OpenApi {
2125
2506
  constructor(config: $OpenApi.Config);
2126
2507
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
@@ -2291,6 +2672,21 @@ export default class Client extends OpenApi {
2291
2672
  * @returns ListJobsResponse
2292
2673
  */
2293
2674
  listJobs(request: ListJobsRequest): Promise<ListJobsResponse>;
2675
+ /**
2676
+ * 查询一个或多个资源已经绑定的标签列表
2677
+ *
2678
+ * @param request - ListTagResourcesRequest
2679
+ * @param runtime - runtime options for this request RuntimeOptions
2680
+ * @returns ListTagResourcesResponse
2681
+ */
2682
+ listTagResourcesWithOptions(request: ListTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse>;
2683
+ /**
2684
+ * 查询一个或多个资源已经绑定的标签列表
2685
+ *
2686
+ * @param request - ListTagResourcesRequest
2687
+ * @returns ListTagResourcesResponse
2688
+ */
2689
+ listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse>;
2294
2690
  /**
2295
2691
  * 移除托管侧镜像信息。
2296
2692
  *
@@ -2306,4 +2702,34 @@ export default class Client extends OpenApi {
2306
2702
  * @returns RemoveImageResponse
2307
2703
  */
2308
2704
  removeImage(request: RemoveImageRequest): Promise<RemoveImageResponse>;
2705
+ /**
2706
+ * 为指定的资源列表统一创建并绑定标签
2707
+ *
2708
+ * @param request - TagResourcesRequest
2709
+ * @param runtime - runtime options for this request RuntimeOptions
2710
+ * @returns TagResourcesResponse
2711
+ */
2712
+ tagResourcesWithOptions(request: TagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse>;
2713
+ /**
2714
+ * 为指定的资源列表统一创建并绑定标签
2715
+ *
2716
+ * @param request - TagResourcesRequest
2717
+ * @returns TagResourcesResponse
2718
+ */
2719
+ tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse>;
2720
+ /**
2721
+ * 为指定的ECS资源列表统一解绑标签
2722
+ *
2723
+ * @param request - UnTagResourcesRequest
2724
+ * @param runtime - runtime options for this request RuntimeOptions
2725
+ * @returns UnTagResourcesResponse
2726
+ */
2727
+ unTagResourcesWithOptions(request: UnTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<UnTagResourcesResponse>;
2728
+ /**
2729
+ * 为指定的ECS资源列表统一解绑标签
2730
+ *
2731
+ * @param request - UnTagResourcesRequest
2732
+ * @returns UnTagResourcesResponse
2733
+ */
2734
+ unTagResources(request: UnTagResourcesRequest): Promise<UnTagResourcesResponse>;
2309
2735
  }