tencentcloud-sdk-vpc 3.0.863 → 3.0.865

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41044c59f944e61ef2509638d7296e27b93f61bd
4
- data.tar.gz: 65bf9665988b69c56c04c9664c9c14c8119422fa
3
+ metadata.gz: 3ed290fac8bd4286dfc54dfcb23119b10ac429d5
4
+ data.tar.gz: c2ce5ae4992fa5250246ca640e6a2aa6fae0e4dc
5
5
  SHA512:
6
- metadata.gz: 4f6f01cbc1e777ba0e301ba82798966f9d929a3ee3feb3b0d564354674d9d113d8d1d291a01c02dc19585feb19a5595298161b72e4508cb5cfafd3c20dc29923
7
- data.tar.gz: ca97b95bd60f7ffd4dc70c7dfe3be4518de65bf52cfced8473cb6d7ea3d663ed15cc4b2ee6993f48e2ba1d65fdbbe5657fb3a04ba02d40bfc8452f610986c504
6
+ metadata.gz: 0323053eabb75f9eb473de8ca8d99df877e73cd9154bc9172b3abe79838225b71b0c0011c633b01db89df1ceefb050f7cefbcd2abedf7c4627779b3cddd534ac
7
+ data.tar.gz: 007fed8c7cb4a4f9389d82e8ccaf015dd187029b16bd7d7c130744d7317ebf7dc3bdf582fc8ac95f23cdf4e21264159eab86f094a8325fd9481c73c24c71640e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.863
1
+ 3.0.865
@@ -417,6 +417,30 @@ module TencentCloud
417
417
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
418
418
  end
419
419
 
420
+ # 本接口(AssociateInstancesToCcnRouteTable)用于将指定的云联网实例关联到指定的云联网路由表。
421
+
422
+ # @param request: Request instance for AssociateInstancesToCcnRouteTable.
423
+ # @type request: :class:`Tencentcloud::vpc::V20170312::AssociateInstancesToCcnRouteTableRequest`
424
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::AssociateInstancesToCcnRouteTableResponse`
425
+ def AssociateInstancesToCcnRouteTable(request)
426
+ body = send_request('AssociateInstancesToCcnRouteTable', request.serialize)
427
+ response = JSON.parse(body)
428
+ if response['Response'].key?('Error') == false
429
+ model = AssociateInstancesToCcnRouteTableResponse.new
430
+ model.deserialize(response['Response'])
431
+ model
432
+ else
433
+ code = response['Response']['Error']['Code']
434
+ message = response['Response']['Error']['Message']
435
+ reqid = response['Response']['RequestId']
436
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
437
+ end
438
+ rescue TencentCloud::Common::TencentCloudSDKException => e
439
+ raise e
440
+ rescue StandardError => e
441
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
442
+ end
443
+
420
444
  # 本接口(AssociateNatGatewayAddress)用于NAT网关绑定弹性IP(EIP)。
421
445
 
422
446
  # @param request: Request instance for AssociateNatGatewayAddress.
@@ -698,6 +722,30 @@ module TencentCloud
698
722
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
699
723
  end
700
724
 
725
+ # 本接口(ClearRouteTableSelectionPolicies)用于清空指定云联网的路由表选择策略。
726
+
727
+ # @param request: Request instance for ClearRouteTableSelectionPolicies.
728
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ClearRouteTableSelectionPoliciesRequest`
729
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ClearRouteTableSelectionPoliciesResponse`
730
+ def ClearRouteTableSelectionPolicies(request)
731
+ body = send_request('ClearRouteTableSelectionPolicies', request.serialize)
732
+ response = JSON.parse(body)
733
+ if response['Response'].key?('Error') == false
734
+ model = ClearRouteTableSelectionPoliciesResponse.new
735
+ model.deserialize(response['Response'])
736
+ model
737
+ else
738
+ code = response['Response']['Error']['Code']
739
+ message = response['Response']['Error']['Message']
740
+ reqid = response['Response']['RequestId']
741
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
742
+ end
743
+ rescue TencentCloud::Common::TencentCloudSDKException => e
744
+ raise e
745
+ rescue StandardError => e
746
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
747
+ end
748
+
701
749
  # 本接口(CloneSecurityGroup)用于根据存量的安全组,克隆创建出同样规则配置的安全组。仅克隆安全组及其规则信息,不会克隆安全组标签信息。
702
750
 
703
751
  # @param request: Request instance for CloneSecurityGroup.
@@ -875,6 +923,30 @@ module TencentCloud
875
923
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
876
924
  end
877
925
 
926
+ # 本接口(CreateCcnRouteTables)用于给指定的云联网实例新建路由表。
927
+
928
+ # @param request: Request instance for CreateCcnRouteTables.
929
+ # @type request: :class:`Tencentcloud::vpc::V20170312::CreateCcnRouteTablesRequest`
930
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::CreateCcnRouteTablesResponse`
931
+ def CreateCcnRouteTables(request)
932
+ body = send_request('CreateCcnRouteTables', request.serialize)
933
+ response = JSON.parse(body)
934
+ if response['Response'].key?('Error') == false
935
+ model = CreateCcnRouteTablesResponse.new
936
+ model.deserialize(response['Response'])
937
+ model
938
+ else
939
+ code = response['Response']['Error']['Code']
940
+ message = response['Response']['Error']['Message']
941
+ reqid = response['Response']['RequestId']
942
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
943
+ end
944
+ rescue TencentCloud::Common::TencentCloudSDKException => e
945
+ raise e
946
+ rescue StandardError => e
947
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
948
+ end
949
+
878
950
  # 本接口(CreateCustomerGateway)用于创建对端网关。
