Skip to content

Commit

Permalink
release 3.1.104 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Sep 26, 2024
1 parent f28b29f commit eff00b0
Show file tree
Hide file tree
Showing 46 changed files with 6,415 additions and 8 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# 3.1.104 2024-09-26

### HuaweiCloud SDK DDS

- _API Version_
- V3
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **ResizeInstance**
- changes of request param
- `+ resize.target_type: enum value [config,readonly]`

### HuaweiCloud SDK Live

- _API Version_
- V1
- _Features_
- Support the following APIs:
- `ListHarvestTask`
- `ModifyHarvestTask`
- `CreateHarvestTask`
- `DeleteHarvestTask`
- `UpdateHarvestJobStatus`
- _Bug Fix_
- None
- _Change_
- None

# 3.1.103 2024-09-23

### HuaweiCloud SDK CDN
Expand Down
31 changes: 31 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# 3.1.104 2024-09-26

### HuaweiCloud SDK DDS

- _接口版本_
- V3
- _新增特性_
-
- _解决问题_
-
- _特性变更_
- **ResizeInstance**
- 请求参数变更
- `+ resize.target_type: enum value [config,readonly]`

### HuaweiCloud SDK Live

- _接口版本_
- V1
- _新增特性_
- 支持以下接口:
- `ListHarvestTask`
- `ModifyHarvestTask`
- `CreateHarvestTask`
- `DeleteHarvestTask`
- `UpdateHarvestJobStatus`
- _解决问题_
-
- _特性变更_
-

# 3.1.103 2024-09-23

### HuaweiCloud SDK CDN
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.103
3.1.104
2 changes: 1 addition & 1 deletion dds/include/huaweicloud/dds/v3/model/BackupDatabase.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class HUAWEICLOUD_DDS_V3_EXPORT BackupDatabase
void setType(const std::string& value);

/// <summary>
/// 数据库版本。取值:“3.2”、“3.4”或“4.0”。
/// 数据库版本。取值:“3.4”、“4.0”、“4.2”、“4.4”、“5.0”。
/// </summary>

std::string getVersion() const;
Expand Down
2 changes: 1 addition & 1 deletion dds/include/huaweicloud/dds/v3/model/Datastore.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class HUAWEICLOUD_DDS_V3_EXPORT Datastore
void setType(const std::string& value);

/// <summary>
/// 数据库版本。支持3.4、3.2和4.0版本。取值为“3.4”、“3.2”或“4.0”。
/// 数据库版本。支持3.4及以上版本。取值为“3.4”、“4.0”、“4.2”、“4.4”、“5.0”。
/// </summary>

std::string getVersion() const;
Expand Down
2 changes: 1 addition & 1 deletion dds/include/huaweicloud/dds/v3/model/DatastoreResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class HUAWEICLOUD_DDS_V3_EXPORT DatastoreResult
void setNodeType(const std::string& value);

/// <summary>
/// version数据库版本。DDS引擎取值为3.2, 3.4, 4.0。
/// version数据库版本。
/// </summary>

std::string getVersion() const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class HUAWEICLOUD_DDS_V3_EXPORT ListDatastoreVersionsResponse
/// ListDatastoreVersionsResponse members

/// <summary>
/// 数据库版本。支持3.4、3.2和4.0版本
/// 数据库版本。支持3.4及以上版本
/// </summary>

std::vector<std::string>& getVersions();
Expand Down
2 changes: 1 addition & 1 deletion dds/include/huaweicloud/dds/v3/model/RecycleDatastore.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class HUAWEICLOUD_DDS_V3_EXPORT RecycleDatastore
void setType(const std::string& value);

/// <summary>
/// 数据库版本。支持3.4、3.2和4.0版本。取值为“3.4”、“3.2”或“4.0”。
/// 数据库版本。支持3.4及以上版本。取值为“3.4”、“4.0”、“4.2”、“4.4”或“5.0”。
/// </summary>

std::string getVersion() const;
Expand Down
4 changes: 2 additions & 2 deletions dds/include/huaweicloud/dds/v3/model/ResizeInstanceOption.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class HUAWEICLOUD_DDS_V3_EXPORT ResizeInstanceOption
/// ResizeInstanceOption members

