tencentcloud-sdk-mongodb 3.0.871 → 3.0.872

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: 6d8b6a4491fee36f5947483cdbdb6fe66b2dc99c
4
- data.tar.gz: d2f07a69e5714da5c9e26316c7a8b7cb9ac419c0
3
+ metadata.gz: 6d29af82440080ba6d0e2200c99091fab388c699
4
+ data.tar.gz: 22b2ff3f4fef41fa1e23a2bb03a6495d27f104c6
5
5
  SHA512:
6
- metadata.gz: 43a405675f3e3672309d7266885677ebdfab2aa82f62cdd98d8dc74e6de01d356f122820fa35f0c4d7ea1137bd214275a1afe369a37c43bf5131f7dc542abd22
7
- data.tar.gz: 6891095da82b320f0d07201713c8bd817a0be02ee70f897d83957d43f8c5cc45c9c2ba291dc085b3e9250ed6e543b7a46ec7c1ccdf2f6680160964c3c5a8c9b6
6
+ metadata.gz: 67518d4927529b97e58db422677f301e33579b658713c8454aa6dbf4d2dea2dc00940cbc339425bbfc167acce7485323aa17cc14235bba61ad4b1e555a077e6b
7
+ data.tar.gz: 77eb65bbc61e6b2eec511d5bc533f7ab2340ea9df2dd1566f9f4d3aff804d52d6546dee77117a6569bb6ae64eaae64c8fd05089f1d0aae89ed84277098693a5c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.871
1
+ 3.0.872
@@ -1091,6 +1091,30 @@ module TencentCloud
1091
1091
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1092
1092
  end
1093
1093
 
1094
+ # 本接口用于重启数据库节点。
1095
+
1096
+ # @param request: Request instance for RestartNodes.
1097
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::RestartNodesRequest`
1098
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::RestartNodesResponse`
1099
+ def RestartNodes(request)
1100
+ body = send_request('RestartNodes', request.serialize)
1101
+ response = JSON.parse(body)
1102
+ if response['Response'].key?('Error') == false
1103
+ model = RestartNodesResponse.new
1104
+ model.deserialize(response['Response'])
1105
+ model
1106
+ else
1107
+ code = response['Response']['Error']['Code']
1108
+ message = response['Response']['Error']['Message']
1109
+ reqid = response['Response']['RequestId']
1110
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1111
+ end
1112
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1113
+ raise e
1114
+ rescue StandardError => e
1115
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1116
+ end
1117
+
1094
1118
  # 本接口(SetAccountUserPrivilege)用于设置实例的账号权限。
1095
1119
 
1096
1120
  # @param request: Request instance for SetAccountUserPrivilege.
@@ -514,10 +514,12 @@ module TencentCloud
514
514
  # @type ReadonlyNodeAvailabilityZoneList: Array
515
515
  # @param HiddenZone: Hidden节点所属可用区。跨可用区部署实例,必须配置该参数。
516
516
  # @type HiddenZone: String
517
+ # @param ParamTemplateId: 参数模板 ID。参数模板是一组 MongoDB 的参数并为预设置了参数值的集合,将一组有相同诉求的参数及值 存为模板,在创建实例时,可直接引用参数值到新实例。合理使用参数模板,可以提高MongoDB数据库的效率。模板列表从 DescribeDBInstanceParamTpl 接口获取,注意模板支持的版本。
518
+ # @type ParamTemplateId: String
517
519
 
518
- attr_accessor :Memory, :Volume, :ReplicateSetNum, :NodeNum, :MongoVersion, :MachineCode, :GoodsNum, :Zone, :ClusterType, :VpcId, :SubnetId, :Password, :ProjectId, :Tags, :Clone, :Father, :SecurityGroup, :RestoreTime, :InstanceName, :AvailabilityZoneList, :MongosCpu, :MongosMemory, :MongosNodeNum, :ReadonlyNodeNum, :ReadonlyNodeAvailabilityZoneList, :HiddenZone
520
+ attr_accessor :Memory, :Volume, :ReplicateSetNum, :NodeNum, :MongoVersion, :MachineCode, :GoodsNum, :Zone, :ClusterType, :VpcId, :SubnetId, :Password, :ProjectId, :Tags, :Clone, :Father, :SecurityGroup, :RestoreTime, :InstanceName, :AvailabilityZoneList, :MongosCpu, :MongosMemory, :MongosNodeNum, :ReadonlyNodeNum, :ReadonlyNodeAvailabilityZoneList, :HiddenZone, :ParamTemplateId
519
521
 
520
- def initialize(memory=nil, volume=nil, replicatesetnum=nil, nodenum=nil, mongoversion=nil, machinecode=nil, goodsnum=nil, zone=nil, clustertype=nil, vpcid=nil, subnetid=nil, password=nil, projectid=nil, tags=nil, clone=nil, father=nil, securitygroup=nil, restoretime=nil, instancename=nil, availabilityzonelist=nil, mongoscpu=nil, mongosmemory=nil, mongosnodenum=nil, readonlynodenum=nil, readonlynodeavailabilityzonelist=nil, hiddenzone=nil)
522
+ def initialize(memory=nil, volume=nil, replicatesetnum=nil, nodenum=nil, mongoversion=nil, machinecode=nil, goodsnum=nil, zone=nil, clustertype=nil, vpcid=nil, subnetid=nil, password=nil, projectid=nil, tags=nil, clone=nil, father=nil, securitygroup=nil, restoretime=nil, instancename=nil, availabilityzonelist=nil, mongoscpu=nil, mongosmemory=nil, mongosnodenum=nil, readonlynodenum=nil, readonlynodeavailabilityzonelist=nil, hiddenzone=nil, paramtemplateid=nil)
521
523
  @Memory = memory
522
524
  @Volume = volume
523
525
  @ReplicateSetNum = replicatesetnum
@@ -544,6 +546,7 @@ module TencentCloud
544
546
  @ReadonlyNodeNum = readonlynodenum
545
547
  @ReadonlyNodeAvailabilityZoneList = readonlynodeavailabilityzonelist
546
548
  @HiddenZone = hiddenzone
549
+ @ParamTemplateId = paramtemplateid
547
550
  end
548
551
 
549
552
  def deserialize(params)
@@ -580,6 +583,7 @@ module TencentCloud
580
583
  @ReadonlyNodeNum = params['ReadonlyNodeNum']
581
584
  @ReadonlyNodeAvailabilityZoneList = params['ReadonlyNodeAvailabilityZoneList']
582
585
  @HiddenZone = params['HiddenZone']
586
+ @ParamTemplateId = params['ParamTemplateId']
583
587
  end
584
588
  end
585
589
 
@@ -759,10 +763,12 @@ module TencentCloud
759
763
  # @type ReadonlyNodeAvailabilityZoneList: Array
760
764
  # @param HiddenZone: Hidden节点所属可用区。跨可用区部署实例,必须配置该参数。
761
765
  # @type HiddenZone: String
766
+ # @param ParamTemplateId: 参数模板 ID。参数模板是一组 MongoDB 的参数并为预设置了参数值的集合,将一组有相同诉求的参数及值 存为模板,在创建实例时,可直接引用参数值到新实例。合理使用参数模板,可以提高MongoDB数据库的效率。模板列表从 DescribeDBInstanceParamTpl 接口获取,注意模板支持的版本及实例类型。
767
+ # @type ParamTemplateId: String
762
768
 
763
- attr_accessor :NodeNum, :Memory, :Volume, :MongoVersion, :GoodsNum, :Zone, :Period, :MachineCode, :ClusterType, :ReplicateSetNum, :ProjectId, :VpcId, :SubnetId, :Password, :Tags, :AutoRenewFlag, :AutoVoucher, :Clone, :Father, :SecurityGroup, :RestoreTime, :InstanceName, :AvailabilityZoneList, :MongosCpu, :MongosMemory, :MongosNodeNum, :ReadonlyNodeNum, :ReadonlyNodeAvailabilityZoneList, :HiddenZone
769
+ attr_accessor :NodeNum, :Memory, :Volume, :MongoVersion, :GoodsNum, :Zone, :Period, :MachineCode, :ClusterType, :ReplicateSetNum, :ProjectId, :VpcId, :SubnetId, :Password, :Tags, :AutoRenewFlag, :AutoVoucher, :Clone, :Father, :SecurityGroup, :RestoreTime, :InstanceName, :AvailabilityZoneList, :MongosCpu, :MongosMemory, :MongosNodeNum, :ReadonlyNodeNum, :ReadonlyNodeAvailabilityZoneList, :HiddenZone, :ParamTemplateId
764
770
 
765
- def initialize(nodenum=nil, memory=nil, volume=nil, mongoversion=nil, goodsnum=nil, zone=nil, period=nil, machinecode=nil, clustertype=nil, replicatesetnum=nil, projectid=nil, vpcid=nil, subnetid=nil, password=nil, tags=nil, autorenewflag=nil, autovoucher=nil, clone=nil, father=nil, securitygroup=nil, restoretime=nil, instancename=nil, availabilityzonelist=nil, mongoscpu=nil, mongosmemory=nil, mongosnodenum=nil, readonlynodenum=nil, readonlynodeavailabilityzonelist=nil, hiddenzone=nil)
771
+ def initialize(nodenum=nil, memory=nil, volume=nil, mongoversion=nil, goodsnum=nil, zone=nil, period=nil, machinecode=nil, clustertype=nil, replicatesetnum=nil, projectid=nil, vpcid=nil, subnetid=nil, password=nil, tags=nil, autorenewflag=nil, autovoucher=nil, clone=nil, father=nil, securitygroup=nil, restoretime=nil, instancename=nil, availabilityzonelist=nil, mongoscpu=nil, mongosmemory=nil, mongosnodenum=nil, readonlynodenum=nil, readonlynodeavailabilityzonelist=nil, hiddenzone=nil, paramtemplateid=nil)
766
772
  @NodeNum = nodenum
767
773
  @Memory = memory
768
774
  @Volume = volume
@@ -792,6 +798,7 @@ module TencentCloud
792
798
  @ReadonlyNodeNum = readonlynodenum
793
799
  @ReadonlyNodeAvailabilityZoneList = readonlynodeavailabilityzonelist
794
800
  @HiddenZone = hiddenzone
801
+ @ParamTemplateId = paramtemplateid
795
802
  end
796
803
 
797
804
  def deserialize(params)
@@ -831,6 +838,7 @@ module TencentCloud
831
838
  @ReadonlyNodeNum = params['ReadonlyNodeNum']
832
839
  @ReadonlyNodeAvailabilityZoneList = params['ReadonlyNodeAvailabilityZoneList']
833
840
  @HiddenZone = params['HiddenZone']
841
+ @ParamTemplateId = params['ParamTemplateId']
834
842
  end
835
843
  end
836
844
 
@@ -3982,6 +3990,46 @@ module TencentCloud
3982
3990
  end
3983
3991
  end
3984
3992
 
3993
+ # RestartNodes请求参数结构体
3994
+ class RestartNodesRequest < TencentCloud::Common::AbstractModel
3995
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同。
3996
+ # @type InstanceId: String
3997
+ # @param NodeIds: 节点Id。
3998
+ # @type NodeIds: Array
3999
+
4000
+ attr_accessor :InstanceId, :NodeIds
4001
+
4002
+ def initialize(instanceid=nil, nodeids=nil)
4003
+ @InstanceId = instanceid
4004
+ @NodeIds = nodeids
4005
+ end
4006
+
4007
+ def deserialize(params)
4008
+ @InstanceId = params['InstanceId']
4009
+ @NodeIds = params['NodeIds']
4010
+ end
4011
+ end
4012
+
4013
+ # RestartNodes返回参数结构体
4014
+ class RestartNodesResponse < TencentCloud::Common::AbstractModel
4015
+ # @param FlowId: 流程Id。
4016
+ # @type FlowId: Integer
4017
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4018
+ # @type RequestId: String
4019
+
4020
+ attr_accessor :FlowId, :RequestId
4021
+
4022
+ def initialize(flowid=nil, requestid=nil)
4023
+ @FlowId = flowid
4024
+ @RequestId = requestid
4025
+ end
4026
+
4027
+ def deserialize(params)
4028
+ @FlowId = params['FlowId']
4029
+ @RequestId = params['RequestId']
4030
+ end
4031
+ end
4032
+
3985
4033
  # 安全组信息
3986
4034
  class SecurityGroup < TencentCloud::Common::AbstractModel
3987
4035
  # @param ProjectId: 所属项目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.871
4
+ version: 3.0.872
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-23 00:00:00.000000000 Z
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common