tencentcloud-sdk-sqlserver 3.0.504 → 3.0.505

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180328/models.rb +83 -20
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10f214becffc3e88bd67e182a0e38d943b32cccd
4
- data.tar.gz: bead323c667a5593b3c071bacd4214fa34162dfc
3
+ metadata.gz: 8c33d9c0cc72056f87578432ab58a60eda36c0b2
4
+ data.tar.gz: c38eb31885d5a3af146c41bbef36ade3d9a4cb96
5
5
  SHA512:
6
- metadata.gz: 2e69185924d321ee4a391f913be868001e88aeaa0d5f289300b7cc99c82e1994b61ea7a274b19c8c6ecba3f1280488a05a71f3e8c0484ce466ea3a1cfe6df21a
7
- data.tar.gz: b83116dbce5db7101756a2bdea84894a6ed4c8bf09e975f548eec0d1f0fd37330ade135c445f18fa48e689a7144853fd809be51ea81db455d5265c688028b0e5
6
+ metadata.gz: bf01fe071b974e3e3a90bf94cf2ccc25dfb058671840cb91b87514817657c0afa52c85d2f5a07d08ac89097eac78a6ee66092ec6d863d934464499186cc8afc7
7
+ data.tar.gz: debfc546f89151e916f04e251e8ffa9b19c9c5fc214614325a7d08692668bcfe174777a57293b45deb62ec51d08e89e0ed0e686a8a8da39ce4a6ba2ccc119f18
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.504
1
+ 3.0.505
@@ -27,20 +27,23 @@ module TencentCloud
27
27
  # @type DBPrivileges: Array
28
28
  # @param Remark: 账号备注信息
29
29
  # @type Remark: String
30
- # @param IsAdmin: 是否为管理员账户,默认为否
30
+ # @param IsAdmin: 是否为管理员账户,当值为true 等价于基础版AccountType=L0,高可用AccountType=L1,当值为false,等价于AccountType=L3
31
31
  # @type IsAdmin: Boolean
32
32
  # @param Authentication: win-windows鉴权,sql-sqlserver鉴权,不填默认值为sql-sqlserver鉴权
33
33
  # @type Authentication: String
34
+ # @param AccountType: 账号类型,IsAdmin的扩展字段。 L0-超级权限(基础版独有),L1-高级权限,L2-特殊权限,L3-普通权限,默认L3
35
+ # @type AccountType: String
34
36
 
35
- attr_accessor :UserName, :Password, :DBPrivileges, :Remark, :IsAdmin, :Authentication
37
+ attr_accessor :UserName, :Password, :DBPrivileges, :Remark, :IsAdmin, :Authentication, :AccountType
36
38
 
37
- def initialize(username=nil, password=nil, dbprivileges=nil, remark=nil, isadmin=nil, authentication=nil)
39
+ def initialize(username=nil, password=nil, dbprivileges=nil, remark=nil, isadmin=nil, authentication=nil, accounttype=nil)
38
40
  @UserName = username
39
41
  @Password = password
40
42
  @DBPrivileges = dbprivileges
41
43
  @Remark = remark
42
44
  @IsAdmin = isadmin
43
45
  @Authentication = authentication
46
+ @AccountType = accounttype
44
47
  end
45
48
 
46
49
  def deserialize(params)
@@ -57,6 +60,7 @@ module TencentCloud
57
60
  @Remark = params['Remark']
58
61
  @IsAdmin = params['IsAdmin']
59
62
  @Authentication = params['Authentication']
63
+ @AccountType = params['AccountType']
60
64
  end
61
65
  end
62
66
 
@@ -84,10 +88,12 @@ module TencentCloud
84
88
  # @type Authentication: String
85
89
  # @param Host: win-windows鉴权账户需要host
86
90
  # @type Host: String
91
+ # @param AccountType: 账号类型。L0-超级权限(基础版独有),L1-高级权限,L2-特殊权限,L3-普通权限
92
+ # @type AccountType: String
87
93
 
