Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb3e058f3f | ||
|
|
e2c46d1143 | ||
|
|
3b852794f3 |
@@ -42,8 +42,16 @@ public:
|
||||
void setProtocol(const std::string &protocol);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getL7ProxyDomainCustom() const;
|
||||
void setL7ProxyDomainCustom(const std::string &l7ProxyDomainCustom);
|
||||
std::string getL7ProxyDomainPrivate() const;
|
||||
void setL7ProxyDomainPrivate(const std::string &l7ProxyDomainPrivate);
|
||||
std::string getBrowserAccessStatus() const;
|
||||
void setBrowserAccessStatus(const std::string &browserAccessStatus);
|
||||
std::vector<std::string> getTagIds() const;
|
||||
void setTagIds(const std::vector<std::string> &tagIds);
|
||||
std::string getL7ProxyDomainAutomaticPrefix() const;
|
||||
void setL7ProxyDomainAutomaticPrefix(const std::string &l7ProxyDomainAutomaticPrefix);
|
||||
std::vector<PortRanges> getPortRanges() const;
|
||||
void setPortRanges(const std::vector<PortRanges> &portRanges);
|
||||
std::string getName() const;
|
||||
@@ -56,7 +64,11 @@ private:
|
||||
std::string description_;
|
||||
std::string protocol_;
|
||||
std::string sourceIp_;
|
||||
std::string l7ProxyDomainCustom_;
|
||||
std::string l7ProxyDomainPrivate_;
|
||||
std::string browserAccessStatus_;
|
||||
std::vector<std::string> tagIds_;
|
||||
std::string l7ProxyDomainAutomaticPrefix_;
|
||||
std::vector<PortRanges> portRanges_;
|
||||
std::string name_;
|
||||
std::string status_;
|
||||
|
||||
@@ -57,6 +57,11 @@ public:
|
||||
BackgroundControl backgroundControl;
|
||||
bool invisibleAntiTextCopy;
|
||||
};
|
||||
struct CsvControl {
|
||||
std::string method;
|
||||
long embedColumn;
|
||||
long embedPrecision;
|
||||
};
|
||||
CreateWmEmbedTaskRequest();
|
||||
~CreateWmEmbedTaskRequest();
|
||||
bool getVideoIsLong() const;
|
||||
@@ -77,6 +82,8 @@ public:
|
||||
void setWatermarkInfoUint(long watermarkInfoUint);
|
||||
std::string getWmInfoUint() const;
|
||||
void setWmInfoUint(const std::string &wmInfoUint);
|
||||
CsvControl getCsvControl() const;
|
||||
void setCsvControl(const CsvControl &csvControl);
|
||||
std::string getFilename() const;
|
||||
void setFilename(const std::string &filename);
|
||||
long getWmInfoSize() const;
|
||||
@@ -98,6 +105,7 @@ private:
|
||||
long imageEmbedJpegQuality_;
|
||||
long watermarkInfoUint_;
|
||||
std::string wmInfoUint_;
|
||||
CsvControl csvControl_;
|
||||
std::string filename_;
|
||||
long wmInfoSize_;
|
||||
std::string wmInfoBytesB64_;
|
||||
|
||||
@@ -28,6 +28,11 @@ namespace Csas {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CSAS_EXPORT CreateWmExtractTaskRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct CsvControl {
|
||||
std::string method;
|
||||
long embedColumn;
|
||||
long embedPrecision;
|
||||
};
|
||||
CreateWmExtractTaskRequest();
|
||||
~CreateWmExtractTaskRequest();
|
||||
bool getVideoIsLong() const;
|
||||
@@ -44,6 +49,8 @@ public:
|
||||
void setWmType(const std::string &wmType);
|
||||
int getImageDetectLevel() const;
|
||||
void setImageDetectLevel(int imageDetectLevel);
|
||||
CsvControl getCsvControl() const;
|
||||
void setCsvControl(const CsvControl &csvControl);
|
||||
std::string getFilename() const;
|
||||
void setFilename(const std::string &filename);
|
||||
long getWmInfoSize() const;
|
||||
@@ -59,6 +66,7 @@ private:
|
||||
std::string sourceIp_;
|
||||
std::string wmType_;
|
||||
int imageDetectLevel_;
|
||||
CsvControl csvControl_;
|
||||
std::string filename_;
|
||||
long wmInfoSize_;
|
||||
std::string fileUrl_;
|
||||
|
||||
@@ -40,16 +40,19 @@ namespace AlibabaCloud
|
||||
int end;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<std::string> addresses;
|
||||
std::string browserAccessStatus;
|
||||
std::string description;
|
||||
std::vector<std::string> tagIds;
|
||||
std::vector<PortRange> portRanges;
|
||||
std::string createTime;
|
||||
std::vector<std::string> policyIds;
|
||||
std::vector<std::string> connectorIds;
|
||||
std::string name;
|
||||
std::vector<std::string> addresses;
|
||||
std::string l7ProxyDomainAutomatic;
|
||||
std::string l7ProxyDomainCustom;
|
||||
std::vector<std::string> policyIds;
|
||||
std::string applicationId;
|
||||
std::string protocol;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ public:
|
||||
void setCurrentPage(int currentPage);
|
||||
std::vector<std::string> getApplicationIds() const;
|
||||
void setApplicationIds(const std::vector<std::string> &applicationIds);
|
||||
std::string getAccessModes() const;
|
||||
void setAccessModes(const std::string &accessModes);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string getStatus() const;
|
||||
@@ -60,6 +62,7 @@ private:
|
||||
std::string connectorId_;
|
||||
int currentPage_;
|
||||
std::vector<std::string> applicationIds_;
|
||||
std::string accessModes_;
|
||||
std::string name_;
|
||||
std::string status_;
|
||||
};
|
||||
|
||||
@@ -40,16 +40,19 @@ namespace AlibabaCloud
|
||||
int end;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<std::string> addresses;
|
||||
std::string browserAccessStatus;
|
||||
std::string description;
|
||||
std::vector<std::string> tagIds;
|
||||
std::vector<Application::PortRange> portRanges;
|
||||
std::string createTime;
|
||||
std::vector<std::string> policyIds;
|
||||
std::vector<std::string> connectorIds;
|
||||
std::string name;
|
||||
std::vector<std::string> addresses;
|
||||
std::string l7ProxyDomainAutomatic;
|
||||
std::string l7ProxyDomainCustom;
|
||||
std::vector<std::string> policyIds;
|
||||
std::string applicationId;
|
||||
std::string protocol;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -44,8 +44,14 @@ public:
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getApplicationId() const;
|
||||
void setApplicationId(const std::string &applicationId);
|
||||
std::string getL7ProxyDomainCustom() const;
|
||||
void setL7ProxyDomainCustom(const std::string &l7ProxyDomainCustom);
|
||||
std::string getL7ProxyDomainPrivate() const;
|
||||
void setL7ProxyDomainPrivate(const std::string &l7ProxyDomainPrivate);
|
||||
std::vector<std::string> getTagIds() const;
|
||||
void setTagIds(const std::vector<std::string> &tagIds);
|
||||
std::string getL7ProxyDomainAutomaticPrefix() const;
|
||||
void setL7ProxyDomainAutomaticPrefix(const std::string &l7ProxyDomainAutomaticPrefix);
|
||||
std::vector<PortRanges> getPortRanges() const;
|
||||
void setPortRanges(const std::vector<PortRanges> &portRanges);
|
||||
std::string getModifyType() const;
|
||||
@@ -59,7 +65,10 @@ private:
|
||||
std::string protocol_;
|
||||
std::string sourceIp_;
|
||||
std::string applicationId_;
|
||||
std::string l7ProxyDomainCustom_;
|
||||
std::string l7ProxyDomainPrivate_;
|
||||
std::vector<std::string> tagIds_;
|
||||
std::string l7ProxyDomainAutomaticPrefix_;
|
||||
std::vector<PortRanges> portRanges_;
|
||||
std::string modifyType_;
|
||||
std::string status_;
|
||||
|
||||
@@ -63,6 +63,33 @@ void CreatePrivateAccessApplicationRequest::setSourceIp(const std::string &sourc
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationRequest::getL7ProxyDomainCustom() const {
|
||||
return l7ProxyDomainCustom_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setL7ProxyDomainCustom(const std::string &l7ProxyDomainCustom) {
|
||||
l7ProxyDomainCustom_ = l7ProxyDomainCustom;
|
||||
setBodyParameter(std::string("L7ProxyDomainCustom"), l7ProxyDomainCustom);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationRequest::getL7ProxyDomainPrivate() const {
|
||||
return l7ProxyDomainPrivate_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setL7ProxyDomainPrivate(const std::string &l7ProxyDomainPrivate) {
|
||||
l7ProxyDomainPrivate_ = l7ProxyDomainPrivate;
|
||||
setBodyParameter(std::string("L7ProxyDomainPrivate"), l7ProxyDomainPrivate);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationRequest::getBrowserAccessStatus() const {
|
||||
return browserAccessStatus_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setBrowserAccessStatus(const std::string &browserAccessStatus) {
|
||||
browserAccessStatus_ = browserAccessStatus;
|
||||
setBodyParameter(std::string("BrowserAccessStatus"), browserAccessStatus);
|
||||
}
|
||||
|
||||
std::vector<CreatePrivateAccessApplicationRequest::std::string> CreatePrivateAccessApplicationRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
@@ -74,6 +101,15 @@ void CreatePrivateAccessApplicationRequest::setTagIds(const std::vector<CreatePr
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationRequest::getL7ProxyDomainAutomaticPrefix() const {
|
||||
return l7ProxyDomainAutomaticPrefix_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setL7ProxyDomainAutomaticPrefix(const std::string &l7ProxyDomainAutomaticPrefix) {
|
||||
l7ProxyDomainAutomaticPrefix_ = l7ProxyDomainAutomaticPrefix;
|
||||
setBodyParameter(std::string("L7ProxyDomainAutomaticPrefix"), l7ProxyDomainAutomaticPrefix);
|
||||
}
|
||||
|
||||
std::vector<CreatePrivateAccessApplicationRequest::PortRanges> CreatePrivateAccessApplicationRequest::getPortRanges() const {
|
||||
return portRanges_;
|
||||
}
|
||||
|
||||
@@ -123,6 +123,17 @@ void CreateWmEmbedTaskRequest::setWmInfoUint(const std::string &wmInfoUint) {
|
||||
setBodyParameter(std::string("WmInfoUint"), wmInfoUint);
|
||||
}
|
||||
|
||||
CreateWmEmbedTaskRequest::CsvControl CreateWmEmbedTaskRequest::getCsvControl() const {
|
||||
return csvControl_;
|
||||
}
|
||||
|
||||
void CreateWmEmbedTaskRequest::setCsvControl(const CreateWmEmbedTaskRequest::CsvControl &csvControl) {
|
||||
csvControl_ = csvControl;
|
||||
setParameter(std::string("CsvControl") + ".Method", csvControl.method);
|
||||
setParameter(std::string("CsvControl") + ".EmbedColumn", std::to_string(csvControl.embedColumn));
|
||||
setParameter(std::string("CsvControl") + ".EmbedPrecision", std::to_string(csvControl.embedPrecision));
|
||||
}
|
||||
|
||||
std::string CreateWmEmbedTaskRequest::getFilename() const {
|
||||
return filename_;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,17 @@ void CreateWmExtractTaskRequest::setImageDetectLevel(int imageDetectLevel) {
|
||||
setBodyParameter(std::string("ImageDetectLevel"), std::to_string(imageDetectLevel));
|
||||
}
|
||||
|
||||
CreateWmExtractTaskRequest::CsvControl CreateWmExtractTaskRequest::getCsvControl() const {
|
||||
return csvControl_;
|
||||
}
|
||||
|
||||
void CreateWmExtractTaskRequest::setCsvControl(const CreateWmExtractTaskRequest::CsvControl &csvControl) {
|
||||
csvControl_ = csvControl;
|
||||
setParameter(std::string("CsvControl") + ".Method", csvControl.method);
|
||||
setParameter(std::string("CsvControl") + ".EmbedColumn", std::to_string(csvControl.embedColumn));
|
||||
setParameter(std::string("CsvControl") + ".EmbedPrecision", std::to_string(csvControl.embedPrecision));
|
||||
}
|
||||
|
||||
std::string CreateWmExtractTaskRequest::getFilename() const {
|
||||
return filename_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,12 @@ void GetPrivateAccessApplicationResult::parse(const std::string &payload)
|
||||
application_.status = applicationNode["Status"].asString();
|
||||
if(!applicationNode["CreateTime"].isNull())
|
||||
application_.createTime = applicationNode["CreateTime"].asString();
|
||||
if(!applicationNode["BrowserAccessStatus"].isNull())
|
||||
application_.browserAccessStatus = applicationNode["BrowserAccessStatus"].asString();
|
||||
if(!applicationNode["L7ProxyDomainAutomatic"].isNull())
|
||||
application_.l7ProxyDomainAutomatic = applicationNode["L7ProxyDomainAutomatic"].asString();
|
||||
if(!applicationNode["L7ProxyDomainCustom"].isNull())
|
||||
application_.l7ProxyDomainCustom = applicationNode["L7ProxyDomainCustom"].asString();
|
||||
auto allPortRangesNode = applicationNode["PortRanges"]["portRange"];
|
||||
for (auto applicationNodePortRangesportRange : allPortRangesNode)
|
||||
{
|
||||
|
||||
@@ -99,6 +99,15 @@ void ListPrivateAccessApplicationsRequest::setApplicationIds(const std::vector<L
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessApplicationsRequest::getAccessModes() const {
|
||||
return accessModes_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setAccessModes(const std::string &accessModes) {
|
||||
accessModes_ = accessModes;
|
||||
setParameter(std::string("AccessModes"), accessModes);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessApplicationsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,12 @@ void ListPrivateAccessApplicationsResult::parse(const std::string &payload)
|
||||
applicationsObject.status = valueApplicationsapplication["Status"].asString();
|
||||
if(!valueApplicationsapplication["CreateTime"].isNull())
|
||||
applicationsObject.createTime = valueApplicationsapplication["CreateTime"].asString();
|
||||
if(!valueApplicationsapplication["BrowserAccessStatus"].isNull())
|
||||
applicationsObject.browserAccessStatus = valueApplicationsapplication["BrowserAccessStatus"].asString();
|
||||
if(!valueApplicationsapplication["L7ProxyDomainAutomatic"].isNull())
|
||||
applicationsObject.l7ProxyDomainAutomatic = valueApplicationsapplication["L7ProxyDomainAutomatic"].asString();
|
||||
if(!valueApplicationsapplication["L7ProxyDomainCustom"].isNull())
|
||||
applicationsObject.l7ProxyDomainCustom = valueApplicationsapplication["L7ProxyDomainCustom"].asString();
|
||||
auto allPortRangesNode = valueApplicationsapplication["PortRanges"]["portRange"];
|
||||
for (auto valueApplicationsapplicationPortRangesportRange : allPortRangesNode)
|
||||
{
|
||||
|
||||
@@ -72,6 +72,24 @@ void UpdatePrivateAccessApplicationRequest::setApplicationId(const std::string &
|
||||
setBodyParameter(std::string("ApplicationId"), applicationId);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessApplicationRequest::getL7ProxyDomainCustom() const {
|
||||
return l7ProxyDomainCustom_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setL7ProxyDomainCustom(const std::string &l7ProxyDomainCustom) {
|
||||
l7ProxyDomainCustom_ = l7ProxyDomainCustom;
|
||||
setBodyParameter(std::string("L7ProxyDomainCustom"), l7ProxyDomainCustom);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessApplicationRequest::getL7ProxyDomainPrivate() const {
|
||||
return l7ProxyDomainPrivate_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setL7ProxyDomainPrivate(const std::string &l7ProxyDomainPrivate) {
|
||||
l7ProxyDomainPrivate_ = l7ProxyDomainPrivate;
|
||||
setBodyParameter(std::string("L7ProxyDomainPrivate"), l7ProxyDomainPrivate);
|
||||
}
|
||||
|
||||
std::vector<UpdatePrivateAccessApplicationRequest::std::string> UpdatePrivateAccessApplicationRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
@@ -83,6 +101,15 @@ void UpdatePrivateAccessApplicationRequest::setTagIds(const std::vector<UpdatePr
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessApplicationRequest::getL7ProxyDomainAutomaticPrefix() const {
|
||||
return l7ProxyDomainAutomaticPrefix_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setL7ProxyDomainAutomaticPrefix(const std::string &l7ProxyDomainAutomaticPrefix) {
|
||||
l7ProxyDomainAutomaticPrefix_ = l7ProxyDomainAutomaticPrefix;
|
||||
setBodyParameter(std::string("L7ProxyDomainAutomaticPrefix"), l7ProxyDomainAutomaticPrefix);
|
||||
}
|
||||
|
||||
std::vector<UpdatePrivateAccessApplicationRequest::PortRanges> UpdatePrivateAccessApplicationRequest::getPortRanges() const {
|
||||
return portRanges_;
|
||||
}
|
||||
|
||||
@@ -71,6 +71,8 @@ public:
|
||||
void setName(const std::string &name);
|
||||
bool getEnableParameter() const;
|
||||
void setEnableParameter(bool enableParameter);
|
||||
std::string getLauncher() const;
|
||||
void setLauncher(const std::string &launcher);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -89,6 +91,7 @@ private:
|
||||
long ownerId_;
|
||||
std::string name_;
|
||||
bool enableParameter_;
|
||||
std::string launcher_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ecs
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace AlibabaCloud
|
||||
int version;
|
||||
int invokeTimes;
|
||||
std::string creationTime;
|
||||
std::string launcher;
|
||||
bool latest;
|
||||
bool enableParameter;
|
||||
std::string commandId;
|
||||
|
||||
@@ -36,8 +36,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct AllocatedResource
|
||||
{
|
||||
struct ElasticityAssuranceUsage
|
||||
{
|
||||
int usedAmount;
|
||||
std::string accountId;
|
||||
std::string serviceName;
|
||||
};
|
||||
int usedAmount;
|
||||
std::string zoneId;
|
||||
std::vector<AllocatedResource::ElasticityAssuranceUsage> elasticityAssuranceUsages;
|
||||
int availableAmount;
|
||||
int totalAmount;
|
||||
std::string instanceType;
|
||||
};
|
||||
@@ -54,6 +62,7 @@ namespace AlibabaCloud
|
||||
std::string latestStartTime;
|
||||
std::string privatePoolOptionsName;
|
||||
std::string instanceChargeType;
|
||||
std::string elasticityAssuranceOwnerId;
|
||||
std::string startTime;
|
||||
std::string startTimeType;
|
||||
std::string privatePoolOptionsMatchCriteria;
|
||||
|
||||
@@ -85,6 +85,7 @@ namespace AlibabaCloud
|
||||
struct ImageOptions
|
||||
{
|
||||
bool loginAsNonRoot;
|
||||
bool currentOSNVMeSupported;
|
||||
};
|
||||
struct PrivateDnsNameOptions
|
||||
{
|
||||
|
||||
@@ -52,6 +52,8 @@ public:
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string getLauncher() const;
|
||||
void setLauncher(const std::string &launcher);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -65,6 +67,7 @@ private:
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string name_;
|
||||
std::string launcher_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ecs
|
||||
|
||||
@@ -35,6 +35,9 @@ public:
|
||||
bool enableIpDnsARecord;
|
||||
bool enableIpDnsPtrRecord;
|
||||
};
|
||||
struct ImageOptions {
|
||||
bool currentOSNVMeSupported;
|
||||
};
|
||||
struct AdditionalInfo {
|
||||
std::string pvdConfig;
|
||||
bool enableHighDensityMode;
|
||||
@@ -65,6 +68,8 @@ public:
|
||||
void setPrivateDnsNameOptions(const PrivateDnsNameOptions &privateDnsNameOptions);
|
||||
std::string getCpuOptionsTopologyType() const;
|
||||
void setCpuOptionsTopologyType(const std::string &cpuOptionsTopologyType);
|
||||
ImageOptions getImageOptions() const;
|
||||
void setImageOptions(const ImageOptions &imageOptions);
|
||||
std::string getOSNameEn() const;
|
||||
void setOSNameEn(const std::string &oSNameEn);
|
||||
bool getEnableJumboFrame() const;
|
||||
@@ -99,6 +104,7 @@ private:
|
||||
std::string hostName_;
|
||||
PrivateDnsNameOptions privateDnsNameOptions_;
|
||||
std::string cpuOptionsTopologyType_;
|
||||
ImageOptions imageOptions_;
|
||||
std::string oSNameEn_;
|
||||
bool enableJumboFrame_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -180,3 +180,12 @@ void CreateCommandRequest::setEnableParameter(bool enableParameter) {
|
||||
setParameter(std::string("EnableParameter"), enableParameter ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateCommandRequest::getLauncher() const {
|
||||
return launcher_;
|
||||
}
|
||||
|
||||
void CreateCommandRequest::setLauncher(const std::string &launcher) {
|
||||
launcher_ = launcher;
|
||||
setParameter(std::string("Launcher"), launcher);
|
||||
}
|
||||
|
||||
|
||||
@@ -73,6 +73,8 @@ void DescribeCommandsResult::parse(const std::string &payload)
|
||||
commandsObject.enableParameter = valueCommandsCommand["EnableParameter"].asString() == "true";
|
||||
if(!valueCommandsCommand["ResourceGroupId"].isNull())
|
||||
commandsObject.resourceGroupId = valueCommandsCommand["ResourceGroupId"].asString();
|
||||
if(!valueCommandsCommand["Launcher"].isNull())
|
||||
commandsObject.launcher = valueCommandsCommand["Launcher"].asString();
|
||||
auto allParameterDefinitionsNode = valueCommandsCommand["ParameterDefinitions"]["ParameterDefinition"];
|
||||
for (auto valueCommandsCommandParameterDefinitionsParameterDefinition : allParameterDefinitionsNode)
|
||||
{
|
||||
|
||||
@@ -71,6 +71,8 @@ void DescribeElasticityAssurancesResult::parse(const std::string &payload)
|
||||
elasticityAssuranceSetObject.instanceChargeType = valueElasticityAssuranceSetElasticityAssuranceItem["InstanceChargeType"].asString();
|
||||
if(!valueElasticityAssuranceSetElasticityAssuranceItem["StartTimeType"].isNull())
|
||||
elasticityAssuranceSetObject.startTimeType = valueElasticityAssuranceSetElasticityAssuranceItem["StartTimeType"].asString();
|
||||
if(!valueElasticityAssuranceSetElasticityAssuranceItem["ElasticityAssuranceOwnerId"].isNull())
|
||||
elasticityAssuranceSetObject.elasticityAssuranceOwnerId = valueElasticityAssuranceSetElasticityAssuranceItem["ElasticityAssuranceOwnerId"].asString();
|
||||
auto allAllocatedResourcesNode = valueElasticityAssuranceSetElasticityAssuranceItem["AllocatedResources"]["AllocatedResource"];
|
||||
for (auto valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource : allAllocatedResourcesNode)
|
||||
{
|
||||
@@ -79,10 +81,24 @@ void DescribeElasticityAssurancesResult::parse(const std::string &payload)
|
||||
allocatedResourcesObject.usedAmount = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["UsedAmount"].asString());
|
||||
if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["TotalAmount"].isNull())
|
||||
allocatedResourcesObject.totalAmount = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["TotalAmount"].asString());
|
||||
if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["AvailableAmount"].isNull())
|
||||
allocatedResourcesObject.availableAmount = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["AvailableAmount"].asString());
|
||||
if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["zoneId"].isNull())
|
||||
allocatedResourcesObject.zoneId = valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["zoneId"].asString();
|
||||
if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["InstanceType"].isNull())
|
||||
allocatedResourcesObject.instanceType = valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["InstanceType"].asString();
|
||||
auto allElasticityAssuranceUsagesNode = valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["ElasticityAssuranceUsages"]["ElasticityAssuranceUsage"];
|
||||
for (auto valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage : allElasticityAssuranceUsagesNode)
|
||||
{
|
||||
ElasticityAssuranceItem::AllocatedResource::ElasticityAssuranceUsage elasticityAssuranceUsagesObject;
|
||||
if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage["AccountId"].isNull())
|
||||
elasticityAssuranceUsagesObject.accountId = valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage["AccountId"].asString();
|
||||
if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage["ServiceName"].isNull())
|
||||
elasticityAssuranceUsagesObject.serviceName = valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage["ServiceName"].asString();
|
||||
if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage["UsedAmount"].isNull())
|
||||
elasticityAssuranceUsagesObject.usedAmount = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResourceElasticityAssuranceUsagesElasticityAssuranceUsage["UsedAmount"].asString());
|
||||
allocatedResourcesObject.elasticityAssuranceUsages.push_back(elasticityAssuranceUsagesObject);
|
||||
}
|
||||
elasticityAssuranceSetObject.allocatedResources.push_back(allocatedResourcesObject);
|
||||
}
|
||||
auto allTagsNode = valueElasticityAssuranceSetElasticityAssuranceItem["Tags"]["Tag"];
|
||||
|
||||
@@ -269,6 +269,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
auto imageOptionsNode = value["ImageOptions"];
|
||||
if(!imageOptionsNode["LoginAsNonRoot"].isNull())
|
||||
instancesObject.imageOptions.loginAsNonRoot = imageOptionsNode["LoginAsNonRoot"].asString() == "true";
|
||||
if(!imageOptionsNode["CurrentOSNVMeSupported"].isNull())
|
||||
instancesObject.imageOptions.currentOSNVMeSupported = imageOptionsNode["CurrentOSNVMeSupported"].asString() == "true";
|
||||
auto privateDnsNameOptionsNode = value["PrivateDnsNameOptions"];
|
||||
if(!privateDnsNameOptionsNode["EnableInstanceIdDnsARecord"].isNull())
|
||||
instancesObject.privateDnsNameOptions.enableInstanceIdDnsARecord = privateDnsNameOptionsNode["EnableInstanceIdDnsARecord"].asString() == "true";
|
||||
|
||||
@@ -124,3 +124,12 @@ void ModifyCommandRequest::setName(const std::string &name) {
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ModifyCommandRequest::getLauncher() const {
|
||||
return launcher_;
|
||||
}
|
||||
|
||||
void ModifyCommandRequest::setLauncher(const std::string &launcher) {
|
||||
launcher_ = launcher;
|
||||
setParameter(std::string("Launcher"), launcher);
|
||||
}
|
||||
|
||||
|
||||
@@ -119,6 +119,15 @@ void ModifyInstanceAttributeRequest::setCpuOptionsTopologyType(const std::string
|
||||
setParameter(std::string("CpuOptions.TopologyType"), cpuOptionsTopologyType);
|
||||
}
|
||||
|
||||
ModifyInstanceAttributeRequest::ImageOptions ModifyInstanceAttributeRequest::getImageOptions() const {
|
||||
return imageOptions_;
|
||||
}
|
||||
|
||||
void ModifyInstanceAttributeRequest::setImageOptions(const ModifyInstanceAttributeRequest::ImageOptions &imageOptions) {
|
||||
imageOptions_ = imageOptions;
|
||||
setParameter(std::string("ImageOptions") + ".CurrentOSNVMeSupported", imageOptions.currentOSNVMeSupported ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyInstanceAttributeRequest::getOSNameEn() const {
|
||||
return oSNameEn_;
|
||||
}
|
||||
|
||||
@@ -103,6 +103,8 @@ set(live_public_header_model
|
||||
include/alibabacloud/live/model/CancelMuteAllGroupUserResult.h
|
||||
include/alibabacloud/live/model/CancelMuteGroupUserRequest.h
|
||||
include/alibabacloud/live/model/CancelMuteGroupUserResult.h
|
||||
include/alibabacloud/live/model/ChangeLiveDomainResourceGroupRequest.h
|
||||
include/alibabacloud/live/model/ChangeLiveDomainResourceGroupResult.h
|
||||
include/alibabacloud/live/model/CheckLiveMessageUsersInGroupRequest.h
|
||||
include/alibabacloud/live/model/CheckLiveMessageUsersInGroupResult.h
|
||||
include/alibabacloud/live/model/CheckLiveMessageUsersOnlineRequest.h
|
||||
@@ -487,6 +489,8 @@ set(live_public_header_model
|
||||
include/alibabacloud/live/model/DescribeLiveStreamsTotalCountResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveTopDomainsByFlowResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveTrafficDomainLogRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveTrafficDomainLogResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveUpVideoAudioInfoRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveUpVideoAudioInfoResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveUserBillPredictionRequest.h
|
||||
@@ -904,6 +908,8 @@ set(live_src
|
||||
src/model/CancelMuteAllGroupUserResult.cc
|
||||
src/model/CancelMuteGroupUserRequest.cc
|
||||
src/model/CancelMuteGroupUserResult.cc
|
||||
src/model/ChangeLiveDomainResourceGroupRequest.cc
|
||||
src/model/ChangeLiveDomainResourceGroupResult.cc
|
||||
src/model/CheckLiveMessageUsersInGroupRequest.cc
|
||||
src/model/CheckLiveMessageUsersInGroupResult.cc
|
||||
src/model/CheckLiveMessageUsersOnlineRequest.cc
|
||||
@@ -1288,6 +1294,8 @@ set(live_src
|
||||
src/model/DescribeLiveStreamsTotalCountResult.cc
|
||||
src/model/DescribeLiveTopDomainsByFlowRequest.cc
|
||||
src/model/DescribeLiveTopDomainsByFlowResult.cc
|
||||
src/model/DescribeLiveTrafficDomainLogRequest.cc
|
||||
src/model/DescribeLiveTrafficDomainLogResult.cc
|
||||
src/model/DescribeLiveUpVideoAudioInfoRequest.cc
|
||||
src/model/DescribeLiveUpVideoAudioInfoResult.cc
|
||||
src/model/DescribeLiveUserBillPredictionRequest.cc
|
||||
|
||||
@@ -104,6 +104,8 @@
|
||||
#include "model/CancelMuteAllGroupUserResult.h"
|
||||
#include "model/CancelMuteGroupUserRequest.h"
|
||||
#include "model/CancelMuteGroupUserResult.h"
|
||||
#include "model/ChangeLiveDomainResourceGroupRequest.h"
|
||||
#include "model/ChangeLiveDomainResourceGroupResult.h"
|
||||
#include "model/CheckLiveMessageUsersInGroupRequest.h"
|
||||
#include "model/CheckLiveMessageUsersInGroupResult.h"
|
||||
#include "model/CheckLiveMessageUsersOnlineRequest.h"
|
||||
@@ -488,6 +490,8 @@
|
||||
#include "model/DescribeLiveStreamsTotalCountResult.h"
|
||||
#include "model/DescribeLiveTopDomainsByFlowRequest.h"
|
||||
#include "model/DescribeLiveTopDomainsByFlowResult.h"
|
||||
#include "model/DescribeLiveTrafficDomainLogRequest.h"
|
||||
#include "model/DescribeLiveTrafficDomainLogResult.h"
|
||||
#include "model/DescribeLiveUpVideoAudioInfoRequest.h"
|
||||
#include "model/DescribeLiveUpVideoAudioInfoResult.h"
|
||||
#include "model/DescribeLiveUserBillPredictionRequest.h"
|
||||
@@ -952,6 +956,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CancelMuteGroupUserResult> CancelMuteGroupUserOutcome;
|
||||
typedef std::future<CancelMuteGroupUserOutcome> CancelMuteGroupUserOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::CancelMuteGroupUserRequest&, const CancelMuteGroupUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelMuteGroupUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChangeLiveDomainResourceGroupResult> ChangeLiveDomainResourceGroupOutcome;
|
||||
typedef std::future<ChangeLiveDomainResourceGroupOutcome> ChangeLiveDomainResourceGroupOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::ChangeLiveDomainResourceGroupRequest&, const ChangeLiveDomainResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeLiveDomainResourceGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckLiveMessageUsersInGroupResult> CheckLiveMessageUsersInGroupOutcome;
|
||||
typedef std::future<CheckLiveMessageUsersInGroupOutcome> CheckLiveMessageUsersInGroupOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::CheckLiveMessageUsersInGroupRequest&, const CheckLiveMessageUsersInGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckLiveMessageUsersInGroupAsyncHandler;
|
||||
@@ -1528,6 +1535,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeLiveTopDomainsByFlowResult> DescribeLiveTopDomainsByFlowOutcome;
|
||||
typedef std::future<DescribeLiveTopDomainsByFlowOutcome> DescribeLiveTopDomainsByFlowOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DescribeLiveTopDomainsByFlowRequest&, const DescribeLiveTopDomainsByFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveTopDomainsByFlowAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLiveTrafficDomainLogResult> DescribeLiveTrafficDomainLogOutcome;
|
||||
typedef std::future<DescribeLiveTrafficDomainLogOutcome> DescribeLiveTrafficDomainLogOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DescribeLiveTrafficDomainLogRequest&, const DescribeLiveTrafficDomainLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveTrafficDomainLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLiveUpVideoAudioInfoResult> DescribeLiveUpVideoAudioInfoOutcome;
|
||||
typedef std::future<DescribeLiveUpVideoAudioInfoOutcome> DescribeLiveUpVideoAudioInfoOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DescribeLiveUpVideoAudioInfoRequest&, const DescribeLiveUpVideoAudioInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveUpVideoAudioInfoAsyncHandler;
|
||||
@@ -2154,6 +2164,9 @@ namespace AlibabaCloud
|
||||
CancelMuteGroupUserOutcome cancelMuteGroupUser(const Model::CancelMuteGroupUserRequest &request)const;
|
||||
void cancelMuteGroupUserAsync(const Model::CancelMuteGroupUserRequest& request, const CancelMuteGroupUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelMuteGroupUserOutcomeCallable cancelMuteGroupUserCallable(const Model::CancelMuteGroupUserRequest& request) const;
|
||||
ChangeLiveDomainResourceGroupOutcome changeLiveDomainResourceGroup(const Model::ChangeLiveDomainResourceGroupRequest &request)const;
|
||||
void changeLiveDomainResourceGroupAsync(const Model::ChangeLiveDomainResourceGroupRequest& request, const ChangeLiveDomainResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeLiveDomainResourceGroupOutcomeCallable changeLiveDomainResourceGroupCallable(const Model::ChangeLiveDomainResourceGroupRequest& request) const;
|
||||
CheckLiveMessageUsersInGroupOutcome checkLiveMessageUsersInGroup(const Model::CheckLiveMessageUsersInGroupRequest &request)const;
|
||||
void checkLiveMessageUsersInGroupAsync(const Model::CheckLiveMessageUsersInGroupRequest& request, const CheckLiveMessageUsersInGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckLiveMessageUsersInGroupOutcomeCallable checkLiveMessageUsersInGroupCallable(const Model::CheckLiveMessageUsersInGroupRequest& request) const;
|
||||
@@ -2730,6 +2743,9 @@ namespace AlibabaCloud
|
||||
DescribeLiveTopDomainsByFlowOutcome describeLiveTopDomainsByFlow(const Model::DescribeLiveTopDomainsByFlowRequest &request)const;
|
||||
void describeLiveTopDomainsByFlowAsync(const Model::DescribeLiveTopDomainsByFlowRequest& request, const DescribeLiveTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLiveTopDomainsByFlowOutcomeCallable describeLiveTopDomainsByFlowCallable(const Model::DescribeLiveTopDomainsByFlowRequest& request) const;
|
||||
DescribeLiveTrafficDomainLogOutcome describeLiveTrafficDomainLog(const Model::DescribeLiveTrafficDomainLogRequest &request)const;
|
||||
void describeLiveTrafficDomainLogAsync(const Model::DescribeLiveTrafficDomainLogRequest& request, const DescribeLiveTrafficDomainLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLiveTrafficDomainLogOutcomeCallable describeLiveTrafficDomainLogCallable(const Model::DescribeLiveTrafficDomainLogRequest& request) const;
|
||||
DescribeLiveUpVideoAudioInfoOutcome describeLiveUpVideoAudioInfo(const Model::DescribeLiveUpVideoAudioInfoRequest &request)const;
|
||||
void describeLiveUpVideoAudioInfoAsync(const Model::DescribeLiveUpVideoAudioInfoRequest& request, const DescribeLiveUpVideoAudioInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLiveUpVideoAudioInfoOutcomeCallable describeLiveUpVideoAudioInfoCallable(const Model::DescribeLiveUpVideoAudioInfoRequest& request) const;
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~AddLiveAIProduceRulesRequest();
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
std::string getSuffix() const;
|
||||
void setSuffix(const std::string &suffix);
|
||||
std::string getSubtitleName() const;
|
||||
void setSubtitleName(const std::string &subtitleName);
|
||||
std::string getApp() const;
|
||||
@@ -40,6 +42,8 @@ public:
|
||||
void setOwnerId(long ownerId);
|
||||
bool getIsLazy() const;
|
||||
void setIsLazy(bool isLazy);
|
||||
std::string getStudioName() const;
|
||||
void setStudioName(const std::string &studioName);
|
||||
std::string getLiveTemplate() const;
|
||||
void setLiveTemplate(const std::string &liveTemplate);
|
||||
std::string getDomain() const;
|
||||
@@ -49,10 +53,12 @@ public:
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string suffix_;
|
||||
std::string subtitleName_;
|
||||
std::string app_;
|
||||
long ownerId_;
|
||||
bool isLazy_;
|
||||
std::string studioName_;
|
||||
std::string liveTemplate_;
|
||||
std::string domain_;
|
||||
bool isOrigin_;
|
||||
|
||||
@@ -28,6 +28,10 @@ namespace Live {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT AddLiveDomainRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tag {
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
AddLiveDomainRequest();
|
||||
~AddLiveDomainRequest();
|
||||
std::string getResourceGroupId() const;
|
||||
@@ -36,6 +40,8 @@ public:
|
||||
void setSecurityToken(const std::string &securityToken);
|
||||
std::string getScope() const;
|
||||
void setScope(const std::string &scope);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
std::string getTopLevelDomain() const;
|
||||
void setTopLevelDomain(const std::string &topLevelDomain);
|
||||
std::string getOwnerAccount() const;
|
||||
@@ -55,6 +61,7 @@ private:
|
||||
std::string resourceGroupId_;
|
||||
std::string securityToken_;
|
||||
std::string scope_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string topLevelDomain_;
|
||||
std::string ownerAccount_;
|
||||
std::string domainName_;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_LIVE_MODEL_CHANGELIVEDOMAINRESOURCEGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_CHANGELIVEDOMAINRESOURCEGROUPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Live {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT ChangeLiveDomainResourceGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ChangeLiveDomainResourceGroupRequest();
|
||||
~ChangeLiveDomainResourceGroupRequest();
|
||||
std::string getDomainName() const;
|
||||
void setDomainName(const std::string &domainName);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getNewResourceGroupId() const;
|
||||
void setNewResourceGroupId(const std::string &newResourceGroupId);
|
||||
|
||||
private:
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string newResourceGroupId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Live
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_CHANGELIVEDOMAINRESOURCEGROUPREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_LIVE_MODEL_CHANGELIVEDOMAINRESOURCEGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_CHANGELIVEDOMAINRESOURCEGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT ChangeLiveDomainResourceGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ChangeLiveDomainResourceGroupResult();
|
||||
explicit ChangeLiveDomainResourceGroupResult(const std::string &payload);
|
||||
~ChangeLiveDomainResourceGroupResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_CHANGELIVEDOMAINRESOURCEGROUPRESULT_H_
|
||||
@@ -28,6 +28,10 @@ namespace Live {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT CreateCasterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tag {
|
||||
std::string key;
|
||||
std::string value;
|
||||
};
|
||||
CreateCasterRequest();
|
||||
~CreateCasterRequest();
|
||||
std::string getClientToken() const;
|
||||
@@ -36,6 +40,8 @@ public:
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getCasterName() const;
|
||||
void setCasterName(const std::string &casterName);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
std::string getCasterTemplate() const;
|
||||
void setCasterTemplate(const std::string &casterTemplate);
|
||||
std::string getExpireTime() const;
|
||||
@@ -55,6 +61,7 @@ private:
|
||||
std::string clientToken_;
|
||||
std::string resourceGroupId_;
|
||||
std::string casterName_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string casterTemplate_;
|
||||
std::string expireTime_;
|
||||
int normType_;
|
||||
|
||||
@@ -28,6 +28,10 @@ namespace Live {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT DescribeCastersRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tag {
|
||||
std::string key;
|
||||
std::string value;
|
||||
};
|
||||
DescribeCastersRequest();
|
||||
~DescribeCastersRequest();
|
||||
std::string getStartTime() const;
|
||||
@@ -40,6 +44,8 @@ public:
|
||||
void setCasterName(const std::string &casterName);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
std::string getNormType() const;
|
||||
void setNormType(const std::string &normType);
|
||||
std::string getCasterId() const;
|
||||
@@ -61,6 +67,7 @@ private:
|
||||
std::string resourceGroupId_;
|
||||
std::string casterName_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string normType_;
|
||||
std::string casterId_;
|
||||
std::string endTime_;
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Caster
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string tagKey;
|
||||
std::string tagValue;
|
||||
};
|
||||
int status;
|
||||
std::string casterTemplate;
|
||||
int channelEnable;
|
||||
@@ -50,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string chargeType;
|
||||
std::string expireTime;
|
||||
std::string casterId;
|
||||
std::vector<Caster::Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
std::string rulesId;
|
||||
std::string subtitleName;
|
||||
bool isOrigin;
|
||||
std::string studioName;
|
||||
std::string suffixName;
|
||||
std::string domain;
|
||||
std::string liveTemplate;
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_LIVE_MODEL_DESCRIBELIVETRAFFICDOMAINLOGREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVETRAFFICDOMAINLOGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Live {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT DescribeLiveTrafficDomainLogRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeLiveTrafficDomainLogRequest();
|
||||
~DescribeLiveTrafficDomainLogRequest();
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
long getPageNumber() const;
|
||||
void setPageNumber(long pageNumber);
|
||||
long getPageSize() const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getDomainName() const;
|
||||
void setDomainName(const std::string &domainName);
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
long pageNumber_;
|
||||
long pageSize_;
|
||||
std::string domainName_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Live
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVETRAFFICDOMAINLOGREQUEST_H_
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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_LIVE_MODEL_DESCRIBELIVETRAFFICDOMAINLOGRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVETRAFFICDOMAINLOGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT DescribeLiveTrafficDomainLogResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DomainLogDetail
|
||||
{
|
||||
struct PageInfos
|
||||
{
|
||||
long pageSize;
|
||||
long total;
|
||||
long pageIndex;
|
||||
};
|
||||
struct LogInfoDetail
|
||||
{
|
||||
long logSize;
|
||||
std::string endTime;
|
||||
std::string startTime;
|
||||
std::string logName;
|
||||
std::string logPath;
|
||||
};
|
||||
std::vector<DomainLogDetail::LogInfoDetail> logInfos;
|
||||
PageInfos pageInfos;
|
||||
long logCount;
|
||||
};
|
||||
|
||||
|
||||
DescribeLiveTrafficDomainLogResult();
|
||||
explicit DescribeLiveTrafficDomainLogResult(const std::string &payload);
|
||||
~DescribeLiveTrafficDomainLogResult();
|
||||
std::string getDomainName()const;
|
||||
std::vector<DomainLogDetail> getDomainLogDetails()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string domainName_;
|
||||
std::vector<DomainLogDetail> domainLogDetails_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVETRAFFICDOMAINLOGRESULT_H_
|
||||
@@ -36,6 +36,7 @@ public:
|
||||
std::string userId;
|
||||
};
|
||||
struct MultiStreamURL {
|
||||
bool isAliCdn;
|
||||
std::string uRL;
|
||||
};
|
||||
struct SeiParams {
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~UpdateLiveAIProduceRulesRequest();
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
std::string getSuffix() const;
|
||||
void setSuffix(const std::string &suffix);
|
||||
std::string getSubtitleName() const;
|
||||
void setSubtitleName(const std::string &subtitleName);
|
||||
std::string getRulesId() const;
|
||||
@@ -42,6 +44,8 @@ public:
|
||||
void setOwnerId(long ownerId);
|
||||
bool getIsLazy() const;
|
||||
void setIsLazy(bool isLazy);
|
||||
std::string getStudioName() const;
|
||||
void setStudioName(const std::string &studioName);
|
||||
std::string getLiveTemplate() const;
|
||||
void setLiveTemplate(const std::string &liveTemplate);
|
||||
std::string getDomain() const;
|
||||
@@ -53,11 +57,13 @@ public:
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string suffix_;
|
||||
std::string subtitleName_;
|
||||
std::string rulesId_;
|
||||
std::string app_;
|
||||
long ownerId_;
|
||||
bool isLazy_;
|
||||
std::string studioName_;
|
||||
std::string liveTemplate_;
|
||||
std::string domain_;
|
||||
bool isOrigin_;
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT UpdateLiveMPUTaskRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct MultiStreamURL {
|
||||
bool isAliCdn;
|
||||
std::string uRL;
|
||||
};
|
||||
struct SingleSubParams {
|
||||
|
||||
@@ -1527,6 +1527,42 @@ LiveClient::CancelMuteGroupUserOutcomeCallable LiveClient::cancelMuteGroupUserCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::ChangeLiveDomainResourceGroupOutcome LiveClient::changeLiveDomainResourceGroup(const ChangeLiveDomainResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeLiveDomainResourceGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeLiveDomainResourceGroupOutcome(ChangeLiveDomainResourceGroupResult(outcome.result()));
|
||||
else
|
||||
return ChangeLiveDomainResourceGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::changeLiveDomainResourceGroupAsync(const ChangeLiveDomainResourceGroupRequest& request, const ChangeLiveDomainResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeLiveDomainResourceGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::ChangeLiveDomainResourceGroupOutcomeCallable LiveClient::changeLiveDomainResourceGroupCallable(const ChangeLiveDomainResourceGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeLiveDomainResourceGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeLiveDomainResourceGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CheckLiveMessageUsersInGroupOutcome LiveClient::checkLiveMessageUsersInGroup(const CheckLiveMessageUsersInGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8439,6 +8475,42 @@ LiveClient::DescribeLiveTopDomainsByFlowOutcomeCallable LiveClient::describeLive
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveTrafficDomainLogOutcome LiveClient::describeLiveTrafficDomainLog(const DescribeLiveTrafficDomainLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveTrafficDomainLogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveTrafficDomainLogOutcome(DescribeLiveTrafficDomainLogResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveTrafficDomainLogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveTrafficDomainLogAsync(const DescribeLiveTrafficDomainLogRequest& request, const DescribeLiveTrafficDomainLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveTrafficDomainLog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveTrafficDomainLogOutcomeCallable LiveClient::describeLiveTrafficDomainLogCallable(const DescribeLiveTrafficDomainLogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveTrafficDomainLogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveTrafficDomainLog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveUpVideoAudioInfoOutcome LiveClient::describeLiveUpVideoAudioInfo(const DescribeLiveUpVideoAudioInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -34,6 +34,15 @@ void AddLiveAIProduceRulesRequest::setDescription(const std::string &description
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string AddLiveAIProduceRulesRequest::getSuffix() const {
|
||||
return suffix_;
|
||||
}
|
||||
|
||||
void AddLiveAIProduceRulesRequest::setSuffix(const std::string &suffix) {
|
||||
suffix_ = suffix;
|
||||
setParameter(std::string("Suffix"), suffix);
|
||||
}
|
||||
|
||||
std::string AddLiveAIProduceRulesRequest::getSubtitleName() const {
|
||||
return subtitleName_;
|
||||
}
|
||||
@@ -70,6 +79,15 @@ void AddLiveAIProduceRulesRequest::setIsLazy(bool isLazy) {
|
||||
setParameter(std::string("IsLazy"), isLazy ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddLiveAIProduceRulesRequest::getStudioName() const {
|
||||
return studioName_;
|
||||
}
|
||||
|
||||
void AddLiveAIProduceRulesRequest::setStudioName(const std::string &studioName) {
|
||||
studioName_ = studioName;
|
||||
setParameter(std::string("StudioName"), studioName);
|
||||
}
|
||||
|
||||
std::string AddLiveAIProduceRulesRequest::getLiveTemplate() const {
|
||||
return liveTemplate_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,20 @@ void AddLiveDomainRequest::setScope(const std::string &scope) {
|
||||
setParameter(std::string("Scope"), scope);
|
||||
}
|
||||
|
||||
std::vector<AddLiveDomainRequest::Tag> AddLiveDomainRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void AddLiveDomainRequest::setTag(const std::vector<AddLiveDomainRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddLiveDomainRequest::getTopLevelDomain() const {
|
||||
return topLevelDomain_;
|
||||
}
|
||||
|
||||
54
live/src/model/ChangeLiveDomainResourceGroupRequest.cc
Normal file
54
live/src/model/ChangeLiveDomainResourceGroupRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/live/model/ChangeLiveDomainResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::ChangeLiveDomainResourceGroupRequest;
|
||||
|
||||
ChangeLiveDomainResourceGroupRequest::ChangeLiveDomainResourceGroupRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "ChangeLiveDomainResourceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeLiveDomainResourceGroupRequest::~ChangeLiveDomainResourceGroupRequest() {}
|
||||
|
||||
std::string ChangeLiveDomainResourceGroupRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void ChangeLiveDomainResourceGroupRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long ChangeLiveDomainResourceGroupRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ChangeLiveDomainResourceGroupRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ChangeLiveDomainResourceGroupRequest::getNewResourceGroupId() const {
|
||||
return newResourceGroupId_;
|
||||
}
|
||||
|
||||
void ChangeLiveDomainResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) {
|
||||
newResourceGroupId_ = newResourceGroupId;
|
||||
setParameter(std::string("NewResourceGroupId"), newResourceGroupId);
|
||||
}
|
||||
|
||||
44
live/src/model/ChangeLiveDomainResourceGroupResult.cc
Normal file
44
live/src/model/ChangeLiveDomainResourceGroupResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/live/model/ChangeLiveDomainResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
ChangeLiveDomainResourceGroupResult::ChangeLiveDomainResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeLiveDomainResourceGroupResult::ChangeLiveDomainResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeLiveDomainResourceGroupResult::~ChangeLiveDomainResourceGroupResult()
|
||||
{}
|
||||
|
||||
void ChangeLiveDomainResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -52,6 +52,20 @@ void CreateCasterRequest::setCasterName(const std::string &casterName) {
|
||||
setParameter(std::string("CasterName"), casterName);
|
||||
}
|
||||
|
||||
std::vector<CreateCasterRequest::Tag> CreateCasterRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateCasterRequest::setTag(const std::vector<CreateCasterRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateCasterRequest::getCasterTemplate() const {
|
||||
return casterTemplate_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,20 @@ void DescribeCastersRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeCastersRequest::Tag> DescribeCastersRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeCastersRequest::setTag(const std::vector<DescribeCastersRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeCastersRequest::getNormType() const {
|
||||
return normType_;
|
||||
}
|
||||
|
||||
@@ -75,6 +75,16 @@ void DescribeCastersResult::parse(const std::string &payload)
|
||||
casterListObject.resourceGroupId = std::stoi(valueCasterListCaster["ResourceGroupId"].asString());
|
||||
if(!valueCasterListCaster["ClientTokenId"].isNull())
|
||||
casterListObject.clientTokenId = valueCasterListCaster["ClientTokenId"].asString();
|
||||
auto allTagsNode = valueCasterListCaster["Tags"]["tag"];
|
||||
for (auto valueCasterListCasterTagstag : allTagsNode)
|
||||
{
|
||||
Caster::Tag tagsObject;
|
||||
if(!valueCasterListCasterTagstag["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueCasterListCasterTagstag["TagKey"].asString();
|
||||
if(!valueCasterListCasterTagstag["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueCasterListCasterTagstag["TagValue"].asString();
|
||||
casterListObject.tags.push_back(tagsObject);
|
||||
}
|
||||
casterList_.push_back(casterListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
|
||||
@@ -61,6 +61,8 @@ void DescribeLiveAIProduceRulesResult::parse(const std::string &payload)
|
||||
ruleInfoListObject.gmtModifyTime = valueRuleInfoListRuleInfo["GmtModifyTime"].asString();
|
||||
if(!valueRuleInfoListRuleInfo["SuffixName"].isNull())
|
||||
ruleInfoListObject.suffixName = valueRuleInfoListRuleInfo["SuffixName"].asString();
|
||||
if(!valueRuleInfoListRuleInfo["StudioName"].isNull())
|
||||
ruleInfoListObject.studioName = valueRuleInfoListRuleInfo["StudioName"].asString();
|
||||
if(!valueRuleInfoListRuleInfo["Description"].isNull())
|
||||
ruleInfoListObject.description = valueRuleInfoListRuleInfo["Description"].asString();
|
||||
ruleInfoList_.push_back(ruleInfoListObject);
|
||||
|
||||
81
live/src/model/DescribeLiveTrafficDomainLogRequest.cc
Normal file
81
live/src/model/DescribeLiveTrafficDomainLogRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/live/model/DescribeLiveTrafficDomainLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLiveTrafficDomainLogRequest;
|
||||
|
||||
DescribeLiveTrafficDomainLogRequest::DescribeLiveTrafficDomainLogRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveTrafficDomainLog") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveTrafficDomainLogRequest::~DescribeLiveTrafficDomainLogRequest() {}
|
||||
|
||||
std::string DescribeLiveTrafficDomainLogRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveTrafficDomainLogRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
long DescribeLiveTrafficDomainLogRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeLiveTrafficDomainLogRequest::setPageNumber(long pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long DescribeLiveTrafficDomainLogRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeLiveTrafficDomainLogRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeLiveTrafficDomainLogRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLiveTrafficDomainLogRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveTrafficDomainLogRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveTrafficDomainLogRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
long DescribeLiveTrafficDomainLogRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveTrafficDomainLogRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
87
live/src/model/DescribeLiveTrafficDomainLogResult.cc
Normal file
87
live/src/model/DescribeLiveTrafficDomainLogResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/live/model/DescribeLiveTrafficDomainLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLiveTrafficDomainLogResult::DescribeLiveTrafficDomainLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveTrafficDomainLogResult::DescribeLiveTrafficDomainLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveTrafficDomainLogResult::~DescribeLiveTrafficDomainLogResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveTrafficDomainLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainLogDetailsNode = value["DomainLogDetails"]["DomainLogDetail"];
|
||||
for (auto valueDomainLogDetailsDomainLogDetail : allDomainLogDetailsNode)
|
||||
{
|
||||
DomainLogDetail domainLogDetailsObject;
|
||||
if(!valueDomainLogDetailsDomainLogDetail["LogCount"].isNull())
|
||||
domainLogDetailsObject.logCount = std::stol(valueDomainLogDetailsDomainLogDetail["LogCount"].asString());
|
||||
auto allLogInfosNode = valueDomainLogDetailsDomainLogDetail["LogInfos"]["LogInfoDetail"];
|
||||
for (auto valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail : allLogInfosNode)
|
||||
{
|
||||
DomainLogDetail::LogInfoDetail logInfosObject;
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].isNull())
|
||||
logInfosObject.endTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].isNull())
|
||||
logInfosObject.logSize = std::stol(valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].asString());
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].isNull())
|
||||
logInfosObject.startTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].isNull())
|
||||
logInfosObject.logName = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].isNull())
|
||||
logInfosObject.logPath = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].asString();
|
||||
domainLogDetailsObject.logInfos.push_back(logInfosObject);
|
||||
}
|
||||
auto pageInfosNode = value["PageInfos"];
|
||||
if(!pageInfosNode["PageIndex"].isNull())
|
||||
domainLogDetailsObject.pageInfos.pageIndex = std::stol(pageInfosNode["PageIndex"].asString());
|
||||
if(!pageInfosNode["PageSize"].isNull())
|
||||
domainLogDetailsObject.pageInfos.pageSize = std::stol(pageInfosNode["PageSize"].asString());
|
||||
if(!pageInfosNode["Total"].isNull())
|
||||
domainLogDetailsObject.pageInfos.total = std::stol(pageInfosNode["Total"].asString());
|
||||
domainLogDetails_.push_back(domainLogDetailsObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveTrafficDomainLogResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveTrafficDomainLogResult::DomainLogDetail> DescribeLiveTrafficDomainLogResult::getDomainLogDetails()const
|
||||
{
|
||||
return domainLogDetails_;
|
||||
}
|
||||
|
||||
@@ -64,6 +64,7 @@ std::vector<StartLiveMPUTaskRequest::MultiStreamURL> StartLiveMPUTaskRequest::ge
|
||||
void StartLiveMPUTaskRequest::setMultiStreamURL(const std::vector<StartLiveMPUTaskRequest::MultiStreamURL> &multiStreamURL) {
|
||||
multiStreamURL_ = multiStreamURL;
|
||||
for(int dep1 = 0; dep1 != multiStreamURL.size(); dep1++) {
|
||||
setParameter(std::string("MultiStreamURL") + "." + std::to_string(dep1 + 1) + ".IsAliCdn", multiStreamURL[dep1].isAliCdn ? "true" : "false");
|
||||
setParameter(std::string("MultiStreamURL") + "." + std::to_string(dep1 + 1) + ".URL", multiStreamURL[dep1].uRL);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void UpdateLiveAIProduceRulesRequest::setDescription(const std::string &descript
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateLiveAIProduceRulesRequest::getSuffix() const {
|
||||
return suffix_;
|
||||
}
|
||||
|
||||
void UpdateLiveAIProduceRulesRequest::setSuffix(const std::string &suffix) {
|
||||
suffix_ = suffix;
|
||||
setParameter(std::string("Suffix"), suffix);
|
||||
}
|
||||
|
||||
std::string UpdateLiveAIProduceRulesRequest::getSubtitleName() const {
|
||||
return subtitleName_;
|
||||
}
|
||||
@@ -79,6 +88,15 @@ void UpdateLiveAIProduceRulesRequest::setIsLazy(bool isLazy) {
|
||||
setParameter(std::string("IsLazy"), isLazy ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateLiveAIProduceRulesRequest::getStudioName() const {
|
||||
return studioName_;
|
||||
}
|
||||
|
||||
void UpdateLiveAIProduceRulesRequest::setStudioName(const std::string &studioName) {
|
||||
studioName_ = studioName;
|
||||
setParameter(std::string("StudioName"), studioName);
|
||||
}
|
||||
|
||||
std::string UpdateLiveAIProduceRulesRequest::getLiveTemplate() const {
|
||||
return liveTemplate_;
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ std::vector<UpdateLiveMPUTaskRequest::MultiStreamURL> UpdateLiveMPUTaskRequest::
|
||||
void UpdateLiveMPUTaskRequest::setMultiStreamURL(const std::vector<UpdateLiveMPUTaskRequest::MultiStreamURL> &multiStreamURL) {
|
||||
multiStreamURL_ = multiStreamURL;
|
||||
for(int dep1 = 0; dep1 != multiStreamURL.size(); dep1++) {
|
||||
setParameter(std::string("MultiStreamURL") + "." + std::to_string(dep1 + 1) + ".IsAliCdn", multiStreamURL[dep1].isAliCdn ? "true" : "false");
|
||||
setParameter(std::string("MultiStreamURL") + "." + std::to_string(dep1 + 1) + ".URL", multiStreamURL[dep1].uRL);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user