Add UpdateService GetService DeleteService.
This commit is contained in:
@@ -27,10 +27,14 @@ set(computenestsupplier_public_header_model
|
||||
include/alibabacloud/computenestsupplier/model/CreateServiceResult.h
|
||||
include/alibabacloud/computenestsupplier/model/DeleteArtifactRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/DeleteArtifactResult.h
|
||||
include/alibabacloud/computenestsupplier/model/DeleteServiceRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/DeleteServiceResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetArtifactRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetArtifactResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetArtifactRepositoryCredentialsRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetArtifactRepositoryCredentialsResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceEstimateCostRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceEstimateCostResult.h
|
||||
include/alibabacloud/computenestsupplier/model/GetServiceInstanceRequest.h
|
||||
@@ -48,7 +52,9 @@ set(computenestsupplier_public_header_model
|
||||
include/alibabacloud/computenestsupplier/model/ReleaseArtifactRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/ReleaseArtifactResult.h
|
||||
include/alibabacloud/computenestsupplier/model/UpdateArtifactRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/UpdateArtifactResult.h )
|
||||
include/alibabacloud/computenestsupplier/model/UpdateArtifactResult.h
|
||||
include/alibabacloud/computenestsupplier/model/UpdateServiceRequest.h
|
||||
include/alibabacloud/computenestsupplier/model/UpdateServiceResult.h )
|
||||
|
||||
set(computenestsupplier_src
|
||||
src/ComputeNestSupplierClient.cc
|
||||
@@ -58,10 +64,14 @@ set(computenestsupplier_src
|
||||
src/model/CreateServiceResult.cc
|
||||
src/model/DeleteArtifactRequest.cc
|
||||
src/model/DeleteArtifactResult.cc
|
||||
src/model/DeleteServiceRequest.cc
|
||||
src/model/DeleteServiceResult.cc
|
||||
src/model/GetArtifactRequest.cc
|
||||
src/model/GetArtifactResult.cc
|
||||
src/model/GetArtifactRepositoryCredentialsRequest.cc
|
||||
src/model/GetArtifactRepositoryCredentialsResult.cc
|
||||
src/model/GetServiceRequest.cc
|
||||
src/model/GetServiceResult.cc
|
||||
src/model/GetServiceEstimateCostRequest.cc
|
||||
src/model/GetServiceEstimateCostResult.cc
|
||||
src/model/GetServiceInstanceRequest.cc
|
||||
@@ -79,7 +89,9 @@ set(computenestsupplier_src
|
||||
src/model/ReleaseArtifactRequest.cc
|
||||
src/model/ReleaseArtifactResult.cc
|
||||
src/model/UpdateArtifactRequest.cc
|
||||
src/model/UpdateArtifactResult.cc )
|
||||
src/model/UpdateArtifactResult.cc
|
||||
src/model/UpdateServiceRequest.cc
|
||||
src/model/UpdateServiceResult.cc )
|
||||
|
||||
add_library(computenestsupplier ${LIB_TYPE}
|
||||
${computenestsupplier_public_header}
|
||||
|
||||
@@ -28,10 +28,14 @@
|
||||
#include "model/CreateServiceResult.h"
|
||||
#include "model/DeleteArtifactRequest.h"
|
||||
#include "model/DeleteArtifactResult.h"
|
||||
#include "model/DeleteServiceRequest.h"
|
||||
#include "model/DeleteServiceResult.h"
|
||||
#include "model/GetArtifactRequest.h"
|
||||
#include "model/GetArtifactResult.h"
|
||||
#include "model/GetArtifactRepositoryCredentialsRequest.h"
|
||||
#include "model/GetArtifactRepositoryCredentialsResult.h"
|
||||
#include "model/GetServiceRequest.h"
|
||||
#include "model/GetServiceResult.h"
|
||||
#include "model/GetServiceEstimateCostRequest.h"
|
||||
#include "model/GetServiceEstimateCostResult.h"
|
||||
#include "model/GetServiceInstanceRequest.h"
|
||||
@@ -50,6 +54,8 @@
|
||||
#include "model/ReleaseArtifactResult.h"
|
||||
#include "model/UpdateArtifactRequest.h"
|
||||
#include "model/UpdateArtifactResult.h"
|
||||
#include "model/UpdateServiceRequest.h"
|
||||
#include "model/UpdateServiceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -68,12 +74,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteArtifactResult> DeleteArtifactOutcome;
|
||||
typedef std::future<DeleteArtifactOutcome> DeleteArtifactOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::DeleteArtifactRequest&, const DeleteArtifactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteArtifactAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteServiceResult> DeleteServiceOutcome;
|
||||
typedef std::future<DeleteServiceOutcome> DeleteServiceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::DeleteServiceRequest&, const DeleteServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetArtifactResult> GetArtifactOutcome;
|
||||
typedef std::future<GetArtifactOutcome> GetArtifactOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetArtifactRequest&, const GetArtifactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetArtifactAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetArtifactRepositoryCredentialsResult> GetArtifactRepositoryCredentialsOutcome;
|
||||
typedef std::future<GetArtifactRepositoryCredentialsOutcome> GetArtifactRepositoryCredentialsOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetArtifactRepositoryCredentialsRequest&, const GetArtifactRepositoryCredentialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetArtifactRepositoryCredentialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetServiceResult> GetServiceOutcome;
|
||||
typedef std::future<GetServiceOutcome> GetServiceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetServiceRequest&, const GetServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetServiceEstimateCostResult> GetServiceEstimateCostOutcome;
|
||||
typedef std::future<GetServiceEstimateCostOutcome> GetServiceEstimateCostOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::GetServiceEstimateCostRequest&, const GetServiceEstimateCostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceEstimateCostAsyncHandler;
|
||||
@@ -101,6 +113,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateArtifactResult> UpdateArtifactOutcome;
|
||||
typedef std::future<UpdateArtifactOutcome> UpdateArtifactOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::UpdateArtifactRequest&, const UpdateArtifactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateArtifactAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateServiceResult> UpdateServiceOutcome;
|
||||
typedef std::future<UpdateServiceOutcome> UpdateServiceOutcomeCallable;
|
||||
typedef std::function<void(const ComputeNestSupplierClient*, const Model::UpdateServiceRequest&, const UpdateServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateServiceAsyncHandler;
|
||||
|
||||
ComputeNestSupplierClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ComputeNestSupplierClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -115,12 +130,18 @@ namespace AlibabaCloud
|
||||
DeleteArtifactOutcome deleteArtifact(const Model::DeleteArtifactRequest &request)const;
|
||||
void deleteArtifactAsync(const Model::DeleteArtifactRequest& request, const DeleteArtifactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteArtifactOutcomeCallable deleteArtifactCallable(const Model::DeleteArtifactRequest& request) const;
|
||||
DeleteServiceOutcome deleteService(const Model::DeleteServiceRequest &request)const;
|
||||
void deleteServiceAsync(const Model::DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteServiceOutcomeCallable deleteServiceCallable(const Model::DeleteServiceRequest& request) const;
|
||||
GetArtifactOutcome getArtifact(const Model::GetArtifactRequest &request)const;
|
||||
void getArtifactAsync(const Model::GetArtifactRequest& request, const GetArtifactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetArtifactOutcomeCallable getArtifactCallable(const Model::GetArtifactRequest& request) const;
|
||||
GetArtifactRepositoryCredentialsOutcome getArtifactRepositoryCredentials(const Model::GetArtifactRepositoryCredentialsRequest &request)const;
|
||||
void getArtifactRepositoryCredentialsAsync(const Model::GetArtifactRepositoryCredentialsRequest& request, const GetArtifactRepositoryCredentialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetArtifactRepositoryCredentialsOutcomeCallable getArtifactRepositoryCredentialsCallable(const Model::GetArtifactRepositoryCredentialsRequest& request) const;
|
||||
GetServiceOutcome getService(const Model::GetServiceRequest &request)const;
|
||||
void getServiceAsync(const Model::GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetServiceOutcomeCallable getServiceCallable(const Model::GetServiceRequest& request) const;
|
||||
GetServiceEstimateCostOutcome getServiceEstimateCost(const Model::GetServiceEstimateCostRequest &request)const;
|
||||
void getServiceEstimateCostAsync(const Model::GetServiceEstimateCostRequest& request, const GetServiceEstimateCostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetServiceEstimateCostOutcomeCallable getServiceEstimateCostCallable(const Model::GetServiceEstimateCostRequest& request) const;
|
||||
@@ -148,6 +169,9 @@ namespace AlibabaCloud
|
||||
UpdateArtifactOutcome updateArtifact(const Model::UpdateArtifactRequest &request)const;
|
||||
void updateArtifactAsync(const Model::UpdateArtifactRequest& request, const UpdateArtifactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateArtifactOutcomeCallable updateArtifactCallable(const Model::UpdateArtifactRequest& request) const;
|
||||
UpdateServiceOutcome updateService(const Model::UpdateServiceRequest &request)const;
|
||||
void updateServiceAsync(const Model::UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateServiceOutcomeCallable updateServiceCallable(const Model::UpdateServiceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNestSupplier {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT DeleteServiceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteServiceRequest();
|
||||
~DeleteServiceRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getServiceVersion() const;
|
||||
void setServiceVersion(const std::string &serviceVersion);
|
||||
std::string getServiceId() const;
|
||||
void setServiceId(const std::string &serviceId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string serviceVersion_;
|
||||
std::string serviceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNestSupplier
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICEREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICERESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNestSupplier
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT DeleteServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteServiceResult();
|
||||
explicit DeleteServiceResult(const std::string &payload);
|
||||
~DeleteServiceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_DELETESERVICERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_GETSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_GETSERVICEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNestSupplier {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT GetServiceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetServiceRequest();
|
||||
~GetServiceRequest();
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getServiceVersion() const;
|
||||
void setServiceVersion(const std::string &serviceVersion);
|
||||
std::string getServiceId() const;
|
||||
void setServiceId(const std::string &serviceId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string serviceVersion_;
|
||||
std::string serviceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNestSupplier
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_GETSERVICEREQUEST_H_
|
||||
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_GETSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_GETSERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNestSupplier
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT GetServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ServiceInfo
|
||||
{
|
||||
std::string locale;
|
||||
std::string image;
|
||||
std::string name;
|
||||
std::string shortDescription;
|
||||
};
|
||||
struct CommoditySpecification
|
||||
{
|
||||
std::string specificationCode;
|
||||
std::string templateName;
|
||||
std::string predefinedParameterName;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct CommodityEntitiesItem
|
||||
{
|
||||
std::vector<std::string> entityIds;
|
||||
std::string templateName;
|
||||
std::string predefinedParameterName;
|
||||
};
|
||||
|
||||
|
||||
GetServiceResult();
|
||||
explicit GetServiceResult(const std::string &payload);
|
||||
~GetServiceResult();
|
||||
std::string getDeployType()const;
|
||||
std::string getTestStatus()const;
|
||||
bool getIsSupportOperated()const;
|
||||
long getDefaultLicenseDays()const;
|
||||
std::string getResourceGroupId()const;
|
||||
std::vector<CommoditySpecification> getCommoditySpecifications()const;
|
||||
std::string getServiceId()const;
|
||||
std::string getPolicyNames()const;
|
||||
std::vector<CommodityEntitiesItem> getCommodityEntities()const;
|
||||
std::string getDeployMetadata()const;
|
||||
long getTrialDuration()const;
|
||||
std::string getVersion()const;
|
||||
std::string getServiceType()const;
|
||||
std::string getLicenseMetadata()const;
|
||||
std::string getCommodityCode()const;
|
||||
std::string getTrialType()const;
|
||||
std::string getApprovalType()const;
|
||||
std::string getPermission()const;
|
||||
std::string getPublishTime()const;
|
||||
std::string getVersionName()const;
|
||||
std::string getOperationMetadata()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
std::string getSupplierUrl()const;
|
||||
std::string getServiceDocUrl()const;
|
||||
std::string getUpgradeMetadata()const;
|
||||
std::string getStatus()const;
|
||||
long getProgress()const;
|
||||
std::string getPayFromType()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getRegistrationId()const;
|
||||
long getDuration()const;
|
||||
std::string getPayType()const;
|
||||
std::string getTenantType()const;
|
||||
std::string getSupplierName()const;
|
||||
std::string getStatusDetail()const;
|
||||
std::vector<ServiceInfo> getServiceInfos()const;
|
||||
std::string getUpdateTime()const;
|
||||
std::string getServiceProductUrl()const;
|
||||
std::string getAlarmMetadata()const;
|
||||
std::string getShareType()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string deployType_;
|
||||
std::string testStatus_;
|
||||
bool isSupportOperated_;
|
||||
long defaultLicenseDays_;
|
||||
std::string resourceGroupId_;
|
||||
std::vector<CommoditySpecification> commoditySpecifications_;
|
||||
std::string serviceId_;
|
||||
std::string policyNames_;
|
||||
std::vector<CommodityEntitiesItem> commodityEntities_;
|
||||
std::string deployMetadata_;
|
||||
long trialDuration_;
|
||||
std::string version_;
|
||||
std::string serviceType_;
|
||||
std::string licenseMetadata_;
|
||||
std::string commodityCode_;
|
||||
std::string trialType_;
|
||||
std::string approvalType_;
|
||||
std::string permission_;
|
||||
std::string publishTime_;
|
||||
std::string versionName_;
|
||||
std::string operationMetadata_;
|
||||
std::vector<Tag> tags_;
|
||||
std::string supplierUrl_;
|
||||
std::string serviceDocUrl_;
|
||||
std::string upgradeMetadata_;
|
||||
std::string status_;
|
||||
long progress_;
|
||||
std::string payFromType_;
|
||||
std::string createTime_;
|
||||
std::string registrationId_;
|
||||
long duration_;
|
||||
std::string payType_;
|
||||
std::string tenantType_;
|
||||
std::string supplierName_;
|
||||
std::string statusDetail_;
|
||||
std::vector<ServiceInfo> serviceInfos_;
|
||||
std::string updateTime_;
|
||||
std::string serviceProductUrl_;
|
||||
std::string alarmMetadata_;
|
||||
std::string shareType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_GETSERVICERESULT_H_
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_UPDATESERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_UPDATESERVICEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace ComputeNestSupplier {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT UpdateServiceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ServiceInfo {
|
||||
std::string shortDescription;
|
||||
std::string image;
|
||||
std::string name;
|
||||
std::string locale;
|
||||
};
|
||||
UpdateServiceRequest();
|
||||
~UpdateServiceRequest();
|
||||
std::string getAlarmMetadata() const;
|
||||
void setAlarmMetadata(const std::string &alarmMetadata);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getPolicyNames() const;
|
||||
void setPolicyNames(const std::string &policyNames);
|
||||
std::string getLicenseMetadata() const;
|
||||
void setLicenseMetadata(const std::string &licenseMetadata);
|
||||
long getDuration() const;
|
||||
void setDuration(long duration);
|
||||
int getTrialDuration() const;
|
||||
void setTrialDuration(int trialDuration);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getUpgradeMetadata() const;
|
||||
void setUpgradeMetadata(const std::string &upgradeMetadata);
|
||||
std::string getDeployMetadata() const;
|
||||
void setDeployMetadata(const std::string &deployMetadata);
|
||||
std::string getServiceType() const;
|
||||
void setServiceType(const std::string &serviceType);
|
||||
bool getIsSupportOperated() const;
|
||||
void setIsSupportOperated(bool isSupportOperated);
|
||||
std::string getTenantType() const;
|
||||
void setTenantType(const std::string &tenantType);
|
||||
std::string getServiceVersion() const;
|
||||
void setServiceVersion(const std::string &serviceVersion);
|
||||
std::vector<ServiceInfo> getServiceInfo() const;
|
||||
void setServiceInfo(const std::vector<ServiceInfo> &serviceInfo);
|
||||
std::string getServiceId() const;
|
||||
void setServiceId(const std::string &serviceId);
|
||||
std::string getVersionName() const;
|
||||
void setVersionName(const std::string &versionName);
|
||||
std::string getOperationMetadata() const;
|
||||
void setOperationMetadata(const std::string &operationMetadata);
|
||||
std::string getDeployType() const;
|
||||
void setDeployType(const std::string &deployType);
|
||||
|
||||
private:
|
||||
std::string alarmMetadata_;
|
||||
std::string clientToken_;
|
||||
std::string policyNames_;
|
||||
std::string licenseMetadata_;
|
||||
long duration_;
|
||||
int trialDuration_;
|
||||
std::string regionId_;
|
||||
std::string upgradeMetadata_;
|
||||
std::string deployMetadata_;
|
||||
std::string serviceType_;
|
||||
bool isSupportOperated_;
|
||||
std::string tenantType_;
|
||||
std::string serviceVersion_;
|
||||
std::vector<ServiceInfo> serviceInfo_;
|
||||
std::string serviceId_;
|
||||
std::string versionName_;
|
||||
std::string operationMetadata_;
|
||||
std::string deployType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace ComputeNestSupplier
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_UPDATESERVICEREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_UPDATESERVICERESULT_H_
|
||||
#define ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_UPDATESERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/computenestsupplier/ComputeNestSupplierExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ComputeNestSupplier
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_COMPUTENESTSUPPLIER_EXPORT UpdateServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateServiceResult();
|
||||
explicit UpdateServiceResult(const std::string &payload);
|
||||
~UpdateServiceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_COMPUTENESTSUPPLIER_MODEL_UPDATESERVICERESULT_H_
|
||||
@@ -159,6 +159,42 @@ ComputeNestSupplierClient::DeleteArtifactOutcomeCallable ComputeNestSupplierClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestSupplierClient::DeleteServiceOutcome ComputeNestSupplierClient::deleteService(const DeleteServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteServiceOutcome(DeleteServiceResult(outcome.result()));
|
||||
else
|
||||
return DeleteServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestSupplierClient::deleteServiceAsync(const DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestSupplierClient::DeleteServiceOutcomeCallable ComputeNestSupplierClient::deleteServiceCallable(const DeleteServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestSupplierClient::GetArtifactOutcome ComputeNestSupplierClient::getArtifact(const GetArtifactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +267,42 @@ ComputeNestSupplierClient::GetArtifactRepositoryCredentialsOutcomeCallable Compu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestSupplierClient::GetServiceOutcome ComputeNestSupplierClient::getService(const GetServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetServiceOutcome(GetServiceResult(outcome.result()));
|
||||
else
|
||||
return GetServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestSupplierClient::getServiceAsync(const GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestSupplierClient::GetServiceOutcomeCallable ComputeNestSupplierClient::getServiceCallable(const GetServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestSupplierClient::GetServiceEstimateCostOutcome ComputeNestSupplierClient::getServiceEstimateCost(const GetServiceEstimateCostRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,3 +627,39 @@ ComputeNestSupplierClient::UpdateArtifactOutcomeCallable ComputeNestSupplierClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ComputeNestSupplierClient::UpdateServiceOutcome ComputeNestSupplierClient::updateService(const UpdateServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateServiceOutcome(UpdateServiceResult(outcome.result()));
|
||||
else
|
||||
return UpdateServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ComputeNestSupplierClient::updateServiceAsync(const UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ComputeNestSupplierClient::UpdateServiceOutcomeCallable ComputeNestSupplierClient::updateServiceCallable(const UpdateServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
63
computenestsupplier/src/model/DeleteServiceRequest.cc
Normal file
63
computenestsupplier/src/model/DeleteServiceRequest.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/computenestsupplier/model/DeleteServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNestSupplier::Model::DeleteServiceRequest;
|
||||
|
||||
DeleteServiceRequest::DeleteServiceRequest()
|
||||
: RpcServiceRequest("computenestsupplier", "2021-05-21", "DeleteService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteServiceRequest::~DeleteServiceRequest() {}
|
||||
|
||||
std::string DeleteServiceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteServiceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteServiceRequest::getServiceVersion() const {
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setServiceVersion(const std::string &serviceVersion) {
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter(std::string("ServiceVersion"), serviceVersion);
|
||||
}
|
||||
|
||||
std::string DeleteServiceRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setServiceId(const std::string &serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), serviceId);
|
||||
}
|
||||
|
||||
44
computenestsupplier/src/model/DeleteServiceResult.cc
Normal file
44
computenestsupplier/src/model/DeleteServiceResult.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/computenestsupplier/model/DeleteServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNestSupplier;
|
||||
using namespace AlibabaCloud::ComputeNestSupplier::Model;
|
||||
|
||||
DeleteServiceResult::DeleteServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceResult::DeleteServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceResult::~DeleteServiceResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
computenestsupplier/src/model/GetServiceRequest.cc
Normal file
54
computenestsupplier/src/model/GetServiceRequest.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/computenestsupplier/model/GetServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNestSupplier::Model::GetServiceRequest;
|
||||
|
||||
GetServiceRequest::GetServiceRequest()
|
||||
: RpcServiceRequest("computenestsupplier", "2021-05-21", "GetService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetServiceRequest::~GetServiceRequest() {}
|
||||
|
||||
std::string GetServiceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetServiceRequest::getServiceVersion() const {
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setServiceVersion(const std::string &serviceVersion) {
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter(std::string("ServiceVersion"), serviceVersion);
|
||||
}
|
||||
|
||||
std::string GetServiceRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setServiceId(const std::string &serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), serviceId);
|
||||
}
|
||||
|
||||
365
computenestsupplier/src/model/GetServiceResult.cc
Normal file
365
computenestsupplier/src/model/GetServiceResult.cc
Normal file
@@ -0,0 +1,365 @@
|
||||
/*
|
||||
* 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/computenestsupplier/model/GetServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNestSupplier;
|
||||
using namespace AlibabaCloud::ComputeNestSupplier::Model;
|
||||
|
||||
GetServiceResult::GetServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceResult::GetServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceResult::~GetServiceResult()
|
||||
{}
|
||||
|
||||
void GetServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServiceInfosNode = value["ServiceInfos"]["ServiceInfo"];
|
||||
for (auto valueServiceInfosServiceInfo : allServiceInfosNode)
|
||||
{
|
||||
ServiceInfo serviceInfosObject;
|
||||
if(!valueServiceInfosServiceInfo["Locale"].isNull())
|
||||
serviceInfosObject.locale = valueServiceInfosServiceInfo["Locale"].asString();
|
||||
if(!valueServiceInfosServiceInfo["Image"].isNull())
|
||||
serviceInfosObject.image = valueServiceInfosServiceInfo["Image"].asString();
|
||||
if(!valueServiceInfosServiceInfo["Name"].isNull())
|
||||
serviceInfosObject.name = valueServiceInfosServiceInfo["Name"].asString();
|
||||
if(!valueServiceInfosServiceInfo["ShortDescription"].isNull())
|
||||
serviceInfosObject.shortDescription = valueServiceInfosServiceInfo["ShortDescription"].asString();
|
||||
serviceInfos_.push_back(serviceInfosObject);
|
||||
}
|
||||
auto allCommoditySpecificationsNode = value["CommoditySpecifications"]["commoditySpecification"];
|
||||
for (auto valueCommoditySpecificationscommoditySpecification : allCommoditySpecificationsNode)
|
||||
{
|
||||
CommoditySpecification commoditySpecificationsObject;
|
||||
if(!valueCommoditySpecificationscommoditySpecification["SpecificationCode"].isNull())
|
||||
commoditySpecificationsObject.specificationCode = valueCommoditySpecificationscommoditySpecification["SpecificationCode"].asString();
|
||||
if(!valueCommoditySpecificationscommoditySpecification["TemplateName"].isNull())
|
||||
commoditySpecificationsObject.templateName = valueCommoditySpecificationscommoditySpecification["TemplateName"].asString();
|
||||
if(!valueCommoditySpecificationscommoditySpecification["PredefinedParameterName"].isNull())
|
||||
commoditySpecificationsObject.predefinedParameterName = valueCommoditySpecificationscommoditySpecification["PredefinedParameterName"].asString();
|
||||
commoditySpecifications_.push_back(commoditySpecificationsObject);
|
||||
}
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTagsTag["Key"].asString();
|
||||
if(!valueTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueTagsTag["Value"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto allCommodityEntitiesNode = value["CommodityEntities"]["commodityEntitiesItem"];
|
||||
for (auto valueCommodityEntitiescommodityEntitiesItem : allCommodityEntitiesNode)
|
||||
{
|
||||
CommodityEntitiesItem commodityEntitiesObject;
|
||||
if(!valueCommodityEntitiescommodityEntitiesItem["TemplateName"].isNull())
|
||||
commodityEntitiesObject.templateName = valueCommodityEntitiescommodityEntitiesItem["TemplateName"].asString();
|
||||
if(!valueCommodityEntitiescommodityEntitiesItem["PredefinedParameterName"].isNull())
|
||||
commodityEntitiesObject.predefinedParameterName = valueCommodityEntitiescommodityEntitiesItem["PredefinedParameterName"].asString();
|
||||
auto allEntityIds = value["EntityIds"]["entityIds"];
|
||||
for (auto value : allEntityIds)
|
||||
commodityEntitiesObject.entityIds.push_back(value.asString());
|
||||
commodityEntities_.push_back(commodityEntitiesObject);
|
||||
}
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["DeployMetadata"].isNull())
|
||||
deployMetadata_ = value["DeployMetadata"].asString();
|
||||
if(!value["PublishTime"].isNull())
|
||||
publishTime_ = value["PublishTime"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
version_ = value["Version"].asString();
|
||||
if(!value["DeployType"].isNull())
|
||||
deployType_ = value["DeployType"].asString();
|
||||
if(!value["ServiceId"].isNull())
|
||||
serviceId_ = value["ServiceId"].asString();
|
||||
if(!value["SupplierUrl"].isNull())
|
||||
supplierUrl_ = value["SupplierUrl"].asString();
|
||||
if(!value["ServiceDocUrl"].isNull())
|
||||
serviceDocUrl_ = value["ServiceDocUrl"].asString();
|
||||
if(!value["ServiceProductUrl"].isNull())
|
||||
serviceProductUrl_ = value["ServiceProductUrl"].asString();
|
||||
if(!value["ServiceType"].isNull())
|
||||
serviceType_ = value["ServiceType"].asString();
|
||||
if(!value["SupplierName"].isNull())
|
||||
supplierName_ = value["SupplierName"].asString();
|
||||
if(!value["CommodityCode"].isNull())
|
||||
commodityCode_ = value["CommodityCode"].asString();
|
||||
if(!value["IsSupportOperated"].isNull())
|
||||
isSupportOperated_ = value["IsSupportOperated"].asString() == "true";
|
||||
if(!value["PolicyNames"].isNull())
|
||||
policyNames_ = value["PolicyNames"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
duration_ = std::stol(value["Duration"].asString());
|
||||
if(!value["Progress"].isNull())
|
||||
progress_ = std::stol(value["Progress"].asString());
|
||||
if(!value["StatusDetail"].isNull())
|
||||
statusDetail_ = value["StatusDetail"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
updateTime_ = value["UpdateTime"].asString();
|
||||
if(!value["ShareType"].isNull())
|
||||
shareType_ = value["ShareType"].asString();
|
||||
if(!value["AlarmMetadata"].isNull())
|
||||
alarmMetadata_ = value["AlarmMetadata"].asString();
|
||||
if(!value["UpgradeMetadata"].isNull())
|
||||
upgradeMetadata_ = value["UpgradeMetadata"].asString();
|
||||
if(!value["VersionName"].isNull())
|
||||
versionName_ = value["VersionName"].asString();
|
||||
if(!value["PayFromType"].isNull())
|
||||
payFromType_ = value["PayFromType"].asString();
|
||||
if(!value["PayType"].isNull())
|
||||
payType_ = value["PayType"].asString();
|
||||
if(!value["DefaultLicenseDays"].isNull())
|
||||
defaultLicenseDays_ = std::stol(value["DefaultLicenseDays"].asString());
|
||||
if(!value["TrialDuration"].isNull())
|
||||
trialDuration_ = std::stol(value["TrialDuration"].asString());
|
||||
if(!value["TrialType"].isNull())
|
||||
trialType_ = value["TrialType"].asString();
|
||||
if(!value["TenantType"].isNull())
|
||||
tenantType_ = value["TenantType"].asString();
|
||||
if(!value["LicenseMetadata"].isNull())
|
||||
licenseMetadata_ = value["LicenseMetadata"].asString();
|
||||
if(!value["OperationMetadata"].isNull())
|
||||
operationMetadata_ = value["OperationMetadata"].asString();
|
||||
if(!value["TestStatus"].isNull())
|
||||
testStatus_ = value["TestStatus"].asString();
|
||||
if(!value["ApprovalType"].isNull())
|
||||
approvalType_ = value["ApprovalType"].asString();
|
||||
if(!value["RegistrationId"].isNull())
|
||||
registrationId_ = value["RegistrationId"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["Permission"].isNull())
|
||||
permission_ = value["Permission"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getDeployType()const
|
||||
{
|
||||
return deployType_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getTestStatus()const
|
||||
{
|
||||
return testStatus_;
|
||||
}
|
||||
|
||||
bool GetServiceResult::getIsSupportOperated()const
|
||||
{
|
||||
return isSupportOperated_;
|
||||
}
|
||||
|
||||
long GetServiceResult::getDefaultLicenseDays()const
|
||||
{
|
||||
return defaultLicenseDays_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::vector<GetServiceResult::CommoditySpecification> GetServiceResult::getCommoditySpecifications()const
|
||||
{
|
||||
return commoditySpecifications_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getPolicyNames()const
|
||||
{
|
||||
return policyNames_;
|
||||
}
|
||||
|
||||
std::vector<GetServiceResult::CommodityEntitiesItem> GetServiceResult::getCommodityEntities()const
|
||||
{
|
||||
return commodityEntities_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getDeployMetadata()const
|
||||
{
|
||||
return deployMetadata_;
|
||||
}
|
||||
|
||||
long GetServiceResult::getTrialDuration()const
|
||||
{
|
||||
return trialDuration_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getServiceType()const
|
||||
{
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getLicenseMetadata()const
|
||||
{
|
||||
return licenseMetadata_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getCommodityCode()const
|
||||
{
|
||||
return commodityCode_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getTrialType()const
|
||||
{
|
||||
return trialType_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getApprovalType()const
|
||||
{
|
||||
return approvalType_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getPermission()const
|
||||
{
|
||||
return permission_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getPublishTime()const
|
||||
{
|
||||
return publishTime_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getVersionName()const
|
||||
{
|
||||
return versionName_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getOperationMetadata()const
|
||||
{
|
||||
return operationMetadata_;
|
||||
}
|
||||
|
||||
std::vector<GetServiceResult::Tag> GetServiceResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getSupplierUrl()const
|
||||
{
|
||||
return supplierUrl_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getServiceDocUrl()const
|
||||
{
|
||||
return serviceDocUrl_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getUpgradeMetadata()const
|
||||
{
|
||||
return upgradeMetadata_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
long GetServiceResult::getProgress()const
|
||||
{
|
||||
return progress_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getPayFromType()const
|
||||
{
|
||||
return payFromType_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getRegistrationId()const
|
||||
{
|
||||
return registrationId_;
|
||||
}
|
||||
|
||||
long GetServiceResult::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getTenantType()const
|
||||
{
|
||||
return tenantType_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getSupplierName()const
|
||||
{
|
||||
return supplierName_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getStatusDetail()const
|
||||
{
|
||||
return statusDetail_;
|
||||
}
|
||||
|
||||
std::vector<GetServiceResult::ServiceInfo> GetServiceResult::getServiceInfos()const
|
||||
{
|
||||
return serviceInfos_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getServiceProductUrl()const
|
||||
{
|
||||
return serviceProductUrl_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getAlarmMetadata()const
|
||||
{
|
||||
return alarmMetadata_;
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getShareType()const
|
||||
{
|
||||
return shareType_;
|
||||
}
|
||||
|
||||
196
computenestsupplier/src/model/UpdateServiceRequest.cc
Normal file
196
computenestsupplier/src/model/UpdateServiceRequest.cc
Normal file
@@ -0,0 +1,196 @@
|
||||
/*
|
||||
* 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/computenestsupplier/model/UpdateServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::ComputeNestSupplier::Model::UpdateServiceRequest;
|
||||
|
||||
UpdateServiceRequest::UpdateServiceRequest()
|
||||
: RpcServiceRequest("computenestsupplier", "2021-05-21", "UpdateService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateServiceRequest::~UpdateServiceRequest() {}
|
||||
|
||||
std::string UpdateServiceRequest::getAlarmMetadata() const {
|
||||
return alarmMetadata_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setAlarmMetadata(const std::string &alarmMetadata) {
|
||||
alarmMetadata_ = alarmMetadata;
|
||||
setParameter(std::string("AlarmMetadata"), alarmMetadata);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getPolicyNames() const {
|
||||
return policyNames_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setPolicyNames(const std::string &policyNames) {
|
||||
policyNames_ = policyNames;
|
||||
setParameter(std::string("PolicyNames"), policyNames);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getLicenseMetadata() const {
|
||||
return licenseMetadata_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setLicenseMetadata(const std::string &licenseMetadata) {
|
||||
licenseMetadata_ = licenseMetadata;
|
||||
setParameter(std::string("LicenseMetadata"), licenseMetadata);
|
||||
}
|
||||
|
||||
long UpdateServiceRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setDuration(long duration) {
|
||||
duration_ = duration;
|
||||
setParameter(std::string("Duration"), std::to_string(duration));
|
||||
}
|
||||
|
||||
int UpdateServiceRequest::getTrialDuration() const {
|
||||
return trialDuration_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setTrialDuration(int trialDuration) {
|
||||
trialDuration_ = trialDuration;
|
||||
setParameter(std::string("TrialDuration"), std::to_string(trialDuration));
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getUpgradeMetadata() const {
|
||||
return upgradeMetadata_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setUpgradeMetadata(const std::string &upgradeMetadata) {
|
||||
upgradeMetadata_ = upgradeMetadata;
|
||||
setParameter(std::string("UpgradeMetadata"), upgradeMetadata);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getDeployMetadata() const {
|
||||
return deployMetadata_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setDeployMetadata(const std::string &deployMetadata) {
|
||||
deployMetadata_ = deployMetadata;
|
||||
setParameter(std::string("DeployMetadata"), deployMetadata);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getServiceType() const {
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setServiceType(const std::string &serviceType) {
|
||||
serviceType_ = serviceType;
|
||||
setParameter(std::string("ServiceType"), serviceType);
|
||||
}
|
||||
|
||||
bool UpdateServiceRequest::getIsSupportOperated() const {
|
||||
return isSupportOperated_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setIsSupportOperated(bool isSupportOperated) {
|
||||
isSupportOperated_ = isSupportOperated;
|
||||
setParameter(std::string("IsSupportOperated"), isSupportOperated ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getTenantType() const {
|
||||
return tenantType_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setTenantType(const std::string &tenantType) {
|
||||
tenantType_ = tenantType;
|
||||
setParameter(std::string("TenantType"), tenantType);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getServiceVersion() const {
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setServiceVersion(const std::string &serviceVersion) {
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter(std::string("ServiceVersion"), serviceVersion);
|
||||
}
|
||||
|
||||
std::vector<UpdateServiceRequest::ServiceInfo> UpdateServiceRequest::getServiceInfo() const {
|
||||
return serviceInfo_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setServiceInfo(const std::vector<UpdateServiceRequest::ServiceInfo> &serviceInfo) {
|
||||
serviceInfo_ = serviceInfo;
|
||||
for(int dep1 = 0; dep1 != serviceInfo.size(); dep1++) {
|
||||
auto serviceInfoObj = serviceInfo.at(dep1);
|
||||
std::string serviceInfoObjStr = std::string("ServiceInfo") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(serviceInfoObjStr + ".ShortDescription", serviceInfoObj.shortDescription);
|
||||
setParameter(serviceInfoObjStr + ".Image", serviceInfoObj.image);
|
||||
setParameter(serviceInfoObjStr + ".Name", serviceInfoObj.name);
|
||||
setParameter(serviceInfoObjStr + ".Locale", serviceInfoObj.locale);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setServiceId(const std::string &serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), serviceId);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getVersionName() const {
|
||||
return versionName_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setVersionName(const std::string &versionName) {
|
||||
versionName_ = versionName;
|
||||
setParameter(std::string("VersionName"), versionName);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getOperationMetadata() const {
|
||||
return operationMetadata_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setOperationMetadata(const std::string &operationMetadata) {
|
||||
operationMetadata_ = operationMetadata;
|
||||
setParameter(std::string("OperationMetadata"), operationMetadata);
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getDeployType() const {
|
||||
return deployType_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setDeployType(const std::string &deployType) {
|
||||
deployType_ = deployType;
|
||||
setParameter(std::string("DeployType"), deployType);
|
||||
}
|
||||
|
||||
44
computenestsupplier/src/model/UpdateServiceResult.cc
Normal file
44
computenestsupplier/src/model/UpdateServiceResult.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/computenestsupplier/model/UpdateServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ComputeNestSupplier;
|
||||
using namespace AlibabaCloud::ComputeNestSupplier::Model;
|
||||
|
||||
UpdateServiceResult::UpdateServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateServiceResult::UpdateServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateServiceResult::~UpdateServiceResult()
|
||||
{}
|
||||
|
||||
void UpdateServiceResult::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