Release CustomizeClassifyImage.

This commit is contained in:
sdk-team
2022-11-11 06:21:51 +00:00
parent 675df848ba
commit 4d88688ea6
16 changed files with 830 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1333
1.36.1334

View File

@@ -57,6 +57,8 @@ set(viapi-regen_public_header_model
include/alibabacloud/viapi-regen/model/DeleteWorkspaceResult.h
include/alibabacloud/viapi-regen/model/DisableDataReflowRequest.h
include/alibabacloud/viapi-regen/model/DisableDataReflowResult.h
include/alibabacloud/viapi-regen/model/DownloadDatasetRequest.h
include/alibabacloud/viapi-regen/model/DownloadDatasetResult.h
include/alibabacloud/viapi-regen/model/DownloadFileNameListRequest.h
include/alibabacloud/viapi-regen/model/DownloadFileNameListResult.h
include/alibabacloud/viapi-regen/model/DownloadLabelFileRequest.h
@@ -75,6 +77,10 @@ set(viapi-regen_public_header_model
include/alibabacloud/viapi-regen/model/GetLabelsetResult.h
include/alibabacloud/viapi-regen/model/GetServiceRequest.h
include/alibabacloud/viapi-regen/model/GetServiceResult.h
include/alibabacloud/viapi-regen/model/GetServiceInvokeRequest.h
include/alibabacloud/viapi-regen/model/GetServiceInvokeResult.h
include/alibabacloud/viapi-regen/model/GetServiceQpsRequest.h
include/alibabacloud/viapi-regen/model/GetServiceQpsResult.h
include/alibabacloud/viapi-regen/model/GetTrainModelRequest.h
include/alibabacloud/viapi-regen/model/GetTrainModelResult.h
include/alibabacloud/viapi-regen/model/GetTrainTaskRequest.h
@@ -160,6 +166,8 @@ set(viapi-regen_src
src/model/DeleteWorkspaceResult.cc
src/model/DisableDataReflowRequest.cc
src/model/DisableDataReflowResult.cc
src/model/DownloadDatasetRequest.cc
src/model/DownloadDatasetResult.cc
src/model/DownloadFileNameListRequest.cc
src/model/DownloadFileNameListResult.cc
src/model/DownloadLabelFileRequest.cc
@@ -178,6 +186,10 @@ set(viapi-regen_src
src/model/GetLabelsetResult.cc
src/model/GetServiceRequest.cc
src/model/GetServiceResult.cc
src/model/GetServiceInvokeRequest.cc
src/model/GetServiceInvokeResult.cc
src/model/GetServiceQpsRequest.cc
src/model/GetServiceQpsResult.cc
src/model/GetTrainModelRequest.cc
src/model/GetTrainModelResult.cc
src/model/GetTrainTaskRequest.cc

View File

@@ -58,6 +58,8 @@
#include "model/DeleteWorkspaceResult.h"
#include "model/DisableDataReflowRequest.h"
#include "model/DisableDataReflowResult.h"
#include "model/DownloadDatasetRequest.h"
#include "model/DownloadDatasetResult.h"
#include "model/DownloadFileNameListRequest.h"
#include "model/DownloadFileNameListResult.h"
#include "model/DownloadLabelFileRequest.h"
@@ -76,6 +78,10 @@
#include "model/GetLabelsetResult.h"
#include "model/GetServiceRequest.h"
#include "model/GetServiceResult.h"
#include "model/GetServiceInvokeRequest.h"
#include "model/GetServiceInvokeResult.h"
#include "model/GetServiceQpsRequest.h"
#include "model/GetServiceQpsResult.h"
#include "model/GetTrainModelRequest.h"
#include "model/GetTrainModelResult.h"
#include "model/GetTrainTaskRequest.h"
@@ -185,6 +191,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DisableDataReflowResult> DisableDataReflowOutcome;
typedef std::future<DisableDataReflowOutcome> DisableDataReflowOutcomeCallable;
typedef std::function<void(const Viapi_regenClient*, const Model::DisableDataReflowRequest&, const DisableDataReflowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableDataReflowAsyncHandler;
typedef Outcome<Error, Model::DownloadDatasetResult> DownloadDatasetOutcome;
typedef std::future<DownloadDatasetOutcome> DownloadDatasetOutcomeCallable;
typedef std::function<void(const Viapi_regenClient*, const Model::DownloadDatasetRequest&, const DownloadDatasetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadDatasetAsyncHandler;
typedef Outcome<Error, Model::DownloadFileNameListResult> DownloadFileNameListOutcome;
typedef std::future<DownloadFileNameListOutcome> DownloadFileNameListOutcomeCallable;
typedef std::function<void(const Viapi_regenClient*, const Model::DownloadFileNameListRequest&, const DownloadFileNameListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadFileNameListAsyncHandler;
@@ -212,6 +221,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetServiceResult> GetServiceOutcome;
typedef std::future<GetServiceOutcome> GetServiceOutcomeCallable;
typedef std::function<void(const Viapi_regenClient*, const Model::GetServiceRequest&, const GetServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceAsyncHandler;
typedef Outcome<Error, Model::GetServiceInvokeResult> GetServiceInvokeOutcome;
typedef std::future<GetServiceInvokeOutcome> GetServiceInvokeOutcomeCallable;
typedef std::function<void(const Viapi_regenClient*, const Model::GetServiceInvokeRequest&, const GetServiceInvokeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceInvokeAsyncHandler;
typedef Outcome<Error, Model::GetServiceQpsResult> GetServiceQpsOutcome;
typedef std::future<GetServiceQpsOutcome> GetServiceQpsOutcomeCallable;
typedef std::function<void(const Viapi_regenClient*, const Model::GetServiceQpsRequest&, const GetServiceQpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceQpsAsyncHandler;
typedef Outcome<Error, Model::GetTrainModelResult> GetTrainModelOutcome;
typedef std::future<GetTrainModelOutcome> GetTrainModelOutcomeCallable;
typedef std::function<void(const Viapi_regenClient*, const Model::GetTrainModelRequest&, const GetTrainModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTrainModelAsyncHandler;
@@ -340,6 +355,9 @@ namespace AlibabaCloud
DisableDataReflowOutcome disableDataReflow(const Model::DisableDataReflowRequest &request)const;
void disableDataReflowAsync(const Model::DisableDataReflowRequest& request, const DisableDataReflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DisableDataReflowOutcomeCallable disableDataReflowCallable(const Model::DisableDataReflowRequest& request) const;
DownloadDatasetOutcome downloadDataset(const Model::DownloadDatasetRequest &request)const;
void downloadDatasetAsync(const Model::DownloadDatasetRequest& request, const DownloadDatasetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DownloadDatasetOutcomeCallable downloadDatasetCallable(const Model::DownloadDatasetRequest& request) const;
DownloadFileNameListOutcome downloadFileNameList(const Model::DownloadFileNameListRequest &request)const;
void downloadFileNameListAsync(const Model::DownloadFileNameListRequest& request, const DownloadFileNameListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DownloadFileNameListOutcomeCallable downloadFileNameListCallable(const Model::DownloadFileNameListRequest& request) const;
@@ -367,6 +385,12 @@ namespace AlibabaCloud
GetServiceOutcome getService(const Model::GetServiceRequest &request)const;
void getServiceAsync(const Model::GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetServiceOutcomeCallable getServiceCallable(const Model::GetServiceRequest& request) const;
GetServiceInvokeOutcome getServiceInvoke(const Model::GetServiceInvokeRequest &request)const;
void getServiceInvokeAsync(const Model::GetServiceInvokeRequest& request, const GetServiceInvokeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetServiceInvokeOutcomeCallable getServiceInvokeCallable(const Model::GetServiceInvokeRequest& request) const;
GetServiceQpsOutcome getServiceQps(const Model::GetServiceQpsRequest &request)const;
void getServiceQpsAsync(const Model::GetServiceQpsRequest& request, const GetServiceQpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetServiceQpsOutcomeCallable getServiceQpsCallable(const Model::GetServiceQpsRequest& request) const;
GetTrainModelOutcome getTrainModel(const Model::GetTrainModelRequest &request)const;
void getTrainModelAsync(const Model::GetTrainModelRequest& request, const GetTrainModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTrainModelOutcomeCallable getTrainModelCallable(const Model::GetTrainModelRequest& request) const;

View File

@@ -0,0 +1,42 @@
/*
* 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_VIAPI_REGEN_MODEL_DOWNLOADDATASETREQUEST_H_
#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADDATASETREQUEST_H_
#include <alibabacloud/viapi-regen/Viapi_regenExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Viapi_regen {
namespace Model {
class ALIBABACLOUD_VIAPI_REGEN_EXPORT DownloadDatasetRequest : public RpcServiceRequest {
public:
DownloadDatasetRequest();
~DownloadDatasetRequest();
long getDatasetId() const;
void setDatasetId(long datasetId);
private:
long datasetId_;
};
} // namespace Model
} // namespace Viapi_regen
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADDATASETREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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_VIAPI_REGEN_MODEL_DOWNLOADDATASETRESULT_H_
#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADDATASETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/viapi-regen/Viapi_regenExport.h>
namespace AlibabaCloud
{
namespace Viapi_regen
{
namespace Model
{
class ALIBABACLOUD_VIAPI_REGEN_EXPORT DownloadDatasetResult : public ServiceResult
{
public:
struct Data
{
std::string ossHttpUrl;
};
DownloadDatasetResult();
explicit DownloadDatasetResult(const std::string &payload);
~DownloadDatasetResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADDATASETRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* 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_VIAPI_REGEN_MODEL_GETSERVICEINVOKEREQUEST_H_
#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEINVOKEREQUEST_H_
#include <alibabacloud/viapi-regen/Viapi_regenExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Viapi_regen {
namespace Model {
class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetServiceInvokeRequest : public RpcServiceRequest {
public:
GetServiceInvokeRequest();
~GetServiceInvokeRequest();
long getStartTime() const;
void setStartTime(long startTime);
long getId() const;
void setId(long id);
long getEndTime() const;
void setEndTime(long endTime);
std::vector<std::string> getCallerParentIdList() const;
void setCallerParentIdList(const std::vector<std::string> &callerParentIdList);
private:
long startTime_;
long id_;
long endTime_;
std::vector<std::string> callerParentIdList_;
};
} // namespace Model
} // namespace Viapi_regen
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEINVOKEREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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_VIAPI_REGEN_MODEL_GETSERVICEINVOKERESULT_H_
#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEINVOKERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/viapi-regen/Viapi_regenExport.h>
namespace AlibabaCloud
{
namespace Viapi_regen
{
namespace Model
{
class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetServiceInvokeResult : public ServiceResult
{
public:
struct Data
{
std::string userInvoke;
};
GetServiceInvokeResult();
explicit GetServiceInvokeResult(const std::string &payload);
~GetServiceInvokeResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEINVOKERESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* 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_VIAPI_REGEN_MODEL_GETSERVICEQPSREQUEST_H_
#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEQPSREQUEST_H_
#include <alibabacloud/viapi-regen/Viapi_regenExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Viapi_regen {
namespace Model {
class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetServiceQpsRequest : public RpcServiceRequest {
public:
GetServiceQpsRequest();
~GetServiceQpsRequest();
long getStartTime() const;
void setStartTime(long startTime);
long getId() const;
void setId(long id);
long getEndTime() const;
void setEndTime(long endTime);
std::vector<std::string> getCallerParentIdList() const;
void setCallerParentIdList(const std::vector<std::string> &callerParentIdList);
private:
long startTime_;
long id_;
long endTime_;
std::vector<std::string> callerParentIdList_;
};
} // namespace Model
} // namespace Viapi_regen
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEQPSREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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_VIAPI_REGEN_MODEL_GETSERVICEQPSRESULT_H_
#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEQPSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/viapi-regen/Viapi_regenExport.h>
namespace AlibabaCloud
{
namespace Viapi_regen
{
namespace Model
{
class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetServiceQpsResult : public ServiceResult
{
public:
struct Data
{
std::string userQps;
};
GetServiceQpsResult();
explicit GetServiceQpsResult(const std::string &payload);
~GetServiceQpsResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEQPSRESULT_H_

View File

@@ -699,6 +699,42 @@ Viapi_regenClient::DisableDataReflowOutcomeCallable Viapi_regenClient::disableDa
return task->get_future();
}
Viapi_regenClient::DownloadDatasetOutcome Viapi_regenClient::downloadDataset(const DownloadDatasetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DownloadDatasetOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DownloadDatasetOutcome(DownloadDatasetResult(outcome.result()));
else
return DownloadDatasetOutcome(outcome.error());
}
void Viapi_regenClient::downloadDatasetAsync(const DownloadDatasetRequest& request, const DownloadDatasetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, downloadDataset(request), context);
};
asyncExecute(new Runnable(fn));
}
Viapi_regenClient::DownloadDatasetOutcomeCallable Viapi_regenClient::downloadDatasetCallable(const DownloadDatasetRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DownloadDatasetOutcome()>>(
[this, request]()
{
return this->downloadDataset(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Viapi_regenClient::DownloadFileNameListOutcome Viapi_regenClient::downloadFileNameList(const DownloadFileNameListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1023,6 +1059,78 @@ Viapi_regenClient::GetServiceOutcomeCallable Viapi_regenClient::getServiceCallab
return task->get_future();
}
Viapi_regenClient::GetServiceInvokeOutcome Viapi_regenClient::getServiceInvoke(const GetServiceInvokeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetServiceInvokeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetServiceInvokeOutcome(GetServiceInvokeResult(outcome.result()));
else
return GetServiceInvokeOutcome(outcome.error());
}
void Viapi_regenClient::getServiceInvokeAsync(const GetServiceInvokeRequest& request, const GetServiceInvokeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getServiceInvoke(request), context);
};
asyncExecute(new Runnable(fn));
}
Viapi_regenClient::GetServiceInvokeOutcomeCallable Viapi_regenClient::getServiceInvokeCallable(const GetServiceInvokeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetServiceInvokeOutcome()>>(
[this, request]()
{
return this->getServiceInvoke(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Viapi_regenClient::GetServiceQpsOutcome Viapi_regenClient::getServiceQps(const GetServiceQpsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetServiceQpsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetServiceQpsOutcome(GetServiceQpsResult(outcome.result()));
else
return GetServiceQpsOutcome(outcome.error());
}
void Viapi_regenClient::getServiceQpsAsync(const GetServiceQpsRequest& request, const GetServiceQpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getServiceQps(request), context);
};
asyncExecute(new Runnable(fn));
}
Viapi_regenClient::GetServiceQpsOutcomeCallable Viapi_regenClient::getServiceQpsCallable(const GetServiceQpsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetServiceQpsOutcome()>>(
[this, request]()
{
return this->getServiceQps(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Viapi_regenClient::GetTrainModelOutcome Viapi_regenClient::getTrainModel(const GetTrainModelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,36 @@
/*
* 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/viapi-regen/model/DownloadDatasetRequest.h>
using AlibabaCloud::Viapi_regen::Model::DownloadDatasetRequest;
DownloadDatasetRequest::DownloadDatasetRequest()
: RpcServiceRequest("viapi-regen", "2021-11-19", "DownloadDataset") {
setMethod(HttpRequest::Method::Post);
}
DownloadDatasetRequest::~DownloadDatasetRequest() {}
long DownloadDatasetRequest::getDatasetId() const {
return datasetId_;
}
void DownloadDatasetRequest::setDatasetId(long datasetId) {
datasetId_ = datasetId;
setBodyParameter(std::string("DatasetId"), std::to_string(datasetId));
}

View File

@@ -0,0 +1,66 @@
/*
* 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/viapi-regen/model/DownloadDatasetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Viapi_regen;
using namespace AlibabaCloud::Viapi_regen::Model;
DownloadDatasetResult::DownloadDatasetResult() :
ServiceResult()
{}
DownloadDatasetResult::DownloadDatasetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DownloadDatasetResult::~DownloadDatasetResult()
{}
void DownloadDatasetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["OssHttpUrl"].isNull())
data_.ossHttpUrl = dataNode["OssHttpUrl"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
std::string DownloadDatasetResult::getMessage()const
{
return message_;
}
DownloadDatasetResult::Data DownloadDatasetResult::getData()const
{
return data_;
}
std::string DownloadDatasetResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,65 @@
/*
* 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/viapi-regen/model/GetServiceInvokeRequest.h>
using AlibabaCloud::Viapi_regen::Model::GetServiceInvokeRequest;
GetServiceInvokeRequest::GetServiceInvokeRequest()
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetServiceInvoke") {
setMethod(HttpRequest::Method::Post);
}
GetServiceInvokeRequest::~GetServiceInvokeRequest() {}
long GetServiceInvokeRequest::getStartTime() const {
return startTime_;
}
void GetServiceInvokeRequest::setStartTime(long startTime) {
startTime_ = startTime;
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
}
long GetServiceInvokeRequest::getId() const {
return id_;
}
void GetServiceInvokeRequest::setId(long id) {
id_ = id;
setBodyParameter(std::string("Id"), std::to_string(id));
}
long GetServiceInvokeRequest::getEndTime() const {
return endTime_;
}
void GetServiceInvokeRequest::setEndTime(long endTime) {
endTime_ = endTime;
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
}
std::vector<GetServiceInvokeRequest::std::string> GetServiceInvokeRequest::getCallerParentIdList() const {
return callerParentIdList_;
}
void GetServiceInvokeRequest::setCallerParentIdList(const std::vector<GetServiceInvokeRequest::std::string> &callerParentIdList) {
callerParentIdList_ = callerParentIdList;
for(int dep1 = 0; dep1 != callerParentIdList.size(); dep1++) {
setBodyParameter(std::string("CallerParentIdList") + "." + std::to_string(dep1 + 1), callerParentIdList[dep1]);
}
}

View File

@@ -0,0 +1,66 @@
/*
* 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/viapi-regen/model/GetServiceInvokeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Viapi_regen;
using namespace AlibabaCloud::Viapi_regen::Model;
GetServiceInvokeResult::GetServiceInvokeResult() :
ServiceResult()
{}
GetServiceInvokeResult::GetServiceInvokeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetServiceInvokeResult::~GetServiceInvokeResult()
{}
void GetServiceInvokeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["UserInvoke"].isNull())
data_.userInvoke = dataNode["UserInvoke"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
std::string GetServiceInvokeResult::getMessage()const
{
return message_;
}
GetServiceInvokeResult::Data GetServiceInvokeResult::getData()const
{
return data_;
}
std::string GetServiceInvokeResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,65 @@
/*
* 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/viapi-regen/model/GetServiceQpsRequest.h>
using AlibabaCloud::Viapi_regen::Model::GetServiceQpsRequest;
GetServiceQpsRequest::GetServiceQpsRequest()
: RpcServiceRequest("viapi-regen", "2021-11-19", "GetServiceQps") {
setMethod(HttpRequest::Method::Post);
}
GetServiceQpsRequest::~GetServiceQpsRequest() {}
long GetServiceQpsRequest::getStartTime() const {
return startTime_;
}
void GetServiceQpsRequest::setStartTime(long startTime) {
startTime_ = startTime;
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
}
long GetServiceQpsRequest::getId() const {
return id_;
}
void GetServiceQpsRequest::setId(long id) {
id_ = id;
setBodyParameter(std::string("Id"), std::to_string(id));
}
long GetServiceQpsRequest::getEndTime() const {
return endTime_;
}
void GetServiceQpsRequest::setEndTime(long endTime) {
endTime_ = endTime;
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
}
std::vector<GetServiceQpsRequest::std::string> GetServiceQpsRequest::getCallerParentIdList() const {
return callerParentIdList_;
}
void GetServiceQpsRequest::setCallerParentIdList(const std::vector<GetServiceQpsRequest::std::string> &callerParentIdList) {
callerParentIdList_ = callerParentIdList;
for(int dep1 = 0; dep1 != callerParentIdList.size(); dep1++) {
setBodyParameter(std::string("CallerParentIdList") + "." + std::to_string(dep1 + 1), callerParentIdList[dep1]);
}
}

View File

@@ -0,0 +1,66 @@
/*
* 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/viapi-regen/model/GetServiceQpsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Viapi_regen;
using namespace AlibabaCloud::Viapi_regen::Model;
GetServiceQpsResult::GetServiceQpsResult() :
ServiceResult()
{}
GetServiceQpsResult::GetServiceQpsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetServiceQpsResult::~GetServiceQpsResult()
{}
void GetServiceQpsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["UserQps"].isNull())
data_.userQps = dataNode["UserQps"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
std::string GetServiceQpsResult::getMessage()const
{
return message_;
}
GetServiceQpsResult::Data GetServiceQpsResult::getData()const
{
return data_;
}
std::string GetServiceQpsResult::getCode()const
{
return code_;
}