tencentcloud-sdk-dasb 3.0.673 → 3.0.674

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cdfa298185f070e86ed3beae88705f57ffee563
4
- data.tar.gz: 9dd530e1a2ab7273bc2e62fd23bd5a7da571b7e1
3
+ metadata.gz: 9bd4c2c5bbc31486c2ee3e9a9896aba853b8466d
4
+ data.tar.gz: 4b8f1bba92ea3a5e1c83580d1482ea5b7727fc7b
5
5
  SHA512:
6
- metadata.gz: cf4508d6757b8d32cbd8e9061b1dbb6c35c197ecc340782af20abc1b4b283287ef9b2ede5b9050dab19070e56a07af33bfd82d2cd45e4254797a4fe8a68a216f
7
- data.tar.gz: 6088fc325425bd3f742676eb85f8c8628a978ee1028208bfa13b2c6f83feee700b1ed2eb8e43447b6661759ac1c5a1217033bfcc9ddbb2a757f048d2fe10f773
6
+ metadata.gz: 65d5a030db06764962951f6b48e23373883f32f8f67dc7d89a23269ecd5019e7a9dfd99a1713277f48a0731f9e339ead4cff20826bc45021ceb6a8ba528fd4e0
7
+ data.tar.gz: 3bece5b5d5bb9e0138efc3d96072a021ab4b0e10057d366708c83c374ba48d0f2c36b3fbb66a0c68a146f401be3b883accd74c7ead90d0c64bb8c51e0d71f5e4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.673
1
+ 3.0.674
@@ -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.
@@ -893,6 +893,42 @@ module TencentCloud
893
893
  end
894
894
  end
895
895
 
896
+ # CreateResource请求参数结构体
897
+ class CreateResourceRequest < TencentCloud::Common::AbstractModel
898
+ # @param VpcId: 部署堡垒机的VpcId
899
+ # @type VpcId: String
900
+ # @param SubnetId: 部署堡垒机的SubnetId
901
+ # @type SubnetId: String
902
+
903
+ attr_accessor :VpcId, :SubnetId
904
+
905
+ def initialize(vpcid=nil, subnetid=nil)
906
+ @VpcId = vpcid
907
+ @SubnetId = subnetid
908
+ end
909
+
910
+ def deserialize(params)
911
+ @VpcId = params['VpcId']
912
+ @SubnetId = params['SubnetId']
913
+ end
914
+ end
915
+
916
+ # CreateResource返回参数结构体
917
+ class CreateResourceResponse < TencentCloud::Common::AbstractModel
918
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
919
+ # @type RequestId: String
920
+
921
+ attr_accessor :RequestId
922
+
923
+ def initialize(requestid=nil)
924
+ @RequestId = requestid
925
+ end
926
+
927
+ def deserialize(params)
928
+ @RequestId = params['RequestId']
929
+ end
930
+ end
931
+
896
932
  # CreateUserGroup请求参数结构体
897
933
  class CreateUserGroupRequest < TencentCloud::Common::AbstractModel
898
934
  # @param Name: 用户组名,最大长度32字符
@@ -2955,6 +2991,70 @@ module TencentCloud
2955
2991
  end
2956
2992
  end
2957
2993
 
2994
+ # ModifyResource请求参数结构体
2995
+ class ModifyResourceRequest < TencentCloud::Common::AbstractModel
2996
+ # @param ResourceId: 需要开通服务的资源ID
2997
+ # @type ResourceId: String
2998
+ # @param Status: 已废弃
2999
+ # @type Status: String
3000
+ # @param ModuleSet: 已废弃
3001
+ # @type ModuleSet: Array
3002
+ # @param ResourceEdition: 实例版本
3003
+ # @type ResourceEdition: String
3004
+ # @param ResourceNode: 资源节点数
3005
+ # @type ResourceNode: Integer
3006
+ # @param AutoRenewFlag: 自动续费
3007
+ # @type AutoRenewFlag: Integer
3008
+ # @param PackageBandwidth: 带宽扩展包个数(4M)
3009
+ # @type PackageBandwidth: Integer
3010
+ # @param PackageNode: 授权点数扩展包个数(50点)
3011
+ # @type PackageNode: Integer
3012
+ # @param LogDelivery: 日志投递
3013
+ # @type LogDelivery: Integer
3014
+
3015
+ attr_accessor :ResourceId, :Status, :ModuleSet, :ResourceEdition, :ResourceNode, :AutoRenewFlag, :PackageBandwidth, :PackageNode, :LogDelivery
3016
+
3017
+ def initialize(resourceid=nil, status=nil, moduleset=nil, resourceedition=nil, resourcenode=nil, autorenewflag=nil, packagebandwidth=nil, packagenode=nil, logdelivery=nil)
3018
+ @ResourceId = resourceid
3019
+ @Status = status
3020
+ @ModuleSet = moduleset
3021
+ @ResourceEdition = resourceedition
3022
+ @ResourceNode = resourcenode
3023
+ @AutoRenewFlag = autorenewflag
3024
+ @PackageBandwidth = packagebandwidth
3025
+ @PackageNode = packagenode
3026
+ @LogDelivery = logdelivery
3027
+ end
3028
+
3029
+ def deserialize(params)
3030
+ @ResourceId = params['ResourceId']
3031
+ @Status = params['Status']
3032
+ @ModuleSet = params['ModuleSet']
3033
+ @ResourceEdition = params['ResourceEdition']
3034
+ @ResourceNode = params['ResourceNode']
3035
+ @AutoRenewFlag = params['AutoRenewFlag']
3036
+ @PackageBandwidth = params['PackageBandwidth']
3037
+ @PackageNode = params['PackageNode']
3038
+ @LogDelivery = params['LogDelivery']
3039
+ end
3040
+ end
3041
+
3042
+ # ModifyResource返回参数结构体
3043
+ class ModifyResourceResponse < TencentCloud::Common::AbstractModel
3044
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3045
+ # @type RequestId: String
3046
+
3047
+ attr_accessor :RequestId
3048
+
3049
+ def initialize(requestid=nil)
3050
+ @RequestId = requestid
3051
+ end
3052
+
3053
+ def deserialize(params)
3054
+ @RequestId = params['RequestId']
3055
+ end
3056
+ end
3057
+
2958
3058
  # ModifyUser请求参数结构体
2959
3059
  class ModifyUserRequest < TencentCloud::Common::AbstractModel
2960
3060
  # @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.673
4
+ version: 3.0.674
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-10 00:00:00.000000000 Z
11
+ date: 2023-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common