Support ipv4-network.
This commit is contained in:
@@ -51,6 +51,42 @@ EnsClient::EnsClient(const std::string & accessKeyId, const std::string & access
|
||||
EnsClient::~EnsClient()
|
||||
{}
|
||||
|
||||
EnsClient::AccosicateNetworkAclOutcome EnsClient::accosicateNetworkAcl(const AccosicateNetworkAclRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AccosicateNetworkAclOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AccosicateNetworkAclOutcome(AccosicateNetworkAclResult(outcome.result()));
|
||||
else
|
||||
return AccosicateNetworkAclOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::accosicateNetworkAclAsync(const AccosicateNetworkAclRequest& request, const AccosicateNetworkAclAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, accosicateNetworkAcl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::AccosicateNetworkAclOutcomeCallable EnsClient::accosicateNetworkAclCallable(const AccosicateNetworkAclRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AccosicateNetworkAclOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->accosicateNetworkAcl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::AddBackendServersOutcome EnsClient::addBackendServers(const AddBackendServersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +699,42 @@ EnsClient::CreateEpnInstanceOutcomeCallable EnsClient::createEpnInstanceCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::CreateFileSystemOutcome EnsClient::createFileSystem(const CreateFileSystemRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFileSystemOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFileSystemOutcome(CreateFileSystemResult(outcome.result()));
|
||||
else
|
||||
return CreateFileSystemOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::createFileSystemAsync(const CreateFileSystemRequest& request, const CreateFileSystemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFileSystem(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::CreateFileSystemOutcomeCallable EnsClient::createFileSystemCallable(const CreateFileSystemRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFileSystemOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFileSystem(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::CreateForwardEntryOutcome EnsClient::createForwardEntry(const CreateForwardEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,6 +1059,42 @@ EnsClient::CreateLoadBalancerUDPListenerOutcomeCallable EnsClient::createLoadBal
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::CreateMountTargetOutcome EnsClient::createMountTarget(const CreateMountTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMountTargetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMountTargetOutcome(CreateMountTargetResult(outcome.result()));
|
||||
else
|
||||
return CreateMountTargetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::createMountTargetAsync(const CreateMountTargetRequest& request, const CreateMountTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMountTarget(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::CreateMountTargetOutcomeCallable EnsClient::createMountTargetCallable(const CreateMountTargetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMountTargetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMountTarget(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::CreateNatGatewayOutcome EnsClient::createNatGateway(const CreateNatGatewayRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1167,78 @@ EnsClient::CreateNetworkOutcomeCallable EnsClient::createNetworkCallable(const C
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::CreateNetworkAclOutcome EnsClient::createNetworkAcl(const CreateNetworkAclRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateNetworkAclOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateNetworkAclOutcome(CreateNetworkAclResult(outcome.result()));
|
||||
else
|
||||
return CreateNetworkAclOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::createNetworkAclAsync(const CreateNetworkAclRequest& request, const CreateNetworkAclAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createNetworkAcl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::CreateNetworkAclOutcomeCallable EnsClient::createNetworkAclCallable(const CreateNetworkAclRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateNetworkAclOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createNetworkAcl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::CreateNetworkAclEntryOutcome EnsClient::createNetworkAclEntry(const CreateNetworkAclEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateNetworkAclEntryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateNetworkAclEntryOutcome(CreateNetworkAclEntryResult(outcome.result()));
|
||||
else
|
||||
return CreateNetworkAclEntryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::createNetworkAclEntryAsync(const CreateNetworkAclEntryRequest& request, const CreateNetworkAclEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createNetworkAclEntry(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::CreateNetworkAclEntryOutcomeCallable EnsClient::createNetworkAclEntryCallable(const CreateNetworkAclEntryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateNetworkAclEntryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createNetworkAclEntry(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::CreateSecurityGroupOutcome EnsClient::createSecurityGroup(const CreateSecurityGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1311,6 +1491,42 @@ EnsClient::DeleteEpnInstanceOutcomeCallable EnsClient::deleteEpnInstanceCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DeleteFileSystemOutcome EnsClient::deleteFileSystem(const DeleteFileSystemRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFileSystemOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteFileSystemOutcome(DeleteFileSystemResult(outcome.result()));
|
||||
else
|
||||
return DeleteFileSystemOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::deleteFileSystemAsync(const DeleteFileSystemRequest& request, const DeleteFileSystemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteFileSystem(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::DeleteFileSystemOutcomeCallable EnsClient::deleteFileSystemCallable(const DeleteFileSystemRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteFileSystemOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteFileSystem(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DeleteForwardEntryOutcome EnsClient::deleteForwardEntry(const DeleteForwardEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1455,6 +1671,42 @@ EnsClient::DeleteLoadBalancerListenerOutcomeCallable EnsClient::deleteLoadBalanc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DeleteMountTargetOutcome EnsClient::deleteMountTarget(const DeleteMountTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMountTargetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteMountTargetOutcome(DeleteMountTargetResult(outcome.result()));
|
||||
else
|
||||
return DeleteMountTargetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::deleteMountTargetAsync(const DeleteMountTargetRequest& request, const DeleteMountTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteMountTarget(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::DeleteMountTargetOutcomeCallable EnsClient::deleteMountTargetCallable(const DeleteMountTargetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteMountTargetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteMountTarget(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DeleteNatGatewayOutcome EnsClient::deleteNatGateway(const DeleteNatGatewayRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1527,6 +1779,78 @@ EnsClient::DeleteNetworkOutcomeCallable EnsClient::deleteNetworkCallable(const D
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DeleteNetworkAclOutcome EnsClient::deleteNetworkAcl(const DeleteNetworkAclRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNetworkAclOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteNetworkAclOutcome(DeleteNetworkAclResult(outcome.result()));
|
||||
else
|
||||
return DeleteNetworkAclOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::deleteNetworkAclAsync(const DeleteNetworkAclRequest& request, const DeleteNetworkAclAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteNetworkAcl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::DeleteNetworkAclOutcomeCallable EnsClient::deleteNetworkAclCallable(const DeleteNetworkAclRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteNetworkAclOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteNetworkAcl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DeleteNetworkAclEntryOutcome EnsClient::deleteNetworkAclEntry(const DeleteNetworkAclEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNetworkAclEntryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteNetworkAclEntryOutcome(DeleteNetworkAclEntryResult(outcome.result()));
|
||||
else
|
||||
return DeleteNetworkAclEntryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::deleteNetworkAclEntryAsync(const DeleteNetworkAclEntryRequest& request, const DeleteNetworkAclEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteNetworkAclEntry(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::DeleteNetworkAclEntryOutcomeCallable EnsClient::deleteNetworkAclEntryCallable(const DeleteNetworkAclEntryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteNetworkAclEntryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteNetworkAclEntry(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DeleteSecurityGroupOutcome EnsClient::deleteSecurityGroup(const DeleteSecurityGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3507,6 +3831,42 @@ EnsClient::DescribeMeasurementDataOutcomeCallable EnsClient::describeMeasurement
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DescribeMountTargetsOutcome EnsClient::describeMountTargets(const DescribeMountTargetsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMountTargetsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMountTargetsOutcome(DescribeMountTargetsResult(outcome.result()));
|
||||
else
|
||||
return DescribeMountTargetsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::describeMountTargetsAsync(const DescribeMountTargetsRequest& request, const DescribeMountTargetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMountTargets(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::DescribeMountTargetsOutcomeCallable EnsClient::describeMountTargetsCallable(const DescribeMountTargetsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMountTargetsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMountTargets(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DescribeNatGatewaysOutcome EnsClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3543,6 +3903,42 @@ EnsClient::DescribeNatGatewaysOutcomeCallable EnsClient::describeNatGatewaysCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DescribeNetworkAclsOutcome EnsClient::describeNetworkAcls(const DescribeNetworkAclsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNetworkAclsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNetworkAclsOutcome(DescribeNetworkAclsResult(outcome.result()));
|
||||
else
|
||||
return DescribeNetworkAclsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::describeNetworkAclsAsync(const DescribeNetworkAclsRequest& request, const DescribeNetworkAclsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNetworkAcls(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::DescribeNetworkAclsOutcomeCallable EnsClient::describeNetworkAclsCallable(const DescribeNetworkAclsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNetworkAclsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNetworkAcls(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DescribeNetworkAttributeOutcome EnsClient::describeNetworkAttribute(const DescribeNetworkAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3867,6 +4263,42 @@ EnsClient::DescribeSecurityGroupsOutcomeCallable EnsClient::describeSecurityGrou
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DescribeSelfImagesOutcome EnsClient::describeSelfImages(const DescribeSelfImagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSelfImagesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSelfImagesOutcome(DescribeSelfImagesResult(outcome.result()));
|
||||
else
|
||||
return DescribeSelfImagesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::describeSelfImagesAsync(const DescribeSelfImagesRequest& request, const DescribeSelfImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSelfImages(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::DescribeSelfImagesOutcomeCallable EnsClient::describeSelfImagesCallable(const DescribeSelfImagesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSelfImagesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSelfImages(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DescribeServcieScheduleOutcome EnsClient::describeServcieSchedule(const DescribeServcieScheduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4551,6 +4983,42 @@ EnsClient::ModifyEpnInstanceOutcomeCallable EnsClient::modifyEpnInstanceCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::ModifyFileSystemOutcome EnsClient::modifyFileSystem(const ModifyFileSystemRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyFileSystemOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyFileSystemOutcome(ModifyFileSystemResult(outcome.result()));
|
||||
else
|
||||
return ModifyFileSystemOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::modifyFileSystemAsync(const ModifyFileSystemRequest& request, const ModifyFileSystemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyFileSystem(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::ModifyFileSystemOutcomeCallable EnsClient::modifyFileSystemCallable(const ModifyFileSystemRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyFileSystemOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyFileSystem(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::ModifyForwardEntryOutcome EnsClient::modifyForwardEntry(const ModifyForwardEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5631,6 +6099,42 @@ EnsClient::ResetDeviceInstanceOutcomeCallable EnsClient::resetDeviceInstanceCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::ResizeDiskOutcome EnsClient::resizeDisk(const ResizeDiskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ResizeDiskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ResizeDiskOutcome(ResizeDiskResult(outcome.result()));
|
||||
else
|
||||
return ResizeDiskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::resizeDiskAsync(const ResizeDiskRequest& request, const ResizeDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, resizeDisk(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::ResizeDiskOutcomeCallable EnsClient::resizeDiskCallable(const ResizeDiskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ResizeDiskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->resizeDisk(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::RestartDeviceInstanceOutcome EnsClient::restartDeviceInstance(const RestartDeviceInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6351,6 +6855,42 @@ EnsClient::UnassignPrivateIpAddressesOutcomeCallable EnsClient::unassignPrivateI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::UnassociateNetworkAclOutcome EnsClient::unassociateNetworkAcl(const UnassociateNetworkAclRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnassociateNetworkAclOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnassociateNetworkAclOutcome(UnassociateNetworkAclResult(outcome.result()));
|
||||
else
|
||||
return UnassociateNetworkAclOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::unassociateNetworkAclAsync(const UnassociateNetworkAclRequest& request, const UnassociateNetworkAclAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unassociateNetworkAcl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::UnassociateNetworkAclOutcomeCallable EnsClient::unassociateNetworkAclCallable(const UnassociateNetworkAclRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnassociateNetworkAclOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unassociateNetworkAcl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::UpgradeAICInstanceImageOutcome EnsClient::upgradeAICInstanceImage(const UpgradeAICInstanceImageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
48
ens/src/model/AccosicateNetworkAclRequest.cc
Normal file
48
ens/src/model/AccosicateNetworkAclRequest.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/ens/model/AccosicateNetworkAclRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::AccosicateNetworkAclRequest;
|
||||
|
||||
AccosicateNetworkAclRequest::AccosicateNetworkAclRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "AccosicateNetworkAcl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AccosicateNetworkAclRequest::~AccosicateNetworkAclRequest() {}
|
||||
|
||||
std::string AccosicateNetworkAclRequest::getNetworkAclId() const {
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
void AccosicateNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) {
|
||||
networkAclId_ = networkAclId;
|
||||
setParameter(std::string("NetworkAclId"), networkAclId);
|
||||
}
|
||||
|
||||
std::vector<AccosicateNetworkAclRequest::Resource> AccosicateNetworkAclRequest::getResource() const {
|
||||
return resource_;
|
||||
}
|
||||
|
||||
void AccosicateNetworkAclRequest::setResource(const std::vector<AccosicateNetworkAclRequest::Resource> &resource) {
|
||||
resource_ = resource;
|
||||
for(int dep1 = 0; dep1 != resource.size(); dep1++) {
|
||||
setParameter(std::string("Resource") + "." + std::to_string(dep1 + 1) + ".ResourceId", resource[dep1].resourceId);
|
||||
setParameter(std::string("Resource") + "." + std::to_string(dep1 + 1) + ".ResourceType", resource[dep1].resourceType);
|
||||
}
|
||||
}
|
||||
|
||||
44
ens/src/model/AccosicateNetworkAclResult.cc
Normal file
44
ens/src/model/AccosicateNetworkAclResult.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/ens/model/AccosicateNetworkAclResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
AccosicateNetworkAclResult::AccosicateNetworkAclResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AccosicateNetworkAclResult::AccosicateNetworkAclResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AccosicateNetworkAclResult::~AccosicateNetworkAclResult()
|
||||
{}
|
||||
|
||||
void AccosicateNetworkAclResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
ens/src/model/CreateFileSystemRequest.cc
Normal file
45
ens/src/model/CreateFileSystemRequest.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/ens/model/CreateFileSystemRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateFileSystemRequest;
|
||||
|
||||
CreateFileSystemRequest::CreateFileSystemRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateFileSystem") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CreateFileSystemRequest::~CreateFileSystemRequest() {}
|
||||
|
||||
std::vector<CreateFileSystemRequest::OrderDetails> CreateFileSystemRequest::getOrderDetails() const {
|
||||
return orderDetails_;
|
||||
}
|
||||
|
||||
void CreateFileSystemRequest::setOrderDetails(const std::vector<CreateFileSystemRequest::OrderDetails> &orderDetails) {
|
||||
orderDetails_ = orderDetails;
|
||||
for(int dep1 = 0; dep1 != orderDetails.size(); dep1++) {
|
||||
setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".FileSystemName", orderDetails[dep1].fileSystemName);
|
||||
setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".EnsRegionId", orderDetails[dep1].ensRegionId);
|
||||
setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".MountTargetDomain", orderDetails[dep1].mountTargetDomain);
|
||||
setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".ProtocolType", orderDetails[dep1].protocolType);
|
||||
setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".NetworkId", orderDetails[dep1].networkId);
|
||||
setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".ChargeType", orderDetails[dep1].chargeType);
|
||||
setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".StorgeType", orderDetails[dep1].storgeType);
|
||||
setParameter(std::string("OrderDetails") + "." + std::to_string(dep1 + 1) + ".OrderType", orderDetails[dep1].orderType);
|
||||
}
|
||||
}
|
||||
|
||||
67
ens/src/model/CreateFileSystemResult.cc
Normal file
67
ens/src/model/CreateFileSystemResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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/ens/model/CreateFileSystemResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateFileSystemResult::CreateFileSystemResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFileSystemResult::CreateFileSystemResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFileSystemResult::~CreateFileSystemResult()
|
||||
{}
|
||||
|
||||
void CreateFileSystemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAllocationId = value["AllocationId"]["AllocationId"];
|
||||
for (const auto &item : allAllocationId)
|
||||
allocationId_.push_back(item.asString());
|
||||
auto allUnAllocationId = value["UnAllocationId"]["UnAllocationId"];
|
||||
for (const auto &item : allUnAllocationId)
|
||||
unAllocationId_.push_back(item.asString());
|
||||
if(!value["BizStatusCode"].isNull())
|
||||
bizStatusCode_ = value["BizStatusCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFileSystemResult::getBizStatusCode()const
|
||||
{
|
||||
return bizStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateFileSystemResult::getAllocationId()const
|
||||
{
|
||||
return allocationId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateFileSystemResult::getUnAllocationId()const
|
||||
{
|
||||
return unAllocationId_;
|
||||
}
|
||||
|
||||
63
ens/src/model/CreateMountTargetRequest.cc
Normal file
63
ens/src/model/CreateMountTargetRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/ens/model/CreateMountTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateMountTargetRequest;
|
||||
|
||||
CreateMountTargetRequest::CreateMountTargetRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateMountTarget") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMountTargetRequest::~CreateMountTargetRequest() {}
|
||||
|
||||
std::string CreateMountTargetRequest::getMountTargetName() const {
|
||||
return mountTargetName_;
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setMountTargetName(const std::string &mountTargetName) {
|
||||
mountTargetName_ = mountTargetName;
|
||||
setParameter(std::string("MountTargetName"), mountTargetName);
|
||||
}
|
||||
|
||||
std::string CreateMountTargetRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string CreateMountTargetRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
std::string CreateMountTargetRequest::getNetWorkId() const {
|
||||
return netWorkId_;
|
||||
}
|
||||
|
||||
void CreateMountTargetRequest::setNetWorkId(const std::string &netWorkId) {
|
||||
netWorkId_ = netWorkId;
|
||||
setParameter(std::string("NetWorkId"), netWorkId);
|
||||
}
|
||||
|
||||
51
ens/src/model/CreateMountTargetResult.cc
Normal file
51
ens/src/model/CreateMountTargetResult.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/ens/model/CreateMountTargetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateMountTargetResult::CreateMountTargetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMountTargetResult::CreateMountTargetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMountTargetResult::~CreateMountTargetResult()
|
||||
{}
|
||||
|
||||
void CreateMountTargetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMountTargetResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
108
ens/src/model/CreateNetworkAclEntryRequest.cc
Normal file
108
ens/src/model/CreateNetworkAclEntryRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/CreateNetworkAclEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateNetworkAclEntryRequest;
|
||||
|
||||
CreateNetworkAclEntryRequest::CreateNetworkAclEntryRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateNetworkAclEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNetworkAclEntryRequest::~CreateNetworkAclEntryRequest() {}
|
||||
|
||||
std::string CreateNetworkAclEntryRequest::getNetworkAclEntryName() const {
|
||||
return networkAclEntryName_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclEntryRequest::setNetworkAclEntryName(const std::string &networkAclEntryName) {
|
||||
networkAclEntryName_ = networkAclEntryName;
|
||||
setParameter(std::string("NetworkAclEntryName"), networkAclEntryName);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclEntryRequest::getProtocol() const {
|
||||
return protocol_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclEntryRequest::setProtocol(const std::string &protocol) {
|
||||
protocol_ = protocol;
|
||||
setParameter(std::string("Protocol"), protocol);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclEntryRequest::getPortRange() const {
|
||||
return portRange_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclEntryRequest::setPortRange(const std::string &portRange) {
|
||||
portRange_ = portRange;
|
||||
setParameter(std::string("PortRange"), portRange);
|
||||
}
|
||||
|
||||
int CreateNetworkAclEntryRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclEntryRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclEntryRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclEntryRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclEntryRequest::getNetworkAclId() const {
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclEntryRequest::setNetworkAclId(const std::string &networkAclId) {
|
||||
networkAclId_ = networkAclId;
|
||||
setParameter(std::string("NetworkAclId"), networkAclId);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclEntryRequest::getDirection() const {
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclEntryRequest::setDirection(const std::string &direction) {
|
||||
direction_ = direction;
|
||||
setParameter(std::string("Direction"), direction);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclEntryRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclEntryRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclEntryRequest::getCidrBlock() const {
|
||||
return cidrBlock_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclEntryRequest::setCidrBlock(const std::string &cidrBlock) {
|
||||
cidrBlock_ = cidrBlock;
|
||||
setParameter(std::string("CidrBlock"), cidrBlock);
|
||||
}
|
||||
|
||||
51
ens/src/model/CreateNetworkAclEntryResult.cc
Normal file
51
ens/src/model/CreateNetworkAclEntryResult.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/ens/model/CreateNetworkAclEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateNetworkAclEntryResult::CreateNetworkAclEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNetworkAclEntryResult::CreateNetworkAclEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNetworkAclEntryResult::~CreateNetworkAclEntryResult()
|
||||
{}
|
||||
|
||||
void CreateNetworkAclEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["NetworkAclEntryId"].isNull())
|
||||
networkAclEntryId_ = value["NetworkAclEntryId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclEntryResult::getNetworkAclEntryId()const
|
||||
{
|
||||
return networkAclEntryId_;
|
||||
}
|
||||
|
||||
45
ens/src/model/CreateNetworkAclRequest.cc
Normal file
45
ens/src/model/CreateNetworkAclRequest.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/ens/model/CreateNetworkAclRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateNetworkAclRequest;
|
||||
|
||||
CreateNetworkAclRequest::CreateNetworkAclRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateNetworkAcl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNetworkAclRequest::~CreateNetworkAclRequest() {}
|
||||
|
||||
std::string CreateNetworkAclRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclRequest::getNetworkAclName() const {
|
||||
return networkAclName_;
|
||||
}
|
||||
|
||||
void CreateNetworkAclRequest::setNetworkAclName(const std::string &networkAclName) {
|
||||
networkAclName_ = networkAclName;
|
||||
setParameter(std::string("NetworkAclName"), networkAclName);
|
||||
}
|
||||
|
||||
51
ens/src/model/CreateNetworkAclResult.cc
Normal file
51
ens/src/model/CreateNetworkAclResult.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/ens/model/CreateNetworkAclResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateNetworkAclResult::CreateNetworkAclResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNetworkAclResult::CreateNetworkAclResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNetworkAclResult::~CreateNetworkAclResult()
|
||||
{}
|
||||
|
||||
void CreateNetworkAclResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["NetworkAclId"].isNull())
|
||||
networkAclId_ = value["NetworkAclId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNetworkAclResult::getNetworkAclId()const
|
||||
{
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
45
ens/src/model/DeleteFileSystemRequest.cc
Normal file
45
ens/src/model/DeleteFileSystemRequest.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/ens/model/DeleteFileSystemRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DeleteFileSystemRequest;
|
||||
|
||||
DeleteFileSystemRequest::DeleteFileSystemRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteFileSystem") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteFileSystemRequest::~DeleteFileSystemRequest() {}
|
||||
|
||||
std::string DeleteFileSystemRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void DeleteFileSystemRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string DeleteFileSystemRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DeleteFileSystemRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
44
ens/src/model/DeleteFileSystemResult.cc
Normal file
44
ens/src/model/DeleteFileSystemResult.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/ens/model/DeleteFileSystemResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DeleteFileSystemResult::DeleteFileSystemResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFileSystemResult::DeleteFileSystemResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFileSystemResult::~DeleteFileSystemResult()
|
||||
{}
|
||||
|
||||
void DeleteFileSystemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
ens/src/model/DeleteMountTargetRequest.cc
Normal file
54
ens/src/model/DeleteMountTargetRequest.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/ens/model/DeleteMountTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DeleteMountTargetRequest;
|
||||
|
||||
DeleteMountTargetRequest::DeleteMountTargetRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteMountTarget") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMountTargetRequest::~DeleteMountTargetRequest() {}
|
||||
|
||||
std::string DeleteMountTargetRequest::getMountTargetName() const {
|
||||
return mountTargetName_;
|
||||
}
|
||||
|
||||
void DeleteMountTargetRequest::setMountTargetName(const std::string &mountTargetName) {
|
||||
mountTargetName_ = mountTargetName;
|
||||
setParameter(std::string("MountTargetName"), mountTargetName);
|
||||
}
|
||||
|
||||
std::string DeleteMountTargetRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void DeleteMountTargetRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string DeleteMountTargetRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DeleteMountTargetRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
44
ens/src/model/DeleteMountTargetResult.cc
Normal file
44
ens/src/model/DeleteMountTargetResult.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/ens/model/DeleteMountTargetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DeleteMountTargetResult::DeleteMountTargetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMountTargetResult::DeleteMountTargetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMountTargetResult::~DeleteMountTargetResult()
|
||||
{}
|
||||
|
||||
void DeleteMountTargetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
ens/src/model/DeleteNetworkAclEntryRequest.cc
Normal file
36
ens/src/model/DeleteNetworkAclEntryRequest.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/ens/model/DeleteNetworkAclEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DeleteNetworkAclEntryRequest;
|
||||
|
||||
DeleteNetworkAclEntryRequest::DeleteNetworkAclEntryRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteNetworkAclEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNetworkAclEntryRequest::~DeleteNetworkAclEntryRequest() {}
|
||||
|
||||
std::string DeleteNetworkAclEntryRequest::getNetworkAclEntryId() const {
|
||||
return networkAclEntryId_;
|
||||
}
|
||||
|
||||
void DeleteNetworkAclEntryRequest::setNetworkAclEntryId(const std::string &networkAclEntryId) {
|
||||
networkAclEntryId_ = networkAclEntryId;
|
||||
setParameter(std::string("NetworkAclEntryId"), networkAclEntryId);
|
||||
}
|
||||
|
||||
44
ens/src/model/DeleteNetworkAclEntryResult.cc
Normal file
44
ens/src/model/DeleteNetworkAclEntryResult.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/ens/model/DeleteNetworkAclEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DeleteNetworkAclEntryResult::DeleteNetworkAclEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNetworkAclEntryResult::DeleteNetworkAclEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNetworkAclEntryResult::~DeleteNetworkAclEntryResult()
|
||||
{}
|
||||
|
||||
void DeleteNetworkAclEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
ens/src/model/DeleteNetworkAclRequest.cc
Normal file
36
ens/src/model/DeleteNetworkAclRequest.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/ens/model/DeleteNetworkAclRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DeleteNetworkAclRequest;
|
||||
|
||||
DeleteNetworkAclRequest::DeleteNetworkAclRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteNetworkAcl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNetworkAclRequest::~DeleteNetworkAclRequest() {}
|
||||
|
||||
std::string DeleteNetworkAclRequest::getNetworkAclId() const {
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
void DeleteNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) {
|
||||
networkAclId_ = networkAclId;
|
||||
setParameter(std::string("NetworkAclId"), networkAclId);
|
||||
}
|
||||
|
||||
44
ens/src/model/DeleteNetworkAclResult.cc
Normal file
44
ens/src/model/DeleteNetworkAclResult.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/ens/model/DeleteNetworkAclResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DeleteNetworkAclResult::DeleteNetworkAclResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNetworkAclResult::DeleteNetworkAclResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNetworkAclResult::~DeleteNetworkAclResult()
|
||||
{}
|
||||
|
||||
void DeleteNetworkAclResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -115,6 +115,15 @@ void DescribeInstancesRequest::setStatus(const std::string &status) {
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getIntranetIp() const {
|
||||
return intranetIp_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setIntranetIp(const std::string &intranetIp) {
|
||||
intranetIp_ = intranetIp;
|
||||
setParameter(std::string("IntranetIp"), intranetIp);
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getImageId() const {
|
||||
return imageId_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.status = valueInstancesInstance["Status"].asString();
|
||||
if(!valueInstancesInstance["SpecName"].isNull())
|
||||
instancesObject.specName = valueInstancesInstance["SpecName"].asString();
|
||||
if(!valueInstancesInstance["InstanceTypeFamily"].isNull())
|
||||
instancesObject.instanceTypeFamily = valueInstancesInstance["InstanceTypeFamily"].asString();
|
||||
if(!valueInstancesInstance["InstanceResourceType"].isNull())
|
||||
instancesObject.instanceResourceType = valueInstancesInstance["InstanceResourceType"].asString();
|
||||
if(!valueInstancesInstance["HostName"].isNull())
|
||||
@@ -69,10 +71,10 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString();
|
||||
if(!valueInstancesInstance["Disk"].isNull())
|
||||
instancesObject.disk = std::stoi(valueInstancesInstance["Disk"].asString());
|
||||
if(!valueInstancesInstance["Memory"].isNull())
|
||||
instancesObject.memory = std::stoi(valueInstancesInstance["Memory"].asString());
|
||||
if(!valueInstancesInstance["OSName"].isNull())
|
||||
instancesObject.oSName = valueInstancesInstance["OSName"].asString();
|
||||
if(!valueInstancesInstance["Memory"].isNull())
|
||||
instancesObject.memory = std::stoi(valueInstancesInstance["Memory"].asString());
|
||||
if(!valueInstancesInstance["ImageId"].isNull())
|
||||
instancesObject.imageId = valueInstancesInstance["ImageId"].asString();
|
||||
auto allDataDiskNode = valueInstancesInstance["DataDisk"]["DataDiskItem"];
|
||||
|
||||
72
ens/src/model/DescribeMountTargetsRequest.cc
Normal file
72
ens/src/model/DescribeMountTargetsRequest.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/ens/model/DescribeMountTargetsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeMountTargetsRequest;
|
||||
|
||||
DescribeMountTargetsRequest::DescribeMountTargetsRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeMountTargets") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMountTargetsRequest::~DescribeMountTargetsRequest() {}
|
||||
|
||||
std::string DescribeMountTargetsRequest::getMountTargetName() const {
|
||||
return mountTargetName_;
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setMountTargetName(const std::string &mountTargetName) {
|
||||
mountTargetName_ = mountTargetName;
|
||||
setParameter(std::string("MountTargetName"), mountTargetName);
|
||||
}
|
||||
|
||||
int DescribeMountTargetsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeMountTargetsRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
int DescribeMountTargetsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeMountTargetsRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void DescribeMountTargetsRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
88
ens/src/model/DescribeMountTargetsResult.cc
Normal file
88
ens/src/model/DescribeMountTargetsResult.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/ens/model/DescribeMountTargetsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeMountTargetsResult::DescribeMountTargetsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMountTargetsResult::DescribeMountTargetsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMountTargetsResult::~DescribeMountTargetsResult()
|
||||
{}
|
||||
|
||||
void DescribeMountTargetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMountTargetsNode = value["MountTargets"]["MountTargetsItem"];
|
||||
for (auto valueMountTargetsMountTargetsItem : allMountTargetsNode)
|
||||
{
|
||||
MountTargetsItem mountTargetsObject;
|
||||
if(!valueMountTargetsMountTargetsItem["MountTargetDomain"].isNull())
|
||||
mountTargetsObject.mountTargetDomain = valueMountTargetsMountTargetsItem["MountTargetDomain"].asString();
|
||||
if(!valueMountTargetsMountTargetsItem["MountTargetName"].isNull())
|
||||
mountTargetsObject.mountTargetName = valueMountTargetsMountTargetsItem["MountTargetName"].asString();
|
||||
if(!valueMountTargetsMountTargetsItem["NetWorkId"].isNull())
|
||||
mountTargetsObject.netWorkId = valueMountTargetsMountTargetsItem["NetWorkId"].asString();
|
||||
if(!valueMountTargetsMountTargetsItem["Status"].isNull())
|
||||
mountTargetsObject.status = valueMountTargetsMountTargetsItem["Status"].asString();
|
||||
if(!valueMountTargetsMountTargetsItem["EnsRegionId"].isNull())
|
||||
mountTargetsObject.ensRegionId = valueMountTargetsMountTargetsItem["EnsRegionId"].asString();
|
||||
if(!valueMountTargetsMountTargetsItem["FileSystemId"].isNull())
|
||||
mountTargetsObject.fileSystemId = valueMountTargetsMountTargetsItem["FileSystemId"].asString();
|
||||
mountTargets_.push_back(mountTargetsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeMountTargetsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeMountTargetsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeMountTargetsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMountTargetsResult::MountTargetsItem> DescribeMountTargetsResult::getMountTargets()const
|
||||
{
|
||||
return mountTargets_;
|
||||
}
|
||||
|
||||
72
ens/src/model/DescribeNetworkAclsRequest.cc
Normal file
72
ens/src/model/DescribeNetworkAclsRequest.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/ens/model/DescribeNetworkAclsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeNetworkAclsRequest;
|
||||
|
||||
DescribeNetworkAclsRequest::DescribeNetworkAclsRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeNetworkAcls") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNetworkAclsRequest::~DescribeNetworkAclsRequest() {}
|
||||
|
||||
std::string DescribeNetworkAclsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeNetworkAclsRequest::setPageNumber(const std::string &pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), pageNumber);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAclsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeNetworkAclsRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAclsRequest::getNetworkAclId() const {
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
void DescribeNetworkAclsRequest::setNetworkAclId(const std::string &networkAclId) {
|
||||
networkAclId_ = networkAclId;
|
||||
setParameter(std::string("NetworkAclId"), networkAclId);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAclsRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeNetworkAclsRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAclsRequest::getNetworkAclName() const {
|
||||
return networkAclName_;
|
||||
}
|
||||
|
||||
void DescribeNetworkAclsRequest::setNetworkAclName(const std::string &networkAclName) {
|
||||
networkAclName_ = networkAclName;
|
||||
setParameter(std::string("NetworkAclName"), networkAclName);
|
||||
}
|
||||
|
||||
148
ens/src/model/DescribeNetworkAclsResult.cc
Normal file
148
ens/src/model/DescribeNetworkAclsResult.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeNetworkAclsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeNetworkAclsResult::DescribeNetworkAclsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNetworkAclsResult::DescribeNetworkAclsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNetworkAclsResult::~DescribeNetworkAclsResult()
|
||||
{}
|
||||
|
||||
void DescribeNetworkAclsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNetworkAclsNode = value["NetworkAcls"]["NetworkAcl"];
|
||||
for (auto valueNetworkAclsNetworkAcl : allNetworkAclsNode)
|
||||
{
|
||||
NetworkAcl networkAclsObject;
|
||||
if(!valueNetworkAclsNetworkAcl["Status"].isNull())
|
||||
networkAclsObject.status = valueNetworkAclsNetworkAcl["Status"].asString();
|
||||
if(!valueNetworkAclsNetworkAcl["CreationTime"].isNull())
|
||||
networkAclsObject.creationTime = valueNetworkAclsNetworkAcl["CreationTime"].asString();
|
||||
if(!valueNetworkAclsNetworkAcl["Description"].isNull())
|
||||
networkAclsObject.description = valueNetworkAclsNetworkAcl["Description"].asString();
|
||||
if(!valueNetworkAclsNetworkAcl["NetworkAclId"].isNull())
|
||||
networkAclsObject.networkAclId = valueNetworkAclsNetworkAcl["NetworkAclId"].asString();
|
||||
if(!valueNetworkAclsNetworkAcl["NetworkAclName"].isNull())
|
||||
networkAclsObject.networkAclName = valueNetworkAclsNetworkAcl["NetworkAclName"].asString();
|
||||
auto allIngressAclEntriesNode = valueNetworkAclsNetworkAcl["IngressAclEntries"]["IngressAclRule"];
|
||||
for (auto valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule : allIngressAclEntriesNode)
|
||||
{
|
||||
NetworkAcl::IngressAclRule ingressAclEntriesObject;
|
||||
if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Policy"].isNull())
|
||||
ingressAclEntriesObject.policy = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Policy"].asString();
|
||||
if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["NetworkAclEntryId"].isNull())
|
||||
ingressAclEntriesObject.networkAclEntryId = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["NetworkAclEntryId"].asString();
|
||||
if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["NetworkAclEntryName"].isNull())
|
||||
ingressAclEntriesObject.networkAclEntryName = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["NetworkAclEntryName"].asString();
|
||||
if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["CidrBlock"].isNull())
|
||||
ingressAclEntriesObject.cidrBlock = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["CidrBlock"].asString();
|
||||
if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Protocol"].isNull())
|
||||
ingressAclEntriesObject.protocol = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Protocol"].asString();
|
||||
if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["PortRange"].isNull())
|
||||
ingressAclEntriesObject.portRange = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["PortRange"].asString();
|
||||
if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Priority"].isNull())
|
||||
ingressAclEntriesObject.priority = std::stoi(valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Priority"].asString());
|
||||
if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Type"].isNull())
|
||||
ingressAclEntriesObject.type = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Type"].asString();
|
||||
if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Description"].isNull())
|
||||
ingressAclEntriesObject.description = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclRule["Description"].asString();
|
||||
networkAclsObject.ingressAclEntries.push_back(ingressAclEntriesObject);
|
||||
}
|
||||
auto allEgressAclEntriesNode = valueNetworkAclsNetworkAcl["EgressAclEntries"]["EgressAclRule"];
|
||||
for (auto valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule : allEgressAclEntriesNode)
|
||||
{
|
||||
NetworkAcl::EgressAclRule egressAclEntriesObject;
|
||||
if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Policy"].isNull())
|
||||
egressAclEntriesObject.policy = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Policy"].asString();
|
||||
if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["NetworkAclEntryId"].isNull())
|
||||
egressAclEntriesObject.networkAclEntryId = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["NetworkAclEntryId"].asString();
|
||||
if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["NetworkAclEntryName"].isNull())
|
||||
egressAclEntriesObject.networkAclEntryName = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["NetworkAclEntryName"].asString();
|
||||
if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["CidrBlock"].isNull())
|
||||
egressAclEntriesObject.cidrBlock = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["CidrBlock"].asString();
|
||||
if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Protocol"].isNull())
|
||||
egressAclEntriesObject.protocol = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Protocol"].asString();
|
||||
if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["PortRange"].isNull())
|
||||
egressAclEntriesObject.portRange = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["PortRange"].asString();
|
||||
if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Priority"].isNull())
|
||||
egressAclEntriesObject.priority = std::stoi(valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Priority"].asString());
|
||||
if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Type"].isNull())
|
||||
egressAclEntriesObject.type = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Type"].asString();
|
||||
if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Description"].isNull())
|
||||
egressAclEntriesObject.description = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclRule["Description"].asString();
|
||||
networkAclsObject.egressAclEntries.push_back(egressAclEntriesObject);
|
||||
}
|
||||
auto allResourcesNode = valueNetworkAclsNetworkAcl["Resources"]["resource"];
|
||||
for (auto valueNetworkAclsNetworkAclResourcesresource : allResourcesNode)
|
||||
{
|
||||
NetworkAcl::Resource resourcesObject;
|
||||
if(!valueNetworkAclsNetworkAclResourcesresource["Status"].isNull())
|
||||
resourcesObject.status = valueNetworkAclsNetworkAclResourcesresource["Status"].asString();
|
||||
if(!valueNetworkAclsNetworkAclResourcesresource["ResourceType"].isNull())
|
||||
resourcesObject.resourceType = valueNetworkAclsNetworkAclResourcesresource["ResourceType"].asString();
|
||||
if(!valueNetworkAclsNetworkAclResourcesresource["ResourceId"].isNull())
|
||||
resourcesObject.resourceId = valueNetworkAclsNetworkAclResourcesresource["ResourceId"].asString();
|
||||
if(!valueNetworkAclsNetworkAclResourcesresource["EnsRegionId"].isNull())
|
||||
resourcesObject.ensRegionId = valueNetworkAclsNetworkAclResourcesresource["EnsRegionId"].asString();
|
||||
networkAclsObject.resources.push_back(resourcesObject);
|
||||
}
|
||||
networkAcls_.push_back(networkAclsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeNetworkAclsResult::NetworkAcl> DescribeNetworkAclsResult::getNetworkAcls()const
|
||||
{
|
||||
return networkAcls_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAclsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAclsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAclsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -68,6 +68,8 @@ void DescribeNetworkAttributeResult::parse(const std::string &payload)
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["RouterTableId"].isNull())
|
||||
routerTableId_ = value["RouterTableId"].asString();
|
||||
if(!value["NetworkAclId"].isNull())
|
||||
networkAclId_ = value["NetworkAclId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -91,6 +93,11 @@ std::string DescribeNetworkAttributeResult::getCreatedTime()const
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAttributeResult::getNetworkAclId()const
|
||||
{
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeNetworkAttributeResult::getVSwitchIds()const
|
||||
{
|
||||
return vSwitchIds_;
|
||||
|
||||
@@ -59,6 +59,8 @@ void DescribeNetworksResult::parse(const std::string &payload)
|
||||
networksObject.createdTime = valueNetworksNetwork["CreatedTime"].asString();
|
||||
if(!valueNetworksNetwork["RouterTableId"].isNull())
|
||||
networksObject.routerTableId = valueNetworksNetwork["RouterTableId"].asString();
|
||||
if(!valueNetworksNetwork["NetworkAclId"].isNull())
|
||||
networksObject.networkAclId = valueNetworksNetwork["NetworkAclId"].asString();
|
||||
auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"];
|
||||
for (auto value : allVSwitchIds)
|
||||
networksObject.vSwitchIds.push_back(value.asString());
|
||||
|
||||
63
ens/src/model/DescribeSelfImagesRequest.cc
Normal file
63
ens/src/model/DescribeSelfImagesRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeSelfImagesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeSelfImagesRequest;
|
||||
|
||||
DescribeSelfImagesRequest::DescribeSelfImagesRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeSelfImages") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSelfImagesRequest::~DescribeSelfImagesRequest() {}
|
||||
|
||||
std::string DescribeSelfImagesRequest::getImageId() const {
|
||||
return imageId_;
|
||||
}
|
||||
|
||||
void DescribeSelfImagesRequest::setImageId(const std::string &imageId) {
|
||||
imageId_ = imageId;
|
||||
setParameter(std::string("ImageId"), imageId);
|
||||
}
|
||||
|
||||
int DescribeSelfImagesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeSelfImagesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeSelfImagesRequest::getImageName() const {
|
||||
return imageName_;
|
||||
}
|
||||
|
||||
void DescribeSelfImagesRequest::setImageName(const std::string &imageName) {
|
||||
imageName_ = imageName;
|
||||
setParameter(std::string("ImageName"), imageName);
|
||||
}
|
||||
|
||||
int DescribeSelfImagesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSelfImagesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
82
ens/src/model/DescribeSelfImagesResult.cc
Normal file
82
ens/src/model/DescribeSelfImagesResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeSelfImagesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeSelfImagesResult::DescribeSelfImagesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSelfImagesResult::DescribeSelfImagesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSelfImagesResult::~DescribeSelfImagesResult()
|
||||
{}
|
||||
|
||||
void DescribeSelfImagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allImagesNode = value["Images"]["Image"];
|
||||
for (auto valueImagesImage : allImagesNode)
|
||||
{
|
||||
Image imagesObject;
|
||||
if(!valueImagesImage["Architecture"].isNull())
|
||||
imagesObject.architecture = valueImagesImage["Architecture"].asString();
|
||||
if(!valueImagesImage["CreationTime"].isNull())
|
||||
imagesObject.creationTime = valueImagesImage["CreationTime"].asString();
|
||||
if(!valueImagesImage["ImageId"].isNull())
|
||||
imagesObject.imageId = valueImagesImage["ImageId"].asString();
|
||||
if(!valueImagesImage["ImageName"].isNull())
|
||||
imagesObject.imageName = valueImagesImage["ImageName"].asString();
|
||||
if(!valueImagesImage["ImageOwnerAlias"].isNull())
|
||||
imagesObject.imageOwnerAlias = valueImagesImage["ImageOwnerAlias"].asString();
|
||||
if(!valueImagesImage["ImageSize"].isNull())
|
||||
imagesObject.imageSize = valueImagesImage["ImageSize"].asString();
|
||||
if(!valueImagesImage["InstanceId"].isNull())
|
||||
imagesObject.instanceId = valueImagesImage["InstanceId"].asString();
|
||||
if(!valueImagesImage["OsVersion"].isNull())
|
||||
imagesObject.osVersion = valueImagesImage["OsVersion"].asString();
|
||||
if(!valueImagesImage["Platform"].isNull())
|
||||
imagesObject.platform = valueImagesImage["Platform"].asString();
|
||||
if(!valueImagesImage["Status"].isNull())
|
||||
imagesObject.status = valueImagesImage["Status"].asString();
|
||||
images_.push_back(imagesObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSelfImagesResult::Image> DescribeSelfImagesResult::getImages()const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
|
||||
int DescribeSelfImagesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
ens/src/model/ModifyFileSystemRequest.cc
Normal file
54
ens/src/model/ModifyFileSystemRequest.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/ens/model/ModifyFileSystemRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::ModifyFileSystemRequest;
|
||||
|
||||
ModifyFileSystemRequest::ModifyFileSystemRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "ModifyFileSystem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyFileSystemRequest::~ModifyFileSystemRequest() {}
|
||||
|
||||
std::string ModifyFileSystemRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyFileSystemRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string ModifyFileSystemRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void ModifyFileSystemRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string ModifyFileSystemRequest::getFileSystemId() const {
|
||||
return fileSystemId_;
|
||||
}
|
||||
|
||||
void ModifyFileSystemRequest::setFileSystemId(const std::string &fileSystemId) {
|
||||
fileSystemId_ = fileSystemId;
|
||||
setParameter(std::string("FileSystemId"), fileSystemId);
|
||||
}
|
||||
|
||||
44
ens/src/model/ModifyFileSystemResult.cc
Normal file
44
ens/src/model/ModifyFileSystemResult.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/ens/model/ModifyFileSystemResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
ModifyFileSystemResult::ModifyFileSystemResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyFileSystemResult::ModifyFileSystemResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyFileSystemResult::~ModifyFileSystemResult()
|
||||
{}
|
||||
|
||||
void ModifyFileSystemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
ens/src/model/ResizeDiskRequest.cc
Normal file
45
ens/src/model/ResizeDiskRequest.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/ens/model/ResizeDiskRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::ResizeDiskRequest;
|
||||
|
||||
ResizeDiskRequest::ResizeDiskRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "ResizeDisk") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResizeDiskRequest::~ResizeDiskRequest() {}
|
||||
|
||||
std::string ResizeDiskRequest::getDiskId() const {
|
||||
return diskId_;
|
||||
}
|
||||
|
||||
void ResizeDiskRequest::setDiskId(const std::string &diskId) {
|
||||
diskId_ = diskId;
|
||||
setParameter(std::string("DiskId"), diskId);
|
||||
}
|
||||
|
||||
std::string ResizeDiskRequest::getNewSize() const {
|
||||
return newSize_;
|
||||
}
|
||||
|
||||
void ResizeDiskRequest::setNewSize(const std::string &newSize) {
|
||||
newSize_ = newSize;
|
||||
setParameter(std::string("NewSize"), newSize);
|
||||
}
|
||||
|
||||
51
ens/src/model/ResizeDiskResult.cc
Normal file
51
ens/src/model/ResizeDiskResult.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/ens/model/ResizeDiskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
ResizeDiskResult::ResizeDiskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResizeDiskResult::ResizeDiskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResizeDiskResult::~ResizeDiskResult()
|
||||
{}
|
||||
|
||||
void ResizeDiskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ResizeDiskResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
48
ens/src/model/UnassociateNetworkAclRequest.cc
Normal file
48
ens/src/model/UnassociateNetworkAclRequest.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/ens/model/UnassociateNetworkAclRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::UnassociateNetworkAclRequest;
|
||||
|
||||
UnassociateNetworkAclRequest::UnassociateNetworkAclRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "UnassociateNetworkAcl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnassociateNetworkAclRequest::~UnassociateNetworkAclRequest() {}
|
||||
|
||||
std::string UnassociateNetworkAclRequest::getNetworkAclId() const {
|
||||
return networkAclId_;
|
||||
}
|
||||
|
||||
void UnassociateNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) {
|
||||
networkAclId_ = networkAclId;
|
||||
setParameter(std::string("NetworkAclId"), networkAclId);
|
||||
}
|
||||
|
||||
std::vector<UnassociateNetworkAclRequest::Resource> UnassociateNetworkAclRequest::getResource() const {
|
||||
return resource_;
|
||||
}
|
||||
|
||||
void UnassociateNetworkAclRequest::setResource(const std::vector<UnassociateNetworkAclRequest::Resource> &resource) {
|
||||
resource_ = resource;
|
||||
for(int dep1 = 0; dep1 != resource.size(); dep1++) {
|
||||
setParameter(std::string("Resource") + "." + std::to_string(dep1 + 1) + ".ResourceId", resource[dep1].resourceId);
|
||||
setParameter(std::string("Resource") + "." + std::to_string(dep1 + 1) + ".ResourceType", resource[dep1].resourceType);
|
||||
}
|
||||
}
|
||||
|
||||
44
ens/src/model/UnassociateNetworkAclResult.cc
Normal file
44
ens/src/model/UnassociateNetworkAclResult.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/ens/model/UnassociateNetworkAclResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
UnassociateNetworkAclResult::UnassociateNetworkAclResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnassociateNetworkAclResult::UnassociateNetworkAclResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnassociateNetworkAclResult::~UnassociateNetworkAclResult()
|
||||
{}
|
||||
|
||||
void UnassociateNetworkAclResult::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