tencentcloud-sdk-mongodb 3.0.484 → 3.0.485

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: 8e834b9eb9d019710e6902c2549d86f2dd281e5c
4
- data.tar.gz: 860dcaa3cd6a262110b63a4349c33fe05ff4cae7
3
+ metadata.gz: 6fcdd53d7df4bcb024c7f5854c50343a6b475cd9
4
+ data.tar.gz: 4db24f8e6070cec2bf23b6fa9fed0762d42d2904
5
5
  SHA512:
6
- metadata.gz: d07eaccafc666f86f2aee5843df9f0d2436bbe0991d66ed4eea6b44352bf9f403d03a6bfcc8019eca6230e278c0ac43c554770263b71fd1a2a23fdfb6f288801
7
- data.tar.gz: 1c78f298d74afd04f51e196fe565edd4205a95a79d696376cc59c32d663efa9f3ee81bfe1c1135c3ae1afb814ec7869128bfea0043b9a8abedb6b8a6a8a9d6ac
6
+ metadata.gz: af5735196bd09d41b8730f895cc1985489d230a0e6ef4116e25477ac61f1ebb6ad23d8fcb3517f8aa1c511d16c196798a3fef5ef230ea13309a20c89b4890605
7
+ data.tar.gz: 2d6a5bd7d540a8450ff86a121ab1e830dabd930f939b58e268156b930f8ac41b4c13c4a23251c0137c6c5b9e0b3e9394611f1c30635e65d442ccc04e0a368808
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.484
1
+ 3.0.485
@@ -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.485
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-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common