879
951
 
880
952
  # @param request: Request instance for CreateCustomerGateway.
@@ -2105,6 +2177,30 @@ module TencentCloud
2105
2177
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2106
2178
  end
2107
2179
 
2180
+ # 本接口(DeleteCcnRouteTables)用于删除云联网路由表。
2181
+
2182
+ # @param request: Request instance for DeleteCcnRouteTables.
2183
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DeleteCcnRouteTablesRequest`
2184
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DeleteCcnRouteTablesResponse`
2185
+ def DeleteCcnRouteTables(request)
2186
+ body = send_request('DeleteCcnRouteTables', request.serialize)
2187
+ response = JSON.parse(body)
2188
+ if response['Response'].key?('Error') == false
2189
+ model = DeleteCcnRouteTablesResponse.new
2190
+ model.deserialize(response['Response'])
2191
+ model
2192
+ else
2193
+ code = response['Response']['Error']['Code']
2194
+ message = response['Response']['Error']['Message']
2195
+ reqid = response['Response']['RequestId']
2196
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2197
+ end
2198
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2199
+ raise e
2200
+ rescue StandardError => e
2201
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2202
+ end
2203
+
2108
2204
  # 本接口(DeleteCustomerGateway)用于删除对端网关。
2109
2205
 
2110
2206
  # @param request: Request instance for DeleteCustomerGateway.
@@ -3379,6 +3475,78 @@ module TencentCloud
3379
3475
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3380
3476
  end
3381
3477
 
