Support name.

This commit is contained in:
sdk-team
2021-06-03 12:38:23 +00:00
parent 3a2b4a3b0a
commit 79b5e173b0
5 changed files with 10 additions and 4 deletions

View File

@@ -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, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.9.6");
}
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, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.9.6");
}
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, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.9.6");
}
Devops_rdcClient::~Devops_rdcClient()

View File

@@ -47,6 +47,8 @@ void ListDevopsScenarioFieldConfigResult::parse(const std::string &payload)
objectObject.id = valueObjectScenarioFieldConfig["Id"].asString();
if(!valueObjectScenarioFieldConfig["Type"].isNull())
objectObject.type = valueObjectScenarioFieldConfig["Type"].asString();
if(!valueObjectScenarioFieldConfig["Name"].isNull())
objectObject.name = valueObjectScenarioFieldConfig["Name"].asString();
object_.push_back(objectObject);
}
if(!value["Successful"].isNull())