@alicloud/waf-openapi20211001 2.3.0 → 2.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/waf-openapi20211001",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1221,6 +1221,111 @@ export class DescribeCertsResponse extends $tea.Model {
1221
1221
  }
1222
1222
  }
1223
1223
 
1224
+ export class DescribeCloudResourcesRequest extends $tea.Model {
1225
+ instanceId?: string;
1226
+ ownerUserId?: string;
1227
+ pageNumber?: number;
1228
+ pageSize?: number;
1229
+ regionId?: string;
1230
+ resourceDomain?: string;
1231
+ resourceFunction?: string;
1232
+ resourceInstanceId?: string;
1233
+ resourceManagerResourceGroupId?: string;
1234
+ resourceName?: string;
1235
+ resourceProduct?: string;
1236
+ resourceRegionId?: string;
1237
+ resourceRouteName?: string;
1238
+ static names(): { [key: string]: string } {
1239
+ return {
1240
+ instanceId: 'InstanceId',
1241
+ ownerUserId: 'OwnerUserId',
1242
+ pageNumber: 'PageNumber',
1243
+ pageSize: 'PageSize',
1244
+ regionId: 'RegionId',
1245
+ resourceDomain: 'ResourceDomain',
1246
+ resourceFunction: 'ResourceFunction',
1247
+ resourceInstanceId: 'ResourceInstanceId',
1248
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
1249
+ resourceName: 'ResourceName',
1250
+ resourceProduct: 'ResourceProduct',
1251
+ resourceRegionId: 'ResourceRegionId',
1252
+ resourceRouteName: 'ResourceRouteName',
1253
+ };
1254
+ }
1255
+
1256
+ static types(): { [key: string]: any } {
1257
+ return {
1258
+ instanceId: 'string',
1259
+ ownerUserId: 'string',
1260
+ pageNumber: 'number',
1261
+ pageSize: 'number',
1262
+ regionId: 'string',
1263
+ resourceDomain: 'string',
1264
+ resourceFunction: 'string',
1265
+ resourceInstanceId: 'string',
1266
+ resourceManagerResourceGroupId: 'string',
1267
+ resourceName: 'string',
1268
+ resourceProduct: 'string',
1269
+ resourceRegionId: 'string',
1270
+ resourceRouteName: 'string',
1271
+ };
1272
+ }
1273
+
1274
+ constructor(map?: { [key: string]: any }) {
1275
+ super(map);
1276
+ }
1277
+ }
1278
+
1279
+ export class DescribeCloudResourcesResponseBody extends $tea.Model {
1280
+ cloudResources?: DescribeCloudResourcesResponseBodyCloudResources[];
1281
+ requestId?: string;
1282
+ totalCount?: number;
1283
+ static names(): { [key: string]: string } {
1284
+ return {
1285
+ cloudResources: 'CloudResources',
1286
+ requestId: 'RequestId',
1287
+ totalCount: 'TotalCount',
1288
+ };
1289
+ }
1290
+
1291
+ static types(): { [key: string]: any } {
1292
+ return {
1293
+ cloudResources: { 'type': 'array', 'itemType': DescribeCloudResourcesResponseBodyCloudResources },
1294
+ requestId: 'string',
1295
+ totalCount: 'number',
1296
+ };
1297
+ }
1298
+
1299
+ constructor(map?: { [key: string]: any }) {
1300
+ super(map);
1301
+ }
1302
+ }
1303
+
1304
+ export class DescribeCloudResourcesResponse extends $tea.Model {
1305
+ headers?: { [key: string]: string };
1306
+ statusCode?: number;
1307
+ body?: DescribeCloudResourcesResponseBody;
1308
+ static names(): { [key: string]: string } {
1309
+ return {
1310
+ headers: 'headers',
1311
+ statusCode: 'statusCode',
1312
+ body: 'body',
1313
+ };
1314
+ }
1315
+
1316
+ static types(): { [key: string]: any } {
1317
+ return {
1318
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1319
+ statusCode: 'number',
1320
+ body: DescribeCloudResourcesResponseBody,
1321
+ };
1322
+ }
1323
+
1324
+ constructor(map?: { [key: string]: any }) {
1325
+ super(map);
1326
+ }
1327
+ }
1328
+
1224
1329
  export class DescribeDefenseResourceGroupRequest extends $tea.Model {
1225
1330
  groupName?: string;
1226
1331
  instanceId?: string;
@@ -2910,6 +3015,105 @@ export class DescribePeakTrendResponse extends $tea.Model {
2910
3015
  }
2911
3016
  }
2912
3017
 
3018
+ export class DescribeProductInstancesRequest extends $tea.Model {
3019
+ instanceId?: string;
3020
+ ownerUserId?: string;
3021
+ pageNumber?: number;
3022
+ pageSize?: number;
3023
+ regionId?: string;
3024
+ resourceInstanceId?: string;
3025
+ resourceIp?: string;
3026
+ resourceManagerResourceGroupId?: string;
3027
+ resourceName?: string;
3028
+ resourceProduct?: string;
3029
+ resourceRegionId?: string;
3030
+ static names(): { [key: string]: string } {
3031
+ return {
3032
+ instanceId: 'InstanceId',
3033
+ ownerUserId: 'OwnerUserId',
3034
+ pageNumber: 'PageNumber',
3035
+ pageSize: 'PageSize',
3036
+ regionId: 'RegionId',
3037
+ resourceInstanceId: 'ResourceInstanceId',
3038
+ resourceIp: 'ResourceIp',
3039
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
3040
+ resourceName: 'ResourceName',
3041
+ resourceProduct: 'ResourceProduct',
3042
+ resourceRegionId: 'ResourceRegionId',
3043
+ };
3044
+ }
3045
+
3046
+ static types(): { [key: string]: any } {
3047
+ return {
3048
+ instanceId: 'string',
3049
+ ownerUserId: 'string',
3050
+ pageNumber: 'number',
3051
+ pageSize: 'number',
3052
+ regionId: 'string',
3053
+ resourceInstanceId: 'string',
3054
+ resourceIp: 'string',
3055
+ resourceManagerResourceGroupId: 'string',
3056
+ resourceName: 'string',
3057
+ resourceProduct: 'string',
3058
+ resourceRegionId: 'string',
3059
+ };
3060
+ }
3061
+
3062
+ constructor(map?: { [key: string]: any }) {
3063
+ super(map);
3064
+ }
3065
+ }
3066
+
3067
+ export class DescribeProductInstancesResponseBody extends $tea.Model {
3068
+ productInstances?: DescribeProductInstancesResponseBodyProductInstances[];
3069
+ requestId?: string;
3070
+ totalCount?: number;
3071
+ static names(): { [key: string]: string } {
3072
+ return {
3073
+ productInstances: 'ProductInstances',
3074
+ requestId: 'RequestId',
3075
+ totalCount: 'TotalCount',
3076
+ };
3077
+ }
3078
+
3079
+ static types(): { [key: string]: any } {
3080
+ return {
3081
+ productInstances: { 'type': 'array', 'itemType': DescribeProductInstancesResponseBodyProductInstances },
3082
+ requestId: 'string',
3083
+ totalCount: 'number',
3084
+ };
3085
+ }
3086
+
3087
+ constructor(map?: { [key: string]: any }) {
3088
+ super(map);
3089
+ }
3090
+ }
3091
+
3092
+ export class DescribeProductInstancesResponse extends $tea.Model {
3093
+ headers?: { [key: string]: string };
3094
+ statusCode?: number;
3095
+ body?: DescribeProductInstancesResponseBody;
3096
+ static names(): { [key: string]: string } {
3097
+ return {
3098
+ headers: 'headers',
3099
+ statusCode: 'statusCode',
3100
+ body: 'body',
3101
+ };
3102
+ }
3103
+
3104
+ static types(): { [key: string]: any } {
3105
+ return {
3106
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3107
+ statusCode: 'number',
3108
+ body: DescribeProductInstancesResponseBody,
3109
+ };
3110
+ }
3111
+
3112
+ constructor(map?: { [key: string]: any }) {
3113
+ super(map);
3114
+ }
3115
+ }
3116
+
2913
3117
  export class DescribeResourceInstanceCertsRequest extends $tea.Model {
2914
3118
  instanceId?: string;
2915
3119
  pageNumber?: number;
@@ -5704,6 +5908,75 @@ export class ModifyTemplateResourcesResponse extends $tea.Model {
5704
5908
  }
5705
5909
  }
5706
5910
 