/// <summary>
/// 对象类型。 - 对于集群实例,该参数为必选。变更mongos节点规格时,取值为“mongos”;变更shard组规格时,取值为“shard”。 - 对于副本集和单节点实例,不传该参数。
/// 对象类型。 - 对于集群实例,该参数为必选。变更mongos节点规格时,取值为“mongos”;变更单个shard组规格、或者批量变更多个shard组规格时,取值为“shard”,变更config组规格时,取值为\&quot;config\&quot;。 - 对于副本集实例,不传该参数。变更readonly节点规格时,取值为“readonly”。 - 对于单节点实例,不传该参数。
/// </summary>

std::string getTargetType() const;
Expand All @@ -48,7 +48,7 @@ class HUAWEICLOUD_DDS_V3_EXPORT ResizeInstanceOption
void setTargetType(const std::string& value);

/// <summary>
/// 待变更规格的节点ID或实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 - 对于集群实例,变更mongos节点规格时,取值为mongos节点ID;变更shard组规格时,取值为shard组ID。 - 对于副本集实例,取值为相应的实例ID。 - 对于单节点实例,取值为相应的实例ID。
/// 待变更规格的节点ID或实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 - 对于集群实例,变更mongos节点规格时,取值为mongos节点ID;变更单个shard组规格时,取值为shard组ID;批量变更多个shard组规格时,不传该参数;变更config组规格时,取值为config组的ID。 - 对于副本集实例,取值为相应的实例ID。变更readonly节点规格时,取值为readonly节点ID。 - 对于单节点实例,取值为相应的实例ID。
/// </summary>

std::string getTargetId() const;
Expand Down
56 changes: 56 additions & 0 deletions live/include/huaweicloud/live/v1/LiveClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,21 @@
#include <huaweicloud/live/v1/model/UpdateDomainHttpsCertResponse.h>
#include <string>

#include <huaweicloud/live/v1/model/CreateHarvestTaskInfoReq.h>
#include <huaweicloud/live/v1/model/CreateHarvestTaskRequest.h>
#include <huaweicloud/live/v1/model/CreateHarvestTaskResponse.h>
#include <huaweicloud/live/v1/model/DeleteHarvestTaskRequest.h>
#include <huaweicloud/live/v1/model/DeleteHarvestTaskResponse.h>
#include <huaweicloud/live/v1/model/ListHarvestTaskRequest.h>
#include <huaweicloud/live/v1/model/ListHarvestTaskResponse.h>
#include <huaweicloud/live/v1/model/ModifyHarvestTaskRequest.h>
#include <huaweicloud/live/v1/model/ModifyHarvestTaskRequestBody.h>
#include <huaweicloud/live/v1/model/ModifyHarvestTaskResponse.h>
#include <huaweicloud/live/v1/model/UpdateHarvestJobStatusRequest.h>
#include <huaweicloud/live/v1/model/UpdateHarvestJobStatusRequestBody.h>
#include <huaweicloud/live/v1/model/UpdateHarvestJobStatusResponse.h>
#include <string>

#include <huaweicloud/live/v1/model/ObsAuthorityConfigV2.h>
#include <huaweicloud/live/v1/model/UpdateObsBucketAuthorityPublicRequest.h>
#include <huaweicloud/live/v1/model/UpdateObsBucketAuthorityPublicResponse.h>
Expand Down Expand Up @@ -675,6 +690,47 @@ class HUAWEICLOUD_LIVE_V1_EXPORT LiveClient : public Client
UpdateDomainHttpsCertRequest &request
);

// 创建Live2VOD任务
//
// 创建Live2VOD任务。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<CreateHarvestTaskResponse> createHarvestTask(
CreateHarvestTaskRequest &request
);
// 删除Live2VOD任务
//
// 删除Live2VOD任务。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<DeleteHarvestTaskResponse> deleteHarvestTask(
DeleteHarvestTaskRequest &request
);
// 查询Live2VOD任务
//
// 查询Live2VOD任务,支持批量查询。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ListHarvestTaskResponse> listHarvestTask(
ListHarvestTaskRequest &request
);
// 修改Live2VOD任务
//
// 修改Live2VOD任务。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ModifyHarvestTaskResponse> modifyHarvestTask(
ModifyHarvestTaskRequest &request
);
// 修改Live2VOD任务状态
//
// 修改Live2VOD任务状态。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<UpdateHarvestJobStatusResponse> updateHarvestJobStatus(
UpdateHarvestJobStatusRequest &request
);

// OBS桶授权及取消授权
//
// OBS桶授权及取消授权
Expand Down
5 changes: 5 additions & 0 deletions live/include/huaweicloud/live/v1/LiveMeta.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ class HUAWEICLOUD_LIVE_V1_EXPORT LiveMeta {
static HttpRequestDef genRequestDefForDeleteDomainHttpsCert();
static HttpRequestDef genRequestDefForShowDomainHttpsCert();
static HttpRequestDef genRequestDefForUpdateDomainHttpsCert();
static HttpRequestDef genRequestDefForCreateHarvestTask();
static HttpRequestDef genRequestDefForDeleteHarvestTask();
static HttpRequestDef genRequestDefForListHarvestTask();
static HttpRequestDef genRequestDefForModifyHarvestTask();
static HttpRequestDef genRequestDefForUpdateHarvestJobStatus();
static HttpRequestDef genRequestDefForUpdateObsBucketAuthorityPublic();
static HttpRequestDef genRequestDefForCreateOttChannelInfo();
static HttpRequestDef genRequestDefForDeleteOttChannelInfo();
Expand Down
142 changes: 142 additions & 0 deletions live/include/huaweicloud/live/v1/model/CreateHarvestTaskInfoReq.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@

#ifndef HUAWEICLOUD_SDK_LIVE_V1_MODEL_CreateHarvestTaskInfoReq_H_
#define HUAWEICLOUD_SDK_LIVE_V1_MODEL_CreateHarvestTaskInfoReq_H_


#include <huaweicloud/live/v1/LiveExport.h>

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

#include <string>
#include <huaweicloud/live/v1/model/VodPackageInfo.h>

namespace HuaweiCloud {
namespace Sdk {
namespace Live {
namespace V1 {
namespace Model {

using namespace HuaweiCloud::Sdk::Core::Utils;
using namespace HuaweiCloud::Sdk::Core::Http;
/// <summary>
/// 创建Live2Vod任务
/// </summary>
class HUAWEICLOUD_LIVE_V1_EXPORT CreateHarvestTaskInfoReq
: public ModelBase
{
public:
CreateHarvestTaskInfoReq();
virtual ~CreateHarvestTaskInfoReq();

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

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

/// <summary>
/// 频道推流域名
/// </summary>

std::string getDomain() const;
bool domainIsSet() const;
void unsetdomain();
void setDomain(const std::string& value);

/// <summary>
/// 组名或应用名
/// </summary>

std::string getAppName() const;
bool appNameIsSet() const;
void unsetappName();
void setAppName(const std::string& value);

/// <summary>
/// 频道ID。频道唯一标识,为必填项。频道ID不建议输入下划线“_”,否则会影响转码和截图任务
/// </summary>

std::string getId() const;
bool idIsSet() const;
void unsetid();
void setId(const std::string& value);

/// <summary>
/// 开始时间。Unix时间戳:单位是秒
/// </summary>

int32_t getStartTime() const;
bool startTimeIsSet() const;
void unsetstartTime();
void setStartTime(int32_t value);

/// <summary>
/// 结束时间。Unix时间戳:单位是秒
/// </summary>

int32_t getEndTime() const;
bool endTimeIsSet() const;
void unsetendTime();
void setEndTime(int32_t value);

/// <summary>
/// 事件名称。必选配置
/// </summary>

std::string getEventName() const;
bool eventNameIsSet() const;
void unseteventName();
void setEventName(const std::string& value);

/// <summary>
/// 任务描述,可选配置
/// </summary>

std::string getTaskDesc() const;
bool taskDescIsSet() const;
void unsettaskDesc();
void setTaskDesc(const std::string& value);

/// <summary>
///
/// </summary>

VodPackageInfo getPackageInfo() const;
bool packageInfoIsSet() const;
void unsetpackageInfo();
void setPackageInfo(const VodPackageInfo& value);


protected:
std::string domain_;
bool domainIsSet_;
std::string appName_;
bool appNameIsSet_;
std::string id_;
bool idIsSet_;
int32_t startTime_;
bool startTimeIsSet_;
int32_t endTime_;
bool endTimeIsSet_;
std::string eventName_;
bool eventNameIsSet_;
std::string taskDesc_;
bool taskDescIsSet_;
VodPackageInfo packageInfo_;
bool packageInfoIsSet_;

};


}
}
}
}
}

#endif // HUAWEICLOUD_SDK_LIVE_V1_MODEL_CreateHarvestTaskInfoReq_H_
Loading

0 comments on commit eff00b0

Please sign in to comment.