Add DleteNacosInstance.
This commit is contained in:
@@ -195,6 +195,42 @@ MseClient::AddGatewayDomainOutcomeCallable MseClient::addGatewayDomainCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::AddGatewayRouteOutcome MseClient::addGatewayRoute(const AddGatewayRouteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddGatewayRouteOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddGatewayRouteOutcome(AddGatewayRouteResult(outcome.result()));
|
||||
else
|
||||
return AddGatewayRouteOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::addGatewayRouteAsync(const AddGatewayRouteRequest& request, const AddGatewayRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addGatewayRoute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::AddGatewayRouteOutcomeCallable MseClient::addGatewayRouteCallable(const AddGatewayRouteRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddGatewayRouteOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addGatewayRoute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::AddGatewayServiceVersionOutcome MseClient::addGatewayServiceVersion(const AddGatewayServiceVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +411,78 @@ MseClient::AddServiceSourceOutcomeCallable MseClient::addServiceSourceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::ApplyGatewayRouteOutcome MseClient::applyGatewayRoute(const ApplyGatewayRouteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ApplyGatewayRouteOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ApplyGatewayRouteOutcome(ApplyGatewayRouteResult(outcome.result()));
|
||||
else
|
||||
return ApplyGatewayRouteOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::applyGatewayRouteAsync(const ApplyGatewayRouteRequest& request, const ApplyGatewayRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, applyGatewayRoute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::ApplyGatewayRouteOutcomeCallable MseClient::applyGatewayRouteCallable(const ApplyGatewayRouteRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ApplyGatewayRouteOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->applyGatewayRoute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::ApplyTagPoliciesOutcome MseClient::applyTagPolicies(const ApplyTagPoliciesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ApplyTagPoliciesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ApplyTagPoliciesOutcome(ApplyTagPoliciesResult(outcome.result()));
|
||||
else
|
||||
return ApplyTagPoliciesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::applyTagPoliciesAsync(const ApplyTagPoliciesRequest& request, const ApplyTagPoliciesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, applyTagPolicies(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::ApplyTagPoliciesOutcomeCallable MseClient::applyTagPoliciesCallable(const ApplyTagPoliciesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ApplyTagPoliciesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->applyTagPolicies(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::CloneNacosConfigOutcome MseClient::cloneNacosConfig(const CloneNacosConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +771,78 @@ MseClient::CreateNacosServiceOutcomeCallable MseClient::createNacosServiceCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::CreateOrUpdateSwimmingLaneOutcome MseClient::createOrUpdateSwimmingLane(const CreateOrUpdateSwimmingLaneRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateOrUpdateSwimmingLaneOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateOrUpdateSwimmingLaneOutcome(CreateOrUpdateSwimmingLaneResult(outcome.result()));
|
||||
else
|
||||
return CreateOrUpdateSwimmingLaneOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::createOrUpdateSwimmingLaneAsync(const CreateOrUpdateSwimmingLaneRequest& request, const CreateOrUpdateSwimmingLaneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createOrUpdateSwimmingLane(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::CreateOrUpdateSwimmingLaneOutcomeCallable MseClient::createOrUpdateSwimmingLaneCallable(const CreateOrUpdateSwimmingLaneRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateOrUpdateSwimmingLaneOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createOrUpdateSwimmingLane(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::CreateOrUpdateSwimmingLaneGroupOutcome MseClient::createOrUpdateSwimmingLaneGroup(const CreateOrUpdateSwimmingLaneGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateOrUpdateSwimmingLaneGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateOrUpdateSwimmingLaneGroupOutcome(CreateOrUpdateSwimmingLaneGroupResult(outcome.result()));
|
||||
else
|
||||
return CreateOrUpdateSwimmingLaneGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::createOrUpdateSwimmingLaneGroupAsync(const CreateOrUpdateSwimmingLaneGroupRequest& request, const CreateOrUpdateSwimmingLaneGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createOrUpdateSwimmingLaneGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::CreateOrUpdateSwimmingLaneGroupOutcomeCallable MseClient::createOrUpdateSwimmingLaneGroupCallable(const CreateOrUpdateSwimmingLaneGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateOrUpdateSwimmingLaneGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createOrUpdateSwimmingLaneGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::CreateZnodeOutcome MseClient::createZnode(const CreateZnodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -915,6 +1095,42 @@ MseClient::DeleteGatewayDomainOutcomeCallable MseClient::deleteGatewayDomainCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::DeleteGatewayRouteOutcome MseClient::deleteGatewayRoute(const DeleteGatewayRouteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteGatewayRouteOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteGatewayRouteOutcome(DeleteGatewayRouteResult(outcome.result()));
|
||||
else
|
||||
return DeleteGatewayRouteOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::deleteGatewayRouteAsync(const DeleteGatewayRouteRequest& request, const DeleteGatewayRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteGatewayRoute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::DeleteGatewayRouteOutcomeCallable MseClient::deleteGatewayRouteCallable(const DeleteGatewayRouteRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteGatewayRouteOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteGatewayRoute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::DeleteGatewayServiceVersionOutcome MseClient::deleteGatewayServiceVersion(const DeleteGatewayServiceVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1275,42 @@ MseClient::DeleteNacosConfigsOutcomeCallable MseClient::deleteNacosConfigsCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::DeleteNacosInstanceOutcome MseClient::deleteNacosInstance(const DeleteNacosInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNacosInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteNacosInstanceOutcome(DeleteNacosInstanceResult(outcome.result()));
|
||||
else
|
||||
return DeleteNacosInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::deleteNacosInstanceAsync(const DeleteNacosInstanceRequest& request, const DeleteNacosInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteNacosInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::DeleteNacosInstanceOutcomeCallable MseClient::deleteNacosInstanceCallable(const DeleteNacosInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteNacosInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteNacosInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::DeleteNacosServiceOutcome MseClient::deleteNacosService(const DeleteNacosServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1383,78 @@ MseClient::DeleteServiceSourceOutcomeCallable MseClient::deleteServiceSourceCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::DeleteSwimmingLaneOutcome MseClient::deleteSwimmingLane(const DeleteSwimmingLaneRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSwimmingLaneOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSwimmingLaneOutcome(DeleteSwimmingLaneResult(outcome.result()));
|
||||
else
|
||||
return DeleteSwimmingLaneOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::deleteSwimmingLaneAsync(const DeleteSwimmingLaneRequest& request, const DeleteSwimmingLaneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSwimmingLane(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::DeleteSwimmingLaneOutcomeCallable MseClient::deleteSwimmingLaneCallable(const DeleteSwimmingLaneRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSwimmingLaneOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSwimmingLane(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::DeleteSwimmingLaneGroupOutcome MseClient::deleteSwimmingLaneGroup(const DeleteSwimmingLaneGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSwimmingLaneGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSwimmingLaneGroupOutcome(DeleteSwimmingLaneGroupResult(outcome.result()));
|
||||
else
|
||||
return DeleteSwimmingLaneGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::deleteSwimmingLaneGroupAsync(const DeleteSwimmingLaneGroupRequest& request, const DeleteSwimmingLaneGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSwimmingLaneGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::DeleteSwimmingLaneGroupOutcomeCallable MseClient::deleteSwimmingLaneGroupCallable(const DeleteSwimmingLaneGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSwimmingLaneGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSwimmingLaneGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::DeleteZnodeOutcome MseClient::deleteZnode(const DeleteZnodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,6 +1707,42 @@ MseClient::GetGatewayOptionOutcomeCallable MseClient::getGatewayOptionCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::GetGatewayRouteDetailOutcome MseClient::getGatewayRouteDetail(const GetGatewayRouteDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetGatewayRouteDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetGatewayRouteDetailOutcome(GetGatewayRouteDetailResult(outcome.result()));
|
||||
else
|
||||
return GetGatewayRouteDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::getGatewayRouteDetailAsync(const GetGatewayRouteDetailRequest& request, const GetGatewayRouteDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getGatewayRouteDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::GetGatewayRouteDetailOutcomeCallable MseClient::getGatewayRouteDetailCallable(const GetGatewayRouteDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetGatewayRouteDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getGatewayRouteDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::GetGatewayServiceDetailOutcome MseClient::getGatewayServiceDetail(const GetGatewayServiceDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1779,6 +2139,78 @@ MseClient::GetOverviewOutcomeCallable MseClient::getOverviewCallable(const GetOv
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::GetServiceListOutcome MseClient::getServiceList(const GetServiceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetServiceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetServiceListOutcome(GetServiceListResult(outcome.result()));
|
||||
else
|
||||
return GetServiceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::getServiceListAsync(const GetServiceListRequest& request, const GetServiceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getServiceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::GetServiceListOutcomeCallable MseClient::getServiceListCallable(const GetServiceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetServiceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getServiceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::GetTagsBySwimmingLaneGroupIdOutcome MseClient::getTagsBySwimmingLaneGroupId(const GetTagsBySwimmingLaneGroupIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTagsBySwimmingLaneGroupIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTagsBySwimmingLaneGroupIdOutcome(GetTagsBySwimmingLaneGroupIdResult(outcome.result()));
|
||||
else
|
||||
return GetTagsBySwimmingLaneGroupIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::getTagsBySwimmingLaneGroupIdAsync(const GetTagsBySwimmingLaneGroupIdRequest& request, const GetTagsBySwimmingLaneGroupIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTagsBySwimmingLaneGroupId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::GetTagsBySwimmingLaneGroupIdOutcomeCallable MseClient::getTagsBySwimmingLaneGroupIdCallable(const GetTagsBySwimmingLaneGroupIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTagsBySwimmingLaneGroupIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTagsBySwimmingLaneGroupId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::ImportNacosConfigOutcome MseClient::importNacosConfig(const ImportNacosConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2103,6 +2535,78 @@ MseClient::ListAnsServicesOutcomeCallable MseClient::listAnsServicesCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::ListAppBySwimmingLaneGroupTagOutcome MseClient::listAppBySwimmingLaneGroupTag(const ListAppBySwimmingLaneGroupTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAppBySwimmingLaneGroupTagOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAppBySwimmingLaneGroupTagOutcome(ListAppBySwimmingLaneGroupTagResult(outcome.result()));
|
||||
else
|
||||
return ListAppBySwimmingLaneGroupTagOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::listAppBySwimmingLaneGroupTagAsync(const ListAppBySwimmingLaneGroupTagRequest& request, const ListAppBySwimmingLaneGroupTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAppBySwimmingLaneGroupTag(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::ListAppBySwimmingLaneGroupTagOutcomeCallable MseClient::listAppBySwimmingLaneGroupTagCallable(const ListAppBySwimmingLaneGroupTagRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAppBySwimmingLaneGroupTagOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAppBySwimmingLaneGroupTag(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::ListApplicationsWithTagRulesOutcome MseClient::listApplicationsWithTagRules(const ListApplicationsWithTagRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListApplicationsWithTagRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListApplicationsWithTagRulesOutcome(ListApplicationsWithTagRulesResult(outcome.result()));
|
||||
else
|
||||
return ListApplicationsWithTagRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::listApplicationsWithTagRulesAsync(const ListApplicationsWithTagRulesRequest& request, const ListApplicationsWithTagRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listApplicationsWithTagRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::ListApplicationsWithTagRulesOutcomeCallable MseClient::listApplicationsWithTagRulesCallable(const ListApplicationsWithTagRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListApplicationsWithTagRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listApplicationsWithTagRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::ListClusterConnectionTypesOutcome MseClient::listClusterConnectionTypes(const ListClusterConnectionTypesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2427,6 +2931,42 @@ MseClient::ListGatewayDomainOutcomeCallable MseClient::listGatewayDomainCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::ListGatewayRouteOutcome MseClient::listGatewayRoute(const ListGatewayRouteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListGatewayRouteOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListGatewayRouteOutcome(ListGatewayRouteResult(outcome.result()));
|
||||
else
|
||||
return ListGatewayRouteOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::listGatewayRouteAsync(const ListGatewayRouteRequest& request, const ListGatewayRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listGatewayRoute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::ListGatewayRouteOutcomeCallable MseClient::listGatewayRouteCallable(const ListGatewayRouteRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListGatewayRouteOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listGatewayRoute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::ListGatewayServiceOutcome MseClient::listGatewayService(const ListGatewayServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2787,6 +3327,42 @@ MseClient::ModifyGovernanceKubernetesClusterOutcomeCallable MseClient::modifyGov
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::OfflineGatewayRouteOutcome MseClient::offlineGatewayRoute(const OfflineGatewayRouteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OfflineGatewayRouteOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OfflineGatewayRouteOutcome(OfflineGatewayRouteResult(outcome.result()));
|
||||
else
|
||||
return OfflineGatewayRouteOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::offlineGatewayRouteAsync(const OfflineGatewayRouteRequest& request, const OfflineGatewayRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, offlineGatewayRoute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::OfflineGatewayRouteOutcomeCallable MseClient::offlineGatewayRouteCallable(const OfflineGatewayRouteRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OfflineGatewayRouteOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->offlineGatewayRoute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::PullServicesOutcome MseClient::pullServices(const PullServicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2823,6 +3399,78 @@ MseClient::PullServicesOutcomeCallable MseClient::pullServicesCallable(const Pul
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::QueryAllSwimmingLaneOutcome MseClient::queryAllSwimmingLane(const QueryAllSwimmingLaneRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAllSwimmingLaneOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAllSwimmingLaneOutcome(QueryAllSwimmingLaneResult(outcome.result()));
|
||||
else
|
||||
return QueryAllSwimmingLaneOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::queryAllSwimmingLaneAsync(const QueryAllSwimmingLaneRequest& request, const QueryAllSwimmingLaneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAllSwimmingLane(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::QueryAllSwimmingLaneOutcomeCallable MseClient::queryAllSwimmingLaneCallable(const QueryAllSwimmingLaneRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAllSwimmingLaneOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAllSwimmingLane(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::QueryAllSwimmingLaneGroupOutcome MseClient::queryAllSwimmingLaneGroup(const QueryAllSwimmingLaneGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAllSwimmingLaneGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAllSwimmingLaneGroupOutcome(QueryAllSwimmingLaneGroupResult(outcome.result()));
|
||||
else
|
||||
return QueryAllSwimmingLaneGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::queryAllSwimmingLaneGroupAsync(const QueryAllSwimmingLaneGroupRequest& request, const QueryAllSwimmingLaneGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAllSwimmingLaneGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::QueryAllSwimmingLaneGroupOutcomeCallable MseClient::queryAllSwimmingLaneGroupCallable(const QueryAllSwimmingLaneGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAllSwimmingLaneGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAllSwimmingLaneGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::QueryBusinessLocationsOutcome MseClient::queryBusinessLocations(const QueryBusinessLocationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3183,6 +3831,42 @@ MseClient::QuerySlbSpecOutcomeCallable MseClient::querySlbSpecCallable(const Que
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::QuerySwimmingLaneByIdOutcome MseClient::querySwimmingLaneById(const QuerySwimmingLaneByIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySwimmingLaneByIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySwimmingLaneByIdOutcome(QuerySwimmingLaneByIdResult(outcome.result()));
|
||||
else
|
||||
return QuerySwimmingLaneByIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::querySwimmingLaneByIdAsync(const QuerySwimmingLaneByIdRequest& request, const QuerySwimmingLaneByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySwimmingLaneById(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::QuerySwimmingLaneByIdOutcomeCallable MseClient::querySwimmingLaneByIdCallable(const QuerySwimmingLaneByIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySwimmingLaneByIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySwimmingLaneById(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::QueryZnodeDetailOutcome MseClient::queryZnodeDetail(const QueryZnodeDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3651,6 +4335,78 @@ MseClient::UpdateGatewayOptionOutcomeCallable MseClient::updateGatewayOptionCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteOutcome MseClient::updateGatewayRoute(const UpdateGatewayRouteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateGatewayRouteOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateGatewayRouteOutcome(UpdateGatewayRouteResult(outcome.result()));
|
||||
else
|
||||
return UpdateGatewayRouteOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::updateGatewayRouteAsync(const UpdateGatewayRouteRequest& request, const UpdateGatewayRouteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateGatewayRoute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteOutcomeCallable MseClient::updateGatewayRouteCallable(const UpdateGatewayRouteRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateGatewayRouteOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateGatewayRoute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteCORSOutcome MseClient::updateGatewayRouteCORS(const UpdateGatewayRouteCORSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateGatewayRouteCORSOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateGatewayRouteCORSOutcome(UpdateGatewayRouteCORSResult(outcome.result()));
|
||||
else
|
||||
return UpdateGatewayRouteCORSOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::updateGatewayRouteCORSAsync(const UpdateGatewayRouteCORSRequest& request, const UpdateGatewayRouteCORSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateGatewayRouteCORS(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteCORSOutcomeCallable MseClient::updateGatewayRouteCORSCallable(const UpdateGatewayRouteCORSRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateGatewayRouteCORSOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateGatewayRouteCORS(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteHTTPRewriteOutcome MseClient::updateGatewayRouteHTTPRewrite(const UpdateGatewayRouteHTTPRewriteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3687,6 +4443,114 @@ MseClient::UpdateGatewayRouteHTTPRewriteOutcomeCallable MseClient::updateGateway
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteHeaderOpOutcome MseClient::updateGatewayRouteHeaderOp(const UpdateGatewayRouteHeaderOpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateGatewayRouteHeaderOpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateGatewayRouteHeaderOpOutcome(UpdateGatewayRouteHeaderOpResult(outcome.result()));
|
||||
else
|
||||
return UpdateGatewayRouteHeaderOpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::updateGatewayRouteHeaderOpAsync(const UpdateGatewayRouteHeaderOpRequest& request, const UpdateGatewayRouteHeaderOpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateGatewayRouteHeaderOp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteHeaderOpOutcomeCallable MseClient::updateGatewayRouteHeaderOpCallable(const UpdateGatewayRouteHeaderOpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateGatewayRouteHeaderOpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateGatewayRouteHeaderOp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteRetryOutcome MseClient::updateGatewayRouteRetry(const UpdateGatewayRouteRetryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateGatewayRouteRetryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateGatewayRouteRetryOutcome(UpdateGatewayRouteRetryResult(outcome.result()));
|
||||
else
|
||||
return UpdateGatewayRouteRetryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::updateGatewayRouteRetryAsync(const UpdateGatewayRouteRetryRequest& request, const UpdateGatewayRouteRetryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateGatewayRouteRetry(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteRetryOutcomeCallable MseClient::updateGatewayRouteRetryCallable(const UpdateGatewayRouteRetryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateGatewayRouteRetryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateGatewayRouteRetry(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteTimeoutOutcome MseClient::updateGatewayRouteTimeout(const UpdateGatewayRouteTimeoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateGatewayRouteTimeoutOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateGatewayRouteTimeoutOutcome(UpdateGatewayRouteTimeoutResult(outcome.result()));
|
||||
else
|
||||
return UpdateGatewayRouteTimeoutOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void MseClient::updateGatewayRouteTimeoutAsync(const UpdateGatewayRouteTimeoutRequest& request, const UpdateGatewayRouteTimeoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateGatewayRouteTimeout(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayRouteTimeoutOutcomeCallable MseClient::updateGatewayRouteTimeoutCallable(const UpdateGatewayRouteTimeoutRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateGatewayRouteTimeoutOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateGatewayRouteTimeout(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
MseClient::UpdateGatewayServiceVersionOutcome MseClient::updateGatewayServiceVersion(const UpdateGatewayServiceVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
161
mse/src/model/AddGatewayRouteRequest.cc
Normal file
161
mse/src/model/AddGatewayRouteRequest.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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/mse/model/AddGatewayRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddGatewayRouteRequest;
|
||||
|
||||
AddGatewayRouteRequest::AddGatewayRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddGatewayRoute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddGatewayRouteRequest::~AddGatewayRouteRequest() {}
|
||||
|
||||
std::string AddGatewayRouteRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string AddGatewayRouteRequest::getDestinationType() const {
|
||||
return destinationType_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setDestinationType(const std::string &destinationType) {
|
||||
destinationType_ = destinationType;
|
||||
setParameter(std::string("DestinationType"), destinationType);
|
||||
}
|
||||
|
||||
std::string AddGatewayRouteRequest::getDomainIdListJSON() const {
|
||||
return domainIdListJSON_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setDomainIdListJSON(const std::string &domainIdListJSON) {
|
||||
domainIdListJSON_ = domainIdListJSON;
|
||||
setParameter(std::string("DomainIdListJSON"), domainIdListJSON);
|
||||
}
|
||||
|
||||
long AddGatewayRouteRequest::getDomainId() const {
|
||||
return domainId_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setDomainId(long domainId) {
|
||||
domainId_ = domainId;
|
||||
setParameter(std::string("DomainId"), std::to_string(domainId));
|
||||
}
|
||||
|
||||
long AddGatewayRouteRequest::getGatewayId() const {
|
||||
return gatewayId_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setGatewayId(long gatewayId) {
|
||||
gatewayId_ = gatewayId;
|
||||
setParameter(std::string("GatewayId"), std::to_string(gatewayId));
|
||||
}
|
||||
|
||||
int AddGatewayRouteRequest::getRouteOrder() const {
|
||||
return routeOrder_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setRouteOrder(int routeOrder) {
|
||||
routeOrder_ = routeOrder;
|
||||
setParameter(std::string("RouteOrder"), std::to_string(routeOrder));
|
||||
}
|
||||
|
||||
std::vector<AddGatewayRouteRequest::Services> AddGatewayRouteRequest::getServices() const {
|
||||
return services_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setServices(const std::vector<AddGatewayRouteRequest::Services> &services) {
|
||||
services_ = services;
|
||||
for(int dep1 = 0; dep1 != services.size(); dep1++) {
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".Name", services[dep1].name);
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".Namespace", services[dep1]._namespace);
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".SourceType", services[dep1].sourceType);
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".ServiceId", std::to_string(services[dep1].serviceId));
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".Percent", std::to_string(services[dep1].percent));
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".Version", services[dep1].version);
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".GroupName", services[dep1].groupName);
|
||||
}
|
||||
}
|
||||
|
||||
AddGatewayRouteRequest::Predicates AddGatewayRouteRequest::getPredicates() const {
|
||||
return predicates_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setPredicates(const AddGatewayRouteRequest::Predicates &predicates) {
|
||||
predicates_ = predicates;
|
||||
setParameter(std::string("Predicates") + ".PathPredicates.Path", predicates.pathPredicates.path);
|
||||
setParameter(std::string("Predicates") + ".PathPredicates.IgnoreCase", predicates.pathPredicates.ignoreCase ? "true" : "false");
|
||||
setParameter(std::string("Predicates") + ".PathPredicates.Type", predicates.pathPredicates.type);
|
||||
for(int dep1 = 0; dep1 != predicates.methodPredicates.size(); dep1++) {
|
||||
setParameter(std::string("Predicates") + ".MethodPredicates." + std::to_string(dep1 + 1), predicates.methodPredicates[dep1]);
|
||||
}
|
||||
for(int dep1 = 0; dep1 != predicates.headerPredicates.size(); dep1++) {
|
||||
setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Type", predicates.headerPredicates[dep1].type);
|
||||
setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Value", predicates.headerPredicates[dep1].value);
|
||||
setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Key", predicates.headerPredicates[dep1].key);
|
||||
}
|
||||
for(int dep1 = 0; dep1 != predicates.queryPredicates.size(); dep1++) {
|
||||
setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Type", predicates.queryPredicates[dep1].type);
|
||||
setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Value", predicates.queryPredicates[dep1].value);
|
||||
setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Key", predicates.queryPredicates[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
AddGatewayRouteRequest::RedirectJSON AddGatewayRouteRequest::getRedirectJSON() const {
|
||||
return redirectJSON_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setRedirectJSON(const AddGatewayRouteRequest::RedirectJSON &redirectJSON) {
|
||||
redirectJSON_ = redirectJSON;
|
||||
setParameter(std::string("RedirectJSON") + ".Path", redirectJSON.path);
|
||||
setParameter(std::string("RedirectJSON") + ".Code", std::to_string(redirectJSON.code));
|
||||
setParameter(std::string("RedirectJSON") + ".Host", redirectJSON.host);
|
||||
}
|
||||
|
||||
AddGatewayRouteRequest::DirectResponseJSON AddGatewayRouteRequest::getDirectResponseJSON() const {
|
||||
return directResponseJSON_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setDirectResponseJSON(const AddGatewayRouteRequest::DirectResponseJSON &directResponseJSON) {
|
||||
directResponseJSON_ = directResponseJSON;
|
||||
setParameter(std::string("DirectResponseJSON") + ".Code", std::to_string(directResponseJSON.code));
|
||||
setParameter(std::string("DirectResponseJSON") + ".Body", directResponseJSON.body);
|
||||
}
|
||||
|
||||
std::string AddGatewayRouteRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string AddGatewayRouteRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/AddGatewayRouteResult.cc
Normal file
79
mse/src/model/AddGatewayRouteResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/AddGatewayRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddGatewayRouteResult::AddGatewayRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddGatewayRouteResult::AddGatewayRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddGatewayRouteResult::~AddGatewayRouteResult()
|
||||
{}
|
||||
|
||||
void AddGatewayRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddGatewayRouteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddGatewayRouteResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long AddGatewayRouteResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddGatewayRouteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddGatewayRouteResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/ApplyGatewayRouteRequest.cc
Normal file
54
mse/src/model/ApplyGatewayRouteRequest.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/mse/model/ApplyGatewayRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ApplyGatewayRouteRequest;
|
||||
|
||||
ApplyGatewayRouteRequest::ApplyGatewayRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ApplyGatewayRoute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ApplyGatewayRouteRequest::~ApplyGatewayRouteRequest() {}
|
||||
|
||||
std::string ApplyGatewayRouteRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void ApplyGatewayRouteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string ApplyGatewayRouteRequest::getRouteId() const {
|
||||
return routeId_;
|
||||
}
|
||||
|
||||
void ApplyGatewayRouteRequest::setRouteId(const std::string &routeId) {
|
||||
routeId_ = routeId;
|
||||
setParameter(std::string("RouteId"), routeId);
|
||||
}
|
||||
|
||||
std::string ApplyGatewayRouteRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ApplyGatewayRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/ApplyGatewayRouteResult.cc
Normal file
79
mse/src/model/ApplyGatewayRouteResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/ApplyGatewayRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ApplyGatewayRouteResult::ApplyGatewayRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyGatewayRouteResult::ApplyGatewayRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyGatewayRouteResult::~ApplyGatewayRouteResult()
|
||||
{}
|
||||
|
||||
void ApplyGatewayRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyGatewayRouteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ApplyGatewayRouteResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool ApplyGatewayRouteResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ApplyGatewayRouteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ApplyGatewayRouteResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
mse/src/model/ApplyTagPoliciesRequest.cc
Normal file
90
mse/src/model/ApplyTagPoliciesRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/mse/model/ApplyTagPoliciesRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ApplyTagPoliciesRequest;
|
||||
|
||||
ApplyTagPoliciesRequest::ApplyTagPoliciesRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ApplyTagPolicies") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyTagPoliciesRequest::~ApplyTagPoliciesRequest() {}
|
||||
|
||||
std::string ApplyTagPoliciesRequest::getRules() const {
|
||||
return rules_;
|
||||
}
|
||||
|
||||
void ApplyTagPoliciesRequest::setRules(const std::string &rules) {
|
||||
rules_ = rules;
|
||||
setParameter(std::string("Rules"), rules);
|
||||
}
|
||||
|
||||
std::string ApplyTagPoliciesRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void ApplyTagPoliciesRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string ApplyTagPoliciesRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ApplyTagPoliciesRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
bool ApplyTagPoliciesRequest::getEnable() const {
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void ApplyTagPoliciesRequest::setEnable(bool enable) {
|
||||
enable_ = enable;
|
||||
setParameter(std::string("Enable"), enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ApplyTagPoliciesRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ApplyTagPoliciesRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string ApplyTagPoliciesRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ApplyTagPoliciesRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string ApplyTagPoliciesRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void ApplyTagPoliciesRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
103
mse/src/model/ApplyTagPoliciesResult.cc
Normal file
103
mse/src/model/ApplyTagPoliciesResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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/mse/model/ApplyTagPoliciesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ApplyTagPoliciesResult::ApplyTagPoliciesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyTagPoliciesResult::ApplyTagPoliciesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyTagPoliciesResult::~ApplyTagPoliciesResult()
|
||||
{}
|
||||
|
||||
void ApplyTagPoliciesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["RouteRuleVO"];
|
||||
for (auto valueDataRouteRuleVO : allDataNode)
|
||||
{
|
||||
RouteRuleVO dataObject;
|
||||
if(!valueDataRouteRuleVO["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataRouteRuleVO["Status"].asString());
|
||||
if(!valueDataRouteRuleVO["InstanceNum"].isNull())
|
||||
dataObject.instanceNum = std::stoi(valueDataRouteRuleVO["InstanceNum"].asString());
|
||||
if(!valueDataRouteRuleVO["Remove"].isNull())
|
||||
dataObject.remove = valueDataRouteRuleVO["Remove"].asString() == "true";
|
||||
if(!valueDataRouteRuleVO["CarryData"].isNull())
|
||||
dataObject.carryData = valueDataRouteRuleVO["CarryData"].asString() == "true";
|
||||
if(!valueDataRouteRuleVO["Tag"].isNull())
|
||||
dataObject.tag = valueDataRouteRuleVO["Tag"].asString();
|
||||
if(!valueDataRouteRuleVO["Name"].isNull())
|
||||
dataObject.name = valueDataRouteRuleVO["Name"].asString();
|
||||
if(!valueDataRouteRuleVO["Rules"].isNull())
|
||||
dataObject.rules = valueDataRouteRuleVO["Rules"].asString();
|
||||
if(!valueDataRouteRuleVO["Id"].isNull())
|
||||
dataObject.id = std::stol(valueDataRouteRuleVO["Id"].asString());
|
||||
if(!valueDataRouteRuleVO["Rate"].isNull())
|
||||
dataObject.rate = std::stoi(valueDataRouteRuleVO["Rate"].asString());
|
||||
if(!valueDataRouteRuleVO["Enable"].isNull())
|
||||
dataObject.enable = valueDataRouteRuleVO["Enable"].asString() == "true";
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyTagPoliciesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ApplyTagPoliciesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ApplyTagPoliciesResult::RouteRuleVO> ApplyTagPoliciesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ApplyTagPoliciesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ApplyTagPoliciesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
144
mse/src/model/CreateOrUpdateSwimmingLaneGroupRequest.cc
Normal file
144
mse/src/model/CreateOrUpdateSwimmingLaneGroupRequest.cc
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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/mse/model/CreateOrUpdateSwimmingLaneGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateOrUpdateSwimmingLaneGroupRequest;
|
||||
|
||||
CreateOrUpdateSwimmingLaneGroupRequest::CreateOrUpdateSwimmingLaneGroupRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateOrUpdateSwimmingLaneGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateSwimmingLaneGroupRequest::~CreateOrUpdateSwimmingLaneGroupRequest() {}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getGmtModified() const {
|
||||
return gmtModified_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setGmtModified(const std::string &gmtModified) {
|
||||
gmtModified_ = gmtModified;
|
||||
setParameter(std::string("GmtModified"), gmtModified);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getLicenseKey() const {
|
||||
return licenseKey_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setLicenseKey(const std::string &licenseKey) {
|
||||
licenseKey_ = licenseKey;
|
||||
setParameter(std::string("LicenseKey"), licenseKey);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getAppIds() const {
|
||||
return appIds_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setAppIds(const std::string &appIds) {
|
||||
appIds_ = appIds;
|
||||
setParameter(std::string("AppIds"), appIds);
|
||||
}
|
||||
|
||||
bool CreateOrUpdateSwimmingLaneGroupRequest::getEnable() const {
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setEnable(bool enable) {
|
||||
enable_ = enable;
|
||||
setParameter(std::string("Enable"), enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getEntryApp() const {
|
||||
return entryApp_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setEntryApp(const std::string &entryApp) {
|
||||
entryApp_ = entryApp;
|
||||
setParameter(std::string("EntryApp"), entryApp);
|
||||
}
|
||||
|
||||
long CreateOrUpdateSwimmingLaneGroupRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getGmtCreate() const {
|
||||
return gmtCreate_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setGmtCreate(const std::string &gmtCreate) {
|
||||
gmtCreate_ = gmtCreate;
|
||||
setParameter(std::string("GmtCreate"), gmtCreate);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneGroupRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
int CreateOrUpdateSwimmingLaneGroupRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupRequest::setStatus(int status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
44
mse/src/model/CreateOrUpdateSwimmingLaneGroupResult.cc
Normal file
44
mse/src/model/CreateOrUpdateSwimmingLaneGroupResult.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/mse/model/CreateOrUpdateSwimmingLaneGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateOrUpdateSwimmingLaneGroupResult::CreateOrUpdateSwimmingLaneGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateSwimmingLaneGroupResult::CreateOrUpdateSwimmingLaneGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateSwimmingLaneGroupResult::~CreateOrUpdateSwimmingLaneGroupResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
191
mse/src/model/CreateOrUpdateSwimmingLaneRequest.cc
Normal file
191
mse/src/model/CreateOrUpdateSwimmingLaneRequest.cc
Normal file
@@ -0,0 +1,191 @@
|
||||
/*
|
||||
* 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/mse/model/CreateOrUpdateSwimmingLaneRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateOrUpdateSwimmingLaneRequest;
|
||||
|
||||
CreateOrUpdateSwimmingLaneRequest::CreateOrUpdateSwimmingLaneRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateOrUpdateSwimmingLane") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateSwimmingLaneRequest::~CreateOrUpdateSwimmingLaneRequest() {}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getGmtModified() const {
|
||||
return gmtModified_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setGmtModified(const std::string &gmtModified) {
|
||||
gmtModified_ = gmtModified;
|
||||
setParameter(std::string("GmtModified"), gmtModified);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getLicenseKey() const {
|
||||
return licenseKey_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setLicenseKey(const std::string &licenseKey) {
|
||||
licenseKey_ = licenseKey;
|
||||
setParameter(std::string("LicenseKey"), licenseKey);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getEntryRule() const {
|
||||
return entryRule_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setEntryRule(const std::string &entryRule) {
|
||||
entryRule_ = entryRule;
|
||||
setParameter(std::string("EntryRule"), entryRule);
|
||||
}
|
||||
|
||||
bool CreateOrUpdateSwimmingLaneRequest::getEnable() const {
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setEnable(bool enable) {
|
||||
enable_ = enable;
|
||||
setParameter(std::string("Enable"), enable ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateOrUpdateSwimmingLaneRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setTag(const std::string &tag) {
|
||||
tag_ = tag;
|
||||
setParameter(std::string("Tag"), tag);
|
||||
}
|
||||
|
||||
std::vector<CreateOrUpdateSwimmingLaneRequest::EntryRules> CreateOrUpdateSwimmingLaneRequest::getEntryRules() const {
|
||||
return entryRules_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setEntryRules(const std::vector<CreateOrUpdateSwimmingLaneRequest::EntryRules> &entryRules) {
|
||||
entryRules_ = entryRules;
|
||||
for(int dep1 = 0; dep1 != entryRules.size(); dep1++) {
|
||||
auto entryRulesObj = entryRules.at(dep1);
|
||||
std::string entryRulesObjStr = std::string("EntryRules") + "." + std::to_string(dep1 + 1);
|
||||
for(int dep2 = 0; dep2 != entryRulesObj.restItems.size(); dep2++) {
|
||||
auto restItemsObj = entryRulesObj.restItems.at(dep2);
|
||||
std::string restItemsObjStr = entryRulesObjStr + ".RestItems" + "." + std::to_string(dep2 + 1);
|
||||
setParameter(restItemsObjStr + ".Datum", restItemsObj.datum);
|
||||
setParameter(restItemsObjStr + ".Divisor", std::to_string(restItemsObj.divisor));
|
||||
setParameter(restItemsObjStr + ".Rate", std::to_string(restItemsObj.rate));
|
||||
setParameter(restItemsObjStr + ".Name", restItemsObj.name);
|
||||
setParameter(restItemsObjStr + ".Type", restItemsObj.type);
|
||||
setParameter(restItemsObjStr + ".Cond", restItemsObj.cond);
|
||||
setParameter(restItemsObjStr + ".Remainder", std::to_string(restItemsObj.remainder));
|
||||
setParameter(restItemsObjStr + ".Value", restItemsObj.value);
|
||||
setParameter(restItemsObjStr + ".Operator", restItemsObj._operator);
|
||||
}
|
||||
setParameter(entryRulesObjStr + ".Path", entryRulesObj.path);
|
||||
setParameter(entryRulesObjStr + ".Condition", entryRulesObj.condition);
|
||||
setParameter(entryRulesObjStr + ".Enable", entryRulesObj.enable ? "true" : "false");
|
||||
setParameter(entryRulesObjStr + ".Priority", std::to_string(entryRulesObj.priority));
|
||||
}
|
||||
}
|
||||
|
||||
long CreateOrUpdateSwimmingLaneRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setGroupId(long groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getGmtCreate() const {
|
||||
return gmtCreate_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setGmtCreate(const std::string &gmtCreate) {
|
||||
gmtCreate_ = gmtCreate;
|
||||
setParameter(std::string("GmtCreate"), gmtCreate);
|
||||
}
|
||||
|
||||
bool CreateOrUpdateSwimmingLaneRequest::getEnableRules() const {
|
||||
return enableRules_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setEnableRules(bool enableRules) {
|
||||
enableRules_ = enableRules;
|
||||
setParameter(std::string("EnableRules"), enableRules ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateSwimmingLaneRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
int CreateOrUpdateSwimmingLaneRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneRequest::setStatus(int status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
44
mse/src/model/CreateOrUpdateSwimmingLaneResult.cc
Normal file
44
mse/src/model/CreateOrUpdateSwimmingLaneResult.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/mse/model/CreateOrUpdateSwimmingLaneResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateOrUpdateSwimmingLaneResult::CreateOrUpdateSwimmingLaneResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrUpdateSwimmingLaneResult::CreateOrUpdateSwimmingLaneResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrUpdateSwimmingLaneResult::~CreateOrUpdateSwimmingLaneResult()
|
||||
{}
|
||||
|
||||
void CreateOrUpdateSwimmingLaneResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
mse/src/model/DeleteGatewayRouteRequest.cc
Normal file
54
mse/src/model/DeleteGatewayRouteRequest.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/mse/model/DeleteGatewayRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteGatewayRouteRequest;
|
||||
|
||||
DeleteGatewayRouteRequest::DeleteGatewayRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayRoute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteGatewayRouteRequest::~DeleteGatewayRouteRequest() {}
|
||||
|
||||
std::string DeleteGatewayRouteRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteGatewayRouteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteGatewayRouteRequest::getRouteId() const {
|
||||
return routeId_;
|
||||
}
|
||||
|
||||
void DeleteGatewayRouteRequest::setRouteId(const std::string &routeId) {
|
||||
routeId_ = routeId;
|
||||
setParameter(std::string("RouteId"), routeId);
|
||||
}
|
||||
|
||||
std::string DeleteGatewayRouteRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteGatewayRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
98
mse/src/model/DeleteGatewayRouteResult.cc
Normal file
98
mse/src/model/DeleteGatewayRouteResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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/mse/model/DeleteGatewayRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteGatewayRouteResult::DeleteGatewayRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteGatewayRouteResult::DeleteGatewayRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteGatewayRouteResult::~DeleteGatewayRouteResult()
|
||||
{}
|
||||
|
||||
void DeleteGatewayRouteResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["GatewayUniqueId"].isNull())
|
||||
data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString();
|
||||
if(!dataNode["GatewayId"].isNull())
|
||||
data_.gatewayId = std::stol(dataNode["GatewayId"].asString());
|
||||
if(!dataNode["Predicates"].isNull())
|
||||
data_.predicates = dataNode["Predicates"].asString();
|
||||
if(!dataNode["DefaultServiceId"].isNull())
|
||||
data_.defaultServiceId = std::stol(dataNode["DefaultServiceId"].asString());
|
||||
if(!dataNode["RouteOrder"].isNull())
|
||||
data_.routeOrder = std::stoi(dataNode["RouteOrder"].asString());
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteGatewayRouteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteGatewayRouteResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
DeleteGatewayRouteResult::Data DeleteGatewayRouteResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteGatewayRouteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteGatewayRouteResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
108
mse/src/model/DeleteNacosInstanceRequest.cc
Normal file
108
mse/src/model/DeleteNacosInstanceRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/mse/model/DeleteNacosInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteNacosInstanceRequest;
|
||||
|
||||
DeleteNacosInstanceRequest::DeleteNacosInstanceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteNacosInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNacosInstanceRequest::~DeleteNacosInstanceRequest() {}
|
||||
|
||||
std::string DeleteNacosInstanceRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void DeleteNacosInstanceRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void DeleteNacosInstanceRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
bool DeleteNacosInstanceRequest::getEphemeral() const {
|
||||
return ephemeral_;
|
||||
}
|
||||
|
||||
void DeleteNacosInstanceRequest::setEphemeral(bool ephemeral) {
|
||||
ephemeral_ = ephemeral;
|
||||
setParameter(std::string("Ephemeral"), ephemeral ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void DeleteNacosInstanceRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteNacosInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNacosInstanceRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
int DeleteNacosInstanceRequest::getPort() const {
|
||||
return port_;
|
||||
}
|
||||
|
||||
void DeleteNacosInstanceRequest::setPort(int port) {
|
||||
port_ = port;
|
||||
setParameter(std::string("Port"), std::to_string(port));
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteNacosInstanceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DeleteNacosInstanceRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
93
mse/src/model/DeleteNacosInstanceResult.cc
Normal file
93
mse/src/model/DeleteNacosInstanceResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/mse/model/DeleteNacosInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteNacosInstanceResult::DeleteNacosInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNacosInstanceResult::DeleteNacosInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNacosInstanceResult::~DeleteNacosInstanceResult()
|
||||
{}
|
||||
|
||||
void DeleteNacosInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteNacosInstanceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteNacosInstanceResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
int DeleteNacosInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteNacosInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
mse/src/model/DeleteSwimmingLaneGroupRequest.cc
Normal file
45
mse/src/model/DeleteSwimmingLaneGroupRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/mse/model/DeleteSwimmingLaneGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteSwimmingLaneGroupRequest;
|
||||
|
||||
DeleteSwimmingLaneGroupRequest::DeleteSwimmingLaneGroupRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteSwimmingLaneGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSwimmingLaneGroupRequest::~DeleteSwimmingLaneGroupRequest() {}
|
||||
|
||||
long DeleteSwimmingLaneGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteSwimmingLaneGroupRequest::setGroupId(long groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DeleteSwimmingLaneGroupRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteSwimmingLaneGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
44
mse/src/model/DeleteSwimmingLaneGroupResult.cc
Normal file
44
mse/src/model/DeleteSwimmingLaneGroupResult.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/mse/model/DeleteSwimmingLaneGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteSwimmingLaneGroupResult::DeleteSwimmingLaneGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSwimmingLaneGroupResult::DeleteSwimmingLaneGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSwimmingLaneGroupResult::~DeleteSwimmingLaneGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteSwimmingLaneGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
mse/src/model/DeleteSwimmingLaneRequest.cc
Normal file
45
mse/src/model/DeleteSwimmingLaneRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/mse/model/DeleteSwimmingLaneRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteSwimmingLaneRequest;
|
||||
|
||||
DeleteSwimmingLaneRequest::DeleteSwimmingLaneRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteSwimmingLane") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSwimmingLaneRequest::~DeleteSwimmingLaneRequest() {}
|
||||
|
||||
long DeleteSwimmingLaneRequest::getLaneId() const {
|
||||
return laneId_;
|
||||
}
|
||||
|
||||
void DeleteSwimmingLaneRequest::setLaneId(long laneId) {
|
||||
laneId_ = laneId;
|
||||
setParameter(std::string("LaneId"), std::to_string(laneId));
|
||||
}
|
||||
|
||||
std::string DeleteSwimmingLaneRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteSwimmingLaneRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
44
mse/src/model/DeleteSwimmingLaneResult.cc
Normal file
44
mse/src/model/DeleteSwimmingLaneResult.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/mse/model/DeleteSwimmingLaneResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteSwimmingLaneResult::DeleteSwimmingLaneResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSwimmingLaneResult::DeleteSwimmingLaneResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSwimmingLaneResult::~DeleteSwimmingLaneResult()
|
||||
{}
|
||||
|
||||
void DeleteSwimmingLaneResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
mse/src/model/GetGatewayRouteDetailRequest.cc
Normal file
54
mse/src/model/GetGatewayRouteDetailRequest.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/mse/model/GetGatewayRouteDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetGatewayRouteDetailRequest;
|
||||
|
||||
GetGatewayRouteDetailRequest::GetGatewayRouteDetailRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGatewayRouteDetail") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetGatewayRouteDetailRequest::~GetGatewayRouteDetailRequest() {}
|
||||
|
||||
std::string GetGatewayRouteDetailRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void GetGatewayRouteDetailRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
long GetGatewayRouteDetailRequest::getRouteId() const {
|
||||
return routeId_;
|
||||
}
|
||||
|
||||
void GetGatewayRouteDetailRequest::setRouteId(long routeId) {
|
||||
routeId_ = routeId;
|
||||
setParameter(std::string("RouteId"), std::to_string(routeId));
|
||||
}
|
||||
|
||||
std::string GetGatewayRouteDetailRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetGatewayRouteDetailRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
248
mse/src/model/GetGatewayRouteDetailResult.cc
Normal file
248
mse/src/model/GetGatewayRouteDetailResult.cc
Normal file
@@ -0,0 +1,248 @@
|
||||
/*
|
||||
* 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/mse/model/GetGatewayRouteDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetGatewayRouteDetailResult::GetGatewayRouteDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetGatewayRouteDetailResult::GetGatewayRouteDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetGatewayRouteDetailResult::~GetGatewayRouteDetailResult()
|
||||
{}
|
||||
|
||||
void GetGatewayRouteDetailResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["GatewayUniqueId"].isNull())
|
||||
data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString();
|
||||
if(!dataNode["GatewayId"].isNull())
|
||||
data_.gatewayId = std::stol(dataNode["GatewayId"].asString());
|
||||
if(!dataNode["DefaultServiceId"].isNull())
|
||||
data_.defaultServiceId = std::stol(dataNode["DefaultServiceId"].asString());
|
||||
if(!dataNode["DefaultServiceName"].isNull())
|
||||
data_.defaultServiceName = dataNode["DefaultServiceName"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
if(!dataNode["RouteOrder"].isNull())
|
||||
data_.routeOrder = std::stoi(dataNode["RouteOrder"].asString());
|
||||
if(!dataNode["Predicates"].isNull())
|
||||
data_.predicates = dataNode["Predicates"].asString();
|
||||
if(!dataNode["DomainId"].isNull())
|
||||
data_.domainId = std::stol(dataNode["DomainId"].asString());
|
||||
if(!dataNode["DomainName"].isNull())
|
||||
data_.domainName = dataNode["DomainName"].asString();
|
||||
if(!dataNode["Services"].isNull())
|
||||
data_.services = dataNode["Services"].asString();
|
||||
if(!dataNode["DestinationType"].isNull())
|
||||
data_.destinationType = dataNode["DestinationType"].asString();
|
||||
auto allRouteServicesNode = dataNode["RouteServices"]["RouteServicesItem"];
|
||||
for (auto dataNodeRouteServicesRouteServicesItem : allRouteServicesNode)
|
||||
{
|
||||
Data::RouteServicesItem routeServicesItemObject;
|
||||
if(!dataNodeRouteServicesRouteServicesItem["ServiceId"].isNull())
|
||||
routeServicesItemObject.serviceId = std::stol(dataNodeRouteServicesRouteServicesItem["ServiceId"].asString());
|
||||
if(!dataNodeRouteServicesRouteServicesItem["ServiceName"].isNull())
|
||||
routeServicesItemObject.serviceName = dataNodeRouteServicesRouteServicesItem["ServiceName"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["Percent"].isNull())
|
||||
routeServicesItemObject.percent = std::stoi(dataNodeRouteServicesRouteServicesItem["Percent"].asString());
|
||||
if(!dataNodeRouteServicesRouteServicesItem["Version"].isNull())
|
||||
routeServicesItemObject.version = dataNodeRouteServicesRouteServicesItem["Version"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["Name"].isNull())
|
||||
routeServicesItemObject.name = dataNodeRouteServicesRouteServicesItem["Name"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["SourceType"].isNull())
|
||||
routeServicesItemObject.sourceType = dataNodeRouteServicesRouteServicesItem["SourceType"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["Namespace"].isNull())
|
||||
routeServicesItemObject._namespace = dataNodeRouteServicesRouteServicesItem["Namespace"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["GroupName"].isNull())
|
||||
routeServicesItemObject.groupName = dataNodeRouteServicesRouteServicesItem["GroupName"].asString();
|
||||
data_.routeServices.push_back(routeServicesItemObject);
|
||||
}
|
||||
auto routePredicatesNode = dataNode["RoutePredicates"];
|
||||
auto allHeaderPredicatesNode = routePredicatesNode["HeaderPredicates"]["HeaderPredicatesItem"];
|
||||
for (auto routePredicatesNodeHeaderPredicatesHeaderPredicatesItem : allHeaderPredicatesNode)
|
||||
{
|
||||
Data::RoutePredicates::HeaderPredicatesItem headerPredicatesItemObject;
|
||||
if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Key"].isNull())
|
||||
headerPredicatesItemObject.key = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Key"].asString();
|
||||
if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Value"].isNull())
|
||||
headerPredicatesItemObject.value = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Value"].asString();
|
||||
if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Type"].isNull())
|
||||
headerPredicatesItemObject.type = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Type"].asString();
|
||||
data_.routePredicates.headerPredicates.push_back(headerPredicatesItemObject);
|
||||
}
|
||||
auto allQueryPredicatesNode = routePredicatesNode["QueryPredicates"]["QueryPredicatesItem"];
|
||||
for (auto routePredicatesNodeQueryPredicatesQueryPredicatesItem : allQueryPredicatesNode)
|
||||
{
|
||||
Data::RoutePredicates::QueryPredicatesItem queryPredicatesItemObject;
|
||||
if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Key"].isNull())
|
||||
queryPredicatesItemObject.key = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Key"].asString();
|
||||
if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Value"].isNull())
|
||||
queryPredicatesItemObject.value = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Value"].asString();
|
||||
if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Type"].isNull())
|
||||
queryPredicatesItemObject.type = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Type"].asString();
|
||||
data_.routePredicates.queryPredicates.push_back(queryPredicatesItemObject);
|
||||
}
|
||||
auto pathPredicatesNode = routePredicatesNode["PathPredicates"];
|
||||
if(!pathPredicatesNode["Path"].isNull())
|
||||
data_.routePredicates.pathPredicates.path = pathPredicatesNode["Path"].asString();
|
||||
if(!pathPredicatesNode["Type"].isNull())
|
||||
data_.routePredicates.pathPredicates.type = pathPredicatesNode["Type"].asString();
|
||||
if(!pathPredicatesNode["IgnoreCase"].isNull())
|
||||
data_.routePredicates.pathPredicates.ignoreCase = pathPredicatesNode["IgnoreCase"].asString() == "true";
|
||||
auto allMethodPredicates = routePredicatesNode["MethodPredicates"]["MethodPredicates"];
|
||||
for (auto value : allMethodPredicates)
|
||||
data_.routePredicates.methodPredicates.push_back(value.asString());
|
||||
auto hTTPRewriteNode = dataNode["HTTPRewrite"];
|
||||
if(!hTTPRewriteNode["Status"].isNull())
|
||||
data_.hTTPRewrite.status = hTTPRewriteNode["Status"].asString();
|
||||
if(!hTTPRewriteNode["Path"].isNull())
|
||||
data_.hTTPRewrite.path = hTTPRewriteNode["Path"].asString();
|
||||
if(!hTTPRewriteNode["Host"].isNull())
|
||||
data_.hTTPRewrite.host = hTTPRewriteNode["Host"].asString();
|
||||
if(!hTTPRewriteNode["PathType"].isNull())
|
||||
data_.hTTPRewrite.pathType = hTTPRewriteNode["PathType"].asString();
|
||||
if(!hTTPRewriteNode["Pattern"].isNull())
|
||||
data_.hTTPRewrite.pattern = hTTPRewriteNode["Pattern"].asString();
|
||||
if(!hTTPRewriteNode["Substitution"].isNull())
|
||||
data_.hTTPRewrite.substitution = hTTPRewriteNode["Substitution"].asString();
|
||||
auto headerOpNode = dataNode["HeaderOp"];
|
||||
if(!headerOpNode["Status"].isNull())
|
||||
data_.headerOp.status = headerOpNode["Status"].asString();
|
||||
auto allHeaderOpItemsNode = headerOpNode["HeaderOpItems"]["HeaderOpItemsItem"];
|
||||
for (auto headerOpNodeHeaderOpItemsHeaderOpItemsItem : allHeaderOpItemsNode)
|
||||
{
|
||||
Data::HeaderOp::HeaderOpItemsItem headerOpItemsItemObject;
|
||||
if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["DirectionType"].isNull())
|
||||
headerOpItemsItemObject.directionType = headerOpNodeHeaderOpItemsHeaderOpItemsItem["DirectionType"].asString();
|
||||
if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["OpType"].isNull())
|
||||
headerOpItemsItemObject.opType = headerOpNodeHeaderOpItemsHeaderOpItemsItem["OpType"].asString();
|
||||
if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["Key"].isNull())
|
||||
headerOpItemsItemObject.key = headerOpNodeHeaderOpItemsHeaderOpItemsItem["Key"].asString();
|
||||
if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["Value"].isNull())
|
||||
headerOpItemsItemObject.value = headerOpNodeHeaderOpItemsHeaderOpItemsItem["Value"].asString();
|
||||
data_.headerOp.headerOpItems.push_back(headerOpItemsItemObject);
|
||||
}
|
||||
auto directResponseNode = dataNode["DirectResponse"];
|
||||
if(!directResponseNode["Code"].isNull())
|
||||
data_.directResponse.code = std::stoi(directResponseNode["Code"].asString());
|
||||
if(!directResponseNode["Body"].isNull())
|
||||
data_.directResponse.body = directResponseNode["Body"].asString();
|
||||
auto corsNode = dataNode["Cors"];
|
||||
if(!corsNode["Status"].isNull())
|
||||
data_.cors.status = corsNode["Status"].asString();
|
||||
if(!corsNode["AllowOrigins"].isNull())
|
||||
data_.cors.allowOrigins = corsNode["AllowOrigins"].asString();
|
||||
if(!corsNode["AllowMethods"].isNull())
|
||||
data_.cors.allowMethods = corsNode["AllowMethods"].asString();
|
||||
if(!corsNode["AllowHeaders"].isNull())
|
||||
data_.cors.allowHeaders = corsNode["AllowHeaders"].asString();
|
||||
if(!corsNode["ExposeHeaders"].isNull())
|
||||
data_.cors.exposeHeaders = corsNode["ExposeHeaders"].asString();
|
||||
if(!corsNode["TimeUnit"].isNull())
|
||||
data_.cors.timeUnit = corsNode["TimeUnit"].asString();
|
||||
if(!corsNode["UnitNum"].isNull())
|
||||
data_.cors.unitNum = std::stol(corsNode["UnitNum"].asString());
|
||||
if(!corsNode["AllowCredentials"].isNull())
|
||||
data_.cors.allowCredentials = corsNode["AllowCredentials"].asString() == "true";
|
||||
auto timeoutNode = dataNode["Timeout"];
|
||||
if(!timeoutNode["UnitNum"].isNull())
|
||||
data_.timeout.unitNum = std::stoi(timeoutNode["UnitNum"].asString());
|
||||
if(!timeoutNode["TimeUnit"].isNull())
|
||||
data_.timeout.timeUnit = timeoutNode["TimeUnit"].asString();
|
||||
if(!timeoutNode["Status"].isNull())
|
||||
data_.timeout.status = timeoutNode["Status"].asString();
|
||||
auto retryNode = dataNode["Retry"];
|
||||
if(!retryNode["Attempts"].isNull())
|
||||
data_.retry.attempts = std::stoi(retryNode["Attempts"].asString());
|
||||
if(!retryNode["Status"].isNull())
|
||||
data_.retry.status = retryNode["Status"].asString();
|
||||
auto allRetryOn = retryNode["RetryOn"]["retryOn"];
|
||||
for (auto value : allRetryOn)
|
||||
data_.retry.retryOn.push_back(value.asString());
|
||||
auto allHttpCodes = retryNode["HttpCodes"]["httpCodes"];
|
||||
for (auto value : allHttpCodes)
|
||||
data_.retry.httpCodes.push_back(value.asString());
|
||||
auto redirectNode = dataNode["Redirect"];
|
||||
if(!redirectNode["Code"].isNull())
|
||||
data_.redirect.code = std::stoi(redirectNode["Code"].asString());
|
||||
if(!redirectNode["Host"].isNull())
|
||||
data_.redirect.host = redirectNode["Host"].asString();
|
||||
if(!redirectNode["Path"].isNull())
|
||||
data_.redirect.path = redirectNode["Path"].asString();
|
||||
auto allDomainIdList = dataNode["DomainIdList"]["DomainIdList"];
|
||||
for (auto value : allDomainIdList)
|
||||
data_.domainIdList.push_back(value.asString());
|
||||
auto allDomainNameList = dataNode["DomainNameList"]["DomainNameList"];
|
||||
for (auto value : allDomainNameList)
|
||||
data_.domainNameList.push_back(value.asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetGatewayRouteDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetGatewayRouteDetailResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetGatewayRouteDetailResult::Data GetGatewayRouteDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetGatewayRouteDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetGatewayRouteDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/GetServiceListRequest.cc
Normal file
81
mse/src/model/GetServiceListRequest.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/mse/model/GetServiceListRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetServiceListRequest;
|
||||
|
||||
GetServiceListRequest::GetServiceListRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetServiceList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetServiceListRequest::~GetServiceListRequest() {}
|
||||
|
||||
std::string GetServiceListRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetServiceListRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
std::string GetServiceListRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void GetServiceListRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
std::string GetServiceListRequest::getServiceType() const {
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
void GetServiceListRequest::setServiceType(const std::string &serviceType) {
|
||||
serviceType_ = serviceType;
|
||||
setParameter(std::string("ServiceType"), serviceType);
|
||||
}
|
||||
|
||||
std::string GetServiceListRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void GetServiceListRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string GetServiceListRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetServiceListRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string GetServiceListRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetServiceListRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
122
mse/src/model/GetServiceListResult.cc
Normal file
122
mse/src/model/GetServiceListResult.cc
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* 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/mse/model/GetServiceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetServiceListResult::GetServiceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceListResult::GetServiceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceListResult::~GetServiceListResult()
|
||||
{}
|
||||
|
||||
void GetServiceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["MscServiceDetailResponse"];
|
||||
for (auto valueDataMscServiceDetailResponse : allDataNode)
|
||||
{
|
||||
MscServiceDetailResponse dataObject;
|
||||
if(!valueDataMscServiceDetailResponse["EdasAppName"].isNull())
|
||||
dataObject.edasAppName = valueDataMscServiceDetailResponse["EdasAppName"].asString();
|
||||
if(!valueDataMscServiceDetailResponse["DubboApplicationName"].isNull())
|
||||
dataObject.dubboApplicationName = valueDataMscServiceDetailResponse["DubboApplicationName"].asString();
|
||||
if(!valueDataMscServiceDetailResponse["Version"].isNull())
|
||||
dataObject.version = valueDataMscServiceDetailResponse["Version"].asString();
|
||||
if(!valueDataMscServiceDetailResponse["SpringApplicationName"].isNull())
|
||||
dataObject.springApplicationName = valueDataMscServiceDetailResponse["SpringApplicationName"].asString();
|
||||
if(!valueDataMscServiceDetailResponse["RegistryType"].isNull())
|
||||
dataObject.registryType = valueDataMscServiceDetailResponse["RegistryType"].asString();
|
||||
if(!valueDataMscServiceDetailResponse["ServiceType"].isNull())
|
||||
dataObject.serviceType = valueDataMscServiceDetailResponse["ServiceType"].asString();
|
||||
if(!valueDataMscServiceDetailResponse["ServiceName"].isNull())
|
||||
dataObject.serviceName = valueDataMscServiceDetailResponse["ServiceName"].asString();
|
||||
if(!valueDataMscServiceDetailResponse["Metadata"].isNull())
|
||||
dataObject.metadata = valueDataMscServiceDetailResponse["Metadata"].asString();
|
||||
if(!valueDataMscServiceDetailResponse["Group"].isNull())
|
||||
dataObject.group = valueDataMscServiceDetailResponse["Group"].asString();
|
||||
auto allMethodsNode = valueDataMscServiceDetailResponse["Methods"]["Method"];
|
||||
for (auto valueDataMscServiceDetailResponseMethodsMethod : allMethodsNode)
|
||||
{
|
||||
MscServiceDetailResponse::Method methodsObject;
|
||||
if(!valueDataMscServiceDetailResponseMethodsMethod["Name"].isNull())
|
||||
methodsObject.name = valueDataMscServiceDetailResponseMethodsMethod["Name"].asString();
|
||||
if(!valueDataMscServiceDetailResponseMethodsMethod["MethodController"].isNull())
|
||||
methodsObject.methodController = valueDataMscServiceDetailResponseMethodsMethod["MethodController"].asString();
|
||||
if(!valueDataMscServiceDetailResponseMethodsMethod["ReturnType"].isNull())
|
||||
methodsObject.returnType = valueDataMscServiceDetailResponseMethodsMethod["ReturnType"].asString();
|
||||
auto allPaths = value["Paths"]["Path"];
|
||||
for (auto value : allPaths)
|
||||
methodsObject.paths.push_back(value.asString());
|
||||
auto allParameterTypes = value["ParameterTypes"]["ParameterType"];
|
||||
for (auto value : allParameterTypes)
|
||||
methodsObject.parameterTypes.push_back(value.asString());
|
||||
auto allRequestMethods = value["RequestMethods"]["RequestMethod"];
|
||||
for (auto value : allRequestMethods)
|
||||
methodsObject.requestMethods.push_back(value.asString());
|
||||
dataObject.methods.push_back(methodsObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetServiceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetServiceListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<GetServiceListResult::MscServiceDetailResponse> GetServiceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetServiceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetServiceListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
mse/src/model/GetTagsBySwimmingLaneGroupIdRequest.cc
Normal file
45
mse/src/model/GetTagsBySwimmingLaneGroupIdRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/mse/model/GetTagsBySwimmingLaneGroupIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetTagsBySwimmingLaneGroupIdRequest;
|
||||
|
||||
GetTagsBySwimmingLaneGroupIdRequest::GetTagsBySwimmingLaneGroupIdRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetTagsBySwimmingLaneGroupId") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTagsBySwimmingLaneGroupIdRequest::~GetTagsBySwimmingLaneGroupIdRequest() {}
|
||||
|
||||
long GetTagsBySwimmingLaneGroupIdRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void GetTagsBySwimmingLaneGroupIdRequest::setGroupId(long groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string GetTagsBySwimmingLaneGroupIdRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetTagsBySwimmingLaneGroupIdRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
44
mse/src/model/GetTagsBySwimmingLaneGroupIdResult.cc
Normal file
44
mse/src/model/GetTagsBySwimmingLaneGroupIdResult.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/mse/model/GetTagsBySwimmingLaneGroupIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetTagsBySwimmingLaneGroupIdResult::GetTagsBySwimmingLaneGroupIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTagsBySwimmingLaneGroupIdResult::GetTagsBySwimmingLaneGroupIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTagsBySwimmingLaneGroupIdResult::~GetTagsBySwimmingLaneGroupIdResult()
|
||||
{}
|
||||
|
||||
void GetTagsBySwimmingLaneGroupIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
mse/src/model/ListAppBySwimmingLaneGroupTagRequest.cc
Normal file
54
mse/src/model/ListAppBySwimmingLaneGroupTagRequest.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/mse/model/ListAppBySwimmingLaneGroupTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListAppBySwimmingLaneGroupTagRequest;
|
||||
|
||||
ListAppBySwimmingLaneGroupTagRequest::ListAppBySwimmingLaneGroupTagRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListAppBySwimmingLaneGroupTag") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAppBySwimmingLaneGroupTagRequest::~ListAppBySwimmingLaneGroupTagRequest() {}
|
||||
|
||||
long ListAppBySwimmingLaneGroupTagRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListAppBySwimmingLaneGroupTagRequest::setGroupId(long groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string ListAppBySwimmingLaneGroupTagRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListAppBySwimmingLaneGroupTagRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string ListAppBySwimmingLaneGroupTagRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListAppBySwimmingLaneGroupTagRequest::setTag(const std::string &tag) {
|
||||
tag_ = tag;
|
||||
setParameter(std::string("Tag"), tag);
|
||||
}
|
||||
|
||||
44
mse/src/model/ListAppBySwimmingLaneGroupTagResult.cc
Normal file
44
mse/src/model/ListAppBySwimmingLaneGroupTagResult.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/mse/model/ListAppBySwimmingLaneGroupTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListAppBySwimmingLaneGroupTagResult::ListAppBySwimmingLaneGroupTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAppBySwimmingLaneGroupTagResult::ListAppBySwimmingLaneGroupTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAppBySwimmingLaneGroupTagResult::~ListAppBySwimmingLaneGroupTagResult()
|
||||
{}
|
||||
|
||||
void ListAppBySwimmingLaneGroupTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
90
mse/src/model/ListApplicationsWithTagRulesRequest.cc
Normal file
90
mse/src/model/ListApplicationsWithTagRulesRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/mse/model/ListApplicationsWithTagRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListApplicationsWithTagRulesRequest;
|
||||
|
||||
ListApplicationsWithTagRulesRequest::ListApplicationsWithTagRulesRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListApplicationsWithTagRules") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListApplicationsWithTagRulesRequest::~ListApplicationsWithTagRulesRequest() {}
|
||||
|
||||
std::string ListApplicationsWithTagRulesRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void ListApplicationsWithTagRulesRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
int ListApplicationsWithTagRulesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListApplicationsWithTagRulesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListApplicationsWithTagRulesRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListApplicationsWithTagRulesRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string ListApplicationsWithTagRulesRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListApplicationsWithTagRulesRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
int ListApplicationsWithTagRulesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListApplicationsWithTagRulesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListApplicationsWithTagRulesRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListApplicationsWithTagRulesRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string ListApplicationsWithTagRulesRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void ListApplicationsWithTagRulesRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
124
mse/src/model/ListApplicationsWithTagRulesResult.cc
Normal file
124
mse/src/model/ListApplicationsWithTagRulesResult.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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/mse/model/ListApplicationsWithTagRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListApplicationsWithTagRulesResult::ListApplicationsWithTagRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListApplicationsWithTagRulesResult::ListApplicationsWithTagRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListApplicationsWithTagRulesResult::~ListApplicationsWithTagRulesResult()
|
||||
{}
|
||||
|
||||
void ListApplicationsWithTagRulesResult::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["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allResultNode = dataNode["Result"]["ApplicationList"];
|
||||
for (auto dataNodeResultApplicationList : allResultNode)
|
||||
{
|
||||
Data::ApplicationList applicationListObject;
|
||||
if(!dataNodeResultApplicationList["AppName"].isNull())
|
||||
applicationListObject.appName = dataNodeResultApplicationList["AppName"].asString();
|
||||
if(!dataNodeResultApplicationList["AppId"].isNull())
|
||||
applicationListObject.appId = dataNodeResultApplicationList["AppId"].asString();
|
||||
if(!dataNodeResultApplicationList["RouteStatus"].isNull())
|
||||
applicationListObject.routeStatus = std::stol(dataNodeResultApplicationList["RouteStatus"].asString());
|
||||
auto allRouteRulesNode = dataNodeResultApplicationList["RouteRules"]["RouteRule"];
|
||||
for (auto dataNodeResultApplicationListRouteRulesRouteRule : allRouteRulesNode)
|
||||
{
|
||||
Data::ApplicationList::RouteRule routeRulesObject;
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["Status"].isNull())
|
||||
routeRulesObject.status = std::stoi(dataNodeResultApplicationListRouteRulesRouteRule["Status"].asString());
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["InstanceNum"].isNull())
|
||||
routeRulesObject.instanceNum = std::stoi(dataNodeResultApplicationListRouteRulesRouteRule["InstanceNum"].asString());
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["Remove"].isNull())
|
||||
routeRulesObject.remove = dataNodeResultApplicationListRouteRulesRouteRule["Remove"].asString() == "true";
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["CarryData"].isNull())
|
||||
routeRulesObject.carryData = dataNodeResultApplicationListRouteRulesRouteRule["CarryData"].asString() == "true";
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["Tag"].isNull())
|
||||
routeRulesObject.tag = dataNodeResultApplicationListRouteRulesRouteRule["Tag"].asString();
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["Name"].isNull())
|
||||
routeRulesObject.name = dataNodeResultApplicationListRouteRulesRouteRule["Name"].asString();
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["Rules"].isNull())
|
||||
routeRulesObject.rules = dataNodeResultApplicationListRouteRulesRouteRule["Rules"].asString();
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["Id"].isNull())
|
||||
routeRulesObject.id = std::stol(dataNodeResultApplicationListRouteRulesRouteRule["Id"].asString());
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["Rate"].isNull())
|
||||
routeRulesObject.rate = std::stoi(dataNodeResultApplicationListRouteRulesRouteRule["Rate"].asString());
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["GmtModified"].isNull())
|
||||
routeRulesObject.gmtModified = std::stol(dataNodeResultApplicationListRouteRulesRouteRule["GmtModified"].asString());
|
||||
if(!dataNodeResultApplicationListRouteRulesRouteRule["Enable"].isNull())
|
||||
routeRulesObject.enable = dataNodeResultApplicationListRouteRulesRouteRule["Enable"].asString() == "true";
|
||||
applicationListObject.routeRules.push_back(routeRulesObject);
|
||||
}
|
||||
data_.result.push_back(applicationListObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListApplicationsWithTagRulesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListApplicationsWithTagRulesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListApplicationsWithTagRulesResult::Data ListApplicationsWithTagRulesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListApplicationsWithTagRulesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListApplicationsWithTagRulesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
87
mse/src/model/ListGatewayRouteRequest.cc
Normal file
87
mse/src/model/ListGatewayRouteRequest.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/mse/model/ListGatewayRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListGatewayRouteRequest;
|
||||
|
||||
ListGatewayRouteRequest::ListGatewayRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListGatewayRoute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListGatewayRouteRequest::~ListGatewayRouteRequest() {}
|
||||
|
||||
int ListGatewayRouteRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListGatewayRouteRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListGatewayRouteRequest::getOrderItem() const {
|
||||
return orderItem_;
|
||||
}
|
||||
|
||||
void ListGatewayRouteRequest::setOrderItem(const std::string &orderItem) {
|
||||
orderItem_ = orderItem;
|
||||
setParameter(std::string("OrderItem"), orderItem);
|
||||
}
|
||||
|
||||
int ListGatewayRouteRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListGatewayRouteRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool ListGatewayRouteRequest::getDescSort() const {
|
||||
return descSort_;
|
||||
}
|
||||
|
||||
void ListGatewayRouteRequest::setDescSort(bool descSort) {
|
||||
descSort_ = descSort;
|
||||
setParameter(std::string("DescSort"), descSort ? "true" : "false");
|
||||
}
|
||||
|
||||
ListGatewayRouteRequest::FilterParams ListGatewayRouteRequest::getFilterParams() const {
|
||||
return filterParams_;
|
||||
}
|
||||
|
||||
void ListGatewayRouteRequest::setFilterParams(const ListGatewayRouteRequest::FilterParams &filterParams) {
|
||||
filterParams_ = filterParams;
|
||||
setParameter(std::string("FilterParams") + ".DefaultServiceId", std::to_string(filterParams.defaultServiceId));
|
||||
setParameter(std::string("FilterParams") + ".RouteOrder", std::to_string(filterParams.routeOrder));
|
||||
setParameter(std::string("FilterParams") + ".GatewayUniqueId", filterParams.gatewayUniqueId);
|
||||
setParameter(std::string("FilterParams") + ".Name", filterParams.name);
|
||||
setParameter(std::string("FilterParams") + ".GatewayId", std::to_string(filterParams.gatewayId));
|
||||
setParameter(std::string("FilterParams") + ".DomainId", std::to_string(filterParams.domainId));
|
||||
setParameter(std::string("FilterParams") + ".Status", std::to_string(filterParams.status));
|
||||
}
|
||||
|
||||
std::string ListGatewayRouteRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListGatewayRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
195
mse/src/model/ListGatewayRouteResult.cc
Normal file
195
mse/src/model/ListGatewayRouteResult.cc
Normal file
@@ -0,0 +1,195 @@
|
||||
/*
|
||||
* 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/mse/model/ListGatewayRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListGatewayRouteResult::ListGatewayRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListGatewayRouteResult::ListGatewayRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListGatewayRouteResult::~ListGatewayRouteResult()
|
||||
{}
|
||||
|
||||
void ListGatewayRouteResult::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["TotalSize"].isNull())
|
||||
data_.totalSize = std::stol(dataNode["TotalSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allResultNode = dataNode["Result"]["Routes"];
|
||||
for (auto dataNodeResultRoutes : allResultNode)
|
||||
{
|
||||
Data::Routes routesObject;
|
||||
if(!dataNodeResultRoutes["Id"].isNull())
|
||||
routesObject.id = std::stol(dataNodeResultRoutes["Id"].asString());
|
||||
if(!dataNodeResultRoutes["Name"].isNull())
|
||||
routesObject.name = dataNodeResultRoutes["Name"].asString();
|
||||
if(!dataNodeResultRoutes["GatewayUniqueId"].isNull())
|
||||
routesObject.gatewayUniqueId = dataNodeResultRoutes["GatewayUniqueId"].asString();
|
||||
if(!dataNodeResultRoutes["GatewayId"].isNull())
|
||||
routesObject.gatewayId = std::stol(dataNodeResultRoutes["GatewayId"].asString());
|
||||
if(!dataNodeResultRoutes["Status"].isNull())
|
||||
routesObject.status = std::stoi(dataNodeResultRoutes["Status"].asString());
|
||||
if(!dataNodeResultRoutes["RouteOrder"].isNull())
|
||||
routesObject.routeOrder = std::stoi(dataNodeResultRoutes["RouteOrder"].asString());
|
||||
if(!dataNodeResultRoutes["DefaultServiceName"].isNull())
|
||||
routesObject.defaultServiceName = dataNodeResultRoutes["DefaultServiceName"].asString();
|
||||
if(!dataNodeResultRoutes["DefaultServiceId"].isNull())
|
||||
routesObject.defaultServiceId = std::stol(dataNodeResultRoutes["DefaultServiceId"].asString());
|
||||
if(!dataNodeResultRoutes["Predicates"].isNull())
|
||||
routesObject.predicates = dataNodeResultRoutes["Predicates"].asString();
|
||||
if(!dataNodeResultRoutes["GmtCreate"].isNull())
|
||||
routesObject.gmtCreate = dataNodeResultRoutes["GmtCreate"].asString();
|
||||
if(!dataNodeResultRoutes["GmtModified"].isNull())
|
||||
routesObject.gmtModified = dataNodeResultRoutes["GmtModified"].asString();
|
||||
if(!dataNodeResultRoutes["Services"].isNull())
|
||||
routesObject.services = dataNodeResultRoutes["Services"].asString();
|
||||
if(!dataNodeResultRoutes["DomainId"].isNull())
|
||||
routesObject.domainId = std::stol(dataNodeResultRoutes["DomainId"].asString());
|
||||
if(!dataNodeResultRoutes["DomainName"].isNull())
|
||||
routesObject.domainName = dataNodeResultRoutes["DomainName"].asString();
|
||||
if(!dataNodeResultRoutes["DestinationType"].isNull())
|
||||
routesObject.destinationType = dataNodeResultRoutes["DestinationType"].asString();
|
||||
auto allRouteServicesNode = dataNodeResultRoutes["RouteServices"]["RouteServicesItem"];
|
||||
for (auto dataNodeResultRoutesRouteServicesRouteServicesItem : allRouteServicesNode)
|
||||
{
|
||||
Data::Routes::RouteServicesItem routeServicesObject;
|
||||
if(!dataNodeResultRoutesRouteServicesRouteServicesItem["ServiceId"].isNull())
|
||||
routeServicesObject.serviceId = std::stol(dataNodeResultRoutesRouteServicesRouteServicesItem["ServiceId"].asString());
|
||||
if(!dataNodeResultRoutesRouteServicesRouteServicesItem["ServiceName"].isNull())
|
||||
routeServicesObject.serviceName = dataNodeResultRoutesRouteServicesRouteServicesItem["ServiceName"].asString();
|
||||
if(!dataNodeResultRoutesRouteServicesRouteServicesItem["Percent"].isNull())
|
||||
routeServicesObject.percent = std::stoi(dataNodeResultRoutesRouteServicesRouteServicesItem["Percent"].asString());
|
||||
if(!dataNodeResultRoutesRouteServicesRouteServicesItem["Version"].isNull())
|
||||
routeServicesObject.version = dataNodeResultRoutesRouteServicesRouteServicesItem["Version"].asString();
|
||||
if(!dataNodeResultRoutesRouteServicesRouteServicesItem["Name"].isNull())
|
||||
routeServicesObject.name = dataNodeResultRoutesRouteServicesRouteServicesItem["Name"].asString();
|
||||
if(!dataNodeResultRoutesRouteServicesRouteServicesItem["SourceType"].isNull())
|
||||
routeServicesObject.sourceType = dataNodeResultRoutesRouteServicesRouteServicesItem["SourceType"].asString();
|
||||
if(!dataNodeResultRoutesRouteServicesRouteServicesItem["Namespace"].isNull())
|
||||
routeServicesObject._namespace = dataNodeResultRoutesRouteServicesRouteServicesItem["Namespace"].asString();
|
||||
if(!dataNodeResultRoutesRouteServicesRouteServicesItem["GroupName"].isNull())
|
||||
routeServicesObject.groupName = dataNodeResultRoutesRouteServicesRouteServicesItem["GroupName"].asString();
|
||||
routesObject.routeServices.push_back(routeServicesObject);
|
||||
}
|
||||
auto routePredicatesNode = value["RoutePredicates"];
|
||||
auto allHeaderPredicatesNode = routePredicatesNode["HeaderPredicates"]["HeaderPredicatesItem"];
|
||||
for (auto routePredicatesNodeHeaderPredicatesHeaderPredicatesItem : allHeaderPredicatesNode)
|
||||
{
|
||||
Data::Routes::RoutePredicates::HeaderPredicatesItem headerPredicatesItemObject;
|
||||
if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Key"].isNull())
|
||||
headerPredicatesItemObject.key = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Key"].asString();
|
||||
if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Value"].isNull())
|
||||
headerPredicatesItemObject.value = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Value"].asString();
|
||||
if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Type"].isNull())
|
||||
headerPredicatesItemObject.type = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Type"].asString();
|
||||
routesObject.routePredicates.headerPredicates.push_back(headerPredicatesItemObject);
|
||||
}
|
||||
auto allQueryPredicatesNode = routePredicatesNode["QueryPredicates"]["QueryPredicatesItem"];
|
||||
for (auto routePredicatesNodeQueryPredicatesQueryPredicatesItem : allQueryPredicatesNode)
|
||||
{
|
||||
Data::Routes::RoutePredicates::QueryPredicatesItem queryPredicatesItemObject;
|
||||
if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Key"].isNull())
|
||||
queryPredicatesItemObject.key = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Key"].asString();
|
||||
if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Value"].isNull())
|
||||
queryPredicatesItemObject.value = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Value"].asString();
|
||||
if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Type"].isNull())
|
||||
queryPredicatesItemObject.type = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Type"].asString();
|
||||
routesObject.routePredicates.queryPredicates.push_back(queryPredicatesItemObject);
|
||||
}
|
||||
auto pathPredicatesNode = routePredicatesNode["PathPredicates"];
|
||||
if(!pathPredicatesNode["Path"].isNull())
|
||||
routesObject.routePredicates.pathPredicates.path = pathPredicatesNode["Path"].asString();
|
||||
if(!pathPredicatesNode["Type"].isNull())
|
||||
routesObject.routePredicates.pathPredicates.type = pathPredicatesNode["Type"].asString();
|
||||
if(!pathPredicatesNode["IgnoreCase"].isNull())
|
||||
routesObject.routePredicates.pathPredicates.ignoreCase = pathPredicatesNode["IgnoreCase"].asString() == "true";
|
||||
auto allMethodPredicates = routePredicatesNode["MethodPredicates"]["MethodPredicates"];
|
||||
for (auto value : allMethodPredicates)
|
||||
routesObject.routePredicates.methodPredicates.push_back(value.asString());
|
||||
auto directResponseNode = value["DirectResponse"];
|
||||
if(!directResponseNode["Code"].isNull())
|
||||
routesObject.directResponse.code = std::stoi(directResponseNode["Code"].asString());
|
||||
if(!directResponseNode["Body"].isNull())
|
||||
routesObject.directResponse.body = directResponseNode["Body"].asString();
|
||||
auto redirectNode = value["Redirect"];
|
||||
if(!redirectNode["Code"].isNull())
|
||||
routesObject.redirect.code = std::stoi(redirectNode["Code"].asString());
|
||||
if(!redirectNode["Host"].isNull())
|
||||
routesObject.redirect.host = redirectNode["Host"].asString();
|
||||
if(!redirectNode["Path"].isNull())
|
||||
routesObject.redirect.path = redirectNode["Path"].asString();
|
||||
auto allDomainIdList = value["DomainIdList"]["DomainIdList"];
|
||||
for (auto value : allDomainIdList)
|
||||
routesObject.domainIdList.push_back(value.asString());
|
||||
auto allDomainNameList = value["DomainNameList"]["DomainNameList"];
|
||||
for (auto value : allDomainNameList)
|
||||
routesObject.domainNameList.push_back(value.asString());
|
||||
data_.result.push_back(routesObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListGatewayRouteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListGatewayRouteResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListGatewayRouteResult::Data ListGatewayRouteResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListGatewayRouteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListGatewayRouteResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/OfflineGatewayRouteRequest.cc
Normal file
54
mse/src/model/OfflineGatewayRouteRequest.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/mse/model/OfflineGatewayRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::OfflineGatewayRouteRequest;
|
||||
|
||||
OfflineGatewayRouteRequest::OfflineGatewayRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "OfflineGatewayRoute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
OfflineGatewayRouteRequest::~OfflineGatewayRouteRequest() {}
|
||||
|
||||
std::string OfflineGatewayRouteRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void OfflineGatewayRouteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string OfflineGatewayRouteRequest::getRouteId() const {
|
||||
return routeId_;
|
||||
}
|
||||
|
||||
void OfflineGatewayRouteRequest::setRouteId(const std::string &routeId) {
|
||||
routeId_ = routeId;
|
||||
setParameter(std::string("RouteId"), routeId);
|
||||
}
|
||||
|
||||
std::string OfflineGatewayRouteRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void OfflineGatewayRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/OfflineGatewayRouteResult.cc
Normal file
79
mse/src/model/OfflineGatewayRouteResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/OfflineGatewayRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
OfflineGatewayRouteResult::OfflineGatewayRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OfflineGatewayRouteResult::OfflineGatewayRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OfflineGatewayRouteResult::~OfflineGatewayRouteResult()
|
||||
{}
|
||||
|
||||
void OfflineGatewayRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string OfflineGatewayRouteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int OfflineGatewayRouteResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool OfflineGatewayRouteResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int OfflineGatewayRouteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool OfflineGatewayRouteResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
mse/src/model/QueryAllSwimmingLaneGroupRequest.cc
Normal file
36
mse/src/model/QueryAllSwimmingLaneGroupRequest.cc
Normal 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/mse/model/QueryAllSwimmingLaneGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::QueryAllSwimmingLaneGroupRequest;
|
||||
|
||||
QueryAllSwimmingLaneGroupRequest::QueryAllSwimmingLaneGroupRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "QueryAllSwimmingLaneGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAllSwimmingLaneGroupRequest::~QueryAllSwimmingLaneGroupRequest() {}
|
||||
|
||||
std::string QueryAllSwimmingLaneGroupRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void QueryAllSwimmingLaneGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
44
mse/src/model/QueryAllSwimmingLaneGroupResult.cc
Normal file
44
mse/src/model/QueryAllSwimmingLaneGroupResult.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/mse/model/QueryAllSwimmingLaneGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
QueryAllSwimmingLaneGroupResult::QueryAllSwimmingLaneGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAllSwimmingLaneGroupResult::QueryAllSwimmingLaneGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAllSwimmingLaneGroupResult::~QueryAllSwimmingLaneGroupResult()
|
||||
{}
|
||||
|
||||
void QueryAllSwimmingLaneGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
mse/src/model/QueryAllSwimmingLaneRequest.cc
Normal file
45
mse/src/model/QueryAllSwimmingLaneRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/mse/model/QueryAllSwimmingLaneRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::QueryAllSwimmingLaneRequest;
|
||||
|
||||
QueryAllSwimmingLaneRequest::QueryAllSwimmingLaneRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "QueryAllSwimmingLane") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAllSwimmingLaneRequest::~QueryAllSwimmingLaneRequest() {}
|
||||
|
||||
long QueryAllSwimmingLaneRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void QueryAllSwimmingLaneRequest::setGroupId(long groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string QueryAllSwimmingLaneRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void QueryAllSwimmingLaneRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
44
mse/src/model/QueryAllSwimmingLaneResult.cc
Normal file
44
mse/src/model/QueryAllSwimmingLaneResult.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/mse/model/QueryAllSwimmingLaneResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
QueryAllSwimmingLaneResult::QueryAllSwimmingLaneResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAllSwimmingLaneResult::QueryAllSwimmingLaneResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAllSwimmingLaneResult::~QueryAllSwimmingLaneResult()
|
||||
{}
|
||||
|
||||
void QueryAllSwimmingLaneResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
mse/src/model/QuerySwimmingLaneByIdRequest.cc
Normal file
45
mse/src/model/QuerySwimmingLaneByIdRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/mse/model/QuerySwimmingLaneByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::QuerySwimmingLaneByIdRequest;
|
||||
|
||||
QuerySwimmingLaneByIdRequest::QuerySwimmingLaneByIdRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "QuerySwimmingLaneById") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySwimmingLaneByIdRequest::~QuerySwimmingLaneByIdRequest() {}
|
||||
|
||||
long QuerySwimmingLaneByIdRequest::getLaneId() const {
|
||||
return laneId_;
|
||||
}
|
||||
|
||||
void QuerySwimmingLaneByIdRequest::setLaneId(long laneId) {
|
||||
laneId_ = laneId;
|
||||
setParameter(std::string("LaneId"), std::to_string(laneId));
|
||||
}
|
||||
|
||||
std::string QuerySwimmingLaneByIdRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void QuerySwimmingLaneByIdRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
44
mse/src/model/QuerySwimmingLaneByIdResult.cc
Normal file
44
mse/src/model/QuerySwimmingLaneByIdResult.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/mse/model/QuerySwimmingLaneByIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
QuerySwimmingLaneByIdResult::QuerySwimmingLaneByIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySwimmingLaneByIdResult::QuerySwimmingLaneByIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySwimmingLaneByIdResult::~QuerySwimmingLaneByIdResult()
|
||||
{}
|
||||
|
||||
void QuerySwimmingLaneByIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
79
mse/src/model/UpdateGatewayRouteCORSRequest.cc
Normal file
79
mse/src/model/UpdateGatewayRouteCORSRequest.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteCORSRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::UpdateGatewayRouteCORSRequest;
|
||||
|
||||
UpdateGatewayRouteCORSRequest::UpdateGatewayRouteCORSRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayRouteCORS") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteCORSRequest::~UpdateGatewayRouteCORSRequest() {}
|
||||
|
||||
UpdateGatewayRouteCORSRequest::CorsJSON UpdateGatewayRouteCORSRequest::getCorsJSON() const {
|
||||
return corsJSON_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteCORSRequest::setCorsJSON(const UpdateGatewayRouteCORSRequest::CorsJSON &corsJSON) {
|
||||
corsJSON_ = corsJSON;
|
||||
setParameter(std::string("CorsJSON") + ".AllowCredentials", corsJSON.allowCredentials ? "true" : "false");
|
||||
setParameter(std::string("CorsJSON") + ".AllowOrigins", corsJSON.allowOrigins);
|
||||
setParameter(std::string("CorsJSON") + ".AllowMethods", corsJSON.allowMethods);
|
||||
setParameter(std::string("CorsJSON") + ".AllowHeaders", corsJSON.allowHeaders);
|
||||
setParameter(std::string("CorsJSON") + ".ExposeHeaders", corsJSON.exposeHeaders);
|
||||
setParameter(std::string("CorsJSON") + ".TimeUnit", corsJSON.timeUnit);
|
||||
setParameter(std::string("CorsJSON") + ".UnitNum", std::to_string(corsJSON.unitNum));
|
||||
setParameter(std::string("CorsJSON") + ".Status", corsJSON.status);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteCORSRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteCORSRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteCORSRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteCORSRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteCORSRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteCORSRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteCORSRequest::getGatewayId() const {
|
||||
return gatewayId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteCORSRequest::setGatewayId(long gatewayId) {
|
||||
gatewayId_ = gatewayId;
|
||||
setParameter(std::string("GatewayId"), std::to_string(gatewayId));
|
||||
}
|
||||
|
||||
79
mse/src/model/UpdateGatewayRouteCORSResult.cc
Normal file
79
mse/src/model/UpdateGatewayRouteCORSResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteCORSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
UpdateGatewayRouteCORSResult::UpdateGatewayRouteCORSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateGatewayRouteCORSResult::UpdateGatewayRouteCORSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteCORSResult::~UpdateGatewayRouteCORSResult()
|
||||
{}
|
||||
|
||||
void UpdateGatewayRouteCORSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteCORSResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteCORSResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteCORSResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteCORSResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateGatewayRouteCORSResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
mse/src/model/UpdateGatewayRouteHeaderOpRequest.cc
Normal file
72
mse/src/model/UpdateGatewayRouteHeaderOpRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteHeaderOpRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::UpdateGatewayRouteHeaderOpRequest;
|
||||
|
||||
UpdateGatewayRouteHeaderOpRequest::UpdateGatewayRouteHeaderOpRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayRouteHeaderOp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteHeaderOpRequest::~UpdateGatewayRouteHeaderOpRequest() {}
|
||||
|
||||
std::string UpdateGatewayRouteHeaderOpRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteHeaderOpRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteHeaderOpRequest::getHeaderOpJSON() const {
|
||||
return headerOpJSON_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteHeaderOpRequest::setHeaderOpJSON(const std::string &headerOpJSON) {
|
||||
headerOpJSON_ = headerOpJSON;
|
||||
setParameter(std::string("HeaderOpJSON"), headerOpJSON);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteHeaderOpRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteHeaderOpRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteHeaderOpRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteHeaderOpRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteHeaderOpRequest::getGatewayId() const {
|
||||
return gatewayId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteHeaderOpRequest::setGatewayId(long gatewayId) {
|
||||
gatewayId_ = gatewayId;
|
||||
setParameter(std::string("GatewayId"), std::to_string(gatewayId));
|
||||
}
|
||||
|
||||
79
mse/src/model/UpdateGatewayRouteHeaderOpResult.cc
Normal file
79
mse/src/model/UpdateGatewayRouteHeaderOpResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteHeaderOpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
UpdateGatewayRouteHeaderOpResult::UpdateGatewayRouteHeaderOpResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateGatewayRouteHeaderOpResult::UpdateGatewayRouteHeaderOpResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteHeaderOpResult::~UpdateGatewayRouteHeaderOpResult()
|
||||
{}
|
||||
|
||||
void UpdateGatewayRouteHeaderOpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteHeaderOpResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteHeaderOpResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteHeaderOpResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteHeaderOpResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateGatewayRouteHeaderOpResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
161
mse/src/model/UpdateGatewayRouteRequest.cc
Normal file
161
mse/src/model/UpdateGatewayRouteRequest.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::UpdateGatewayRouteRequest;
|
||||
|
||||
UpdateGatewayRouteRequest::UpdateGatewayRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayRoute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteRequest::~UpdateGatewayRouteRequest() {}
|
||||
|
||||
std::string UpdateGatewayRouteRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteRequest::getDestinationType() const {
|
||||
return destinationType_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setDestinationType(const std::string &destinationType) {
|
||||
destinationType_ = destinationType;
|
||||
setParameter(std::string("DestinationType"), destinationType);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteRequest::getDomainIdListJSON() const {
|
||||
return domainIdListJSON_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setDomainIdListJSON(const std::string &domainIdListJSON) {
|
||||
domainIdListJSON_ = domainIdListJSON;
|
||||
setParameter(std::string("DomainIdListJSON"), domainIdListJSON);
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteRequest::getGatewayId() const {
|
||||
return gatewayId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setGatewayId(long gatewayId) {
|
||||
gatewayId_ = gatewayId;
|
||||
setParameter(std::string("GatewayId"), std::to_string(gatewayId));
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteRequest::getRouteOrder() const {
|
||||
return routeOrder_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setRouteOrder(int routeOrder) {
|
||||
routeOrder_ = routeOrder;
|
||||
setParameter(std::string("RouteOrder"), std::to_string(routeOrder));
|
||||
}
|
||||
|
||||
std::vector<UpdateGatewayRouteRequest::Services> UpdateGatewayRouteRequest::getServices() const {
|
||||
return services_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setServices(const std::vector<UpdateGatewayRouteRequest::Services> &services) {
|
||||
services_ = services;
|
||||
for(int dep1 = 0; dep1 != services.size(); dep1++) {
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".Name", services[dep1].name);
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".Namespace", services[dep1]._namespace);
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".SourceType", services[dep1].sourceType);
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".ServiceId", std::to_string(services[dep1].serviceId));
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".Percent", std::to_string(services[dep1].percent));
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".Version", services[dep1].version);
|
||||
setParameter(std::string("Services") + "." + std::to_string(dep1 + 1) + ".GroupName", services[dep1].groupName);
|
||||
}
|
||||
}
|
||||
|
||||
UpdateGatewayRouteRequest::Predicates UpdateGatewayRouteRequest::getPredicates() const {
|
||||
return predicates_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setPredicates(const UpdateGatewayRouteRequest::Predicates &predicates) {
|
||||
predicates_ = predicates;
|
||||
setParameter(std::string("Predicates") + ".PathPredicates.Path", predicates.pathPredicates.path);
|
||||
setParameter(std::string("Predicates") + ".PathPredicates.IgnoreCase", predicates.pathPredicates.ignoreCase ? "true" : "false");
|
||||
setParameter(std::string("Predicates") + ".PathPredicates.Type", predicates.pathPredicates.type);
|
||||
for(int dep1 = 0; dep1 != predicates.methodPredicates.size(); dep1++) {
|
||||
setParameter(std::string("Predicates") + ".MethodPredicates." + std::to_string(dep1 + 1), predicates.methodPredicates[dep1]);
|
||||
}
|
||||
for(int dep1 = 0; dep1 != predicates.headerPredicates.size(); dep1++) {
|
||||
setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Type", predicates.headerPredicates[dep1].type);
|
||||
setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Value", predicates.headerPredicates[dep1].value);
|
||||
setParameter(std::string("Predicates") + ".HeaderPredicates." + std::to_string(dep1 + 1) + ".Key", predicates.headerPredicates[dep1].key);
|
||||
}
|
||||
for(int dep1 = 0; dep1 != predicates.queryPredicates.size(); dep1++) {
|
||||
setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Type", predicates.queryPredicates[dep1].type);
|
||||
setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Value", predicates.queryPredicates[dep1].value);
|
||||
setParameter(std::string("Predicates") + ".QueryPredicates." + std::to_string(dep1 + 1) + ".Key", predicates.queryPredicates[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
UpdateGatewayRouteRequest::RedirectJSON UpdateGatewayRouteRequest::getRedirectJSON() const {
|
||||
return redirectJSON_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setRedirectJSON(const UpdateGatewayRouteRequest::RedirectJSON &redirectJSON) {
|
||||
redirectJSON_ = redirectJSON;
|
||||
setParameter(std::string("RedirectJSON") + ".Path", redirectJSON.path);
|
||||
setParameter(std::string("RedirectJSON") + ".Code", std::to_string(redirectJSON.code));
|
||||
setParameter(std::string("RedirectJSON") + ".Host", redirectJSON.host);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteRequest::DirectResponseJSON UpdateGatewayRouteRequest::getDirectResponseJSON() const {
|
||||
return directResponseJSON_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setDirectResponseJSON(const UpdateGatewayRouteRequest::DirectResponseJSON &directResponseJSON) {
|
||||
directResponseJSON_ = directResponseJSON;
|
||||
setParameter(std::string("DirectResponseJSON") + ".Code", std::to_string(directResponseJSON.code));
|
||||
setParameter(std::string("DirectResponseJSON") + ".Body", directResponseJSON.body);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/UpdateGatewayRouteResult.cc
Normal file
79
mse/src/model/UpdateGatewayRouteResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
UpdateGatewayRouteResult::UpdateGatewayRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateGatewayRouteResult::UpdateGatewayRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteResult::~UpdateGatewayRouteResult()
|
||||
{}
|
||||
|
||||
void UpdateGatewayRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateGatewayRouteResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
79
mse/src/model/UpdateGatewayRouteRetryRequest.cc
Normal file
79
mse/src/model/UpdateGatewayRouteRetryRequest.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteRetryRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::UpdateGatewayRouteRetryRequest;
|
||||
|
||||
UpdateGatewayRouteRetryRequest::UpdateGatewayRouteRetryRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayRouteRetry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteRetryRequest::~UpdateGatewayRouteRetryRequest() {}
|
||||
|
||||
std::string UpdateGatewayRouteRetryRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRetryRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteRetryRequest::RetryJSON UpdateGatewayRouteRetryRequest::getRetryJSON() const {
|
||||
return retryJSON_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRetryRequest::setRetryJSON(const UpdateGatewayRouteRetryRequest::RetryJSON &retryJSON) {
|
||||
retryJSON_ = retryJSON;
|
||||
for(int dep1 = 0; dep1 != retryJSON.httpCodes.size(); dep1++) {
|
||||
setParameter(std::string("RetryJSON") + ".HttpCodes." + std::to_string(dep1 + 1), retryJSON.httpCodes[dep1]);
|
||||
}
|
||||
setParameter(std::string("RetryJSON") + ".Attempts", std::to_string(retryJSON.attempts));
|
||||
for(int dep1 = 0; dep1 != retryJSON.retryOn.size(); dep1++) {
|
||||
setParameter(std::string("RetryJSON") + ".RetryOn." + std::to_string(dep1 + 1), retryJSON.retryOn[dep1]);
|
||||
}
|
||||
setParameter(std::string("RetryJSON") + ".Status", retryJSON.status);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteRetryRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRetryRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteRetryRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRetryRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteRetryRequest::getGatewayId() const {
|
||||
return gatewayId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRetryRequest::setGatewayId(long gatewayId) {
|
||||
gatewayId_ = gatewayId;
|
||||
setParameter(std::string("GatewayId"), std::to_string(gatewayId));
|
||||
}
|
||||
|
||||
79
mse/src/model/UpdateGatewayRouteRetryResult.cc
Normal file
79
mse/src/model/UpdateGatewayRouteRetryResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteRetryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
UpdateGatewayRouteRetryResult::UpdateGatewayRouteRetryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateGatewayRouteRetryResult::UpdateGatewayRouteRetryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteRetryResult::~UpdateGatewayRouteRetryResult()
|
||||
{}
|
||||
|
||||
void UpdateGatewayRouteRetryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteRetryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteRetryResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteRetryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteRetryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateGatewayRouteRetryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
74
mse/src/model/UpdateGatewayRouteTimeoutRequest.cc
Normal file
74
mse/src/model/UpdateGatewayRouteTimeoutRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteTimeoutRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::UpdateGatewayRouteTimeoutRequest;
|
||||
|
||||
UpdateGatewayRouteTimeoutRequest::UpdateGatewayRouteTimeoutRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayRouteTimeout") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteTimeoutRequest::~UpdateGatewayRouteTimeoutRequest() {}
|
||||
|
||||
UpdateGatewayRouteTimeoutRequest::TimeoutJSON UpdateGatewayRouteTimeoutRequest::getTimeoutJSON() const {
|
||||
return timeoutJSON_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteTimeoutRequest::setTimeoutJSON(const UpdateGatewayRouteTimeoutRequest::TimeoutJSON &timeoutJSON) {
|
||||
timeoutJSON_ = timeoutJSON;
|
||||
setParameter(std::string("TimeoutJSON") + ".TimeUnit", timeoutJSON.timeUnit);
|
||||
setParameter(std::string("TimeoutJSON") + ".UnitNum", std::to_string(timeoutJSON.unitNum));
|
||||
setParameter(std::string("TimeoutJSON") + ".Status", timeoutJSON.status);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteTimeoutRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteTimeoutRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteTimeoutRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteTimeoutRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteTimeoutRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteTimeoutRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteTimeoutRequest::getGatewayId() const {
|
||||
return gatewayId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteTimeoutRequest::setGatewayId(long gatewayId) {
|
||||
gatewayId_ = gatewayId;
|
||||
setParameter(std::string("GatewayId"), std::to_string(gatewayId));
|
||||
}
|
||||
|
||||
79
mse/src/model/UpdateGatewayRouteTimeoutResult.cc
Normal file
79
mse/src/model/UpdateGatewayRouteTimeoutResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/mse/model/UpdateGatewayRouteTimeoutResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
UpdateGatewayRouteTimeoutResult::UpdateGatewayRouteTimeoutResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateGatewayRouteTimeoutResult::UpdateGatewayRouteTimeoutResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteTimeoutResult::~UpdateGatewayRouteTimeoutResult()
|
||||
{}
|
||||
|
||||
void UpdateGatewayRouteTimeoutResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteTimeoutResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteTimeoutResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteTimeoutResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteTimeoutResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateGatewayRouteTimeoutResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user