tencentcloud-sdk-mongodb 3.0.484 → 3.0.486

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e834b9eb9d019710e6902c2549d86f2dd281e5c
4
- data.tar.gz: 860dcaa3cd6a262110b63a4349c33fe05ff4cae7
3
+ metadata.gz: 5271c0a4077c19b9630e3d201747d2381f6ce033
4
+ data.tar.gz: 3fd071abce5b3b5a6a1aa36496312561a6a9bf61
5
5
  SHA512:
6
- metadata.gz: d07eaccafc666f86f2aee5843df9f0d2436bbe0991d66ed4eea6b44352bf9f403d03a6bfcc8019eca6230e278c0ac43c554770263b71fd1a2a23fdfb6f288801
7
- data.tar.gz: 1c78f298d74afd04f51e196fe565edd4205a95a79d696376cc59c32d663efa9f3ee81bfe1c1135c3ae1afb814ec7869128bfea0043b9a8abedb6b8a6a8a9d6ac
6
+ metadata.gz: 2e6c64cf8bf3e7b62850435a28f5de417ec4c6d9d6e25363d72d1346dab3a63473690dd54ce4958e8081238f40791f41c1032a05442ab1f8a1108a9b788b221f
7
+ data.tar.gz: 51424991169226ce1ac449e4be3a106823e1e31c3cd91cf3ba686ca19b9157b76dd8bfc1686151a095346b099f4bc238c35d83636791ff46b4a1515300a6a726
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.484
1
+ 3.0.486
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 创建实例账号。
57
+
58
+ # @param request: Request instance for CreateAccountUser.
59
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::CreateAccountUserRequest`
60
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::CreateAccountUserResponse`
61
+ def CreateAccountUser(request)
62
+ body = send_request('CreateAccountUser', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateAccountUserResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 备份实例接口
57
81
 
58
82
  # @param request: Request instance for CreateBackupDBInstance.
@@ -227,6 +227,69 @@ module TencentCloud
227
227
  end
228
228
  end
229
229
 
230
+ # CreateAccountUser请求参数结构体
231
+ class CreateAccountUserRequest < TencentCloud::Common::AbstractModel
232
+ # @param InstanceId: 实例 ID。
233
+ # @type InstanceId: String
234
+ # @param UserName: 新账号名称。其格式要求如下:<ul><li>字符范围[1,32]。</li><li>可输入[A,Z]、[a,z]、[1,9]范围的字符以及下划线“_”与短划线“-”。</li></ul>
235
+ # @type UserName: String
236
+ # @param Password: 新账号密码。密码复杂度要求如下:<ul><li>字符长度范围[8,32]。</li><li>至少包含字母、数字和特殊字符(叹号“!”、at"@"、井号“#”、百分号“%”、插入符“^”、星号“*”、小括号“()”、下划线“_”)中的两种。</li></ul>
237
+ # @type Password: String
238
+ # @param MongoUserPassword: mongouser 账号对应的密码。mongouser 为系统默认账号,即为创建实例时,设置的密码。
239
+ # @type MongoUserPassword: String
240
+ # @param UserDesc: 账号备注信息。
241
+ # @type UserDesc: String
242
+ # @param AuthRole: 账号的读写权限信息。
243
+ # @type AuthRole: Array
244
+
245
+ attr_accessor :InstanceId, :UserName, :Password, :MongoUserPassword, :UserDesc, :AuthRole
246
+
247
+ def initialize(instanceid=nil, username=nil, password=nil, mongouserpassword=nil, userdesc=nil, authrole=nil)
248
+ @InstanceId = instanceid
249
+ @UserName = username
250
+ @Password = password
251
+ @MongoUserPassword = mongouserpassword
252
+ @UserDesc = userdesc
253
+ @AuthRole = authrole
254
+ end
255
+
256
+ def deserialize(params)
257
+ @InstanceId = params['InstanceId']
258
+ @UserName = params['UserName']
259
+ @Password = params['Password']
260
+ @MongoUserPassword = params['MongoUserPassword']
261
+ @UserDesc = params['UserDesc']
262
+ unless params['AuthRole'].nil?
263
+ @AuthRole = []
264
+ params['AuthRole'].each do |i|
265
+ auth_tmp = Auth.new
266
+ auth_tmp.deserialize(i)
267
+ @AuthRole << auth_tmp
268
+ end
269
+ end
270
+ end
271
+ end
272
+
273
+ # CreateAccountUser返回参数结构体
274
+ class CreateAccountUserResponse < TencentCloud::Common::AbstractModel
275
+ # @param FlowId: 创建任务ID。
276
+ # @type FlowId: Integer
277
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
278
+ # @type RequestId: String
279
+
280
+ attr_accessor :FlowId, :RequestId
281
+
282
+ def initialize(flowid=nil, requestid=nil)
283
+ @FlowId = flowid
284
+ @RequestId = requestid
285
+ end
286
+
287
+ def deserialize(params)
288
+ @FlowId = params['FlowId']
289
+ @RequestId = params['RequestId']
290
+ end
291
+ end
292
+
230
293
  # CreateBackupDBInstance请求参数结构体
231
294
  class CreateBackupDBInstanceRequest < TencentCloud::Common::AbstractModel
232
295
  # @param InstanceId: 实例id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mongodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.484
4
+ version: 3.0.486
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common