5911
+ export class SyncProductInstanceRequest extends $tea.Model {
5912
+ instanceId?: string;
5913
+ regionId?: string;
5914
+ resourceManagerResourceGroupId?: string;
5915
+ static names(): { [key: string]: string } {
5916
+ return {
5917
+ instanceId: 'InstanceId',
5918
+ regionId: 'RegionId',
5919
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
5920
+ };
5921
+ }
5922
+
5923
+ static types(): { [key: string]: any } {
5924
+ return {
5925
+ instanceId: 'string',
5926
+ regionId: 'string',
5927
+ resourceManagerResourceGroupId: 'string',
5928
+ };
5929
+ }
5930
+
5931
+ constructor(map?: { [key: string]: any }) {
5932
+ super(map);
5933
+ }
5934
+ }
5935
+
5936
+ export class SyncProductInstanceResponseBody extends $tea.Model {
5937
+ requestId?: string;
5938
+ static names(): { [key: string]: string } {
5939
+ return {
5940
+ requestId: 'RequestId',
5941
+ };
5942
+ }
5943
+
5944
+ static types(): { [key: string]: any } {
5945
+ return {
5946
+ requestId: 'string',
5947
+ };
5948
+ }
5949
+
5950
+ constructor(map?: { [key: string]: any }) {
5951
+ super(map);
5952
+ }
5953
+ }
5954
+
5955
+ export class SyncProductInstanceResponse extends $tea.Model {
5956
+ headers?: { [key: string]: string };
5957
+ statusCode?: number;
5958
+ body?: SyncProductInstanceResponseBody;
5959
+ static names(): { [key: string]: string } {
5960
+ return {
5961
+ headers: 'headers',
5962
+ statusCode: 'statusCode',
5963
+ body: 'body',
5964
+ };
5965
+ }
5966
+
5967
+ static types(): { [key: string]: any } {
5968
+ return {
5969
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5970
+ statusCode: 'number',
5971
+ body: SyncProductInstanceResponseBody,
5972
+ };
5973
+ }
5974
+
5975
+ constructor(map?: { [key: string]: any }) {
5976
+ super(map);
5977
+ }
5978
+ }
5979
+
5707
5980
  export class CreateDomainRequestListen extends $tea.Model {
5708
5981
  certId?: string;
5709
5982
  cipherSuite?: number;
@@ -5916,6 +6189,49 @@ export class DescribeCertsResponseBodyCerts extends $tea.Model {
5916
6189
  }
5917
6190
  }
5918
6191
 
6192
+ export class DescribeCloudResourcesResponseBodyCloudResources extends $tea.Model {
6193
+ ownerUserId?: string;
6194
+ resourceDomain?: string;
6195
+ resourceFunction?: string;
6196
+ resourceInstance?: string;
6197
+ resourceName?: string;
6198
+ resourceProduct?: string;
6199
+ resourceRegionId?: string;
6200
+ resourceRouteName?: string;
6201
+ resourceService?: string;
6202
+ static names(): { [key: string]: string } {
6203
+ return {
6204
+ ownerUserId: 'OwnerUserId',
6205
+ resourceDomain: 'ResourceDomain',
6206
+ resourceFunction: 'ResourceFunction',
6207
+ resourceInstance: 'ResourceInstance',
6208
+ resourceName: 'ResourceName',
6209
+ resourceProduct: 'ResourceProduct',
6210
+ resourceRegionId: 'ResourceRegionId',
6211
+ resourceRouteName: 'ResourceRouteName',
6212
+ resourceService: 'ResourceService',
6213
+ };
6214
+ }
6215
+
6216
+ static types(): { [key: string]: any } {
6217
+ return {
6218
+ ownerUserId: 'string',
6219
+ resourceDomain: 'string',
6220
+ resourceFunction: 'string',
6221
+ resourceInstance: 'string',
6222
+ resourceName: 'string',
6223
+ resourceProduct: 'string',
6224
+ resourceRegionId: 'string',
6225
+ resourceRouteName: 'string',
6226
+ resourceService: 'string',
6227
+ };
6228
+ }
6229
+
6230
+ constructor(map?: { [key: string]: any }) {
6231
+ super(map);
6232
+ }
6233
+ }
6234
+
5919
6235
  export class DescribeDefenseResourceGroupResponseBodyGroup extends $tea.Model {
5920
6236
  description?: string;
5921
6237
  gmtCreate?: number;
@@ -7266,6 +7582,90 @@ export class DescribePeakTrendResponseBodyFlowChart extends $tea.Model {
7266
7582
  }
7267
7583
  }
