Skip to content

Commit

Permalink
release 3.1.96 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Aug 1, 2024
1 parent a73f0a8 commit 1fac80d
Show file tree
Hide file tree
Showing 49 changed files with 6,014 additions and 1 deletion.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# 3.1.96 2024-08-01

### HuaweiCloud SDK LTS

- _Features_
- Support the following APIs:
- `ListConsumerGroup`
- `CreateConsumerGroup`
- `ConsumerGroupHeartBeat`
- `ShowLogStreamShards`
- `ListDetailsConsumerGroup`
- `UpdateCheckPoint`
- `DeleteConsumerGroup`
- `ShowCursorByTime`
- `ShowCursorTime`
- _Bug Fix_
- None
- _Change_
- None

# 3.1.95 2024-07-25

### HuaweiCloud SDK OCR
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# 3.1.96 2024-08-01

### HuaweiCloud SDK LTS

- _新增特性_
- 支持以下接口:
- `ListConsumerGroup`
- `CreateConsumerGroup`
- `ConsumerGroupHeartBeat`
- `ShowLogStreamShards`
- `ListDetailsConsumerGroup`
- `UpdateCheckPoint`
- `DeleteConsumerGroup`
- `ShowCursorByTime`
- `ShowCursorTime`
- _解决问题_
-
- _特性变更_
-

# 3.1.95 2024-07-25

### HuaweiCloud SDK OCR
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.95
3.1.96
97 changes: 97 additions & 0 deletions lts/include/huaweicloud/lts/v2/LtsClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,30 @@
#include <huaweicloud/lts/v2/model/UpdateAomMappingRulesResponse.h>
#include <string>

#include <huaweicloud/lts/v2/model/ConsumerCheckpointInfo.h>
#include <huaweicloud/lts/v2/model/ConsumerGroupHeartBeatRequest.h>
#include <huaweicloud/lts/v2/model/ConsumerGroupHeartBeatResponse.h>
#include <huaweicloud/lts/v2/model/ConsumerGroupInfo.h>
#include <huaweicloud/lts/v2/model/ConsumerShardCheckpointInfo.h>
#include <huaweicloud/lts/v2/model/CreateConsumerGroupRequest.h>
#include <huaweicloud/lts/v2/model/CreateConsumerGroupResponse.h>
#include <huaweicloud/lts/v2/model/DeleteConsumerGroupRequest.h>
#include <huaweicloud/lts/v2/model/DeleteConsumerGroupResponse.h>
#include <huaweicloud/lts/v2/model/ListConsumerGroupRequest.h>
#include <huaweicloud/lts/v2/model/ListConsumerGroupResponse.h>
#include <huaweicloud/lts/v2/model/ListDetailsConsumerGroupRequest.h>
#include <huaweicloud/lts/v2/model/ListDetailsConsumerGroupResponse.h>
#include <huaweicloud/lts/v2/model/ShowCursorByTimeRequest.h>
#include <huaweicloud/lts/v2/model/ShowCursorByTimeResponse.h>
#include <huaweicloud/lts/v2/model/ShowCursorTimeRequest.h>
#include <huaweicloud/lts/v2/model/ShowCursorTimeResponse.h>
#include <huaweicloud/lts/v2/model/ShowLogStreamShardsRequest.h>
#include <huaweicloud/lts/v2/model/ShowLogStreamShardsResponse.h>
#include <huaweicloud/lts/v2/model/UpdateCheckPointRequest.h>
#include <huaweicloud/lts/v2/model/UpdateCheckPointResponse.h>
#include <string>
#include <vector>

#include <huaweicloud/lts/v2/model/ChangeAlarmRuleStatus.h>
#include <huaweicloud/lts/v2/model/CreateSqlAlarmRuleRequest.h>
#include <huaweicloud/lts/v2/model/CreateSqlAlarmRuleRequestBody.h>
Expand Down Expand Up @@ -868,6 +892,79 @@ class HUAWEICLOUD_LTS_V2_EXPORT LtsClient : public Client
UpdateAomMappingRulesRequest &request
);

// 消费者发送心跳到服务端
//
// 消费者发送心跳到服务端
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ConsumerGroupHeartBeatResponse> consumerGroupHeartBeat(
ConsumerGroupHeartBeatRequest &request
);
// 创建消费组
//
// 创建消费组
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<CreateConsumerGroupResponse> createConsumerGroup(
CreateConsumerGroupRequest &request
);
// 删除消费组
//
// 删除消费组
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<DeleteConsumerGroupResponse> deleteConsumerGroup(
DeleteConsumerGroupRequest &request
);
// 查询消费组列表
//
// 查询消费组列表
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ListConsumerGroupResponse> listConsumerGroup(
ListConsumerGroupRequest &request
);
// 查询消费组详情
//
// 查询消费组详情
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ListDetailsConsumerGroupResponse> listDetailsConsumerGroup(
ListDetailsConsumerGroupRequest &request
);
// 通过时间获取消费游标
//
// 通过时间查询cursor
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowCursorByTimeResponse> showCursorByTime(
ShowCursorByTimeRequest &request
);
// 通过消费游标获取时间
//
// 通过cursor查询服务端时间
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowCursorTimeResponse> showCursorTime(
ShowCursorTimeRequest &request
);
// 流消费获取Shards
//
// 流消费获取所有的query shards
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowLogStreamShardsResponse> showLogStreamShards(
ShowLogStreamShardsRequest &request
);
// 更新消费组位点
//
// 更新消费组位点
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<UpdateCheckPointResponse> updateCheckPoint(
UpdateCheckPointRequest &request
);

