Supported dynamicRoute.
This commit is contained in:
1385
csas/src/CsasClient.cc
Normal file
1385
csas/src/CsasClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
56
csas/src/model/AttachApplication2ConnectorRequest.cc
Normal file
56
csas/src/model/AttachApplication2ConnectorRequest.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/csas/model/AttachApplication2ConnectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::AttachApplication2ConnectorRequest;
|
||||
|
||||
AttachApplication2ConnectorRequest::AttachApplication2ConnectorRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "AttachApplication2Connector") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachApplication2ConnectorRequest::~AttachApplication2ConnectorRequest() {}
|
||||
|
||||
std::string AttachApplication2ConnectorRequest::getConnectorId() const {
|
||||
return connectorId_;
|
||||
}
|
||||
|
||||
void AttachApplication2ConnectorRequest::setConnectorId(const std::string &connectorId) {
|
||||
connectorId_ = connectorId;
|
||||
setBodyParameter(std::string("ConnectorId"), connectorId);
|
||||
}
|
||||
|
||||
std::vector<AttachApplication2ConnectorRequest::std::string> AttachApplication2ConnectorRequest::getApplicationIds() const {
|
||||
return applicationIds_;
|
||||
}
|
||||
|
||||
void AttachApplication2ConnectorRequest::setApplicationIds(const std::vector<AttachApplication2ConnectorRequest::std::string> &applicationIds) {
|
||||
applicationIds_ = applicationIds;
|
||||
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AttachApplication2ConnectorRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void AttachApplication2ConnectorRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
44
csas/src/model/AttachApplication2ConnectorResult.cc
Normal file
44
csas/src/model/AttachApplication2ConnectorResult.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/csas/model/AttachApplication2ConnectorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
AttachApplication2ConnectorResult::AttachApplication2ConnectorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachApplication2ConnectorResult::AttachApplication2ConnectorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachApplication2ConnectorResult::~AttachApplication2ConnectorResult()
|
||||
{}
|
||||
|
||||
void AttachApplication2ConnectorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
132
csas/src/model/CreateDynamicRouteRequest.cc
Normal file
132
csas/src/model/CreateDynamicRouteRequest.cc
Normal file
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
* 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/csas/model/CreateDynamicRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::CreateDynamicRouteRequest;
|
||||
|
||||
CreateDynamicRouteRequest::CreateDynamicRouteRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "CreateDynamicRoute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDynamicRouteRequest::~CreateDynamicRouteRequest() {}
|
||||
|
||||
std::string CreateDynamicRouteRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateDynamicRouteRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateDynamicRouteRequest::getDynamicRouteType() const {
|
||||
return dynamicRouteType_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setDynamicRouteType(const std::string &dynamicRouteType) {
|
||||
dynamicRouteType_ = dynamicRouteType;
|
||||
setBodyParameter(std::string("DynamicRouteType"), dynamicRouteType);
|
||||
}
|
||||
|
||||
std::vector<CreateDynamicRouteRequest::std::string> CreateDynamicRouteRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setTagIds(const std::vector<CreateDynamicRouteRequest::std::string> &tagIds) {
|
||||
tagIds_ = tagIds;
|
||||
for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreateDynamicRouteRequest::std::string> CreateDynamicRouteRequest::getRegionIds() const {
|
||||
return regionIds_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setRegionIds(const std::vector<CreateDynamicRouteRequest::std::string> ®ionIds) {
|
||||
regionIds_ = regionIds;
|
||||
for(int dep1 = 0; dep1 != regionIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("RegionIds") + "." + std::to_string(dep1 + 1), regionIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
int CreateDynamicRouteRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
std::string CreateDynamicRouteRequest::getNextHop() const {
|
||||
return nextHop_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setNextHop(const std::string &nextHop) {
|
||||
nextHop_ = nextHop;
|
||||
setBodyParameter(std::string("NextHop"), nextHop);
|
||||
}
|
||||
|
||||
std::vector<CreateDynamicRouteRequest::std::string> CreateDynamicRouteRequest::getApplicationIds() const {
|
||||
return applicationIds_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setApplicationIds(const std::vector<CreateDynamicRouteRequest::std::string> &applicationIds) {
|
||||
applicationIds_ = applicationIds;
|
||||
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateDynamicRouteRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateDynamicRouteRequest::getApplicationType() const {
|
||||
return applicationType_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setApplicationType(const std::string &applicationType) {
|
||||
applicationType_ = applicationType;
|
||||
setBodyParameter(std::string("ApplicationType"), applicationType);
|
||||
}
|
||||
|
||||
std::string CreateDynamicRouteRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateDynamicRouteRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
51
csas/src/model/CreateDynamicRouteResult.cc
Normal file
51
csas/src/model/CreateDynamicRouteResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/CreateDynamicRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
CreateDynamicRouteResult::CreateDynamicRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDynamicRouteResult::CreateDynamicRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDynamicRouteResult::~CreateDynamicRouteResult()
|
||||
{}
|
||||
|
||||
void CreateDynamicRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DynamicRouteId"].isNull())
|
||||
dynamicRouteId_ = value["DynamicRouteId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDynamicRouteResult::getDynamicRouteId()const
|
||||
{
|
||||
return dynamicRouteId_;
|
||||
}
|
||||
|
||||
106
csas/src/model/CreatePrivateAccessApplicationRequest.cc
Normal file
106
csas/src/model/CreatePrivateAccessApplicationRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/csas/model/CreatePrivateAccessApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::CreatePrivateAccessApplicationRequest;
|
||||
|
||||
CreatePrivateAccessApplicationRequest::CreatePrivateAccessApplicationRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "CreatePrivateAccessApplication") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePrivateAccessApplicationRequest::~CreatePrivateAccessApplicationRequest() {}
|
||||
|
||||
std::vector<CreatePrivateAccessApplicationRequest::std::string> CreatePrivateAccessApplicationRequest::getAddresses() const {
|
||||
return addresses_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setAddresses(const std::vector<CreatePrivateAccessApplicationRequest::std::string> &addresses) {
|
||||
addresses_ = addresses;
|
||||
for(int dep1 = 0; dep1 != addresses.size(); dep1++) {
|
||||
setBodyParameter(std::string("Addresses") + "." + std::to_string(dep1 + 1), addresses[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationRequest::getProtocol() const {
|
||||
return protocol_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setProtocol(const std::string &protocol) {
|
||||
protocol_ = protocol;
|
||||
setBodyParameter(std::string("Protocol"), protocol);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::vector<CreatePrivateAccessApplicationRequest::std::string> CreatePrivateAccessApplicationRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setTagIds(const std::vector<CreatePrivateAccessApplicationRequest::std::string> &tagIds) {
|
||||
tagIds_ = tagIds;
|
||||
for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreatePrivateAccessApplicationRequest::PortRanges> CreatePrivateAccessApplicationRequest::getPortRanges() const {
|
||||
return portRanges_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setPortRanges(const std::vector<CreatePrivateAccessApplicationRequest::PortRanges> &portRanges) {
|
||||
portRanges_ = portRanges;
|
||||
for(int dep1 = 0; dep1 != portRanges.size(); dep1++) {
|
||||
setBodyParameter(std::string("PortRanges") + "." + std::to_string(dep1 + 1) + ".End", std::to_string(portRanges[dep1].end));
|
||||
setBodyParameter(std::string("PortRanges") + "." + std::to_string(dep1 + 1) + ".Begin", std::to_string(portRanges[dep1].begin));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessApplicationRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
51
csas/src/model/CreatePrivateAccessApplicationResult.cc
Normal file
51
csas/src/model/CreatePrivateAccessApplicationResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/CreatePrivateAccessApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
CreatePrivateAccessApplicationResult::CreatePrivateAccessApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePrivateAccessApplicationResult::CreatePrivateAccessApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePrivateAccessApplicationResult::~CreatePrivateAccessApplicationResult()
|
||||
{}
|
||||
|
||||
void CreatePrivateAccessApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ApplicationId"].isNull())
|
||||
applicationId_ = value["ApplicationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessApplicationResult::getApplicationId()const
|
||||
{
|
||||
return applicationId_;
|
||||
}
|
||||
|
||||
146
csas/src/model/CreatePrivateAccessPolicyRequest.cc
Normal file
146
csas/src/model/CreatePrivateAccessPolicyRequest.cc
Normal file
@@ -0,0 +1,146 @@
|
||||
/*
|
||||
* 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/csas/model/CreatePrivateAccessPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::CreatePrivateAccessPolicyRequest;
|
||||
|
||||
CreatePrivateAccessPolicyRequest::CreatePrivateAccessPolicyRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "CreatePrivateAccessPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePrivateAccessPolicyRequest::~CreatePrivateAccessPolicyRequest() {}
|
||||
|
||||
std::string CreatePrivateAccessPolicyRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessPolicyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::vector<CreatePrivateAccessPolicyRequest::CustomUserAttributes> CreatePrivateAccessPolicyRequest::getCustomUserAttributes() const {
|
||||
return customUserAttributes_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setCustomUserAttributes(const std::vector<CreatePrivateAccessPolicyRequest::CustomUserAttributes> &customUserAttributes) {
|
||||
customUserAttributes_ = customUserAttributes;
|
||||
for(int dep1 = 0; dep1 != customUserAttributes.size(); dep1++) {
|
||||
setBodyParameter(std::string("CustomUserAttributes") + "." + std::to_string(dep1 + 1) + ".UserGroupType", customUserAttributes[dep1].userGroupType);
|
||||
setBodyParameter(std::string("CustomUserAttributes") + "." + std::to_string(dep1 + 1) + ".IdpId", std::to_string(customUserAttributes[dep1].idpId));
|
||||
setBodyParameter(std::string("CustomUserAttributes") + "." + std::to_string(dep1 + 1) + ".Value", customUserAttributes[dep1].value);
|
||||
setBodyParameter(std::string("CustomUserAttributes") + "." + std::to_string(dep1 + 1) + ".Relation", customUserAttributes[dep1].relation);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreatePrivateAccessPolicyRequest::std::string> CreatePrivateAccessPolicyRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setTagIds(const std::vector<CreatePrivateAccessPolicyRequest::std::string> &tagIds) {
|
||||
tagIds_ = tagIds;
|
||||
for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreatePrivateAccessPolicyRequest::std::string> CreatePrivateAccessPolicyRequest::getUserGroupIds() const {
|
||||
return userGroupIds_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setUserGroupIds(const std::vector<CreatePrivateAccessPolicyRequest::std::string> &userGroupIds) {
|
||||
userGroupIds_ = userGroupIds;
|
||||
for(int dep1 = 0; dep1 != userGroupIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("UserGroupIds") + "." + std::to_string(dep1 + 1), userGroupIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessPolicyRequest::getPolicyAction() const {
|
||||
return policyAction_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setPolicyAction(const std::string &policyAction) {
|
||||
policyAction_ = policyAction;
|
||||
setBodyParameter(std::string("PolicyAction"), policyAction);
|
||||
}
|
||||
|
||||
int CreatePrivateAccessPolicyRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
std::vector<CreatePrivateAccessPolicyRequest::std::string> CreatePrivateAccessPolicyRequest::getApplicationIds() const {
|
||||
return applicationIds_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setApplicationIds(const std::vector<CreatePrivateAccessPolicyRequest::std::string> &applicationIds) {
|
||||
applicationIds_ = applicationIds;
|
||||
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessPolicyRequest::getUserGroupMode() const {
|
||||
return userGroupMode_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setUserGroupMode(const std::string &userGroupMode) {
|
||||
userGroupMode_ = userGroupMode;
|
||||
setBodyParameter(std::string("UserGroupMode"), userGroupMode);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessPolicyRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessPolicyRequest::getApplicationType() const {
|
||||
return applicationType_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setApplicationType(const std::string &applicationType) {
|
||||
applicationType_ = applicationType;
|
||||
setBodyParameter(std::string("ApplicationType"), applicationType);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessPolicyRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessPolicyRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
51
csas/src/model/CreatePrivateAccessPolicyResult.cc
Normal file
51
csas/src/model/CreatePrivateAccessPolicyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/CreatePrivateAccessPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
CreatePrivateAccessPolicyResult::CreatePrivateAccessPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePrivateAccessPolicyResult::CreatePrivateAccessPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePrivateAccessPolicyResult::~CreatePrivateAccessPolicyResult()
|
||||
{}
|
||||
|
||||
void CreatePrivateAccessPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PolicyId"].isNull())
|
||||
policyId_ = value["PolicyId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessPolicyResult::getPolicyId()const
|
||||
{
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
54
csas/src/model/CreatePrivateAccessTagRequest.cc
Normal file
54
csas/src/model/CreatePrivateAccessTagRequest.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/csas/model/CreatePrivateAccessTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::CreatePrivateAccessTagRequest;
|
||||
|
||||
CreatePrivateAccessTagRequest::CreatePrivateAccessTagRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "CreatePrivateAccessTag") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePrivateAccessTagRequest::~CreatePrivateAccessTagRequest() {}
|
||||
|
||||
std::string CreatePrivateAccessTagRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessTagRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessTagRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessTagRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessTagRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreatePrivateAccessTagRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
51
csas/src/model/CreatePrivateAccessTagResult.cc
Normal file
51
csas/src/model/CreatePrivateAccessTagResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/CreatePrivateAccessTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
CreatePrivateAccessTagResult::CreatePrivateAccessTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePrivateAccessTagResult::CreatePrivateAccessTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePrivateAccessTagResult::~CreatePrivateAccessTagResult()
|
||||
{}
|
||||
|
||||
void CreatePrivateAccessTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TagId"].isNull())
|
||||
tagId_ = value["TagId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePrivateAccessTagResult::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
68
csas/src/model/CreateUserGroupRequest.cc
Normal file
68
csas/src/model/CreateUserGroupRequest.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/csas/model/CreateUserGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::CreateUserGroupRequest;
|
||||
|
||||
CreateUserGroupRequest::CreateUserGroupRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "CreateUserGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUserGroupRequest::~CreateUserGroupRequest() {}
|
||||
|
||||
std::string CreateUserGroupRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::vector<CreateUserGroupRequest::Attributes> CreateUserGroupRequest::getAttributes() const {
|
||||
return attributes_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setAttributes(const std::vector<CreateUserGroupRequest::Attributes> &attributes) {
|
||||
attributes_ = attributes;
|
||||
for(int dep1 = 0; dep1 != attributes.size(); dep1++) {
|
||||
setBodyParameter(std::string("Attributes") + "." + std::to_string(dep1 + 1) + ".UserGroupType", attributes[dep1].userGroupType);
|
||||
setBodyParameter(std::string("Attributes") + "." + std::to_string(dep1 + 1) + ".IdpId", std::to_string(attributes[dep1].idpId));
|
||||
setBodyParameter(std::string("Attributes") + "." + std::to_string(dep1 + 1) + ".Value", attributes[dep1].value);
|
||||
setBodyParameter(std::string("Attributes") + "." + std::to_string(dep1 + 1) + ".Relation", attributes[dep1].relation);
|
||||
}
|
||||
}
|
||||
|
||||
51
csas/src/model/CreateUserGroupResult.cc
Normal file
51
csas/src/model/CreateUserGroupResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/CreateUserGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
CreateUserGroupResult::CreateUserGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserGroupResult::CreateUserGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserGroupResult::~CreateUserGroupResult()
|
||||
{}
|
||||
|
||||
void CreateUserGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["UserGroupId"].isNull())
|
||||
userGroupId_ = value["UserGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateUserGroupResult::getUserGroupId()const
|
||||
{
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
45
csas/src/model/DeleteDynamicRouteRequest.cc
Normal file
45
csas/src/model/DeleteDynamicRouteRequest.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/csas/model/DeleteDynamicRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::DeleteDynamicRouteRequest;
|
||||
|
||||
DeleteDynamicRouteRequest::DeleteDynamicRouteRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "DeleteDynamicRoute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDynamicRouteRequest::~DeleteDynamicRouteRequest() {}
|
||||
|
||||
std::string DeleteDynamicRouteRequest::getDynamicRouteId() const {
|
||||
return dynamicRouteId_;
|
||||
}
|
||||
|
||||
void DeleteDynamicRouteRequest::setDynamicRouteId(const std::string &dynamicRouteId) {
|
||||
dynamicRouteId_ = dynamicRouteId;
|
||||
setParameter(std::string("DynamicRouteId"), dynamicRouteId);
|
||||
}
|
||||
|
||||
std::string DeleteDynamicRouteRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteDynamicRouteRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
44
csas/src/model/DeleteDynamicRouteResult.cc
Normal file
44
csas/src/model/DeleteDynamicRouteResult.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/csas/model/DeleteDynamicRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
DeleteDynamicRouteResult::DeleteDynamicRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDynamicRouteResult::DeleteDynamicRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDynamicRouteResult::~DeleteDynamicRouteResult()
|
||||
{}
|
||||
|
||||
void DeleteDynamicRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
csas/src/model/DeletePrivateAccessApplicationRequest.cc
Normal file
45
csas/src/model/DeletePrivateAccessApplicationRequest.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/csas/model/DeletePrivateAccessApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::DeletePrivateAccessApplicationRequest;
|
||||
|
||||
DeletePrivateAccessApplicationRequest::DeletePrivateAccessApplicationRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "DeletePrivateAccessApplication") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrivateAccessApplicationRequest::~DeletePrivateAccessApplicationRequest() {}
|
||||
|
||||
std::string DeletePrivateAccessApplicationRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeletePrivateAccessApplicationRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DeletePrivateAccessApplicationRequest::getApplicationId() const {
|
||||
return applicationId_;
|
||||
}
|
||||
|
||||
void DeletePrivateAccessApplicationRequest::setApplicationId(const std::string &applicationId) {
|
||||
applicationId_ = applicationId;
|
||||
setBodyParameter(std::string("ApplicationId"), applicationId);
|
||||
}
|
||||
|
||||
44
csas/src/model/DeletePrivateAccessApplicationResult.cc
Normal file
44
csas/src/model/DeletePrivateAccessApplicationResult.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/csas/model/DeletePrivateAccessApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
DeletePrivateAccessApplicationResult::DeletePrivateAccessApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePrivateAccessApplicationResult::DeletePrivateAccessApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePrivateAccessApplicationResult::~DeletePrivateAccessApplicationResult()
|
||||
{}
|
||||
|
||||
void DeletePrivateAccessApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
csas/src/model/DeletePrivateAccessPolicyRequest.cc
Normal file
45
csas/src/model/DeletePrivateAccessPolicyRequest.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/csas/model/DeletePrivateAccessPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::DeletePrivateAccessPolicyRequest;
|
||||
|
||||
DeletePrivateAccessPolicyRequest::DeletePrivateAccessPolicyRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "DeletePrivateAccessPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrivateAccessPolicyRequest::~DeletePrivateAccessPolicyRequest() {}
|
||||
|
||||
std::string DeletePrivateAccessPolicyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeletePrivateAccessPolicyRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DeletePrivateAccessPolicyRequest::getPolicyId() const {
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
void DeletePrivateAccessPolicyRequest::setPolicyId(const std::string &policyId) {
|
||||
policyId_ = policyId;
|
||||
setBodyParameter(std::string("PolicyId"), policyId);
|
||||
}
|
||||
|
||||
44
csas/src/model/DeletePrivateAccessPolicyResult.cc
Normal file
44
csas/src/model/DeletePrivateAccessPolicyResult.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/csas/model/DeletePrivateAccessPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
DeletePrivateAccessPolicyResult::DeletePrivateAccessPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePrivateAccessPolicyResult::DeletePrivateAccessPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePrivateAccessPolicyResult::~DeletePrivateAccessPolicyResult()
|
||||
{}
|
||||
|
||||
void DeletePrivateAccessPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
csas/src/model/DeletePrivateAccessTagRequest.cc
Normal file
45
csas/src/model/DeletePrivateAccessTagRequest.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/csas/model/DeletePrivateAccessTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::DeletePrivateAccessTagRequest;
|
||||
|
||||
DeletePrivateAccessTagRequest::DeletePrivateAccessTagRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "DeletePrivateAccessTag") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrivateAccessTagRequest::~DeletePrivateAccessTagRequest() {}
|
||||
|
||||
std::string DeletePrivateAccessTagRequest::getTagId() const {
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void DeletePrivateAccessTagRequest::setTagId(const std::string &tagId) {
|
||||
tagId_ = tagId;
|
||||
setBodyParameter(std::string("TagId"), tagId);
|
||||
}
|
||||
|
||||
std::string DeletePrivateAccessTagRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeletePrivateAccessTagRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
44
csas/src/model/DeletePrivateAccessTagResult.cc
Normal file
44
csas/src/model/DeletePrivateAccessTagResult.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/csas/model/DeletePrivateAccessTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
DeletePrivateAccessTagResult::DeletePrivateAccessTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePrivateAccessTagResult::DeletePrivateAccessTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePrivateAccessTagResult::~DeletePrivateAccessTagResult()
|
||||
{}
|
||||
|
||||
void DeletePrivateAccessTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
csas/src/model/DeleteUserGroupRequest.cc
Normal file
45
csas/src/model/DeleteUserGroupRequest.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/csas/model/DeleteUserGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::DeleteUserGroupRequest;
|
||||
|
||||
DeleteUserGroupRequest::DeleteUserGroupRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "DeleteUserGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserGroupRequest::~DeleteUserGroupRequest() {}
|
||||
|
||||
std::string DeleteUserGroupRequest::getUserGroupId() const {
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
void DeleteUserGroupRequest::setUserGroupId(const std::string &userGroupId) {
|
||||
userGroupId_ = userGroupId;
|
||||
setBodyParameter(std::string("UserGroupId"), userGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteUserGroupRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteUserGroupRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
44
csas/src/model/DeleteUserGroupResult.cc
Normal file
44
csas/src/model/DeleteUserGroupResult.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/csas/model/DeleteUserGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
DeleteUserGroupResult::DeleteUserGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUserGroupResult::DeleteUserGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUserGroupResult::~DeleteUserGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteUserGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
56
csas/src/model/DetachApplication2ConnectorRequest.cc
Normal file
56
csas/src/model/DetachApplication2ConnectorRequest.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/csas/model/DetachApplication2ConnectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::DetachApplication2ConnectorRequest;
|
||||
|
||||
DetachApplication2ConnectorRequest::DetachApplication2ConnectorRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "DetachApplication2Connector") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachApplication2ConnectorRequest::~DetachApplication2ConnectorRequest() {}
|
||||
|
||||
std::string DetachApplication2ConnectorRequest::getConnectorId() const {
|
||||
return connectorId_;
|
||||
}
|
||||
|
||||
void DetachApplication2ConnectorRequest::setConnectorId(const std::string &connectorId) {
|
||||
connectorId_ = connectorId;
|
||||
setBodyParameter(std::string("ConnectorId"), connectorId);
|
||||
}
|
||||
|
||||
std::vector<DetachApplication2ConnectorRequest::std::string> DetachApplication2ConnectorRequest::getApplicationIds() const {
|
||||
return applicationIds_;
|
||||
}
|
||||
|
||||
void DetachApplication2ConnectorRequest::setApplicationIds(const std::vector<DetachApplication2ConnectorRequest::std::string> &applicationIds) {
|
||||
applicationIds_ = applicationIds;
|
||||
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DetachApplication2ConnectorRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DetachApplication2ConnectorRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
44
csas/src/model/DetachApplication2ConnectorResult.cc
Normal file
44
csas/src/model/DetachApplication2ConnectorResult.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/csas/model/DetachApplication2ConnectorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
DetachApplication2ConnectorResult::DetachApplication2ConnectorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachApplication2ConnectorResult::DetachApplication2ConnectorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachApplication2ConnectorResult::~DetachApplication2ConnectorResult()
|
||||
{}
|
||||
|
||||
void DetachApplication2ConnectorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
csas/src/model/GetDynamicRouteRequest.cc
Normal file
45
csas/src/model/GetDynamicRouteRequest.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/csas/model/GetDynamicRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::GetDynamicRouteRequest;
|
||||
|
||||
GetDynamicRouteRequest::GetDynamicRouteRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "GetDynamicRoute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetDynamicRouteRequest::~GetDynamicRouteRequest() {}
|
||||
|
||||
std::string GetDynamicRouteRequest::getDynamicRouteId() const {
|
||||
return dynamicRouteId_;
|
||||
}
|
||||
|
||||
void GetDynamicRouteRequest::setDynamicRouteId(const std::string &dynamicRouteId) {
|
||||
dynamicRouteId_ = dynamicRouteId;
|
||||
setParameter(std::string("DynamicRouteId"), dynamicRouteId);
|
||||
}
|
||||
|
||||
std::string GetDynamicRouteRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetDynamicRouteRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
77
csas/src/model/GetDynamicRouteResult.cc
Normal file
77
csas/src/model/GetDynamicRouteResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/csas/model/GetDynamicRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
GetDynamicRouteResult::GetDynamicRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDynamicRouteResult::GetDynamicRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDynamicRouteResult::~GetDynamicRouteResult()
|
||||
{}
|
||||
|
||||
void GetDynamicRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dynamicRouteNode = value["DynamicRoute"];
|
||||
if(!dynamicRouteNode["DynamicRouteId"].isNull())
|
||||
dynamicRoute_.dynamicRouteId = dynamicRouteNode["DynamicRouteId"].asString();
|
||||
if(!dynamicRouteNode["Name"].isNull())
|
||||
dynamicRoute_.name = dynamicRouteNode["Name"].asString();
|
||||
if(!dynamicRouteNode["Description"].isNull())
|
||||
dynamicRoute_.description = dynamicRouteNode["Description"].asString();
|
||||
if(!dynamicRouteNode["Status"].isNull())
|
||||
dynamicRoute_.status = dynamicRouteNode["Status"].asString();
|
||||
if(!dynamicRouteNode["Priority"].isNull())
|
||||
dynamicRoute_.priority = std::stoi(dynamicRouteNode["Priority"].asString());
|
||||
if(!dynamicRouteNode["ApplicationType"].isNull())
|
||||
dynamicRoute_.applicationType = dynamicRouteNode["ApplicationType"].asString();
|
||||
if(!dynamicRouteNode["DynamicRouteType"].isNull())
|
||||
dynamicRoute_.dynamicRouteType = dynamicRouteNode["DynamicRouteType"].asString();
|
||||
if(!dynamicRouteNode["NextHop"].isNull())
|
||||
dynamicRoute_.nextHop = dynamicRouteNode["NextHop"].asString();
|
||||
if(!dynamicRouteNode["CreateTime"].isNull())
|
||||
dynamicRoute_.createTime = dynamicRouteNode["CreateTime"].asString();
|
||||
auto allRegionIds = dynamicRouteNode["RegionIds"]["regionId"];
|
||||
for (auto value : allRegionIds)
|
||||
dynamicRoute_.regionIds.push_back(value.asString());
|
||||
auto allApplicationIds = dynamicRouteNode["ApplicationIds"]["applicationId"];
|
||||
for (auto value : allApplicationIds)
|
||||
dynamicRoute_.applicationIds.push_back(value.asString());
|
||||
auto allTagIds = dynamicRouteNode["TagIds"]["tagId"];
|
||||
for (auto value : allTagIds)
|
||||
dynamicRoute_.tagIds.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetDynamicRouteResult::DynamicRoute GetDynamicRouteResult::getDynamicRoute()const
|
||||
{
|
||||
return dynamicRoute_;
|
||||
}
|
||||
|
||||
45
csas/src/model/GetPrivateAccessApplicationRequest.cc
Normal file
45
csas/src/model/GetPrivateAccessApplicationRequest.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/csas/model/GetPrivateAccessApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::GetPrivateAccessApplicationRequest;
|
||||
|
||||
GetPrivateAccessApplicationRequest::GetPrivateAccessApplicationRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "GetPrivateAccessApplication") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetPrivateAccessApplicationRequest::~GetPrivateAccessApplicationRequest() {}
|
||||
|
||||
std::string GetPrivateAccessApplicationRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetPrivateAccessApplicationRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string GetPrivateAccessApplicationRequest::getApplicationId() const {
|
||||
return applicationId_;
|
||||
}
|
||||
|
||||
void GetPrivateAccessApplicationRequest::setApplicationId(const std::string &applicationId) {
|
||||
applicationId_ = applicationId;
|
||||
setParameter(std::string("ApplicationId"), applicationId);
|
||||
}
|
||||
|
||||
81
csas/src/model/GetPrivateAccessApplicationResult.cc
Normal file
81
csas/src/model/GetPrivateAccessApplicationResult.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/csas/model/GetPrivateAccessApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
GetPrivateAccessApplicationResult::GetPrivateAccessApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPrivateAccessApplicationResult::GetPrivateAccessApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPrivateAccessApplicationResult::~GetPrivateAccessApplicationResult()
|
||||
{}
|
||||
|
||||
void GetPrivateAccessApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto applicationNode = value["Application"];
|
||||
if(!applicationNode["ApplicationId"].isNull())
|
||||
application_.applicationId = applicationNode["ApplicationId"].asString();
|
||||
if(!applicationNode["Name"].isNull())
|
||||
application_.name = applicationNode["Name"].asString();
|
||||
if(!applicationNode["Description"].isNull())
|
||||
application_.description = applicationNode["Description"].asString();
|
||||
if(!applicationNode["Protocol"].isNull())
|
||||
application_.protocol = applicationNode["Protocol"].asString();
|
||||
if(!applicationNode["Status"].isNull())
|
||||
application_.status = applicationNode["Status"].asString();
|
||||
if(!applicationNode["CreateTime"].isNull())
|
||||
application_.createTime = applicationNode["CreateTime"].asString();
|
||||
auto allPortRangesNode = applicationNode["PortRanges"]["portRange"];
|
||||
for (auto applicationNodePortRangesportRange : allPortRangesNode)
|
||||
{
|
||||
Application::PortRange portRangeObject;
|
||||
if(!applicationNodePortRangesportRange["Begin"].isNull())
|
||||
portRangeObject.begin = std::stoi(applicationNodePortRangesportRange["Begin"].asString());
|
||||
if(!applicationNodePortRangesportRange["End"].isNull())
|
||||
portRangeObject.end = std::stoi(applicationNodePortRangesportRange["End"].asString());
|
||||
application_.portRanges.push_back(portRangeObject);
|
||||
}
|
||||
auto allAddresses = applicationNode["Addresses"]["address"];
|
||||
for (auto value : allAddresses)
|
||||
application_.addresses.push_back(value.asString());
|
||||
auto allTagIds = applicationNode["TagIds"]["tagId"];
|
||||
for (auto value : allTagIds)
|
||||
application_.tagIds.push_back(value.asString());
|
||||
auto allPolicyIds = applicationNode["PolicyIds"]["policyId"];
|
||||
for (auto value : allPolicyIds)
|
||||
application_.policyIds.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetPrivateAccessApplicationResult::Application GetPrivateAccessApplicationResult::getApplication()const
|
||||
{
|
||||
return application_;
|
||||
}
|
||||
|
||||
45
csas/src/model/GetPrivateAccessPolicyRequest.cc
Normal file
45
csas/src/model/GetPrivateAccessPolicyRequest.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/csas/model/GetPrivateAccessPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::GetPrivateAccessPolicyRequest;
|
||||
|
||||
GetPrivateAccessPolicyRequest::GetPrivateAccessPolicyRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "GetPrivateAccessPolicy") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetPrivateAccessPolicyRequest::~GetPrivateAccessPolicyRequest() {}
|
||||
|
||||
std::string GetPrivateAccessPolicyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetPrivateAccessPolicyRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string GetPrivateAccessPolicyRequest::getPolicyId() const {
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
void GetPrivateAccessPolicyRequest::setPolicyId(const std::string &policyId) {
|
||||
policyId_ = policyId;
|
||||
setParameter(std::string("PolicyId"), policyId);
|
||||
}
|
||||
|
||||
91
csas/src/model/GetPrivateAccessPolicyResult.cc
Normal file
91
csas/src/model/GetPrivateAccessPolicyResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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/csas/model/GetPrivateAccessPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
GetPrivateAccessPolicyResult::GetPrivateAccessPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPrivateAccessPolicyResult::GetPrivateAccessPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPrivateAccessPolicyResult::~GetPrivateAccessPolicyResult()
|
||||
{}
|
||||
|
||||
void GetPrivateAccessPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyNode = value["Policy"];
|
||||
if(!policyNode["PolicyId"].isNull())
|
||||
policy_.policyId = policyNode["PolicyId"].asString();
|
||||
if(!policyNode["Name"].isNull())
|
||||
policy_.name = policyNode["Name"].asString();
|
||||
if(!policyNode["Description"].isNull())
|
||||
policy_.description = policyNode["Description"].asString();
|
||||
if(!policyNode["PolicyAction"].isNull())
|
||||
policy_.policyAction = policyNode["PolicyAction"].asString();
|
||||
if(!policyNode["Priority"].isNull())
|
||||
policy_.priority = std::stoi(policyNode["Priority"].asString());
|
||||
if(!policyNode["Status"].isNull())
|
||||
policy_.status = policyNode["Status"].asString();
|
||||
if(!policyNode["CreateTime"].isNull())
|
||||
policy_.createTime = policyNode["CreateTime"].asString();
|
||||
if(!policyNode["UserGroupMode"].isNull())
|
||||
policy_.userGroupMode = policyNode["UserGroupMode"].asString();
|
||||
if(!policyNode["ApplicationType"].isNull())
|
||||
policy_.applicationType = policyNode["ApplicationType"].asString();
|
||||
auto allCustomUserAttributesNode = policyNode["CustomUserAttributes"]["customUserAttribute"];
|
||||
for (auto policyNodeCustomUserAttributescustomUserAttribute : allCustomUserAttributesNode)
|
||||
{
|
||||
Policy::CustomUserAttribute customUserAttributeObject;
|
||||
if(!policyNodeCustomUserAttributescustomUserAttribute["UserGroupType"].isNull())
|
||||
customUserAttributeObject.userGroupType = policyNodeCustomUserAttributescustomUserAttribute["UserGroupType"].asString();
|
||||
if(!policyNodeCustomUserAttributescustomUserAttribute["Relation"].isNull())
|
||||
customUserAttributeObject.relation = policyNodeCustomUserAttributescustomUserAttribute["Relation"].asString();
|
||||
if(!policyNodeCustomUserAttributescustomUserAttribute["Value"].isNull())
|
||||
customUserAttributeObject.value = policyNodeCustomUserAttributescustomUserAttribute["Value"].asString();
|
||||
if(!policyNodeCustomUserAttributescustomUserAttribute["IdpId"].isNull())
|
||||
customUserAttributeObject.idpId = std::stoi(policyNodeCustomUserAttributescustomUserAttribute["IdpId"].asString());
|
||||
policy_.customUserAttributes.push_back(customUserAttributeObject);
|
||||
}
|
||||
auto allUserGroupIds = policyNode["UserGroupIds"]["userGroupId"];
|
||||
for (auto value : allUserGroupIds)
|
||||
policy_.userGroupIds.push_back(value.asString());
|
||||
auto allApplicationIds = policyNode["ApplicationIds"]["applicationId"];
|
||||
for (auto value : allApplicationIds)
|
||||
policy_.applicationIds.push_back(value.asString());
|
||||
auto allTagIds = policyNode["TagIds"]["tagId"];
|
||||
for (auto value : allTagIds)
|
||||
policy_.tagIds.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetPrivateAccessPolicyResult::Policy GetPrivateAccessPolicyResult::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
45
csas/src/model/GetUserGroupRequest.cc
Normal file
45
csas/src/model/GetUserGroupRequest.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/csas/model/GetUserGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::GetUserGroupRequest;
|
||||
|
||||
GetUserGroupRequest::GetUserGroupRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "GetUserGroup") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetUserGroupRequest::~GetUserGroupRequest() {}
|
||||
|
||||
std::string GetUserGroupRequest::getUserGroupId() const {
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
void GetUserGroupRequest::setUserGroupId(const std::string &userGroupId) {
|
||||
userGroupId_ = userGroupId;
|
||||
setParameter(std::string("UserGroupId"), userGroupId);
|
||||
}
|
||||
|
||||
std::string GetUserGroupRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetUserGroupRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
72
csas/src/model/GetUserGroupResult.cc
Normal file
72
csas/src/model/GetUserGroupResult.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/csas/model/GetUserGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
GetUserGroupResult::GetUserGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserGroupResult::GetUserGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserGroupResult::~GetUserGroupResult()
|
||||
{}
|
||||
|
||||
void GetUserGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userGroupNode = value["UserGroup"];
|
||||
if(!userGroupNode["UserGroupId"].isNull())
|
||||
userGroup_.userGroupId = userGroupNode["UserGroupId"].asString();
|
||||
if(!userGroupNode["Name"].isNull())
|
||||
userGroup_.name = userGroupNode["Name"].asString();
|
||||
if(!userGroupNode["Description"].isNull())
|
||||
userGroup_.description = userGroupNode["Description"].asString();
|
||||
if(!userGroupNode["CreateTime"].isNull())
|
||||
userGroup_.createTime = userGroupNode["CreateTime"].asString();
|
||||
auto allAttributesNode = userGroupNode["Attributes"]["attribute"];
|
||||
for (auto userGroupNodeAttributesattribute : allAttributesNode)
|
||||
{
|
||||
UserGroup::Attribute attributeObject;
|
||||
if(!userGroupNodeAttributesattribute["UserGroupType"].isNull())
|
||||
attributeObject.userGroupType = userGroupNodeAttributesattribute["UserGroupType"].asString();
|
||||
if(!userGroupNodeAttributesattribute["Relation"].isNull())
|
||||
attributeObject.relation = userGroupNodeAttributesattribute["Relation"].asString();
|
||||
if(!userGroupNodeAttributesattribute["Value"].isNull())
|
||||
attributeObject.value = userGroupNodeAttributesattribute["Value"].asString();
|
||||
if(!userGroupNodeAttributesattribute["IdpId"].isNull())
|
||||
attributeObject.idpId = std::stoi(userGroupNodeAttributesattribute["IdpId"].asString());
|
||||
userGroup_.attributes.push_back(attributeObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetUserGroupResult::UserGroup GetUserGroupResult::getUserGroup()const
|
||||
{
|
||||
return userGroup_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListApplicationsForPrivateAccessPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListApplicationsForPrivateAccessPolicyRequest;
|
||||
|
||||
ListApplicationsForPrivateAccessPolicyRequest::ListApplicationsForPrivateAccessPolicyRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListApplicationsForPrivateAccessPolicy") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListApplicationsForPrivateAccessPolicyRequest::~ListApplicationsForPrivateAccessPolicyRequest() {}
|
||||
|
||||
std::vector<ListApplicationsForPrivateAccessPolicyRequest::std::string> ListApplicationsForPrivateAccessPolicyRequest::getPolicyIds() const {
|
||||
return policyIds_;
|
||||
}
|
||||
|
||||
void ListApplicationsForPrivateAccessPolicyRequest::setPolicyIds(const std::vector<ListApplicationsForPrivateAccessPolicyRequest::std::string> &policyIds) {
|
||||
policyIds_ = policyIds;
|
||||
for(int dep1 = 0; dep1 != policyIds.size(); dep1++) {
|
||||
setParameter(std::string("PolicyIds") + "." + std::to_string(dep1 + 1), policyIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListApplicationsForPrivateAccessPolicyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListApplicationsForPrivateAccessPolicyRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/csas/model/ListApplicationsForPrivateAccessPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListApplicationsForPrivateAccessPolicyResult::ListApplicationsForPrivateAccessPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListApplicationsForPrivateAccessPolicyResult::ListApplicationsForPrivateAccessPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListApplicationsForPrivateAccessPolicyResult::~ListApplicationsForPrivateAccessPolicyResult()
|
||||
{}
|
||||
|
||||
void ListApplicationsForPrivateAccessPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPolicesNode = value["Polices"]["policy"];
|
||||
for (auto valuePolicespolicy : allPolicesNode)
|
||||
{
|
||||
Policy policesObject;
|
||||
if(!valuePolicespolicy["PolicyId"].isNull())
|
||||
policesObject.policyId = valuePolicespolicy["PolicyId"].asString();
|
||||
auto allApplicationsNode = valuePolicespolicy["Applications"]["application"];
|
||||
for (auto valuePolicespolicyApplicationsapplication : allApplicationsNode)
|
||||
{
|
||||
Policy::Application applicationsObject;
|
||||
if(!valuePolicespolicyApplicationsapplication["ApplicationId"].isNull())
|
||||
applicationsObject.applicationId = valuePolicespolicyApplicationsapplication["ApplicationId"].asString();
|
||||
if(!valuePolicespolicyApplicationsapplication["Name"].isNull())
|
||||
applicationsObject.name = valuePolicespolicyApplicationsapplication["Name"].asString();
|
||||
if(!valuePolicespolicyApplicationsapplication["Description"].isNull())
|
||||
applicationsObject.description = valuePolicespolicyApplicationsapplication["Description"].asString();
|
||||
if(!valuePolicespolicyApplicationsapplication["Protocol"].isNull())
|
||||
applicationsObject.protocol = valuePolicespolicyApplicationsapplication["Protocol"].asString();
|
||||
if(!valuePolicespolicyApplicationsapplication["Status"].isNull())
|
||||
applicationsObject.status = valuePolicespolicyApplicationsapplication["Status"].asString();
|
||||
if(!valuePolicespolicyApplicationsapplication["CreateTime"].isNull())
|
||||
applicationsObject.createTime = valuePolicespolicyApplicationsapplication["CreateTime"].asString();
|
||||
auto allPortRangesNode = valuePolicespolicyApplicationsapplication["PortRanges"]["portRange"];
|
||||
for (auto valuePolicespolicyApplicationsapplicationPortRangesportRange : allPortRangesNode)
|
||||
{
|
||||
Policy::Application::PortRange portRangesObject;
|
||||
if(!valuePolicespolicyApplicationsapplicationPortRangesportRange["Begin"].isNull())
|
||||
portRangesObject.begin = std::stoi(valuePolicespolicyApplicationsapplicationPortRangesportRange["Begin"].asString());
|
||||
if(!valuePolicespolicyApplicationsapplicationPortRangesportRange["End"].isNull())
|
||||
portRangesObject.end = std::stoi(valuePolicespolicyApplicationsapplicationPortRangesportRange["End"].asString());
|
||||
applicationsObject.portRanges.push_back(portRangesObject);
|
||||
}
|
||||
auto allAddresses = value["Addresses"]["address"];
|
||||
for (auto value : allAddresses)
|
||||
applicationsObject.addresses.push_back(value.asString());
|
||||
policesObject.applications.push_back(applicationsObject);
|
||||
}
|
||||
polices_.push_back(policesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListApplicationsForPrivateAccessPolicyResult::Policy> ListApplicationsForPrivateAccessPolicyResult::getPolices()const
|
||||
{
|
||||
return polices_;
|
||||
}
|
||||
|
||||
47
csas/src/model/ListApplicationsForPrivateAccessTagRequest.cc
Normal file
47
csas/src/model/ListApplicationsForPrivateAccessTagRequest.cc
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListApplicationsForPrivateAccessTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListApplicationsForPrivateAccessTagRequest;
|
||||
|
||||
ListApplicationsForPrivateAccessTagRequest::ListApplicationsForPrivateAccessTagRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListApplicationsForPrivateAccessTag") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListApplicationsForPrivateAccessTagRequest::~ListApplicationsForPrivateAccessTagRequest() {}
|
||||
|
||||
std::vector<ListApplicationsForPrivateAccessTagRequest::std::string> ListApplicationsForPrivateAccessTagRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void ListApplicationsForPrivateAccessTagRequest::setTagIds(const std::vector<ListApplicationsForPrivateAccessTagRequest::std::string> &tagIds) {
|
||||
tagIds_ = tagIds;
|
||||
for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
|
||||
setParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListApplicationsForPrivateAccessTagRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListApplicationsForPrivateAccessTagRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
88
csas/src/model/ListApplicationsForPrivateAccessTagResult.cc
Normal file
88
csas/src/model/ListApplicationsForPrivateAccessTagResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/csas/model/ListApplicationsForPrivateAccessTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListApplicationsForPrivateAccessTagResult::ListApplicationsForPrivateAccessTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListApplicationsForPrivateAccessTagResult::ListApplicationsForPrivateAccessTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListApplicationsForPrivateAccessTagResult::~ListApplicationsForPrivateAccessTagResult()
|
||||
{}
|
||||
|
||||
void ListApplicationsForPrivateAccessTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["tag"];
|
||||
for (auto valueTagstag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagstag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagstag["TagId"].asString();
|
||||
auto allApplicationsNode = valueTagstag["Applications"]["application"];
|
||||
for (auto valueTagstagApplicationsapplication : allApplicationsNode)
|
||||
{
|
||||
Tag::Application applicationsObject;
|
||||
if(!valueTagstagApplicationsapplication["ApplicationId"].isNull())
|
||||
applicationsObject.applicationId = valueTagstagApplicationsapplication["ApplicationId"].asString();
|
||||
if(!valueTagstagApplicationsapplication["Name"].isNull())
|
||||
applicationsObject.name = valueTagstagApplicationsapplication["Name"].asString();
|
||||
if(!valueTagstagApplicationsapplication["Description"].isNull())
|
||||
applicationsObject.description = valueTagstagApplicationsapplication["Description"].asString();
|
||||
if(!valueTagstagApplicationsapplication["Protocol"].isNull())
|
||||
applicationsObject.protocol = valueTagstagApplicationsapplication["Protocol"].asString();
|
||||
if(!valueTagstagApplicationsapplication["Status"].isNull())
|
||||
applicationsObject.status = valueTagstagApplicationsapplication["Status"].asString();
|
||||
if(!valueTagstagApplicationsapplication["CreateTime"].isNull())
|
||||
applicationsObject.createTime = valueTagstagApplicationsapplication["CreateTime"].asString();
|
||||
auto allPortRangesNode = valueTagstagApplicationsapplication["PortRanges"]["portRange"];
|
||||
for (auto valueTagstagApplicationsapplicationPortRangesportRange : allPortRangesNode)
|
||||
{
|
||||
Tag::Application::PortRange portRangesObject;
|
||||
if(!valueTagstagApplicationsapplicationPortRangesportRange["Begin"].isNull())
|
||||
portRangesObject.begin = std::stoi(valueTagstagApplicationsapplicationPortRangesportRange["Begin"].asString());
|
||||
if(!valueTagstagApplicationsapplicationPortRangesportRange["End"].isNull())
|
||||
portRangesObject.end = std::stoi(valueTagstagApplicationsapplicationPortRangesportRange["End"].asString());
|
||||
applicationsObject.portRanges.push_back(portRangesObject);
|
||||
}
|
||||
auto allAddresses = value["Addresses"]["address"];
|
||||
for (auto value : allAddresses)
|
||||
applicationsObject.addresses.push_back(value.asString());
|
||||
tagsObject.applications.push_back(applicationsObject);
|
||||
}
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListApplicationsForPrivateAccessTagResult::Tag> ListApplicationsForPrivateAccessTagResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
92
csas/src/model/ListConnectorsRequest.cc
Normal file
92
csas/src/model/ListConnectorsRequest.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/csas/model/ListConnectorsRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListConnectorsRequest;
|
||||
|
||||
ListConnectorsRequest::ListConnectorsRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListConnectors") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListConnectorsRequest::~ListConnectorsRequest() {}
|
||||
|
||||
std::string ListConnectorsRequest::getSwitchStatus() const {
|
||||
return switchStatus_;
|
||||
}
|
||||
|
||||
void ListConnectorsRequest::setSwitchStatus(const std::string &switchStatus) {
|
||||
switchStatus_ = switchStatus;
|
||||
setParameter(std::string("SwitchStatus"), switchStatus);
|
||||
}
|
||||
|
||||
std::string ListConnectorsRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListConnectorsRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int ListConnectorsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListConnectorsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListConnectorsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListConnectorsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListConnectorsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListConnectorsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::vector<ListConnectorsRequest::std::string> ListConnectorsRequest::getConnectorIds() const {
|
||||
return connectorIds_;
|
||||
}
|
||||
|
||||
void ListConnectorsRequest::setConnectorIds(const std::vector<ListConnectorsRequest::std::string> &connectorIds) {
|
||||
connectorIds_ = connectorIds;
|
||||
for(int dep1 = 0; dep1 != connectorIds.size(); dep1++) {
|
||||
setParameter(std::string("ConnectorIds") + "." + std::to_string(dep1 + 1), connectorIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListConnectorsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListConnectorsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
89
csas/src/model/ListConnectorsResult.cc
Normal file
89
csas/src/model/ListConnectorsResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/csas/model/ListConnectorsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListConnectorsResult::ListConnectorsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListConnectorsResult::ListConnectorsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListConnectorsResult::~ListConnectorsResult()
|
||||
{}
|
||||
|
||||
void ListConnectorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConnectorsNode = value["Connectors"]["connector"];
|
||||
for (auto valueConnectorsconnector : allConnectorsNode)
|
||||
{
|
||||
Connector connectorsObject;
|
||||
if(!valueConnectorsconnector["ConnectorId"].isNull())
|
||||
connectorsObject.connectorId = valueConnectorsconnector["ConnectorId"].asString();
|
||||
if(!valueConnectorsconnector["Name"].isNull())
|
||||
connectorsObject.name = valueConnectorsconnector["Name"].asString();
|
||||
if(!valueConnectorsconnector["RegionId"].isNull())
|
||||
connectorsObject.regionId = valueConnectorsconnector["RegionId"].asString();
|
||||
if(!valueConnectorsconnector["SwitchStatus"].isNull())
|
||||
connectorsObject.switchStatus = valueConnectorsconnector["SwitchStatus"].asString();
|
||||
if(!valueConnectorsconnector["Status"].isNull())
|
||||
connectorsObject.status = valueConnectorsconnector["Status"].asString();
|
||||
if(!valueConnectorsconnector["CreateTime"].isNull())
|
||||
connectorsObject.createTime = valueConnectorsconnector["CreateTime"].asString();
|
||||
auto allApplicationsNode = valueConnectorsconnector["Applications"]["application"];
|
||||
for (auto valueConnectorsconnectorApplicationsapplication : allApplicationsNode)
|
||||
{
|
||||
Connector::Application applicationsObject;
|
||||
if(!valueConnectorsconnectorApplicationsapplication["ApplicationId"].isNull())
|
||||
applicationsObject.applicationId = valueConnectorsconnectorApplicationsapplication["ApplicationId"].asString();
|
||||
if(!valueConnectorsconnectorApplicationsapplication["ApplicationName"].isNull())
|
||||
applicationsObject.applicationName = valueConnectorsconnectorApplicationsapplication["ApplicationName"].asString();
|
||||
connectorsObject.applications.push_back(applicationsObject);
|
||||
}
|
||||
auto upgradeTimeNode = value["UpgradeTime"];
|
||||
if(!upgradeTimeNode["Start"].isNull())
|
||||
connectorsObject.upgradeTime.start = upgradeTimeNode["Start"].asString();
|
||||
if(!upgradeTimeNode["End"].isNull())
|
||||
connectorsObject.upgradeTime.end = upgradeTimeNode["End"].asString();
|
||||
connectors_.push_back(connectorsObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListConnectorsResult::Connector> ListConnectorsResult::getConnectors()const
|
||||
{
|
||||
return connectors_;
|
||||
}
|
||||
|
||||
int ListConnectorsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
36
csas/src/model/ListDynamicRouteRegionsRequest.cc
Normal file
36
csas/src/model/ListDynamicRouteRegionsRequest.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/csas/model/ListDynamicRouteRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListDynamicRouteRegionsRequest;
|
||||
|
||||
ListDynamicRouteRegionsRequest::ListDynamicRouteRegionsRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListDynamicRouteRegions") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListDynamicRouteRegionsRequest::~ListDynamicRouteRegionsRequest() {}
|
||||
|
||||
std::string ListDynamicRouteRegionsRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListDynamicRouteRegionsRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
59
csas/src/model/ListDynamicRouteRegionsResult.cc
Normal file
59
csas/src/model/ListDynamicRouteRegionsResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/ListDynamicRouteRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListDynamicRouteRegionsResult::ListDynamicRouteRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDynamicRouteRegionsResult::ListDynamicRouteRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDynamicRouteRegionsResult::~ListDynamicRouteRegionsResult()
|
||||
{}
|
||||
|
||||
void ListDynamicRouteRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["region"];
|
||||
for (const auto &item : allRegions)
|
||||
regions_.push_back(item.asString());
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListDynamicRouteRegionsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListDynamicRouteRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
121
csas/src/model/ListDynamicRoutesRequest.cc
Normal file
121
csas/src/model/ListDynamicRoutesRequest.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* 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/csas/model/ListDynamicRoutesRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListDynamicRoutesRequest;
|
||||
|
||||
ListDynamicRoutesRequest::ListDynamicRoutesRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListDynamicRoutes") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListDynamicRoutesRequest::~ListDynamicRoutesRequest() {}
|
||||
|
||||
std::string ListDynamicRoutesRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int ListDynamicRoutesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListDynamicRoutesRequest::getApplicationId() const {
|
||||
return applicationId_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setApplicationId(const std::string &applicationId) {
|
||||
applicationId_ = applicationId;
|
||||
setParameter(std::string("ApplicationId"), applicationId);
|
||||
}
|
||||
|
||||
std::vector<ListDynamicRoutesRequest::std::string> ListDynamicRoutesRequest::getDynamicRouteIds() const {
|
||||
return dynamicRouteIds_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setDynamicRouteIds(const std::vector<ListDynamicRoutesRequest::std::string> &dynamicRouteIds) {
|
||||
dynamicRouteIds_ = dynamicRouteIds;
|
||||
for(int dep1 = 0; dep1 != dynamicRouteIds.size(); dep1++) {
|
||||
setParameter(std::string("DynamicRouteIds") + "." + std::to_string(dep1 + 1), dynamicRouteIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListDynamicRoutesRequest::getTagId() const {
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setTagId(const std::string &tagId) {
|
||||
tagId_ = tagId;
|
||||
setParameter(std::string("TagId"), tagId);
|
||||
}
|
||||
|
||||
int ListDynamicRoutesRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::vector<ListDynamicRoutesRequest::std::string> ListDynamicRoutesRequest::getRegionIds() const {
|
||||
return regionIds_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setRegionIds(const std::vector<ListDynamicRoutesRequest::std::string> ®ionIds) {
|
||||
regionIds_ = regionIds;
|
||||
for(int dep1 = 0; dep1 != regionIds.size(); dep1++) {
|
||||
setParameter(std::string("RegionIds") + "." + std::to_string(dep1 + 1), regionIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListDynamicRoutesRequest::getNextHop() const {
|
||||
return nextHop_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setNextHop(const std::string &nextHop) {
|
||||
nextHop_ = nextHop;
|
||||
setParameter(std::string("NextHop"), nextHop);
|
||||
}
|
||||
|
||||
std::string ListDynamicRoutesRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListDynamicRoutesRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListDynamicRoutesRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
89
csas/src/model/ListDynamicRoutesResult.cc
Normal file
89
csas/src/model/ListDynamicRoutesResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/csas/model/ListDynamicRoutesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListDynamicRoutesResult::ListDynamicRoutesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDynamicRoutesResult::ListDynamicRoutesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDynamicRoutesResult::~ListDynamicRoutesResult()
|
||||
{}
|
||||
|
||||
void ListDynamicRoutesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDynamicRoutesNode = value["DynamicRoutes"]["dynamicRoute"];
|
||||
for (auto valueDynamicRoutesdynamicRoute : allDynamicRoutesNode)
|
||||
{
|
||||
DynamicRoute dynamicRoutesObject;
|
||||
if(!valueDynamicRoutesdynamicRoute["DynamicRouteId"].isNull())
|
||||
dynamicRoutesObject.dynamicRouteId = valueDynamicRoutesdynamicRoute["DynamicRouteId"].asString();
|
||||
if(!valueDynamicRoutesdynamicRoute["Name"].isNull())
|
||||
dynamicRoutesObject.name = valueDynamicRoutesdynamicRoute["Name"].asString();
|
||||
if(!valueDynamicRoutesdynamicRoute["Description"].isNull())
|
||||
dynamicRoutesObject.description = valueDynamicRoutesdynamicRoute["Description"].asString();
|
||||
if(!valueDynamicRoutesdynamicRoute["Status"].isNull())
|
||||
dynamicRoutesObject.status = valueDynamicRoutesdynamicRoute["Status"].asString();
|
||||
if(!valueDynamicRoutesdynamicRoute["Priority"].isNull())
|
||||
dynamicRoutesObject.priority = std::stoi(valueDynamicRoutesdynamicRoute["Priority"].asString());
|
||||
if(!valueDynamicRoutesdynamicRoute["ApplicationType"].isNull())
|
||||
dynamicRoutesObject.applicationType = valueDynamicRoutesdynamicRoute["ApplicationType"].asString();
|
||||
if(!valueDynamicRoutesdynamicRoute["DynamicRouteType"].isNull())
|
||||
dynamicRoutesObject.dynamicRouteType = valueDynamicRoutesdynamicRoute["DynamicRouteType"].asString();
|
||||
if(!valueDynamicRoutesdynamicRoute["NextHop"].isNull())
|
||||
dynamicRoutesObject.nextHop = valueDynamicRoutesdynamicRoute["NextHop"].asString();
|
||||
if(!valueDynamicRoutesdynamicRoute["CreateTime"].isNull())
|
||||
dynamicRoutesObject.createTime = valueDynamicRoutesdynamicRoute["CreateTime"].asString();
|
||||
auto allRegionIds = value["RegionIds"]["regionId"];
|
||||
for (auto value : allRegionIds)
|
||||
dynamicRoutesObject.regionIds.push_back(value.asString());
|
||||
auto allApplicationIds = value["ApplicationIds"]["applicationId"];
|
||||
for (auto value : allApplicationIds)
|
||||
dynamicRoutesObject.applicationIds.push_back(value.asString());
|
||||
auto allTagIds = value["TagIds"]["tagId"];
|
||||
for (auto value : allTagIds)
|
||||
dynamicRoutesObject.tagIds.push_back(value.asString());
|
||||
dynamicRoutes_.push_back(dynamicRoutesObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListDynamicRoutesResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
std::vector<ListDynamicRoutesResult::DynamicRoute> ListDynamicRoutesResult::getDynamicRoutes()const
|
||||
{
|
||||
return dynamicRoutes_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListPolicesForPrivateAccessApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListPolicesForPrivateAccessApplicationRequest;
|
||||
|
||||
ListPolicesForPrivateAccessApplicationRequest::ListPolicesForPrivateAccessApplicationRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListPolicesForPrivateAccessApplication") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPolicesForPrivateAccessApplicationRequest::~ListPolicesForPrivateAccessApplicationRequest() {}
|
||||
|
||||
std::vector<ListPolicesForPrivateAccessApplicationRequest::std::string> ListPolicesForPrivateAccessApplicationRequest::getApplicationIds() const {
|
||||
return applicationIds_;
|
||||
}
|
||||
|
||||
void ListPolicesForPrivateAccessApplicationRequest::setApplicationIds(const std::vector<ListPolicesForPrivateAccessApplicationRequest::std::string> &applicationIds) {
|
||||
applicationIds_ = applicationIds;
|
||||
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
|
||||
setParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPolicesForPrivateAccessApplicationRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListPolicesForPrivateAccessApplicationRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/csas/model/ListPolicesForPrivateAccessApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListPolicesForPrivateAccessApplicationResult::ListPolicesForPrivateAccessApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPolicesForPrivateAccessApplicationResult::ListPolicesForPrivateAccessApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPolicesForPrivateAccessApplicationResult::~ListPolicesForPrivateAccessApplicationResult()
|
||||
{}
|
||||
|
||||
void ListPolicesForPrivateAccessApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApplicationsNode = value["Applications"]["application"];
|
||||
for (auto valueApplicationsapplication : allApplicationsNode)
|
||||
{
|
||||
Application applicationsObject;
|
||||
if(!valueApplicationsapplication["ApplicationId"].isNull())
|
||||
applicationsObject.applicationId = valueApplicationsapplication["ApplicationId"].asString();
|
||||
auto allPoliciesNode = valueApplicationsapplication["Policies"]["policy"];
|
||||
for (auto valueApplicationsapplicationPoliciespolicy : allPoliciesNode)
|
||||
{
|
||||
Application::Policy policiesObject;
|
||||
if(!valueApplicationsapplicationPoliciespolicy["PolicyId"].isNull())
|
||||
policiesObject.policyId = valueApplicationsapplicationPoliciespolicy["PolicyId"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicy["Name"].isNull())
|
||||
policiesObject.name = valueApplicationsapplicationPoliciespolicy["Name"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicy["Description"].isNull())
|
||||
policiesObject.description = valueApplicationsapplicationPoliciespolicy["Description"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicy["PolicyAction"].isNull())
|
||||
policiesObject.policyAction = valueApplicationsapplicationPoliciespolicy["PolicyAction"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicy["Priority"].isNull())
|
||||
policiesObject.priority = std::stoi(valueApplicationsapplicationPoliciespolicy["Priority"].asString());
|
||||
if(!valueApplicationsapplicationPoliciespolicy["Status"].isNull())
|
||||
policiesObject.status = valueApplicationsapplicationPoliciespolicy["Status"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicy["ApplicationType"].isNull())
|
||||
policiesObject.applicationType = valueApplicationsapplicationPoliciespolicy["ApplicationType"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicy["UserGroupType"].isNull())
|
||||
policiesObject.userGroupType = valueApplicationsapplicationPoliciespolicy["UserGroupType"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicy["CreateTime"].isNull())
|
||||
policiesObject.createTime = valueApplicationsapplicationPoliciespolicy["CreateTime"].asString();
|
||||
auto allCustomUserAttributesNode = valueApplicationsapplicationPoliciespolicy["CustomUserAttributes"]["customUserAttribute"];
|
||||
for (auto valueApplicationsapplicationPoliciespolicyCustomUserAttributescustomUserAttribute : allCustomUserAttributesNode)
|
||||
{
|
||||
Application::Policy::CustomUserAttribute customUserAttributesObject;
|
||||
if(!valueApplicationsapplicationPoliciespolicyCustomUserAttributescustomUserAttribute["UserGroupType"].isNull())
|
||||
customUserAttributesObject.userGroupType = valueApplicationsapplicationPoliciespolicyCustomUserAttributescustomUserAttribute["UserGroupType"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicyCustomUserAttributescustomUserAttribute["Relation"].isNull())
|
||||
customUserAttributesObject.relation = valueApplicationsapplicationPoliciespolicyCustomUserAttributescustomUserAttribute["Relation"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicyCustomUserAttributescustomUserAttribute["Value"].isNull())
|
||||
customUserAttributesObject.value = valueApplicationsapplicationPoliciespolicyCustomUserAttributescustomUserAttribute["Value"].asString();
|
||||
if(!valueApplicationsapplicationPoliciespolicyCustomUserAttributescustomUserAttribute["IdpId"].isNull())
|
||||
customUserAttributesObject.idpId = std::stoi(valueApplicationsapplicationPoliciespolicyCustomUserAttributescustomUserAttribute["IdpId"].asString());
|
||||
policiesObject.customUserAttributes.push_back(customUserAttributesObject);
|
||||
}
|
||||
applicationsObject.policies.push_back(policiesObject);
|
||||
}
|
||||
applications_.push_back(applicationsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPolicesForPrivateAccessApplicationResult::Application> ListPolicesForPrivateAccessApplicationResult::getApplications()const
|
||||
{
|
||||
return applications_;
|
||||
}
|
||||
|
||||
47
csas/src/model/ListPolicesForPrivateAccessTagRequest.cc
Normal file
47
csas/src/model/ListPolicesForPrivateAccessTagRequest.cc
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListPolicesForPrivateAccessTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListPolicesForPrivateAccessTagRequest;
|
||||
|
||||
ListPolicesForPrivateAccessTagRequest::ListPolicesForPrivateAccessTagRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListPolicesForPrivateAccessTag") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPolicesForPrivateAccessTagRequest::~ListPolicesForPrivateAccessTagRequest() {}
|
||||
|
||||
std::vector<ListPolicesForPrivateAccessTagRequest::std::string> ListPolicesForPrivateAccessTagRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void ListPolicesForPrivateAccessTagRequest::setTagIds(const std::vector<ListPolicesForPrivateAccessTagRequest::std::string> &tagIds) {
|
||||
tagIds_ = tagIds;
|
||||
for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
|
||||
setParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPolicesForPrivateAccessTagRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListPolicesForPrivateAccessTagRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
95
csas/src/model/ListPolicesForPrivateAccessTagResult.cc
Normal file
95
csas/src/model/ListPolicesForPrivateAccessTagResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/csas/model/ListPolicesForPrivateAccessTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListPolicesForPrivateAccessTagResult::ListPolicesForPrivateAccessTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPolicesForPrivateAccessTagResult::ListPolicesForPrivateAccessTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPolicesForPrivateAccessTagResult::~ListPolicesForPrivateAccessTagResult()
|
||||
{}
|
||||
|
||||
void ListPolicesForPrivateAccessTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["tag"];
|
||||
for (auto valueTagstag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagstag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagstag["TagId"].asString();
|
||||
auto allPolicesNode = valueTagstag["Polices"]["policy"];
|
||||
for (auto valueTagstagPolicespolicy : allPolicesNode)
|
||||
{
|
||||
Tag::Policy policesObject;
|
||||
if(!valueTagstagPolicespolicy["PolicyId"].isNull())
|
||||
policesObject.policyId = valueTagstagPolicespolicy["PolicyId"].asString();
|
||||
if(!valueTagstagPolicespolicy["Name"].isNull())
|
||||
policesObject.name = valueTagstagPolicespolicy["Name"].asString();
|
||||
if(!valueTagstagPolicespolicy["Description"].isNull())
|
||||
policesObject.description = valueTagstagPolicespolicy["Description"].asString();
|
||||
if(!valueTagstagPolicespolicy["PolicyAction"].isNull())
|
||||
policesObject.policyAction = valueTagstagPolicespolicy["PolicyAction"].asString();
|
||||
if(!valueTagstagPolicespolicy["Priority"].isNull())
|
||||
policesObject.priority = std::stoi(valueTagstagPolicespolicy["Priority"].asString());
|
||||
if(!valueTagstagPolicespolicy["Status"].isNull())
|
||||
policesObject.status = valueTagstagPolicespolicy["Status"].asString();
|
||||
if(!valueTagstagPolicespolicy["ApplicationType"].isNull())
|
||||
policesObject.applicationType = valueTagstagPolicespolicy["ApplicationType"].asString();
|
||||
if(!valueTagstagPolicespolicy["UserGroupType"].isNull())
|
||||
policesObject.userGroupType = valueTagstagPolicespolicy["UserGroupType"].asString();
|
||||
if(!valueTagstagPolicespolicy["CreateTime"].isNull())
|
||||
policesObject.createTime = valueTagstagPolicespolicy["CreateTime"].asString();
|
||||
auto allCustomUserAttributesNode = valueTagstagPolicespolicy["CustomUserAttributes"]["customUserAttribute"];
|
||||
for (auto valueTagstagPolicespolicyCustomUserAttributescustomUserAttribute : allCustomUserAttributesNode)
|
||||
{
|
||||
Tag::Policy::CustomUserAttribute customUserAttributesObject;
|
||||
if(!valueTagstagPolicespolicyCustomUserAttributescustomUserAttribute["UserGroupType"].isNull())
|
||||
customUserAttributesObject.userGroupType = valueTagstagPolicespolicyCustomUserAttributescustomUserAttribute["UserGroupType"].asString();
|
||||
if(!valueTagstagPolicespolicyCustomUserAttributescustomUserAttribute["Relation"].isNull())
|
||||
customUserAttributesObject.relation = valueTagstagPolicespolicyCustomUserAttributescustomUserAttribute["Relation"].asString();
|
||||
if(!valueTagstagPolicespolicyCustomUserAttributescustomUserAttribute["Value"].isNull())
|
||||
customUserAttributesObject.value = valueTagstagPolicespolicyCustomUserAttributescustomUserAttribute["Value"].asString();
|
||||
if(!valueTagstagPolicespolicyCustomUserAttributescustomUserAttribute["IdpId"].isNull())
|
||||
customUserAttributesObject.idpId = std::stoi(valueTagstagPolicespolicyCustomUserAttributescustomUserAttribute["IdpId"].asString());
|
||||
policesObject.customUserAttributes.push_back(customUserAttributesObject);
|
||||
}
|
||||
tagsObject.polices.push_back(policesObject);
|
||||
}
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPolicesForPrivateAccessTagResult::Tag> ListPolicesForPrivateAccessTagResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
47
csas/src/model/ListPolicesForUserGroupRequest.cc
Normal file
47
csas/src/model/ListPolicesForUserGroupRequest.cc
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListPolicesForUserGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListPolicesForUserGroupRequest;
|
||||
|
||||
ListPolicesForUserGroupRequest::ListPolicesForUserGroupRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListPolicesForUserGroup") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPolicesForUserGroupRequest::~ListPolicesForUserGroupRequest() {}
|
||||
|
||||
std::vector<ListPolicesForUserGroupRequest::std::string> ListPolicesForUserGroupRequest::getUserGroupIds() const {
|
||||
return userGroupIds_;
|
||||
}
|
||||
|
||||
void ListPolicesForUserGroupRequest::setUserGroupIds(const std::vector<ListPolicesForUserGroupRequest::std::string> &userGroupIds) {
|
||||
userGroupIds_ = userGroupIds;
|
||||
for(int dep1 = 0; dep1 != userGroupIds.size(); dep1++) {
|
||||
setParameter(std::string("UserGroupIds") + "." + std::to_string(dep1 + 1), userGroupIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPolicesForUserGroupRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListPolicesForUserGroupRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
69
csas/src/model/ListPolicesForUserGroupResult.cc
Normal file
69
csas/src/model/ListPolicesForUserGroupResult.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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/csas/model/ListPolicesForUserGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListPolicesForUserGroupResult::ListPolicesForUserGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPolicesForUserGroupResult::ListPolicesForUserGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPolicesForUserGroupResult::~ListPolicesForUserGroupResult()
|
||||
{}
|
||||
|
||||
void ListPolicesForUserGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserGroupsNode = value["UserGroups"]["userGroup"];
|
||||
for (auto valueUserGroupsuserGroup : allUserGroupsNode)
|
||||
{
|
||||
UserGroup userGroupsObject;
|
||||
if(!valueUserGroupsuserGroup["UserGroupId"].isNull())
|
||||
userGroupsObject.userGroupId = valueUserGroupsuserGroup["UserGroupId"].asString();
|
||||
auto allPolicesNode = valueUserGroupsuserGroup["Polices"]["policy"];
|
||||
for (auto valueUserGroupsuserGroupPolicespolicy : allPolicesNode)
|
||||
{
|
||||
UserGroup::Policy policesObject;
|
||||
if(!valueUserGroupsuserGroupPolicespolicy["PolicyId"].isNull())
|
||||
policesObject.policyId = valueUserGroupsuserGroupPolicespolicy["PolicyId"].asString();
|
||||
if(!valueUserGroupsuserGroupPolicespolicy["PolicyType"].isNull())
|
||||
policesObject.policyType = valueUserGroupsuserGroupPolicespolicy["PolicyType"].asString();
|
||||
if(!valueUserGroupsuserGroupPolicespolicy["Name"].isNull())
|
||||
policesObject.name = valueUserGroupsuserGroupPolicespolicy["Name"].asString();
|
||||
userGroupsObject.polices.push_back(policesObject);
|
||||
}
|
||||
userGroups_.push_back(userGroupsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPolicesForUserGroupResult::UserGroup> ListPolicesForUserGroupResult::getUserGroups()const
|
||||
{
|
||||
return userGroups_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListPrivateAccessApplicationsForDynamicRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListPrivateAccessApplicationsForDynamicRouteRequest;
|
||||
|
||||
ListPrivateAccessApplicationsForDynamicRouteRequest::ListPrivateAccessApplicationsForDynamicRouteRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListPrivateAccessApplicationsForDynamicRoute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPrivateAccessApplicationsForDynamicRouteRequest::~ListPrivateAccessApplicationsForDynamicRouteRequest() {}
|
||||
|
||||
std::vector<ListPrivateAccessApplicationsForDynamicRouteRequest::std::string> ListPrivateAccessApplicationsForDynamicRouteRequest::getDynamicRouteIds() const {
|
||||
return dynamicRouteIds_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsForDynamicRouteRequest::setDynamicRouteIds(const std::vector<ListPrivateAccessApplicationsForDynamicRouteRequest::std::string> &dynamicRouteIds) {
|
||||
dynamicRouteIds_ = dynamicRouteIds;
|
||||
for(int dep1 = 0; dep1 != dynamicRouteIds.size(); dep1++) {
|
||||
setParameter(std::string("DynamicRouteIds") + "." + std::to_string(dep1 + 1), dynamicRouteIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessApplicationsForDynamicRouteRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsForDynamicRouteRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/csas/model/ListPrivateAccessApplicationsForDynamicRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListPrivateAccessApplicationsForDynamicRouteResult::ListPrivateAccessApplicationsForDynamicRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPrivateAccessApplicationsForDynamicRouteResult::ListPrivateAccessApplicationsForDynamicRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPrivateAccessApplicationsForDynamicRouteResult::~ListPrivateAccessApplicationsForDynamicRouteResult()
|
||||
{}
|
||||
|
||||
void ListPrivateAccessApplicationsForDynamicRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDynamicRoutesNode = value["DynamicRoutes"]["dynamicRoute"];
|
||||
for (auto valueDynamicRoutesdynamicRoute : allDynamicRoutesNode)
|
||||
{
|
||||
DynamicRoute dynamicRoutesObject;
|
||||
if(!valueDynamicRoutesdynamicRoute["DynamicRouteId"].isNull())
|
||||
dynamicRoutesObject.dynamicRouteId = valueDynamicRoutesdynamicRoute["DynamicRouteId"].asString();
|
||||
auto allApplicationsNode = valueDynamicRoutesdynamicRoute["Applications"]["application"];
|
||||
for (auto valueDynamicRoutesdynamicRouteApplicationsapplication : allApplicationsNode)
|
||||
{
|
||||
DynamicRoute::Application applicationsObject;
|
||||
if(!valueDynamicRoutesdynamicRouteApplicationsapplication["ApplicationId"].isNull())
|
||||
applicationsObject.applicationId = valueDynamicRoutesdynamicRouteApplicationsapplication["ApplicationId"].asString();
|
||||
if(!valueDynamicRoutesdynamicRouteApplicationsapplication["Name"].isNull())
|
||||
applicationsObject.name = valueDynamicRoutesdynamicRouteApplicationsapplication["Name"].asString();
|
||||
if(!valueDynamicRoutesdynamicRouteApplicationsapplication["Description"].isNull())
|
||||
applicationsObject.description = valueDynamicRoutesdynamicRouteApplicationsapplication["Description"].asString();
|
||||
if(!valueDynamicRoutesdynamicRouteApplicationsapplication["Protocol"].isNull())
|
||||
applicationsObject.protocol = valueDynamicRoutesdynamicRouteApplicationsapplication["Protocol"].asString();
|
||||
if(!valueDynamicRoutesdynamicRouteApplicationsapplication["Status"].isNull())
|
||||
applicationsObject.status = valueDynamicRoutesdynamicRouteApplicationsapplication["Status"].asString();
|
||||
if(!valueDynamicRoutesdynamicRouteApplicationsapplication["CreateTime"].isNull())
|
||||
applicationsObject.createTime = valueDynamicRoutesdynamicRouteApplicationsapplication["CreateTime"].asString();
|
||||
auto allPortRangesNode = valueDynamicRoutesdynamicRouteApplicationsapplication["PortRanges"]["portRange"];
|
||||
for (auto valueDynamicRoutesdynamicRouteApplicationsapplicationPortRangesportRange : allPortRangesNode)
|
||||
{
|
||||
DynamicRoute::Application::PortRange portRangesObject;
|
||||
if(!valueDynamicRoutesdynamicRouteApplicationsapplicationPortRangesportRange["Begin"].isNull())
|
||||
portRangesObject.begin = std::stoi(valueDynamicRoutesdynamicRouteApplicationsapplicationPortRangesportRange["Begin"].asString());
|
||||
if(!valueDynamicRoutesdynamicRouteApplicationsapplicationPortRangesportRange["End"].isNull())
|
||||
portRangesObject.end = std::stoi(valueDynamicRoutesdynamicRouteApplicationsapplicationPortRangesportRange["End"].asString());
|
||||
applicationsObject.portRanges.push_back(portRangesObject);
|
||||
}
|
||||
auto allAddresses = value["Addresses"]["address"];
|
||||
for (auto value : allAddresses)
|
||||
applicationsObject.addresses.push_back(value.asString());
|
||||
dynamicRoutesObject.applications.push_back(applicationsObject);
|
||||
}
|
||||
dynamicRoutes_.push_back(dynamicRoutesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPrivateAccessApplicationsForDynamicRouteResult::DynamicRoute> ListPrivateAccessApplicationsForDynamicRouteResult::getDynamicRoutes()const
|
||||
{
|
||||
return dynamicRoutes_;
|
||||
}
|
||||
|
||||
110
csas/src/model/ListPrivateAccessApplicationsRequest.cc
Normal file
110
csas/src/model/ListPrivateAccessApplicationsRequest.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* 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/csas/model/ListPrivateAccessApplicationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListPrivateAccessApplicationsRequest;
|
||||
|
||||
ListPrivateAccessApplicationsRequest::ListPrivateAccessApplicationsRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListPrivateAccessApplications") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPrivateAccessApplicationsRequest::~ListPrivateAccessApplicationsRequest() {}
|
||||
|
||||
std::string ListPrivateAccessApplicationsRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessApplicationsRequest::getPolicyId() const {
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setPolicyId(const std::string &policyId) {
|
||||
policyId_ = policyId;
|
||||
setParameter(std::string("PolicyId"), policyId);
|
||||
}
|
||||
|
||||
int ListPrivateAccessApplicationsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessApplicationsRequest::getAddress() const {
|
||||
return address_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setAddress(const std::string &address) {
|
||||
address_ = address;
|
||||
setParameter(std::string("Address"), address);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessApplicationsRequest::getTagId() const {
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setTagId(const std::string &tagId) {
|
||||
tagId_ = tagId;
|
||||
setParameter(std::string("TagId"), tagId);
|
||||
}
|
||||
|
||||
int ListPrivateAccessApplicationsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::vector<ListPrivateAccessApplicationsRequest::std::string> ListPrivateAccessApplicationsRequest::getApplicationIds() const {
|
||||
return applicationIds_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setApplicationIds(const std::vector<ListPrivateAccessApplicationsRequest::std::string> &applicationIds) {
|
||||
applicationIds_ = applicationIds;
|
||||
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
|
||||
setParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessApplicationsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessApplicationsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessApplicationsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
93
csas/src/model/ListPrivateAccessApplicationsResult.cc
Normal file
93
csas/src/model/ListPrivateAccessApplicationsResult.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/csas/model/ListPrivateAccessApplicationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListPrivateAccessApplicationsResult::ListPrivateAccessApplicationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPrivateAccessApplicationsResult::ListPrivateAccessApplicationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPrivateAccessApplicationsResult::~ListPrivateAccessApplicationsResult()
|
||||
{}
|
||||
|
||||
void ListPrivateAccessApplicationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApplicationsNode = value["Applications"]["application"];
|
||||
for (auto valueApplicationsapplication : allApplicationsNode)
|
||||
{
|
||||
Application applicationsObject;
|
||||
if(!valueApplicationsapplication["ApplicationId"].isNull())
|
||||
applicationsObject.applicationId = valueApplicationsapplication["ApplicationId"].asString();
|
||||
if(!valueApplicationsapplication["Name"].isNull())
|
||||
applicationsObject.name = valueApplicationsapplication["Name"].asString();
|
||||
if(!valueApplicationsapplication["Description"].isNull())
|
||||
applicationsObject.description = valueApplicationsapplication["Description"].asString();
|
||||
if(!valueApplicationsapplication["Protocol"].isNull())
|
||||
applicationsObject.protocol = valueApplicationsapplication["Protocol"].asString();
|
||||
if(!valueApplicationsapplication["Status"].isNull())
|
||||
applicationsObject.status = valueApplicationsapplication["Status"].asString();
|
||||
if(!valueApplicationsapplication["CreateTime"].isNull())
|
||||
applicationsObject.createTime = valueApplicationsapplication["CreateTime"].asString();
|
||||
auto allPortRangesNode = valueApplicationsapplication["PortRanges"]["portRange"];
|
||||
for (auto valueApplicationsapplicationPortRangesportRange : allPortRangesNode)
|
||||
{
|
||||
Application::PortRange portRangesObject;
|
||||
if(!valueApplicationsapplicationPortRangesportRange["Begin"].isNull())
|
||||
portRangesObject.begin = std::stoi(valueApplicationsapplicationPortRangesportRange["Begin"].asString());
|
||||
if(!valueApplicationsapplicationPortRangesportRange["End"].isNull())
|
||||
portRangesObject.end = std::stoi(valueApplicationsapplicationPortRangesportRange["End"].asString());
|
||||
applicationsObject.portRanges.push_back(portRangesObject);
|
||||
}
|
||||
auto allAddresses = value["Addresses"]["address"];
|
||||
for (auto value : allAddresses)
|
||||
applicationsObject.addresses.push_back(value.asString());
|
||||
auto allTagIds = value["TagIds"]["tagId"];
|
||||
for (auto value : allTagIds)
|
||||
applicationsObject.tagIds.push_back(value.asString());
|
||||
auto allPolicyIds = value["PolicyIds"]["policyId"];
|
||||
for (auto value : allPolicyIds)
|
||||
applicationsObject.policyIds.push_back(value.asString());
|
||||
applications_.push_back(applicationsObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListPrivateAccessApplicationsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
std::vector<ListPrivateAccessApplicationsResult::Application> ListPrivateAccessApplicationsResult::getApplications()const
|
||||
{
|
||||
return applications_;
|
||||
}
|
||||
|
||||
119
csas/src/model/ListPrivateAccessPolicesRequest.cc
Normal file
119
csas/src/model/ListPrivateAccessPolicesRequest.cc
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* 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/csas/model/ListPrivateAccessPolicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListPrivateAccessPolicesRequest;
|
||||
|
||||
ListPrivateAccessPolicesRequest::ListPrivateAccessPolicesRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListPrivateAccessPolices") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPrivateAccessPolicesRequest::~ListPrivateAccessPolicesRequest() {}
|
||||
|
||||
std::vector<ListPrivateAccessPolicesRequest::std::string> ListPrivateAccessPolicesRequest::getPolicyIds() const {
|
||||
return policyIds_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setPolicyIds(const std::vector<ListPrivateAccessPolicesRequest::std::string> &policyIds) {
|
||||
policyIds_ = policyIds;
|
||||
for(int dep1 = 0; dep1 != policyIds.size(); dep1++) {
|
||||
setParameter(std::string("PolicyIds") + "." + std::to_string(dep1 + 1), policyIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int ListPrivateAccessPolicesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getApplicationId() const {
|
||||
return applicationId_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setApplicationId(const std::string &applicationId) {
|
||||
applicationId_ = applicationId;
|
||||
setParameter(std::string("ApplicationId"), applicationId);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getTagId() const {
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setTagId(const std::string &tagId) {
|
||||
tagId_ = tagId;
|
||||
setParameter(std::string("TagId"), tagId);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getUserGroupId() const {
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setUserGroupId(const std::string &userGroupId) {
|
||||
userGroupId_ = userGroupId;
|
||||
setParameter(std::string("UserGroupId"), userGroupId);
|
||||
}
|
||||
|
||||
int ListPrivateAccessPolicesRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getPolicyAction() const {
|
||||
return policyAction_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setPolicyAction(const std::string &policyAction) {
|
||||
policyAction_ = policyAction;
|
||||
setParameter(std::string("PolicyAction"), policyAction);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessPolicesRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessPolicesRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
103
csas/src/model/ListPrivateAccessPolicesResult.cc
Normal file
103
csas/src/model/ListPrivateAccessPolicesResult.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/csas/model/ListPrivateAccessPolicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListPrivateAccessPolicesResult::ListPrivateAccessPolicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPrivateAccessPolicesResult::ListPrivateAccessPolicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPrivateAccessPolicesResult::~ListPrivateAccessPolicesResult()
|
||||
{}
|
||||
|
||||
void ListPrivateAccessPolicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPolicesNode = value["Polices"]["policy"];
|
||||
for (auto valuePolicespolicy : allPolicesNode)
|
||||
{
|
||||
Policy policesObject;
|
||||
if(!valuePolicespolicy["PolicyId"].isNull())
|
||||
policesObject.policyId = valuePolicespolicy["PolicyId"].asString();
|
||||
if(!valuePolicespolicy["Name"].isNull())
|
||||
policesObject.name = valuePolicespolicy["Name"].asString();
|
||||
if(!valuePolicespolicy["Description"].isNull())
|
||||
policesObject.description = valuePolicespolicy["Description"].asString();
|
||||
if(!valuePolicespolicy["PolicyAction"].isNull())
|
||||
policesObject.policyAction = valuePolicespolicy["PolicyAction"].asString();
|
||||
if(!valuePolicespolicy["Priority"].isNull())
|
||||
policesObject.priority = std::stoi(valuePolicespolicy["Priority"].asString());
|
||||
if(!valuePolicespolicy["Status"].isNull())
|
||||
policesObject.status = valuePolicespolicy["Status"].asString();
|
||||
if(!valuePolicespolicy["CreateTime"].isNull())
|
||||
policesObject.createTime = valuePolicespolicy["CreateTime"].asString();
|
||||
if(!valuePolicespolicy["UserGroupMode"].isNull())
|
||||
policesObject.userGroupMode = valuePolicespolicy["UserGroupMode"].asString();
|
||||
if(!valuePolicespolicy["ApplicationType"].isNull())
|
||||
policesObject.applicationType = valuePolicespolicy["ApplicationType"].asString();
|
||||
auto allCustomUserAttributesNode = valuePolicespolicy["CustomUserAttributes"]["customUserAttribute"];
|
||||
for (auto valuePolicespolicyCustomUserAttributescustomUserAttribute : allCustomUserAttributesNode)
|
||||
{
|
||||
Policy::CustomUserAttribute customUserAttributesObject;
|
||||
if(!valuePolicespolicyCustomUserAttributescustomUserAttribute["UserGroupType"].isNull())
|
||||
customUserAttributesObject.userGroupType = valuePolicespolicyCustomUserAttributescustomUserAttribute["UserGroupType"].asString();
|
||||
if(!valuePolicespolicyCustomUserAttributescustomUserAttribute["Relation"].isNull())
|
||||
customUserAttributesObject.relation = valuePolicespolicyCustomUserAttributescustomUserAttribute["Relation"].asString();
|
||||
if(!valuePolicespolicyCustomUserAttributescustomUserAttribute["Value"].isNull())
|
||||
customUserAttributesObject.value = valuePolicespolicyCustomUserAttributescustomUserAttribute["Value"].asString();
|
||||
if(!valuePolicespolicyCustomUserAttributescustomUserAttribute["IdpId"].isNull())
|
||||
customUserAttributesObject.idpId = std::stoi(valuePolicespolicyCustomUserAttributescustomUserAttribute["IdpId"].asString());
|
||||
policesObject.customUserAttributes.push_back(customUserAttributesObject);
|
||||
}
|
||||
auto allUserGroupIds = value["UserGroupIds"]["userGroupId"];
|
||||
for (auto value : allUserGroupIds)
|
||||
policesObject.userGroupIds.push_back(value.asString());
|
||||
auto allApplicationIds = value["ApplicationIds"]["applicationId"];
|
||||
for (auto value : allApplicationIds)
|
||||
policesObject.applicationIds.push_back(value.asString());
|
||||
auto allTagIds = value["TagIds"]["tagId"];
|
||||
for (auto value : allTagIds)
|
||||
policesObject.tagIds.push_back(value.asString());
|
||||
polices_.push_back(policesObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListPrivateAccessPolicesResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
std::vector<ListPrivateAccessPolicesResult::Policy> ListPrivateAccessPolicesResult::getPolices()const
|
||||
{
|
||||
return polices_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListPrivateAccessTagsForDynamicRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListPrivateAccessTagsForDynamicRouteRequest;
|
||||
|
||||
ListPrivateAccessTagsForDynamicRouteRequest::ListPrivateAccessTagsForDynamicRouteRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListPrivateAccessTagsForDynamicRoute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPrivateAccessTagsForDynamicRouteRequest::~ListPrivateAccessTagsForDynamicRouteRequest() {}
|
||||
|
||||
std::vector<ListPrivateAccessTagsForDynamicRouteRequest::std::string> ListPrivateAccessTagsForDynamicRouteRequest::getDynamicRouteIds() const {
|
||||
return dynamicRouteIds_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessTagsForDynamicRouteRequest::setDynamicRouteIds(const std::vector<ListPrivateAccessTagsForDynamicRouteRequest::std::string> &dynamicRouteIds) {
|
||||
dynamicRouteIds_ = dynamicRouteIds;
|
||||
for(int dep1 = 0; dep1 != dynamicRouteIds.size(); dep1++) {
|
||||
setParameter(std::string("DynamicRouteIds") + "." + std::to_string(dep1 + 1), dynamicRouteIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessTagsForDynamicRouteRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessTagsForDynamicRouteRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
73
csas/src/model/ListPrivateAccessTagsForDynamicRouteResult.cc
Normal file
73
csas/src/model/ListPrivateAccessTagsForDynamicRouteResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/ListPrivateAccessTagsForDynamicRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListPrivateAccessTagsForDynamicRouteResult::ListPrivateAccessTagsForDynamicRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPrivateAccessTagsForDynamicRouteResult::ListPrivateAccessTagsForDynamicRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPrivateAccessTagsForDynamicRouteResult::~ListPrivateAccessTagsForDynamicRouteResult()
|
||||
{}
|
||||
|
||||
void ListPrivateAccessTagsForDynamicRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDynamicRoutesNode = value["DynamicRoutes"]["dynamicRoute"];
|
||||
for (auto valueDynamicRoutesdynamicRoute : allDynamicRoutesNode)
|
||||
{
|
||||
DynamicRoute dynamicRoutesObject;
|
||||
if(!valueDynamicRoutesdynamicRoute["DynamicRouteId"].isNull())
|
||||
dynamicRoutesObject.dynamicRouteId = valueDynamicRoutesdynamicRoute["DynamicRouteId"].asString();
|
||||
auto allTagsNode = valueDynamicRoutesdynamicRoute["Tags"]["tag"];
|
||||
for (auto valueDynamicRoutesdynamicRouteTagstag : allTagsNode)
|
||||
{
|
||||
DynamicRoute::Tag tagsObject;
|
||||
if(!valueDynamicRoutesdynamicRouteTagstag["TagId"].isNull())
|
||||
tagsObject.tagId = valueDynamicRoutesdynamicRouteTagstag["TagId"].asString();
|
||||
if(!valueDynamicRoutesdynamicRouteTagstag["Name"].isNull())
|
||||
tagsObject.name = valueDynamicRoutesdynamicRouteTagstag["Name"].asString();
|
||||
if(!valueDynamicRoutesdynamicRouteTagstag["Description"].isNull())
|
||||
tagsObject.description = valueDynamicRoutesdynamicRouteTagstag["Description"].asString();
|
||||
if(!valueDynamicRoutesdynamicRouteTagstag["TagType"].isNull())
|
||||
tagsObject.tagType = valueDynamicRoutesdynamicRouteTagstag["TagType"].asString();
|
||||
if(!valueDynamicRoutesdynamicRouteTagstag["CreateTime"].isNull())
|
||||
tagsObject.createTime = valueDynamicRoutesdynamicRouteTagstag["CreateTime"].asString();
|
||||
dynamicRoutesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
dynamicRoutes_.push_back(dynamicRoutesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPrivateAccessTagsForDynamicRouteResult::DynamicRoute> ListPrivateAccessTagsForDynamicRouteResult::getDynamicRoutes()const
|
||||
{
|
||||
return dynamicRoutes_;
|
||||
}
|
||||
|
||||
92
csas/src/model/ListPrivateAccessTagsRequest.cc
Normal file
92
csas/src/model/ListPrivateAccessTagsRequest.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/csas/model/ListPrivateAccessTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListPrivateAccessTagsRequest;
|
||||
|
||||
ListPrivateAccessTagsRequest::ListPrivateAccessTagsRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListPrivateAccessTags") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPrivateAccessTagsRequest::~ListPrivateAccessTagsRequest() {}
|
||||
|
||||
std::string ListPrivateAccessTagsRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessTagsRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessTagsRequest::getPolicyId() const {
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessTagsRequest::setPolicyId(const std::string &policyId) {
|
||||
policyId_ = policyId;
|
||||
setParameter(std::string("PolicyId"), policyId);
|
||||
}
|
||||
|
||||
int ListPrivateAccessTagsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessTagsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessTagsRequest::getApplicationId() const {
|
||||
return applicationId_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessTagsRequest::setApplicationId(const std::string &applicationId) {
|
||||
applicationId_ = applicationId;
|
||||
setParameter(std::string("ApplicationId"), applicationId);
|
||||
}
|
||||
|
||||
std::vector<ListPrivateAccessTagsRequest::std::string> ListPrivateAccessTagsRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessTagsRequest::setTagIds(const std::vector<ListPrivateAccessTagsRequest::std::string> &tagIds) {
|
||||
tagIds_ = tagIds;
|
||||
for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
|
||||
setParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
int ListPrivateAccessTagsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessTagsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListPrivateAccessTagsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListPrivateAccessTagsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
78
csas/src/model/ListPrivateAccessTagsResult.cc
Normal file
78
csas/src/model/ListPrivateAccessTagsResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/csas/model/ListPrivateAccessTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListPrivateAccessTagsResult::ListPrivateAccessTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPrivateAccessTagsResult::ListPrivateAccessTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPrivateAccessTagsResult::~ListPrivateAccessTagsResult()
|
||||
{}
|
||||
|
||||
void ListPrivateAccessTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["tag"];
|
||||
for (auto valueTagstag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagstag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagstag["TagId"].asString();
|
||||
if(!valueTagstag["Name"].isNull())
|
||||
tagsObject.name = valueTagstag["Name"].asString();
|
||||
if(!valueTagstag["Description"].isNull())
|
||||
tagsObject.description = valueTagstag["Description"].asString();
|
||||
if(!valueTagstag["TagType"].isNull())
|
||||
tagsObject.tagType = valueTagstag["TagType"].asString();
|
||||
if(!valueTagstag["CreateTime"].isNull())
|
||||
tagsObject.createTime = valueTagstag["CreateTime"].asString();
|
||||
auto allApplicationIds = value["ApplicationIds"]["applicationId"];
|
||||
for (auto value : allApplicationIds)
|
||||
tagsObject.applicationIds.push_back(value.asString());
|
||||
auto allPolicyIds = value["PolicyIds"]["policyId"];
|
||||
for (auto value : allPolicyIds)
|
||||
tagsObject.policyIds.push_back(value.asString());
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListPrivateAccessTagsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
std::vector<ListPrivateAccessTagsResult::Tag> ListPrivateAccessTagsResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
47
csas/src/model/ListTagsForPrivateAccessApplicationRequest.cc
Normal file
47
csas/src/model/ListTagsForPrivateAccessApplicationRequest.cc
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListTagsForPrivateAccessApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListTagsForPrivateAccessApplicationRequest;
|
||||
|
||||
ListTagsForPrivateAccessApplicationRequest::ListTagsForPrivateAccessApplicationRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListTagsForPrivateAccessApplication") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListTagsForPrivateAccessApplicationRequest::~ListTagsForPrivateAccessApplicationRequest() {}
|
||||
|
||||
std::vector<ListTagsForPrivateAccessApplicationRequest::std::string> ListTagsForPrivateAccessApplicationRequest::getApplicationIds() const {
|
||||
return applicationIds_;
|
||||
}
|
||||
|
||||
void ListTagsForPrivateAccessApplicationRequest::setApplicationIds(const std::vector<ListTagsForPrivateAccessApplicationRequest::std::string> &applicationIds) {
|
||||
applicationIds_ = applicationIds;
|
||||
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
|
||||
setParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTagsForPrivateAccessApplicationRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListTagsForPrivateAccessApplicationRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
73
csas/src/model/ListTagsForPrivateAccessApplicationResult.cc
Normal file
73
csas/src/model/ListTagsForPrivateAccessApplicationResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/ListTagsForPrivateAccessApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListTagsForPrivateAccessApplicationResult::ListTagsForPrivateAccessApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagsForPrivateAccessApplicationResult::ListTagsForPrivateAccessApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagsForPrivateAccessApplicationResult::~ListTagsForPrivateAccessApplicationResult()
|
||||
{}
|
||||
|
||||
void ListTagsForPrivateAccessApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApplicationsNode = value["Applications"]["application"];
|
||||
for (auto valueApplicationsapplication : allApplicationsNode)
|
||||
{
|
||||
Application applicationsObject;
|
||||
if(!valueApplicationsapplication["ApplicationId"].isNull())
|
||||
applicationsObject.applicationId = valueApplicationsapplication["ApplicationId"].asString();
|
||||
auto allTagsNode = valueApplicationsapplication["Tags"]["tag"];
|
||||
for (auto valueApplicationsapplicationTagstag : allTagsNode)
|
||||
{
|
||||
Application::Tag tagsObject;
|
||||
if(!valueApplicationsapplicationTagstag["TagId"].isNull())
|
||||
tagsObject.tagId = valueApplicationsapplicationTagstag["TagId"].asString();
|
||||
if(!valueApplicationsapplicationTagstag["Name"].isNull())
|
||||
tagsObject.name = valueApplicationsapplicationTagstag["Name"].asString();
|
||||
if(!valueApplicationsapplicationTagstag["Description"].isNull())
|
||||
tagsObject.description = valueApplicationsapplicationTagstag["Description"].asString();
|
||||
if(!valueApplicationsapplicationTagstag["TagType"].isNull())
|
||||
tagsObject.tagType = valueApplicationsapplicationTagstag["TagType"].asString();
|
||||
if(!valueApplicationsapplicationTagstag["CreateTime"].isNull())
|
||||
tagsObject.createTime = valueApplicationsapplicationTagstag["CreateTime"].asString();
|
||||
applicationsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
applications_.push_back(applicationsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListTagsForPrivateAccessApplicationResult::Application> ListTagsForPrivateAccessApplicationResult::getApplications()const
|
||||
{
|
||||
return applications_;
|
||||
}
|
||||
|
||||
47
csas/src/model/ListTagsForPrivateAccessPolicyRequest.cc
Normal file
47
csas/src/model/ListTagsForPrivateAccessPolicyRequest.cc
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListTagsForPrivateAccessPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListTagsForPrivateAccessPolicyRequest;
|
||||
|
||||
ListTagsForPrivateAccessPolicyRequest::ListTagsForPrivateAccessPolicyRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListTagsForPrivateAccessPolicy") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListTagsForPrivateAccessPolicyRequest::~ListTagsForPrivateAccessPolicyRequest() {}
|
||||
|
||||
std::vector<ListTagsForPrivateAccessPolicyRequest::std::string> ListTagsForPrivateAccessPolicyRequest::getPolicyIds() const {
|
||||
return policyIds_;
|
||||
}
|
||||
|
||||
void ListTagsForPrivateAccessPolicyRequest::setPolicyIds(const std::vector<ListTagsForPrivateAccessPolicyRequest::std::string> &policyIds) {
|
||||
policyIds_ = policyIds;
|
||||
for(int dep1 = 0; dep1 != policyIds.size(); dep1++) {
|
||||
setParameter(std::string("PolicyIds") + "." + std::to_string(dep1 + 1), policyIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTagsForPrivateAccessPolicyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListTagsForPrivateAccessPolicyRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
73
csas/src/model/ListTagsForPrivateAccessPolicyResult.cc
Normal file
73
csas/src/model/ListTagsForPrivateAccessPolicyResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csas/model/ListTagsForPrivateAccessPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListTagsForPrivateAccessPolicyResult::ListTagsForPrivateAccessPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagsForPrivateAccessPolicyResult::ListTagsForPrivateAccessPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagsForPrivateAccessPolicyResult::~ListTagsForPrivateAccessPolicyResult()
|
||||
{}
|
||||
|
||||
void ListTagsForPrivateAccessPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPolicesNode = value["Polices"]["policy"];
|
||||
for (auto valuePolicespolicy : allPolicesNode)
|
||||
{
|
||||
Policy policesObject;
|
||||
if(!valuePolicespolicy["PolicyId"].isNull())
|
||||
policesObject.policyId = valuePolicespolicy["PolicyId"].asString();
|
||||
auto allTagsNode = valuePolicespolicy["Tags"]["tag"];
|
||||
for (auto valuePolicespolicyTagstag : allTagsNode)
|
||||
{
|
||||
Policy::Tag tagsObject;
|
||||
if(!valuePolicespolicyTagstag["TagId"].isNull())
|
||||
tagsObject.tagId = valuePolicespolicyTagstag["TagId"].asString();
|
||||
if(!valuePolicespolicyTagstag["Name"].isNull())
|
||||
tagsObject.name = valuePolicespolicyTagstag["Name"].asString();
|
||||
if(!valuePolicespolicyTagstag["Description"].isNull())
|
||||
tagsObject.description = valuePolicespolicyTagstag["Description"].asString();
|
||||
if(!valuePolicespolicyTagstag["TagType"].isNull())
|
||||
tagsObject.tagType = valuePolicespolicyTagstag["TagType"].asString();
|
||||
if(!valuePolicespolicyTagstag["CreateTime"].isNull())
|
||||
tagsObject.createTime = valuePolicespolicyTagstag["CreateTime"].asString();
|
||||
policesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
polices_.push_back(policesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListTagsForPrivateAccessPolicyResult::Policy> ListTagsForPrivateAccessPolicyResult::getPolices()const
|
||||
{
|
||||
return polices_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/csas/model/ListUserGroupsForPrivateAccessPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListUserGroupsForPrivateAccessPolicyRequest;
|
||||
|
||||
ListUserGroupsForPrivateAccessPolicyRequest::ListUserGroupsForPrivateAccessPolicyRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListUserGroupsForPrivateAccessPolicy") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListUserGroupsForPrivateAccessPolicyRequest::~ListUserGroupsForPrivateAccessPolicyRequest() {}
|
||||
|
||||
std::vector<ListUserGroupsForPrivateAccessPolicyRequest::std::string> ListUserGroupsForPrivateAccessPolicyRequest::getPolicyIds() const {
|
||||
return policyIds_;
|
||||
}
|
||||
|
||||
void ListUserGroupsForPrivateAccessPolicyRequest::setPolicyIds(const std::vector<ListUserGroupsForPrivateAccessPolicyRequest::std::string> &policyIds) {
|
||||
policyIds_ = policyIds;
|
||||
for(int dep1 = 0; dep1 != policyIds.size(); dep1++) {
|
||||
setParameter(std::string("PolicyIds") + "." + std::to_string(dep1 + 1), policyIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListUserGroupsForPrivateAccessPolicyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListUserGroupsForPrivateAccessPolicyRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
85
csas/src/model/ListUserGroupsForPrivateAccessPolicyResult.cc
Normal file
85
csas/src/model/ListUserGroupsForPrivateAccessPolicyResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/csas/model/ListUserGroupsForPrivateAccessPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListUserGroupsForPrivateAccessPolicyResult::ListUserGroupsForPrivateAccessPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUserGroupsForPrivateAccessPolicyResult::ListUserGroupsForPrivateAccessPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUserGroupsForPrivateAccessPolicyResult::~ListUserGroupsForPrivateAccessPolicyResult()
|
||||
{}
|
||||
|
||||
void ListUserGroupsForPrivateAccessPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPolicesNode = value["Polices"]["policy"];
|
||||
for (auto valuePolicespolicy : allPolicesNode)
|
||||
{
|
||||
Policy policesObject;
|
||||
if(!valuePolicespolicy["PolicyId"].isNull())
|
||||
policesObject.policyId = valuePolicespolicy["PolicyId"].asString();
|
||||
auto allUserGroupsNode = valuePolicespolicy["UserGroups"]["userGroup"];
|
||||
for (auto valuePolicespolicyUserGroupsuserGroup : allUserGroupsNode)
|
||||
{
|
||||
Policy::UserGroup userGroupsObject;
|
||||
if(!valuePolicespolicyUserGroupsuserGroup["UserGroupId"].isNull())
|
||||
userGroupsObject.userGroupId = valuePolicespolicyUserGroupsuserGroup["UserGroupId"].asString();
|
||||
if(!valuePolicespolicyUserGroupsuserGroup["Name"].isNull())
|
||||
userGroupsObject.name = valuePolicespolicyUserGroupsuserGroup["Name"].asString();
|
||||
if(!valuePolicespolicyUserGroupsuserGroup["Description"].isNull())
|
||||
userGroupsObject.description = valuePolicespolicyUserGroupsuserGroup["Description"].asString();
|
||||
if(!valuePolicespolicyUserGroupsuserGroup["CreateTime"].isNull())
|
||||
userGroupsObject.createTime = valuePolicespolicyUserGroupsuserGroup["CreateTime"].asString();
|
||||
auto allAttributesNode = valuePolicespolicyUserGroupsuserGroup["Attributes"]["attribute"];
|
||||
for (auto valuePolicespolicyUserGroupsuserGroupAttributesattribute : allAttributesNode)
|
||||
{
|
||||
Policy::UserGroup::Attribute attributesObject;
|
||||
if(!valuePolicespolicyUserGroupsuserGroupAttributesattribute["UserGroupType"].isNull())
|
||||
attributesObject.userGroupType = valuePolicespolicyUserGroupsuserGroupAttributesattribute["UserGroupType"].asString();
|
||||
if(!valuePolicespolicyUserGroupsuserGroupAttributesattribute["Relation"].isNull())
|
||||
attributesObject.relation = valuePolicespolicyUserGroupsuserGroupAttributesattribute["Relation"].asString();
|
||||
if(!valuePolicespolicyUserGroupsuserGroupAttributesattribute["Value"].isNull())
|
||||
attributesObject.value = valuePolicespolicyUserGroupsuserGroupAttributesattribute["Value"].asString();
|
||||
if(!valuePolicespolicyUserGroupsuserGroupAttributesattribute["IdpId"].isNull())
|
||||
attributesObject.idpId = std::stoi(valuePolicespolicyUserGroupsuserGroupAttributesattribute["IdpId"].asString());
|
||||
userGroupsObject.attributes.push_back(attributesObject);
|
||||
}
|
||||
policesObject.userGroups.push_back(userGroupsObject);
|
||||
}
|
||||
polices_.push_back(policesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListUserGroupsForPrivateAccessPolicyResult::Policy> ListUserGroupsForPrivateAccessPolicyResult::getPolices()const
|
||||
{
|
||||
return polices_;
|
||||
}
|
||||
|
||||
92
csas/src/model/ListUserGroupsRequest.cc
Normal file
92
csas/src/model/ListUserGroupsRequest.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/csas/model/ListUserGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::ListUserGroupsRequest;
|
||||
|
||||
ListUserGroupsRequest::ListUserGroupsRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "ListUserGroups") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListUserGroupsRequest::~ListUserGroupsRequest() {}
|
||||
|
||||
std::string ListUserGroupsRequest::getAttributeValue() const {
|
||||
return attributeValue_;
|
||||
}
|
||||
|
||||
void ListUserGroupsRequest::setAttributeValue(const std::string &attributeValue) {
|
||||
attributeValue_ = attributeValue;
|
||||
setParameter(std::string("AttributeValue"), attributeValue);
|
||||
}
|
||||
|
||||
std::string ListUserGroupsRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListUserGroupsRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ListUserGroupsRequest::getPAPolicyId() const {
|
||||
return pAPolicyId_;
|
||||
}
|
||||
|
||||
void ListUserGroupsRequest::setPAPolicyId(const std::string &pAPolicyId) {
|
||||
pAPolicyId_ = pAPolicyId;
|
||||
setParameter(std::string("PAPolicyId"), pAPolicyId);
|
||||
}
|
||||
|
||||
int ListUserGroupsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListUserGroupsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListUserGroupsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListUserGroupsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::vector<ListUserGroupsRequest::std::string> ListUserGroupsRequest::getUserGroupIds() const {
|
||||
return userGroupIds_;
|
||||
}
|
||||
|
||||
void ListUserGroupsRequest::setUserGroupIds(const std::vector<ListUserGroupsRequest::std::string> &userGroupIds) {
|
||||
userGroupIds_ = userGroupIds;
|
||||
for(int dep1 = 0; dep1 != userGroupIds.size(); dep1++) {
|
||||
setParameter(std::string("UserGroupIds") + "." + std::to_string(dep1 + 1), userGroupIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListUserGroupsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListUserGroupsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
84
csas/src/model/ListUserGroupsResult.cc
Normal file
84
csas/src/model/ListUserGroupsResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/csas/model/ListUserGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
ListUserGroupsResult::ListUserGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUserGroupsResult::ListUserGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUserGroupsResult::~ListUserGroupsResult()
|
||||
{}
|
||||
|
||||
void ListUserGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserGroupsNode = value["UserGroups"]["userGroup"];
|
||||
for (auto valueUserGroupsuserGroup : allUserGroupsNode)
|
||||
{
|
||||
UserGroup userGroupsObject;
|
||||
if(!valueUserGroupsuserGroup["UserGroupId"].isNull())
|
||||
userGroupsObject.userGroupId = valueUserGroupsuserGroup["UserGroupId"].asString();
|
||||
if(!valueUserGroupsuserGroup["Name"].isNull())
|
||||
userGroupsObject.name = valueUserGroupsuserGroup["Name"].asString();
|
||||
if(!valueUserGroupsuserGroup["Description"].isNull())
|
||||
userGroupsObject.description = valueUserGroupsuserGroup["Description"].asString();
|
||||
if(!valueUserGroupsuserGroup["CreateTime"].isNull())
|
||||
userGroupsObject.createTime = valueUserGroupsuserGroup["CreateTime"].asString();
|
||||
auto allAttributesNode = valueUserGroupsuserGroup["Attributes"]["attribute"];
|
||||
for (auto valueUserGroupsuserGroupAttributesattribute : allAttributesNode)
|
||||
{
|
||||
UserGroup::Attribute attributesObject;
|
||||
if(!valueUserGroupsuserGroupAttributesattribute["UserGroupType"].isNull())
|
||||
attributesObject.userGroupType = valueUserGroupsuserGroupAttributesattribute["UserGroupType"].asString();
|
||||
if(!valueUserGroupsuserGroupAttributesattribute["Relation"].isNull())
|
||||
attributesObject.relation = valueUserGroupsuserGroupAttributesattribute["Relation"].asString();
|
||||
if(!valueUserGroupsuserGroupAttributesattribute["Value"].isNull())
|
||||
attributesObject.value = valueUserGroupsuserGroupAttributesattribute["Value"].asString();
|
||||
if(!valueUserGroupsuserGroupAttributesattribute["IdpId"].isNull())
|
||||
attributesObject.idpId = std::stoi(valueUserGroupsuserGroupAttributesattribute["IdpId"].asString());
|
||||
userGroupsObject.attributes.push_back(attributesObject);
|
||||
}
|
||||
userGroups_.push_back(userGroupsObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListUserGroupsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
std::vector<ListUserGroupsResult::UserGroup> ListUserGroupsResult::getUserGroups()const
|
||||
{
|
||||
return userGroups_;
|
||||
}
|
||||
|
||||
150
csas/src/model/UpdateDynamicRouteRequest.cc
Normal file
150
csas/src/model/UpdateDynamicRouteRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/csas/model/UpdateDynamicRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::UpdateDynamicRouteRequest;
|
||||
|
||||
UpdateDynamicRouteRequest::UpdateDynamicRouteRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "UpdateDynamicRoute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateDynamicRouteRequest::~UpdateDynamicRouteRequest() {}
|
||||
|
||||
std::string UpdateDynamicRouteRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateDynamicRouteRequest::getDynamicRouteId() const {
|
||||
return dynamicRouteId_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setDynamicRouteId(const std::string &dynamicRouteId) {
|
||||
dynamicRouteId_ = dynamicRouteId;
|
||||
setBodyParameter(std::string("DynamicRouteId"), dynamicRouteId);
|
||||
}
|
||||
|
||||
std::string UpdateDynamicRouteRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string UpdateDynamicRouteRequest::getDynamicRouteType() const {
|
||||
return dynamicRouteType_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setDynamicRouteType(const std::string &dynamicRouteType) {
|
||||
dynamicRouteType_ = dynamicRouteType;
|
||||
setBodyParameter(std::string("DynamicRouteType"), dynamicRouteType);
|
||||
}
|
||||
|
||||
std::vector<UpdateDynamicRouteRequest::std::string> UpdateDynamicRouteRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setTagIds(const std::vector<UpdateDynamicRouteRequest::std::string> &tagIds) {
|
||||
tagIds_ = tagIds;
|
||||
for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<UpdateDynamicRouteRequest::std::string> UpdateDynamicRouteRequest::getRegionIds() const {
|
||||
return regionIds_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setRegionIds(const std::vector<UpdateDynamicRouteRequest::std::string> ®ionIds) {
|
||||
regionIds_ = regionIds;
|
||||
for(int dep1 = 0; dep1 != regionIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("RegionIds") + "." + std::to_string(dep1 + 1), regionIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
int UpdateDynamicRouteRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
std::string UpdateDynamicRouteRequest::getNextHop() const {
|
||||
return nextHop_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setNextHop(const std::string &nextHop) {
|
||||
nextHop_ = nextHop;
|
||||
setBodyParameter(std::string("NextHop"), nextHop);
|
||||
}
|
||||
|
||||
std::vector<UpdateDynamicRouteRequest::std::string> UpdateDynamicRouteRequest::getApplicationIds() const {
|
||||
return applicationIds_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setApplicationIds(const std::vector<UpdateDynamicRouteRequest::std::string> &applicationIds) {
|
||||
applicationIds_ = applicationIds;
|
||||
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateDynamicRouteRequest::getModifyType() const {
|
||||
return modifyType_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setModifyType(const std::string &modifyType) {
|
||||
modifyType_ = modifyType;
|
||||
setBodyParameter(std::string("ModifyType"), modifyType);
|
||||
}
|
||||
|
||||
std::string UpdateDynamicRouteRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string UpdateDynamicRouteRequest::getApplicationType() const {
|
||||
return applicationType_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setApplicationType(const std::string &applicationType) {
|
||||
applicationType_ = applicationType;
|
||||
setBodyParameter(std::string("ApplicationType"), applicationType);
|
||||
}
|
||||
|
||||
std::string UpdateDynamicRouteRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateDynamicRouteRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
44
csas/src/model/UpdateDynamicRouteResult.cc
Normal file
44
csas/src/model/UpdateDynamicRouteResult.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/csas/model/UpdateDynamicRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
UpdateDynamicRouteResult::UpdateDynamicRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateDynamicRouteResult::UpdateDynamicRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateDynamicRouteResult::~UpdateDynamicRouteResult()
|
||||
{}
|
||||
|
||||
void UpdateDynamicRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
csas/src/model/UpdatePrivateAccessApplicationRequest.cc
Normal file
115
csas/src/model/UpdatePrivateAccessApplicationRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/csas/model/UpdatePrivateAccessApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::UpdatePrivateAccessApplicationRequest;
|
||||
|
||||
UpdatePrivateAccessApplicationRequest::UpdatePrivateAccessApplicationRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "UpdatePrivateAccessApplication") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdatePrivateAccessApplicationRequest::~UpdatePrivateAccessApplicationRequest() {}
|
||||
|
||||
std::vector<UpdatePrivateAccessApplicationRequest::std::string> UpdatePrivateAccessApplicationRequest::getAddresses() const {
|
||||
return addresses_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setAddresses(const std::vector<UpdatePrivateAccessApplicationRequest::std::string> &addresses) {
|
||||
addresses_ = addresses;
|
||||
for(int dep1 = 0; dep1 != addresses.size(); dep1++) {
|
||||
setBodyParameter(std::string("Addresses") + "." + std::to_string(dep1 + 1), addresses[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessApplicationRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessApplicationRequest::getProtocol() const {
|
||||
return protocol_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setProtocol(const std::string &protocol) {
|
||||
protocol_ = protocol;
|
||||
setBodyParameter(std::string("Protocol"), protocol);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessApplicationRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessApplicationRequest::getApplicationId() const {
|
||||
return applicationId_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setApplicationId(const std::string &applicationId) {
|
||||
applicationId_ = applicationId;
|
||||
setBodyParameter(std::string("ApplicationId"), applicationId);
|
||||
}
|
||||
|
||||
std::vector<UpdatePrivateAccessApplicationRequest::std::string> UpdatePrivateAccessApplicationRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setTagIds(const std::vector<UpdatePrivateAccessApplicationRequest::std::string> &tagIds) {
|
||||
tagIds_ = tagIds;
|
||||
for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<UpdatePrivateAccessApplicationRequest::PortRanges> UpdatePrivateAccessApplicationRequest::getPortRanges() const {
|
||||
return portRanges_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setPortRanges(const std::vector<UpdatePrivateAccessApplicationRequest::PortRanges> &portRanges) {
|
||||
portRanges_ = portRanges;
|
||||
for(int dep1 = 0; dep1 != portRanges.size(); dep1++) {
|
||||
setBodyParameter(std::string("PortRanges") + "." + std::to_string(dep1 + 1) + ".End", std::to_string(portRanges[dep1].end));
|
||||
setBodyParameter(std::string("PortRanges") + "." + std::to_string(dep1 + 1) + ".Begin", std::to_string(portRanges[dep1].begin));
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessApplicationRequest::getModifyType() const {
|
||||
return modifyType_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setModifyType(const std::string &modifyType) {
|
||||
modifyType_ = modifyType;
|
||||
setBodyParameter(std::string("ModifyType"), modifyType);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessApplicationRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessApplicationRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
44
csas/src/model/UpdatePrivateAccessApplicationResult.cc
Normal file
44
csas/src/model/UpdatePrivateAccessApplicationResult.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/csas/model/UpdatePrivateAccessApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
UpdatePrivateAccessApplicationResult::UpdatePrivateAccessApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdatePrivateAccessApplicationResult::UpdatePrivateAccessApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdatePrivateAccessApplicationResult::~UpdatePrivateAccessApplicationResult()
|
||||
{}
|
||||
|
||||
void UpdatePrivateAccessApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
155
csas/src/model/UpdatePrivateAccessPolicyRequest.cc
Normal file
155
csas/src/model/UpdatePrivateAccessPolicyRequest.cc
Normal file
@@ -0,0 +1,155 @@
|
||||
/*
|
||||
* 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/csas/model/UpdatePrivateAccessPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::UpdatePrivateAccessPolicyRequest;
|
||||
|
||||
UpdatePrivateAccessPolicyRequest::UpdatePrivateAccessPolicyRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "UpdatePrivateAccessPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdatePrivateAccessPolicyRequest::~UpdatePrivateAccessPolicyRequest() {}
|
||||
|
||||
std::string UpdatePrivateAccessPolicyRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessPolicyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessPolicyRequest::getPolicyId() const {
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setPolicyId(const std::string &policyId) {
|
||||
policyId_ = policyId;
|
||||
setBodyParameter(std::string("PolicyId"), policyId);
|
||||
}
|
||||
|
||||
std::vector<UpdatePrivateAccessPolicyRequest::CustomUserAttributes> UpdatePrivateAccessPolicyRequest::getCustomUserAttributes() const {
|
||||
return customUserAttributes_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setCustomUserAttributes(const std::vector<UpdatePrivateAccessPolicyRequest::CustomUserAttributes> &customUserAttributes) {
|
||||
customUserAttributes_ = customUserAttributes;
|
||||
for(int dep1 = 0; dep1 != customUserAttributes.size(); dep1++) {
|
||||
setBodyParameter(std::string("CustomUserAttributes") + "." + std::to_string(dep1 + 1) + ".UserGroupType", customUserAttributes[dep1].userGroupType);
|
||||
setBodyParameter(std::string("CustomUserAttributes") + "." + std::to_string(dep1 + 1) + ".IdpId", std::to_string(customUserAttributes[dep1].idpId));
|
||||
setBodyParameter(std::string("CustomUserAttributes") + "." + std::to_string(dep1 + 1) + ".Value", customUserAttributes[dep1].value);
|
||||
setBodyParameter(std::string("CustomUserAttributes") + "." + std::to_string(dep1 + 1) + ".Relation", customUserAttributes[dep1].relation);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<UpdatePrivateAccessPolicyRequest::std::string> UpdatePrivateAccessPolicyRequest::getTagIds() const {
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setTagIds(const std::vector<UpdatePrivateAccessPolicyRequest::std::string> &tagIds) {
|
||||
tagIds_ = tagIds;
|
||||
for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<UpdatePrivateAccessPolicyRequest::std::string> UpdatePrivateAccessPolicyRequest::getUserGroupIds() const {
|
||||
return userGroupIds_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setUserGroupIds(const std::vector<UpdatePrivateAccessPolicyRequest::std::string> &userGroupIds) {
|
||||
userGroupIds_ = userGroupIds;
|
||||
for(int dep1 = 0; dep1 != userGroupIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("UserGroupIds") + "." + std::to_string(dep1 + 1), userGroupIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessPolicyRequest::getPolicyAction() const {
|
||||
return policyAction_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setPolicyAction(const std::string &policyAction) {
|
||||
policyAction_ = policyAction;
|
||||
setBodyParameter(std::string("PolicyAction"), policyAction);
|
||||
}
|
||||
|
||||
int UpdatePrivateAccessPolicyRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
std::vector<UpdatePrivateAccessPolicyRequest::std::string> UpdatePrivateAccessPolicyRequest::getApplicationIds() const {
|
||||
return applicationIds_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setApplicationIds(const std::vector<UpdatePrivateAccessPolicyRequest::std::string> &applicationIds) {
|
||||
applicationIds_ = applicationIds;
|
||||
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessPolicyRequest::getUserGroupMode() const {
|
||||
return userGroupMode_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setUserGroupMode(const std::string &userGroupMode) {
|
||||
userGroupMode_ = userGroupMode;
|
||||
setBodyParameter(std::string("UserGroupMode"), userGroupMode);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessPolicyRequest::getModifyType() const {
|
||||
return modifyType_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setModifyType(const std::string &modifyType) {
|
||||
modifyType_ = modifyType;
|
||||
setBodyParameter(std::string("ModifyType"), modifyType);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessPolicyRequest::getApplicationType() const {
|
||||
return applicationType_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setApplicationType(const std::string &applicationType) {
|
||||
applicationType_ = applicationType;
|
||||
setBodyParameter(std::string("ApplicationType"), applicationType);
|
||||
}
|
||||
|
||||
std::string UpdatePrivateAccessPolicyRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdatePrivateAccessPolicyRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
44
csas/src/model/UpdatePrivateAccessPolicyResult.cc
Normal file
44
csas/src/model/UpdatePrivateAccessPolicyResult.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/csas/model/UpdatePrivateAccessPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
UpdatePrivateAccessPolicyResult::UpdatePrivateAccessPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdatePrivateAccessPolicyResult::UpdatePrivateAccessPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdatePrivateAccessPolicyResult::~UpdatePrivateAccessPolicyResult()
|
||||
{}
|
||||
|
||||
void UpdatePrivateAccessPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
77
csas/src/model/UpdateUserGroupRequest.cc
Normal file
77
csas/src/model/UpdateUserGroupRequest.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/csas/model/UpdateUserGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Csas::Model::UpdateUserGroupRequest;
|
||||
|
||||
UpdateUserGroupRequest::UpdateUserGroupRequest()
|
||||
: RpcServiceRequest("csas", "2023-01-20", "UpdateUserGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateUserGroupRequest::~UpdateUserGroupRequest() {}
|
||||
|
||||
std::string UpdateUserGroupRequest::getUserGroupId() const {
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
void UpdateUserGroupRequest::setUserGroupId(const std::string &userGroupId) {
|
||||
userGroupId_ = userGroupId;
|
||||
setBodyParameter(std::string("UserGroupId"), userGroupId);
|
||||
}
|
||||
|
||||
std::string UpdateUserGroupRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateUserGroupRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateUserGroupRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void UpdateUserGroupRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string UpdateUserGroupRequest::getModifyType() const {
|
||||
return modifyType_;
|
||||
}
|
||||
|
||||
void UpdateUserGroupRequest::setModifyType(const std::string &modifyType) {
|
||||
modifyType_ = modifyType;
|
||||
setBodyParameter(std::string("ModifyType"), modifyType);
|
||||
}
|
||||
|
||||
std::vector<UpdateUserGroupRequest::Attributes> UpdateUserGroupRequest::getAttributes() const {
|
||||
return attributes_;
|
||||
}
|
||||
|
||||
void UpdateUserGroupRequest::setAttributes(const std::vector<UpdateUserGroupRequest::Attributes> &attributes) {
|
||||
attributes_ = attributes;
|
||||
for(int dep1 = 0; dep1 != attributes.size(); dep1++) {
|
||||
setBodyParameter(std::string("Attributes") + "." + std::to_string(dep1 + 1) + ".UserGroupType", attributes[dep1].userGroupType);
|
||||
setBodyParameter(std::string("Attributes") + "." + std::to_string(dep1 + 1) + ".IdpId", std::to_string(attributes[dep1].idpId));
|
||||
setBodyParameter(std::string("Attributes") + "." + std::to_string(dep1 + 1) + ".Value", attributes[dep1].value);
|
||||
setBodyParameter(std::string("Attributes") + "." + std::to_string(dep1 + 1) + ".Relation", attributes[dep1].relation);
|
||||
}
|
||||
}
|
||||
|
||||
44
csas/src/model/UpdateUserGroupResult.cc
Normal file
44
csas/src/model/UpdateUserGroupResult.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/csas/model/UpdateUserGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Csas;
|
||||
using namespace AlibabaCloud::Csas::Model;
|
||||
|
||||
UpdateUserGroupResult::UpdateUserGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateUserGroupResult::UpdateUserGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateUserGroupResult::~UpdateUserGroupResult()
|
||||
{}
|
||||
|
||||
void UpdateUserGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user