88
- attr_accessor :Name, :Remark, :CreateTime, :Status, :UpdateTime, :PassTime, :InternalStatus, :Dbs, :IsAdmin, :Authentication, :Host
94
+ attr_accessor :Name, :Remark, :CreateTime, :Status, :UpdateTime, :PassTime, :InternalStatus, :Dbs, :IsAdmin, :Authentication, :Host, :AccountType
89
95
 
90
- def initialize(name=nil, remark=nil, createtime=nil, status=nil, updatetime=nil, passtime=nil, internalstatus=nil, dbs=nil, isadmin=nil, authentication=nil, host=nil)
96
+ def initialize(name=nil, remark=nil, createtime=nil, status=nil, updatetime=nil, passtime=nil, internalstatus=nil, dbs=nil, isadmin=nil, authentication=nil, host=nil, accounttype=nil)
91
97
  @Name = name
92
98
  @Remark = remark
93
99
  @CreateTime = createtime
@@ -99,6 +105,7 @@ module TencentCloud
99
105
  @IsAdmin = isadmin
100
106
  @Authentication = authentication
101
107
  @Host = host
108
+ @AccountType = accounttype
102
109
  end
103
110
 
104
111
  def deserialize(params)
@@ -120,6 +127,7 @@ module TencentCloud
120
127
  @IsAdmin = params['IsAdmin']
121
128
  @Authentication = params['Authentication']
122
129
  @Host = params['Host']
130
+ @AccountType = params['AccountType']
123
131
  end
124
132
  end
125
133
 
@@ -147,19 +155,23 @@ module TencentCloud
147
155
  class AccountPrivilege < TencentCloud::Common::AbstractModel
148
156
  # @param UserName: 数据库用户名
149
157
  # @type UserName: String
150
- # @param Privilege: 数据库权限。ReadWrite表示可读写,ReadOnly表示只读
158
+ # @param Privilege: 数据库权限。ReadWrite表示可读写,ReadOnly表示只读,Delete表示删除DB对该账户的权限,DBOwner所有者
151
159
  # @type Privilege: String
160
+ # @param AccountType: 账户名称,L0-超级权限(基础版独有),L1-高级权限,L2-特殊权限,L3-普通权限
161
+ # @type AccountType: String
152
162
 
153
- attr_accessor :UserName, :Privilege
163
+ attr_accessor :UserName, :Privilege, :AccountType
154
164
 
155
- def initialize(username=nil, privilege=nil)
165
+ def initialize(username=nil, privilege=nil, accounttype=nil)
156
166
  @UserName = username
157
167
  @Privilege = privilege
168
+ @AccountType = accounttype
158
169
  end
159
170
 
160
171
  def deserialize(params)
161
172
  @UserName = params['UserName']
162
173
  @Privilege = params['Privilege']
174
+ @AccountType = params['AccountType']
163
175
  end
164
176
  end
165
177
 
@@ -169,15 +181,18 @@ module TencentCloud
169
181
  # @type UserName: String
170
182
  # @param DBPrivileges: 账号权限变更信息
171
183
  # @type DBPrivileges: Array
172
- # @param IsAdmin: 是否为管理员账户
184
+ # @param IsAdmin: 是否为管理员账户,当值为true 等价于基础版AccountType=L0,高可用AccountType=L1,当值为false时,表示删除管理员权限,默认false
173
185
  # @type IsAdmin: Boolean
186
+ # @param AccountType: 账号类型,IsAdmin字段的扩展字段。 L0-超级权限(基础版独有),L1-高级权限,L2-特殊权限,L3-普通权限,默认L3
187
+ # @type AccountType: String
174
188
 
175
- attr_accessor :UserName, :DBPrivileges, :IsAdmin
189
+ attr_accessor :UserName, :DBPrivileges, :IsAdmin, :AccountType
176
190
 
177
- def initialize(username=nil, dbprivileges=nil, isadmin=nil)
191
+ def initialize(username=nil, dbprivileges=nil, isadmin=nil, accounttype=nil)
178
192
  @UserName = username
179
193
  @DBPrivileges = dbprivileges
180
194
  @IsAdmin = isadmin
195
+ @AccountType = accounttype
181
196
  end
182
197
 
183
198
  def deserialize(params)
@@ -191,6 +206,7 @@ module TencentCloud
191
206
  end
192
207
  end
193
208
  @IsAdmin = params['IsAdmin']
209
+ @AccountType = params['AccountType']
194
210
  end
195
211
  end
196
212
 
@@ -1921,7 +1937,7 @@ module TencentCloud
1921
1937
  class DBPrivilege < TencentCloud::Common::AbstractModel
1922
1938
  # @param DBName: 数据库名
1923
1939
  # @type DBName: String
1924
- # @param Privilege: 数据库权限,ReadWrite表示可读写,ReadOnly表示只读
1940
+ # @param Privilege: 数据库权限,ReadWrite表示可读写,ReadOnly表示只读,DBOwner所有者
1925
1941
  # @type Privilege: String
1926
1942
 
1927
1943
  attr_accessor :DBName, :Privilege
@@ -1941,7 +1957,7 @@ module TencentCloud
1941
1957
  class DBPrivilegeModifyInfo < TencentCloud::Common::AbstractModel
1942
1958
  # @param DBName: 数据库名
1943
1959
  # @type DBName: String
1944
- # @param Privilege: 权限变更信息。ReadWrite表示可读写,ReadOnly表示只读,Delete表示删除账号对该DB的权限
1960
+ # @param Privilege: 权限变更信息。ReadWrite表示可读写,ReadOnly表示只读,Delete表示删除账号对该DB的权限,DBOwner所有者
1945
1961
  # @type Privilege: String
1946
1962
 
1947
1963
  attr_accessor :DBName, :Privilege
@@ -1977,6 +1993,26 @@ module TencentCloud
1977
1993
  end
1978
1994
  end
1979
1995
 
1996
+ # 数据库重命名返回参数
1997
+ class DBRenameRes < TencentCloud::Common::AbstractModel
1998
+ # @param NewName: 新数据库名称
1999
+ # @type NewName: String
2000
+ # @param OldName: 老数据库名称
2001
+ # @type OldName: String
2002
+
2003
+ attr_accessor :NewName, :OldName
2004
+
2005
+ def initialize(newname=nil, oldname=nil)
2006
+ @NewName = newname
2007
+ @OldName = oldname
2008
+ end
2009
+
2010
+ def deserialize(params)
2011
+ @NewName = params['NewName']
2012
+ @OldName = params['OldName']
2013
+ end
2014
+ end
2015
+
1980
2016
  # 该数据结构表示具有发布订阅关系的两个数据库。
1981
2017
  class DatabaseTuple < TencentCloud::Common::AbstractModel
1982
2018
  # @param PublishDatabase: 发布数据库名称
@@ -2063,10 +2099,12 @@ module TencentCloud
2063
2099
  # @type StateDesc: String
2064
2100
  # @param UserAccessDesc: 用户类型
2065
2101
  # @type UserAccessDesc: String
2102
+ # @param CreateTime: 数据库创建时间
2103
+ # @type CreateTime: String
2066
2104
 
2067
- attr_accessor :IsSubscribed, :CollationName, :IsAutoCleanupOn, :IsBrokerEnabled, :IsCdcEnabled, :IsDbChainingOn, :IsEncrypted, :IsFulltextEnabled, :IsMirroring, :IsPublished, :IsReadCommittedSnapshotOn, :IsTrustworthyOn, :MirroringState, :Name, :RecoveryModelDesc, :RetentionPeriod, :StateDesc, :UserAccessDesc
2105
+ attr_accessor :IsSubscribed, :CollationName, :IsAutoCleanupOn, :IsBrokerEnabled, :IsCdcEnabled, :IsDbChainingOn, :IsEncrypted, :IsFulltextEnabled, :IsMirroring, :IsPublished, :IsReadCommittedSnapshotOn, :IsTrustworthyOn, :MirroringState, :Name, :RecoveryModelDesc, :RetentionPeriod, :StateDesc, :UserAccessDesc, :CreateTime
2068
2106
 