// 创建SQL告警规则
//
// 该接口用于创建SQL告警,目前每个帐户最多可以创建共200个关键词告警与SQL告警
Expand Down
9 changes: 9 additions & 0 deletions lts/include/huaweicloud/lts/v2/LtsMeta.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ class HUAWEICLOUD_LTS_V2_EXPORT LtsMeta {
static HttpRequestDef genRequestDefForShowAomMappingRule();
static HttpRequestDef genRequestDefForShowAomMappingRules();
static HttpRequestDef genRequestDefForUpdateAomMappingRules();
static HttpRequestDef genRequestDefForConsumerGroupHeartBeat();
static HttpRequestDef genRequestDefForCreateConsumerGroup();
static HttpRequestDef genRequestDefForDeleteConsumerGroup();
static HttpRequestDef genRequestDefForListConsumerGroup();
static HttpRequestDef genRequestDefForListDetailsConsumerGroup();
static HttpRequestDef genRequestDefForShowCursorByTime();
static HttpRequestDef genRequestDefForShowCursorTime();
static HttpRequestDef genRequestDefForShowLogStreamShards();
static HttpRequestDef genRequestDefForUpdateCheckPoint();
static HttpRequestDef genRequestDefForCreateSqlAlarmRule();
static HttpRequestDef genRequestDefForDeleteSqlAlarmRule();
static HttpRequestDef genRequestDefForListSqlAlarmRules();
Expand Down
119 changes: 119 additions & 0 deletions lts/include/huaweicloud/lts/v2/model/ConsumerCheckpointInfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@

#ifndef HUAWEICLOUD_SDK_LTS_V2_MODEL_ConsumerCheckpointInfo_H_
#define HUAWEICLOUD_SDK_LTS_V2_MODEL_ConsumerCheckpointInfo_H_


#include <huaweicloud/lts/v2/LtsExport.h>

#include <huaweicloud/core/utils/ModelBase.h>
#include <huaweicloud/core/utils/Utils.h>
#include <huaweicloud/core/http/HttpResponse.h>

#include <string>

namespace HuaweiCloud {
namespace Sdk {
namespace Lts {
namespace V2 {
namespace Model {

using namespace HuaweiCloud::Sdk::Core::Utils;
using namespace HuaweiCloud::Sdk::Core::Http;
/// <summary>
///
/// </summary>
class HUAWEICLOUD_LTS_V2_EXPORT ConsumerCheckpointInfo
: public ModelBase
{
public:
ConsumerCheckpointInfo();
virtual ~ConsumerCheckpointInfo();

/////////////////////////////////////////////
/// ModelBase overrides

void validate() override;
web::json::value toJson() const override;
bool fromJson(const web::json::value& json) override;
/////////////////////////////////////////////
/// ConsumerCheckpointInfo members

/// <summary>
/// 游标值
/// </summary>

int64_t getCheckpoint() const;
bool checkpointIsSet() const;
void unsetcheckpoint();
void setCheckpoint(int64_t value);

/// <summary>
/// 消费组名
/// </summary>

std::string getConsumerGroupName() const;
bool consumerGroupNameIsSet() const;
void unsetconsumerGroupName();
void setConsumerGroupName(const std::string& value);

/// <summary>
/// 消费者名
/// </summary>

std::string getConsumerName() const;
bool consumerNameIsSet() const;
void unsetconsumerName();
void setConsumerName(const std::string& value);

/// <summary>
/// 项目ID
/// </summary>

std::string getProjectId() const;
bool projectIdIsSet() const;
void unsetprojectId();
void setProjectId(const std::string& value);

/// <summary>
/// 日志Shard ID
/// </summary>

std::string getShardId() const;
bool shardIdIsSet() const;
void unsetshardId();
void setShardId(const std::string& value);

/// <summary>
/// 更新时间
/// </summary>

int64_t getUpdateTime() const;
bool updateTimeIsSet() const;
void unsetupdateTime();
void setUpdateTime(int64_t value);


protected:
int64_t checkpoint_;
bool checkpointIsSet_;
std::string consumerGroupName_;
bool consumerGroupNameIsSet_;
std::string consumerName_;
bool consumerNameIsSet_;
std::string projectId_;
bool projectIdIsSet_;
std::string shardId_;
bool shardIdIsSet_;
int64_t updateTime_;
bool updateTimeIsSet_;

};


}
}
}
}
}

#endif // HUAWEICLOUD_SDK_LTS_V2_MODEL_ConsumerCheckpointInfo_H_
Loading

0 comments on commit 1fac80d

Please sign in to comment.