tencentcloud-sdk-privatedns 3.0.924 → 3.0.925
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201028/client.rb +24 -0
- data/lib/v20201028/models.rb +60 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab2c0b49872c2178c2541ed6d57162b9ac4bd63b
|
4
|
+
data.tar.gz: c6f86df977fa33c60f3d6036e7fdd6f2c25b0e6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e30993772247b0aadc3db66097345c4c20e98b6c612a2c51788db27a6a582c704850b87f9abb3fc0a90c6bb32e4b9fc146e828d7167f2ab427ad7a236dabd331
|
7
|
+
data.tar.gz: 38f50e6f323d8d3e3e0f274e9ca6370475f09daef3b3b65c9a76c21135b4a7541f57380b8b9862d23f8c3b3acb0fff8b48c746416748a6ce760a089a79390194
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.925
|
data/lib/v20201028/client.rb
CHANGED
@@ -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 CreateEndPoint.
|
59
|
+
# @type request: :class:`Tencentcloud::privatedns::V20201028::CreateEndPointRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::privatedns::V20201028::CreateEndPointResponse`
|
61
|
+
def CreateEndPoint(request)
|
62
|
+
body = send_request('CreateEndPoint', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateEndPointResponse.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 CreatePrivateDNSAccount.
|
data/lib/v20201028/models.rb
CHANGED
@@ -248,6 +248,66 @@ module TencentCloud
|
|
248
248
|
end
|
249
249
|
end
|
250
250
|
|
251
|
+
# CreateEndPoint请求参数结构体
|
252
|
+
class CreateEndPointRequest < TencentCloud::Common::AbstractModel
|
253
|
+
# @param EndPointName: 终端节点名称
|
254
|
+
# @type EndPointName: String
|
255
|
+
# @param EndPointServiceId: 终端节点服务ID(vpc终端节点服务ID)
|
256
|
+
# @type EndPointServiceId: String
|
257
|
+
# @param EndPointRegion: 终端节点地域,必须要和终端节点服务所属地域一致
|
258
|
+
# @type EndPointRegion: String
|
259
|
+
# @param IpNum: 终端节点ip数量
|
260
|
+
# @type IpNum: Integer
|
261
|
+
|
262
|
+
attr_accessor :EndPointName, :EndPointServiceId, :EndPointRegion, :IpNum
|
263
|
+
|
264
|
+
def initialize(endpointname=nil, endpointserviceid=nil, endpointregion=nil, ipnum=nil)
|
265
|
+
@EndPointName = endpointname
|
266
|
+
@EndPointServiceId = endpointserviceid
|
267
|
+
@EndPointRegion = endpointregion
|
268
|
+
@IpNum = ipnum
|
269
|
+
end
|
270
|
+
|
271
|
+
def deserialize(params)
|
272
|
+
@EndPointName = params['EndPointName']
|
273
|
+
@EndPointServiceId = params['EndPointServiceId']
|
274
|
+
@EndPointRegion = params['EndPointRegion']
|
275
|
+
@IpNum = params['IpNum']
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# CreateEndPoint返回参数结构体
|
280
|
+
class CreateEndPointResponse < TencentCloud::Common::AbstractModel
|
281
|
+
# @param EndPointId: 终端节点id
|
282
|
+
# @type EndPointId: String
|
283
|
+
# @param EndPointName: 终端节点名称
|
284
|
+
# @type EndPointName: String
|
285
|
+
# @param EndPointServiceId: 终端节点服务ID
|
286
|
+
# @type EndPointServiceId: String
|
287
|
+
# @param EndPointVipSet: 终端节点的IP列表
|
288
|
+
# @type EndPointVipSet: Array
|
289
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
290
|
+
# @type RequestId: String
|
291
|
+
|
292
|
+
attr_accessor :EndPointId, :EndPointName, :EndPointServiceId, :EndPointVipSet, :RequestId
|
293
|
+
|
294
|
+
def initialize(endpointid=nil, endpointname=nil, endpointserviceid=nil, endpointvipset=nil, requestid=nil)
|
295
|
+
@EndPointId = endpointid
|
296
|
+
@EndPointName = endpointname
|
297
|
+
@EndPointServiceId = endpointserviceid
|
298
|
+
@EndPointVipSet = endpointvipset
|
299
|
+
@RequestId = requestid
|
300
|
+
end
|
301
|
+
|
302
|
+
def deserialize(params)
|
303
|
+
@EndPointId = params['EndPointId']
|
304
|
+
@EndPointName = params['EndPointName']
|
305
|
+
@EndPointServiceId = params['EndPointServiceId']
|
306
|
+
@EndPointVipSet = params['EndPointVipSet']
|
307
|
+
@RequestId = params['RequestId']
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
251
311
|
# CreatePrivateDNSAccount请求参数结构体
|
252
312
|
class CreatePrivateDNSAccountRequest < TencentCloud::Common::AbstractModel
|
253
313
|
# @param Account: 私有域解析账号
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-privatedns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.925
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|