tencentcloud-sdk-dasb 3.0.673 → 3.0.675
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 +48 -0
- data/lib/v20191018/models.rb +132 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c337a0a56676d40dcd9c5f606d32a19e742a85a
|
4
|
+
data.tar.gz: 5f32dff7afe0bbad2cce2367786d445079a237ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81ae3e1a35a896a5734b33ffc0919a285459fa296bcee45a91d834385b8dc0da46f1b19eff3cbdace06acc319f2a632f060c217318f906ead1ad41e340af2dfc
|
7
|
+
data.tar.gz: 2565a0e890c7da68a7e4e8e26891e9b9ef97e580712cb126713646b8864e05efe4236fdf05e26e7a3284f61586fa6b193496b5cf365671c13d225624e6664901
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.675
|
data/lib/v20191018/client.rb
CHANGED
@@ -269,6 +269,30 @@ module TencentCloud
|
|
269
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
270
|
end
|
271
271
|
|
272
|
+
# 创建堡垒机实例
|
273
|
+
|
274
|
+
# @param request: Request instance for CreateResource.
|
275
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::CreateResourceRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::CreateResourceResponse`
|
277
|
+
def CreateResource(request)
|
278
|
+
body = send_request('CreateResource', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = CreateResourceResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
272
296
|
# 新建用户
|
273
297
|
|
274
298
|
# @param request: Request instance for CreateUser.
|
@@ -1013,6 +1037,30 @@ module TencentCloud
|
|
1013
1037
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
1038
|
end
|
1015
1039
|
|
1040
|
+
# 资源变配
|
1041
|
+
|
1042
|
+
# @param request: Request instance for ModifyResource.
|
1043
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::ModifyResourceRequest`
|
1044
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::ModifyResourceResponse`
|
1045
|
+
def ModifyResource(request)
|
1046
|
+
body = send_request('ModifyResource', request.serialize)
|
1047
|
+
response = JSON.parse(body)
|
1048
|
+
if response['Response'].key?('Error') == false
|
1049
|
+
model = ModifyResourceResponse.new
|
1050
|
+
model.deserialize(response['Response'])
|
1051
|
+
model
|
1052
|
+
else
|
1053
|
+
code = response['Response']['Error']['Code']
|
1054
|
+
message = response['Response']['Error']['Message']
|
1055
|
+
reqid = response['Response']['RequestId']
|
1056
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1057
|
+
end
|
1058
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1059
|
+
raise e
|
1060
|
+
rescue StandardError => e
|
1061
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
|
+
end
|
1063
|
+
|
1016
1064
|
# 修改用户信息
|
1017
1065
|
|
1018
1066
|
# @param request: Request instance for ModifyUser.
|
data/lib/v20191018/models.rb
CHANGED
@@ -893,6 +893,74 @@ module TencentCloud
|
|
893
893
|
end
|
894
894
|
end
|
895
895
|
|
896
|
+
# CreateResource请求参数结构体
|
897
|
+
class CreateResourceRequest < TencentCloud::Common::AbstractModel
|
898
|
+
# @param DeployRegion: 部署region
|
899
|
+
# @type DeployRegion: String
|
900
|
+
# @param VpcId: 部署堡垒机的VpcId
|
901
|
+
# @type VpcId: String
|
902
|
+
# @param SubnetId: 部署堡垒机的SubnetId
|
903
|
+
# @type SubnetId: String
|
904
|
+
# @param ResourceEdition: 资源类型。取值:standard/pro
|
905
|
+
# @type ResourceEdition: String
|
906
|
+
# @param ResourceNode: 资源节点数
|
907
|
+
# @type ResourceNode: Integer
|
908
|
+
# @param TimeUnit: 计费周期
|
909
|
+
# @type TimeUnit: String
|
910
|
+
# @param TimeSpan: 计费时长
|
911
|
+
# @type TimeSpan: Integer
|
912
|
+
# @param PayMode: 计费模式 1预付费
|
913
|
+
# @type PayMode: Integer
|
914
|
+
# @param AutoRenewFlag: 自动续费
|
915
|
+
# @type AutoRenewFlag: Integer
|
916
|
+
# @param DeployZone: 部署zone
|
917
|
+
# @type DeployZone: String
|
918
|
+
|
919
|
+
attr_accessor :DeployRegion, :VpcId, :SubnetId, :ResourceEdition, :ResourceNode, :TimeUnit, :TimeSpan, :PayMode, :AutoRenewFlag, :DeployZone
|
920
|
+
|
921
|
+
def initialize(deployregion=nil, vpcid=nil, subnetid=nil, resourceedition=nil, resourcenode=nil, timeunit=nil, timespan=nil, paymode=nil, autorenewflag=nil, deployzone=nil)
|
922
|
+
@DeployRegion = deployregion
|
923
|
+
@VpcId = vpcid
|
924
|
+
@SubnetId = subnetid
|
925
|
+
@ResourceEdition = resourceedition
|
926
|
+
@ResourceNode = resourcenode
|
927
|
+
@TimeUnit = timeunit
|
928
|
+
@TimeSpan = timespan
|
929
|
+
@PayMode = paymode
|
930
|
+
@AutoRenewFlag = autorenewflag
|
931
|
+
@DeployZone = deployzone
|
932
|
+
end
|
933
|
+
|
934
|
+
def deserialize(params)
|
935
|
+
@DeployRegion = params['DeployRegion']
|
936
|
+
@VpcId = params['VpcId']
|
937
|
+
@SubnetId = params['SubnetId']
|
938
|
+
@ResourceEdition = params['ResourceEdition']
|
939
|
+
@ResourceNode = params['ResourceNode']
|
940
|
+
@TimeUnit = params['TimeUnit']
|
941
|
+
@TimeSpan = params['TimeSpan']
|
942
|
+
@PayMode = params['PayMode']
|
943
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
944
|
+
@DeployZone = params['DeployZone']
|
945
|
+
end
|
946
|
+
end
|
947
|
+
|
948
|
+
# CreateResource返回参数结构体
|
949
|
+
class CreateResourceResponse < TencentCloud::Common::AbstractModel
|
950
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
951
|
+
# @type RequestId: String
|
952
|
+
|
953
|
+
attr_accessor :RequestId
|
954
|
+
|
955
|
+
def initialize(requestid=nil)
|
956
|
+
@RequestId = requestid
|
957
|
+
end
|
958
|
+
|
959
|
+
def deserialize(params)
|
960
|
+
@RequestId = params['RequestId']
|
961
|
+
end
|
962
|
+
end
|
963
|
+
|
896
964
|
# CreateUserGroup请求参数结构体
|
897
965
|
class CreateUserGroupRequest < TencentCloud::Common::AbstractModel
|
898
966
|
# @param Name: 用户组名,最大长度32字符
|
@@ -2955,6 +3023,70 @@ module TencentCloud
|
|
2955
3023
|
end
|
2956
3024
|
end
|
2957
3025
|
|
3026
|
+
# ModifyResource请求参数结构体
|
3027
|
+
class ModifyResourceRequest < TencentCloud::Common::AbstractModel
|
3028
|
+
# @param ResourceId: 需要开通服务的资源ID
|
3029
|
+
# @type ResourceId: String
|
3030
|
+
# @param Status: 已废弃
|
3031
|
+
# @type Status: String
|
3032
|
+
# @param ModuleSet: 已废弃
|
3033
|
+
# @type ModuleSet: Array
|
3034
|
+
# @param ResourceEdition: 实例版本
|
3035
|
+
# @type ResourceEdition: String
|
3036
|
+
# @param ResourceNode: 资源节点数
|
3037
|
+
# @type ResourceNode: Integer
|
3038
|
+
# @param AutoRenewFlag: 自动续费
|
3039
|
+
# @type AutoRenewFlag: Integer
|
3040
|
+
# @param PackageBandwidth: 带宽扩展包个数(4M)
|
3041
|
+
# @type PackageBandwidth: Integer
|
3042
|
+
# @param PackageNode: 授权点数扩展包个数(50点)
|
3043
|
+
# @type PackageNode: Integer
|
3044
|
+
# @param LogDelivery: 日志投递
|
3045
|
+
# @type LogDelivery: Integer
|
3046
|
+
|
3047
|
+
attr_accessor :ResourceId, :Status, :ModuleSet, :ResourceEdition, :ResourceNode, :AutoRenewFlag, :PackageBandwidth, :PackageNode, :LogDelivery
|
3048
|
+
|
3049
|
+
def initialize(resourceid=nil, status=nil, moduleset=nil, resourceedition=nil, resourcenode=nil, autorenewflag=nil, packagebandwidth=nil, packagenode=nil, logdelivery=nil)
|
3050
|
+
@ResourceId = resourceid
|
3051
|
+
@Status = status
|
3052
|
+
@ModuleSet = moduleset
|
3053
|
+
@ResourceEdition = resourceedition
|
3054
|
+
@ResourceNode = resourcenode
|
3055
|
+
@AutoRenewFlag = autorenewflag
|
3056
|
+
@PackageBandwidth = packagebandwidth
|
3057
|
+
@PackageNode = packagenode
|
3058
|
+
@LogDelivery = logdelivery
|
3059
|
+
end
|
3060
|
+
|
3061
|
+
def deserialize(params)
|
3062
|
+
@ResourceId = params['ResourceId']
|
3063
|
+
@Status = params['Status']
|
3064
|
+
@ModuleSet = params['ModuleSet']
|
3065
|
+
@ResourceEdition = params['ResourceEdition']
|
3066
|
+
@ResourceNode = params['ResourceNode']
|
3067
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
3068
|
+
@PackageBandwidth = params['PackageBandwidth']
|
3069
|
+
@PackageNode = params['PackageNode']
|
3070
|
+
@LogDelivery = params['LogDelivery']
|
3071
|
+
end
|
3072
|
+
end
|
3073
|
+
|
3074
|
+
# ModifyResource返回参数结构体
|
3075
|
+
class ModifyResourceResponse < TencentCloud::Common::AbstractModel
|
3076
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3077
|
+
# @type RequestId: String
|
3078
|
+
|
3079
|
+
attr_accessor :RequestId
|
3080
|
+
|
3081
|
+
def initialize(requestid=nil)
|
3082
|
+
@RequestId = requestid
|
3083
|
+
end
|
3084
|
+
|
3085
|
+
def deserialize(params)
|
3086
|
+
@RequestId = params['RequestId']
|
3087
|
+
end
|
3088
|
+
end
|
3089
|
+
|
2958
3090
|
# ModifyUser请求参数结构体
|
2959
3091
|
class ModifyUserRequest < TencentCloud::Common::AbstractModel
|
2960
3092
|
# @param Id: 用户ID
|
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.675
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -34,8 +34,8 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- lib/tencentcloud-sdk-dasb.rb
|
37
|
-
- lib/v20191018/models.rb
|
38
37
|
- lib/v20191018/client.rb
|
38
|
+
- lib/v20191018/models.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|