3478
+ # 本接口(DescribeCcnRouteTableBroadcastPolicys)用于查询指定云联网路由表的路由传播策略。
3479
+
3480
+ # @param request: Request instance for DescribeCcnRouteTableBroadcastPolicys.
3481
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeCcnRouteTableBroadcastPolicysRequest`
3482
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeCcnRouteTableBroadcastPolicysResponse`
3483
+ def DescribeCcnRouteTableBroadcastPolicys(request)
3484
+ body = send_request('DescribeCcnRouteTableBroadcastPolicys', request.serialize)
3485
+ response = JSON.parse(body)
3486
+ if response['Response'].key?('Error') == false
3487
+ model = DescribeCcnRouteTableBroadcastPolicysResponse.new
3488
+ model.deserialize(response['Response'])
3489
+ model
3490
+ else
3491
+ code = response['Response']['Error']['Code']
3492
+ message = response['Response']['Error']['Message']
3493
+ reqid = response['Response']['RequestId']
3494
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3495
+ end
3496
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3497
+ raise e
3498
+ rescue StandardError => e
3499
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3500
+ end
3501
+
3502
+ # 本接口(DescribeCcnRouteTableInputPolicys)用于查询指定云联网路由表的路由接收策略。
3503
+
3504
+ # @param request: Request instance for DescribeCcnRouteTableInputPolicys.
3505
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeCcnRouteTableInputPolicysRequest`
3506
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeCcnRouteTableInputPolicysResponse`
3507
+ def DescribeCcnRouteTableInputPolicys(request)
3508
+ body = send_request('DescribeCcnRouteTableInputPolicys', request.serialize)
3509
+ response = JSON.parse(body)
3510
+ if response['Response'].key?('Error') == false
3511
+ model = DescribeCcnRouteTableInputPolicysResponse.new
3512
+ model.deserialize(response['Response'])
3513
+ model
3514
+ else
3515
+ code = response['Response']['Error']['Code']
3516
+ message = response['Response']['Error']['Message']
3517
+ reqid = response['Response']['RequestId']
3518
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3519
+ end
3520
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3521
+ raise e
3522
+ rescue StandardError => e
3523
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3524
+ end
3525
+
3526
+ # 该接口用于查询指定的云联网实例的路由表信息。
3527
+
3528
+ # @param request: Request instance for DescribeCcnRouteTables.
3529
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeCcnRouteTablesRequest`
3530
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeCcnRouteTablesResponse`
3531
+ def DescribeCcnRouteTables(request)
3532
+ body = send_request('DescribeCcnRouteTables', request.serialize)
3533
+ response = JSON.parse(body)
3534
+ if response['Response'].key?('Error') == false
3535
+ model = DescribeCcnRouteTablesResponse.new
3536
+ model.deserialize(response['Response'])
3537
+ model
3538
+ else
3539
+ code = response['Response']['Error']['Code']
3540
+ message = response['Response']['Error']['Message']
3541
+ reqid = response['Response']['RequestId']
3542
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3543
+ end
3544
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3545
+ raise e
3546
+ rescue StandardError => e
3547
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3548
+ end
3549
+
3382
3550
  # 本接口(DescribeCcnRoutes)用于查询已加入云联网(CCN)的路由。
3383
3551
 
3384
3552
  # @param request: Request instance for DescribeCcnRoutes.
@@ -4371,6 +4539,54 @@ module TencentCloud
4371
4539
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4372
4540
  end
4373
4541
 
4542
+ # 本接口(DescribeRouteTableAssociatedInstances)用于查询指定的云联网关联的实例所绑定的路由表信息。
4543
+
4544
+ # @param request: Request instance for DescribeRouteTableAssociatedInstances.
4545
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeRouteTableAssociatedInstancesRequest`
4546
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeRouteTableAssociatedInstancesResponse`
4547
+ def DescribeRouteTableAssociatedInstances(request)
4548
+ body = send_request('DescribeRouteTableAssociatedInstances', request.serialize)
4549
+ response = JSON.parse(body)
4550
+ if response['Response'].key?('Error') == false
4551
+ model = DescribeRouteTableAssociatedInstancesResponse.new
4552
+ model.deserialize(response['Response'])
4553
+ model
4554
+ else
4555
+ code = response['Response']['Error']['Code']
4556
+ message = response['Response']['Error']['Message']
4557
+ reqid = response['Response']['RequestId']
4558
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4559
+ end
4560
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4561
+ raise e
4562
+ rescue StandardError => e
4563
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4564
+ end
4565
+
4566
+ # 本接口(DescribeRouteTableSelectionPolicies)用于查询云联网路由表选择策略。
4567
+
4568
+ # @param request: Request instance for DescribeRouteTableSelectionPolicies.
4569
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeRouteTableSelectionPoliciesRequest`
4570
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeRouteTableSelectionPoliciesResponse`
4571
+ def DescribeRouteTableSelectionPolicies(request)
4572
+ body = send_request('DescribeRouteTableSelectionPolicies', request.serialize)
4573
+ response = JSON.parse(body)
4574
+ if response['Response'].key?('Error') == false
4575
+ model = DescribeRouteTableSelectionPoliciesResponse.new
4576
+ model.deserialize(response['Response'])
4577
+ model
4578
+ else
4579
+ code = response['Response']['Error']['Code']
4580
+ message = response['Response']['Error']['Message']
4581
+ reqid = response['Response']['RequestId']
4582
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4583
+ end
4584
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4585
+ raise e
4586
+ rescue StandardError => e
4587
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4588
+ end
4589
+
4374
4590
  # 本接口(DescribeRouteTables)用于查询路由表。
