tencentcloud-sdk-dasb 3.0.903 → 3.0.905
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/v20191018/client.rb +24 -0
- data/lib/v20191018/models.rb +121 -4
- 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: bcc1f46c50bd8cacbe7c599d6827f7b599c9c03e
|
4
|
+
data.tar.gz: 41d96d88933240f01adfb6ff325621df000dc929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7e11a25b64e9543f2a6afc057e3f5831bc98d556f95c68149a2010b17a4714d81f9e27adc6ab30e79bf06dca1580625f62048cc1d585230eadf90b910365c2f
|
7
|
+
data.tar.gz: 0ad33b76262bd42f2e53dff49db1da54d0aa69ca46d247c05cd0dd389764e9112d5de1cef953f51541a2a292bacff47a25262d6c51a3d9c91496a8864ffe7915
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.905
|
data/lib/v20191018/client.rb
CHANGED
@@ -869,6 +869,30 @@ module TencentCloud
|
|
869
869
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
870
|
end
|
871
871
|
|
872
|
+
# 查询网络域
|
873
|
+
|
874
|
+
# @param request: Request instance for DescribeDomains.
|
875
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DescribeDomainsRequest`
|
876
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DescribeDomainsResponse`
|
877
|
+
def DescribeDomains(request)
|
878
|
+
body = send_request('DescribeDomains', request.serialize)
|
879
|
+
response = JSON.parse(body)
|
880
|
+
if response['Response'].key?('Error') == false
|
881
|
+
model = DescribeDomainsResponse.new
|
882
|
+
model.deserialize(response['Response'])
|
883
|
+
model
|
884
|
+
else
|
885
|
+
code = response['Response']['Error']['Code']
|
886
|
+
message = response['Response']['Error']['Message']
|
887
|
+
reqid = response['Response']['RequestId']
|
888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
+
end
|
890
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
+
raise e
|
892
|
+
rescue StandardError => e
|
893
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
+
end
|
895
|
+
|
872
896
|
# 查询登录日志
|
873
897
|
|
874
898
|
# @param request: Request instance for DescribeLoginEvent.
|
data/lib/v20191018/models.rb
CHANGED
@@ -744,8 +744,8 @@ module TencentCloud
|
|
744
744
|
|
745
745
|
attr_accessor :Cmd, :Time, :TimeOffset, :Action, :Sid, :UserName, :Account, :InstanceId, :FromIp, :SessionTime, :SessTime, :ConfirmTime, :UserDepartmentId, :UserDepartmentName, :DeviceDepartmentId, :DeviceDepartmentName, :Size
|
746
746
|
extend Gem::Deprecate
|
747
|
-
deprecate :SessTime, :none, 2024,
|
748
|
-
deprecate :SessTime=, :none, 2024,
|
747
|
+
deprecate :SessTime, :none, 2024, 9
|
748
|
+
deprecate :SessTime=, :none, 2024, 9
|
749
749
|
|
750
750
|
def initialize(cmd=nil, time=nil, timeoffset=nil, action=nil, sid=nil, username=nil, account=nil, instanceid=nil, fromip=nil, sessiontime=nil, sesstime=nil, confirmtime=nil, userdepartmentid=nil, userdepartmentname=nil, devicedepartmentid=nil, devicedepartmentname=nil, size=nil)
|
751
751
|
@Cmd = cmd
|
@@ -2516,6 +2516,68 @@ module TencentCloud
|
|
2516
2516
|
end
|
2517
2517
|
end
|
2518
2518
|
|
2519
|
+
# DescribeDomains请求参数结构体
|
2520
|
+
class DescribeDomainsRequest < TencentCloud::Common::AbstractModel
|
2521
|
+
# @param Limit: 每页条目数量,默认20,最大500
|
2522
|
+
# @type Limit: Integer
|
2523
|
+
# @param Filters: 过滤数组
|
2524
|
+
# @type Filters: Array
|
2525
|
+
# @param Offset: 分页偏移位置,默认值为0
|
2526
|
+
# @type Offset: Integer
|
2527
|
+
|
2528
|
+
attr_accessor :Limit, :Filters, :Offset
|
2529
|
+
|
2530
|
+
def initialize(limit=nil, filters=nil, offset=nil)
|
2531
|
+
@Limit = limit
|
2532
|
+
@Filters = filters
|
2533
|
+
@Offset = offset
|
2534
|
+
end
|
2535
|
+
|
2536
|
+
def deserialize(params)
|
2537
|
+
@Limit = params['Limit']
|
2538
|
+
unless params['Filters'].nil?
|
2539
|
+
@Filters = []
|
2540
|
+
params['Filters'].each do |i|
|
2541
|
+
filter_tmp = Filter.new
|
2542
|
+
filter_tmp.deserialize(i)
|
2543
|
+
@Filters << filter_tmp
|
2544
|
+
end
|
2545
|
+
end
|
2546
|
+
@Offset = params['Offset']
|
2547
|
+
end
|
2548
|
+
end
|
2549
|
+
|
2550
|
+
# DescribeDomains返回参数结构体
|
2551
|
+
class DescribeDomainsResponse < TencentCloud::Common::AbstractModel
|
2552
|
+
# @param TotalCount: 网络域总数
|
2553
|
+
# @type TotalCount: Integer
|
2554
|
+
# @param DomainSet: 网络域列表
|
2555
|
+
# @type DomainSet: Array
|
2556
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2557
|
+
# @type RequestId: String
|
2558
|
+
|
2559
|
+
attr_accessor :TotalCount, :DomainSet, :RequestId
|
2560
|
+
|
2561
|
+
def initialize(totalcount=nil, domainset=nil, requestid=nil)
|
2562
|
+
@TotalCount = totalcount
|
2563
|
+
@DomainSet = domainset
|
2564
|
+
@RequestId = requestid
|
2565
|
+
end
|
2566
|
+
|
2567
|
+
def deserialize(params)
|
2568
|
+
@TotalCount = params['TotalCount']
|
2569
|
+
unless params['DomainSet'].nil?
|
2570
|
+
@DomainSet = []
|
2571
|
+
params['DomainSet'].each do |i|
|
2572
|
+
domain_tmp = Domain.new
|
2573
|
+
domain_tmp.deserialize(i)
|
2574
|
+
@DomainSet << domain_tmp
|
2575
|
+
end
|
2576
|
+
end
|
2577
|
+
@RequestId = params['RequestId']
|
2578
|
+
end
|
2579
|
+
end
|
2580
|
+
|
2519
2581
|
# DescribeLoginEvent请求参数结构体
|
2520
2582
|
class DescribeLoginEventRequest < TencentCloud::Common::AbstractModel
|
2521
2583
|
# @param UserName: 用户名,如果不包含其他条件时对user_name or real_name两个字段模糊查询
|
@@ -3097,6 +3159,61 @@ module TencentCloud
|
|
3097
3159
|
end
|
3098
3160
|
end
|
3099
3161
|
|
3162
|
+
# 网络域
|
3163
|
+
class Domain < TencentCloud::Common::AbstractModel
|
3164
|
+
# @param Id: 自增id
|
3165
|
+
# @type Id: Integer
|
3166
|
+
# @param DomainId: 网络域id
|
3167
|
+
# @type DomainId: String
|
3168
|
+
# @param DomainName: 网络域名称
|
3169
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3170
|
+
# @type DomainName: String
|
3171
|
+
# @param ResourceId: 堡垒机id
|
3172
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3173
|
+
# @type ResourceId: String
|
3174
|
+
# @param WhiteIpSet: ip,网段
|
3175
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3176
|
+
# @type WhiteIpSet: Array
|
3177
|
+
# @param Enabled: 是否启用 默认 1启用 0禁用
|
3178
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3179
|
+
# @type Enabled: Integer
|
3180
|
+
# @param Status: 状态 0-已断开 1-已连接
|
3181
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3182
|
+
# @type Status: Integer
|
3183
|
+
# @param CreateTime: 网络域创建时间
|
3184
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3185
|
+
# @type CreateTime: String
|
3186
|
+
# @param Default: 是否资源默认网络域 1-资源默认网络域 0-用户添加网络域
|
3187
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3188
|
+
# @type Default: Integer
|
3189
|
+
|
3190
|
+
attr_accessor :Id, :DomainId, :DomainName, :ResourceId, :WhiteIpSet, :Enabled, :Status, :CreateTime, :Default
|
3191
|
+
|
3192
|
+
def initialize(id=nil, domainid=nil, domainname=nil, resourceid=nil, whiteipset=nil, enabled=nil, status=nil, createtime=nil, default=nil)
|
3193
|
+
@Id = id
|
3194
|
+
@DomainId = domainid
|
3195
|
+
@DomainName = domainname
|
3196
|
+
@ResourceId = resourceid
|
3197
|
+
@WhiteIpSet = whiteipset
|
3198
|
+
@Enabled = enabled
|
3199
|
+
@Status = status
|
3200
|
+
@CreateTime = createtime
|
3201
|
+
@Default = default
|
3202
|
+
end
|
3203
|
+
|
3204
|
+
def deserialize(params)
|
3205
|
+
@Id = params['Id']
|
3206
|
+
@DomainId = params['DomainId']
|
3207
|
+
@DomainName = params['DomainName']
|
3208
|
+
@ResourceId = params['ResourceId']
|
3209
|
+
@WhiteIpSet = params['WhiteIpSet']
|
3210
|
+
@Enabled = params['Enabled']
|
3211
|
+
@Status = params['Status']
|
3212
|
+
@CreateTime = params['CreateTime']
|
3213
|
+
@Default = params['Default']
|
3214
|
+
end
|
3215
|
+
end
|
3216
|
+
|
3100
3217
|
# 主机参数,导入外部主机时使用
|
3101
3218
|
class ExternalDevice < TencentCloud::Common::AbstractModel
|
3102
3219
|
# @param OsName: 操作系统名称,只能是Linux、Windows或MySQL
|
@@ -4528,8 +4645,8 @@ module TencentCloud
|
|
4528
4645
|
|
4529
4646
|
attr_accessor :Time, :UserName, :RealName, :InstanceId, :DeviceName, :PublicIp, :PrivateIp, :Cmd, :Action, :Sid, :TimeOffset, :Account, :FromIp, :SessionTime, :SessTime, :ConfirmTime, :UserDepartmentId, :UserDepartmentName, :DeviceDepartmentId, :DeviceDepartmentName, :Size
|
4530
4647
|
extend Gem::Deprecate
|
4531
|
-
deprecate :SessTime, :none, 2024,
|
4532
|
-
deprecate :SessTime=, :none, 2024,
|
4648
|
+
deprecate :SessTime, :none, 2024, 9
|
4649
|
+
deprecate :SessTime=, :none, 2024, 9
|
4533
4650
|
|
4534
4651
|
def initialize(time=nil, username=nil, realname=nil, instanceid=nil, devicename=nil, publicip=nil, privateip=nil, cmd=nil, action=nil, sid=nil, timeoffset=nil, account=nil, fromip=nil, sessiontime=nil, sesstime=nil, confirmtime=nil, userdepartmentid=nil, userdepartmentname=nil, devicedepartmentid=nil, devicedepartmentname=nil, size=nil)
|
4535
4652
|
@Time = time
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dasb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.905
|
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-09-
|
11
|
+
date: 2024-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|