Update OpenDcdnService.
This commit is contained in:
@@ -179,6 +179,10 @@ set(dcdn_public_header_model
|
||||
include/alibabacloud/dcdn/model/DescribeUserDcdnStatusResult.h
|
||||
include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyRequest.h
|
||||
include/alibabacloud/dcdn/model/ModifyDCdnDomainSchdmByPropertyResult.h
|
||||
include/alibabacloud/dcdn/model/ModifyDcdnServiceRequest.h
|
||||
include/alibabacloud/dcdn/model/ModifyDcdnServiceResult.h
|
||||
include/alibabacloud/dcdn/model/OpenDcdnServiceRequest.h
|
||||
include/alibabacloud/dcdn/model/OpenDcdnServiceResult.h
|
||||
include/alibabacloud/dcdn/model/PreloadDcdnObjectCachesRequest.h
|
||||
include/alibabacloud/dcdn/model/PreloadDcdnObjectCachesResult.h
|
||||
include/alibabacloud/dcdn/model/PublishDcdnStagingConfigToProductionRequest.h
|
||||
@@ -374,6 +378,10 @@ set(dcdn_src
|
||||
src/model/DescribeUserDcdnStatusResult.cc
|
||||
src/model/ModifyDCdnDomainSchdmByPropertyRequest.cc
|
||||
src/model/ModifyDCdnDomainSchdmByPropertyResult.cc
|
||||
src/model/ModifyDcdnServiceRequest.cc
|
||||
src/model/ModifyDcdnServiceResult.cc
|
||||
src/model/OpenDcdnServiceRequest.cc
|
||||
src/model/OpenDcdnServiceResult.cc
|
||||
src/model/PreloadDcdnObjectCachesRequest.cc
|
||||
src/model/PreloadDcdnObjectCachesResult.cc
|
||||
src/model/PublishDcdnStagingConfigToProductionRequest.cc
|
||||
|
||||
@@ -180,6 +180,10 @@
|
||||
#include "model/DescribeUserDcdnStatusResult.h"
|
||||
#include "model/ModifyDCdnDomainSchdmByPropertyRequest.h"
|
||||
#include "model/ModifyDCdnDomainSchdmByPropertyResult.h"
|
||||
#include "model/ModifyDcdnServiceRequest.h"
|
||||
#include "model/ModifyDcdnServiceResult.h"
|
||||
#include "model/OpenDcdnServiceRequest.h"
|
||||
#include "model/OpenDcdnServiceResult.h"
|
||||
#include "model/PreloadDcdnObjectCachesRequest.h"
|
||||
#include "model/PreloadDcdnObjectCachesResult.h"
|
||||
#include "model/PublishDcdnStagingConfigToProductionRequest.h"
|
||||
@@ -460,6 +464,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDCdnDomainSchdmByPropertyResult> ModifyDCdnDomainSchdmByPropertyOutcome;
|
||||
typedef std::future<ModifyDCdnDomainSchdmByPropertyOutcome> ModifyDCdnDomainSchdmByPropertyOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::ModifyDCdnDomainSchdmByPropertyRequest&, const ModifyDCdnDomainSchdmByPropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDCdnDomainSchdmByPropertyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDcdnServiceResult> ModifyDcdnServiceOutcome;
|
||||
typedef std::future<ModifyDcdnServiceOutcome> ModifyDcdnServiceOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::ModifyDcdnServiceRequest&, const ModifyDcdnServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDcdnServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenDcdnServiceResult> OpenDcdnServiceOutcome;
|
||||
typedef std::future<OpenDcdnServiceOutcome> OpenDcdnServiceOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::OpenDcdnServiceRequest&, const OpenDcdnServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenDcdnServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::PreloadDcdnObjectCachesResult> PreloadDcdnObjectCachesOutcome;
|
||||
typedef std::future<PreloadDcdnObjectCachesOutcome> PreloadDcdnObjectCachesOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::PreloadDcdnObjectCachesRequest&, const PreloadDcdnObjectCachesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PreloadDcdnObjectCachesAsyncHandler;
|
||||
@@ -753,6 +763,12 @@ namespace AlibabaCloud
|
||||
ModifyDCdnDomainSchdmByPropertyOutcome modifyDCdnDomainSchdmByProperty(const Model::ModifyDCdnDomainSchdmByPropertyRequest &request)const;
|
||||
void modifyDCdnDomainSchdmByPropertyAsync(const Model::ModifyDCdnDomainSchdmByPropertyRequest& request, const ModifyDCdnDomainSchdmByPropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDCdnDomainSchdmByPropertyOutcomeCallable modifyDCdnDomainSchdmByPropertyCallable(const Model::ModifyDCdnDomainSchdmByPropertyRequest& request) const;
|
||||
ModifyDcdnServiceOutcome modifyDcdnService(const Model::ModifyDcdnServiceRequest &request)const;
|
||||
void modifyDcdnServiceAsync(const Model::ModifyDcdnServiceRequest& request, const ModifyDcdnServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDcdnServiceOutcomeCallable modifyDcdnServiceCallable(const Model::ModifyDcdnServiceRequest& request) const;
|
||||
OpenDcdnServiceOutcome openDcdnService(const Model::OpenDcdnServiceRequest &request)const;
|
||||
void openDcdnServiceAsync(const Model::OpenDcdnServiceRequest& request, const OpenDcdnServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenDcdnServiceOutcomeCallable openDcdnServiceCallable(const Model::OpenDcdnServiceRequest& request) const;
|
||||
PreloadDcdnObjectCachesOutcome preloadDcdnObjectCaches(const Model::PreloadDcdnObjectCachesRequest &request)const;
|
||||
void preloadDcdnObjectCachesAsync(const Model::PreloadDcdnObjectCachesRequest& request, const PreloadDcdnObjectCachesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PreloadDcdnObjectCachesOutcomeCallable preloadDcdnObjectCachesCallable(const Model::PreloadDcdnObjectCachesRequest& request) const;
|
||||
|
||||
@@ -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_DCDN_MODEL_MODIFYDCDNSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_MODIFYDCDNSERVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT ModifyDcdnServiceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDcdnServiceRequest();
|
||||
~ModifyDcdnServiceRequest();
|
||||
|
||||
std::string getWebsocketBillType()const;
|
||||
void setWebsocketBillType(const std::string& websocketBillType);
|
||||
std::string getBillType()const;
|
||||
void setBillType(const std::string& billType);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string websocketBillType_;
|
||||
std::string billType_;
|
||||
std::string securityToken_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_MODIFYDCDNSERVICEREQUEST_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_DCDN_MODEL_MODIFYDCDNSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_MODIFYDCDNSERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT ModifyDcdnServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDcdnServiceResult();
|
||||
explicit ModifyDcdnServiceResult(const std::string &payload);
|
||||
~ModifyDcdnServiceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_MODIFYDCDNSERVICERESULT_H_
|
||||
@@ -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_DCDN_MODEL_OPENDCDNSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_OPENDCDNSERVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT OpenDcdnServiceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
OpenDcdnServiceRequest();
|
||||
~OpenDcdnServiceRequest();
|
||||
|
||||
std::string getWebsocketBillType()const;
|
||||
void setWebsocketBillType(const std::string& websocketBillType);
|
||||
std::string getBillType()const;
|
||||
void setBillType(const std::string& billType);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string websocketBillType_;
|
||||
std::string billType_;
|
||||
std::string securityToken_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_OPENDCDNSERVICEREQUEST_H_
|
||||
49
dcdn/include/alibabacloud/dcdn/model/OpenDcdnServiceResult.h
Normal file
49
dcdn/include/alibabacloud/dcdn/model/OpenDcdnServiceResult.h
Normal file
@@ -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_DCDN_MODEL_OPENDCDNSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_OPENDCDNSERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dcdn/DcdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dcdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DCDN_EXPORT OpenDcdnServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
OpenDcdnServiceResult();
|
||||
explicit OpenDcdnServiceResult(const std::string &payload);
|
||||
~OpenDcdnServiceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_OPENDCDNSERVICERESULT_H_
|
||||
@@ -2895,6 +2895,78 @@ DcdnClient::ModifyDCdnDomainSchdmByPropertyOutcomeCallable DcdnClient::modifyDCd
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::ModifyDcdnServiceOutcome DcdnClient::modifyDcdnService(const ModifyDcdnServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDcdnServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDcdnServiceOutcome(ModifyDcdnServiceResult(outcome.result()));
|
||||
else
|
||||
return ModifyDcdnServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::modifyDcdnServiceAsync(const ModifyDcdnServiceRequest& request, const ModifyDcdnServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDcdnService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::ModifyDcdnServiceOutcomeCallable DcdnClient::modifyDcdnServiceCallable(const ModifyDcdnServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDcdnServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDcdnService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::OpenDcdnServiceOutcome DcdnClient::openDcdnService(const OpenDcdnServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenDcdnServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenDcdnServiceOutcome(OpenDcdnServiceResult(outcome.result()));
|
||||
else
|
||||
return OpenDcdnServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::openDcdnServiceAsync(const OpenDcdnServiceRequest& request, const OpenDcdnServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openDcdnService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::OpenDcdnServiceOutcomeCallable DcdnClient::openDcdnServiceCallable(const OpenDcdnServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenDcdnServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openDcdnService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::PreloadDcdnObjectCachesOutcome DcdnClient::preloadDcdnObjectCaches(const PreloadDcdnObjectCachesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
73
dcdn/src/model/ModifyDcdnServiceRequest.cc
Normal file
73
dcdn/src/model/ModifyDcdnServiceRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/ModifyDcdnServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::ModifyDcdnServiceRequest;
|
||||
|
||||
ModifyDcdnServiceRequest::ModifyDcdnServiceRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "ModifyDcdnService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDcdnServiceRequest::~ModifyDcdnServiceRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDcdnServiceRequest::getWebsocketBillType()const
|
||||
{
|
||||
return websocketBillType_;
|
||||
}
|
||||
|
||||
void ModifyDcdnServiceRequest::setWebsocketBillType(const std::string& websocketBillType)
|
||||
{
|
||||
websocketBillType_ = websocketBillType;
|
||||
setParameter("WebsocketBillType", websocketBillType);
|
||||
}
|
||||
|
||||
std::string ModifyDcdnServiceRequest::getBillType()const
|
||||
{
|
||||
return billType_;
|
||||
}
|
||||
|
||||
void ModifyDcdnServiceRequest::setBillType(const std::string& billType)
|
||||
{
|
||||
billType_ = billType;
|
||||
setParameter("BillType", billType);
|
||||
}
|
||||
|
||||
std::string ModifyDcdnServiceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyDcdnServiceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
long ModifyDcdnServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDcdnServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
dcdn/src/model/ModifyDcdnServiceResult.cc
Normal file
44
dcdn/src/model/ModifyDcdnServiceResult.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/dcdn/model/ModifyDcdnServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
ModifyDcdnServiceResult::ModifyDcdnServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDcdnServiceResult::ModifyDcdnServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDcdnServiceResult::~ModifyDcdnServiceResult()
|
||||
{}
|
||||
|
||||
void ModifyDcdnServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
dcdn/src/model/OpenDcdnServiceRequest.cc
Normal file
73
dcdn/src/model/OpenDcdnServiceRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/OpenDcdnServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::OpenDcdnServiceRequest;
|
||||
|
||||
OpenDcdnServiceRequest::OpenDcdnServiceRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "OpenDcdnService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenDcdnServiceRequest::~OpenDcdnServiceRequest()
|
||||
{}
|
||||
|
||||
std::string OpenDcdnServiceRequest::getWebsocketBillType()const
|
||||
{
|
||||
return websocketBillType_;
|
||||
}
|
||||
|
||||
void OpenDcdnServiceRequest::setWebsocketBillType(const std::string& websocketBillType)
|
||||
{
|
||||
websocketBillType_ = websocketBillType;
|
||||
setParameter("WebsocketBillType", websocketBillType);
|
||||
}
|
||||
|
||||
std::string OpenDcdnServiceRequest::getBillType()const
|
||||
{
|
||||
return billType_;
|
||||
}
|
||||
|
||||
void OpenDcdnServiceRequest::setBillType(const std::string& billType)
|
||||
{
|
||||
billType_ = billType;
|
||||
setParameter("BillType", billType);
|
||||
}
|
||||
|
||||
std::string OpenDcdnServiceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void OpenDcdnServiceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
long OpenDcdnServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void OpenDcdnServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
dcdn/src/model/OpenDcdnServiceResult.cc
Normal file
44
dcdn/src/model/OpenDcdnServiceResult.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/dcdn/model/OpenDcdnServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
OpenDcdnServiceResult::OpenDcdnServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenDcdnServiceResult::OpenDcdnServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenDcdnServiceResult::~OpenDcdnServiceResult()
|
||||
{}
|
||||
|
||||
void OpenDcdnServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user