4375
4591
 
4376
4592
  # @param request: Request instance for DescribeRouteTables.
@@ -6478,6 +6694,30 @@ module TencentCloud
6478
6694
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
6479
6695
  end
6480
6696
 
6697
+ # 该接口用于修改云联网路由表名称和备注。
6698
+
6699
+ # @param request: Request instance for ModifyCcnRouteTables.
6700
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ModifyCcnRouteTablesRequest`
6701
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ModifyCcnRouteTablesResponse`
6702
+ def ModifyCcnRouteTables(request)
6703
+ body = send_request('ModifyCcnRouteTables', request.serialize)
6704
+ response = JSON.parse(body)
6705
+ if response['Response'].key?('Error') == false
6706
+ model = ModifyCcnRouteTablesResponse.new
6707
+ model.deserialize(response['Response'])
6708
+ model
6709
+ else
6710
+ code = response['Response']['Error']['Code']
6711
+ message = response['Response']['Error']['Message']
6712
+ reqid = response['Response']['RequestId']
6713
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
6714
+ end
6715
+ rescue TencentCloud::Common::TencentCloudSDKException => e
6716
+ raise e
6717
+ rescue StandardError => e
6718
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
6719
+ end
6720
+
6481
6721
  # 本接口(ModifyCustomerGatewayAttribute)用于修改对端网关信息。
6482
6722
 
6483
6723
  # @param request: Request instance for ModifyCustomerGatewayAttribute.
@@ -7104,6 +7344,30 @@ module TencentCloud
7104
7344
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7105
7345
  end
7106
7346
 
7347
+ # 该接口用于编辑云联网路由表选择策略
7348
+
7349
+ # @param request: Request instance for ModifyRouteTableSelectionPolicies.
7350
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ModifyRouteTableSelectionPoliciesRequest`
7351
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ModifyRouteTableSelectionPoliciesResponse`
7352
+ def ModifyRouteTableSelectionPolicies(request)
7353
+ body = send_request('ModifyRouteTableSelectionPolicies', request.serialize)
7354
+ response = JSON.parse(body)
7355
+ if response['Response'].key?('Error') == false
7356
+ model = ModifyRouteTableSelectionPoliciesResponse.new
7357
+ model.deserialize(response['Response'])
7358
+ model
7359
+ else
7360
+ code = response['Response']['Error']['Code']
7361
+ message = response['Response']['Error']['Message']
7362
+ reqid = response['Response']['RequestId']
7363
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
7364
+ end
7365
+ rescue TencentCloud::Common::TencentCloudSDKException => e
7366
+ raise e
7367
+ rescue StandardError => e
7368
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7369
+ end
7370
+
7107
7371
  # 本接口(ModifySecurityGroupAttribute)用于修改安全组(SecurityGroupPolicy)属性。
7108
7372
 
7109
7373
  # @param request: Request instance for ModifySecurityGroupAttribute.
@@ -7799,6 +8063,89 @@ module TencentCloud
7799
8063
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7800
8064
  end
7801
8065
 