7268
7584
 
7585
+ export class DescribeProductInstancesResponseBodyProductInstancesResourcePortsCertificates extends $tea.Model {
7586
+ certificateId?: string;
7587
+ certificateName?: string;
7588
+ static names(): { [key: string]: string } {
7589
+ return {
7590
+ certificateId: 'CertificateId',
7591
+ certificateName: 'CertificateName',
7592
+ };
7593
+ }
7594
+
7595
+ static types(): { [key: string]: any } {
7596
+ return {
7597
+ certificateId: 'string',
7598
+ certificateName: 'string',
7599
+ };
7600
+ }
7601
+
7602
+ constructor(map?: { [key: string]: any }) {
7603
+ super(map);
7604
+ }
7605
+ }
7606
+
7607
+ export class DescribeProductInstancesResponseBodyProductInstancesResourcePorts extends $tea.Model {
7608
+ certificates?: DescribeProductInstancesResponseBodyProductInstancesResourcePortsCertificates[];
7609
+ port?: number;
7610
+ protocol?: string;
7611
+ static names(): { [key: string]: string } {
7612
+ return {
7613
+ certificates: 'Certificates',
7614
+ port: 'Port',
7615
+ protocol: 'Protocol',
7616
+ };
7617
+ }
7618
+
7619
+ static types(): { [key: string]: any } {
7620
+ return {
7621
+ certificates: { 'type': 'array', 'itemType': DescribeProductInstancesResponseBodyProductInstancesResourcePortsCertificates },
7622
+ port: 'number',
7623
+ protocol: 'string',
7624
+ };
7625
+ }
7626
+
7627
+ constructor(map?: { [key: string]: any }) {
7628
+ super(map);
7629
+ }
7630
+ }
7631
+
7632
+ export class DescribeProductInstancesResponseBodyProductInstances extends $tea.Model {
7633
+ ownerUserId?: string;
7634
+ resourceInstanceId?: string;
7635
+ resourceIp?: string;
7636
+ resourceName?: string;
7637
+ resourcePorts?: DescribeProductInstancesResponseBodyProductInstancesResourcePorts[];
7638
+ resourceProduct?: string;
7639
+ resourceRegionId?: string;
7640
+ static names(): { [key: string]: string } {
7641
+ return {
7642
+ ownerUserId: 'OwnerUserId',
7643
+ resourceInstanceId: 'ResourceInstanceId',
7644
+ resourceIp: 'ResourceIp',
7645
+ resourceName: 'ResourceName',
7646
+ resourcePorts: 'ResourcePorts',
7647
+ resourceProduct: 'ResourceProduct',
7648
+ resourceRegionId: 'ResourceRegionId',
7649
+ };
7650
+ }
7651
+
7652
+ static types(): { [key: string]: any } {
7653
+ return {
7654
+ ownerUserId: 'string',
7655
+ resourceInstanceId: 'string',
7656
+ resourceIp: 'string',
7657
+ resourceName: 'string',
7658
+ resourcePorts: { 'type': 'array', 'itemType': DescribeProductInstancesResponseBodyProductInstancesResourcePorts },
7659
+ resourceProduct: 'string',
7660
+ resourceRegionId: 'string',
7661
+ };
7662
+ }
7663
+
7664
+ constructor(map?: { [key: string]: any }) {
7665
+ super(map);
7666
+ }
7667
+ }
7668
+
7269
7669
  export class DescribeResourceInstanceCertsResponseBodyCerts extends $tea.Model {
7270
7670
  afterDate?: number;
7271
7671
  beforeDate?: number;
@@ -8562,6 +8962,83 @@ export default class Client extends OpenApi {
8562
8962
  return await this.describeCertsWithOptions(request, runtime);
8563
8963
  }
8564
8964
 
8965
+ async describeCloudResourcesWithOptions(request: DescribeCloudResourcesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeCloudResourcesResponse> {
8966
+ Util.validateModel(request);
8967
+ let query = { };
8968
+ if (!Util.isUnset(request.instanceId)) {
8969
+ query["InstanceId"] = request.instanceId;
8970
+ }
8971
+
8972
+ if (!Util.isUnset(request.ownerUserId)) {
8973
+ query["OwnerUserId"] = request.ownerUserId;
8974
+ }
8975
+
8976
+ if (!Util.isUnset(request.pageNumber)) {
8977
+ query["PageNumber"] = request.pageNumber;
8978
+ }
8979
+
8980
+ if (!Util.isUnset(request.pageSize)) {
8981
+ query["PageSize"] = request.pageSize;
8982
+ }
8983
+
8984
+ if (!Util.isUnset(request.regionId)) {
8985
+ query["RegionId"] = request.regionId;
8986
+ }
8987
+
8988
+ if (!Util.isUnset(request.resourceDomain)) {
8989
+ query["ResourceDomain"] = request.resourceDomain;
8990
+ }
8991
+
8992
+ if (!Util.isUnset(request.resourceFunction)) {
8993
+ query["ResourceFunction"] = request.resourceFunction;
8994
+ }
8995
+
8996
+ if (!Util.isUnset(request.resourceInstanceId)) {
8997
+ query["ResourceInstanceId"] = request.resourceInstanceId;
8998
+ }
8999
+
9000
+ if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
9001
+ query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
9002
+ }
9003
+
9004
+ if (!Util.isUnset(request.resourceName)) {
9005
+ query["ResourceName"] = request.resourceName;
9006
+ }
9007
+
9008
+ if (!Util.isUnset(request.resourceProduct)) {
9009
+ query["ResourceProduct"] = request.resourceProduct;
9010
+ }
9011
+
9012
+ if (!Util.isUnset(request.resourceRegionId)) {
9013
+ query["ResourceRegionId"] = request.resourceRegionId;
9014
+ }
9015
+
9016
+ if (!Util.isUnset(request.resourceRouteName)) {
9017
+ query["ResourceRouteName"] = request.resourceRouteName;
9018
+ }
9019
+
9020
+ let req = new $OpenApi.OpenApiRequest({
9021
+ query: OpenApiUtil.query(query),
9022
+ });
9023
+ let params = new $OpenApi.Params({
9024
+ action: "DescribeCloudResources",
9025
+ version: "2021-10-01",
9026
+ protocol: "HTTPS",
9027
+ pathname: "/",
9028
+ method: "POST",
9029
+ authType: "AK",
9030
+ style: "RPC",
9031
+ reqBodyType: "formData",
9032
+ bodyType: "json",
9033
+ });
9034
+ return $tea.cast<DescribeCloudResourcesResponse>(await this.callApi(params, req, runtime), new DescribeCloudResourcesResponse({}));
9035
+ }
9036
+
9037
+ async describeCloudResources(request: DescribeCloudResourcesRequest): Promise<DescribeCloudResourcesResponse> {
9038
+ let runtime = new $Util.RuntimeOptions({ });
9039
+ return await this.describeCloudResourcesWithOptions(request, runtime);
9040
+ }
9041
+
8565
9042
  async describeDefenseResourceGroupWithOptions(request: DescribeDefenseResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDefenseResourceGroupResponse> {
8566
9043
  Util.validateModel(request);
8567
9044
  let query = { };
@@ -9546,6 +10023,75 @@ export default class Client extends OpenApi {
9546
10023
  return await this.describePeakTrendWithOptions(request, runtime);
9547
10024
  }
9548
10025
 
10026
+ async describeProductInstancesWithOptions(request: DescribeProductInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeProductInstancesResponse> {
10027
+ Util.validateModel(request);
10028
+ let query = { };
10029
+ if (!Util.isUnset(request.instanceId)) {
10030
+ query["InstanceId"] = request.instanceId;
10031
+ }
10032
+
10033
+ if (!Util.isUnset(request.ownerUserId)) {
10034
+ query["OwnerUserId"] = request.ownerUserId;
10035
+ }
10036
+
10037
+ if (!Util.isUnset(request.pageNumber)) {
10038
+ query["PageNumber"] = request.pageNumber;
10039
+ }
10040
+
10041
+ if (!Util.isUnset(request.pageSize)) {
10042
+ query["PageSize"] = request.pageSize;
10043
+ }
10044
+
10045
+ if (!Util.isUnset(request.regionId)) {
10046
+ query["RegionId"] = request.regionId;
10047
+ }
10048
+
10049
+ if (!Util.isUnset(request.resourceInstanceId)) {
10050
+ query["ResourceInstanceId"] = request.resourceInstanceId;
10051
+ }
10052
+
10053
+ if (!Util.isUnset(request.resourceIp)) {
10054
+ query["ResourceIp"] = request.resourceIp;
10055
+ }
10056
+
10057
+ if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
10058
+ query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
10059
+ }
10060
+
10061
+ if (!Util.isUnset(request.resourceName)) {
10062
+ query["ResourceName"] = request.resourceName;
10063
+ }
10064
+
10065
+ if (!Util.isUnset(request.resourceProduct)) {
10066
+ query["ResourceProduct"] = request.resourceProduct;
10067
+ }
10068
+
10069
+ if (!Util.isUnset(request.resourceRegionId)) {
10070
+ query["ResourceRegionId"] = request.resourceRegionId;
10071
+ }
10072
+
10073
+ let req = new $OpenApi.OpenApiRequest({
10074
+ query: OpenApiUtil.query(query),
10075
+ });
10076
+ let params = new $OpenApi.Params({
10077
+ action: "DescribeProductInstances",
10078
+ version: "2021-10-01",
10079
+ protocol: "HTTPS",
10080
+ pathname: "/",
10081
+ method: "POST",
10082
+ authType: "AK",
10083
+ style: "RPC",
10084
+ reqBodyType: "formData",
10085
+ bodyType: "json",
10086
+ });
10087
+ return $tea.cast<DescribeProductInstancesResponse>(await this.callApi(params, req, runtime), new DescribeProductInstancesResponse({}));
10088
+ }
10089
+
10090
+ async describeProductInstances(request: DescribeProductInstancesRequest): Promise<DescribeProductInstancesResponse> {
10091
+ let runtime = new $Util.RuntimeOptions({ });
10092
+ return await this.describeProductInstancesWithOptions(request, runtime);
10093
+ }
10094
+
9549
10095
  async describeResourceInstanceCertsWithOptions(request: DescribeResourceInstanceCertsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeResourceInstanceCertsResponse> {
9550
10096
  Util.validateModel(request);
9551
10097
  let query = { };
@@ -11183,4 +11729,54 @@ export default class Client extends OpenApi {
11183
11729
  return await this.modifyTemplateResourcesWithOptions(request, runtime);
11184
11730
  }
11185
11731
 
11732
+ /**
11733
+ * SyncProductInstance is an asynchronous operation. You can call the [DescribeProductInstances](~~2743168~~) operation to query the status of the task.
11734
+ *
11735
+ * @param request SyncProductInstanceRequest
11736
+ * @param runtime runtime options for this request RuntimeOptions
11737
+ * @return SyncProductInstanceResponse
11738
+ */
11739
+ async syncProductInstanceWithOptions(request: SyncProductInstanceRequest, runtime: $Util.RuntimeOptions): Promise<SyncProductInstanceResponse> {
11740
+ Util.validateModel(request);
11741
+ let query = { };
11742
+ if (!Util.isUnset(request.instanceId)) {
11743
+ query["InstanceId"] = request.instanceId;
11744
+ }
11745
+
11746
+ if (!Util.isUnset(request.regionId)) {
11747
+ query["RegionId"] = request.regionId;
11748
+ }
11749
+
11750
+ if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
11751
+ query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
11752
+ }
11753
+
11754
+ let req = new $OpenApi.OpenApiRequest({
11755
+ query: OpenApiUtil.query(query),
11756
+ });
11757
+ let params = new $OpenApi.Params({
11758
+ action: "SyncProductInstance",
11759
+ version: "2021-10-01",
11760
+ protocol: "HTTPS",
11761
+ pathname: "/",
11762
+ method: "POST",
11763
+ authType: "AK",
11764
+ style: "RPC",
11765
+ reqBodyType: "formData",
11766
+ bodyType: "json",
11767
+ });
11768
+ return $tea.cast<SyncProductInstanceResponse>(await this.callApi(params, req, runtime), new SyncProductInstanceResponse({}));
11769
+ }
11770
+
11771
+ /**
11772
+ * SyncProductInstance is an asynchronous operation. You can call the [DescribeProductInstances](~~2743168~~) operation to query the status of the task.
11773
+ *
11774
+ * @param request SyncProductInstanceRequest
11775
+ * @return SyncProductInstanceResponse
11776
+ */
11777
+ async syncProductInstance(request: SyncProductInstanceRequest): Promise<SyncProductInstanceResponse> {
11778
+ let runtime = new $Util.RuntimeOptions({ });
11779
+ return await this.syncProductInstanceWithOptions(request, runtime);
11780
+ }
11781
+
11186
11782
  }