tencentcloud-sdk-teo 1.0.305 → 1.0.306

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: 763dae1a167053bfbf6418fb70bcd1acf82c6b21
4
- data.tar.gz: 7e01d81651e829eb72208c0c4fc4542c8afa9d6b
3
+ metadata.gz: 1a120f2780dd0062520e9e7db7bc2ff410f40845
4
+ data.tar.gz: 8dfab83b144c79491866282723feb449e0e8d710
5
5
  SHA512:
6
- metadata.gz: f0656a74042eb96f7b0f25101d889aec13bf5d6caae624e854ac4aba509fff4e36685ef1067faa2fad48a21256fdce0384682e1ed783dba416156662a03ac4f4
7
- data.tar.gz: e2f0b631191592cd3599f59d21358c674dc9d34b193c88138b9d5665d8cdbe19be2603e363ef42709ab637e617b1150a59b4a9593e8dcab9621f7746dcd69013
6
+ metadata.gz: 4d3fd436a4a6677386f53e99a912df82b75d2fc668e00338897bedadcef401d05e734a5f77ef854512356a83f1252208f3526bba8d3f115a5a6f8c84b17aa6c3
7
+ data.tar.gz: dcc1ec330124bbccf8e004f0aaa729527e1751cc512cb08dc6067763e2738320583d8f86b819962212bcf9a4395b105f49dd377021909036b38089753a9544c4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.305
1
+ 1.0.306
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 用户查询用户站点信息列表,支持分页
81
+
82
+ # @param request: Request instance for DescribeZones.
83
+ # @type request: :class:`Tencentcloud::teo::V20220106::DescribeZonesRequest`
84
+ # @rtype: :class:`Tencentcloud::teo::V20220106::DescribeZonesResponse`
85
+ def DescribeZones(request)
86
+ body = send_request('DescribeZones', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeZonesResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
 
81
105
  end
82
106
  end
@@ -166,6 +166,69 @@ module TencentCloud
166
166
  end
167
167
  end
168
168
 
169
+ # DescribeZones请求参数结构体
170
+ class DescribeZonesRequest < TencentCloud::Common::AbstractModel
171
+ # @param Offset: 分页参数,页偏移
172
+ # @type Offset: Integer
173
+ # @param Limit: 分页参数,每页返回的站点个数
174
+ # @type Limit: Integer
175
+ # @param Filters: 查询条件过滤器,复杂类型
176
+ # @type Filters: Array
177
+
178
+ attr_accessor :Offset, :Limit, :Filters
179
+
180
+ def initialize(offset=nil, limit=nil, filters=nil)
181
+ @Offset = offset
182
+ @Limit = limit
183
+ @Filters = filters
184
+ end
185
+
186
+ def deserialize(params)
187
+ @Offset = params['Offset']
188
+ @Limit = params['Limit']
189
+ unless params['Filters'].nil?
190
+ @Filters = []
191
+ params['Filters'].each do |i|
192
+ zonefilter_tmp = ZoneFilter.new
193
+ zonefilter_tmp.deserialize(i)
194
+ @Filters << zonefilter_tmp
195
+ end
196
+ end
197
+ end
198
+ end
199
+
200
+ # DescribeZones返回参数结构体
201
+ class DescribeZonesResponse < TencentCloud::Common::AbstractModel
202
+ # @param TotalCount: 符合条件的站点数
203
+ # @type TotalCount: Integer
204
+ # @param Zones: 站点详细信息列表
205
+ # 注意:此字段可能返回 null,表示取不到有效值。
206
+ # @type Zones: Array
207
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
208
+ # @type RequestId: String
209
+
210
+ attr_accessor :TotalCount, :Zones, :RequestId
211
+
212
+ def initialize(totalcount=nil, zones=nil, requestid=nil)
213
+ @TotalCount = totalcount
214
+ @Zones = zones
215
+ @RequestId = requestid
216
+ end
217
+
218
+ def deserialize(params)
219
+ @TotalCount = params['TotalCount']
220
+ unless params['Zones'].nil?
221
+ @Zones = []
222
+ params['Zones'].each do |i|
223
+ zone_tmp = Zone.new
224
+ zone_tmp.deserialize(i)
225
+ @Zones << zone_tmp
226
+ end
227
+ end
228
+ @RequestId = params['RequestId']
229
+ end
230
+ end
231
+
169
232
  # 失败原因
170
233
  class FailReason < TencentCloud::Common::AbstractModel
171
234
  # @param Reason: 失败原因
@@ -222,6 +285,86 @@ module TencentCloud
222
285
  end
223
286
  end
224
287
 
288
+ # 站点信息
289
+ class Zone < TencentCloud::Common::AbstractModel
290
+ # @param Id: 站点ID
291
+ # @type Id: String
292
+ # @param Name: 站点名称
293
+ # @type Name: String
294
+ # @param OriginalNameServers: 站点当前使用的 NS 列表
295
+ # @type OriginalNameServers: Array
296
+ # @param NameServers: 腾讯云分配的 NS 列表
297
+ # @type NameServers: Array
298
+ # @param Status: 站点状态
299
+ # - active:NS 已切换
300
+ # - pending:NS 未切换
301
+ # - moved:NS 已切走
302
+ # - deactivated:被封禁
303
+ # @type Status: String
304
+ # @param Type: 站点接入方式
305
+ # - full:NS 接入
306
+ # - partial:CNAME 接入
307
+ # @type Type: String
308
+ # @param Paused: 站点是否关闭
309
+ # @type Paused: Boolean
310
+ # @param CreatedOn: 站点创建时间
311
+ # @type CreatedOn: String
312
+ # @param ModifiedOn: 站点修改时间
313
+ # @type ModifiedOn: String
314
+
315
+ attr_accessor :Id, :Name, :OriginalNameServers, :NameServers, :Status, :Type, :Paused, :CreatedOn, :ModifiedOn
316
+
317
+ def initialize(id=nil, name=nil, originalnameservers=nil, nameservers=nil, status=nil, type=nil, paused=nil, createdon=nil, modifiedon=nil)
318
+ @Id = id
319
+ @Name = name
320
+ @OriginalNameServers = originalnameservers
321
+ @NameServers = nameservers
322
+ @Status = status
323
+ @Type = type
324
+ @Paused = paused
325
+ @CreatedOn = createdon
326
+ @ModifiedOn = modifiedon
327
+ end
328
+
329
+ def deserialize(params)
330
+ @Id = params['Id']
331
+ @Name = params['Name']
332
+ @OriginalNameServers = params['OriginalNameServers']
333
+ @NameServers = params['NameServers']
334
+ @Status = params['Status']
335
+ @Type = params['Type']
336
+ @Paused = params['Paused']
337
+ @CreatedOn = params['CreatedOn']
338
+ @ModifiedOn = params['ModifiedOn']
339
+ end
340
+ end
341
+
342
+ # 站点查询过滤条件
343
+ class ZoneFilter < TencentCloud::Common::AbstractModel
344
+ # @param Name: 过滤字段名,支持的列表如下:
345
+ # - name: 站点名。
346
+ # - status: 站点状态
347
+ # @type Name: String
348
+ # @param Values: 过滤字段值
349
+ # @type Values: Array
350
+ # @param Fuzzy: 是否启用模糊查询,仅支持过滤字段名为name。模糊查询时,Values长度最大为1
351
+ # @type Fuzzy: Boolean
352
+
353
+ attr_accessor :Name, :Values, :Fuzzy
354
+
355
+ def initialize(name=nil, values=nil, fuzzy=nil)
356
+ @Name = name
357
+ @Values = values
358
+ @Fuzzy = fuzzy
359
+ end
360
+
361
+ def deserialize(params)
362
+ @Name = params['Name']
363
+ @Values = params['Values']
364
+ @Fuzzy = params['Fuzzy']
365
+ end
366
+ end
367
+
225
368
  end
226
369
  end
227
370
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.305
4
+ version: 1.0.306
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-28 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common