8066
+ # 本接口(ReplaceCcnRouteTableBroadcastPolicys)用于替换云联网路由表路由传播策略。
8067
+ # > 特别注意:是全量覆盖,非增量添加
8068
+
8069
+ # **路由条件支持以下四种:**
8070
+
8071
+ # - 实例类型: `instance-type`,可选值:私有网络 `VPC`、专线网关 `DIRECTCONNECT`、专线网关 `VPNGW`
8072
+ # - 实例ID: `instance-id`,例如:`dcg-8zljkrft`、`vpc-jdevjrup`,暂不支持 `Edge` 实例
8073
+ # - 实例地域: `instance-region`,例如:`ap-guangzhou`<br />产品支持的所有地域列表可通过接口 [DescribeRegions](https://cloud.tencent.com/document/product/1596/77930) 查询,其中参数 `Product` 设置为 `ccn`
8074
+ # - 路由前缀: `cidr-block`,例如:`10.1.0.0/16`
8075
+
8076
+
8077
+ # **传播条件支持以下三种:**
8078
+
8079
+ # - 实例类型: `instance-type`,格式同路由条件
8080
+ # - 实例ID: `instance-id`,格式同路由条件
8081
+ # - 实例地域: `instance-region`,格式同路由条件
8082
+
8083
+
8084
+ # **使用限制:**
8085
+ # - 一条策略内的单个条件类型,最大支持设置 `25` 个条件值
8086
+ # - 一张路由表,最大支持 `100` 条路由传播策略
8087
+ # - 路由条件类型中,只有 `cidr-block` 类型支持模糊匹配和精确匹配两种,其它类型只支持精确匹配一种模式
8088
+
8089
+ # @param request: Request instance for ReplaceCcnRouteTableBroadcastPolicys.
8090
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ReplaceCcnRouteTableBroadcastPolicysRequest`
8091
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ReplaceCcnRouteTableBroadcastPolicysResponse`
8092
+ def ReplaceCcnRouteTableBroadcastPolicys(request)
8093
+ body = send_request('ReplaceCcnRouteTableBroadcastPolicys', request.serialize)
8094
+ response = JSON.parse(body)
8095
+ if response['Response'].key?('Error') == false
8096
+ model = ReplaceCcnRouteTableBroadcastPolicysResponse.new
8097
+ model.deserialize(response['Response'])
8098
+ model
8099
+ else
8100
+ code = response['Response']['Error']['Code']
8101
+ message = response['Response']['Error']['Message']
8102
+ reqid = response['Response']['RequestId']
8103
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
8104
+ end
8105
+ rescue TencentCloud::Common::TencentCloudSDKException => e
8106
+ raise e
8107
+ rescue StandardError => e
8108
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
8109
+ end
8110
+
8111
+ # 本接口(ReplaceRouteTableInputPolicys)用于替换云联网路由表路由接收策略。
8112
+ # > 特别注意:是全量覆盖,非增量添加
8113
+
8114
+ # **路由条件支持以下四种:**
8115
+
8116
+ # - 实例类型: `instance-type`,可选值:私有网络 `VPC`、专线网关 `DIRECTCONNECT`、专线网关 `VPNGW`
8117
+ # - 实例ID: `instance-id`,例如:`dcg-8zljkrft`、`vpc-jdevjrup`,暂不支持 `Edge` 实例
8118
+ # - 实例地域: `instance-region`,例如:`ap-guangzhou`<br />产品支持的所有地域列表可通过接口 [DescribeRegions](https://cloud.tencent.com/document/product/1596/77930) 查询,其中参数 `Product` 设置为 `ccn`
8119
+ # - 路由前缀: `cidr-block`,例如:`10.1.0.0/16`
8120
+
8121
+
8122
+ # **使用限制:**
8123
+ # - 一条策略内的单个条件类型,最大支持设置 `25` 个条件值
8124
+ # - 一张路由表,最大支持 `100` 条路由接收策略
8125
+ # - 路由条件类型中,只有 `cidr-block` 类型支持模糊匹配和精确匹配两种,其它类型只支持精确匹配一种模式
8126
+
8127
+ # @param request: Request instance for ReplaceCcnRouteTableInputPolicys.
8128
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ReplaceCcnRouteTableInputPolicysRequest`
8129
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ReplaceCcnRouteTableInputPolicysResponse`
8130
+ def ReplaceCcnRouteTableInputPolicys(request)
8131
+ body = send_request('ReplaceCcnRouteTableInputPolicys', request.serialize)
8132
+ response = JSON.parse(body)
8133
+ if response['Response'].key?('Error') == false
8134
+ model = ReplaceCcnRouteTableInputPolicysResponse.new
8135
+ model.deserialize(response['Response'])
8136
+ model
8137
+ else
8138
+ code = response['Response']['Error']['Code']
8139
+ message = response['Response']['Error']['Message']
8140
+ reqid = response['Response']['RequestId']
8141
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
8142
+ end
8143
+ rescue TencentCloud::Common::TencentCloudSDKException => e
8144
+ raise e
8145
+ rescue StandardError => e
8146
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
8147
+ end
8148
+
7802
8149
  # 本接口(ReplaceDirectConnectGatewayCcnRoutes)根据路由ID(RouteId)修改指定的路由(Route),支持批量修改。
7803
8150
 
7804
8151
  # @param request: Request instance for ReplaceDirectConnectGatewayCcnRoutes.