tencentcloud-sdk-mongodb 3.0.414 → 3.0.415

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: 2dae3c3321475583f71a299f7b2f53916657dd7e
4
- data.tar.gz: 2d42fa453398abd99321c90b962f0f1c26160c59
3
+ metadata.gz: 0ae8b1902f74a1ed3da0aa0d09b61cfb5712e3e2
4
+ data.tar.gz: d27b24863782d1dbdb55cfb8fbd9c46f0e80d119
5
5
  SHA512:
6
- metadata.gz: 677fbc801c4c1e502fc5da7b946f5898a44e036b9ebba9247a65956408ec3afb516237ab60d77a9f7013d6f0f11d65a3b9a094b100ecae8b4498d3fd8dfcea1f
7
- data.tar.gz: bc1eb5c4d159971fb424a01ff7ae463cae6c778bf9608a9d84f7b6e68af5a8900da9be87ff4dca20c71c7a25349baf1f86883b60e284a892306654dd6d864489
6
+ metadata.gz: b6afed0cfa1799540ea7bfd25ed18915c2104d6185fff3273462510740bd0e96db1ca0c494ebb752c17f88a11826056c4f1ddddf0ce47ce27879af11784a9dea
7
+ data.tar.gz: be6f2f079f8a12a4267d179059ffdfc5c1ef0292462547317daf65e4164907a71f7cc918da56f2e1dcb8af3e436ea374db54ad5faed3b8ad6f30c5eac352984c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.414
1
+ 3.0.415
@@ -149,6 +149,30 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
+ # 本接口(DescribeAccountUsers)用于获取当前实例的全部账号列表。
153
+
154
+ # @param request: Request instance for DescribeAccountUsers.
155
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeAccountUsersRequest`
156
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeAccountUsersResponse`
157
+ def DescribeAccountUsers(request)
158
+ body = send_request('DescribeAccountUsers', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeAccountUsersResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
152
176
  # 查询异步任务状态接口
153
177
 
154
178
  # @param request: Request instance for DescribeAsyncRequestInfo.
@@ -713,6 +713,49 @@ module TencentCloud
713
713
  end
714
714
  end
715
715
 
716
+ # DescribeAccountUsers请求参数结构体
717
+ class DescribeAccountUsersRequest < TencentCloud::Common::AbstractModel
718
+ # @param InstanceId: 实例ID。
719
+ # @type InstanceId: String
720
+
721
+ attr_accessor :InstanceId
722
+
723
+ def initialize(instanceid=nil)
724
+ @InstanceId = instanceid
725
+ end
726
+
727
+ def deserialize(params)
728
+ @InstanceId = params['InstanceId']
729
+ end
730
+ end
731
+
732
+ # DescribeAccountUsers返回参数结构体
733
+ class DescribeAccountUsersResponse < TencentCloud::Common::AbstractModel
734
+ # @param Users: 实例账号列表。
735
+ # @type Users: Array
736
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
737
+ # @type RequestId: String
738
+
739
+ attr_accessor :Users, :RequestId
740
+
741
+ def initialize(users=nil, requestid=nil)
742
+ @Users = users
743
+ @RequestId = requestid
744
+ end
745
+
746
+ def deserialize(params)
747
+ unless params['Users'].nil?
748
+ @Users = []
749
+ params['Users'].each do |i|
750
+ userinfo_tmp = UserInfo.new
751
+ userinfo_tmp.deserialize(i)
752
+ @Users << userinfo_tmp
753
+ end
754
+ end
755
+ @RequestId = params['RequestId']
756
+ end
757
+ end
758
+
716
759
  # DescribeAsyncRequestInfo请求参数结构体
717
760
  class DescribeAsyncRequestInfoRequest < TencentCloud::Common::AbstractModel
718
761
  # @param AsyncRequestId: 异步请求Id,涉及到异步流程的接口返回,如CreateBackupDBInstance
@@ -2948,6 +2991,45 @@ module TencentCloud
2948
2991
  end
2949
2992
  end
2950
2993
 
2994
+ # 账户基本信息
2995
+ class UserInfo < TencentCloud::Common::AbstractModel
2996
+ # @param UserName: 账号名。
2997
+ # @type UserName: String
2998
+ # @param AuthRole: 账号权限详情。
2999
+ # @type AuthRole: Array
3000
+ # @param CreateTime: 账号创建时间。
3001
+ # @type CreateTime: String
3002
+ # @param UpdateTime: 账号更新时间。
3003
+ # @type UpdateTime: String
3004
+ # @param UserDesc: 备注信息。
3005
+ # @type UserDesc: String
3006
+
3007
+ attr_accessor :UserName, :AuthRole, :CreateTime, :UpdateTime, :UserDesc
3008
+
3009
+ def initialize(username=nil, authrole=nil, createtime=nil, updatetime=nil, userdesc=nil)
3010
+ @UserName = username
3011
+ @AuthRole = authrole
3012
+ @CreateTime = createtime
3013
+ @UpdateTime = updatetime
3014
+ @UserDesc = userdesc
3015
+ end
3016
+
3017
+ def deserialize(params)
3018
+ @UserName = params['UserName']
3019
+ unless params['AuthRole'].nil?
3020
+ @AuthRole = []
3021
+ params['AuthRole'].each do |i|
3022
+ auth_tmp = Auth.new
3023
+ auth_tmp.deserialize(i)
3024
+ @AuthRole << auth_tmp
3025
+ end
3026
+ end
3027
+ @CreateTime = params['CreateTime']
3028
+ @UpdateTime = params['UpdateTime']
3029
+ @UserDesc = params['UserDesc']
3030
+ end
3031
+ end
3032
+
2951
3033
  end
2952
3034
  end
2953
3035
  end
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.414
4
+ version: 3.0.415
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-09-20 00:00:00.000000000 Z
11
+ date: 2022-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common