tencentcloud-sdk-sqlserver 3.0.887 → 3.0.888

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: aea2258bdc23f01f28a97921ed9e49943abd3d9b
4
- data.tar.gz: aadde7c2e183ba310f90d45551bffb61e8b1fc17
3
+ metadata.gz: 429bf16bc48b0ba73cc56556d7c5f36f4477dee0
4
+ data.tar.gz: 066d19c7219fa5a3556a31274d4d7c06210cd98d
5
5
  SHA512:
6
- metadata.gz: cc1cdbf55f5cd5c4e06db0dfdc7dd8ab749739d22729d9c1a41b0edd76044632b241b1f6c61d98d53ec7839658983f5f968457ea3734475a08bd25fd76b8e1e8
7
- data.tar.gz: e6702c70dc6875e9186e673ec4874bae3eaa4cda261ac7b6518e51f4eff101f0e7a043757deb89f5f5ad0bfcc8c0cb93b3480b47e4f9608828fde527be7253ff
6
+ metadata.gz: b9d6d6a05538b162c40e88327c0b3038fb50694968f5012df9a26188b7d351d31dfd32cddf321a3ad88a1fe0e748e61ec119e2d04d34526306809162d1d974f4
7
+ data.tar.gz: 11cd1d23c19d258f0afcee7dee501419d0137616763c9dd8ca9dd3ff0f8c75fdea974b415d8b73e088d77fe0d5a32ad6e5e321d887b64985e9bd4ddb91b5a10c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.887
1
+ 3.0.888
@@ -2837,6 +2837,30 @@ module TencentCloud
2837
2837
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2838
2838
  end
2839
2839
 
2840
+ # 本接口(ModifyDatabasePrivilege)用于修改实例数据库权限。
2841
+
2842
+ # @param request: Request instance for ModifyDatabasePrivilege.
2843
+ # @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDatabasePrivilegeRequest`
2844
+ # @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDatabasePrivilegeResponse`
2845
+ def ModifyDatabasePrivilege(request)
2846
+ body = send_request('ModifyDatabasePrivilege', request.serialize)
2847
+ response = JSON.parse(body)
2848
+ if response['Response'].key?('Error') == false
2849
+ model = ModifyDatabasePrivilegeResponse.new
2850
+ model.deserialize(response['Response'])
2851
+ model
2852
+ else
2853
+ code = response['Response']['Error']['Code']
2854
+ message = response['Response']['Error']['Message']
2855
+ reqid = response['Response']['RequestId']
2856
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2857
+ end
2858
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2859
+ raise e
2860
+ rescue StandardError => e
2861
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2862
+ end
2863
+
2840
2864
  # 本接口(ModifyDatabaseShrinkDMF)用于收缩数据库mdf(Shrink mdf)。
2841
2865
 
2842
2866
  # @param request: Request instance for ModifyDatabaseShrinkMDF.
@@ -187,20 +187,23 @@ module TencentCloud
187
187
  class AccountPrivilegeModifyInfo < TencentCloud::Common::AbstractModel
188
188
  # @param UserName: 数据库用户名
189
189
  # @type UserName: String
190
- # @param DBPrivileges: 账号权限变更信息
190
+ # @param DBPrivileges: 账号权限变更信息。参数DBPrivileges和AccAllDB只能二选一
191
191
  # @type DBPrivileges: Array
192
192
  # @param IsAdmin: 表示是否为管理员账户,当值为true,表示是 管理员。若实例 是 单节点,则管理员所在的 账号类型为超级权限账号 ,即AccountType=L0;若实例 是 双节点,则管理员所在的 账号类型为高级权限账号,即AccountType=L1;当值为false,表示 不是管理员,则账号类型为普通账号,即AccountType=L3
193
193
  # @type IsAdmin: Boolean
194
194
  # @param AccountType: 账号类型,IsAdmin字段的扩展字段。 L0-超级权限(基础版独有),L1-高级权限,L2-特殊权限,L3-普通权限,默认L3
195
195
  # @type AccountType: String
196
+ # @param AccAllDB: 全量修改指定账号下的所有DB权限,只支持特殊权限账号和普通权限账号。参数DBPrivileges和AccAllDB只能二选一
197
+ # @type AccAllDB: :class:`Tencentcloud::Sqlserver.v20180328.models.SelectAllDB`
196
198
 
197
- attr_accessor :UserName, :DBPrivileges, :IsAdmin, :AccountType
199
+ attr_accessor :UserName, :DBPrivileges, :IsAdmin, :AccountType, :AccAllDB
198
200
 
199
- def initialize(username=nil, dbprivileges=nil, isadmin=nil, accounttype=nil)
201
+ def initialize(username=nil, dbprivileges=nil, isadmin=nil, accounttype=nil, accalldb=nil)
200
202
  @UserName = username
201
203
  @DBPrivileges = dbprivileges
202
204
  @IsAdmin = isadmin
203
205
  @AccountType = accounttype
206
+ @AccAllDB = accalldb
204
207
  end
205
208
 
206
209
  def deserialize(params)
@@ -215,6 +218,10 @@ module TencentCloud
215
218
  end
216
219
  @IsAdmin = params['IsAdmin']
217
220
  @AccountType = params['AccountType']
