tencentcloud-sdk-privatedns 3.0.1073 → 3.0.1074
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201028/client.rb +24 -0
- data/lib/v20201028/models.rb +103 -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: b79289d7a2bfe337e99d9b7bd8823cd433ebde50
|
4
|
+
data.tar.gz: 9d7b3794dbb00b463cc0d15479985a8edb40f195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98d880f0ba516a614a4b7d91c36cebec2c29b36ae573a5942ea2fa742dd39ccbcbe3397a7e0aaaee593abdfd1377fd79d7cef91208f64a3ac4f56a338444cc1e
|
7
|
+
data.tar.gz: a105c0c8917e7d8da39dcbb0fc17cf81f667ac89a257905c222f60a5082eeac65da7d66748f8fff9749c24fc74c127205b193f0eb95b338dfce9c4ff5ec6e8ba
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1074
|
data/lib/v20201028/client.rb
CHANGED
@@ -437,6 +437,30 @@ module TencentCloud
|
|
437
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
438
|
end
|
439
439
|
|
440
|
+
# 获取私有域记录
|
441
|
+
|
442
|
+
# @param request: Request instance for DescribeRecord.
|
443
|
+
# @type request: :class:`Tencentcloud::privatedns::V20201028::DescribeRecordRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::privatedns::V20201028::DescribeRecordResponse`
|
445
|
+
def DescribeRecord(request)
|
446
|
+
body = send_request('DescribeRecord', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = DescribeRecordResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
440
464
|
# 获取私有域解析请求量
|
441
465
|
|
442
466
|
# @param request: Request instance for DescribeRequestData.
|
data/lib/v20201028/models.rb
CHANGED
@@ -1137,6 +1137,49 @@ module TencentCloud
|
|
1137
1137
|
end
|
1138
1138
|
end
|
1139
1139
|
|
1140
|
+
# DescribeRecord请求参数结构体
|
1141
|
+
class DescribeRecordRequest < TencentCloud::Common::AbstractModel
|
1142
|
+
# @param ZoneId: 私有域ID
|
1143
|
+
# @type ZoneId: String
|
1144
|
+
# @param RecordId: 记录ID
|
1145
|
+
# @type RecordId: String
|
1146
|
+
|
1147
|
+
attr_accessor :ZoneId, :RecordId
|
1148
|
+
|
1149
|
+
def initialize(zoneid=nil, recordid=nil)
|
1150
|
+
@ZoneId = zoneid
|
1151
|
+
@RecordId = recordid
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
def deserialize(params)
|
1155
|
+
@ZoneId = params['ZoneId']
|
1156
|
+
@RecordId = params['RecordId']
|
1157
|
+
end
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
# DescribeRecord返回参数结构体
|
1161
|
+
class DescribeRecordResponse < TencentCloud::Common::AbstractModel
|
1162
|
+
# @param RecordInfo: 记录信息
|
1163
|
+
# @type RecordInfo: :class:`Tencentcloud::Privatedns.v20201028.models.RecordInfo`
|
1164
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1165
|
+
# @type RequestId: String
|
1166
|
+
|
1167
|
+
attr_accessor :RecordInfo, :RequestId
|
1168
|
+
|
1169
|
+
def initialize(recordinfo=nil, requestid=nil)
|
1170
|
+
@RecordInfo = recordinfo
|
1171
|
+
@RequestId = requestid
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
def deserialize(params)
|
1175
|
+
unless params['RecordInfo'].nil?
|
1176
|
+
@RecordInfo = RecordInfo.new
|
1177
|
+
@RecordInfo.deserialize(params['RecordInfo'])
|
1178
|
+
end
|
1179
|
+
@RequestId = params['RequestId']
|
1180
|
+
end
|
1181
|
+
end
|
1182
|
+
|
1140
1183
|
# DescribeRequestData请求参数结构体
|
1141
1184
|
class DescribeRequestDataRequest < TencentCloud::Common::AbstractModel
|
1142
1185
|
# @param TimeRangeBegin: 请求量统计起始时间,格式:2020-11-22 00:00:00
|
@@ -1780,6 +1823,66 @@ module TencentCloud
|
|
1780
1823
|
end
|
1781
1824
|
end
|
1782
1825
|
|
1826
|
+
# 私有域信息
|
1827
|
+
class RecordInfo < TencentCloud::Common::AbstractModel
|
1828
|
+
# @param RecordId: 记录id
|
1829
|
+
# @type RecordId: String
|
1830
|
+
# @param ZoneId: 私有域id: zone-xxxxxxxx
|
1831
|
+
# @type ZoneId: String
|
1832
|
+
# @param SubDomain: 子域名
|
1833
|
+
# @type SubDomain: String
|
1834
|
+
# @param RecordType: 记录类型,可选的记录类型为:"A", "AAAA", "CNAME", "MX", "TXT", "PTR"
|
1835
|
+
# @type RecordType: String
|
1836
|
+
# @param RecordValue: 记录值
|
1837
|
+
# @type RecordValue: String
|
1838
|
+
# @param TTL: 记录缓存时间,数值越小生效越快,取值1-86400s, 默认 600
|
1839
|
+
# @type TTL: Integer
|
1840
|
+
# @param MX: MX优先级:记录类型为MX时必填。取值范围:5,10,15,20,30,40,50
|
1841
|
+
# @type MX: Integer
|
1842
|
+
# @param Weight: 记录权重,值为1-100
|
1843
|
+
# @type Weight: Integer
|
1844
|
+
# @param CreatedOn: 记录创建时间
|
1845
|
+
# @type CreatedOn: String
|
1846
|
+
# @param UpdatedOn: 记录更新时间
|
1847
|
+
# @type UpdatedOn: String
|
1848
|
+
# @param Enabled: 0暂停,1启用
|
1849
|
+
# @type Enabled: Integer
|
1850
|
+
# @param Remark: 备注
|
1851
|
+
# @type Remark: String
|
1852
|
+
|
1853
|
+
attr_accessor :RecordId, :ZoneId, :SubDomain, :RecordType, :RecordValue, :TTL, :MX, :Weight, :CreatedOn, :UpdatedOn, :Enabled, :Remark
|
1854
|
+
|
1855
|
+
def initialize(recordid=nil, zoneid=nil, subdomain=nil, recordtype=nil, recordvalue=nil, ttl=nil, mx=nil, weight=nil, createdon=nil, updatedon=nil, enabled=nil, remark=nil)
|
1856
|
+
@RecordId = recordid
|
1857
|
+
@ZoneId = zoneid
|
1858
|
+
@SubDomain = subdomain
|
1859
|
+
@RecordType = recordtype
|
1860
|
+
@RecordValue = recordvalue
|
1861
|
+
@TTL = ttl
|
1862
|
+
@MX = mx
|
1863
|
+
@Weight = weight
|
1864
|
+
@CreatedOn = createdon
|
1865
|
+
@UpdatedOn = updatedon
|
1866
|
+
@Enabled = enabled
|
1867
|
+
@Remark = remark
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
def deserialize(params)
|
1871
|
+
@RecordId = params['RecordId']
|
1872
|
+
@ZoneId = params['ZoneId']
|
1873
|
+
@SubDomain = params['SubDomain']
|
1874
|
+
@RecordType = params['RecordType']
|
1875
|
+
@RecordValue = params['RecordValue']
|
1876
|
+
@TTL = params['TTL']
|
1877
|
+
@MX = params['MX']
|
1878
|
+
@Weight = params['Weight']
|
1879
|
+
@CreatedOn = params['CreatedOn']
|
1880
|
+
@UpdatedOn = params['UpdatedOn']
|
1881
|
+
@Enabled = params['Enabled']
|
1882
|
+
@Remark = params['Remark']
|
1883
|
+
end
|
1884
|
+
end
|
1885
|
+
|
1783
1886
|
# SubscribePrivateZoneService请求参数结构体
|
1784
1887
|
class SubscribePrivateZoneServiceRequest < TencentCloud::Common::AbstractModel
|
1785
1888
|
|
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.1074
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|