Compare commits

..

2 Commits

Author SHA1 Message Date
sdk-team
41c9cd85cf Create Lindorm Open api. 2021-12-30 08:31:23 +00:00
sdk-team
8a2d243786 Support AUTH for CreateEventSubscribe. 2021-12-30 08:00:22 +00:00
15 changed files with 468 additions and 65 deletions

View File

@@ -1,3 +1,9 @@
2021-12-30 Version: 1.36.1007
- Create Lindorm Open api.
2021-12-30 Version: 1.36.1006
- Support AUTH for CreateEventSubscribe.
2021-12-30 Version: 1.36.1005
- Update by sdk platform.

View File

@@ -1 +1 @@
1.36.1005
1.36.1007

View File

@@ -33,6 +33,8 @@ set(hitsdb_public_header_model
include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListResult.h
include/alibabacloud/hitsdb/model/GetLindormInstanceListRequest.h
include/alibabacloud/hitsdb/model/GetLindormInstanceListResult.h
include/alibabacloud/hitsdb/model/GetLindormSSLCertUrlRequest.h
include/alibabacloud/hitsdb/model/GetLindormSSLCertUrlResult.h
include/alibabacloud/hitsdb/model/ReleaseLindormInstanceRequest.h
include/alibabacloud/hitsdb/model/ReleaseLindormInstanceResult.h
include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListRequest.h
@@ -54,6 +56,8 @@ set(hitsdb_src
src/model/GetLindormInstanceEngineListResult.cc
src/model/GetLindormInstanceListRequest.cc
src/model/GetLindormInstanceListResult.cc
src/model/GetLindormSSLCertUrlRequest.cc
src/model/GetLindormSSLCertUrlResult.cc
src/model/ReleaseLindormInstanceRequest.cc
src/model/ReleaseLindormInstanceResult.cc
src/model/UpdateInstanceIpWhiteListRequest.cc

View File

@@ -34,6 +34,8 @@
#include "model/GetLindormInstanceEngineListResult.h"
#include "model/GetLindormInstanceListRequest.h"
#include "model/GetLindormInstanceListResult.h"
#include "model/GetLindormSSLCertUrlRequest.h"
#include "model/GetLindormSSLCertUrlResult.h"
#include "model/ReleaseLindormInstanceRequest.h"
#include "model/ReleaseLindormInstanceResult.h"
#include "model/UpdateInstanceIpWhiteListRequest.h"
@@ -67,6 +69,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetLindormInstanceListResult> GetLindormInstanceListOutcome;
typedef std::future<GetLindormInstanceListOutcome> GetLindormInstanceListOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::GetLindormInstanceListRequest&, const GetLindormInstanceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLindormInstanceListAsyncHandler;
typedef Outcome<Error, Model::GetLindormSSLCertUrlResult> GetLindormSSLCertUrlOutcome;
typedef std::future<GetLindormSSLCertUrlOutcome> GetLindormSSLCertUrlOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::GetLindormSSLCertUrlRequest&, const GetLindormSSLCertUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLindormSSLCertUrlAsyncHandler;
typedef Outcome<Error, Model::ReleaseLindormInstanceResult> ReleaseLindormInstanceOutcome;
typedef std::future<ReleaseLindormInstanceOutcome> ReleaseLindormInstanceOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::ReleaseLindormInstanceRequest&, const ReleaseLindormInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseLindormInstanceAsyncHandler;
@@ -99,6 +104,9 @@ namespace AlibabaCloud
GetLindormInstanceListOutcome getLindormInstanceList(const Model::GetLindormInstanceListRequest &request)const;
void getLindormInstanceListAsync(const Model::GetLindormInstanceListRequest& request, const GetLindormInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetLindormInstanceListOutcomeCallable getLindormInstanceListCallable(const Model::GetLindormInstanceListRequest& request) const;
GetLindormSSLCertUrlOutcome getLindormSSLCertUrl(const Model::GetLindormSSLCertUrlRequest &request)const;
void getLindormSSLCertUrlAsync(const Model::GetLindormSSLCertUrlRequest& request, const GetLindormSSLCertUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetLindormSSLCertUrlOutcomeCallable getLindormSSLCertUrlCallable(const Model::GetLindormSSLCertUrlRequest& request) const;
ReleaseLindormInstanceOutcome releaseLindormInstance(const Model::ReleaseLindormInstanceRequest &request)const;
void releaseLindormInstanceAsync(const Model::ReleaseLindormInstanceRequest& request, const ReleaseLindormInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReleaseLindormInstanceOutcomeCallable releaseLindormInstanceCallable(const Model::ReleaseLindormInstanceRequest& request) const;

View File

@@ -37,6 +37,7 @@ namespace AlibabaCloud
std::string memorySize;
std::string cpuCount;
std::string version;
std::string latestVersion;
std::string engine;
bool isLastVersion;
std::string coreCount;
@@ -53,16 +54,18 @@ namespace AlibabaCloud
bool getAutoRenew()const;
std::string getDiskUsage()const;
bool getEnableFS()const;
std::string getInstanceAlias()const;
std::string getInstanceStatus()const;
bool getEnableCompute()const;
std::string getNetworkType()const;
std::string getServiceType()const;
std::string getInstanceAlias()const;
std::string getInstanceStatus()const;
int getEngineType()const;
long getCreateMilliseconds()const;
bool getEnableSSL()const;
std::string getInstanceStorage()const;
std::string getZoneId()const;
std::string getInstanceId()const;
bool getEnableKms()const;
std::string getInstanceId()const;
std::string getCreateTime()const;
int getColdStorage()const;
std::string getDiskCategory()const;
@@ -85,16 +88,18 @@ namespace AlibabaCloud
bool autoRenew_;
std::string diskUsage_;
bool enableFS_;
std::string instanceAlias_;
std::string instanceStatus_;
bool enableCompute_;
std::string networkType_;
std::string serviceType_;
std::string instanceAlias_;
std::string instanceStatus_;
int engineType_;
long createMilliseconds_;
bool enableSSL_;
std::string instanceStorage_;
std::string zoneId_;
std::string instanceId_;
bool enableKms_;
std::string instanceId_;
std::string createTime_;
int coldStorage_;
std::string diskCategory_;

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT GetLindormSSLCertUrlRequest : public RpcServiceRequest
{
public:
GetLindormSSLCertUrlRequest();
~GetLindormSSLCertUrlRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string securityToken_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT GetLindormSSLCertUrlResult : public ServiceResult
{
public:
GetLindormSSLCertUrlResult();
explicit GetLindormSSLCertUrlResult(const std::string &payload);
~GetLindormSSLCertUrlResult();
long getCertExpiresAt()const;
std::string getCertUrl()const;
protected:
void parse(const std::string &payload);
private:
long certExpiresAt_;
std::string certUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLRESULT_H_

View File

@@ -267,6 +267,42 @@ HitsdbClient::GetLindormInstanceListOutcomeCallable HitsdbClient::getLindormInst
return task->get_future();
}
HitsdbClient::GetLindormSSLCertUrlOutcome HitsdbClient::getLindormSSLCertUrl(const GetLindormSSLCertUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetLindormSSLCertUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetLindormSSLCertUrlOutcome(GetLindormSSLCertUrlResult(outcome.result()));
else
return GetLindormSSLCertUrlOutcome(outcome.error());
}
void HitsdbClient::getLindormSSLCertUrlAsync(const GetLindormSSLCertUrlRequest& request, const GetLindormSSLCertUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getLindormSSLCertUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
HitsdbClient::GetLindormSSLCertUrlOutcomeCallable HitsdbClient::getLindormSSLCertUrlCallable(const GetLindormSSLCertUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetLindormSSLCertUrlOutcome()>>(
[this, request]()
{
return this->getLindormSSLCertUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
HitsdbClient::ReleaseLindormInstanceOutcome HitsdbClient::releaseLindormInstance(const ReleaseLindormInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -43,74 +43,80 @@ void GetLindormInstanceResult::parse(const std::string &payload)
for (auto valueEngineListEngine : allEngineListNode)
{
Engine engineListObject;
if(!valueEngineListEngine["Engine"].isNull())
engineListObject.engine = valueEngineListEngine["Engine"].asString();
if(!valueEngineListEngine["Version"].isNull())
engineListObject.version = valueEngineListEngine["Version"].asString();
if(!valueEngineListEngine["CpuCount"].isNull())
engineListObject.cpuCount = valueEngineListEngine["CpuCount"].asString();
if(!valueEngineListEngine["MemorySize"].isNull())
engineListObject.memorySize = valueEngineListEngine["MemorySize"].asString();
if(!valueEngineListEngine["CoreCount"].isNull())
engineListObject.coreCount = valueEngineListEngine["CoreCount"].asString();
if(!valueEngineListEngine["Engine"].isNull())
engineListObject.engine = valueEngineListEngine["Engine"].asString();
if(!valueEngineListEngine["MemorySize"].isNull())
engineListObject.memorySize = valueEngineListEngine["MemorySize"].asString();
if(!valueEngineListEngine["IsLastVersion"].isNull())
engineListObject.isLastVersion = valueEngineListEngine["IsLastVersion"].asString() == "true";
if(!valueEngineListEngine["LatestVersion"].isNull())
engineListObject.latestVersion = valueEngineListEngine["LatestVersion"].asString();
engineList_.push_back(engineListObject);
}
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["InstanceAlias"].isNull())
instanceAlias_ = value["InstanceAlias"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["ZoneId"].isNull())
zoneId_ = value["ZoneId"].asString();
if(!value["InstanceStatus"].isNull())
instanceStatus_ = value["InstanceStatus"].asString();
if(!value["PayType"].isNull())
payType_ = value["PayType"].asString();
if(!value["NetworkType"].isNull())
networkType_ = value["NetworkType"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["ExpireTime"].isNull())
expireTime_ = value["ExpireTime"].asString();
if(!value["InstanceStorage"].isNull())
instanceStorage_ = value["InstanceStorage"].asString();
if(!value["VpcId"].isNull())
vpcId_ = value["VpcId"].asString();
if(!value["VswitchId"].isNull())
vswitchId_ = value["VswitchId"].asString();
if(!value["AutoRenew"].isNull())
autoRenew_ = value["AutoRenew"].asString() == "true";
if(!value["EngineType"].isNull())
engineType_ = std::stoi(value["EngineType"].asString());
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["PayType"].isNull())
payType_ = value["PayType"].asString();
if(!value["NetworkType"].isNull())
networkType_ = value["NetworkType"].asString();
if(!value["ServiceType"].isNull())
serviceType_ = value["ServiceType"].asString();
if(!value["DeletionProtection"].isNull())
deletionProtection_ = value["DeletionProtection"].asString();
if(!value["EnableKms"].isNull())
enableKms_ = value["EnableKms"].asString() == "true";
if(!value["DiskUsage"].isNull())
diskUsage_ = value["DiskUsage"].asString();
if(!value["DiskCategory"].isNull())
diskCategory_ = value["DiskCategory"].asString();
if(!value["ColdStorage"].isNull())
coldStorage_ = std::stoi(value["ColdStorage"].asString());
if(!value["EnableBDS"].isNull())
enableBDS_ = value["EnableBDS"].asString() == "true";
if(!value["AliUid"].isNull())
aliUid_ = std::stol(value["AliUid"].asString());
if(!value["EnableFS"].isNull())
enableFS_ = value["EnableFS"].asString() == "true";
if(!value["EnablePhoenix"].isNull())
enablePhoenix_ = value["EnablePhoenix"].asString() == "true";
if(!value["DiskUsage"].isNull())
diskUsage_ = value["DiskUsage"].asString();
if(!value["DiskThreshold"].isNull())
diskThreshold_ = value["DiskThreshold"].asString();
if(!value["CreateMilliseconds"].isNull())
createMilliseconds_ = std::stol(value["CreateMilliseconds"].asString());
if(!value["ExpiredMilliseconds"].isNull())
expiredMilliseconds_ = std::stol(value["ExpiredMilliseconds"].asString());
if(!value["EnableKms"].isNull())
enableKms_ = value["EnableKms"].asString() == "true";
if(!value["EngineType"].isNull())
engineType_ = std::stoi(value["EngineType"].asString());
if(!value["ExpireTime"].isNull())
expireTime_ = value["ExpireTime"].asString();
if(!value["AutoRenew"].isNull())
autoRenew_ = value["AutoRenew"].asString() == "true";
if(!value["DeletionProtection"].isNull())
deletionProtection_ = value["DeletionProtection"].asString();
if(!value["InstanceStorage"].isNull())
instanceStorage_ = value["InstanceStorage"].asString();
if(!value["AliUid"].isNull())
aliUid_ = std::stol(value["AliUid"].asString());
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["EnableFS"].isNull())
enableFS_ = value["EnableFS"].asString() == "true";
if(!value["CreateMilliseconds"].isNull())
createMilliseconds_ = std::stol(value["CreateMilliseconds"].asString());
if(!value["InstanceAlias"].isNull())
instanceAlias_ = value["InstanceAlias"].asString();
if(!value["EnableBDS"].isNull())
enableBDS_ = value["EnableBDS"].asString() == "true";
if(!value["EnablePhoenix"].isNull())
enablePhoenix_ = value["EnablePhoenix"].asString() == "true";
if(!value["DiskThreshold"].isNull())
diskThreshold_ = value["DiskThreshold"].asString();
if(!value["ZoneId"].isNull())
zoneId_ = value["ZoneId"].asString();
if(!value["InstanceStatus"].isNull())
instanceStatus_ = value["InstanceStatus"].asString();
if(!value["EnableCompute"].isNull())
enableCompute_ = value["EnableCompute"].asString() == "true";
if(!value["EnableSSL"].isNull())
enableSSL_ = value["EnableSSL"].asString() == "true";
}
@@ -149,14 +155,9 @@ bool GetLindormInstanceResult::getEnableFS()const
return enableFS_;
}
std::string GetLindormInstanceResult::getInstanceAlias()const
bool GetLindormInstanceResult::getEnableCompute()const
{
return instanceAlias_;
}
std::string GetLindormInstanceResult::getInstanceStatus()const
{
return instanceStatus_;
return enableCompute_;
}
std::string GetLindormInstanceResult::getNetworkType()const
@@ -169,6 +170,16 @@ std::string GetLindormInstanceResult::getServiceType()const
return serviceType_;
}
std::string GetLindormInstanceResult::getInstanceAlias()const
{
return instanceAlias_;
}
std::string GetLindormInstanceResult::getInstanceStatus()const
{
return instanceStatus_;
}
int GetLindormInstanceResult::getEngineType()const
{
return engineType_;
@@ -179,6 +190,11 @@ long GetLindormInstanceResult::getCreateMilliseconds()const
return createMilliseconds_;
}
bool GetLindormInstanceResult::getEnableSSL()const
{
return enableSSL_;
}
std::string GetLindormInstanceResult::getInstanceStorage()const
{
return instanceStorage_;
@@ -189,16 +205,16 @@ std::string GetLindormInstanceResult::getZoneId()const
return zoneId_;
}
std::string GetLindormInstanceResult::getInstanceId()const
{
return instanceId_;
}
bool GetLindormInstanceResult::getEnableKms()const
{
return enableKms_;
}
std::string GetLindormInstanceResult::getInstanceId()const
{
return instanceId_;
}
std::string GetLindormInstanceResult::getCreateTime()const
{
return createTime_;

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/hitsdb/model/GetLindormSSLCertUrlRequest.h>
using AlibabaCloud::Hitsdb::Model::GetLindormSSLCertUrlRequest;
GetLindormSSLCertUrlRequest::GetLindormSSLCertUrlRequest() :
RpcServiceRequest("hitsdb", "2020-06-15", "GetLindormSSLCertUrl")
{
setMethod(HttpRequest::Method::Post);
}
GetLindormSSLCertUrlRequest::~GetLindormSSLCertUrlRequest()
{}
long GetLindormSSLCertUrlRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetLindormSSLCertUrlRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetLindormSSLCertUrlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetLindormSSLCertUrlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetLindormSSLCertUrlRequest::getSecurityToken()const
{
return securityToken_;
}
void GetLindormSSLCertUrlRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string GetLindormSSLCertUrlRequest::getRegionId()const
{
return regionId_;
}
void GetLindormSSLCertUrlRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string GetLindormSSLCertUrlRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetLindormSSLCertUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetLindormSSLCertUrlRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void GetLindormSSLCertUrlRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long GetLindormSSLCertUrlRequest::getOwnerId()const
{
return ownerId_;
}
void GetLindormSSLCertUrlRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetLindormSSLCertUrlRequest::getInstanceId()const
{
return instanceId_;
}
void GetLindormSSLCertUrlRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/hitsdb/model/GetLindormSSLCertUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Hitsdb;
using namespace AlibabaCloud::Hitsdb::Model;
GetLindormSSLCertUrlResult::GetLindormSSLCertUrlResult() :
ServiceResult()
{}
GetLindormSSLCertUrlResult::GetLindormSSLCertUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetLindormSSLCertUrlResult::~GetLindormSSLCertUrlResult()
{}
void GetLindormSSLCertUrlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CertUrl"].isNull())
certUrl_ = value["CertUrl"].asString();
if(!value["CertExpiresAt"].isNull())
certExpiresAt_ = std::stol(value["CertExpiresAt"].asString());
}
long GetLindormSSLCertUrlResult::getCertExpiresAt()const
{
return certExpiresAt_;
}
std::string GetLindormSSLCertUrlResult::getCertUrl()const
{
return certUrl_;
}

View File

@@ -32,6 +32,8 @@ public:
~CreateEventSubscribeRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
bool getNeedCallbackAuth() const;
void setNeedCallbackAuth(bool needCallbackAuth);
std::vector<std::string> getEvents() const;
void setEvents(const std::vector<std::string> &events);
std::string getShowLog() const;
@@ -49,6 +51,7 @@ public:
private:
std::string clientToken_;
bool needCallbackAuth_;
std::vector<std::string> events_;
std::string showLog_;
long ownerId_;

View File

@@ -80,6 +80,9 @@ public:
bool enableUserPaneBackground;
std::string backgroundPath;
};
struct OutputStreamParams {
std::string streamURL;
};
struct Backgrounds {
float width;
float height;
@@ -131,6 +134,8 @@ public:
void setCropMode(int cropMode);
std::vector<std::string> getSubSpecCameraUsers() const;
void setSubSpecCameraUsers(const std::vector<std::string> &subSpecCameraUsers);
std::vector<OutputStreamParams> getOutputStreamParams() const;
void setOutputStreamParams(const std::vector<OutputStreamParams> &outputStreamParams);
std::string getTaskProfile() const;
void setTaskProfile(const std::string &taskProfile);
std::vector<long> getLayoutIds() const;
@@ -177,6 +182,7 @@ private:
int rtpExtInfo_;
int cropMode_;
std::vector<std::string> subSpecCameraUsers_;
std::vector<OutputStreamParams> outputStreamParams_;
std::string taskProfile_;
std::vector<long> layoutIds_;
std::string streamURL_;

View File

@@ -34,6 +34,15 @@ void CreateEventSubscribeRequest::setClientToken(const std::string &clientToken)
setParameter(std::string("ClientToken"), clientToken);
}
bool CreateEventSubscribeRequest::getNeedCallbackAuth() const {
return needCallbackAuth_;
}
void CreateEventSubscribeRequest::setNeedCallbackAuth(bool needCallbackAuth) {
needCallbackAuth_ = needCallbackAuth;
setParameter(std::string("NeedCallbackAuth"), needCallbackAuth ? "true" : "false");
}
std::vector<std::string> CreateEventSubscribeRequest::getEvents() const {
return events_;
}

View File

@@ -255,6 +255,19 @@ void StartMPUTaskRequest::setSubSpecCameraUsers(const std::vector<std::string> &
subSpecCameraUsers_ = subSpecCameraUsers;
}
std::vector<StartMPUTaskRequest::OutputStreamParams> StartMPUTaskRequest::getOutputStreamParams() const {
return outputStreamParams_;
}
void StartMPUTaskRequest::setOutputStreamParams(const std::vector<StartMPUTaskRequest::OutputStreamParams> &outputStreamParams) {
outputStreamParams_ = outputStreamParams;
for(int dep1 = 0; dep1 != outputStreamParams.size(); dep1++) {
auto outputStreamParamsObj = outputStreamParams.at(dep1);
std::string outputStreamParamsObjStr = std::string("OutputStreamParams") + "." + std::to_string(dep1 + 1);
setParameter(outputStreamParamsObjStr + ".StreamURL", outputStreamParamsObj.streamURL);
}
}
std::string StartMPUTaskRequest::getTaskProfile() const {
return taskProfile_;
}