tencentcloud-sdk-cynosdb 1.0.282 → 1.0.285

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: f63039c09916001d893705cbe29eb52c6c88a491
4
- data.tar.gz: d40e9fc45837edd462b2d9024b904b62fe974002
3
+ metadata.gz: 48c81d1f6c080179c72d40d06a2c93e3f54c155c
4
+ data.tar.gz: 3a507cf4d52c5ad62d1a90028f06693faf08c941
5
5
  SHA512:
6
- metadata.gz: 452cad8fb7039808fc45023d07467e9b3f91c9fc9d6dcfc8cc4fbc7d9d0a34dbd4c1f4e7c0c207a0cc03419df2e655e117d79f8baaf851c6ef94df7919616c08
7
- data.tar.gz: e7cd271d0609e4c892945d6aa7ce021958cad0d83d3daf95839d4c7f4799eb7f3a6e2f856647e4b843e450de1bc65f3875d6cd501320856755148c98d91c3b06
6
+ metadata.gz: bc7f5eea66559cdacc7f2a135d7ead6c23dc391090c2275f2193e68d1f161f7561695ee5feecf31f7d1da109a9d1500dbc1482bd995cbc267220c35fe1095197
7
+ data.tar.gz: dd2d7abcc49a7a72bc7cbcc968e8b5b4793f08d677e027fa5b6540b497d3b466d940a98bfcec999897aa5a040deeb997c956659a55f056752e4c771a7d8298a0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.282
1
+ 1.0.285
@@ -101,6 +101,30 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 创建账号
105
+
106
+ # @param request: Request instance for CreateAccounts.
107
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateAccountsRequest`
108
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::CreateAccountsResponse`
109
+ def CreateAccounts(request)
110
+ body = send_request('CreateAccounts', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateAccountsResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
104
128
  # 创建集群
105
129
 
106
130
  # @param request: Request instance for CreateClusters.
@@ -418,6 +418,49 @@ module TencentCloud
418
418
  end
419
419
  end
420
420
 
421
+ # CreateAccounts请求参数结构体
422
+ class CreateAccountsRequest < TencentCloud::Common::AbstractModel
423
+ # @param ClusterId: 集群id
424
+ # @type ClusterId: String
425
+ # @param Accounts: 新账户列表
426
+ # @type Accounts: Array
427
+
428
+ attr_accessor :ClusterId, :Accounts
429
+
430
+ def initialize(clusterid=nil, accounts=nil)
431
+ @ClusterId = clusterid
432
+ @Accounts = accounts
433
+ end
434
+
435
+ def deserialize(params)
436
+ @ClusterId = params['ClusterId']
437
+ unless params['Accounts'].nil?
438
+ @Accounts = []
439
+ params['Accounts'].each do |i|
440
+ newaccount_tmp = NewAccount.new
441
+ newaccount_tmp.deserialize(i)
442
+ @Accounts << newaccount_tmp
443
+ end
444
+ end
445
+ end
446
+ end
447
+
448
+ # CreateAccounts返回参数结构体
449
+ class CreateAccountsResponse < TencentCloud::Common::AbstractModel
450
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
451
+ # @type RequestId: String
452
+
453
+ attr_accessor :RequestId
454
+
455
+ def initialize(requestid=nil)
456
+ @RequestId = requestid
457
+ end
458
+
459
+ def deserialize(params)
460
+ @RequestId = params['RequestId']
461
+ end
462
+ end
463
+
421
464
  # CreateClusters请求参数结构体
422
465
  class CreateClustersRequest < TencentCloud::Common::AbstractModel
423
466
  # @param Zone: 可用区
@@ -664,7 +707,16 @@ module TencentCloud
664
707
 
665
708
  # 集群信息
666
709
  class CynosdbCluster < TencentCloud::Common::AbstractModel
667
- # @param Status: 集群状态
710
+ # @param Status: 集群状态, 可选值如下:
711
+ # creating: 创建中
712
+ # running:运行中
713
+ # isolating:隔离中
714
+ # isolated:已隔离
715
+ # activating:解隔离中
716
+ # offlining:下线中
717
+ # offlined:已下线
718
+ # deleting:删除中
719
+ # deleted:已删除
668
720
  # @type Status: String
669
721
  # @param UpdateTime: 更新时间
670
722
  # @type UpdateTime: String
@@ -2835,6 +2887,34 @@ module TencentCloud
2835
2887
  end
2836
2888
  end
2837
2889
 
2890
+ # 新创建的账号
2891
+ class NewAccount < TencentCloud::Common::AbstractModel
2892
+ # @param AccountName: 账户名
2893
+ # @type AccountName: String
2894
+ # @param AccountPassword: 密码
2895
+ # @type AccountPassword: String
2896
+ # @param Host: 主机
2897
+ # @type Host: String
2898
+ # @param Description: 描述
2899
+ # @type Description: String
2900
+
2901
+ attr_accessor :AccountName, :AccountPassword, :Host, :Description
2902
+
2903
+ def initialize(accountname=nil, accountpassword=nil, host=nil, description=nil)
2904
+ @AccountName = accountname
2905
+ @AccountPassword = accountpassword
2906
+ @Host = host
2907
+ @Description = description
2908
+ end
2909
+
2910
+ def deserialize(params)
2911
+ @AccountName = params['AccountName']
2912
+ @AccountPassword = params['AccountPassword']
2913
+ @Host = params['Host']
2914
+ @Description = params['Description']
2915
+ end
2916
+ end
2917
+
2838
2918
  # 任务信息
2839
2919
  class ObjectTask < TencentCloud::Common::AbstractModel
2840
2920
  # @param TaskId: 任务自增ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cynosdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.282
4
+ version: 1.0.285
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-03-23 00:00:00.000000000 Z
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common