tencentcloud-sdk-redis 1.0.301 → 1.0.302

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: 3f957893dd73e6c6865e33c707e30fa53b45297e
4
- data.tar.gz: 9cf28e3f99549f8abab90708298ba14cbc5a3910
3
+ metadata.gz: c4c9bba88035aee62855e46349e4eca4b72e8e72
4
+ data.tar.gz: 05bffd5aaf50a203f15febc5e10c5b50e29ce320
5
5
  SHA512:
6
- metadata.gz: ddb2e962cc0be225f715069b865164f84d13e4cc25203fe9c384e84e1126d23d632050bab99f0e93780e24f172ff900f8f1fd4567b33bc823c9584f38ec56c13
7
- data.tar.gz: 8516d0eb252cd80d105cc4f2a9a46ba503e2a97136e6a175cb160577e9d003f482f177f63b2cad7eec46f7cef12cabd389e552f4886a4dea27f872278530006c
6
+ metadata.gz: cac5fe422bd20f3f58de4bcf47209736cc50d7a8dbca7df3d014e783c2e81573e3536e1a5310e650fe0cbd3bb9b3a63535941da996851d18ae1f157fd9ccf39e
7
+ data.tar.gz: 3e3af142c48ecdfd4a4c968fc14c66bebdadd2b743765a4a43e16b0d5209be920a6474f02a57618dd4321490364b32fea5ee3a3789430799345b75aa43ac6b63
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.301
1
+ 1.0.302
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 开通外网
57
+
58
+ # @param request: Request instance for AllocateWanAddress.
59
+ # @type request: :class:`Tencentcloud::redis::V20180412::AllocateWanAddressRequest`
60
+ # @rtype: :class:`Tencentcloud::redis::V20180412::AllocateWanAddressResponse`
61
+ def AllocateWanAddress(request)
62
+ body = send_request('AllocateWanAddress', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = AllocateWanAddressResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 应用参数模板到实例
57
81
 
58
82
  # @param request: Request instance for ApplyParamsTemplate.
@@ -1661,6 +1685,30 @@ module TencentCloud
1661
1685
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1662
1686
  end
1663
1687
 
1688
+ # 关闭外网
1689
+
1690
+ # @param request: Request instance for ReleaseWanAddress.
1691
+ # @type request: :class:`Tencentcloud::redis::V20180412::ReleaseWanAddressRequest`
1692
+ # @rtype: :class:`Tencentcloud::redis::V20180412::ReleaseWanAddressResponse`
1693
+ def ReleaseWanAddress(request)
1694
+ body = send_request('ReleaseWanAddress', request.serialize)
1695
+ response = JSON.parse(body)
1696
+ if response['Response'].key?('Error') == false
1697
+ model = ReleaseWanAddressResponse.new
1698
+ model.deserialize(response['Response'])
1699
+ model
1700
+ else
1701
+ code = response['Response']['Error']['Code']
1702
+ message = response['Response']['Error']['Message']
1703
+ reqid = response['Response']['RequestId']
1704
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1705
+ end
1706
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1707
+ raise e
1708
+ rescue StandardError => e
1709
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1710
+ end
1711
+
1664
1712
  # 续费实例
1665
1713
 
1666
1714
  # @param request: Request instance for RenewInstance.
@@ -103,6 +103,46 @@ module TencentCloud
103
103
  end
104
104
  end
105
105
 
106
+ # AllocateWanAddress请求参数结构体
107
+ class AllocateWanAddressRequest < TencentCloud::Common::AbstractModel
108
+ # @param InstanceId: 实例ID
109
+ # @type InstanceId: String
110
+
111
+ attr_accessor :InstanceId
112
+
113
+ def initialize(instanceid=nil)
114
+ @InstanceId = instanceid
115
+ end
116
+
117
+ def deserialize(params)
118
+ @InstanceId = params['InstanceId']
119
+ end
120
+ end
121
+
122
+ # AllocateWanAddress返回参数结构体
123
+ class AllocateWanAddressResponse < TencentCloud::Common::AbstractModel
124
+ # @param FlowId: 异步流程ID
125
+ # @type FlowId: Integer
126
+ # @param WanStatus: 开通外网的状态
127
+ # @type WanStatus: String
128
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
129
+ # @type RequestId: String
130
+
131
+ attr_accessor :FlowId, :WanStatus, :RequestId
132
+
133
+ def initialize(flowid=nil, wanstatus=nil, requestid=nil)
134
+ @FlowId = flowid
135
+ @WanStatus = wanstatus
136
+ @RequestId = requestid
137
+ end
138
+
139
+ def deserialize(params)
140
+ @FlowId = params['FlowId']
141
+ @WanStatus = params['WanStatus']
142
+ @RequestId = params['RequestId']
143
+ end
144
+ end
145
+
106
146
  # ApplyParamsTemplate请求参数结构体
107
147
  class ApplyParamsTemplateRequest < TencentCloud::Common::AbstractModel
108
148
  # @param InstanceIds: 实例ID列表
@@ -5385,6 +5425,46 @@ module TencentCloud
5385
5425
  end
5386
5426
  end
5387
5427
 
5428
+ # ReleaseWanAddress请求参数结构体
5429
+ class ReleaseWanAddressRequest < TencentCloud::Common::AbstractModel
5430
+ # @param InstanceId: 实例ID
5431
+ # @type InstanceId: String
5432
+
5433
+ attr_accessor :InstanceId
5434
+
5435
+ def initialize(instanceid=nil)
5436
+ @InstanceId = instanceid
5437
+ end
5438
+
5439
+ def deserialize(params)
5440
+ @InstanceId = params['InstanceId']
5441
+ end
5442
+ end
5443
+
5444
+ # ReleaseWanAddress返回参数结构体
5445
+ class ReleaseWanAddressResponse < TencentCloud::Common::AbstractModel
5446
+ # @param FlowId: 异步流程ID
5447
+ # @type FlowId: Integer
5448
+ # @param WanStatus: 关闭外网的状态
5449
+ # @type WanStatus: String
5450
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5451
+ # @type RequestId: String
5452
+
5453
+ attr_accessor :FlowId, :WanStatus, :RequestId
5454
+
5455
+ def initialize(flowid=nil, wanstatus=nil, requestid=nil)
5456
+ @FlowId = flowid
5457
+ @WanStatus = wanstatus
5458
+ @RequestId = requestid
5459
+ end
5460
+
5461
+ def deserialize(params)
5462
+ @FlowId = params['FlowId']
5463
+ @WanStatus = params['WanStatus']
5464
+ @RequestId = params['RequestId']
5465
+ end
5466
+ end
5467
+
5388
5468
  # RenewInstance请求参数结构体
5389
5469
  class RenewInstanceRequest < TencentCloud::Common::AbstractModel
5390
5470
  # @param Period: 购买时长,单位:月
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.301
4
+ version: 1.0.302
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud