tencentcloud-sdk-mongodb 3.0.779 → 3.0.780

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: 41382e62348dd140eafd09d57174f6c83cf6ac65
4
- data.tar.gz: 8c1661e0c68852d79cfb923f91810350c7bafa20
3
+ metadata.gz: 6f5eddfed5d839be0d0e4332bd20878aff58ddbf
4
+ data.tar.gz: 05dfde859d59289c294e9cead4053e084432fb9e
5
5
  SHA512:
6
- metadata.gz: 85ab4d0e2e23798115cf664515b280463713808933946d80e914d8455af16a47826f9a4bc4497246d0d3e9afc821674708a0ad3d4ae7987b973e0d5c17f946d8
7
- data.tar.gz: 37847a6b0bfdc2cbfaf790abbb6cf2f3e86f8671cd40a1790d7757cd644b9e5797a3a925ce383ae2a55c99f6620db2dd9e617f8a9185470c3289e2f8144fa561
6
+ metadata.gz: 606b1f6bbbf1bb58e4e143ef574525dec4f61f565331d5b62c1a181ed2afc7e5f653519f0df4e3bb46761df61bf06d2d65ad5aae5cb53c37d4fbf133f057e5d8
7
+ data.tar.gz: 9180b6010b6ad8734a41015693112cae8763d1e106d46592ebfc25656655f65972fdf4ef5451dba09e49a9b44279b5a7a7a079c810110ddb74078d69417c6c6e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.779
1
+ 3.0.780
@@ -869,6 +869,30 @@ module TencentCloud
869
869
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
870
  end
871
871
 
872
+ # 本接口(SetInstanceMaintenance ) 用于设置实例维护时间窗。
873
+
874
+ # @param request: Request instance for SetInstanceMaintenance.
875
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::SetInstanceMaintenanceRequest`
876
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::SetInstanceMaintenanceResponse`
877
+ def SetInstanceMaintenance(request)
878
+ body = send_request('SetInstanceMaintenance', request.serialize)
879
+ response = JSON.parse(body)
880
+ if response['Response'].key?('Error') == false
881
+ model = SetInstanceMaintenanceResponse.new
882
+ model.deserialize(response['Response'])
883
+ model
884
+ else
885
+ code = response['Response']['Error']['Code']
886
+ message = response['Response']['Error']['Message']
887
+ reqid = response['Response']['RequestId']
888
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
889
+ end
890
+ rescue TencentCloud::Common::TencentCloudSDKException => e
891
+ raise e
892
+ rescue StandardError => e
893
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
894
+ end
895
+
872
896
  # 本接口(TerminateDBInstances)可将包年包月实例退还隔离。
873
897
 
874
898
  # @param request: Request instance for TerminateDBInstances.
@@ -3336,6 +3336,48 @@ module TencentCloud
3336
3336
  end
3337
3337
  end
3338
3338
 
3339
+ # SetInstanceMaintenance请求参数结构体
3340
+ class SetInstanceMaintenanceRequest < TencentCloud::Common::AbstractModel
3341
+ # @param InstanceId: 指定实例ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
3342
+ # @type InstanceId: String
3343
+ # @param MaintenanceStart: 维护时间窗开始时间。取值范围为"00:00-23:00"的任意整点或半点,如00:00或00:30。
3344
+ # @type MaintenanceStart: String
3345
+ # @param MaintenanceEnd: 维护时间窗结束时间。
3346
+ # - 取值范围为"00:00-23:00"的任意整点或半点,维护时间持续时长最小为30分钟,最大为3小时。
3347
+ # - 结束时间务必是基于开始时间向后的时间。
3348
+ # @type MaintenanceEnd: String
3349
+
3350
+ attr_accessor :InstanceId, :MaintenanceStart, :MaintenanceEnd
3351
+
3352
+ def initialize(instanceid=nil, maintenancestart=nil, maintenanceend=nil)
3353
+ @InstanceId = instanceid
3354
+ @MaintenanceStart = maintenancestart
3355
+ @MaintenanceEnd = maintenanceend
3356
+ end
3357
+
3358
+ def deserialize(params)
3359
+ @InstanceId = params['InstanceId']
3360
+ @MaintenanceStart = params['MaintenanceStart']
3361
+ @MaintenanceEnd = params['MaintenanceEnd']
3362
+ end
3363
+ end
3364
+
3365
+ # SetInstanceMaintenance返回参数结构体
3366
+ class SetInstanceMaintenanceResponse < TencentCloud::Common::AbstractModel
3367
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3368
+ # @type RequestId: String
3369
+
3370
+ attr_accessor :RequestId
3371
+
3372
+ def initialize(requestid=nil)
3373
+ @RequestId = requestid
3374
+ end
3375
+
3376
+ def deserialize(params)
3377
+ @RequestId = params['RequestId']
3378
+ end
3379
+ end
3380
+
3339
3381
  # 实例分片详情
3340
3382
  class ShardInfo < TencentCloud::Common::AbstractModel
3341
3383
  # @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: 3.0.779
4
+ version: 3.0.780
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-03-11 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common