lib/v20220217/client.rb in tencentcloud-sdk-tcbr-1.0.338 vs lib/v20220217/client.rb in tencentcloud-sdk-tcbr-1.0.339

- old
+ new

@@ -171,9 +171,57 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 操作发布单 + + # @param request: Request instance for OperateServerManage. + # @type request: :class:`Tencentcloud::tcbr::V20220217::OperateServerManageRequest` + # @rtype: :class:`Tencentcloud::tcbr::V20220217::OperateServerManageResponse` + def OperateServerManage(request) + body = send_request('OperateServerManage', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = OperateServerManageResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + + # 灰度发布 + + # @param request: Request instance for ReleaseGray. + # @type request: :class:`Tencentcloud::tcbr::V20220217::ReleaseGrayRequest` + # @rtype: :class:`Tencentcloud::tcbr::V20220217::ReleaseGrayResponse` + def ReleaseGray(request) + body = send_request('ReleaseGray', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = ReleaseGrayResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 更新云托管服务 # @param request: Request instance for UpdateCloudRunServer. # @type request: :class:`Tencentcloud::tcbr::V20220217::UpdateCloudRunServerRequest` # @rtype: :class:`Tencentcloud::tcbr::V20220217::UpdateCloudRunServerResponse` \ No newline at end of file