2069
- def initialize(issubscribed=nil, collationname=nil, isautocleanupon=nil, isbrokerenabled=nil, iscdcenabled=nil, isdbchainingon=nil, isencrypted=nil, isfulltextenabled=nil, ismirroring=nil, ispublished=nil, isreadcommittedsnapshoton=nil, istrustworthyon=nil, mirroringstate=nil, name=nil, recoverymodeldesc=nil, retentionperiod=nil, statedesc=nil, useraccessdesc=nil)
2107
+ def initialize(issubscribed=nil, collationname=nil, isautocleanupon=nil, isbrokerenabled=nil, iscdcenabled=nil, isdbchainingon=nil, isencrypted=nil, isfulltextenabled=nil, ismirroring=nil, ispublished=nil, isreadcommittedsnapshoton=nil, istrustworthyon=nil, mirroringstate=nil, name=nil, recoverymodeldesc=nil, retentionperiod=nil, statedesc=nil, useraccessdesc=nil, createtime=nil)
2070
2108
  @IsSubscribed = issubscribed
2071
2109
  @CollationName = collationname
2072
2110
  @IsAutoCleanupOn = isautocleanupon
@@ -2085,6 +2123,7 @@ module TencentCloud
2085
2123
  @RetentionPeriod = retentionperiod
2086
2124
  @StateDesc = statedesc
2087
2125
  @UserAccessDesc = useraccessdesc
2126
+ @CreateTime = createtime
2088
2127
  end
2089
2128
 
2090
2129
  def deserialize(params)
@@ -2106,6 +2145,7 @@ module TencentCloud
2106
2145
  @RetentionPeriod = params['RetentionPeriod']
2107
2146
  @StateDesc = params['StateDesc']
2108
2147
  @UserAccessDesc = params['UserAccessDesc']
2148
+ @CreateTime = params['CreateTime']
2109
2149
  end
2110
2150
  end
2111
2151
 
@@ -5293,10 +5333,13 @@ module TencentCloud
5293
5333
  # @param IsRecovery: 是否是最终恢复,全量导入任务该字段为空
5294
5334
  # 注意:此字段可能返回 null,表示取不到有效值。
5295
5335
  # @type IsRecovery: String
5336
+ # @param DBRename: 重命名的数据库名称集合
5337
+ # 注意:此字段可能返回 null,表示取不到有效值。
5338
+ # @type DBRename: Array
5296
5339
 
5297
- attr_accessor :MigrationId, :MigrationName, :AppId, :Region, :InstanceId, :RecoveryType, :UploadType, :BackupFiles, :Status, :CreateTime, :StartTime, :EndTime, :Message, :Detail, :Action, :IsRecovery
5340
+ attr_accessor :MigrationId, :MigrationName, :AppId, :Region, :InstanceId, :RecoveryType, :UploadType, :BackupFiles, :Status, :CreateTime, :StartTime, :EndTime, :Message, :Detail, :Action, :IsRecovery, :DBRename
5298
5341
 
5299
- def initialize(migrationid=nil, migrationname=nil, appid=nil, region=nil, instanceid=nil, recoverytype=nil, uploadtype=nil, backupfiles=nil, status=nil, createtime=nil, starttime=nil, endtime=nil, message=nil, detail=nil, action=nil, isrecovery=nil)
5342
+ def initialize(migrationid=nil, migrationname=nil, appid=nil, region=nil, instanceid=nil, recoverytype=nil, uploadtype=nil, backupfiles=nil, status=nil, createtime=nil, starttime=nil, endtime=nil, message=nil, detail=nil, action=nil, isrecovery=nil, dbrename=nil)
5300
5343
  @MigrationId = migrationid
5301
5344
  @MigrationName = migrationname
5302
5345
  @AppId = appid
@@ -5313,6 +5356,7 @@ module TencentCloud
5313
5356
  @Detail = detail
5314
5357
  @Action = action
5315
5358
  @IsRecovery = isrecovery
5359
+ @DBRename = dbrename
5316
5360
  end
5317
5361
 
5318
5362
  def deserialize(params)
@@ -5338,6 +5382,14 @@ module TencentCloud
5338
5382
  @Action.deserialize(params['Action'])
5339
5383
  end
5340
5384
  @IsRecovery = params['IsRecovery']
5385
+ unless params['DBRename'].nil?
5386
+ @DBRename = []
5387
+ params['DBRename'].each do |i|
5388
+ dbrenameres_tmp = DBRenameRes.new
5389
+ dbrenameres_tmp.deserialize(i)
5390
+ @DBRename << dbrenameres_tmp
5391
+ end
5392
+ end
5341
5393
  end
5342
5394
  end
5343
5395
 
@@ -5529,16 +5581,19 @@ module TencentCloud
5529
5581
  # @type UploadType: String
5530
5582
  # @param BackupFiles: UploadType是COS_URL时这里时URL,COS_UPLOAD这里填备份文件的名字;只支持1个备份文件,但1个备份文件内可包含多个库
5531
5583
  # @type BackupFiles: Array
5584
+ # @param DBRename: 需要重命名的数据库名称集合
5585
+ # @type DBRename: Array
5532
5586
 
5533
- attr_accessor :InstanceId, :BackupMigrationId, :MigrationName, :RecoveryType, :UploadType, :BackupFiles
5587
+ attr_accessor :InstanceId, :BackupMigrationId, :MigrationName, :RecoveryType, :UploadType, :BackupFiles, :DBRename
5534
5588
 
5535
- def initialize(instanceid=nil, backupmigrationid=nil, migrationname=nil, recoverytype=nil, uploadtype=nil, backupfiles=nil)
5589
+ def initialize(instanceid=nil, backupmigrationid=nil, migrationname=nil, recoverytype=nil, uploadtype=nil, backupfiles=nil, dbrename=nil)
5536
5590
  @InstanceId = instanceid
5537
5591
  @BackupMigrationId = backupmigrationid
5538
5592
  @MigrationName = migrationname
5539
5593
  @RecoveryType = recoverytype
5540
5594
  @UploadType = uploadtype
5541
5595
  @BackupFiles = backupfiles
5596
+ @DBRename = dbrename
5542
5597
  end
5543
5598
 
5544
5599
  def deserialize(params)
@@ -5548,6 +5603,14 @@ module TencentCloud
5548
5603
  @RecoveryType = params['RecoveryType']
5549
5604
  @UploadType = params['UploadType']
5550
5605
  @BackupFiles = params['BackupFiles']
5606
+ unless params['DBRename'].nil?
5607
+ @DBRename = []
5608
+ params['DBRename'].each do |i|
5609
+ renamerestoredatabase_tmp = RenameRestoreDatabase.new
5610
+ renamerestoredatabase_tmp.deserialize(i)
5611
+ @DBRename << renamerestoredatabase_tmp
5612
+ end
5613
+ end
5551
5614
  end
5552
5615
  end
5553
5616
 
@@ -7071,7 +7134,7 @@ module TencentCloud
7071
7134
  end
7072
7135
  end
7073
7136
 
7074
- # 用于RestoreInstance,RollbackInstance,CreateMigration、CloneDB 等接口;对恢复的库进行重命名,且支持选择要恢复的库。
7137
+ # 用于RestoreInstance,RollbackInstance,CreateMigration、CloneDB、ModifyBackupMigration 等接口;对恢复的库进行重命名,且支持选择要恢复的库。
7075
7138
  class RenameRestoreDatabase < TencentCloud::Common::AbstractModel
7076
7139
  # @param OldName: 库的名字,如果oldName不存在则返回失败。
7077
7140
  # 在用于离线迁移任务时可不填。
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.504
4
+ version: 3.0.505
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-02-08 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common