221
+ unless params['AccAllDB'].nil?
222
+ @AccAllDB = SelectAllDB.new
223
+ @AccAllDB.deserialize(params['AccAllDB'])
224
+ end
218
225
  end
219
226
  end
220
227
 
@@ -2513,6 +2520,33 @@ module TencentCloud
2513
2520
  end
2514
2521
  end
2515
2522
 
2523
+ # 数据库账号权限变更信息
2524
+ class DataBasePrivilegeModifyInfo < TencentCloud::Common::AbstractModel
2525
+ # @param DataBaseName: 数据库名称
2526
+ # @type DataBaseName: String
2527
+ # @param AccountPrivileges: 数据库权限变更信息
2528
+ # @type AccountPrivileges: Array
2529
+
2530
+ attr_accessor :DataBaseName, :AccountPrivileges
2531
+
2532
+ def initialize(databasename=nil, accountprivileges=nil)
2533
+ @DataBaseName = databasename
2534
+ @AccountPrivileges = accountprivileges
2535
+ end
2536
+
2537
+ def deserialize(params)
2538
+ @DataBaseName = params['DataBaseName']
2539
+ unless params['AccountPrivileges'].nil?
2540
+ @AccountPrivileges = []
2541
+ params['AccountPrivileges'].each do |i|
2542
+ accountprivilege_tmp = AccountPrivilege.new
2543
+ accountprivilege_tmp.deserialize(i)
2544
+ @AccountPrivileges << accountprivilege_tmp
2545
+ end
2546
+ end
2547
+ end
2548
+ end
2549
+
2516
2550
  # 该数据结构表示具有发布订阅关系的两个数据库。
2517
2551
  class DatabaseTuple < TencentCloud::Common::AbstractModel
2518
2552
  # @param PublishDatabase: 发布数据库名称
@@ -9012,6 +9046,53 @@ module TencentCloud
9012
9046
  end
9013
9047
  end
9014
9048
 
9049
+ # ModifyDatabasePrivilege请求参数结构体
9050
+ class ModifyDatabasePrivilegeRequest < TencentCloud::Common::AbstractModel
9051
+ # @param InstanceId: 数据库实例ID,形如mssql-njj2mtpl
9052
+ # @type InstanceId: String
9053
+ # @param DataBaseSet: 数据库权限变更信息
9054
+ # @type DataBaseSet: Array
9055
+
9056
+ attr_accessor :InstanceId, :DataBaseSet
9057
+
9058
+ def initialize(instanceid=nil, databaseset=nil)
9059
+ @InstanceId = instanceid
9060
+ @DataBaseSet = databaseset
9061
+ end
9062
+
9063
+ def deserialize(params)
9064
+ @InstanceId = params['InstanceId']
9065
+ unless params['DataBaseSet'].nil?
9066
+ @DataBaseSet = []
9067
+ params['DataBaseSet'].each do |i|
9068
+ databaseprivilegemodifyinfo_tmp = DataBasePrivilegeModifyInfo.new
9069
+ databaseprivilegemodifyinfo_tmp.deserialize(i)
9070
+ @DataBaseSet << databaseprivilegemodifyinfo_tmp
9071
+ end
9072
+ end
9073
+ end
9074
+ end
9075
+
9076
+ # ModifyDatabasePrivilege返回参数结构体
9077
+ class ModifyDatabasePrivilegeResponse < TencentCloud::Common::AbstractModel
9078
+ # @param FlowId: 异步任务流程ID
9079
+ # @type FlowId: Integer
9080
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9081
+ # @type RequestId: String
9082
+
9083
+ attr_accessor :FlowId, :RequestId
9084
+
9085
+ def initialize(flowid=nil, requestid=nil)
9086
+ @FlowId = flowid
9087
+ @RequestId = requestid
9088
+ end
9089
+
9090
+ def deserialize(params)
9091
+ @FlowId = params['FlowId']
9092
+ @RequestId = params['RequestId']
9093
+ end
9094
+ end
9095
+
9015
9096
  # ModifyDatabaseShrinkMDF请求参数结构体
9016
9097
  class ModifyDatabaseShrinkMDFRequest < TencentCloud::Common::AbstractModel
9017
9098
  # @param DBNames: 数据库名数组
@@ -10789,6 +10870,22 @@ module TencentCloud
10789
10870
  end
10790
10871
  end
10791
10872
 
10873
+ # DB权限修改类型
10874
+ class SelectAllDB < TencentCloud::Common::AbstractModel
10875
+ # @param Privilege: 权限变更信息。ReadWrite表示可读写,ReadOnly表示只读,Delete表示删除账号对该DB的权限,DBOwner所有者
10876
+ # @type Privilege: String
10877
+
10878
+ attr_accessor :Privilege
10879
+
10880
+ def initialize(privilege=nil)
10881
+ @Privilege = privilege
10882
+ end
10883
+
10884
+ def deserialize(params)
10885
+ @Privilege = params['Privilege']
10886
+ end
10887
+ end
10888
+
10792
10889
  # 备可用区信息
10793
10890
  class SlaveZones < TencentCloud::Common::AbstractModel
10794
10891
  # @param SlaveZone: 备可用区地域码
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-sqlserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.887
4
+ version: 3.0.888
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-08-16 00:00:00.000000000 Z
11
+ date: 2024-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common