Add name.

This commit is contained in:
sdk-team
2021-06-03 14:11:54 +00:00
parent 79b5e173b0
commit 9e1db6ede8
5 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
2021-06-03 Version: 1.36.764
- Add name.
2021-06-03 Version: 1.36.763
- Support name.

View File

@@ -1 +1 @@
1.36.763
1.36.764

View File

@@ -34,6 +34,8 @@ namespace AlibabaCloud
public:
struct Option
{
std::string scopeName;
std::string kind;
std::string value;
std::string name;
};

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, "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()

View File

@@ -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())