Add name.
This commit is contained in:
@@ -34,6 +34,8 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Option
|
||||
{
|
||||
std::string scopeName;
|
||||
std::string kind;
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
@@ -31,21 +31,21 @@ Devops_rdcClient::Devops_rdcClient(const Credentials &credentials, const ClientC
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.9.6");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Devops_rdcClient::Devops_rdcClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.9.6");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Devops_rdcClient::Devops_rdcClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.9.6");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Devops_rdcClient::~Devops_rdcClient()
|
||||
|
||||
@@ -47,6 +47,10 @@ void GetProjectOptionResult::parse(const std::string &payload)
|
||||
objectObject.name = valueObjectOption["Name"].asString();
|
||||
if(!valueObjectOption["Value"].isNull())
|
||||
objectObject.value = valueObjectOption["Value"].asString();
|
||||
if(!valueObjectOption["Kind"].isNull())
|
||||
objectObject.kind = valueObjectOption["Kind"].asString();
|
||||
if(!valueObjectOption["ScopeName"].isNull())
|
||||
objectObject.scopeName = valueObjectOption["ScopeName"].asString();
|
||||
object_.push_back(objectObject);
|
||||
}
|
||||
if(!value["Successful"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user