tencentcloud-sdk-mongodb 1.0.234 → 1.0.235

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: 11fdd8b6a4a08ccbfbd1ae4713c37573062feeed
4
- data.tar.gz: d6e5d7f3a8b7bd73cfa2a8ead9c545fc6ca57a69
3
+ metadata.gz: 954530b043ccbde1b58e58217d60d867522a4a3d
4
+ data.tar.gz: 9a06f396e3b2a4cb305327eb50e37c2577de6af7
5
5
  SHA512:
6
- metadata.gz: 78d3a767d90b6d69bb1d08176d816e924c78642d7d0ee9d67536c9cd824e6bb78bcd6e0e5414ba9e738863ce221488fa347ac240abe5495b478d1736360c8cbe
7
- data.tar.gz: a8ee9aa0b441cc289319b789dc73a02eaf26e6a1b1fc53009ed3089dd3fa3058286158225f19b0dd3ff077e3f6c1263a7b4dc81d4172a8be638a5442672ee56b
6
+ metadata.gz: 0dd1d6f33cfb3b355db5079a49f34ef5b1d2d94f3733add1b0ea5633456272902bcfe712025679a47eb5ef30bfd0cbc3cbd4bc93a8f0c3ed31b609f7c34b6bfd
7
+ data.tar.gz: 3a212940b1cab0f4945fe6d5e028b60c999c0482ea218c06df02a370e41bd76e2ca36b855288e10d8526844396eb9e501aac6125f87304b3488af48ee5f88d67
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.234
1
+ 1.0.235
@@ -727,6 +727,30 @@ module TencentCloud
727
727
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
728
728
  end
729
729
 
730
+ # 账户权限设置。
731
+
732
+ # @param request: Request instance for SetAccountUserPrivilege.
733
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::SetAccountUserPrivilegeRequest`
734
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::SetAccountUserPrivilegeResponse`
735
+ def SetAccountUserPrivilege(request)
736
+ body = send_request('SetAccountUserPrivilege', request.serialize)
737
+ response = JSON.parse(body)
738
+ if response['Response'].key?('Error') == false
739
+ model = SetAccountUserPrivilegeResponse.new
740
+ model.deserialize(response['Response'])
741
+ model
742
+ else
743
+ code = response['Response']['Error']['Code']
744
+ message = response['Response']['Error']['Message']
745
+ reqid = response['Response']['RequestId']
746
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
747
+ end
748
+ rescue TencentCloud::Common::TencentCloudSDKException => e
749
+ raise e
750
+ rescue StandardError => e
751
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
752
+ end
753
+
730
754
 
731
755
  end
732
756
  end
@@ -57,6 +57,26 @@ module TencentCloud
57
57
  end
58
58
  end
59
59
 
60
+ # 用户权限
61
+ class Auth < TencentCloud::Common::AbstractModel
62
+ # @param NameSpace: *表示所有数据库,db.name表示特定的name数据库。
63
+ # @type NameSpace: String
64
+ # @param Mask: 用于控制权限,0无权限,1只读,2只写,3读写。
65
+ # @type Mask: Integer
66
+
67
+ attr_accessor :NameSpace, :Mask
68
+
69
+ def initialize(namespace=nil, mask=nil)
70
+ @NameSpace = namespace
71
+ @Mask = mask
72
+ end
73
+
74
+ def deserialize(params)
75
+ @NameSpace = params['NameSpace']
76
+ @Mask = params['Mask']
77
+ end
78
+ end
79
+
60
80
  # 备份下载任务
61
81
  class BackupDownloadTask < TencentCloud::Common::AbstractModel
62
82
  # @param CreateTime: 任务创建时间
@@ -2566,6 +2586,57 @@ module TencentCloud
2566
2586
  end
2567
2587
  end
2568
2588
 
2589
+ # SetAccountUserPrivilege请求参数结构体
2590
+ class SetAccountUserPrivilegeRequest < TencentCloud::Common::AbstractModel
2591
+ # @param InstanceId: 实例ID
2592
+ # @type InstanceId: String
2593
+ # @param UserName: 账号名称
2594
+ # @type UserName: String
2595
+ # @param AuthRole: 权限信息
2596
+ # @type AuthRole: Array
2597
+
2598
+ attr_accessor :InstanceId, :UserName, :AuthRole
2599
+
2600
+ def initialize(instanceid=nil, username=nil, authrole=nil)
2601
+ @InstanceId = instanceid
2602
+ @UserName = username
2603
+ @AuthRole = authrole
2604
+ end
2605
+
2606
+ def deserialize(params)
2607
+ @InstanceId = params['InstanceId']
2608
+ @UserName = params['UserName']
2609
+ unless params['AuthRole'].nil?
2610
+ @AuthRole = []
2611
+ params['AuthRole'].each do |i|
2612
+ auth_tmp = Auth.new
2613
+ auth_tmp.deserialize(i)
2614
+ @AuthRole << auth_tmp
2615
+ end
2616
+ end
2617
+ end
2618
+ end
2619
+
2620
+ # SetAccountUserPrivilege返回参数结构体
2621
+ class SetAccountUserPrivilegeResponse < TencentCloud::Common::AbstractModel
2622
+ # @param FlowId: 设置任务ID,用于查询是否设置完成
2623
+ # @type FlowId: Integer
2624
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2625
+ # @type RequestId: String
2626
+
2627
+ attr_accessor :FlowId, :RequestId
2628
+
2629
+ def initialize(flowid=nil, requestid=nil)
2630
+ @FlowId = flowid
2631
+ @RequestId = requestid
2632
+ end
2633
+
2634
+ def deserialize(params)
2635
+ @FlowId = params['FlowId']
2636
+ @RequestId = params['RequestId']
2637
+ end
2638
+ end
2639
+
2569
2640
  # 实例分片详情
2570
2641
  class ShardInfo < TencentCloud::Common::AbstractModel
2571
2642
  # @param UsedVolume: 分片已使用容量
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: 1.0.234
4
+ version: 1.0.235
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-30 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common