Cc5g.
This commit is contained in:
@@ -103,6 +103,8 @@ set(cc5g_public_header_model
|
||||
include/alibabacloud/cc5g/model/ModifyWirelessCloudConnectorFeatureResult.h
|
||||
include/alibabacloud/cc5g/model/OpenCc5gServiceRequest.h
|
||||
include/alibabacloud/cc5g/model/OpenCc5gServiceResult.h
|
||||
include/alibabacloud/cc5g/model/RebindCardsRequest.h
|
||||
include/alibabacloud/cc5g/model/RebindCardsResult.h
|
||||
include/alibabacloud/cc5g/model/RemoveWirelessCloudConnectorFromGroupRequest.h
|
||||
include/alibabacloud/cc5g/model/RemoveWirelessCloudConnectorFromGroupResult.h
|
||||
include/alibabacloud/cc5g/model/ResumeCardsRequest.h
|
||||
@@ -218,6 +220,8 @@ set(cc5g_src
|
||||
src/model/ModifyWirelessCloudConnectorFeatureResult.cc
|
||||
src/model/OpenCc5gServiceRequest.cc
|
||||
src/model/OpenCc5gServiceResult.cc
|
||||
src/model/RebindCardsRequest.cc
|
||||
src/model/RebindCardsResult.cc
|
||||
src/model/RemoveWirelessCloudConnectorFromGroupRequest.cc
|
||||
src/model/RemoveWirelessCloudConnectorFromGroupResult.cc
|
||||
src/model/ResumeCardsRequest.cc
|
||||
|
||||
@@ -104,6 +104,8 @@
|
||||
#include "model/ModifyWirelessCloudConnectorFeatureResult.h"
|
||||
#include "model/OpenCc5gServiceRequest.h"
|
||||
#include "model/OpenCc5gServiceResult.h"
|
||||
#include "model/RebindCardsRequest.h"
|
||||
#include "model/RebindCardsResult.h"
|
||||
#include "model/RemoveWirelessCloudConnectorFromGroupRequest.h"
|
||||
#include "model/RemoveWirelessCloudConnectorFromGroupResult.h"
|
||||
#include "model/ResumeCardsRequest.h"
|
||||
@@ -266,6 +268,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::OpenCc5gServiceResult> OpenCc5gServiceOutcome;
|
||||
typedef std::future<OpenCc5gServiceOutcome> OpenCc5gServiceOutcomeCallable;
|
||||
typedef std::function<void(const CC5GClient*, const Model::OpenCc5gServiceRequest&, const OpenCc5gServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenCc5gServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RebindCardsResult> RebindCardsOutcome;
|
||||
typedef std::future<RebindCardsOutcome> RebindCardsOutcomeCallable;
|
||||
typedef std::function<void(const CC5GClient*, const Model::RebindCardsRequest&, const RebindCardsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RebindCardsAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveWirelessCloudConnectorFromGroupResult> RemoveWirelessCloudConnectorFromGroupOutcome;
|
||||
typedef std::future<RemoveWirelessCloudConnectorFromGroupOutcome> RemoveWirelessCloudConnectorFromGroupOutcomeCallable;
|
||||
typedef std::function<void(const CC5GClient*, const Model::RemoveWirelessCloudConnectorFromGroupRequest&, const RemoveWirelessCloudConnectorFromGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveWirelessCloudConnectorFromGroupAsyncHandler;
|
||||
@@ -439,6 +444,9 @@ namespace AlibabaCloud
|
||||
OpenCc5gServiceOutcome openCc5gService(const Model::OpenCc5gServiceRequest &request)const;
|
||||
void openCc5gServiceAsync(const Model::OpenCc5gServiceRequest& request, const OpenCc5gServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenCc5gServiceOutcomeCallable openCc5gServiceCallable(const Model::OpenCc5gServiceRequest& request) const;
|
||||
RebindCardsOutcome rebindCards(const Model::RebindCardsRequest &request)const;
|
||||
void rebindCardsAsync(const Model::RebindCardsRequest& request, const RebindCardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RebindCardsOutcomeCallable rebindCardsCallable(const Model::RebindCardsRequest& request) const;
|
||||
RemoveWirelessCloudConnectorFromGroupOutcome removeWirelessCloudConnectorFromGroup(const Model::RemoveWirelessCloudConnectorFromGroupRequest &request)const;
|
||||
void removeWirelessCloudConnectorFromGroupAsync(const Model::RemoveWirelessCloudConnectorFromGroupRequest& request, const RemoveWirelessCloudConnectorFromGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveWirelessCloudConnectorFromGroupOutcomeCallable removeWirelessCloudConnectorFromGroupCallable(const Model::RemoveWirelessCloudConnectorFromGroupRequest& request) const;
|
||||
|
||||
51
cc5g/include/alibabacloud/cc5g/model/RebindCardsRequest.h
Normal file
51
cc5g/include/alibabacloud/cc5g/model/RebindCardsRequest.h
Normal 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_CC5G_MODEL_REBINDCARDSREQUEST_H_
|
||||
#define ALIBABACLOUD_CC5G_MODEL_REBINDCARDSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cc5g/CC5GExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace CC5G {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CC5G_EXPORT RebindCardsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
RebindCardsRequest();
|
||||
~RebindCardsRequest();
|
||||
std::vector<std::string> getIccids() const;
|
||||
void setIccids(const std::vector<std::string> &iccids);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
|
||||
private:
|
||||
std::vector<std::string> iccids_;
|
||||
bool dryRun_;
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace CC5G
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CC5G_MODEL_REBINDCARDSREQUEST_H_
|
||||
49
cc5g/include/alibabacloud/cc5g/model/RebindCardsResult.h
Normal file
49
cc5g/include/alibabacloud/cc5g/model/RebindCardsResult.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_CC5G_MODEL_REBINDCARDSRESULT_H_
|
||||
#define ALIBABACLOUD_CC5G_MODEL_REBINDCARDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cc5g/CC5GExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CC5G
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CC5G_EXPORT RebindCardsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RebindCardsResult();
|
||||
explicit RebindCardsResult(const std::string &payload);
|
||||
~RebindCardsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CC5G_MODEL_REBINDCARDSRESULT_H_
|
||||
@@ -1527,6 +1527,42 @@ CC5GClient::OpenCc5gServiceOutcomeCallable CC5GClient::openCc5gServiceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CC5GClient::RebindCardsOutcome CC5GClient::rebindCards(const RebindCardsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RebindCardsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RebindCardsOutcome(RebindCardsResult(outcome.result()));
|
||||
else
|
||||
return RebindCardsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CC5GClient::rebindCardsAsync(const RebindCardsRequest& request, const RebindCardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, rebindCards(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CC5GClient::RebindCardsOutcomeCallable CC5GClient::rebindCardsCallable(const RebindCardsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RebindCardsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->rebindCards(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CC5GClient::RemoveWirelessCloudConnectorFromGroupOutcome CC5GClient::removeWirelessCloudConnectorFromGroup(const RemoveWirelessCloudConnectorFromGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
62
cc5g/src/model/RebindCardsRequest.cc
Normal file
62
cc5g/src/model/RebindCardsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/cc5g/model/RebindCardsRequest.h>
|
||||
|
||||
using AlibabaCloud::CC5G::Model::RebindCardsRequest;
|
||||
|
||||
RebindCardsRequest::RebindCardsRequest()
|
||||
: RpcServiceRequest("cc5g", "2022-03-14", "RebindCards") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RebindCardsRequest::~RebindCardsRequest() {}
|
||||
|
||||
std::vector<std::string> RebindCardsRequest::getIccids() const {
|
||||
return iccids_;
|
||||
}
|
||||
|
||||
void RebindCardsRequest::setIccids(const std::vector<std::string> &iccids) {
|
||||
iccids_ = iccids;
|
||||
}
|
||||
|
||||
bool RebindCardsRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void RebindCardsRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RebindCardsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void RebindCardsRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string RebindCardsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RebindCardsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
cc5g/src/model/RebindCardsResult.cc
Normal file
44
cc5g/src/model/RebindCardsResult.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/cc5g/model/RebindCardsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CC5G;
|
||||
using namespace AlibabaCloud::CC5G::Model;
|
||||
|
||||
RebindCardsResult::RebindCardsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RebindCardsResult::RebindCardsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RebindCardsResult::~RebindCardsResult()
|
||||
{}
|
||||
|
||||
void RebindCardsResult::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