tencentcloud-sdk-cynosdb 1.0.283 → 1.0.284

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: fbea551086e688f692a394ddb8eb3e52e06b38b4
4
- data.tar.gz: 71c865c06c837f063de923e0227bc0f7d06e7df6
3
+ metadata.gz: 121d5ab3a14381aead3b268a54576a00e07c293f
4
+ data.tar.gz: 0ca74634aa5c4c25c34a77de63b504931ac4485b
5
5
  SHA512:
6
- metadata.gz: c7dde410f2a890e6f388f2ddf2b30630777e0cd646fc22af8012d89df561f4757cdce2b4110e3670fd5995061c6205b0a1a3141b1fda7e35c21f0969e259cdfc
7
- data.tar.gz: 9d6dd08bf3cacb78dd30e3c05b073fa5a8a28041a4e7c126b37c1f81e8bf0fb4591ab4b7fcfa1a429f101aef6067ac49ac85e8314511248a7831c1c493d93b7a
6
+ metadata.gz: 58639a20756c4da16abf936a6ee5537ce96ed84c95465641506b21757ddab42fc5af03761d235552aed7a4459d120f26dee3cdde066a66325bfa6ca3117cca64
7
+ data.tar.gz: 9efabe7aad3f795298b92180b8d082e991790a6e5440c20f0796995b6cfcc209f0b852ee208bb7694d26460e00d9942d6a00dddd2ae7a571e9e7cb2b22a8450c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.283
1
+ 1.0.284
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cynosdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.283
4
+ version: 1.0.284
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud