tencentcloud-sdk-tcbr 1.0.338 → 1.0.339

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: cad1329f383b30ccb14ff0e0bf2ac6b1260bf960
4
- data.tar.gz: 8d5148de4f2f7c51f08b25960f03568defba77d3
3
+ metadata.gz: 9f036cbab0718d58992d842355a6563c379e222b
4
+ data.tar.gz: b94dc0a3fadc57b7870837f2de26997cd19d7afd
5
5
  SHA512:
6
- metadata.gz: a20ec766d6b3920fe45d71dd5e69a8d6ac22524248cbd60ffd399bc4862e53ba4f38b9fcb1f7fa1b07e3dac09157cbd1a7ce9e4cc02e0dd46cdf6be15f32ad21
7
- data.tar.gz: 862fd52ac574339aa5cd632bd2d173c4942d20d2b844d54cd355851c1b9ab0d31a239e2f5603e550d77cf6a127f534e1596560dbe5d80cadf144bf7ce7b39a00
6
+ metadata.gz: bae7dc59934d20ec6b1c8f11c900c7c18543149a50adf2c0d5ead8c886cd6b82538c79472332d4a1f19954253bac50c9eaed53d1b730358c272cafce9037f811
7
+ data.tar.gz: 79cca93a86ee709e9098a975b25e97f794a2d18146a67b5aa17ea2645be39f3be849bb550097dda203de6a1499b8ad0dd68f0c91c3f3b98d1c56b8fba77bccc5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.338
1
+ 1.0.339
@@ -173,6 +173,54 @@ module TencentCloud
173
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
174
  end
175
175
 
176
+ # 操作发布单
177
+
178
+ # @param request: Request instance for OperateServerManage.
179
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::OperateServerManageRequest`
180
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::OperateServerManageResponse`
181
+ def OperateServerManage(request)
182
+ body = send_request('OperateServerManage', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = OperateServerManageResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 灰度发布
201
+
202
+ # @param request: Request instance for ReleaseGray.
203
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::ReleaseGrayRequest`
204
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::ReleaseGrayResponse`
205
+ def ReleaseGray(request)
206
+ body = send_request('ReleaseGray', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = ReleaseGrayResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
176
224
  # 更新云托管服务
177
225
 
178
226
  # @param request: Request instance for UpdateCloudRunServer.
@@ -746,6 +746,137 @@ module TencentCloud
746
746
  end
747
747
  end
748
748
 
749
+ # 通用Key Value
750
+ class ObjectKV < TencentCloud::Common::AbstractModel
751
+ # @param Key: 键值对Key
752
+ # @type Key: String
753
+ # @param Value: 键值对Value
754
+ # @type Value: String
755
+
756
+ attr_accessor :Key, :Value
757
+
758
+ def initialize(key=nil, value=nil)
759
+ @Key = key
760
+ @Value = value
761
+ end
762
+
763
+ def deserialize(params)
764
+ @Key = params['Key']
765
+ @Value = params['Value']
766
+ end
767
+ end
768
+
769
+ # OperateServerManage请求参数结构体
770
+ class OperateServerManageRequest < TencentCloud::Common::AbstractModel
771
+ # @param EnvId: 环境Id
772
+ # @type EnvId: String
773
+ # @param ServerName: 服务名
774
+ # @type ServerName: String
775
+ # @param TaskId: 任报Id
776
+ # @type TaskId: Integer
777
+ # @param OperateType: 操作类型:cancel | go_back | done
778
+ # @type OperateType: String
779
+ # @param OperatorRemark: 操作标识
780
+ # @type OperatorRemark: String
781
+
782
+ attr_accessor :EnvId, :ServerName, :TaskId, :OperateType, :OperatorRemark
783
+
784
+ def initialize(envid=nil, servername=nil, taskid=nil, operatetype=nil, operatorremark=nil)
785
+ @EnvId = envid
786
+ @ServerName = servername
787
+ @TaskId = taskid
788
+ @OperateType = operatetype
789
+ @OperatorRemark = operatorremark
790
+ end
791
+
792
+ def deserialize(params)
793
+ @EnvId = params['EnvId']
794
+ @ServerName = params['ServerName']
795
+ @TaskId = params['TaskId']
796
+ @OperateType = params['OperateType']
797
+ @OperatorRemark = params['OperatorRemark']
798
+ end
799
+ end
800
+
801
+ # OperateServerManage返回参数结构体
802
+ class OperateServerManageResponse < TencentCloud::Common::AbstractModel
803
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
804
+ # @type RequestId: String
805
+
806
+ attr_accessor :RequestId
807
+
808
+ def initialize(requestid=nil)
809
+ @RequestId = requestid
810
+ end
811
+
812
+ def deserialize(params)
813
+ @RequestId = params['RequestId']
814
+ end
815
+ end
816
+
817
+ # ReleaseGray请求参数结构体
818
+ class ReleaseGrayRequest < TencentCloud::Common::AbstractModel
819
+ # @param EnvId: 环境Id
820
+ # @type EnvId: String
821
+ # @param ServerName: 服务名
822
+ # @type ServerName: String
823
+ # @param GrayType: 灰度类型
824
+ # @type GrayType: String
825
+ # @param TrafficType: 流量类型
826
+ # @type TrafficType: String
827
+ # @param VersionFlowItems: 流量策略
828
+ # @type VersionFlowItems: Array
829
+ # @param OperatorRemark: 操作标识
830
+ # @type OperatorRemark: String
831
+ # @param GrayFlowRatio: 流量比例
832
+ # @type GrayFlowRatio: Integer
833
+
834
+ attr_accessor :EnvId, :ServerName, :GrayType, :TrafficType, :VersionFlowItems, :OperatorRemark, :GrayFlowRatio
835
+
836
+ def initialize(envid=nil, servername=nil, graytype=nil, traffictype=nil, versionflowitems=nil, operatorremark=nil, grayflowratio=nil)
837
+ @EnvId = envid
838
+ @ServerName = servername
839
+ @GrayType = graytype
840
+ @TrafficType = traffictype
841
+ @VersionFlowItems = versionflowitems
842
+ @OperatorRemark = operatorremark
843
+ @GrayFlowRatio = grayflowratio
844
+ end
845
+
846
+ def deserialize(params)
847
+ @EnvId = params['EnvId']
848
+ @ServerName = params['ServerName']
849
+ @GrayType = params['GrayType']
850
+ @TrafficType = params['TrafficType']
851
+ unless params['VersionFlowItems'].nil?
852
+ @VersionFlowItems = []
853
+ params['VersionFlowItems'].each do |i|
854
+ versionflowinfo_tmp = VersionFlowInfo.new
855
+ versionflowinfo_tmp.deserialize(i)
856
+ @VersionFlowItems << versionflowinfo_tmp
857
+ end
858
+ end
859
+ @OperatorRemark = params['OperatorRemark']
860
+ @GrayFlowRatio = params['GrayFlowRatio']
861
+ end
862
+ end
863
+
864
+ # ReleaseGray返回参数结构体
865
+ class ReleaseGrayResponse < TencentCloud::Common::AbstractModel
866
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
867
+ # @type RequestId: String
868
+
869
+ attr_accessor :RequestId
870
+
871
+ def initialize(requestid=nil)
872
+ @RequestId = requestid
873
+ end
874
+
875
+ def deserialize(params)
876
+ @RequestId = params['RequestId']
877
+ end
878
+ end
879
+
749
880
  # 代码仓库信息
750
881
  class RepositoryInfo < TencentCloud::Common::AbstractModel
751
882
  # @param Source: git source
@@ -1040,6 +1171,41 @@ module TencentCloud
1040
1171
  end
1041
1172
  end
1042
1173
 
1174
+ # 版本流量信息
1175
+ class VersionFlowInfo < TencentCloud::Common::AbstractModel
1176
+ # @param VersionName: 版本名
1177
+ # @type VersionName: String
1178
+ # @param IsDefaultPriority: 是否默认版本
1179
+ # @type IsDefaultPriority: Boolean
1180
+ # @param FlowRatio: 流量比例
1181
+ # @type FlowRatio: Integer
1182
+ # @param UrlParam: 测试KV值
1183
+ # @type UrlParam: :class:`Tencentcloud::Tcbr.v20220217.models.ObjectKV`
1184
+ # @param Priority: 权重
1185
+ # @type Priority: Integer
1186
+
1187
+ attr_accessor :VersionName, :IsDefaultPriority, :FlowRatio, :UrlParam, :Priority
1188
+
1189
+ def initialize(versionname=nil, isdefaultpriority=nil, flowratio=nil, urlparam=nil, priority=nil)
1190
+ @VersionName = versionname
1191
+ @IsDefaultPriority = isdefaultpriority
1192
+ @FlowRatio = flowratio
1193
+ @UrlParam = urlparam
1194
+ @Priority = priority
1195
+ end
1196
+
1197
+ def deserialize(params)
1198
+ @VersionName = params['VersionName']
1199
+ @IsDefaultPriority = params['IsDefaultPriority']
1200
+ @FlowRatio = params['FlowRatio']
1201
+ unless params['UrlParam'].nil?
1202
+ @UrlParam = ObjectKV.new
1203
+ @UrlParam.deserialize(params['UrlParam'])
1204
+ end
1205
+ @Priority = params['Priority']
1206
+ end
1207
+ end
1208
+
1043
1209
  end
1044
1210
  end
1045
1211
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tcbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.338
4
+ version: 1.0.339
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-06-20 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common